/* Bounty Flashcard — styles (éditer ce fichier ; index.html le charge) */

/* Thème « Sombre » : noir AMOLED (fond #000, surfaces quasi noires). */
:root {
  --bg: #000000;
  --bg2: #121212;
  --card: #1e1e1e;
  --card2: #2a2a2a;
  --text: #eceff1;
  --muted: #8e9399;
  --accent: #8ab4f8;
  --accent-dim: #669df6;
  --accent-soft: rgba(138, 180, 248, 0.22);
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.85);
  --radius: 16px;
  --font: Roboto, system-ui, "Segoe UI", sans-serif;
  --btn-on-accent: #0a0a0a;
}
/* Thème violet : fond et cartes plus saturés en mauve, toujours sombre. */
body.theme-violet {
  --bg: #100818;
  --bg2: #1a0d2a;
  --card: #26143d;
  --card2: #321c4f;
  --text: #faf5ff;
  --muted: #d8c8f5;
  --accent: #c084fc;
  --accent-dim: #a855f7;
  --accent-soft: rgba(192, 132, 252, 0.42);
  --border: rgba(167, 139, 250, 0.42);
  --shadow: 0 14px 44px rgba(50, 15, 90, 0.55);
  --btn-on-accent: #fff;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: #000000;
  color: var(--text);
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  padding: max(0px, env(safe-area-inset-top, 0px)) max(1rem, env(safe-area-inset-right, 0px))
    calc(5.5rem + env(safe-area-inset-bottom, 0px)) max(1rem, env(safe-area-inset-left, 0px));
  transition: background 0.35s ease, color 0.2s ease;
  display: flex;
  flex-direction: column;
}
body.theme-violet {
  background:
    radial-gradient(ellipse 100% 85% at 50% -10%, rgba(192, 132, 252, 0.55), transparent 50%),
    radial-gradient(ellipse 85% 70% at 100% 25%, rgba(147, 51, 234, 0.35), transparent 48%),
    radial-gradient(ellipse 75% 60% at 0% 90%, rgba(168, 85, 247, 0.28), transparent 44%),
    radial-gradient(ellipse 55% 45% at 85% 100%, rgba(216, 180, 254, 0.12), transparent 42%),
    linear-gradient(165deg, #0c0518 0%, #150a22 38%, #1f0f32 68%, #12081c 100%);
}
.app-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  row-gap: 0.4rem;
  width: 100%;
  padding: 0.65rem 1rem 0.5rem;
  flex-shrink: 0;
}
.brand-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.brand {
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.prog-strip-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
}
.prog-strip {
  display: flex;
  width: 100%;
  gap: 2px;
  align-items: stretch;
  height: 2px;
}
.prog-seg {
  flex: 1;
  min-width: 1px;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.12);
  transition: background 0.2s ease;
}
.prog-seg.done {
  background: rgba(138, 180, 248, 0.35);
}
.prog-seg.active {
  background: #a8c7fa;
  box-shadow: 0 0 4px rgba(168, 199, 250, 0.35);
}
body.theme-violet .prog-seg.done {
  background: rgba(192, 132, 252, 0.35);
}
body.theme-violet .prog-seg.active {
  background: #d8b4fe;
  box-shadow: 0 0 4px rgba(216, 180, 254, 0.32);
}
.learn-head-stats {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}
.learn-head-fraction {
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.82);
  min-width: 9ch;
  text-align: right;
  white-space: nowrap;
}
.learn-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  line-height: 1.2;
}
.learn-pill-ico {
  font-size: 0.65rem;
  opacity: 0.95;
}
.learn-pill-bad {
  background: rgba(120, 24, 24, 0.55);
  color: #fecaca;
  border-color: rgba(248, 113, 113, 0.35);
}
.learn-pill-good {
  background: rgba(22, 90, 45, 0.55);
  color: #bbf7d0;
  border-color: rgba(74, 222, 128, 0.35);
}
.track-toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  user-select: none;
  margin: 0;
}
.track-toggle-text {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.12;
  text-align: right;
}
.track-learn-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0;
}
.track-toggle-label:focus-within .track-switch {
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.track-switch {
  position: relative;
  width: 2.75rem;
  height: 1.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
  flex-shrink: 0;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.track-switch::after {
  content: "";
  position: absolute;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  top: 50%;
  left: 0.2rem;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  transition: left 0.22s ease, background 0.2s ease;
}
.track-learn-input:checked + .track-switch {
  background: rgba(138, 180, 248, 0.45);
  border-color: rgba(138, 180, 248, 0.55);
}
.track-learn-input:checked + .track-switch::after {
  left: calc(100% - 1.1rem - 0.2rem);
  background: #1a2744;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}
body.theme-violet .track-learn-input:checked + .track-switch {
  background: rgba(192, 132, 252, 0.42);
  border-color: rgba(216, 180, 254, 0.55);
}
body.theme-violet .track-learn-input:checked + .track-switch::after {
  background: #2d1b45;
}
.learn-grade-bar {
  position: fixed;
  left: 50%;
  bottom: calc(6.75rem + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 1.15rem;
  z-index: 29;
}
.learn-grade-bar[hidden] {
  display: none !important;
}
button.grade-btn {
  width: 3.2rem;
  height: 3.2rem;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  line-height: 1;
  font-weight: 400;
  transition: transform 0.12s ease, filter 0.15s;
}
button.grade-wrong {
  background: rgba(100, 20, 28, 0.65);
  color: #fecaca;
  border: 1.5px solid rgba(248, 113, 113, 0.55);
}
button.grade-wrong:hover {
  filter: brightness(1.12);
}
button.grade-ok {
  background: rgba(20, 85, 48, 0.65);
  color: #bbf7d0;
  border: 1.5px solid rgba(74, 222, 128, 0.5);
}
button.grade-ok:hover {
  filter: brightness(1.12);
}
.site-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 0;
}
.site-logo svg {
  width: 2.35rem;
  height: 2.35rem;
  display: block;
}
button.theme-fab {
  position: fixed;
  bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  right: max(1rem, env(safe-area-inset-right, 0px));
  z-index: 40;
  box-shadow: var(--shadow);
}
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  max-width: 48rem;
  margin: 0 auto 0.75rem;
  padding: 0.5rem 0.75rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.toolbar label:not(.track-toggle-label) { font-size: 0.85rem; color: var(--muted); display: inline-flex; align-items: center; gap: 0.35rem; }
input[type="search"], select {
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input[type="search"]:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
select { min-width: 11rem; cursor: pointer; }
button {
  background: var(--accent);
  color: var(--btn-on-accent);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: transform 0.12s ease, filter 0.15s, box-shadow 0.15s;
}
button:hover { filter: brightness(1.08); }
button:active { transform: scale(0.98); }
button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button.secondary { background: var(--card2); color: var(--text); border: 1px solid var(--border); }
button.secondary:hover { filter: brightness(1.06); }
.toolbar-actions { margin-left: auto; display: flex; flex-wrap: wrap; gap: 0.45rem; align-items: center; }
a.toolbar-dash-link {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  padding: 0.35rem 0.7rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card2);
  font-weight: 500;
  line-height: 1.2;
}
a.toolbar-dash-link:hover {
  color: var(--accent);
  border-color: rgba(138, 180, 248, 0.45);
}
body.theme-violet a.toolbar-dash-link:hover {
  border-color: rgba(192, 132, 252, 0.5);
}
.stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.5rem 1rem 0;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.card-wrap {
  max-width: 42rem;
  width: 100%;
  margin: 0 auto;
  perspective: 1200px;
  flex: 1;
  display: flex;
  align-items: center;
  align-items: safe center;
  justify-content: center;
  min-height: min(52vh, 28rem);
}
.card {
  position: relative;
  width: 100%;
  background: var(--card);
  border-radius: 24px;
  padding: 2rem 1.75rem 2.25rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.65);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
  overflow: hidden;
}
.card-flip-inner {
  display: grid;
  transform-style: preserve-3d;
  transition: transform 0.42s cubic-bezier(0.4, 0, 0.2, 1);
}
.card.answer-open .card-flip-inner {
  transform: rotateY(180deg);
}
.card-face {
  grid-area: 1 / 1;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0.5px);
}
.card-face-front {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}
.card-face-back {
  transform: rotateY(180deg) translateZ(0.5px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  position: relative;
  min-width: 0;
  pointer-events: none;
}
.card.answer-open .card-face-front {
  pointer-events: none;
}
.card.answer-open .card-face-back {
  pointer-events: auto;
}
.card-answer-pill {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 3;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  background: rgba(138, 180, 248, 0.5);
  color: #0a1628;
  border: 1px solid rgba(168, 199, 250, 0.85);
  cursor: pointer;
  line-height: 1.2;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.12s ease;
}
.card-answer-pill:hover {
  filter: brightness(1.06);
}
.card-answer-pill:active {
  transform: scale(0.97);
}
.card.answer-open .card-answer-pill {
  background: rgba(255, 255, 255, 0.12);
  color: #e8f0fe;
  border-color: rgba(255, 255, 255, 0.22);
}
body.theme-violet .card-answer-pill {
  background: rgba(192, 132, 252, 0.45);
  color: #1a0a24;
  border-color: rgba(216, 180, 254, 0.75);
}
body.theme-violet .card.answer-open .card-answer-pill {
  background: rgba(255, 255, 255, 0.12);
  color: #faf5ff;
  border-color: rgba(233, 213, 255, 0.35);
}
.card-close {
  position: absolute;
  bottom: 0.85rem;
  right: 0.85rem;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.35);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: color 0.15s, opacity 0.2s;
}
.card.answer-open .card-close {
  opacity: 1;
  pointer-events: auto;
}
.card-close:hover {
  color: rgba(255, 255, 255, 0.75);
}
.card-close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.q-wrap {
  width: 100%;
  min-height: 6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-right: 4.75rem;
  padding-left: 0.75rem;
}
.card.answer-open {
  border-color: rgba(138, 180, 248, 0.45);
  box-shadow: var(--shadow), 0 0 22px rgba(138, 180, 248, 0.12);
}
body.theme-violet .card.answer-open {
  border-color: rgba(192, 132, 252, 0.55);
  box-shadow: var(--shadow), 0 0 24px rgba(168, 85, 247, 0.2);
}
.q {
  font-size: clamp(1rem, 2.8vw, 1.2rem);
  line-height: 1.55;
  margin: 0;
  font-weight: 500;
  text-align: center;
  color: #fafafa;
}
.card-face-back .a {
  font-size: 0.98rem;
  line-height: 1.55;
  color: #bdc1c6;
  padding-top: 1rem;
  padding-left: 0.75rem;
  padding-right: 4.75rem;
  padding-bottom: 0.25rem;
  border-top: 1px solid var(--border);
  display: block;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-align: center;
}
body.theme-violet .card-face-back .a {
  color: #ede4ff;
}

/* ——— Tablette & mobile (empilement, cibles tactiles) ——— */

@media (max-width: 900px) {
  .toolbar {
    max-width: none;
  }

  .card-wrap {
    max-width: 100%;
  }

  .kbd-hint {
    max-width: none;
  }
}

@media (max-width: 720px) {
  body {
    padding-bottom: calc(6.5rem + env(safe-area-inset-bottom, 0px));
    padding-left: max(0.65rem, env(safe-area-inset-left, 0px));
    padding-right: max(0.65rem, env(safe-area-inset-right, 0px));
  }

  .app-top {
    flex-direction: column;
    align-items: stretch;
    padding: 0.45rem 0 0.35rem;
    gap: 0.5rem;
  }

  .brand {
    font-size: 0.82rem;
  }

  .prog-strip-wrap {
    width: 100%;
    order: 0;
  }

  .learn-head-stats {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.35rem;
  }

  .learn-head-fraction {
    min-width: 0;
    flex: 1 1 auto;
    text-align: center;
  }

  .toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
    padding: 0.6rem 0.65rem;
  }

  .toolbar > label:not(.track-toggle-label) {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
  }

  .toolbar select {
    width: 100%;
    min-width: 0;
    max-width: none;
  }

  .toolbar-actions {
    margin-left: 0;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.45rem;
    border-top: 1px solid var(--border);
    gap: 0.5rem;
  }

  .track-toggle-text {
    font-size: 0.68rem;
  }

  .stage {
    padding: 0.35rem 0 0;
  }

  .card {
    padding: 1.35rem 1rem 1.6rem;
    border-radius: 18px;
  }

  .card-answer-pill {
    top: 0.65rem;
    right: 0.65rem;
    padding: 0.3rem 0.65rem;
    font-size: 0.72rem;
  }

  .q-wrap {
    padding-right: 3.25rem;
    padding-left: 0.35rem;
    min-height: 5rem;
  }

  .card-face-back .a {
    padding-right: 1rem;
    padding-left: 0.5rem;
    font-size: 0.92rem;
  }

  .q {
    font-size: clamp(0.95rem, 4.2vw, 1.12rem);
  }

  .learn-grade-bar {
    bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
    gap: 1rem;
  }

  button.grade-btn {
    width: 3.35rem;
    height: 3.35rem;
    font-size: 1.4rem;
  }

  .footer-dock {
    bottom: max(0.85rem, env(safe-area-inset-bottom, 0px));
    gap: 0.65rem;
    max-width: calc(100vw - 1.3rem);
  }

  .footer-prog {
    min-width: 0;
    font-size: 0.78rem;
    white-space: normal;
    text-align: center;
    line-height: 1.25;
    max-width: 42vw;
  }

  .nav-circle {
    width: 3.15rem;
    height: 3.15rem;
    flex-shrink: 0;
  }

  button.theme-fab {
    bottom: calc(4.35rem + env(safe-area-inset-bottom, 0px));
    right: max(0.65rem, env(safe-area-inset-right, 0px));
    padding: 0.45rem 0.75rem;
    font-size: 0.82rem;
  }

  .report-link {
    left: max(0.65rem, env(safe-area-inset-left, 0px));
    bottom: max(0.35rem, env(safe-area-inset-bottom, 0px));
    font-size: 0.72rem;
    max-width: min(11rem, 42vw);
    line-height: 1.25;
  }

  .kbd-hint {
    font-size: 0.66rem;
    margin-top: 0.5rem;
    padding: 0 0.15rem;
    line-height: 1.45;
  }
}

@media (max-width: 380px) {
  .brand {
    max-width: calc(100vw - 4rem);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  a.toolbar-dash-link {
    padding: 0.35rem 0.55rem;
    font-size: 0.78rem;
  }
}

button,
a.toolbar-dash-link,
.nav-circle,
.card-answer-pill,
.grade-btn {
  touch-action: manipulation;
}

@media (prefers-reduced-motion: reduce) {
  button { transition: none; }
  .prog-seg { transition: none; }
  .card-flip-inner {
    transition: none;
  }
}
.footer-dock {
  position: fixed;
  left: 50%;
  bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 30;
}
.footer-prog {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.75);
  font-variant-numeric: tabular-nums;
  min-width: 13ch;
  text-align: center;
  white-space: nowrap;
}
.nav-circle {
  width: 3rem;
  height: 3rem;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  line-height: 1;
  font-weight: 300;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}
.nav-circle:not(.secondary) {
  background: rgba(138, 180, 248, 0.18);
  border-color: rgba(138, 180, 248, 0.35);
  color: #e8f0fe;
}
body.theme-violet .nav-circle:not(.secondary) {
  background: rgba(192, 132, 252, 0.2);
  border-color: rgba(192, 132, 252, 0.4);
  color: #faf5ff;
}
.nav-circle.secondary {
  background: rgba(255, 255, 255, 0.05);
}
.kbd-hint {
  max-width: 48rem;
  margin: 0.75rem auto 0;
  font-size: 0.72rem;
  color: var(--muted);
  opacity: 0.85;
  line-height: 1.5;
}
.kbd-hint kbd {
  font-family: ui-monospace, monospace;
  font-size: 0.68rem;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--card);
}
.report-link {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  z-index: 20;
  font-size: 0.78rem;
  color: var(--muted);
  text-decoration: none;
  opacity: 0.9;
  padding: 0.35rem 0;
}
.report-link:hover {
  color: var(--accent);
  text-decoration: underline;
}
.report-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Bilan fin de série (suivi d'apprentissage) */
.session-summary[hidden] {
  display: none !important;
}
.session-summary:not([hidden]) {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.session-summary-panel {
  width: 100%;
  max-width: 22rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.35rem 1.25rem 1.25rem;
}
.session-summary-title {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
}
.session-summary-deck {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  color: var(--muted);
}
.session-summary-lead {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--muted);
}
.session-summary-stats {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}
.session-summary-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  font-size: 0.88rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.session-summary-row strong {
  margin-left: auto;
  font-size: 1.1rem;
  font-variant-numeric: tabular-nums;
}
.session-summary-ico {
  font-size: 0.85rem;
  opacity: 0.95;
}
.session-summary-ok {
  background: rgba(22, 90, 45, 0.35);
  color: #bbf7d0;
  border-color: rgba(74, 222, 128, 0.35);
}
.session-summary-ko {
  background: rgba(100, 20, 28, 0.4);
  color: #fecaca;
  border-color: rgba(248, 113, 113, 0.35);
}
.session-summary-total {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.4;
}
.session-summary-btn {
  width: 100%;
  padding: 0.55rem 1rem;
  border-radius: 10px;
  border: none;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--accent);
  color: var(--btn-on-accent);
}
.session-summary-btn:hover {
  filter: brightness(1.08);
}
.session-summary-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
body.theme-violet .session-summary-ok {
  background: rgba(74, 222, 128, 0.12);
  border-color: rgba(134, 239, 172, 0.35);
}
body.theme-violet .session-summary-ko {
  background: rgba(248, 113, 113, 0.12);
  border-color: rgba(251, 113, 133, 0.35);
}
