/* LekkerOefenen: shared presentation only; lesson and account logic stays intact. */
:root {
  --ink: #25364a;
  --navy: #315b7c;
  --muted: #6d7d8e;
  --cream: #fff8ec;
  --paper: #fffdf8;
  --coral: #f06f61;
  --coral-dark: #dc574b;
  --blue: #5a9fd4;
  --yellow: #f7c95b;
  --line: #e8dfd1;
  --shadow: 0 16px 44px rgba(56, 61, 67, .08);
}
body {
  background: radial-gradient(ellipse at 90% 10%, #f8f0e2 0, transparent 43%),
    radial-gradient(ellipse at 0 45%, #fff4e3 0, transparent 48%), #fff8ec;
  background-attachment: fixed;
}
.app-shell { max-width: 1180px; padding-top: 24px; }
.site-footer { padding: 24px 20px 32px; text-align: center; color: var(--navy); }
.site-footer small { font-size: 13px; line-height: 1.6; }
.tests-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.tests-heading > div { min-width: 0; flex: 1 1 220px; }
.managed-test { padding: 20px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.managed-test h3 { margin: 0; font-size: 20px; }
.managed-test p { margin: 8px 0; }
.remove-test { background: #ffe4dc; color: #94372d; }
#deleted-tests { margin-top: 24px; }
#deleted-tests > summary, .managed-test summary { cursor: pointer; padding: 12px 0; min-height: 44px; font-weight: 600; }
.test-pairs { margin: 0; }
.test-pairs > div { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); }
.test-pairs dt { font-weight: 600; }
.test-pairs dd { margin: 0; }
#scan-form > select { width: 100%; min-height: 48px; padding: 12px; margin: 8px 0 20px; font: inherit; color: var(--ink); border: 1px solid var(--line); border-radius: 12px; background: white; }
#test-import { scroll-margin-top: 24px; }
h1, h2, .activity-card strong, .quiz-feedback strong, .score-ring strong {
  font-family: "DM Sans", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -.045em;
}
h1 { line-height: 1.12; }
.topbar {
  background: #fffdf8ed; border: 1px solid #fff; border-radius: 22px;
  padding: 14px 22px; margin-bottom: 30px; box-shadow: 0 8px 28px #383d4308;
}
.brand-logo { width: 252px; height: auto; }
.top-actions { gap: 10px; font-size: 14px; }
.admin-link { border-radius: 10px; }
.admin-link:hover, .back:hover { color: var(--coral); }
.streak { background: #fff2c9; color: #805c16; }
.streak strong { color: #805c16; }
.eyebrow { color: #bd473b; font-size: 12px; letter-spacing: 1.25px; }
.button { border-radius: 999px; min-height: 48px; padding: 15px 24px; }
.primary { background: linear-gradient(160deg, #f17b6c, #e56556); box-shadow: 0 5px 15px #dc574b30, inset 0 1px 1px #ffffff60; }
.primary:hover { box-shadow: 0 8px 22px #dc574b40; }
.primary:active { transform: translateY(1px); box-shadow: 0 2px 8px #dc574b30; }
.soft, .listen-button { background: #e3f0f8; color: #315b7c; }
.listen-button:hover { background: #d5e8f4; }
.back { min-height: 44px; }
:focus-visible { outline: 3px solid #315b7c; outline-offset: 4px; }
.landing-welcome {
  max-width: none; margin: 0; padding: 50px 38px; text-align: left;
  position: relative; overflow: hidden;
}
.landing-welcome h1 { font-size: clamp(36px, 4.8vw, 58px); max-width: 510px; }
.landing-welcome h1 em { display: block; color: var(--coral); }
.landing-welcome > p:last-child { max-width: 440px; font-size: 17px; }
.landing-brand-mark { width: 64px; height: 64px; margin: 0 0 24px; }
#landing-view.active {
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center;
  border: 1px solid white; border-radius: 30px; min-height: 430px;
  background: radial-gradient(ellipse at 95% 0%, #dff0ef, transparent 55%), linear-gradient(125deg, #fff 45%, #eaf4f2);
  box-shadow: var(--shadow); padding-right: 34px;
}
.subject-grid { margin: 0; gap: 18px; padding: 30px 0; }
.activity-card {
  border: 1px solid var(--line); border-radius: 22px; padding: 23px 22px;
  box-shadow: 0 7px 22px #383d4307; min-width: 0;
}
.activity-card.coral { background: #ffe4dc; }
.activity-card.blue { background: #e0eff9; }
.activity-card.yellow { background: #fff0bd; }
.activity-card:hover { border-color: #b6cdd4; box-shadow: 0 10px 26px #383d4310; }
.activity-icon { background: #fff9; color: #315b7c; font-family: "DM Sans", sans-serif; font-weight: 700; flex-shrink: 0; }
.blue .activity-icon { background: #fff9; color: #315b7c; }
.yellow .activity-icon { background: #fff9; color: #805c16; }
.activity-card strong { font-size: 20px; letter-spacing: -.025em; }
.activity-card small, .activity-card i { color: var(--muted); line-height: 1.5; }
.activity-card b { color: #315b7c; }
.subject-grid .activity-card { min-height: 148px; }
.subject-grid .activity-card > span:nth-child(2) { padding-right: 12px; }
.test-context { background: #eef7f8; border: 1px solid var(--line); box-shadow: 0 5px 18px #383d4304; }
.test-identity h2 { letter-spacing: -.025em; }
#lesson-picker { border-color: var(--line); }
.hero { border: 1px solid #fff; border-radius: 28px; background: #dff0ef; box-shadow: var(--shadow); }
.hero-copy { padding: 36px 42px 40px; }
.hero-copy h1 { font-size: clamp(34px, 4.8vw, 50px); }
.hero-copy h1 em { color: #f06f61; }
.hero-copy .intro { max-width: 750px; color: #6d7d8e; }
.progress-card, .admin-card { box-shadow: var(--shadow); }
.progress-track { background: #e8edf0; }
.progress-track span { background: linear-gradient(90deg, #f06f61, #f59a70); }
.activity-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.practice-settings select, .admin-card input { border-color: var(--line); background: white; }
.quiz-panel, .study-card { border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
.quiz-panel { padding: 30px clamp(20px, 5vw, 64px); }
.quiz-word { font-size: clamp(29px, 3.8vw, 42px); letter-spacing: -.035em; }
.quiz-direction, .language-label { color: #315b7c; }
.quiz-prompt { font-size: 17px; }
.quiz-options { gap: 14px; margin-top: 24px; }
.answer { border-color: #e6ebec; border-radius: 16px; min-height: 64px; line-height: 1.4; }
.answer:hover:not(:disabled) { border-color: #84b9db; background: #f4fbff; }
.answer.correct { background: #e2f5e7; border-color: #66b97c; color: #24713a; }
.answer.wrong { background: #ffe8e4; border-color: #eb7667; color: #a43b32; }
.quiz-feedback { margin-top: 18px; min-height: 68px; line-height: 1.4; }
.quiz-feedback strong { font-size: 19px; }
.next-question { margin-top: 12px; }
.study-card:before, .study-card:after { background: #e6f3f2; }
.study-card h2 { letter-spacing: -.035em; }
.score-ring { border-color: #dcefed; border-top-color: var(--coral); }
.score-ring strong { font-size: 27px; }
#quiz-view, #learn-view { min-height: calc(100svh - 32px); padding-bottom: 24px; }
.exercise-focus:focus { outline: none; }
.learner-login { margin-top: 45px; max-width: 510px !important; padding: 38px; }
.login-brand-mark { width: 56px; height: 56px; }
.learner-login h1 { font-size: 36px; }
.result-card { border: 1px solid var(--line); }
#toast:not(.show) { visibility: hidden; }
.result-actions { flex-wrap: wrap; }
#retry-mistakes[hidden] { display: none; }
#users-list .user-row { flex-wrap: wrap; gap: 14px; }
#users-list .request-actions { flex-wrap: wrap; }
#recovery-link { width: 100%; min-width: 0; }
.access-request-row { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:16px; padding:20px 0; border-bottom:1px solid var(--line); }
.access-request-row p { margin:5px 0; overflow-wrap:anywhere; }
.access-request-row small { color:var(--muted); }
.request-actions { display:flex; flex-wrap:wrap; gap:10px; }
#access-request-form label { margin-top:16px; }
#school-help { display:block; text-align:left; color:var(--muted); margin:6px 0 18px; }
#request-captcha { min-height:65px; margin-top:20px; }
#request-success strong { overflow-wrap:anywhere; }
@media (max-width: 900px) {
  .topbar { padding: 12px 18px; }
  .brand-logo { width: 225px; }
  #landing-view.active { grid-template-columns: 1fr; padding: 0 30px 30px; }
  .landing-welcome { padding: 34px 4px 12px; }
  .landing-welcome h1 em { display: inline; }
  .landing-welcome > p:last-child { max-width: 580px; }
  .subject-grid { grid-template-columns: minmax(0, 1fr); padding: 10px 0 0; }
  .subject-grid .activity-card { min-height: 120px; }
}
@media (max-width: 700px) {
  .app-shell { padding: 14px 16px 32px; }
  .topbar { padding: 12px 14px; gap: 6px; border-radius: 18px; margin-bottom: 22px; }
  .brand-logo { width: 215px; }
  .top-actions { gap: 4px; }
  #signed-in-user { font-size: 13px; }
  #landing-view.active { padding: 0 20px 24px; border-radius: 24px; }
  .landing-welcome { padding-top: 26px; }
  .landing-welcome h1 { font-size: 36px; }
  .landing-brand-mark { width: 48px; height: 48px; margin-bottom: 18px; }
  .subject-grid .activity-card { padding: 18px 14px; }
  .activity-card strong { font-size: 19px; }
  .test-context { padding: 18px; gap: 12px; }
  .test-identity h2 { font-size: 26px; }
  .hero-copy { padding: 28px 24px 32px; }
  .activity-grid { grid-template-columns: 1fr; }
  .quiz-panel { padding: 25px 18px 22px; }
  .quiz-options { gap: 10px; }
  .answer { min-height: 58px; padding: 13px 16px; font-size: 16px; }
  .quiz-word { font-size: 29px; }
  .quiz-header { margin: 18px 0; }
  .learner-login { padding: 28px 22px; margin-top: 28px; }
  .learner-login h1 { font-size: 31px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
