.slsp { --sp-accent: var(--wp--preset--color--accent-1, #0E7A5F); --sp-soft: var(--wp--preset--color--accent-2, #E3F0EB); --sp-line: #DDE2DE; --sp-muted: #5B6661;
  margin: 24px 0; padding: 22px 24px; border: 1px solid var(--sp-line); border-radius: 16px; background: #fff; max-width: 640px; }
.slsp-kicker { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--sp-soft); color: var(--sp-accent); font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.slsp-title { margin: 8px 0 4px; font-size: 1.3rem; }
.slsp-how { margin: 0 0 14px; color: var(--sp-muted); line-height: 1.5; }
.slsp-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 4px 0 8px; }
.slsp-tab { font: inherit; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 8px 10px; border: 1px solid var(--sp-line); border-radius: 10px; background: #fff; color: inherit; cursor: pointer; text-align: left; }
.slsp-tab-n { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--sp-muted); }
.slsp-tab-name { font-size: .9rem; font-weight: 600; line-height: 1.25; }
.slsp-tab[aria-selected="true"] { border-color: var(--sp-accent); background: var(--sp-soft); }
.slsp-tab[aria-selected="true"] .slsp-tab-n { color: var(--sp-accent); }
.slsp-desc { margin: 0 0 14px; font-size: .9rem; color: var(--sp-muted); }
.slsp-stage { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 130px; padding: 18px; border-radius: 14px; background: #F4F6F4; text-align: center; }
.slsp-state { font-size: 1.15rem; font-weight: 700; }
.slsp.is-thinking .slsp-state { color: var(--sp-accent); }
.slsp-ring { width: 70%; max-width: 280px; height: 8px; border-radius: 99px; background: #E2E7E3; overflow: hidden; visibility: hidden; }
.slsp-ring.is-on { visibility: visible; }
.slsp-ring span { display: block; height: 100%; width: 0; background: var(--sp-accent); }
.slsp-line { margin: 0; font-size: 1.05rem; line-height: 1.5; }
.slsp-line--nar { font-style: italic; color: var(--sp-muted); }
.slsp-line--es { font-weight: 600; }
.slsp-note { margin: 10px 0 0; padding: 10px 14px; border-left: 3px solid var(--sp-accent); border-radius: 6px; background: var(--sp-soft); font-size: .92rem; line-height: 1.5; }
.slsp-bar { display: flex; align-items: center; gap: 10px; margin: 14px 0 12px; }
.slsp-progress { flex: 1; height: 6px; border-radius: 99px; background: #E6EBE7; overflow: hidden; }
.slsp-progress span { display: block; height: 100%; width: 0; background: var(--sp-accent); transition: width .3s; }
.slsp-time { font-size: .85rem; color: var(--sp-muted); font-variant-numeric: tabular-nums; }
.slsp-ctrl { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.slsp-btn { font: inherit; font-weight: 700; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--sp-accent); background: #fff; color: var(--sp-accent); cursor: pointer; }
.slsp-btn:disabled { opacity: .4; cursor: default; }
.slsp-play { background: var(--sp-accent); color: #fff; min-width: 9em; }
.slsp-play .is-pause, .slsp-play .is-resume { display: none; }
.slsp.is-started .slsp-play .is-go { display: none; }
.slsp.is-started:not(.is-paused) .slsp-play .is-pause { display: inline; }
.slsp.is-started.is-paused .slsp-play .is-resume { display: inline; }
.slsp-opts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 14px; font-size: .9rem; color: var(--sp-muted); }
.slsp-seg { display: inline-flex; border: 1px solid var(--sp-line); border-radius: 999px; overflow: hidden; }
.slsp-seg button { font: inherit; font-size: .85rem; padding: 5px 12px; border: 0; background: #fff; color: var(--sp-muted); cursor: pointer; }
.slsp-seg button[aria-pressed="true"] { background: var(--sp-accent); color: #fff; }
.slsp-check { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; cursor: pointer; }
@media (max-width: 560px) { .slsp { padding: 16px; } .slsp-check { margin-left: 0; } .slsp-tabs { grid-template-columns: repeat(2, 1fr); } }
.slsp-line--hint { color: #2b3330; }
.slsp-line--hint::before { content: "Say: "; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--sp-accent); margin-right: 4px; }
.slsp-peek { border-style: dashed; }
/* Scene behind the prompts (characters from the lesson kit) */
.slsp.has-scene .slsp-stage { position: relative; overflow: hidden; min-height: 240px; justify-content: flex-start; padding-top: 14px; background: #EEE7DC; }
.slsp-scene { position: absolute; inset: 0; z-index: 0; }
.slsp-bg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .7; }
.slsp-cast { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; align-items: flex-end; gap: 18px; }
.slsp-scene .slk-ch { width: 58px; height: 90px; }
.slsp-scene .slk-ch.is-turn::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 62px; height: 12px; margin-left: -31px; border-radius: 50%; background: var(--sp-accent); opacity: .55; animation: slsp-glow 1s ease-in-out infinite alternate; }
.slsp-scene .slk-ch.is-turn svg { filter: drop-shadow(0 0 6px rgba(14, 122, 95, .8)); }
@keyframes slsp-glow { from { opacity: .25; } to { opacity: .7; } }
.slsp.has-scene .slsp-state, .slsp.has-scene .slsp-ring, .slsp.has-scene .slsp-line { position: relative; z-index: 1; }
.slsp.has-scene .slsp-state { padding: 4px 14px; border-radius: 999px; background: rgba(255, 255, 255, .9); }
.slsp.has-scene .slsp-line:not([hidden]) { max-width: 92%; padding: 6px 14px; border-radius: 12px; background: rgba(255, 255, 255, .92); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
@media (prefers-reduced-motion: reduce) { .slsp-scene .slk-ch.is-turn::after { animation: none; } }
@media (max-width: 560px) { .slsp.has-scene .slsp-stage { min-height: 220px; } .slsp-scene .slk-ch { width: 48px; height: 75px; } .slsp-cast { gap: 8px; } }
.slsp-name { position: absolute; left: 50%; bottom: -14px; transform: translateX(-50%); white-space: nowrap; font-size: .68rem; font-weight: 700; color: #3F4A45; background: rgba(255, 255, 255, .85); padding: 0 6px; border-radius: 6px; }
.slsp-cast { bottom: 18px; }
/* Inside a lesson the player fills the lesson column, like the other blocks. */
.sll .slsp { max-width: none; }
