/* Monólogo del día (Cuaderno design: ground #F6F7F9, ink #1A2130, blue #1F5C99, line #DDE1E7) */
.slm { --slm-ink: var(--wp--preset--color--contrast, #1A2130); --slm-muted: var(--wp--preset--color--accent-4, #5A6372);
  --slm-accent: var(--wp--preset--color--accent-1, #1F5C99); --slm-soft: var(--wp--preset--color--accent-2, #E4ECF5);
  --slm-line: var(--wp--preset--color--accent-6, #DDE1E7); --slm-surface: #FFFFFF; --slm-ground: var(--wp--preset--color--base, #F6F7F9);
  color: var(--slm-ink); }
.slm *, .slm *::before, .slm *::after { box-sizing: border-box; }
.slm [hidden] { display: none !important; }
.slm-offscreen { position: fixed; left: -9999px; top: 0; }

.slm-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; margin-bottom: 16px; }
.slm-date { margin: 0; font-weight: 700; }
.slm-streak { margin: 0; color: var(--slm-accent); font-weight: 700; font-size: 0.95rem; }

.slm-label { margin: 0 0 8px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--slm-muted); }
.slm-note { margin: 0 0 12px; font-size: 0.92rem; line-height: 1.5; color: var(--slm-muted); }

/* level tabs */
.slm-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 4px; background: var(--slm-soft); border-radius: 10px; margin-bottom: 16px; }
.slm-tab { appearance: none; border: 0; background: transparent; border-radius: 8px; padding: 10px 8px; cursor: pointer; color: var(--slm-ink);
  font: inherit; display: flex; flex-direction: column; align-items: center; gap: 2px; line-height: 1.2; }
.slm-tab__label { font-weight: 700; }
.slm-tab__sub { font-size: 0.8rem; color: var(--slm-muted); }
.slm-tab.is-active { background: var(--slm-surface); box-shadow: inset 0 0 0 1px var(--slm-line); }
.slm-tab:focus-visible, .slm-dur:focus-visible, .slm-btn:focus-visible { outline: 2px solid var(--slm-accent); outline-offset: 2px; }
.slm--busy .slm-tab { cursor: not-allowed; opacity: 0.6; }

/* cards */
.slm-card { background: var(--slm-surface); border: 1px solid var(--slm-line); border-radius: 10px; padding: clamp(20px, 4vw, 32px); margin-bottom: 16px; }
.slm-question { font-family: var(--wp--preset--font-family--bricolage, inherit); font-weight: 700; font-size: clamp(1.5rem, 3.2vw, 2rem); line-height: 1.15;
  letter-spacing: -0.01em; margin: 0 0 24px; }
.slm-helpers { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 720px) { .slm-helpers { grid-template-columns: 3fr 2fr; } }
.slm-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.slm-chip { display: inline-flex; flex-direction: column; padding: 6px 10px; border-radius: 6px; background: var(--slm-ground); line-height: 1.25; }
.slm-chip__es { font-weight: 700; }
.slm-chip__en { font-size: 0.82rem; color: var(--slm-muted); }
.slm-chips--conn .slm-chip { background: var(--slm-soft); }

/* settings */
.slm-settings { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: flex-end; margin-bottom: 12px; }
.slm-durations { display: flex; gap: 6px; flex-wrap: wrap; }
.slm-dur { appearance: none; font: inherit; font-size: 0.95rem; padding: 8px 12px; border-radius: 6px; border: 1px solid var(--slm-line); background: var(--slm-surface);
  color: var(--slm-ink); cursor: pointer; }
.slm-dur.is-active { border-color: var(--slm-accent); background: var(--slm-soft); font-weight: 700; }
.slm-dur:disabled { cursor: not-allowed; opacity: 0.6; }
.slm-setting--checks { display: flex; flex-direction: column; gap: 6px; }
.slm-check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 0.95rem; }
.slm-check input { width: 18px; height: 18px; accent-color: var(--slm-accent); margin: 0; }

/* stage */
.slm-stage { border-top: 1px solid var(--slm-line); padding-top: 20px; }
.slm-time { font-family: var(--wp--preset--font-family--bricolage, inherit); font-weight: 700; font-size: clamp(3rem, 9vw, 4.5rem); line-height: 1;
  margin: 0 0 12px; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.slm-bar { height: 6px; background: var(--slm-soft); border-radius: 6px; overflow: hidden; margin-bottom: 12px; }
.slm-bar__fill { display: block; height: 100%; width: 0; background: var(--slm-accent); }
.slm-status { margin: 0 0 16px; color: var(--slm-muted); min-height: 1.5em; }
.slm-controls { display: flex; flex-wrap: wrap; gap: 10px; }
.slm-btn { font: inherit; font-weight: 700; cursor: pointer; border-radius: 10px; }
.slm-btn.wp-element-button { border: 0; }
.slm-btn--ghost { appearance: none; background: transparent; color: var(--slm-accent); border: 1px solid var(--slm-accent); padding: 0.75rem 1.4rem; font-size: 1rem; }
.slm-btn--ghost:hover { background: var(--slm-soft); }
.slm-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* results */
.slm-results { background: var(--slm-surface); border: 1px solid var(--slm-line); border-radius: 10px; padding: clamp(20px, 4vw, 32px); margin-bottom: 16px; }
.slm-results__title { margin: 0 0 20px; font-size: 1.5rem; }
.slm-block { padding: 20px 0; border-top: 1px solid var(--slm-line); }
.slm-block:first-of-type { border-top: 0; padding-top: 0; }
.slm-audio { width: 100%; margin-bottom: 8px; }
.slm-transcript { width: 100%; font: inherit; font-size: 1rem; line-height: 1.6; padding: 12px 14px; border: 1px solid var(--slm-line); border-radius: 6px;
  background: var(--slm-ground); color: var(--slm-ink); resize: vertical; }
.slm-transcript:focus { outline: 2px solid var(--slm-accent); outline-offset: 1px; }
.slm-stats { margin: 8px 0 0; font-size: 0.92rem; color: var(--slm-muted); }
.slm-sample { margin: 16px 0 0; padding: 16px 18px; background: var(--slm-ground); border-radius: 10px; line-height: 1.7; }
.slm-archive { margin: 8px 0 0; }
.slm-note--warn { color: #8A4B12; background: #FBF1E6; padding: 10px 12px; border-radius: 6px; }
.slm-diag { display: flex; flex-direction: column; gap: 4px; margin: -6px 0 16px; font-size: 0.9rem; }
.slm-ind { display: block; }
.slm-ind:empty { display: none; }
.slm-ind::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; vertical-align: middle; background: #9AA39F; }
.slm-ind--ok { color: var(--slm-accent); }
.slm-ind--ok::before { background: var(--slm-accent); }
.slm-ind--wait::before { background: #C9A227; }
.slm-ind--bad { color: #8A4B12; }
.slm-ind--bad::before { background: #B4531A; }
.slm-wbox { margin-bottom: 14px; }
.slm-wbox .slm-controls { margin-bottom: 8px; }
.slm-wstatus:empty { display: none; }
/* custom recording player */
.slm-player { display: flex; align-items: center; gap: 14px; padding: 10px 16px 10px 10px; background: var(--slm-ground); border: 1px solid var(--slm-line); border-radius: 999px; margin-bottom: 8px; }
.slm-player audio { display: none; }
.slm-play { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--slm-accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.slm-play:hover { background: #174A7C; }
.slm-play:focus-visible { outline: 2px solid var(--slm-accent); outline-offset: 2px; }
.slm-ptime { flex: none; font-size: 0.9rem; color: var(--slm-muted); font-variant-numeric: tabular-nums; min-width: 6.5em; text-align: right; }
.slm-seek { --slm-fill: 0%; flex: 1; min-width: 0; -webkit-appearance: none; appearance: none; height: 6px; border-radius: 6px; cursor: pointer; margin: 0;
  background: linear-gradient(to right, var(--slm-accent) 0 var(--slm-fill), #DDE1E7 var(--slm-fill) 100%); }
.slm-seek::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: var(--slm-accent); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--slm-accent); }
.slm-seek::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--slm-accent); border: 2px solid #fff; }
.slm-seek::-moz-range-track { background: transparent; }
.slm-seek:focus-visible { outline: 2px solid var(--slm-accent); outline-offset: 4px; }
/* how it works */
.slm-how { border: 1px solid var(--slm-line); border-radius: 10px; padding: 18px 20px 6px; margin-bottom: 16px; background: var(--slm-surface); }
.slm-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; }
@media (min-width: 600px) { .slm-steps { grid-template-columns: repeat(2, 1fr); column-gap: 24px; } }
.slm-step { display: flex; gap: 12px; align-items: flex-start; padding: 10px 14px 14px 0; }
.slm-step__n { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--slm-accent); color: #fff; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; font-size: 0.95rem; line-height: 1; }
.slm-step__t { margin: 2px 0 4px; font-family: var(--wp--preset--font-family--bricolage, inherit); font-weight: 700; font-size: 1.05rem; line-height: 1.2; }
.slm-step__b { margin: 0; font-size: 0.95rem; line-height: 1.5; color: var(--slm-muted); }
.slm-step__b strong { color: var(--slm-ink); }
/* step callouts in results */
.slm-callout { background: var(--slm-soft); border: 0 !important; border-left: 4px solid var(--slm-accent) !important; border-radius: 10px; padding: 20px 22px !important; margin-top: 16px; }
.slm-callout__step { margin: 0 0 2px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--slm-accent); }
.slm-callout__title { margin: 0 0 8px; font-size: 1.35rem; line-height: 1.15; }
.slm-callout__body { margin: 0 0 14px; line-height: 1.55; }
.slm-todo { margin: 0; padding-left: 1.3em; line-height: 1.55; }
.slm-todo li { margin-bottom: 6px; }
.slm-todo li::marker { color: var(--slm-accent); font-weight: 700; }
/* emphasis */
.slm strong { font-weight: 700 !important; color: var(--slm-ink); }
.slm strong.slm-key { color: var(--slm-accent); }
/* question type + grammar */
.slm-type { display: inline-block; margin-left: 10px; padding: 2px 10px; border-radius: 6px; background: var(--slm-soft); color: var(--slm-accent); font-size: 0.85rem; font-weight: 700; vertical-align: 1px; }
.slm-grammar:empty { display: none; }
@media (min-width: 720px) { .slm-grammar { grid-column: 1 / -1; } }
.slm-gram { margin: 0; display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 10px 14px; border-radius: 6px; border: 1px dashed var(--slm-accent); }
.slm-gram__es { font-weight: 700; }
.slm-gram__en { font-size: 0.9rem; color: var(--slm-muted); }

/* Useful words toggle */
.slm-helpers:not(.is-open) { display: none; }
.slm-helpers.is-open { margin-top: 14px; }
.slm-helptoggle { display: inline-flex; align-items: center; gap: 6px; padding: 4px 0; border: 0; background: none; font: inherit; font-weight: 700; font-size: .95rem; color: var(--wp--preset--color--accent-1, #1F5C99); cursor: pointer; }
.slm-helptoggle:hover .slm-helptoggle__t { text-decoration: underline; }
.slm-helptoggle__i { display: inline-block; transition: transform .15s; }
.slm-helptoggle[aria-expanded="true"] .slm-helptoggle__i { transform: rotate(180deg); }
.slm-card > .slm-grammar { margin-top: 16px; }

.slm-hint { margin: 10px 0 0; font-size: 14px; color: #5A6372; }

/* Circumlocution tip */
.slp-tip, .slm-tip { margin: 10px 0 12px; padding: 9px 13px; border-left: 3px solid #F5B83D; border-radius: 10px; background: #FFF8E6; font-size: 14px; line-height: 1.45; text-align: left; }
.slp-tip__t, .slm-tip__t { margin: 0; font-weight: 700; color: #1A2130; }
.slp-tip__ex, .slm-tip__ex { margin: 3px 0 0; font-style: italic; color: #174A7C; }
