/* Simplex Learning Platform v0.7.1 */
@font-face {
  font-family: "Heebo Local";
  src: url("../fonts/heebo-hebrew-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: "Heebo Local";
  src: url("../fonts/heebo-latin-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Heebo Local";
  src: url("../fonts/heebo-hebrew-600.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: "Heebo Local";
  src: url("../fonts/heebo-latin-600.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Heebo Local";
  src: url("../fonts/heebo-hebrew-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: "Heebo Local";
  src: url("../fonts/heebo-latin-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --simplex-blue: #6d4ed3;
  --simplex-blue-bright: #8b5cf6;
  --simplex-blue-dark: #4a347d;
  --simplex-blue-deep: #312443;
  --simplex-blue-soft: #f0ebfb;
  --simplex-cyan: #ee7b5c;
  --simplex-ink: #282238;
  --simplex-text: #4a4358;
  --simplex-muted: #81798c;
  --simplex-bg: #f7f4ef;
  --simplex-card: #fffefa;
  --simplex-border: #e8e1d8;
  --simplex-success: #298d6b;
  --simplex-success-soft: #e9f7f0;
  --simplex-danger: #c85d6a;
  --simplex-danger-soft: #fbecef;
  --simplex-warning: #a8731f;
  --simplex-coral: #ee7b5c;
  --simplex-mint: #64b99a;
  --simplex-sun: #efbd55;
  --simplex-lilac: #c9b8ef;
  --simplex-radius: 24px;
  --simplex-shadow: 0 18px 45px rgba(55, 43, 68, .09);
  --simplex-shadow-hover: 0 22px 52px rgba(55, 43, 68, .15);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.simplex-learning-page {
  margin: 0;
  background:
    radial-gradient(circle at 8% 0, rgba(238,123,92,.09), transparent 28%),
    radial-gradient(circle at 92% 12%, rgba(109,78,211,.08), transparent 25%),
    linear-gradient(180deg, #fffdf9 0, var(--simplex-bg) 62%, #f1eee8 100%);
  color: var(--simplex-ink);
  font-family: "Heebo Local", Heebo, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.simplex-learning-root,
.simplex-learning-root button,
.simplex-learning-root input,
.simplex-learning-root select { font-family: "Heebo Local", Heebo, "Segoe UI", Arial, sans-serif; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible {
  outline: 3px solid rgba(12,143,224,.36);
  outline-offset: 3px;
}
.simplex-learning-root { min-height: 100vh; max-width: 100%; direction: rtl; overflow-x: clip; }
.slp-shell { max-width: 1210px; margin: 0 auto; padding: 18px 20px 106px; }

/* Header */
.slp-header {
  display: grid;
  grid-template-columns: minmax(190px, .8fr) auto minmax(150px, .8fr);
  align-items: center;
  gap: 24px;
  min-height: 74px;
  padding: 11px 18px;
  position: sticky;
  top: 10px;
  z-index: 30;
  background: rgba(255,255,255,.91);
  border: 1px solid rgba(210,225,238,.86);
  border-radius: 21px;
  box-shadow: 0 10px 32px rgba(16,55,91,.09);
  backdrop-filter: blur(16px);
}
.slp-brand-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 0;
  border: 0;
  color: var(--simplex-muted);
  background: transparent;
  text-align: right;
  font-weight: 600;
}
.slp-logo { width: 146px; max-width: 100%; height: 38px; object-fit: contain; object-position: right center; }
.slp-brand-button span { padding-right: 12px; border-right: 1px solid var(--simplex-border); white-space: nowrap; }
.slp-desktop-nav { display: flex; align-items: center; justify-content: center; gap: 2px; }
.slp-desktop-nav button {
  min-height: 42px;
  padding: 8px 14px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--simplex-text);
  font-weight: 600;
}
.slp-desktop-nav button:hover { color: var(--simplex-blue-dark); background: var(--simplex-blue-soft); }
.slp-user { text-align: left; color: var(--simplex-muted); font-size: 13px; }
.slp-user strong { display: block; color: var(--simplex-ink); font-size: 16px; font-weight: 700; }

/* Shared components */
.slp-card {
  background: var(--simplex-card);
  border: 1px solid var(--simplex-border);
  border-radius: var(--simplex-radius);
  box-shadow: var(--simplex-shadow);
}
.slp-eyebrow, .slp-kicker, .slp-section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: .01em;
}
.slp-eyebrow { padding: 7px 12px; color: var(--simplex-blue-dark); background: var(--simplex-blue-soft); font-size: 13px; }
.slp-kicker { padding: 7px 12px; color: #fff; border: 1px solid rgba(255,255,255,.26); background: rgba(255,255,255,.12); font-size: 14px; }
.slp-section-kicker { color: var(--simplex-blue); font-size: 14px; }
.slp-primary, .slp-secondary, .slp-ghost-light, .slp-answer, .slp-chip {
  border-radius: 14px;
  min-height: 48px;
  padding: 11px 20px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.slp-primary { color: #fff; background: linear-gradient(135deg, var(--simplex-blue), var(--simplex-blue-bright)); box-shadow: 0 10px 24px rgba(8,114,189,.24); }
.slp-primary:hover { transform: translateY(-1px); background: linear-gradient(135deg, var(--simplex-blue-dark), var(--simplex-blue)); }
.slp-primary:disabled, .slp-secondary:disabled { cursor: not-allowed; opacity: .45; transform: none; }
.slp-primary-light { color: var(--simplex-blue-deep); background: #fff; box-shadow: 0 12px 30px rgba(0,24,47,.18); }
.slp-primary-light:hover { color: #fff; background: var(--simplex-blue-bright); }
.slp-secondary { color: var(--simplex-blue-dark); background: #fff; border-color: var(--simplex-border); }
.slp-secondary:hover { border-color: #aacce5; background: #f7fbff; }
.slp-ghost-light { color: #fff; border-color: rgba(255,255,255,.38); background: rgba(255,255,255,.10); }
.slp-ghost-light:hover { background: rgba(255,255,255,.20); }

/* Dashboard */
.slp-dashboard-hero {
  min-height: 356px;
  margin-top: 24px;
  padding: clamp(28px, 4vw, 50px);
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr);
  align-items: center;
  gap: 20px;
  color: #fff;
  border-radius: 32px;
  background:
    linear-gradient(115deg, rgba(5,53,90,.96), rgba(8,114,189,.88)),
    var(--slp-pattern) center/cover;
  box-shadow: 0 24px 56px rgba(6,75,125,.23);
}
.slp-dashboard-hero::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  left: -130px;
  top: -160px;
  border-radius: 50%;
  background: rgba(39,184,231,.22);
}
.slp-hero-copy { position: relative; z-index: 2; max-width: 660px; }
.slp-hero-copy h1 { margin: 18px 0 9px; font-size: clamp(38px, 5vw, 64px); line-height: 1; font-weight: 700; }
.slp-hero-copy p { max-width: 610px; margin: 0; color: rgba(255,255,255,.82); font-size: 19px; line-height: 1.6; }
.slp-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.slp-hero-illustration { width: min(360px, 100%); max-height: 330px; object-fit: contain; align-self: end; justify-self: center; filter: drop-shadow(0 18px 25px rgba(0,0,0,.18)); position: relative; z-index: 1; }
.slp-dashboard-summary { display: grid; grid-template-columns: 1.2fr .8fr; gap: 16px; margin-top: -28px; position: relative; z-index: 4; padding: 0 24px; }
.slp-progress-card, .slp-today-card { min-height: 152px; padding: 20px 24px; display: flex; align-items: center; gap: 22px; }
.slp-progress-card > div:last-child, .slp-today-card > div { min-width: 0; }
.slp-summary-label { display: block; margin-bottom: 4px; color: var(--simplex-blue); font-size: 13px; font-weight: 700; }
.slp-progress-card strong, .slp-today-card strong { display: block; font-size: 21px; }
.slp-progress-card p, .slp-today-card p { margin: 4px 0 0; color: var(--simplex-muted); line-height: 1.45; }
.slp-progress-ring {
  --progress: 34;
  width: 106px;
  min-width: 106px;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(closest-side, #fff 73%, transparent 74% 99%, #fff 0), conic-gradient(var(--simplex-blue) calc(var(--progress) * 1%), #e3edf5 0);
}
.slp-progress-ring strong { display: block; text-align: center; font-size: 26px; line-height: 1; }
.slp-progress-ring span { display: block; margin-top: 5px; color: var(--simplex-muted); font-size: 10px; text-align: center; }
.slp-today-icon { width: 58px; min-width: 58px; height: 58px; display: grid; place-items: center; border-radius: 18px; color: #fff; background: linear-gradient(135deg, #16a667, #48c88c); font-size: 26px; box-shadow: 0 10px 25px rgba(20,148,90,.22); }
.slp-section-title { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin: 38px 0 15px; }
.slp-section-title h2 { margin: 3px 0 0; font-size: clamp(27px, 4vw, 36px); line-height: 1.1; }
.slp-section-title p { margin: 7px 0 0; color: var(--simplex-muted); font-size: 16px; }
.slp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.slp-action-card {
  min-height: 190px;
  padding: 20px;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 56px 1fr;
  grid-template-rows: 1fr auto;
  align-items: start;
  gap: 16px;
  border-color: rgba(214,229,241,.9);
  text-align: right;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.slp-action-card::after { content: ""; position: absolute; width: 120px; height: 120px; left: -60px; bottom: -65px; border-radius: 50%; background: var(--simplex-blue-soft); opacity: .7; }
.slp-action-card:hover { transform: translateY(-5px); border-color: #b9d6ea; box-shadow: var(--simplex-shadow-hover); }
.slp-icon { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 18px; color: var(--simplex-blue-dark); background: linear-gradient(145deg, #edf8ff, #dfeff9); font-size: 23px; font-weight: 700; }
.slp-action-simulation .slp-icon { color: #7c4d12; background: linear-gradient(145deg, #fff8e8, #fbe9bf); }
.slp-action-vocabulary .slp-icon { color: #086c44; background: linear-gradient(145deg, #ecfbf3, #d6f4e4); }
.slp-action-mistakes .slp-icon { color: #9b3440; background: linear-gradient(145deg, #fff1f2, #fde0e3); }
.slp-action-copy h3 { margin: 4px 0 6px; font-size: 21px; }
.slp-action-copy p { margin: 0; color: var(--simplex-muted); line-height: 1.45; }
.slp-card-arrow { grid-column: 1 / -1; justify-self: end; color: var(--simplex-blue); font-size: 22px; transition: transform .2s ease; }
.slp-action-card:hover .slp-card-arrow { transform: translateX(-4px); }

/* Practice and simulations */
.slp-stage { max-width: 900px; margin: 28px auto 0; }
.slp-stage-card { padding: clamp(22px, 4vw, 42px); }
.slp-stage-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.slp-stage-top strong { font-size: 19px; }
.slp-stage-top small { display: block; margin-top: 2px; color: var(--simplex-muted); }
.slp-simulation-section-note { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -4px 0 15px; padding: 9px 12px; border: 1px solid #e4dbf4; border-radius: 13px; color: #5f438e; background: #faf8ff; font-size: 13px; }
.slp-simulation-section-note span { font-weight: 700; }
.slp-simulation-section-note small { color: #8a7d9b; }
.slp-bar { height: 9px; overflow: hidden; border-radius: 999px; background: #e7eff6; }
.slp-bar > div { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--simplex-blue-dark), var(--simplex-cyan)); transition: width .25s ease; }
.slp-question { margin: 26px 0; direction: ltr; text-align: left; color: #10223d; font-family: "Segoe UI", Arial, sans-serif; font-size: clamp(23px, 4vw, 34px); font-weight: 700; line-height: 1.5; }
.slp-passage { margin: 22px 0; overflow: hidden; border: 1px solid var(--simplex-border); border-radius: 18px; background: #f8fbfe; }
.slp-passage summary { cursor: pointer; padding: 15px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--simplex-blue-dark); font-weight: 700; }
.slp-passage summary small { color: var(--simplex-muted); font-size: 11px; font-weight: 600; }
.slp-passage-copy { max-height: 340px; overflow: auto; padding: 2px 20px 20px; direction: ltr; color: var(--simplex-text); text-align: left; line-height: 1.72; }
.slp-reading-reference-hint { margin: -10px 0 22px; padding: 9px 12px; border-radius: 11px; background: #fff8c9; color: #66551b; font-size: 13px; font-weight: 700; text-align: right; }
.slp-reading-reference-hint--general { background: #f2eefb; color: #665583; }
.slp-passage-paragraph { margin: 15px 0 0; padding: 14px 0 0; border-top: 1px solid #dfebf2; }
.slp-passage-paragraph:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.slp-answers { display: grid; gap: 11px; }
.slp-answer { width: 100%; min-height: 58px; direction: ltr; color: var(--simplex-ink); background: #fff; border-color: var(--simplex-border); text-align: left; font-family: "Segoe UI", Arial, sans-serif; font-weight: 600; }
.slp-answer:hover:not(:disabled) { border-color: var(--simplex-blue); background: #f5fbff; transform: translateX(2px); }
.slp-answer.is-selected { border-color: var(--simplex-blue); background: #f4faff; box-shadow: 0 0 0 3px rgba(8,114,189,.11); }
.slp-answer.is-correct { color: #11673e; border-color: #82d8aa; background: var(--simplex-success-soft); }
.slp-answer.is-wrong { color: #a33a45; border-color: #f2aab0; background: var(--simplex-danger-soft); }
.slp-feedback { margin-top: 18px; padding: 18px 20px; border-radius: 17px; line-height: 1.65; }
.slp-feedback strong { display: block; margin-bottom: 4px; font-size: 18px; }
.slp-feedback.correct { color: #11673e; background: var(--simplex-success-soft); }
.slp-feedback.wrong { color: #934326; background: #fff5eb; }
.slp-practice-reset { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 18px 0; padding: 16px 18px; border: 1px solid #e5d8fa; border-radius: 18px; background: linear-gradient(125deg,#fcfaff,#f7f3ff); color: #46395b; box-shadow: 0 8px 20px rgba(83,62,123,.06); }
.slp-practice-reset strong { display: block; font-size: 16px; }
.slp-practice-reset p { max-width: 620px; margin: 4px 0 0; color: var(--simplex-muted); font-size: 13px; line-height: 1.55; }
.slp-practice-reset-button { flex: 0 0 auto; min-height: 42px; white-space: nowrap; color: #5a43a1; border-color: #cdbcf1; background: #fff; }
.slp-practice-reset.is-compact { margin: 20px 0 4px; text-align: right; }
.slp-stage-actions { margin-top: 24px; display: flex; justify-content: space-between; gap: 12px; }
.slp-result-score { padding: 30px 0; text-align: center; }
.slp-result-score strong { display: block; color: var(--simplex-blue-dark); font-size: clamp(58px, 10vw, 90px); line-height: 1; }
.slp-result-score span { color: var(--simplex-muted); font-size: 18px; }
.slp-result-score small { display: block; margin-top: 8px; color: var(--simplex-text); font-size: 14px; font-weight: 700; }
.slp-estimate-note { max-width: 520px; margin: -7px auto 20px; color: var(--simplex-muted); font-size: 13px; line-height: 1.5; text-align: center; }
.slp-simulation-section-results { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; margin: 0 0 18px; }
.slp-simulation-section-results > div { min-width: 0; padding: 10px; border: 1px solid #e9e1da; border-radius: 13px; background: #fffdfa; }
.slp-simulation-section-results span { display: block; overflow: hidden; color: var(--simplex-muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.slp-simulation-section-results strong { display: block; margin-top: 3px; color: #5f438e; font-size: 18px; }
.slp-timer { direction: ltr; color: var(--simplex-blue-dark); font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.slp-list { display: grid; gap: 12px; }
.slp-list-item { padding: 18px; display: flex; align-items: start; justify-content: space-between; gap: 14px; }
.slp-list-item h4 { margin: 0 0 5px; }
.slp-list-item p { margin: 0; color: var(--simplex-muted); }
.slp-review-question-button {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 8px 13px;
  border: 1px solid #d9cee8;
  border-radius: 12px;
  color: #5f438e;
  background: #faf7ff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.slp-review-question-button:hover,
.slp-review-question-button:focus-visible { border-color: #7655b5; background: #f1eafd; }
.slp-simulation-item { align-items: center; }
.slp-simulation-item h3 { margin: 8px 0 5px; }
.slp-bank-count { width: fit-content; margin-top: 10px; padding: 5px 9px; display: inline-flex; border-radius: 999px; color: var(--simplex-blue-dark); background: var(--simplex-blue-soft); font-size: 13px; font-weight: 700; }
.slp-inline-bank-count { width: fit-content; margin-top: 10px; padding: 6px 10px; display: inline-flex; border: 1px solid #bfdaeb; border-radius: 999px; color: var(--simplex-blue-dark); background: #f4faff; font-size: 13px; font-weight: 700; }

/* Vocabulary swipe deck */
.slp-vocab-workspace { max-width: 920px; margin: 30px auto 0; }
.slp-vocab-toolbar { display: flex; align-items: start; justify-content: space-between; gap: 18px; }
.slp-vocab-toolbar h1 { margin: 2px 0 2px; font-size: clamp(34px, 5vw, 48px); line-height: 1; }
.slp-vocab-toolbar p { margin: 8px 0 0; color: var(--simplex-muted); font-size: 16px; }
.slp-vocab-toolbar-actions { display: flex; align-items: center; gap: 9px; }
.slp-audio-toggle {
  min-height: 44px;
  padding: 8px 13px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--simplex-border);
  border-radius: 13px;
  color: var(--simplex-muted);
  background: #fff;
  font-weight: 600;
}
.slp-audio-toggle.is-on { color: var(--simplex-blue-dark); border-color: #a8d0e9; background: var(--simplex-blue-soft); }
.slp-vocab-tabs { width: fit-content; margin: 22px auto 4px; padding: 5px; display: flex; gap: 4px; border: 1px solid var(--simplex-border); border-radius: 16px; background: #edf4f9; }
.slp-vocab-tabs button { min-width: 126px; min-height: 42px; padding: 8px 16px; border: 0; border-radius: 12px; color: var(--simplex-muted); background: transparent; font-weight: 700; }
.slp-vocab-tabs button.is-active { color: var(--simplex-blue-dark); background: #fff; box-shadow: 0 5px 16px rgba(16,55,91,.09); }
.slp-vocab-filters { width: min(610px,100%); margin: 14px auto 0; padding: 9px; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 9px; border: 1px solid #e5ddd5; border-radius: 16px; background: rgba(255,255,255,.62); }
.slp-vocab-filters label > span { display: block; margin: 0 5px 5px; color: #817787; font-size: 11px; font-weight: 700; }
.slp-vocab-filters select { width: 100%; min-height: 42px; padding: 7px 12px; border: 1px solid #ddd2c9; border-radius: 11px; color: #473a54; background: #fff; font: inherit; font-weight: 600; }
.slp-vocab-mode { min-height: 42px; padding: 3px; display: flex; gap: 3px; border-radius: 11px; background: #eee9e3; }
.slp-vocab-mode button { min-height: 36px; padding: 6px 11px; border: 0; border-radius: 9px; color: #756b7a; background: transparent; font-size: 12px; font-weight: 700; white-space: nowrap; }
.slp-vocab-mode button span { display: inline-grid; min-width: 20px; height: 20px; margin-inline-start: 3px; place-items: center; border-radius: 999px; background: rgba(255,255,255,.72); font-size: 10px; }
.slp-vocab-mode button.is-active { color: #523d7b; background: #fff; box-shadow: 0 4px 12px rgba(58,42,71,.08); }
.slp-vocab-unit-status { width: min(610px,100%); margin: 10px auto 0; padding: 11px 13px; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 7px 12px; border: 1px solid #e5ddd5; border-radius: 15px; color: #6d6373; background: rgba(255,255,255,.72); }
.slp-vocab-unit-status > div:first-child { min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 8px; }
.slp-vocab-unit-status strong { color: #49385c; font-size: 13px; }
.slp-vocab-unit-status span { font-size: 11px; }
.slp-vocab-unit-status > b { align-self: center; color: #614a9b; font-size: 13px; }
.slp-vocab-unit-meter { grid-column: 1 / -1; height: 5px; overflow: hidden; border-radius: 99px; background: #eae3df; }
.slp-vocab-unit-meter span { height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg, #7253cb, #83bca0); transition: width .28s ease; }
.slp-vocab-empty { width: min(610px,100%); margin: 28px auto 0; padding: 40px 22px; text-align: center; }
.slp-vocab-empty > span { width: 48px; height: 48px; margin: 0 auto 12px; display: grid; place-items: center; border-radius: 50%; color: #377d64; background: #e8f6ef; font-size: 24px; }
.slp-vocab-empty h2 { margin: 0 0 7px; font-size: 22px; }
.slp-vocab-empty p { margin: 0 0 18px; color: var(--simplex-muted); }
.slp-vocab-meta { margin-top: 20px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; }
.slp-vocab-meta > div:first-child { display: flex; align-items: baseline; gap: 5px; }
.slp-vocab-meta > div:first-child strong { color: var(--simplex-blue-dark); font-size: 24px; }
.slp-vocab-meta > div:first-child span { color: var(--simplex-muted); }
.slp-vocab-progress { height: 8px; overflow: hidden; border-radius: 999px; background: #dfeaf3; }
.slp-vocab-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--simplex-blue), var(--simplex-cyan)); }
.slp-vocab-score { display: flex; gap: 8px; font-size: 13px; font-weight: 700; }
.slp-vocab-score span { padding: 5px 9px; border-radius: 999px; }
.slp-vocab-score .is-learning { color: var(--simplex-danger); background: var(--simplex-danger-soft); }
.slp-vocab-score .is-known { color: var(--simplex-success); background: var(--simplex-success-soft); }
.slp-swipe-instruction { margin: 22px auto 12px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; color: var(--simplex-muted); font-size: 14px; text-align: center; }
.slp-swipe-instruction .is-learning { color: var(--simplex-danger); text-align: right; font-weight: 700; }
.slp-swipe-instruction .is-known { color: var(--simplex-success); text-align: left; font-weight: 700; }
.slp-vocab-deck { width: min(650px, 100%); min-height: 370px; margin: 0 auto; position: relative; display: grid; place-items: center; perspective: 1300px; }
.slp-vocab-ghost { position: absolute; width: calc(100% - 42px); height: 320px; border: 1px solid var(--simplex-border); border-radius: 28px; background: #fff; box-shadow: 0 12px 34px rgba(16,55,91,.08); }
.slp-vocab-ghost-one { top: 20px; transform: scale(.97); opacity: .82; }
.slp-vocab-ghost-two { top: 32px; transform: scale(.93); opacity: .46; }
.slp-vocab-card {
  width: calc(100% - 28px);
  height: 320px;
  padding: 0;
  position: relative;
  z-index: 4;
  border: 0;
  border-radius: 28px;
  background: transparent;
  box-shadow: 0 24px 55px rgba(16,55,91,.18);
  transform-style: preserve-3d;
  touch-action: pan-y;
  user-select: none;
  cursor: grab;
  transition: transform .28s cubic-bezier(.2,.8,.2,1), opacity .25s ease;
}
.slp-vocab-card.is-dragging { cursor: grabbing; transition: none; }
.slp-vocab-card.is-exiting-right { transform: translateX(125%) rotate(18deg) !important; opacity: 0; }
.slp-vocab-card.is-exiting-left { transform: translateX(-125%) rotate(-18deg) !important; opacity: 0; }
.slp-pronounce {
  position: absolute;
  top: 34px;
  left: 40px;
  z-index: 8;
  min-height: 40px;
  padding: 7px 11px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #b9d8eb;
  border-radius: 12px;
  color: var(--simplex-blue-dark);
  background: rgba(255,255,255,.94);
  box-shadow: 0 7px 18px rgba(16,55,91,.11);
}
.slp-pronounce:hover { transform: translateY(-1px); background: var(--simplex-blue-soft); }
.slp-pronounce.is-speaking, [data-speak-text].is-speaking { color: #9f5360; border-color: #ead2d6; background: #fff3f4; }
.slp-pronounce strong { font-size: 13px; }
.slp-vocab-card-inner { display: block; width: 100%; height: 100%; position: relative; border-radius: inherit; transform-style: preserve-3d; transition: transform .55s cubic-bezier(.2,.75,.25,1); }
.slp-vocab-card.is-flipped .slp-vocab-card-inner { transform: rotateY(180deg); }
.slp-vocab-face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px;
  border: 1px solid #d7e6f2;
  border-radius: inherit;
  background: linear-gradient(145deg, #fff, #f7fbff);
  backface-visibility: hidden;
}
.slp-vocab-face::before { content: ""; position: absolute; width: 210px; height: 210px; top: -110px; left: -75px; border-radius: 50%; background: linear-gradient(135deg, rgba(39,184,231,.20), rgba(8,114,189,.08)); }
.slp-vocab-back { color: #fff; border-color: transparent; background: linear-gradient(135deg, var(--simplex-blue-deep), var(--simplex-blue)); transform: rotateY(180deg); }
.slp-vocab-back::before { background: rgba(255,255,255,.09); }
.slp-vocab-unit { position: absolute; top: 24px; right: 26px; color: var(--simplex-muted); font-weight: 600; }
.slp-vocab-back .slp-vocab-unit { color: rgba(255,255,255,.72); }
.slp-vocab-word { direction: ltr; color: #0a172a; font-family: "Segoe UI", Arial, sans-serif; font-size: clamp(44px, 8vw, 72px); font-weight: 800; line-height: 1.05; }
.slp-vocab-translation { max-width: 90%; font-size: clamp(32px, 6vw, 52px); font-weight: 700; line-height: 1.18; }
.slp-flip-hint { position: absolute; bottom: 25px; color: var(--simplex-muted); font-size: 14px; }
.slp-vocab-back .slp-flip-hint { color: rgba(255,255,255,.72); }
.slp-swipe-stamp { position: absolute; z-index: 10; top: 36px; padding: 7px 14px; border: 3px solid currentColor; border-radius: 12px; background: rgba(255,255,255,.92); font-size: 22px; font-weight: 700; letter-spacing: .03em; opacity: 0; pointer-events: none; }
.slp-swipe-stamp.is-known { right: 28px; color: var(--simplex-success); transform: rotate(10deg); }
.slp-swipe-stamp.is-learning { left: 28px; color: var(--simplex-danger); transform: rotate(-10deg); }
.slp-vocab-book { width: 112px; position: absolute; left: -60px; bottom: -12px; z-index: 1; opacity: .38; filter: drop-shadow(0 12px 18px rgba(16,55,91,.12)); transform: rotate(-7deg); pointer-events: none; }
.slp-vocab-actions { width: min(610px, 100%); margin: 16px auto 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 12px; }
.slp-vocab-choice, .slp-vocab-flip { min-height: 64px; border-radius: 18px; background: #fff; font-weight: 700; transition: transform .18s ease, opacity .18s ease, box-shadow .18s ease; }
.slp-vocab-choice { padding: 8px 14px; display: grid; grid-template-columns: auto 1fr; grid-template-rows: 1fr 1fr; align-items: center; column-gap: 9px; text-align: right; }
.slp-vocab-choice > span { grid-row: 1 / 3; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; font-size: 18px; }
.slp-vocab-choice strong { align-self: end; }
.slp-vocab-choice small { align-self: start; opacity: .72; font-weight: 400; }
.slp-vocab-choice.is-learning { color: var(--simplex-danger); border: 1px solid #f3b8bd; }
.slp-vocab-choice.is-learning > span { background: var(--simplex-danger-soft); }
.slp-vocab-choice.is-known { color: var(--simplex-success); border: 1px solid #a8dfc3; }
.slp-vocab-choice.is-known > span { background: var(--simplex-success-soft); }
.slp-vocab-choice:not(:disabled):hover { transform: translateY(-2px); box-shadow: var(--simplex-shadow); }
.slp-vocab-choice:disabled { cursor: not-allowed; opacity: .38; }
.slp-vocab-flip { min-width: 132px; padding: 8px 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--simplex-blue-dark); border: 1px solid #afd2e9; }
.slp-vocab-flip span { font-size: 20px; }
.slp-vocab-flip:disabled { opacity: .28; cursor: default; }
.slp-keyboard-hint { margin-top: 13px; color: var(--simplex-muted); text-align: center; font-size: 13px; }

/* Full vocabulary library */
.slp-vocabulary-library { max-width: 930px; margin: 30px auto 0; }
.slp-vocab-search { margin-top: 24px; padding: 18px; border: 1px solid var(--simplex-border); border-radius: 20px; background: #fff; box-shadow: 0 10px 28px rgba(16,55,91,.07); }
.slp-vocab-search label { display: block; margin-bottom: 8px; color: var(--simplex-text); font-weight: 700; }
.slp-vocab-search > div { display: grid; grid-template-columns: 1fr auto; gap: 9px; }
.slp-vocab-search input { width: 100%; min-height: 50px; padding: 10px 15px; border: 1px solid #cbddea; border-radius: 14px; color: var(--simplex-ink); background: #f9fcfe; font-size: 16px; }
.slp-vocab-search input:focus { outline: 3px solid rgba(12,143,224,.14); border-color: var(--simplex-blue); }
.slp-library-summary { margin: 20px 0 10px; display: flex; align-items: baseline; gap: 8px; }
.slp-library-summary strong { color: var(--simplex-blue-dark); font-size: 30px; }
.slp-library-summary span { color: var(--simplex-muted); }
.slp-word-list { display: grid; gap: 9px; }
.slp-word-row { min-height: 82px; padding: 13px 16px; display: grid; grid-template-columns: auto minmax(150px, .8fr) 1px minmax(180px, 1fr); align-items: center; gap: 16px; border: 1px solid var(--simplex-border); border-radius: 18px; background: #fff; box-shadow: 0 7px 20px rgba(16,55,91,.055); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.slp-word-row:hover { transform: translateY(-2px); border-color: #b9d7ea; box-shadow: 0 11px 26px rgba(16,55,91,.10); }
.slp-word-speaker { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid #b9d8eb; border-radius: 13px; color: var(--simplex-blue-dark); background: var(--simplex-blue-soft); font-size: 18px; }
.slp-word-speaker:hover { color: #fff; background: var(--simplex-blue); }
.slp-word-english { direction: ltr; text-align: left; }
.slp-word-english strong { display: block; color: #10223d; font-family: "Segoe UI", Arial, sans-serif; font-size: 21px; }
.slp-word-english span { display: block; margin-top: 3px; color: var(--simplex-muted); font-size: 12px; }
.slp-word-divider { width: 1px; height: 42px; background: var(--simplex-border); }
.slp-word-hebrew { color: var(--simplex-text); font-size: 18px; font-weight: 600; }
.slp-library-loading { padding: 28px; color: var(--simplex-muted); text-align: center; }
.slp-library-more { width: 100%; min-height: 52px; margin-top: 14px; border: 1px dashed #9fc9e4; border-radius: 16px; color: var(--simplex-blue-dark); background: #f5fbff; font-weight: 700; }
.slp-library-more:hover { border-style: solid; background: var(--simplex-blue-soft); }

/* Remaining states */
.slp-empty { padding: 42px; color: var(--simplex-muted); text-align: center; }
.slp-loading { min-height: 70vh; display: grid; place-items: center; color: var(--simplex-muted); }
.slp-login-gate { max-width: 570px; margin: 80px auto; padding: 42px; text-align: center; }
.slp-login-gate h1 { margin-top: 20px; }
.slp-login-gate p { color: var(--simplex-muted); line-height: 1.7; }
.slp-bottom-nav { display: none; }

@media (max-width: 980px) {
  .slp-header { grid-template-columns: 1fr auto; }
  .slp-desktop-nav { display: none; }
  .slp-dashboard-hero { grid-template-columns: 1.2fr .8fr; }
  .slp-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .slp-shell { padding: 10px 12px 96px; }
  .slp-header { top: 6px; min-height: 64px; padding: 9px 12px; border-radius: 18px; }
  .slp-logo { width: 128px; height: 34px; }
  .slp-brand-button span, .slp-user { display: none; }
  .slp-dashboard-hero { min-height: 435px; padding: 28px 22px 0; grid-template-columns: 1fr; align-items: start; border-radius: 26px; }
  .slp-hero-copy h1 { font-size: 42px; }
  .slp-hero-copy p { font-size: 16px; }
  .slp-hero-actions { margin-top: 20px; }
  .slp-hero-actions button { flex: 1 1 160px; }
  .slp-hero-illustration { width: 245px; max-height: 210px; margin-top: -10px; }
  .slp-dashboard-summary { grid-template-columns: 1fr; margin-top: 14px; padding: 0; }
  .slp-progress-card, .slp-today-card { min-height: 130px; padding: 17px; }
  .slp-today-card { display: none; }
  .slp-progress-ring { width: 88px; min-width: 88px; }
  .slp-grid { gap: 10px; }
  .slp-action-card { min-height: 165px; padding: 15px; grid-template-columns: 45px 1fr; gap: 11px; }
  .slp-icon { width: 45px; height: 45px; border-radius: 14px; }
  .slp-action-copy h3 { font-size: 18px; }
  .slp-action-copy p { font-size: 13px; }
  .slp-stage-card { border-radius: 20px; }
  .slp-stage-actions { flex-direction: column-reverse; }
  .slp-stage-actions button { width: 100%; }
  .slp-practice-reset { align-items: stretch; flex-direction: column; gap: 10px; padding: 14px; border-radius: 15px; }
  .slp-practice-reset-button { width: 100%; }
  .slp-vocab-workspace { margin-top: 22px; }
  .slp-vocab-toolbar h1 { font-size: 36px; }
  .slp-vocab-toolbar p { font-size: 14px; }
  .slp-vocab-toolbar-actions { align-items: flex-end; flex-direction: column-reverse; }
  .slp-vocab-toolbar .slp-secondary { padding: 8px 14px; min-height: 42px; }
  .slp-audio-toggle { min-height: 40px; padding: 7px 10px; }
  .slp-audio-toggle span:last-child { display: none; }
  .slp-vocab-tabs { width: 100%; }
  .slp-vocab-tabs button { min-width: 0; flex: 1; }
  .slp-vocab-meta { grid-template-columns: auto 1fr; }
  .slp-vocab-score { grid-column: 1 / -1; justify-content: center; }
  .slp-swipe-instruction { margin-top: 14px; font-size: 12px; }
  .slp-vocab-deck { min-height: 320px; }
  .slp-vocab-card { width: calc(100% - 12px); height: 280px; border-radius: 23px; }
  .slp-vocab-ghost { width: calc(100% - 28px); height: 280px; border-radius: 23px; }
  .slp-vocab-face { padding: 24px; }
  .slp-vocab-book { display: none; }
  .slp-pronounce { top: 30px; left: 24px; }
  .slp-pronounce strong { display: none; }
  .slp-vocab-actions { grid-template-columns: 1fr 1fr; }
  .slp-vocab-flip { grid-column: 1 / -1; grid-row: 1; min-height: 52px; flex-direction: row; }
  .slp-vocab-choice { grid-row: 2; }
  .slp-keyboard-hint { display: none; }
  .slp-vocabulary-library { margin-top: 22px; }
  .slp-vocab-search { padding: 13px; }
  .slp-vocab-search > div { grid-template-columns: 1fr; }
  .slp-word-row { min-height: 88px; padding: 12px; grid-template-columns: auto minmax(105px, .9fr) minmax(100px, 1fr); gap: 10px; }
  .slp-word-divider { display: none; }
  .slp-word-speaker { width: 40px; height: 40px; }
  .slp-word-english strong { font-size: 18px; }
  .slp-word-hebrew { font-size: 16px; }
  .slp-bottom-nav {
    position: fixed;
    right: 0;
    left: 0;
    bottom: 0;
    height: calc(70px + env(safe-area-inset-bottom));
    padding: 7px 10px env(safe-area-inset-bottom);
    z-index: 40;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: rgba(255,255,255,.95);
    border-top: 1px solid var(--simplex-border);
    box-shadow: 0 -10px 30px rgba(16,55,91,.08);
    backdrop-filter: blur(14px);
  }
  .slp-bottom-nav button { border: 0; border-radius: 12px; color: var(--simplex-muted); background: transparent; font-size: 12px; }
  .slp-bottom-nav button.is-active { color: var(--simplex-blue-dark); background: var(--simplex-blue-soft); font-weight: 700; }
}

@media (max-width: 440px) {
  .slp-action-card { min-height: 154px; grid-template-rows: auto auto; }
  .slp-card-arrow { display: none; }
  .slp-dashboard-hero { min-height: 460px; }
  .slp-vocab-choice small { display: none; }
  .slp-vocab-choice { min-height: 58px; grid-template-rows: 1fr; }
  .slp-vocab-choice > span { grid-row: 1; }
}

/* Journey, diagnostics and reporting — v0.6 */
.slp-onboarding-shell { min-height: 100vh; display: grid; place-items: center; }
.slp-onboarding-card { width: min(980px,100%); display: grid; grid-template-columns: .9fr 1.1fr; overflow: hidden; background: var(--simplex-card); border: 1px solid var(--simplex-border); border-radius: 34px; box-shadow: var(--simplex-shadow); }
.slp-onboarding-copy { padding: 54px 44px; color: white; background: linear-gradient(145deg,#5f4ab2,#856bd9 58%,#a788e4); }
.slp-onboarding-copy h1 { margin: 12px 0 10px; font-size: clamp(36px,5vw,58px); line-height: 1.02; }
.slp-onboarding-copy p { margin: 0; color: rgba(255,255,255,.84); line-height: 1.7; }
.slp-onboarding-copy .slp-section-kicker { color: #ffe2d9; }
.slp-onboarding-copy ol { margin: 34px 0 0; padding: 0; list-style: none; counter-reset: step; }
.slp-onboarding-copy li { counter-increment: step; display: flex; align-items: center; gap: 12px; margin: 14px 0; }
.slp-onboarding-copy li::before { content: counter(step); width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28); font-weight: 700; }
.slp-onboarding-form { padding: 46px 42px; display: grid; gap: 23px; }
.slp-onboarding-form > label > span, .slp-onboarding-form legend { display: block; margin-bottom: 8px; color: var(--simplex-ink); font-weight: 700; }
.slp-onboarding-form input[type=date], .slp-onboarding-form select { width: 100%; min-height: 52px; padding: 0 15px; color: var(--simplex-ink); background: #fff; border: 1px solid var(--simplex-border); border-radius: 14px; }
.slp-onboarding-form fieldset { margin: 0; padding: 0; border: 0; }
.slp-choice-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; }
.slp-choice-row label input { position: absolute; opacity: 0; pointer-events: none; }
.slp-choice-row label span { min-height: 47px; display: grid; place-items: center; border: 1px solid var(--simplex-border); border-radius: 13px; background: #fff; color: var(--simplex-text); font-weight: 600; cursor: pointer; }
.slp-choice-row label input:checked + span { color: #5942a1; border-color: #8f76dd; background: #f1edfc; box-shadow: inset 0 0 0 1px #8f76dd; }

.slp-quick-stats { margin-top: 13px; display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; }
.slp-quick-stats button { min-height: 104px; padding: 15px; display: grid; grid-template-columns: 39px 1fr; grid-template-rows: auto auto; column-gap: 11px; text-align: right; border: 1px solid var(--simplex-border); border-radius: 19px; background: rgba(255,254,250,.88); color: var(--simplex-ink); }
.slp-quick-stats button > span { grid-row: 1 / 3; width: 39px; height: 39px; display: grid; place-items: center; border-radius: 12px; color: #6b50ba; background: #f0ebfa; font-size: 24px; }
.slp-quick-stats svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.slp-quick-stats strong { align-self: end; font-size: 22px; }
.slp-quick-stats small { color: var(--simplex-muted); }
.slp-plan-item.is-complete { border-color: #b7dece; background: #f1faf6; }
.slp-plan-item.is-complete .slp-plan-number { color: white; background: var(--simplex-success); }

.slp-diagnostic-intro { max-width: 820px; margin: 72px auto 0; padding: 50px; text-align: center; background: linear-gradient(145deg,#fffefa,#f7f0ff); }
.slp-diagnostic-intro h1 { max-width: 700px; margin: 12px auto; font-size: clamp(36px,6vw,60px); line-height: 1.08; }
.slp-diagnostic-intro > p { max-width: 670px; margin: 0 auto; color: var(--simplex-text); line-height: 1.75; }
.slp-diagnostic-features { margin: 28px 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.slp-diagnostic-features span { padding: 8px 13px; border-radius: 999px; color: #5b469d; background: #eee8fa; font-weight: 600; font-size: 13px; }

.slp-mode-picker { max-width: 830px; margin: 0 0 24px auto; padding: 6px; display: grid; grid-template-columns: repeat(3,1fr); gap: 5px; border: 1px solid var(--simplex-border); border-radius: 18px; background: rgba(255,255,255,.6); }
.slp-mode-picker button { padding: 11px 12px; border: 0; border-radius: 13px; color: var(--simplex-text); background: transparent; }
.slp-mode-picker strong, .slp-mode-picker small { display: block; }
.slp-mode-picker small { margin-top: 2px; color: var(--simplex-muted); font-size: 11px; }
.slp-mode-picker button.is-active { color: white; background: linear-gradient(135deg,#6650b8,#8066d2); box-shadow: 0 8px 18px rgba(100,75,177,.2); }
.slp-mode-picker button.is-active small { color: rgba(255,255,255,.76); }

.slp-stage-utilities { display: flex; align-items: center; gap: 8px; }
.slp-icon-button { width: 43px; height: 43px; display: grid; place-items: center; border: 1px solid var(--simplex-border); border-radius: 12px; background: white; color: var(--simplex-muted); }
.slp-icon-button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.slp-icon-button.is-active { color: #6b50ba; border-color: #b9a9e5; background: #f1edfb; }
.slp-audio-row, .slp-question-tools { display: flex; flex-wrap: wrap; gap: 7px; }
.slp-audio-row { margin: 16px 0 8px; }
.slp-question-tools { margin: 18px 0 7px; }
.slp-audio-row button, .slp-question-tools button { min-height: 36px; padding: 6px 11px; display: inline-flex; align-items: center; gap: 6px; color: #5e489f; border: 1px solid #ddd3f3; border-radius: 10px; background: #f6f2fc; font-size: 12px; font-weight: 600; }
.slp-audio-row svg, .slp-question-tools svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.slp-answer-row { display: grid; grid-template-columns: 1fr 43px; gap: 7px; }
.slp-answer-row .slp-answer { width: 100%; }
.slp-eliminate { border: 1px solid var(--simplex-border); border-radius: 12px; color: #9a909f; background: #fff; font-size: 21px; }
.slp-eliminate.is-active { color: var(--simplex-danger); background: var(--simplex-danger-soft); }
.slp-answer.is-eliminated { color: #aaa1ad; text-decoration: line-through; opacity: .62; background: #f5f2ee; }
.slp-review-reasons { margin-top: 15px; padding-top: 13px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; border-top: 1px solid rgba(120,90,90,.12); }
.slp-review-reasons > span { width: 100%; color: var(--simplex-text); font-size: 12px; font-weight: 700; }
.slp-review-reasons button { padding: 6px 10px; border: 1px solid #ead8db; border-radius: 999px; color: #8d5961; background: rgba(255,255,255,.72); font-size: 11px; }
.slp-review-reasons button.is-active { color: white; border-color: var(--simplex-danger); background: var(--simplex-danger); }

.slp-report-hero { margin-top: 26px; padding: 35px 39px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 25px; color: white; border-radius: 28px; background: linear-gradient(135deg,#3f3455,#64509a 62%,#7f68be); box-shadow: var(--simplex-shadow); }
.slp-report-hero h1 { margin: 8px 0 5px; font-size: clamp(35px,5vw,54px); }
.slp-report-hero p { margin: 0; color: rgba(255,255,255,.76); }
.slp-report-hero .slp-section-kicker { color: #ffd8cb; }
.slp-report-score { width: 150px; height: 150px; display: grid; place-content: center; text-align: center; border-radius: 50%; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.21); }
.slp-report-score strong { font-size: 42px; }
.slp-report-score span { font-size: 12px; color: rgba(255,255,255,.75); }
.slp-report-numbers { margin-top: 12px; display: grid; grid-template-columns: repeat(4,1fr); gap: 9px; }
.slp-report-numbers div { padding: 20px; display: grid; text-align: center; border: 1px solid var(--simplex-border); border-radius: 17px; background: var(--simplex-card); }
.slp-report-numbers strong { font-size: 27px; color: #5d479e; }
.slp-report-numbers span { color: var(--simplex-muted); font-size: 12px; }
.slp-topic-performance { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.slp-performance-card { padding: 20px; display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; }
.slp-performance-card strong, .slp-performance-card span { display: block; }
.slp-performance-card span { margin-top: 3px; color: var(--simplex-muted); font-size: 11px; }
.slp-performance-card b { color: #5c469c; font-size: 24px; }
.slp-performance-meter { grid-column: 1 / -1; height: 7px; overflow: hidden; border-radius: 999px; background: #eee9e3; }
.slp-performance-meter i { width: calc(var(--accuracy) * 1%); height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg,#ee9073,#7f68c3); }
.slp-next-recommendation { margin-top: 12px; padding: 27px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 5px 20px; }
.slp-next-recommendation > span { color: var(--simplex-coral); font-size: 12px; font-weight: 700; }
.slp-next-recommendation h2, .slp-next-recommendation p { margin: 0; }
.slp-next-recommendation p { color: var(--simplex-muted); }
.slp-next-recommendation .slp-primary { grid-column: 2; grid-row: 1 / 4; }

.slp-reason-summary { margin-bottom: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.slp-notebook-heading { margin: 25px 2px 12px; color: var(--simplex-ink); font-size: 20px; }
.slp-reason-summary span { padding: 10px 13px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--simplex-border); border-radius: 999px; background: var(--simplex-card); color: var(--simplex-text); font-size: 12px; }
.slp-reason-summary strong { color: #6d50b9; font-size: 16px; }
.slp-list-item small { color: var(--simplex-danger); font-weight: 600; }
.slp-vocab-example { max-width: 520px; margin-top: 12px; color: var(--simplex-text); font-size: 15px; line-height: 1.5; }

.slp-modal-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(35,28,45,.56); backdrop-filter: blur(7px); }
.slp-modal { width: min(430px,100%); position: relative; padding: 35px; text-align: center; border-radius: 26px; background: #fffefa; box-shadow: 0 28px 80px rgba(28,20,38,.25); }
.slp-modal-close { position: absolute; top: 13px; left: 13px; width: 35px; height: 35px; border: 0; border-radius: 50%; color: var(--simplex-muted); background: #f1ede8; font-size: 21px; }
.slp-modal-icon { width: 58px; height: 58px; margin: 0 auto 13px; display: grid; place-items: center; border-radius: 18px; color: white; background: linear-gradient(135deg,#6f55c1,#9577db); font-size: 31px; }
.slp-modal h2 { margin: 0 0 8px; }
.slp-modal p { margin: 0; color: var(--simplex-text); line-height: 1.7; }

@media (max-width: 720px) {
  .slp-onboarding-card { grid-template-columns: 1fr; border-radius: 25px; }
  .slp-onboarding-copy { padding: 31px 24px; }
  .slp-onboarding-copy h1 { font-size: 38px; }
  .slp-onboarding-copy ol { margin-top: 20px; }
  .slp-onboarding-form { padding: 26px 20px; gap: 18px; }
  .slp-choice-row { grid-template-columns: repeat(2,1fr); }
  .slp-quick-stats { grid-template-columns: repeat(2,1fr); gap: 7px; }
  .slp-quick-stats button { min-height: 84px; padding: 11px; }
  .slp-diagnostic-intro { margin-top: 18px; padding: 30px 20px; }
  .slp-diagnostic-intro h1 { font-size: 37px; }
  .slp-mode-picker { grid-template-columns: 1fr; }
  .slp-stage-utilities .slp-secondary { display: none; }
  .slp-stage-top { align-items: flex-start; }
  .slp-question-tools { margin-top: 13px; }
  .slp-answer-row { grid-template-columns: 1fr 40px; }
  .slp-report-hero { padding: 26px 20px; grid-template-columns: 1fr 96px; border-radius: 23px; }
  .slp-report-hero h1 { font-size: 35px; }
  .slp-report-score { width: 92px; height: 92px; }
  .slp-report-score strong { font-size: 28px; }
  .slp-report-score span { font-size: 10px; }
  .slp-report-numbers { grid-template-columns: repeat(2,1fr); }
  .slp-topic-performance { grid-template-columns: 1fr; }
  .slp-next-recommendation { grid-template-columns: 1fr; }
  .slp-next-recommendation .slp-primary { grid-column: 1; grid-row: auto; margin-top: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  .slp-vocab-card.is-exiting-right, .slp-vocab-card.is-exiting-left { opacity: 0; }
}

/* v0.5 — calm, app-like student workspace */
button:focus-visible, a:focus-visible { outline-color: rgba(109,78,211,.34); }
.slp-shell { max-width: 1160px; }
.slp-card { border-color: rgba(224,215,205,.9); box-shadow: var(--simplex-shadow); }

/* Compact application header — intentionally logo-free */
.slp-header {
  grid-template-columns: minmax(170px, .8fr) auto minmax(120px, .8fr);
  min-height: 68px;
  padding: 10px 16px;
  position: relative;
  top: auto;
  border-color: rgba(225,217,207,.82);
  border-radius: 18px;
  background: rgba(255,254,250,.88);
  box-shadow: 0 9px 28px rgba(54,44,64,.065);
}
.slp-app-home {
  width: fit-content;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 0;
  color: var(--simplex-ink);
  background: transparent;
  text-align: right;
}
.slp-app-home strong { font-size: 16px; line-height: 1.2; }
.slp-app-home span { margin-top: 2px; color: var(--simplex-muted); font-size: 12px; }
.slp-desktop-nav { padding: 4px; border-radius: 14px; background: #f3efe9; }
.slp-desktop-nav button { min-height: 38px; padding: 7px 13px; border-radius: 10px; color: #625a6c; }
.slp-desktop-nav button:hover { color: var(--simplex-blue-dark); background: #fff; box-shadow: 0 4px 12px rgba(60,47,73,.07); }
.slp-user { color: var(--simplex-muted); }
.slp-user strong { color: var(--simplex-ink); }

/* Dashboard */
.slp-dashboard-hero {
  min-height: 310px;
  padding: clamp(28px, 4vw, 48px);
  grid-template-columns: minmax(0, 1.35fr) minmax(220px, .65fr);
  color: var(--simplex-ink);
  border: 1px solid #e7ddd0;
  border-radius: 30px;
  background:
    radial-gradient(circle at 8% 15%, rgba(238,123,92,.22), transparent 29%),
    radial-gradient(circle at 92% 78%, rgba(100,185,154,.22), transparent 28%),
    linear-gradient(135deg, #fff8ec 0, #f7f0fb 52%, #eaf7f1 100%);
  box-shadow: 0 24px 58px rgba(70,52,76,.12);
}
.slp-dashboard-hero::before {
  width: 180px;
  height: 180px;
  right: auto;
  left: 8%;
  top: -92px;
  border: 1px solid rgba(109,78,211,.12);
  background: transparent;
}
.slp-dashboard-hero::after {
  content: "";
  position: absolute;
  width: 96px;
  height: 96px;
  right: 47%;
  bottom: -54px;
  border-radius: 28px;
  background: rgba(239,189,85,.18);
  transform: rotate(22deg);
}
.slp-hero-copy { max-width: 620px; }
.slp-hero-copy h1 { margin: 16px 0 10px; color: #2e283b; font-size: clamp(38px, 5vw, 58px); line-height: 1.05; }
.slp-hero-copy p { max-width: 570px; color: #665d70; font-size: 18px; line-height: 1.65; }
.slp-kicker { padding: 7px 11px; color: #654a28; border: 1px solid rgba(168,115,31,.18); background: rgba(239,189,85,.24); font-size: 13px; }
.slp-hero-actions { margin-top: 24px; }
.slp-primary { background: #5f45b9; box-shadow: 0 10px 25px rgba(95,69,185,.21); }
.slp-primary:hover { background: #4b368f; }
.slp-secondary { color: #55445f; border-color: #dcd2c8; background: rgba(255,255,255,.75); }
.slp-secondary:hover { border-color: #cbbcca; background: #fff; }
.slp-hero-progress { min-height: 205px; padding: 23px; position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.72); border-radius: 26px; background: rgba(255,255,255,.58); box-shadow: 0 15px 38px rgba(70,52,76,.08); backdrop-filter: blur(8px); }
.slp-hero-progress .slp-progress-ring { --progress: inherit; width: 128px; min-width: 128px; background: radial-gradient(closest-side, #fffdfa 72%, transparent 73% 99%, #fff 0), conic-gradient(var(--simplex-coral) calc(var(--progress) * 1%), #e9e1dc 0); }
.slp-hero-progress .slp-progress-ring strong { color: #3d3346; font-size: 30px; }
.slp-hero-progress .slp-progress-ring span { color: #7d7284; font-size: 10px; }
.slp-hero-progress > p { margin: 14px 0 0; color: #63596c; font-weight: 600; text-align: center; }

/* Daily plan */
.slp-daily-plan { margin-top: 18px; padding: 22px; }
.slp-plan-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.slp-plan-heading h2 { margin: 3px 0 0; font-size: 24px; }
.slp-plan-time { padding: 6px 10px; border-radius: 999px; color: #6c6074; background: #f4f0eb; font-size: 12px; font-weight: 600; }
.slp-plan-items { margin-top: 17px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.slp-plan-item { min-height: 78px; padding: 12px 14px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 11px; border: 1px solid #ece5dd; border-radius: 17px; color: var(--simplex-ink); background: #fbf9f6; text-align: right; transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.slp-plan-item:hover { transform: translateY(-2px); border-color: #d8ccdb; background: #fff; }
.slp-plan-number { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; color: #fff; background: #6950bf; font-size: 13px; font-weight: 700; }
.slp-plan-item:nth-child(2) .slp-plan-number { background: var(--simplex-mint); }
.slp-plan-item:nth-child(3) .slp-plan-number { background: var(--simplex-coral); }
.slp-plan-item strong, .slp-plan-item small { display: block; }
.slp-plan-item strong { font-size: 15px; }
.slp-plan-item small { margin-top: 2px; color: var(--simplex-muted); font-size: 12px; }
.slp-plan-arrow { color: #a49aa9; }

.slp-section-kicker { color: #7559c5; }
.slp-section-title { margin-top: 34px; }
.slp-section-title h2 { color: #30293d; }
.slp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.slp-action-card { min-height: 184px; border-color: transparent; box-shadow: 0 13px 32px rgba(56,44,65,.075); }
.slp-action-card::after { width: 105px; height: 105px; left: -56px; bottom: -58px; background: rgba(255,255,255,.42); }
.slp-action-practice { background: #f2edfc; }
.slp-action-learning { background: #fff6dc; }
.slp-action-simulation { background: #fff2e8; }
.slp-action-vocabulary { background: #eaf7f1; }
.slp-action-mistakes { background: #faedf0; }
.slp-action-card:hover { border-color: rgba(92,71,120,.14); }
.slp-icon { color: #6247b2; background: rgba(255,255,255,.68); }
.slp-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.slp-action-simulation .slp-icon { color: #b5663f; background: rgba(255,255,255,.65); }
.slp-action-learning .slp-icon { color: #9a7020; background: rgba(255,255,255,.66); }
.slp-action-vocabulary .slp-icon { color: #2f8b6c; background: rgba(255,255,255,.65); }
.slp-action-mistakes .slp-icon { color: #b35867; background: rgba(255,255,255,.65); }
.slp-action-copy h3 { color: #342d40; }
.slp-action-copy p { color: #756c7e; }
.slp-card-arrow { color: #897b91; }
.slp-bank-count { color: #5b4a66; background: rgba(255,255,255,.58); }
.slp-inline-bank-count { color: #5b4a66; border-color: #ded3e1; background: #faf7fc; }

/* Learning engines */
.slp-bar { height: 7px; background: #e9e2dc; }
.slp-bar > div { background: linear-gradient(90deg, #6d4ed3, #ee7b5c); }
.slp-answer:hover:not(:disabled) { border-color: #a996d6; background: #faf8ff; }
.slp-answer.is-selected { border-color: #8f73d4; background: #f5f1fd; box-shadow: 0 0 0 3px rgba(109,78,211,.10); }
.slp-passage { background: #fcfaf7; }
.slp-passage summary { color: #554175; }
.slp-passage-mark { padding: 0 .08em; border-radius: 3px; color: inherit; background: #ffea48; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.slp-result-score strong, .slp-timer, .slp-library-summary strong { color: #5942a4; }
.slp-eyebrow { color: #5f4a80; background: #f0ebf7; }

/* Vocabulary — quiet interactions, no oversized direction callouts */
.slp-vocab-workspace { max-width: 820px; }
.slp-vocab-toolbar h1 { color: #312a3c; }
.slp-audio-toggle.is-on { color: #5b458b; border-color: #d3c6e6; background: #f3eefb; }
.slp-vocab-tabs { background: #eee9e3; }
.slp-vocab-tabs button.is-active { color: #513d77; }
.slp-vocab-progress { height: 6px; background: #e7dfd9; }
.slp-vocab-progress span { background: linear-gradient(90deg, #7353cb, #ee8568); }
.slp-vocab-deck { width: min(610px, 100%); min-height: 330px; margin-top: 12px; }
.slp-vocab-card { width: 100%; height: 300px; border-radius: 24px; box-shadow: 0 22px 50px rgba(55,42,67,.14); }
.slp-vocab-face { border-color: #e4dbd0; background: linear-gradient(145deg, #fffefb, #faf5ee); }
.slp-vocab-face::before { width: 170px; height: 170px; top: -92px; left: -58px; background: linear-gradient(135deg, rgba(238,123,92,.18), rgba(239,189,85,.10)); }
.slp-vocab-back { color: #fff; border-color: transparent; background: linear-gradient(135deg, #3b2d4a, #654c75); }
.slp-vocab-back::before { background: rgba(238,123,92,.14); }
.slp-vocab-word { color: #2f2938; }
.slp-pronounce { top: 21px; left: 20px; min-height: 38px; border-color: #ded2c5; color: #57436a; background: rgba(255,254,250,.93); box-shadow: 0 6px 16px rgba(55,42,67,.08); }
.slp-pronounce:hover { background: #fff; }
.slp-swipe-stamp { top: 26px; padding: 5px 10px; border-width: 2px; border-radius: 9px; font-size: 14px; }
.slp-vocab-actions { width: min(540px, 100%); margin-top: 7px; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); gap: 8px; }
.slp-vocab-choice, .slp-vocab-flip { min-height: 42px; border-radius: 12px; box-shadow: none; }
.slp-vocab-choice { padding: 7px 11px; display: flex; align-items: center; justify-content: center; gap: 7px; text-align: center; font-size: 13px; }
.slp-vocab-choice > span { width: auto; height: auto; display: inline; background: transparent !important; font-size: 15px; }
.slp-vocab-choice.is-learning { color: #9f5360; border-color: #ead2d6; background: #fffafb; }
.slp-vocab-choice.is-known { color: #377d64; border-color: #cfe3da; background: #fafffc; }
.slp-vocab-flip { min-width: 116px; padding: 7px 13px; color: #fff; border-color: #6048a8; background: #6048a8; font-size: 13px; }
.slp-vocab-flip:disabled { color: #8d8394; border-color: #e3ddd8; background: #f1eeeb; opacity: 1; }
.slp-swipe-note { margin: 8px auto 0; display: flex; align-items: center; justify-content: center; gap: 10px; color: #8a8190; font-size: 11px; }
.slp-swipe-note i { width: 3px; height: 3px; border-radius: 50%; background: #b7adb9; }
.slp-vocab-history { min-height: 30px; grid-column: 1 / -1; display: flex; justify-content: center; align-items: center; }
.slp-vocab-previous { min-height: 32px; padding: 4px 10px; display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 9px; color: #736a79; background: transparent; font-size: 11px; }
.slp-vocab-previous:hover:not(:disabled) { color: #5942a4; background: #f0ebf7; }
.slp-vocab-previous:disabled { visibility: hidden; }
.slp-keyboard-hint { margin-top: 7px; font-size: 11px; }
.slp-word-speaker { color: #5c4689; border-color: #d9cde5; background: #f2edf8; }
.slp-word-speaker:hover { background: #6048a8; }
.slp-vocab-search input:focus { outline-color: rgba(109,78,211,.14); border-color: #8b72cb; }
.slp-library-more { color: #594577; border-color: #cdbfda; background: #f8f4fb; }

/* Video lessons and short study tips */
.slp-learning-workspace { max-width: 1040px; margin: 32px auto 0; }
.slp-learning-heading { padding: 30px; display: flex; align-items: end; justify-content: space-between; gap: 24px; overflow: hidden; position: relative; border: 1px solid #e6ddd1; border-radius: 28px; background: linear-gradient(135deg, #fff9ec, #f2ecfb 58%, #eaf7f1); box-shadow: 0 18px 44px rgba(57,45,68,.09); }
.slp-learning-heading::after { content: ""; width: 155px; height: 155px; position: absolute; left: -65px; top: -70px; border: 22px solid rgba(238,123,92,.10); border-radius: 50%; }
.slp-learning-heading > div:first-child { position: relative; z-index: 1; }
.slp-learning-heading h1 { max-width: 680px; margin: 8px 0 8px; color: #31293d; font-size: clamp(34px, 5vw, 52px); line-height: 1.06; }
.slp-learning-heading p { max-width: 660px; margin: 0; color: #6f6578; font-size: 17px; line-height: 1.65; }
.slp-learning-counts { display: flex; gap: 8px; position: relative; z-index: 1; }
.slp-learning-counts span { min-width: 92px; padding: 12px 13px; border: 1px solid rgba(255,255,255,.8); border-radius: 17px; color: #716678; background: rgba(255,255,255,.6); text-align: center; }
.slp-learning-counts strong { display: block; color: #5d45a3; font-size: 25px; line-height: 1; }
.slp-learning-section-title { margin: 34px 0 14px; display: flex; align-items: end; justify-content: space-between; gap: 14px; }
.slp-learning-section-title span { color: #7559c5; font-size: 13px; font-weight: 700; }
.slp-learning-section-title h2 { margin: 3px 0 0; color: #342d40; font-size: 25px; }
.slp-learning-section-title small { color: #8a8190; }
.slp-learning-section-title.is-tips span { color: #b86549; }
.slp-learning-section-title.is-exam-guide span { color: #a8753f; }
.slp-learning-section-title.is-live span { color: #397b92; }
.slp-learning-section-title.is-app-guide span { color: #5976ad; }
.slp-learning-section-title.is-enrichment span { color: #317e66; }
.slp-learning-section-title.is-summary span { color: #a9654e; }
.slp-video-player { scroll-margin-top: 18px; margin-top: 20px; padding: 18px; color: #fff; border-radius: 26px; background: #2e2736; box-shadow: 0 22px 48px rgba(43,32,51,.18); }
.slp-video-player-copy { padding: 0 2px 13px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.slp-video-player-copy span { color: #d2c5df; font-size: 12px; font-weight: 600; }
.slp-video-player-copy h2 { margin: 1px 0 0; font-size: 23px; }
.slp-video-close { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.16); border-radius: 12px; color: #fff; background: rgba(255,255,255,.08); font-size: 25px; line-height: 1; }
.slp-video-close:hover { background: rgba(255,255,255,.16); }
.slp-video-player video { width: 100%; max-height: 650px; display: block; aspect-ratio: 16 / 10; border-radius: 18px; background: #0b0a0c; object-fit: contain; }
.slp-video-frame { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 18px; background: #0b0a0c; }
.slp-video-frame iframe { width: 100%; height: 100%; position: absolute; inset: 0; display: block; border: 0; }
.slp-video-player > p { margin: 13px 3px 1px; color: #d8cfe0; line-height: 1.55; }
.slp-video-player > p strong { margin-inline-start: 8px; color: #fff; }
.slp-lesson-notes { margin-top: 15px; padding: 15px; border: 1px solid rgba(255,255,255,.12); border-radius: 16px; background: rgba(255,255,255,.07); }
.slp-lesson-notes h3 { margin: 0 0 9px; color: #fff; font-size: 15px; }
.slp-lesson-notes ol { margin: 0; padding: 0 19px 0 0; color: #e7dfee; font-size: 13px; line-height: 1.7; }
.slp-lesson-notes li + li { margin-top: 4px; }
.slp-lesson-playlist { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.slp-lesson-playlist > span { margin-inline-end: 3px; color: #d8cfe0; font-size: 12px; font-weight: 700; }
.slp-lesson-playlist button { min-height: 35px; padding: 7px 11px; border: 1px solid rgba(255,255,255,.2); border-radius: 10px; color: #eee8f6; background: transparent; font-family: inherit; font-size: 12px; }
.slp-lesson-playlist button.is-current { border-color: #bdace8; color: #fff; background: rgba(155,123,220,.28); }
.slp-video-next { padding: 9px 3px 1px; display: flex; justify-content: flex-start; }
.slp-video-next .slp-primary { box-shadow: none; }
.slp-lesson-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.slp-lesson-card { padding: 0; overflow: hidden; border: 1px solid #e8dfd5; border-radius: 22px; color: var(--simplex-ink); background: #fffdf9; box-shadow: 0 12px 32px rgba(56,43,66,.07); text-align: right; transition: transform .2s ease, box-shadow .2s ease; }
.slp-lesson-card:hover { transform: translateY(-4px); box-shadow: 0 18px 38px rgba(56,43,66,.13); }
.slp-lesson-card.is-recommended { border-color: #9d86d8; box-shadow: 0 15px 34px rgba(94,68,157,.15); }
.slp-lesson-card.is-recommended .slp-lesson-poster::after { content: "מומלץ להתחיל כאן"; position: absolute; z-index: 2; top: 10px; right: 10px; padding: 4px 8px; border-radius: 999px; color: #fff; background: #6650b8; font-size: 10px; font-weight: 700; }
.slp-lesson-poster { aspect-ratio: 16 / 10; position: relative; overflow: hidden; display: block; background: #ede8e2; }
.slp-lesson-poster img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .3s ease; }
.slp-lesson-card:hover img { transform: scale(1.025); }
.slp-lesson-poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 48%, rgba(30,25,35,.48)); }
.slp-lesson-poster i { width: 49px; height: 49px; position: absolute; z-index: 2; inset: 50% auto auto 50%; display: grid; place-items: center; border-radius: 50%; color: #4d3978; background: rgba(255,255,255,.92); box-shadow: 0 9px 24px rgba(28,21,36,.18); font-style: normal; transform: translate(-50%,-50%); }
.slp-lesson-poster small { position: absolute; z-index: 2; left: 12px; bottom: 10px; padding: 4px 8px; border-radius: 999px; color: #fff; background: rgba(35,28,41,.72); font-size: 11px; }
.slp-lesson-copy { min-height: 151px; padding: 16px; display: grid; grid-template-columns: auto 1fr; align-content: start; gap: 2px 10px; }
.slp-lesson-copy em { width: 31px; height: 31px; grid-row: 1 / span 2; display: grid; place-items: center; border-radius: 10px; color: #fff; background: #654bb6; font-size: 11px; font-style: normal; font-weight: 700; }
.slp-lesson-card:nth-child(2) .slp-lesson-copy em { background: #e57a5e; }
.slp-lesson-card:nth-child(3) .slp-lesson-copy em { background: #4da184; }
.slp-lesson-copy strong { font-size: 18px; }
.slp-lesson-copy > span { grid-column: 2; margin-top: 4px; color: #7a7181; font-size: 13px; line-height: 1.5; }
.slp-tip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.slp-tip-card { min-height: 94px; padding: 13px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 11px; border: 1px solid #e9e1d8; border-radius: 18px; color: var(--simplex-ink); background: #fffdf9; text-align: right; transition: transform .18s ease, border-color .18s ease; }
.slp-tip-card:hover { transform: translateY(-2px); border-color: #d6c7d9; }
.slp-tip-symbol { width: 45px; height: 45px; display: grid; place-items: center; border-radius: 14px; color: #684db3; background: #f0eafa; font-size: 18px; font-weight: 700; }
.slp-tip-card:nth-child(3n+2) .slp-tip-symbol { color: #a65d44; background: #fff0e9; }
.slp-tip-card:nth-child(3n) .slp-tip-symbol { color: #317e66; background: #e9f6f1; }
.slp-tip-card strong, .slp-tip-card small { display: block; }
.slp-tip-card strong { font-size: 15px; }
.slp-tip-card small { margin-top: 2px; color: #887f8e; font-size: 11px; line-height: 1.35; }
.slp-tip-card em { color: #978e9d; font-size: 10px; font-style: normal; white-space: nowrap; }
.slp-exam-guide-card { width: 100%; padding: 0; display: grid; grid-template-columns: minmax(190px, 28%) minmax(0, 1fr) auto; align-items: stretch; overflow: hidden; border: 1px solid #eadac0; border-radius: 21px; color: var(--simplex-ink); background: linear-gradient(105deg, #fffdf9, #fff7e8); box-shadow: 0 11px 28px rgba(84,63,42,.07); text-align: right; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.slp-exam-guide-card:hover { transform: translateY(-2px); border-color: #dfc390; box-shadow: 0 17px 34px rgba(84,63,42,.12); }
.slp-exam-guide-poster { position: relative; min-height: 136px; overflow: hidden; display: block; background: #e7ddd1; }
.slp-exam-guide-poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(41,31,51,.08), transparent 60%); }
.slp-exam-guide-poster img { width: 100%; height: 100%; display: block; object-fit: cover; }
.slp-exam-guide-poster i { width: 45px; height: 45px; position: absolute; z-index: 1; inset: 50% auto auto 50%; display: grid; place-items: center; border-radius: 50%; color: #604482; background: rgba(255,255,255,.94); box-shadow: 0 8px 22px rgba(52,39,55,.18); font-style: normal; transform: translate(-50%, -50%); }
.slp-exam-guide-copy { min-width: 0; padding: 21px 20px; display: block; align-self: center; }
.slp-exam-guide-copy strong, .slp-exam-guide-copy small { display: block; }
.slp-exam-guide-copy strong { color: #3d3347; font-size: 19px; }
.slp-exam-guide-copy small { margin-top: 5px; color: #756a70; font-size: 13px; line-height: 1.55; }
.slp-exam-guide-card > em { margin: 19px 0 19px 18px; align-self: start; padding: 5px 9px; border-radius: 999px; color: #9b7141; background: rgba(255,255,255,.7); font-size: 11px; font-style: normal; white-space: nowrap; }
.slp-app-guide .slp-exam-guide-card { border-color: #ced9ed; background: linear-gradient(105deg, #fffdf9, #f0f5ff); }
.slp-app-guide .slp-exam-guide-card:hover { border-color: #9fb5df; }
.slp-app-guide .slp-exam-guide-poster { background: #dbe8fb; }
.slp-app-guide .slp-exam-guide-card > em { color: #4e6fa7; }
.slp-learning-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.slp-learning-summary-card { min-height: 190px; padding: 20px; position: relative; overflow: hidden; border: 1px solid #e9e0d8; border-radius: 21px; background: #fffdf9; box-shadow: 0 11px 28px rgba(56,43,66,.06); }
.slp-learning-summary-card::after { content: ""; width: 104px; height: 104px; position: absolute; left: -48px; bottom: -53px; border-radius: 50%; background: rgba(149,118,219,.08); }
.slp-learning-summary-card:nth-child(2)::after { background: rgba(70,167,135,.09); }
.slp-learning-summary-card:nth-child(3)::after { background: rgba(229,122,94,.09); }
.slp-summary-number { display: block; color: #7358bf; font-size: 12px; font-weight: 800; letter-spacing: .06em; }
.slp-learning-summary-card h3 { margin: 9px 0 7px; color: #342d40; font-size: 19px; }
.slp-learning-summary-card p { margin: 0; color: #766e7c; font-size: 13px; line-height: 1.7; }

/* A lightweight flip avoids heavy 3D rendering on mobile browsers. */
.slp-vocab-card, .slp-vocab-card-inner { transform-style: flat; }
.slp-vocab-card-inner { transition: none; }
.slp-vocab-card.is-flipped .slp-vocab-card-inner { transform: none; }
.slp-vocab-face { backface-visibility: visible; transition: opacity .24s ease, transform .24s ease; }
.slp-vocab-front { opacity: 1; transform: scale(1); }
.slp-vocab-back { opacity: 0; pointer-events: none; transform: scale(.975); }
.slp-vocab-card.is-flipped .slp-vocab-front { opacity: 0; pointer-events: none; transform: scale(.975); }
.slp-vocab-card.is-flipped .slp-vocab-back { opacity: 1; pointer-events: auto; transform: scale(1); }

@media (max-width: 980px) {
  .slp-header { grid-template-columns: 1fr auto; }
  .slp-dashboard-hero { grid-template-columns: 1fr 220px; }
  .slp-plan-items { grid-template-columns: 1fr; }
  .slp-grid { grid-template-columns: repeat(2, 1fr); }
  .slp-lesson-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .slp-shell { padding: 10px 12px 92px; }
  .slp-vocab-filters { grid-template-columns: 1fr; padding: 8px; }
  .slp-vocab-mode { display: grid; grid-template-columns: 1fr 1fr; }
  .slp-vocab-mode button { white-space: normal; }
  .slp-header { min-height: 58px; padding: 9px 12px; border-radius: 16px; }
  .slp-app-home strong { font-size: 14px; }
  .slp-app-home span { font-size: 10px; }
  .slp-user { display: block; }
  .slp-user span { display: none; }
  .slp-user strong { font-size: 14px; }
  .slp-dashboard-hero { min-height: 0; margin-top: 14px; padding: 25px 20px 20px; grid-template-columns: 1fr; gap: 18px; border-radius: 24px; }
  .slp-dashboard-hero::after { display: none; }
  .slp-hero-copy h1 { margin-top: 13px; font-size: 36px; }
  .slp-hero-copy p { font-size: 15px; line-height: 1.55; }
  .slp-hero-actions { margin-top: 18px; }
  .slp-hero-actions button { flex: 1 1 130px; min-height: 44px; padding: 9px 13px; }
  .slp-hero-progress { min-height: 95px; padding: 13px 15px; flex-direction: row; justify-content: flex-start; gap: 15px; border-radius: 19px; }
  .slp-hero-progress .slp-progress-ring { width: 72px; min-width: 72px; }
  .slp-hero-progress .slp-progress-ring strong { font-size: 19px; }
  .slp-hero-progress .slp-progress-ring span { display: none; }
  .slp-hero-progress > p { margin: 0; text-align: right; }
  .slp-daily-plan { margin-top: 12px; padding: 16px; border-radius: 20px; }
  .slp-plan-heading { align-items: start; }
  .slp-plan-heading h2 { font-size: 20px; }
  .slp-plan-time { display: none; }
  .slp-plan-items { margin-top: 12px; gap: 7px; }
  .slp-plan-item { min-height: 66px; padding: 9px 10px; border-radius: 14px; }
  .slp-section-title { margin-top: 27px; }
  .slp-section-title p { font-size: 14px; }
  .slp-grid { gap: 9px; }
  .slp-action-learning { grid-column: 1 / -1; min-height: 126px; }
  .slp-action-card { min-height: 160px; padding: 14px; grid-template-columns: 43px 1fr; gap: 10px; border-radius: 19px; }
  .slp-icon { width: 43px; height: 43px; border-radius: 13px; }
  .slp-icon svg { width: 23px; height: 23px; }
  .slp-action-copy h3 { margin-top: 2px; font-size: 17px; }
  .slp-bank-count { padding: 4px 7px; font-size: 11px; }
  .slp-vocab-toolbar { align-items: start; }
  .slp-vocab-toolbar h1 { font-size: 31px; }
  .slp-vocab-toolbar p { max-width: 240px; font-size: 13px; }
  .slp-vocab-deck { min-height: 286px; }
  .slp-vocab-card { height: 265px; border-radius: 21px; }
  .slp-vocab-face { padding: 22px; }
  .slp-vocab-unit { top: 19px; right: 20px; font-size: 12px; }
  .slp-flip-hint { bottom: 19px; font-size: 12px; }
  .slp-pronounce { top: 17px; left: 16px; }
  .slp-vocab-actions { grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); }
  .slp-vocab-flip { grid-column: auto; grid-row: auto; min-width: 105px; min-height: 42px; flex-direction: row; }
  .slp-vocab-choice { grid-row: auto; min-height: 42px; grid-template-rows: none; }
  .slp-bottom-nav { height: calc(66px + env(safe-area-inset-bottom)); padding: 6px 7px env(safe-area-inset-bottom); grid-template-columns: repeat(5, 1fr); background: rgba(255,254,251,.96); border-top-color: #e8e0d8; box-shadow: 0 -8px 25px rgba(55,43,65,.08); }
  .slp-bottom-nav button { min-width: 0; padding: 4px 2px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: #8b8390; }
  .slp-bottom-nav button > span { height: 21px; display: grid; place-items: center; }
  .slp-bottom-nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .slp-bottom-nav small { font-size: 10px; }
  .slp-bottom-nav button.is-active { color: #5d45a3; background: #f0ebf8; }
  .slp-learning-workspace { margin-top: 14px; }
  .slp-learning-heading { padding: 23px 19px; align-items: start; flex-direction: column; gap: 17px; border-radius: 23px; }
  .slp-learning-heading h1 { font-size: 34px; }
  .slp-learning-heading p { font-size: 14px; }
  .slp-learning-counts { width: 100%; }
  .slp-learning-counts span { flex: 1; min-width: 0; padding: 10px; }
  .slp-learning-section-title { margin-top: 27px; align-items: start; flex-direction: column; gap: 3px; }
  .slp-learning-section-title h2 { font-size: 21px; }
  .slp-learning-section-title small { font-size: 11px; }
  .slp-video-player { margin-top: 14px; padding: 10px; border-radius: 20px; }
  .slp-video-player-copy { padding: 2px 3px 10px; }
  .slp-video-player-copy h2 { font-size: 18px; }
  .slp-video-player video { border-radius: 14px; }
  .slp-video-frame { border-radius: 14px; }
  .slp-video-player > p { margin: 10px 3px 2px; font-size: 12px; }
  .slp-lesson-notes { margin-top: 11px; padding: 12px; }
  .slp-lesson-notes h3 { font-size: 14px; }
  .slp-lesson-notes ol { font-size: 12px; }
  .slp-lesson-playlist { align-items: stretch; }
  .slp-lesson-playlist > span { width: 100%; }
  .slp-lesson-playlist button { flex: 1 1 150px; }
  .slp-video-next { padding: 9px 2px 1px; }
  .slp-video-next .slp-primary { width: 100%; }
  .slp-lesson-grid { grid-template-columns: 1fr; gap: 10px; }
  .slp-lesson-copy { min-height: 126px; }
  .slp-tip-grid { grid-template-columns: 1fr; gap: 8px; }
  .slp-tip-card { min-height: 82px; }
  .slp-exam-guide-card { grid-template-columns: 122px minmax(0,1fr); border-radius: 18px; }
  .slp-exam-guide-poster { min-height: 118px; }
  .slp-exam-guide-copy { padding: 14px 13px; }
  .slp-exam-guide-copy strong { font-size: 16px; }
  .slp-exam-guide-copy small { font-size: 11px; line-height: 1.45; }
  .slp-exam-guide-card > em { grid-column: 2; margin: 0 13px 12px; justify-self: start; font-size: 10px; }
  .slp-learning-summary { grid-template-columns: 1fr; gap: 9px; }
  .slp-learning-summary-card { min-height: 0; padding: 16px; border-radius: 18px; }
  .slp-learning-summary-card h3 { margin: 6px 0 4px; font-size: 17px; }
  .slp-learning-summary-card p { font-size: 12px; line-height: 1.6; }
}

@media (max-width: 440px) {
  .slp-dashboard-hero { min-height: 0; }
  .slp-hero-copy h1 { font-size: 33px; }
  .slp-action-card { min-height: 148px; }
  .slp-vocab-choice strong { font-size: 12px; }
  .slp-vocab-choice { padding-inline: 7px; }
  .slp-vocab-flip { min-width: 99px; padding-inline: 9px; }
}

/* v0.6.1 — phone-first interaction polish */
body.simplex-learning-page { min-height: 100dvh; overscroll-behavior-y: contain; }
.simplex-learning-root { min-height: 100dvh; -webkit-tap-highlight-color: transparent; }
.simplex-learning-root button { touch-action: manipulation; }
.slp-timer { transition: color .2s ease, background .2s ease; }
.slp-timer.is-urgent { padding: 3px 8px; color: #a74656; border-radius: 9px; background: #fdecef; }
.slp-loading { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; }
.slp-loading strong { color: var(--simplex-ink); font-size: 17px; }
.slp-loading small { color: var(--simplex-muted); }
.slp-loading-mark { width: 42px; height: 42px; margin-bottom: 8px; display: block; border: 4px solid #e8e0f5; border-top-color: #7054c3; border-radius: 50%; animation: slp-spin .8s linear infinite; }
@keyframes slp-spin { to { transform: rotate(360deg); } }
.slp-toast { max-width: calc(100vw - 28px); position: fixed; z-index: 200; left: 50%; bottom: calc(82px + env(safe-area-inset-bottom)); padding: 11px 17px; color: #fff; border-radius: 13px; background: rgba(44,35,52,.94); box-shadow: 0 14px 36px rgba(35,27,43,.22); font-size: 13px; font-weight: 600; text-align: center; opacity: 0; transform: translate(-50%,10px); transition: opacity .18s ease, transform .18s ease; pointer-events: none; }
.slp-toast.is-visible { opacity: 1; transform: translate(-50%,0); }

@media (max-width: 720px) {
  body.simplex-learning-page { background: linear-gradient(180deg,#fffdf9 0,#f7f4ef 72%,#f2eee8 100%); }
  .slp-shell { padding: calc(8px + env(safe-area-inset-top)) 10px calc(84px + env(safe-area-inset-bottom)); }
  .slp-header { min-height: 54px; top: max(6px,env(safe-area-inset-top)); padding: 7px 11px; gap: 8px; border-radius: 15px; }
  .slp-desktop-nav { display: none; }
  .slp-app-home strong { font-size: 13px; }
  .slp-app-home span { font-size: 9px; }
  .slp-user strong { max-width: 112px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }

  .slp-dashboard-hero { margin-top: 10px; padding: 20px 17px 14px; gap: 12px; border-radius: 21px; }
  .slp-hero-copy h1 { margin: 10px 0 6px; font-size: clamp(29px,9vw,35px); line-height: 1.08; }
  .slp-hero-copy p { font-size: 14px; line-height: 1.5; }
  .slp-kicker { padding: 5px 9px; font-size: 11px; }
  .slp-hero-actions { margin-top: 14px; display: grid; grid-template-columns: 1fr auto; gap: 6px; }
  .slp-hero-actions button { min-height: 44px; padding: 8px 12px; font-size: 13px; }
  .slp-hero-actions .slp-secondary { padding-inline: 10px; border-color: transparent; background: transparent; box-shadow: none; }
  .slp-hero-progress { min-height: 74px; padding: 9px 12px; gap: 11px; border-radius: 16px; }
  .slp-hero-progress .slp-progress-ring { width: 57px; min-width: 57px; }
  .slp-hero-progress .slp-progress-ring strong { font-size: 17px; }
  .slp-hero-progress > p { font-size: 12px; }

  .slp-daily-plan { margin-top: 9px; padding: 14px; border-radius: 18px; }
  .slp-plan-heading h2 { font-size: 19px; }
  .slp-plan-items { margin-top: 10px; gap: 6px; }
  .slp-plan-item { min-height: 62px; padding: 8px 9px; gap: 9px; border-radius: 13px; }
  .slp-plan-number { width: 31px; height: 31px; border-radius: 10px; }
  .slp-plan-item strong { font-size: 14px; }
  .slp-plan-item small { font-size: 11px; }

  .slp-quick-stats { margin: 9px -10px 0; padding: 0 10px 4px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(142px,42vw); grid-template-columns: none; gap: 7px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
  .slp-quick-stats::-webkit-scrollbar { display: none; }
  .slp-quick-stats button { min-height: 72px; padding: 9px 10px; grid-template-columns: 34px 1fr; column-gap: 8px; border-radius: 15px; scroll-snap-align: start; }
  .slp-quick-stats button > span { width: 34px; height: 34px; border-radius: 10px; }
  .slp-quick-stats strong { font-size: 18px; }
  .slp-quick-stats small { font-size: 10px; }

  .slp-section-title { margin-top: 23px; }
  .slp-section-title h2 { font-size: 21px; }
  .slp-section-title p { margin-top: 4px; font-size: 12px; line-height: 1.45; }
  .slp-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
  .slp-action-learning { grid-column: auto; }
  .slp-action-card, .slp-action-learning { min-height: 128px; padding: 12px; grid-template-columns: 38px 1fr; gap: 8px; border-radius: 17px; }
  .slp-icon { width: 38px; height: 38px; border-radius: 11px; }
  .slp-icon svg { width: 21px; height: 21px; }
  .slp-action-copy h3 { font-size: 15px; }
  .slp-action-copy p { margin-top: 4px; display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 11px; line-height: 1.4; }
  .slp-bank-count { margin-top: 7px; padding: 3px 6px; font-size: 9px; }
  .slp-card-arrow { display: none; }

  .slp-onboarding-shell { min-height: 100dvh; align-items: start; }
  .slp-onboarding-card { border-radius: 22px; }
  .slp-onboarding-copy { padding: 25px 21px 22px; }
  .slp-onboarding-copy h1 { margin: 8px 0 6px; font-size: 32px; }
  .slp-onboarding-copy p { font-size: 13px; line-height: 1.5; }
  .slp-onboarding-copy ol { display: none; }
  .slp-onboarding-form { padding: 21px 18px 23px; gap: 15px; }
  .slp-onboarding-form input[type=date], .slp-onboarding-form select { min-height: 49px; font-size: 16px; }
  .slp-choice-row { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .slp-choice-row label span { min-height: 44px; font-size: 13px; }

  .slp-diagnostic-intro { margin-top: 12px; padding: 27px 18px; border-radius: 22px; }
  .slp-diagnostic-intro h1 { font-size: 31px; line-height: 1.12; }
  .slp-diagnostic-intro > p { font-size: 14px; line-height: 1.6; }
  .slp-diagnostic-features { margin: 20px 0; gap: 5px; }
  .slp-diagnostic-features span { padding: 6px 9px; font-size: 11px; }

  .slp-mode-picker { margin-bottom: 14px; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 3px; border-radius: 15px; }
  .slp-mode-picker button { min-height: 54px; padding: 7px 4px; border-radius: 11px; }
  .slp-mode-picker strong { font-size: 12px; }
  .slp-mode-picker small { font-size: 9px; line-height: 1.25; }
  .slp-topic-grid { grid-template-columns: 1fr; }
  .slp-topic-grid .slp-action-card { min-height: 82px; padding: 12px 14px; grid-template-columns: 42px minmax(0,1fr); grid-template-rows: auto auto; align-content: center; column-gap: 11px; text-align: right; }
  .slp-topic-grid .slp-action-card .slp-icon { grid-row: 1 / 3; }
  .slp-topic-grid .slp-action-card h3 { margin: 0; align-self: end; font-size: 15px; }
  .slp-topic-grid .slp-action-card p { margin: 1px 0 0; color: var(--simplex-muted); font-size: 11px; }
  .slp-stage { margin-top: 12px; }
  .slp-stage-card { padding: 15px 13px; border-radius: 20px; }
  .slp-stage-top { gap: 8px; }
  .slp-stage-top strong { font-size: 14px; }
  .slp-stage-top small { font-size: 10px; }
  .slp-stage-utilities { gap: 5px; }
  .slp-icon-button { width: 42px; height: 42px; }
  .slp-timer { font-size: 17px; }
  .slp-simulation-section-note { align-items: flex-start; margin-bottom: 12px; padding: 8px 10px; font-size: 11px; }
  .slp-simulation-section-note small { max-width: 110px; font-size: 10px; line-height: 1.35; text-align: left; }
  .slp-simulation-section-results { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 6px; }
  .slp-simulation-section-results > div { padding: 8px; }
  .slp-question { margin: 17px 0; font-size: clamp(22px,6vw,27px); line-height: 1.42; }
  .slp-question, .slp-answer { overflow-wrap: anywhere; }
  .slp-answer-row { grid-template-columns: minmax(0,1fr) 42px; gap: 6px; }
  .slp-answer { min-height: 54px; padding: 11px 13px; line-height: 1.45; }
  .slp-eliminate { min-height: 54px; }
  .slp-audio-row button, .slp-question-tools button { min-height: 42px; padding: 8px 10px; }
  .slp-review-reasons button { min-height: 40px; padding: 7px 10px; }
  .slp-stage-actions { position: sticky; z-index: 14; bottom: calc(68px + env(safe-area-inset-bottom)); margin: 16px -3px -5px; padding: 9px 3px 4px; background: linear-gradient(180deg,rgba(255,254,250,0),#fffefa 23%); }
  .slp-stage-actions button { min-height: 46px; }

  .slp-report-hero { margin-top: 12px; padding: 22px 17px; grid-template-columns: 1fr 79px; gap: 12px; border-radius: 21px; }
  .slp-report-hero h1 { font-size: 29px; }
  .slp-report-hero p { font-size: 12px; line-height: 1.45; }
  .slp-report-score { width: 76px; height: 76px; }
  .slp-report-score strong { font-size: 23px; }
  .slp-report-score span { font-size: 9px; }
  .slp-report-numbers { grid-template-columns: repeat(2,1fr); gap: 6px; }
  .slp-report-numbers div { padding: 13px 8px; }
  .slp-report-numbers strong { font-size: 22px; }
  .slp-topic-performance { grid-template-columns: 1fr; gap: 7px; }
  .slp-performance-card { padding: 15px; }
  .slp-next-recommendation { padding: 19px 16px; display: block; }
  .slp-next-recommendation p { margin-top: 5px; font-size: 12px; }
  .slp-next-recommendation .slp-primary { width: 100%; margin-top: 13px; }

  .slp-vocab-toolbar { gap: 7px; }
  .slp-vocab-toolbar h1 { font-size: 28px; }
  .slp-vocab-card { height: min(270px,39vh); min-height: 245px; }
  .slp-vocab-word { font-size: clamp(34px,11vw,53px); }
  .slp-vocab-history { min-height: 31px; }
  .slp-vocab-actions { position: sticky; z-index: 12; bottom: calc(70px + env(safe-area-inset-bottom)); padding: 7px 0 3px; background: linear-gradient(180deg,rgba(247,244,239,0),#f7f4ef 28%); }
  .slp-bottom-nav { height: calc(64px + env(safe-area-inset-bottom)); }
  .slp-bottom-nav button { min-height: 50px; }
}

@media (hover: none) and (pointer: coarse) {
  .simplex-learning-root button, .simplex-learning-root a { -webkit-tap-highlight-color: transparent; }
  .simplex-learning-root button:active { transform: scale(.985); }
  .slp-answer:active, .slp-vocab-choice:active, .slp-bottom-nav button:active { transform: scale(.99); }
}

@media (max-width: 370px) {
  .slp-shell { padding-inline: 8px; }
  .slp-hero-actions { grid-template-columns: 1fr; }
  .slp-hero-actions .slp-secondary { min-height: 36px; }
  .slp-action-card, .slp-action-learning { min-height: 121px; padding: 10px; }
  .slp-mode-picker small { display: none; }
  .slp-mode-picker button { min-height: 45px; }
}

@media (hover: none) {
  .slp-primary:hover, .slp-plan-item:hover, .slp-action-card:hover, .slp-lesson-card:hover, .slp-tip-card:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* v0.7.1 — final mobile experience pass */
body.simplex-learning-page {
  min-width: 320px;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
  overflow-anchor: none;
}
.simplex-learning-root { overflow-anchor: none; }
.simplex-learning-root button { -webkit-appearance: none; appearance: none; }
.simplex-learning-root button { user-select: none; }
.simplex-learning-root img,
.simplex-learning-root video { max-width: 100%; }
.simplex-learning-root :is(h1,h2,h3,p) { overflow-wrap: break-word; }
.simplex-learning-root :is(button,a,input,select):focus-visible {
  outline: 3px solid rgba(111,82,196,.28);
  outline-offset: 3px;
}
.slp-question,
.slp-answer,
.slp-vocab-word,
.slp-word-english strong { font-family: "Heebo Local", Heebo, "Segoe UI", Arial, sans-serif; }
.slp-view-enter { animation: slp-view-in .22s ease-out both; }
@keyframes slp-view-in {
  from { opacity: .25; }
  to { opacity: 1; }
}
.slp-desktop-nav button.is-active { color: #513d77; background: #fff; box-shadow: 0 4px 12px rgba(60,47,73,.07); }
.slp-plan-item.is-next { border-color: #bba9df; background: #fbf9ff; box-shadow: 0 8px 20px rgba(92,69,158,.08); }
.slp-plan-item.is-complete { opacity: .72; }
.slp-next-label { margin-inline-start: 7px; padding: 2px 6px; display: inline-flex; vertical-align: middle; border-radius: 999px; color: #654bb6; background: #eee8fb; font-size: 9px; font-style: normal; font-weight: 700; }
.slp-vocab-workspace { overflow-anchor: none; }
.slp-audio-toggle svg { width: 19px; height: 19px; display: block; }
.slp-pronounce svg { width: 18px; height: 18px; display: block; }
.slp-vocab-previous svg { width: 16px; height: 16px; display: block; }
.slp-modal-icon svg { width: 31px; height: 31px; display: block; }
.slp-vocab-empty > span svg { width: 29px; height: 29px; display: block; }
.simplex-learning-root .slp-vocab-card {
  /* Must override the generic button touch rule. Horizontal movement belongs
     to the flashcard; vertical movement remains available for page scroll. */
  touch-action: pan-y;
  overscroll-behavior-inline: contain;
  -webkit-user-select: none;
  user-select: none;
}
.slp-word-row,
.slp-performance-card { content-visibility: auto; contain-intrinsic-size: auto 84px; }

@media (max-width: 720px) {
  :root { --simplex-radius: 19px; }
  .simplex-learning-root { min-height: 100dvh; }
  .slp-shell { width: 100%; max-width: 560px; min-height: 100dvh; padding-inline: 10px; }

  /* A compact app bar preserves context without competing with the task. */
  .slp-header {
    min-height: 56px;
    top: max(5px,env(safe-area-inset-top));
    border-color: rgba(226,218,209,.88);
    background: rgba(255,254,251,.92);
    box-shadow: 0 7px 22px rgba(51,39,61,.07);
  }
  .slp-app-home { min-height: 40px; justify-content: center; }
  .slp-app-home strong { font-size: 14px; }
  .slp-app-home span { font-size: 10px; }
  .slp-user { min-width: 0; }
  .slp-user strong { max-width: 100px; }

  /* Home: the next useful action is visually dominant. */
  .slp-dashboard-hero { border-width: 1px; box-shadow: 0 15px 36px rgba(65,49,74,.10); }
  .slp-hero-actions .slp-primary { box-shadow: 0 8px 20px rgba(95,69,185,.20); }
  .slp-plan-item.is-next { border-color: #a995d5; background: linear-gradient(100deg,#fbf9ff,#fffdfa); }
  .slp-plan-item.is-next .slp-plan-arrow { color: #654bb6; }
  .slp-plan-item.is-complete { opacity: .64; box-shadow: none; }
  .slp-next-label { margin-inline-start: 5px; }
  .slp-quick-stats { overscroll-behavior-inline: contain; scroll-padding-inline: 10px; }
  .slp-quick-stats::after { content: ""; width: 3px; }

  /* Learning content behaves like a calm, swipeable media shelf. */
  .slp-learning-heading { box-shadow: 0 13px 32px rgba(57,45,68,.08); }
  .slp-learning-heading h1 { font-size: clamp(30px,9vw,35px); line-height: 1.1; }
  .slp-learning-counts span { min-height: 58px; display: grid; place-content: center; }
  .slp-learning-section-title { margin-bottom: 10px; }
  .slp-lesson-grid,
  .slp-tip-grid {
    margin-inline: -10px;
    padding: 1px 10px 10px;
    display: grid;
    grid-template-columns: none;
    grid-auto-flow: column;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scroll-padding-inline: 10px;
    scrollbar-width: none;
  }
  .slp-lesson-grid::-webkit-scrollbar,
  .slp-tip-grid::-webkit-scrollbar { display: none; }
  .slp-lesson-grid { grid-auto-columns: minmax(270px,84vw); gap: 10px; }
  .slp-tip-grid { grid-auto-columns: minmax(245px,77vw); gap: 8px; }
  .slp-lesson-card,
  .slp-tip-card { scroll-snap-align: start; scroll-snap-stop: normal; }
  .slp-lesson-card { min-height: 0; }
  .slp-lesson-copy { min-height: 118px; padding: 14px; }
  .slp-lesson-copy > span { -webkit-line-clamp: 2; display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; }
  .slp-tip-card { min-height: 78px; }
  .slp-video-player { margin-inline: -2px; box-shadow: 0 15px 36px rgba(43,32,51,.16); }
  .slp-video-close { width: 44px; height: 44px; }

  /* Practice: larger targets, one clear action, and less chrome. */
  .slp-stage { width: 100%; }
  .slp-stage-card { overflow: visible; border-color: #ece4dc; box-shadow: 0 10px 28px rgba(54,43,63,.065); }
  .slp-stage-utilities > .slp-secondary { display: none; }
  .slp-stage-top { min-height: 44px; margin-bottom: 12px; }
  .slp-bar { height: 6px; }
  .slp-question-tools { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; }
  .slp-question-tools button { min-width: 0; justify-content: center; white-space: nowrap; }
  .slp-audio-row button { width: 100%; justify-content: center; }
  .slp-question { margin-block: 18px; letter-spacing: -.01em; }
  .slp-answer-row { align-items: stretch; }
  .slp-answer { border-width: 1.5px; border-radius: 15px; font-size: 16px; }
  .slp-answer.is-selected { box-shadow: 0 0 0 3px rgba(109,78,211,.08); }
  .slp-eliminate { width: 42px; border-radius: 13px; font-size: 20px; }
  .slp-passage { margin-block: 16px; border-radius: 15px; }
  .slp-passage summary { min-height: 48px; padding: 13px 15px; }
  .slp-passage summary { padding: 13px 15px; }
  .slp-passage summary small { max-width: 120px; font-size: 10px; text-align: right; }
  .slp-passage-copy { max-height: 42dvh; padding: 2px 15px 16px; font-size: 16px; line-height: 1.72; }
  .slp-reading-reference-hint { font-size: 12px; }
  .slp-passage-paragraph { margin-top: 13px; padding-top: 13px; }
  .slp-feedback { padding: 15px; border-radius: 15px; font-size: 14px; }
  .slp-stage-actions {
    grid-template-columns: minmax(0,.78fr) minmax(0,1.22fr);
    align-items: stretch;
    gap: 7px;
  }
  .slp-stage-actions button { width: 100%; padding-inline: 10px; }
  .slp-stage-actions > :only-child { grid-column: 1 / -1; }
  .slp-focus-mode .slp-stage-actions { bottom: calc(8px + env(safe-area-inset-bottom)); }
  /* A sticky navigation bar can cover the question while a long reading
     passage is open. Keep it in the normal document flow for passage-based
     simulation questions so students reach the question and answers before
     the navigation controls. */
  .slp-focus-mode .slp-stage-card.has-passage .slp-stage-actions {
    position: static;
    margin-bottom: 0;
  }
  .slp-mode-picker { position: relative; }
  .slp-mode-picker button { touch-action: manipulation; }
  .slp-topic-grid .slp-action-card { box-shadow: 0 7px 20px rgba(56,44,65,.055); }
  .slp-list-item { align-items: stretch; }
  .slp-review-item { flex-direction: column; }
  .slp-review-question-button { align-self: stretch; width: 100%; min-width: 96px; }

  /* Vocabulary: thumb-friendly controls and a stable card area. */
  .slp-vocab-workspace { margin-top: 15px; }
  .slp-vocab-toolbar { align-items: center; }
  .slp-vocab-toolbar p { max-width: 275px; line-height: 1.45; }
  .slp-vocab-toolbar-actions .slp-secondary:not(.slp-vocab-exit) { display: none; }
  .slp-vocab-exit { min-height: 42px; padding: 7px 10px; font-size: 12px; white-space: nowrap; }
  .slp-audio-toggle { width: 44px; min-width: 44px; height: 44px; padding: 0; justify-content: center; border-radius: 14px; }
  .slp-vocab-tabs { margin-top: 16px; }
  .slp-vocab-filters { gap: 7px; border-radius: 14px; }
  .slp-vocab-filters select { min-height: 46px; padding-inline: 12px 34px; -webkit-appearance: none; appearance: none; background-image: linear-gradient(45deg,transparent 50%,#756b7a 50%),linear-gradient(135deg,#756b7a 50%,transparent 50%); background-position: 18px 20px,13px 20px; background-repeat: no-repeat; background-size: 5px 5px,5px 5px; }
  .slp-vocab-mode { min-height: 44px; }
  .slp-vocab-mode button { min-height: 38px; }
  .slp-vocab-unit-status { margin-top: 8px; padding: 10px 11px; border-radius: 13px; }
  .slp-vocab-unit-status span { flex-basis: 100%; font-size: 10px; }
  .slp-vocab-meta { margin-top: 14px; gap: 9px; }
  .slp-vocab-meta > div:first-child strong { font-size: 20px; }
  .slp-vocab-meta > div:first-child span { font-size: 11px; }
  .slp-vocab-score { gap: 4px; font-size: 10px; }
  .slp-vocab-score span { padding: 4px 6px; }
  .slp-vocab-deck { min-height: clamp(265px,40dvh,322px); }
  .slp-vocab-card { height: clamp(245px,37dvh,300px); min-height: 245px; }
  .slp-vocab-face { padding-inline: 18px; }
  .slp-vocab-example { max-width: 94%; font-size: 13px; line-height: 1.45; text-align: center; }
  .slp-pronounce { width: 44px; min-width: 44px; height: 44px; padding: 0; justify-content: center; }
  .slp-swipe-note { margin-top: 4px; }
  .slp-vocab-actions { gap: 6px; }
  .slp-vocab-choice,
  .slp-vocab-flip { min-height: 46px; }
  .slp-vocab-history { min-height: 28px; }
  .slp-vocab-previous { min-height: 36px; }

  /* The full dictionary remains readable without creating tiny columns. */
  .slp-vocabulary-library { margin-top: 15px; }
  .slp-vocab-search { margin-top: 15px; border-radius: 17px; box-shadow: 0 7px 20px rgba(55,43,65,.055); }
  .slp-vocab-search input { min-height: 48px; font-size: 16px; }
  .slp-library-summary { margin-top: 15px; }
  .slp-library-summary strong { font-size: 25px; }
  .slp-word-list { gap: 7px; }
  .slp-word-row { min-height: 78px; border-radius: 15px; box-shadow: 0 5px 16px rgba(55,43,65,.045); }

  /* A stable, reachable navigation bar with an unmistakable active tab. */
  .slp-bottom-nav {
    padding-inline: max(7px,env(safe-area-inset-left)) max(7px,env(safe-area-inset-right));
    border-top-color: rgba(220,212,203,.95);
    background: rgba(255,254,251,.97);
  }
  .slp-bottom-nav button { position: relative; border-radius: 14px; }
  .slp-bottom-nav button::before { content: ""; width: 20px; height: 3px; position: absolute; top: 1px; border-radius: 999px; background: transparent; }
  .slp-bottom-nav button.is-active { color: #5d45a3; background: #f2edf9; }
  .slp-bottom-nav button.is-active::before { background: #7054c3; }
  .slp-bottom-nav button.is-active small { font-weight: 700; }

  .slp-onboarding-form .slp-primary { min-height: 50px; }
  .slp-choice-row label span { border-radius: 12px; }
  .slp-report-numbers div,
  .slp-performance-card { box-shadow: 0 6px 18px rgba(55,43,65,.05); }
}

@media (max-width: 370px) {
  .slp-question-tools button span { display: none; }
  .slp-question-tools button { min-height: 44px; }
  .slp-vocab-toolbar p { max-width: 225px; }
  .slp-vocab-actions { grid-template-columns: minmax(0,1fr) 92px minmax(0,1fr); }
  .slp-vocab-choice { font-size: 11px; }
  .slp-vocab-flip { min-width: 92px; font-size: 11px; }
  .slp-bottom-nav small { font-size: 9px; }
}

@media (max-width: 720px) and (orientation: landscape) and (max-height: 520px) {
  .slp-header { position: relative; top: 0; }
  .slp-vocab-card { height: 230px; min-height: 230px; }
  .slp-vocab-deck { min-height: 248px; }
  .slp-stage-actions { position: static; }
}
