@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap");

:root {
  --forest: #17285f;
  --forest-2: #3157b7;
  --mint: #e7ebff;
  --cream: #f6f7fc;
  --paper: #ffffff;
  --ink: #1b2240;
  --muted: #727a9a;
  --line: #e0e4f1;
  --orange: #7559d9;
  --orange-pale: #eeeaff;
  --blue: #2f6fe8;
  --blue-pale: #e8efff;
  --shadow: 0 24px 70px rgba(30, 46, 102, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: "DM Sans", sans-serif; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
[hidden] { display: none !important; }

.eyebrow {
  margin: 0 0 10px;
  color: var(--orange);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.login-screen { min-height: 100vh; background: var(--cream); overflow: hidden; }
.public-header {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1240px;
  margin: auto;
  padding: 24px 34px;
}
.public-brand, .app-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--forest); text-decoration: none; }
.public-brand > span, .app-brand > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px 4px 14px 4px;
  color: white;
  background: var(--forest);
  font: 800 23px/1 "Manrope", sans-serif;
}
.public-brand strong, .app-brand strong { font: 800 16px/1.15 "Manrope", sans-serif; }
.public-brand small, .app-brand small { display: block; margin-top: 4px; color: var(--orange); font: 700 10px/1 "DM Sans", sans-serif; letter-spacing: .08em; }
.teacher-link { color: var(--forest); font-size: 13px; font-weight: 700; text-decoration: none; }
.teacher-link span { margin-left: 7px; }

.login-main {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(390px, .75fr);
  gap: clamp(40px, 7vw, 110px);
  align-items: center;
  min-height: calc(100vh - 92px);
  max-width: 1240px;
  margin: auto;
  padding: 30px 34px 80px;
}
.login-story { position: relative; max-width: 690px; padding: 35px 0 80px; }
.login-story::before {
  position: absolute;
  z-index: 0;
  top: -160px;
  left: -300px;
  width: 650px;
  height: 650px;
  border: 1px solid rgba(35, 87, 71, .12);
  border-radius: 50%;
  content: "";
}
.login-story h1 {
  position: relative;
  margin: 0;
  color: var(--forest);
  font: 800 clamp(50px, 6vw, 86px)/.98 "Manrope", sans-serif;
  letter-spacing: -.06em;
}
.login-story h1 em { color: var(--orange); font-style: normal; }
.login-story > p:not(.eyebrow) { position: relative; max-width: 580px; margin: 28px 0; color: #56655e; font-size: 18px; line-height: 1.7; }
.login-benefits { position: relative; display: flex; flex-wrap: wrap; gap: 10px; }
.login-benefits span { display: inline-flex; align-items: center; gap: 9px; padding: 10px 13px; border: 1px solid rgba(35, 87, 71, .12); border-radius: 30px; background: rgba(255,255,255,.48); color: var(--forest); font-size: 12px; font-weight: 700; }
.login-benefits b { color: var(--orange); }
.word-ribbon { position: absolute; bottom: -7px; left: -60px; display: flex; gap: 35px; width: 790px; padding: 17px 24px; color: rgba(255,255,255,.82); background: var(--forest); transform: rotate(-4deg); }
.word-ribbon span { white-space: nowrap; font: 700 13px/1 "Manrope", sans-serif; }
.word-ribbon span::before { margin-right: 35px; color: var(--orange); content: "•"; }

.login-card { position: relative; z-index: 2; padding: 42px; border: 1px solid rgba(35, 87, 71, .1); border-radius: 28px 8px 28px 8px; background: rgba(255,253,248,.94); box-shadow: var(--shadow); }
.login-card-mark { display: none; }
.login-card h2 { margin: 0; color: var(--forest); font: 800 36px/1.1 "Manrope", sans-serif; letter-spacing: -.04em; }
.login-card > p:not(.eyebrow) { margin: 12px 0 28px; color: var(--muted); line-height: 1.5; }
.login-card label { display: block; margin-bottom: 17px; }
.login-card label > span:first-child { display: block; margin-bottom: 8px; color: #33453d; font-size: 12px; font-weight: 800; }
.login-card input { width: 100%; height: 52px; border: 1px solid #d4dbd6; border-radius: 12px; outline: none; padding: 0 15px; color: var(--ink); background: white; }
.login-card input:focus { border-color: var(--forest-2); box-shadow: 0 0 0 3px rgba(36,88,72,.1); }
.password-field { position: relative; display: block !important; margin: 0 !important; }
.password-field button { position: absolute; top: 50%; right: 8px; border: 0; padding: 8px; color: var(--forest-2); background: transparent; font-size: 11px; font-weight: 800; transform: translateY(-50%); cursor: pointer; }
.form-error { min-height: 20px; margin: -3px 0 8px !important; color: #b84035 !important; font-size: 12px; font-weight: 700; }
.primary-action { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 55px; border: 0; border-radius: 14px 4px 14px 4px; padding: 0 19px; color: white; background: var(--forest); font-weight: 800; cursor: pointer; transition: .2s ease; }
.primary-action:hover { background: var(--forest-2); transform: translateY(-1px); }
.primary-action:disabled { opacity: .6; cursor: wait; }
.primary-action b { font-size: 20px; }
.primary-action.compact { width: max-content; min-width: 220px; min-height: 48px; margin-top: 24px; background: var(--orange); }
.login-help { display: block; margin-top: 20px; color: var(--muted); font-size: 11px; line-height: 1.5; text-align: center; }

.student-app { min-height: 100vh; background: #f4f6fc; }
.student-sidebar {
  position: fixed;
  z-index: 20;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  width: 248px;
  padding: 27px 22px 22px;
  color: white;
  background: var(--forest);
}
.app-brand { color: white; margin: 0 5px 44px; }
.app-brand > span { color: var(--forest); background: var(--paper); }
.app-brand small { color: #c5b8ff; }
.student-sidebar nav { display: grid; gap: 7px; }
.student-sidebar nav button {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  border: 0;
  border-radius: 11px 3px 11px 3px;
  padding: 11px 13px;
  color: rgba(255,255,255,.67);
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.student-sidebar nav button .nav-icon { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 9px; }
.nav-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.student-sidebar nav button.active { color: var(--forest); background: var(--paper); }
.student-sidebar nav button.active .nav-icon { color: white; background: var(--orange); box-shadow: 0 5px 12px rgba(110, 78, 226, .24); }
.sidebar-quote { margin-top: auto; padding: 18px; border: 1px solid rgba(255,255,255,.11); border-radius: 15px 4px 15px 4px; background: rgba(255,255,255,.05); }
.sidebar-quote > span { color: #c5b8ff; font-size: 9px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.sidebar-quote blockquote { margin: 9px 0 0; color: rgba(255,255,255,.82); font: 600 13px/1.55 "Manrope", sans-serif; }
.logout-button { margin-top: 12px; border: 0; padding: 10px; color: rgba(255,255,255,.48); background: transparent; font-size: 11px; cursor: pointer; }

.student-main { min-height: 100vh; margin-left: 248px; }
.student-topbar { display: flex; align-items: center; min-height: 92px; padding: 20px clamp(24px, 4vw, 58px); border-bottom: 1px solid rgba(35,87,71,.1); background: rgba(255,253,248,.64); }
.topbar-copy p { margin: 0 0 3px; color: var(--muted); font-size: 11px; text-transform: capitalize; }
.topbar-copy h1 { margin: 0; color: var(--forest); font: 800 22px/1.2 "Manrope", sans-serif; letter-spacing: -.025em; }
.student-identity { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.student-identity > span { display: grid; width: 43px; height: 43px; place-items: center; border-radius: 13px 4px 13px 4px; color: white; background: var(--orange); font: 800 13px/1 "Manrope", sans-serif; }
.student-identity strong, .student-identity small { display: block; }
.student-identity strong { color: var(--forest); font-size: 12px; }
.student-identity small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.mobile-menu { display: none; border: 0; background: transparent; font-size: 22px; }
.app-view { max-width: 1250px; margin: auto; padding: 38px clamp(24px, 4vw, 58px) 70px; }

.welcome-panel { position: relative; display: flex; align-items: center; min-height: 282px; overflow: hidden; border-radius: 24px 7px 24px 7px; padding: 42px 48px; color: white; background: var(--forest); }
.welcome-panel > div:first-child { position: relative; z-index: 2; max-width: 590px; }
.welcome-panel h2 { max-width: 510px; margin: 0; font: 800 clamp(28px, 3.4vw, 46px)/1.08 "Manrope", sans-serif; letter-spacing: -.045em; }
.welcome-panel p:not(.eyebrow) { max-width: 560px; margin: 15px 0 0; color: rgba(255,255,255,.7); line-height: 1.6; }
.today-orbit { position: relative; z-index: 2; display: grid; flex: 0 0 144px; height: 144px; place-content: center; margin-left: auto; border: 8px solid rgba(255,255,255,.12); border-top-color: var(--orange); border-radius: 50%; text-align: center; transform: rotate(8deg); }
.today-orbit::after { position: absolute; inset: -18px; border: 1px dashed rgba(255,255,255,.16); border-radius: 50%; content: ""; }
.today-orbit span, .today-orbit small { display: block; transform: rotate(-8deg); }
.today-orbit span { font: 800 34px/1 "Manrope", sans-serif; }
.today-orbit small { margin-top: 5px; color: rgba(255,255,255,.58); font-size: 9px; line-height: 1.4; text-transform: uppercase; }
.welcome-word { position: absolute; color: rgba(255,255,255,.055); font: 800 58px/1 "Manrope", sans-serif; font-style: normal; transform: rotate(-12deg); }
.welcome-word.one { top: 20px; right: 230px; }
.welcome-word.two { bottom: 9px; right: 110px; }
.welcome-word.three { top: 80px; right: -90px; }

.home-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 20px; margin-top: 22px; }
.next-card, .weekly-card { min-height: 225px; border: 1px solid rgba(35,87,71,.1); border-radius: 18px 5px 18px 5px; padding: 27px; background: var(--paper); }
.next-card header { display: flex; justify-content: space-between; gap: 15px; }
.next-card h3, .weekly-card h3 { margin: 0; color: var(--forest); font: 800 22px/1.2 "Manrope", sans-serif; }
.next-card > p { color: var(--muted); font-size: 13px; line-height: 1.6; }
.lesson-level { display: grid; flex: 0 0 43px; height: 43px; place-items: center; border-radius: 13px 4px; color: var(--orange); background: var(--orange-pale); font-weight: 800; }
.next-meta { display: flex; gap: 18px; color: var(--muted); font-size: 11px; }
.next-card > button { display: flex; justify-content: space-between; width: 100%; border: 0; border-top: 1px solid var(--line); margin-top: 21px; padding: 16px 0 0; color: var(--forest); background: transparent; font-weight: 800; cursor: pointer; }
.weekly-card { color: white; background: var(--orange); border-color: transparent; }
.weekly-card .eyebrow { color: #ffe0d1; }
.weekly-card h3 { color: white; max-width: 380px; }
.week-dots { display: flex; justify-content: space-between; gap: 6px; margin: 23px 0 13px; }
.week-dots span { display: grid; gap: 6px; color: rgba(255,255,255,.65); font-size: 8px; text-align: center; }
.week-dots i { display: grid; width: 29px; height: 29px; place-items: center; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; font-size: 10px; font-style: normal; }
.week-dots span.done i { color: var(--orange); background: white; border-color: white; }
.week-dots span.today i { box-shadow: 0 0 0 3px rgba(255,255,255,.16); }
.weekly-card > small { color: rgba(255,255,255,.73); font-size: 10px; }
.needs-shortcut {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin-top: 20px;
  border: 1px solid rgba(35,87,71,.1);
  border-radius: 15px 4px;
  padding: 17px 20px;
  color: var(--forest);
  background: var(--paper);
  text-align: left;
  cursor: pointer;
}
.needs-shortcut-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 13px 4px; color: white; background: var(--orange); font-weight: 800; }
.needs-shortcut small, .needs-shortcut strong { display: block; }
.needs-shortcut small { margin-bottom: 3px; color: var(--orange); font-size: 9px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.needs-shortcut strong { font-size: 13px; line-height: 1.45; }
.needs-shortcut > b { font-size: 18px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin: 38px 0 15px; }
.section-heading h2, .study-heading h2, .grammar-hero h2, .progress-hero h2 { margin: 0; color: var(--forest); font: 800 27px/1.2 "Manrope", sans-serif; letter-spacing: -.035em; }
.section-heading button { border: 0; color: var(--forest-2); background: transparent; font-size: 11px; font-weight: 800; cursor: pointer; }
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.metric-grid article { display: flex; align-items: center; gap: 13px; border: 1px solid rgba(35,87,71,.1); border-radius: 15px 4px; padding: 18px; background: var(--paper); }
.metric-icon { display: grid; width: 43px; height: 43px; place-items: center; border-radius: 12px 4px; font-weight: 800; }
.metric-icon.orange { color: var(--orange); background: var(--orange-pale); }
.metric-icon.green { color: var(--forest-2); background: var(--mint); }
.metric-icon.blue { color: var(--blue); background: var(--blue-pale); }
.metric-grid strong, .metric-grid small { display: block; }
.metric-grid strong { color: var(--forest); font: 800 21px/1 "Manrope", sans-serif; }
.metric-grid small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.metric-grid article > i { margin-left: auto; color: var(--muted); font-size: 9px; font-style: normal; }

.study-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 25px; }
.study-heading > div:first-child > p:last-child, .grammar-hero > div > p:last-child { color: var(--muted); font-size: 13px; }
.level-switch { display: flex; gap: 5px; padding: 4px; border-radius: 12px; background: #e8e6df; }
.level-switch button { width: 48px; height: 37px; border: 0; border-radius: 9px 3px; color: var(--muted); background: transparent; font-size: 11px; font-weight: 800; cursor: pointer; }
.level-switch button.active { color: white; background: var(--forest); }
.level-switch button small { display: block; margin-top: 1px; font-size: 8px; line-height: 1; }
.level-switch button.locked { opacity: .48; cursor: not-allowed; }
.study-progress { display: flex; align-items: center; gap: 12px; margin-bottom: 23px; color: var(--muted); font-size: 10px; }
.study-progress > i { position: relative; flex: 1; height: 6px; overflow: hidden; border-radius: 5px; background: #dde1dc; }
.study-progress > i b { display: block; height: 100%; border-radius: inherit; background: var(--orange); }
.flashcard-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 28px; }
.deck-menu { display: grid; align-content: start; gap: 7px; }
.deck-menu button { display: flex; justify-content: space-between; width: 100%; border: 0; border-radius: 11px 3px; padding: 12px 13px; color: var(--muted); background: rgba(255,255,255,.5); font-size: 11px; text-align: left; cursor: pointer; }
.deck-menu button.active { color: white; background: var(--forest); }
.deck-menu b { opacity: .65; }
.card-stage { max-width: 650px; width: 100%; margin: auto; }
.card-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 11px; }
.card-counter { display: flex; flex: 1; justify-content: space-between; color: var(--muted); font-size: 10px; text-transform: uppercase; }
.card-toolbar-actions { display: flex; align-items: center; gap: 7px; }
.direction-toggle { display: flex; align-items: center; gap: 7px; border: 1px solid #d4d9e8; border-radius: 10px; padding: 5px 9px 5px 5px; color: var(--muted); background: white; font-size: 9px; cursor: pointer; }
.direction-toggle span { border-radius: 7px; padding: 6px 8px; color: white; background: var(--forest); font-size: 9px; font-weight: 800; letter-spacing: .04em; }
.direction-toggle b { font-size: 9px; }
.direction-toggle.reversed { color: #5740ae; border-color: #cfc5f5; background: #f5f2ff; }
.direction-toggle.reversed span { background: var(--orange); }
.focus-toggle { display: flex; align-items: center; gap: 7px; border: 1px solid #d4d9e8; border-radius: 10px; padding: 5px 9px 5px 5px; color: var(--muted); background: white; font-size: 9px; cursor: pointer; }
.focus-toggle span { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 7px; color: var(--forest); background: var(--mint); font-size: 15px; font-weight: 800; line-height: 1; }
.focus-toggle b { font-size: 9px; }
.focus-toggle.active { color: white; border-color: var(--forest); background: var(--forest); }
.focus-toggle.active span { color: var(--forest); background: white; }
.memory-card { position: relative; display: block; width: 100%; height: 390px; border: 0; padding: 0; background: transparent; perspective: 1200px; cursor: pointer; }
.card-face { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; border: 1px solid rgba(35,87,71,.12); border-radius: 28px 8px; padding: 45px; background: var(--paper); box-shadow: 0 22px 50px rgba(35,60,50,.08); backface-visibility: hidden; transition: transform .55s cubic-bezier(.2,.75,.2,1); }
.card-front::before, .card-back::before { position: absolute; inset: 12px; border: 1px solid rgba(35,87,71,.07); border-radius: 21px 5px; content: ""; }
.card-back { color: white; background: var(--forest); transform: rotateY(180deg); }
.memory-card.flipped .card-front { transform: rotateY(180deg); }
.memory-card.flipped .card-back { transform: rotateY(360deg); }
.card-face small { position: absolute; top: 30px; color: var(--orange); font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.card-face strong { position: relative; color: var(--forest); font: 800 clamp(33px, 5vw, 58px)/1.1 "Manrope", sans-serif; letter-spacing: -.045em; text-align: center; }
.card-back strong { color: white; font-size: clamp(27px, 4vw, 45px); }
.card-face > i { position: absolute; bottom: 28px; color: var(--muted); font-size: 9px; font-style: normal; }
.card-back > i { color: rgba(255,255,255,.5); }
.card-back p { position: relative; max-width: 480px; margin: 22px 0 0; color: rgba(255,255,255,.72); font-size: 16px; line-height: 1.55; text-align: center; }
.card-status { position: absolute; right: 25px; top: 25px; border-radius: 20px; padding: 6px 9px; font-size: 8px; text-transform: uppercase; }
.card-status.mastered { color: var(--forest); background: var(--mint); }
.card-status.learning { color: #5740ae; background: var(--orange-pale); }
.card-controls { display: grid; grid-template-columns: 42px 1fr 1fr 42px; gap: 10px; margin-top: 17px; }
.card-controls button { min-height: 51px; border: 0; cursor: pointer; }
.round-control { border-radius: 50% !important; color: var(--forest); background: white; font-weight: 800; }
.review-button, .master-button { display: flex; align-items: center; justify-content: center; gap: 9px; border-radius: 13px 4px; }
.review-button { color: #5740ae; background: var(--orange-pale); }
.master-button { color: var(--forest); background: var(--mint); }
.review-button > span, .master-button > span { font-size: 18px; }
.review-button small, .review-button b, .master-button small, .master-button b { display: block; text-align: left; }
.review-button small, .master-button small { opacity: .7; font-size: 8px; }
.review-button b, .master-button b { font-size: 11px; }
.empty-card { display: grid; min-height: 390px; place-content: center; border: 1px dashed #bdc8c1; border-radius: 25px; text-align: center; }

body.flashcard-focus { overflow: hidden; background: #f4f5f8; }
body.flashcard-focus .student-sidebar,
body.flashcard-focus .student-topbar,
body.flashcard-focus .mobile-nav { display: none; }
body.flashcard-focus .student-main { min-height: 100vh; margin-left: 0; padding: 0; }
body.flashcard-focus .app-view { width: 100%; max-width: none; height: 100vh; padding: 20px 28px; overflow: auto; }
body.flashcard-focus .study-heading,
body.flashcard-focus .study-progress,
body.flashcard-focus .deck-menu { display: none; }
body.flashcard-focus .flashcard-layout { grid-template-columns: 1fr; min-height: calc(100vh - 40px); align-items: center; }
body.flashcard-focus .card-stage { max-width: 920px; }
body.flashcard-focus .memory-card { height: min(64vh, 620px); }
body.flashcard-focus .card-face strong { font-size: clamp(42px, 7vw, 82px); }
body.flashcard-focus .card-back strong { font-size: clamp(36px, 6vw, 68px); }
body.flashcard-focus .card-controls { max-width: 760px; margin-right: auto; margin-left: auto; }

.grammar-hero { display: flex; align-items: center; justify-content: space-between; gap: 30px; border-radius: 22px 6px; padding: 33px 38px; color: white; background: var(--forest); }
.grammar-hero h2 { color: white; font-size: 35px; }
.grammar-hero > div > p:last-child { color: rgba(255,255,255,.65); }
.grammar-hero > div:last-child { display: flex; align-items: center; gap: 10px; min-width: 140px; }
.grammar-hero > div:last-child strong { font: 800 39px/1 "Manrope", sans-serif; }
.grammar-hero > div:last-child span { color: rgba(255,255,255,.62); font-size: 9px; line-height: 1.4; text-transform: uppercase; }
.grammar-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 22px 0; }
.grammar-tabs button { display: flex; align-items: center; gap: 11px; border: 1px solid rgba(35,87,71,.1); border-radius: 12px 4px; padding: 13px; background: var(--paper); text-align: left; cursor: pointer; }
.grammar-tabs strong { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 11px 3px; color: var(--forest); background: var(--mint); }
.grammar-tabs span { color: var(--muted); font-size: 10px; }
.grammar-tabs button.active { color: white; background: var(--orange); border-color: var(--orange); }
.grammar-tabs button.active strong { color: var(--orange); background: white; }
.grammar-tabs button.active span { color: rgba(255,255,255,.75); }
.grammar-list { display: grid; gap: 9px; }
.grammar-row { display: grid; grid-template-columns: 52px minmax(0, 1fr) 80px; align-items: center; gap: 15px; width: 100%; border: 1px solid rgba(35,87,71,.1); border-radius: 14px 4px; padding: 17px 20px; background: var(--paper); text-align: left; cursor: pointer; transition: .18s ease; }
.grammar-row:hover { border-color: rgba(35,87,71,.28); transform: translateX(3px); }
.grammar-number { color: #aab4ae; font: 800 15px/1 "Manrope", sans-serif; }
.grammar-copy small { color: var(--orange); font-size: 8px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.grammar-copy small em { display: inline-flex; margin-left: 7px; border-radius: 999px; padding: 3px 6px; color: #123a79; background: #e8eef9; font-size: 7px; font-style: normal; letter-spacing: .04em; }
.grammar-copy strong { display: block; margin-top: 5px; color: var(--forest); font: 800 16px/1.2 "Manrope", sans-serif; }
.grammar-copy p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.grammar-meta { display: flex; align-items: center; justify-content: flex-end; gap: 12px; color: var(--muted); }
.grammar-meta b { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 50%; color: var(--forest); background: var(--mint); }
.grammar-row.completed { border-left: 4px solid var(--forest-2); }
.lesson-reader { max-width: 860px; margin: 32px auto; }
.reader-back { border: 0; margin-bottom: 20px; padding: 0; color: var(--forest-2); background: transparent; font-size: 11px; font-weight: 800; cursor: pointer; }
.lesson-reader > header { display: flex; justify-content: space-between; gap: 25px; margin-bottom: 23px; }
.lesson-reader > header h2 { margin: 0; color: var(--forest); font: 800 42px/1.05 "Manrope", sans-serif; letter-spacing: -.045em; }
.lesson-reader > header p:last-child { color: var(--muted); }
.reader-level { display: grid; flex: 0 0 54px; height: 54px; place-items: center; border-radius: 16px 5px; color: white; background: var(--orange); font-weight: 800; }
.lesson-explanation { margin-bottom: 16px; border: 1px solid rgba(35,87,71,.1); border-radius: 17px 5px; padding: 23px 25px; background: var(--paper); }
.lesson-explanation > p:last-child { max-width: 740px; margin: 8px 0 0; color: var(--forest); font: 650 14px/1.75 "Manrope", sans-serif; }
.rule-box { display: flex; gap: 20px; border: 1px solid #cbded3; border-radius: 17px 5px; padding: 25px; background: #edf6f1; }
.rule-mark { display: grid; flex: 0 0 43px; height: 43px; place-items: center; border-radius: 12px 4px; color: white; background: var(--forest); font: 800 18px/1 "Manrope", sans-serif; }
.rule-box h3, .mini-quiz h3 { margin: 0; color: var(--forest); font: 800 18px/1.2 "Manrope", sans-serif; }
.rule-box ul { margin: 13px 0 0; padding-left: 19px; color: #486057; font-size: 13px; line-height: 1.7; }
.lesson-detail-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 12px; margin-top: 16px; }
.lesson-detail-grid article { border: 1px solid rgba(35,87,71,.1); border-radius: 15px 4px; padding: 21px 23px; background: var(--paper); }
.lesson-detail-grid ul { margin: 10px 0 0; padding-left: 18px; color: #486057; font-size: 12px; line-height: 1.7; }
.lesson-detail-grid .watch-out { border-color: #ded5f5; background: #f5f2ff; }
.lesson-detail-grid .watch-out .eyebrow { color: #674dbb; }
.lesson-detail-grid .watch-out > p:last-child { margin: 10px 0 0; color: #5d5276; font-size: 12px; line-height: 1.65; }
.examples-box { margin-top: 16px; border-radius: 17px 5px; padding: 25px; background: var(--paper); }
.examples-box > p:not(.eyebrow) { margin: 11px 0; color: var(--forest); font: 700 17px/1.5 "Manrope", sans-serif; }
.examples-box > p span { color: var(--orange); }
.teacher-tip { display: flex; gap: 13px; margin: 16px 0; padding: 18px 21px; border-left: 4px solid var(--orange); background: var(--orange-pale); }
.teacher-tip > span { display: grid; flex: 0 0 32px; height: 32px; place-items: center; border-radius: 50%; color: white; background: var(--orange); font-weight: 800; }
.teacher-tip strong { color: #8d421f; font-size: 11px; }
.teacher-tip p { margin: 5px 0 0; color: #8b5a45; font-size: 12px; line-height: 1.5; }
.lesson-sheet { margin: 16px 0; border: 1px solid #d7dcea; border-radius: 17px 5px; overflow: hidden; background: #fff; }
.lesson-sheet > summary { display: grid; grid-template-columns: 43px minmax(0, 1fr) auto; align-items: center; gap: 13px; min-height: 76px; padding: 14px 18px; color: var(--forest); cursor: pointer; list-style: none; }
.lesson-sheet > summary::-webkit-details-marker { display: none; }
.sheet-summary-mark { display: grid; width: 43px; height: 43px; place-items: center; border-radius: 12px 4px; color: white; background: #123a79; font: 800 16px/1 "Manrope", sans-serif; }
.lesson-sheet > summary small, .lesson-sheet > summary strong { display: block; }
.lesson-sheet > summary small { margin-bottom: 3px; color: #6d7690; font-size: 8px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.lesson-sheet > summary strong { font-size: 13px; }
.lesson-sheet > summary > b { color: #5740ae; font-size: 10px; }
.lesson-sheet[open] > summary { border-bottom: 1px solid #e0e3eb; background: #f7f8fb; }
.sheet-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 13px 18px; background: #eef2f8; }
.sheet-toolbar p { margin: 0; color: #667087; font-size: 10px; }
.sheet-toolbar button { border: 1px solid #ccd4e2; border-radius: 9px 3px; padding: 9px 12px; color: #123a79; background: #fff; font-size: 9px; font-weight: 800; cursor: pointer; }
.revision-sheet-paper { margin: 18px; border: 1px solid #cbd5e5; border-radius: 19px 6px; padding: 18px; color: #12254a; background: #fff; box-shadow: 0 14px 34px rgba(30,55,98,.08); }
.revision-sheet-paper > header { display: flex; align-items: center; gap: 16px; border-radius: 15px 5px; padding: 17px 20px; color: white; background: #0d397d; }
.revision-sheet-paper > header > span { font-size: 27px; }
.revision-sheet-paper > header small { display: block; color: #c7d9ff; font-size: 8px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.revision-sheet-paper > header h3 { margin: 2px 0 0; color: white; font: 800 23px/1.1 "Manrope", sans-serif; letter-spacing: -.03em; }
.revision-sheet-paper > header p { margin: 5px 0 0; color: #dbe6ff; font-size: 10px; }
.revision-sheet-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.sheet-card { --sheet-tone: #1757a0; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 11px; min-height: 132px; border: 1px solid color-mix(in srgb, var(--sheet-tone) 38%, white); border-radius: 13px 4px; padding: 14px; background: color-mix(in srgb, var(--sheet-tone) 5%, white); }
.sheet-card.tone-green { --sheet-tone: #3f8b33; }
.sheet-card.tone-orange { --sheet-tone: #df7410; }
.sheet-card.tone-violet { --sheet-tone: #7040a7; }
.sheet-card.tone-teal { --sheet-tone: #158d8c; }
.sheet-card.tone-red { --sheet-tone: #d9463d; }
.sheet-card > span { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 50%; color: white; background: var(--sheet-tone); font: 800 13px/1 "Manrope", sans-serif; }
.sheet-card h4 { margin: 2px 0 8px; color: var(--sheet-tone); font: 800 16px/1.1 "Manrope", sans-serif; }
.sheet-card ul { display: grid; gap: 4px; margin: 0; padding-left: 15px; color: #273550; font-size: 9px; line-height: 1.35; }
.revision-sheet-paper > footer { display: flex; align-items: center; gap: 10px; margin-top: 12px; border: 1px solid #ecd28d; border-radius: 12px 4px; padding: 12px 15px; background: #fff8e7; }
.revision-sheet-paper > footer > span { color: #e79a08; font-size: 23px; }
.revision-sheet-paper > footer p { margin: 0; color: #173769; font-size: 10px; line-height: 1.45; }
.mini-quiz { border-radius: 17px 5px; padding: 26px; color: white; background: var(--forest); }
.mini-quiz h3 { color: white; }
.practice-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.practice-head > div > p:last-child { margin: 7px 0 0; color: rgba(255,255,255,.62); font-size: 10px; }
.practice-head > strong { display: grid; flex: 0 0 58px; height: 58px; place-items: center; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; color: white; font: 800 16px/1 "Manrope", sans-serif; }
.practice-list { display: grid; gap: 11px; margin-top: 20px; }
.practice-question { border: 1px solid rgba(255,255,255,.14); border-radius: 13px 4px; padding: 17px; background: rgba(255,255,255,.055); }
.practice-question.answered-correct { border-color: rgba(191,230,210,.45); background: rgba(191,230,210,.08); }
.practice-question > header { display: flex; align-items: start; gap: 11px; }
.practice-question > header > span { display: grid; flex: 0 0 30px; height: 30px; place-items: center; border-radius: 9px 3px; color: var(--forest); background: #fff; font-size: 9px; font-weight: 800; }
.practice-question > header small { display: block; margin-bottom: 3px; color: #bfb3ff; font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.practice-question > header h4 { margin: 0; color: white; font: 750 13px/1.45 "Manrope", sans-serif; }
.quiz-options { display: grid; gap: 8px; margin-top: 17px; }
.quiz-options button { border: 1px solid rgba(255,255,255,.16); border-radius: 10px 3px; padding: 12px; color: white; background: rgba(255,255,255,.06); text-align: left; cursor: pointer; }
.quiz-options button:hover { background: rgba(255,255,255,.12); }
.quiz-options button:disabled { cursor: default; }
.quiz-options button.correct { color: var(--forest); background: #bfe6d2; border-color: #bfe6d2; }
.quiz-options button.incorrect { color: white; background: #a94f3e; border-color: #a94f3e; }
.question-feedback { min-height: 16px; margin: 9px 0 0; color: #bfe6d2; font-size: 9px; font-weight: 700; line-height: 1.5; }
.quiz-feedback { min-height: 19px; margin: 12px 0 0; color: #bfe6d2; font-size: 11px; font-weight: 800; }

.progress-hero { display: flex; align-items: center; justify-content: space-between; gap: 25px; border-bottom: 1px solid rgba(35,87,71,.14); padding: 8px 0 28px; }
.progress-hero h2 { max-width: 680px; font-size: 36px; }
.progress-total { display: flex; align-items: center; gap: 20px; min-width: 210px; }
.progress-total span { text-align: center; }
.progress-total strong, .progress-total small { display: block; }
.progress-total strong { color: var(--orange); font: 800 31px/1 "Manrope", sans-serif; }
.progress-total small { margin-top: 4px; color: var(--muted); font-size: 9px; text-transform: uppercase; }
.progress-total i { width: 1px; height: 38px; background: var(--line); }
.progress-board { margin-top: 25px; border: 1px solid rgba(35,87,71,.1); border-radius: 17px 5px; overflow: hidden; background: var(--paper); }
.progress-board header, .progress-board article { display: grid; grid-template-columns: 110px 1fr 1fr 150px; align-items: center; gap: 25px; }
.progress-board header { padding: 13px 22px; color: var(--muted); background: #eeece5; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.progress-board article { min-height: 98px; border-top: 1px solid var(--line); padding: 19px 22px; }
.progress-board article.current { background: #f1f4ff; }
.progress-board article.locked-level { opacity: .58; }
.level-total button:disabled { opacity: .55; cursor: not-allowed; }
.progress-board article > div:first-child strong { color: var(--forest); font: 800 23px/1 "Manrope", sans-serif; }
.progress-board article > div:first-child small { display: block; margin-top: 5px; color: var(--orange); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.progress-board article > div:not(:first-child):not(.level-total) span { color: var(--muted); font-size: 10px; }
.progress-board article > div:not(:first-child):not(.level-total) i { display: block; height: 5px; margin-top: 8px; border-radius: 4px; background: #e2e5e0; }
.progress-board article > div:not(:first-child):not(.level-total) i b { display: block; height: 100%; border-radius: inherit; background: var(--forest-2); }
.level-total { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.level-total strong { color: var(--forest); font: 800 20px/1 "Manrope", sans-serif; }
.level-total button { border: 0; color: var(--orange); background: transparent; font-size: 9px; font-weight: 800; cursor: pointer; }
.encouragement { display: flex; gap: 18px; max-width: 720px; margin: 28px auto 0; padding: 23px; color: white; background: var(--orange); border-radius: 17px 5px; }
.encouragement > span { font: 800 44px/1 "Manrope", sans-serif; opacity: .45; }
.encouragement p { margin: 0; font: 700 16px/1.5 "Manrope", sans-serif; }
.encouragement small { display: block; margin-top: 7px; color: rgba(255,255,255,.7); }

.needs-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-radius: 22px 6px;
  padding: 36px 40px;
  color: white;
  background: var(--forest);
}
.needs-hero > div { max-width: 720px; }
.needs-hero h2 { margin: 0; font: 800 clamp(29px, 4vw, 44px)/1.08 "Manrope", sans-serif; letter-spacing: -.045em; }
.needs-hero p:not(.eyebrow) { margin: 13px 0 0; color: rgba(255,255,255,.7); font-size: 13px; line-height: 1.65; }
.needs-hero > span { display: grid; flex: 0 0 76px; height: 76px; place-items: center; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; color: white; background: rgba(255,255,255,.08); font: 800 34px/1 "Manrope", sans-serif; }
.needs-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: 20px; margin-top: 22px; }
.needs-form, .needs-history { border: 1px solid rgba(35,87,71,.1); border-radius: 18px 5px; padding: 28px; background: var(--paper); }
.needs-form { display: grid; gap: 20px; }
.needs-form fieldset { min-width: 0; border: 0; margin: 0; padding: 0; }
.needs-form legend, .needs-form > label > span { display: block; margin-bottom: 9px; color: var(--forest); font-size: 11px; font-weight: 800; }
.needs-form label small { color: var(--muted); font-weight: 600; }
.difficulty-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.difficulty-options input { position: absolute; opacity: 0; pointer-events: none; }
.difficulty-options span { display: grid; min-height: 44px; place-items: center; border: 1px solid var(--line); border-radius: 11px 3px; color: var(--muted); font-size: 11px; font-weight: 800; cursor: pointer; }
.difficulty-options input:checked + span { color: white; border-color: var(--forest); background: var(--forest); }
.difficulty-options input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 2px; }
.needs-form select, .needs-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 11px 3px;
  padding: 13px 14px;
  color: var(--forest);
  background: #fff;
  font: inherit;
  font-size: 12px;
  line-height: 1.55;
}
.needs-form textarea { resize: vertical; }
.needs-form select:focus, .needs-form textarea:focus { border-color: var(--orange); outline: 3px solid rgba(110,78,226,.1); }
.needs-form .primary-action { width: min(100%, 270px); }
.needs-form-message { min-height: 18px; margin: -5px 0 -8px; color: var(--forest-2); font-size: 11px; font-weight: 800; }
.needs-history header { margin-bottom: 10px; }
.needs-history h3 { margin: 0; color: var(--forest); font: 800 21px/1.2 "Manrope", sans-serif; }
.needs-history article { padding: 18px 0; border-bottom: 1px solid var(--line); }
.needs-history article:last-child { border-bottom: 0; }
.needs-history article > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.needs-history time { color: var(--muted); font-size: 9px; }
.need-status { display: inline-flex; border-radius: 999px; padding: 5px 8px; color: #6c4fc9; background: #efebff; font-size: 8px; font-weight: 800; }
.need-status.planned { color: #80581d; background: #fbf0dc; }
.need-status.resolved { color: #276d59; background: #e6f4ef; }
.needs-history article > small { display: block; margin-top: 12px; color: var(--orange); font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.needs-history article > strong { display: block; margin-top: 5px; color: var(--forest); font-size: 12px; line-height: 1.5; }
.needs-history article > p { margin: 10px 0 0; border-left: 2px solid var(--orange); padding-left: 10px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.needs-empty { display: grid; justify-items: center; padding: 48px 15px; text-align: center; }
.needs-empty > span { display: grid; width: 40px; height: 40px; margin-bottom: 13px; place-items: center; border-radius: 50%; color: var(--forest-2); background: var(--mint); }
.needs-empty strong { color: var(--forest); font-size: 12px; }
.needs-empty p { max-width: 240px; margin: 7px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.mobile-nav { display: none; }

@media (max-width: 900px) {
  .login-main { grid-template-columns: 1fr; max-width: 650px; }
  .login-story { padding-top: 10px; }
  .login-card { margin-top: 10px; }
  .student-sidebar { width: 220px; transform: translateX(-100%); transition: transform .25s ease; }
  .student-sidebar.mobile-open { transform: translateX(0); box-shadow: 30px 0 70px rgba(0,0,0,.2); }
  .student-main { margin-left: 0; padding-bottom: 68px; }
  .mobile-menu { display: block; margin-right: 14px; }
  .mobile-nav { position: fixed; z-index: 15; inset: auto 0 0; display: grid; grid-template-columns: repeat(5, 1fr); min-height: 65px; border-top: 1px solid var(--line); background: rgba(255,253,248,.96); backdrop-filter: blur(12px); }
  .mobile-nav button { display: grid; place-content: center; gap: 3px; border: 0; color: var(--muted); background: transparent; font-size: 8px; }
  .mobile-nav button .nav-icon { display: grid; width: 22px; height: 22px; margin: auto; place-items: center; }
  .mobile-nav .nav-icon svg { width: 19px; height: 19px; }
  .mobile-nav button.active { color: var(--orange); }
  .metric-grid { grid-template-columns: 1fr; }
  .needs-layout { grid-template-columns: 1fr; }
  .progress-board { overflow-x: auto; }
  .progress-board header, .progress-board article { min-width: 760px; }
}

@media (max-width: 660px) {
  .public-header { padding: 18px 20px; }
  .teacher-link { font-size: 0; }
  .teacher-link span { font-size: 18px; }
  .login-main { display: flex; flex-direction: column; padding: 20px 20px 60px; }
  .login-card { order: -1; width: 100%; margin: 0 0 28px; padding: 30px 24px; }
  .login-story h1 { font-size: 48px; }
  .login-story > p:not(.eyebrow) { font-size: 15px; }
  .word-ribbon { left: -80px; bottom: 5px; }
  .student-topbar { min-height: 77px; padding: 15px 18px; }
  .student-identity div { display: none; }
  .app-view { padding: 22px 16px 50px; }
  .welcome-panel { display: block; padding: 30px 25px; }
  .today-orbit { display: none; }
  .welcome-panel h2 { font-size: 31px; }
  .home-grid { grid-template-columns: 1fr; }
  .needs-hero { padding: 30px 25px; }
  .needs-hero > span { display: none; }
  .needs-form, .needs-history { padding: 22px 18px; }
  .difficulty-options { grid-template-columns: 1fr; }
  .section-heading { margin-top: 29px; }
  .study-heading { align-items: start; flex-direction: column; }
  .level-switch { width: 100%; }
  .level-switch button { flex: 1; }
  .flashcard-layout { grid-template-columns: 1fr; }
  .deck-menu { display: flex; overflow-x: auto; padding-bottom: 5px; }
  .deck-menu button { flex: 0 0 auto; width: auto; gap: 18px; }
  .card-toolbar { flex-wrap: wrap; }
  .card-counter { flex: 0 0 100%; }
  .card-toolbar-actions { width: 100%; justify-content: flex-end; }
  .memory-card { height: 330px; }
  body.flashcard-focus .app-view { padding: 12px; }
  body.flashcard-focus .flashcard-layout { min-height: calc(100vh - 24px); }
  body.flashcard-focus .memory-card { height: min(62vh, 520px); }
  .card-controls { grid-template-columns: 1fr 1fr; }
  .round-control { display: none; }
  .grammar-hero, .progress-hero { align-items: start; flex-direction: column; padding: 28px 23px; }
  .grammar-hero h2, .progress-hero h2 { font-size: 30px; }
  .grammar-tabs { grid-template-columns: 1fr 1fr; }
  .grammar-row { grid-template-columns: 36px minmax(0, 1fr) 40px; padding: 15px; }
  .grammar-copy p, .grammar-meta small { display: none; }
  .lesson-reader > header h2 { font-size: 34px; }
  .lesson-detail-grid { grid-template-columns: 1fr; }
  .lesson-explanation, .lesson-detail-grid article { padding: 20px 18px; }
  .rule-box { gap: 12px; padding: 20px 17px; }
  .lesson-sheet > summary { grid-template-columns: 40px minmax(0, 1fr); }
  .lesson-sheet > summary > b { grid-column: 2; }
  .sheet-toolbar { align-items: stretch; flex-direction: column; }
  .revision-sheet-paper { margin: 10px; padding: 10px; }
  .revision-sheet-paper > header { padding: 15px; }
  .revision-sheet-paper > header h3 { font-size: 19px; }
  .revision-sheet-grid { grid-template-columns: 1fr; }
  .sheet-card { min-height: 0; }
  .mini-quiz { padding: 22px 17px; }
  .practice-head { align-items: start; }
  .practice-question { padding: 14px; }
  .progress-hero { color: white; background: var(--forest); border-radius: 17px 5px; }
  .progress-hero h2 { color: white; }
  .progress-total strong { color: #f49c73; }
  .progress-total small { color: rgba(255,255,255,.6); }
}

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

@media print {
  body.printing-grammar-sheet { background: #fff !important; }
  body.printing-grammar-sheet * { visibility: hidden !important; }
  body.printing-grammar-sheet .lesson-sheet.print-target,
  body.printing-grammar-sheet .lesson-sheet.print-target .revision-sheet-paper,
  body.printing-grammar-sheet .lesson-sheet.print-target .revision-sheet-paper * { visibility: visible !important; }
  body.printing-grammar-sheet .lesson-sheet.print-target { position: absolute; inset: 0; width: 100%; border: 0; margin: 0; overflow: visible; }
  body.printing-grammar-sheet .lesson-sheet.print-target > summary,
  body.printing-grammar-sheet .lesson-sheet.print-target > .sheet-toolbar { display: none !important; }
  body.printing-grammar-sheet .revision-sheet-paper { width: 100%; margin: 0; border: 0; padding: 8mm; box-shadow: none; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  body.printing-grammar-sheet .revision-sheet-grid { grid-template-columns: 1fr 1fr; }
  body.printing-grammar-sheet .sheet-card { break-inside: avoid; }
}

/* Focused vocabulary review */
.review-shortcut {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 15px;
  width: 100%;
  margin-top: 20px;
  border: 1px solid #d9d0fa;
  border-radius: 15px 4px;
  padding: 18px 20px;
  color: #403070;
  background: #f3f0ff;
  text-align: left;
  cursor: pointer;
}
.review-shortcut:hover { border-color: #bcaef2; background: #eee9ff; }
.review-shortcut-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 14px 4px;
  color: white;
  background: #6e4ee2;
  font-size: 22px;
  font-weight: 800;
}
.review-shortcut small,
.review-shortcut strong,
.review-shortcut em { display: block; }
.review-shortcut small { margin-bottom: 3px; color: #6e4ee2; font-size: 9px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.review-shortcut strong { font-size: 15px; line-height: 1.35; }
.review-shortcut em { margin-top: 3px; color: #756d87; font-size: 10px; font-style: normal; line-height: 1.45; }
.review-shortcut > b { justify-self: end; font-size: 18px; }
.review-shortcut.empty { color: var(--muted); border-color: var(--line); background: #f5f5f2; cursor: default; }
.review-shortcut.empty .review-shortcut-icon { color: var(--forest-2); background: var(--mint); }

.review-study-heading { align-items: center; }
.review-exit {
  min-height: 39px;
  border: 1px solid #d9d0fa;
  border-radius: 11px 3px;
  padding: 0 15px;
  color: #5740ae;
  background: #f3f0ff;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}
.review-session-progress {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-bottom: 23px;
  color: var(--muted);
}
.review-session-progress strong { color: #5740ae; font: 800 24px/1 "Manrope", sans-serif; }
.review-session-progress span { font-size: 10px; }
.review-deck-menu {
  align-content: start;
  border: 1px solid #ded7f7;
  border-radius: 15px 4px;
  padding: 16px;
  background: #f5f2ff;
}
.review-deck-menu > div small,
.review-deck-menu > div strong,
.review-deck-menu > div span { display: block; }
.review-deck-menu > div small { color: #6e4ee2; font-size: 8px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.review-deck-menu > div strong { margin-top: 5px; color: #403070; font-size: 13px; }
.review-deck-menu > div span { margin-top: 3px; color: var(--muted); font-size: 9px; }
.review-deck-menu > span { display: flex; justify-content: space-between; border-top: 1px solid #ded7f7; padding-top: 10px; color: var(--muted); font-size: 9px; }
.review-deck-menu > span b { color: #5740ae; }
.review-complete { justify-items: center; padding: 30px; }
.review-complete > span { display: grid; width: 48px; height: 48px; margin-bottom: 13px; place-items: center; border-radius: 50%; color: var(--forest-2); background: var(--mint); font-weight: 800; }
.review-complete p { margin: 7px 0 18px; color: var(--muted); font-size: 11px; }
.review-complete button { min-height: 38px; border: 0; border-radius: 11px 3px; padding: 0 15px; color: white; background: var(--forest); font-size: 10px; font-weight: 800; cursor: pointer; }
body.flashcard-focus .review-session-progress { display: none; }

@media (max-width: 660px) {
  .review-shortcut { grid-template-columns: 42px minmax(0, 1fr) 20px; padding: 16px; }
  .review-shortcut-icon { width: 42px; height: 42px; }
  .review-shortcut em { display: none; }
  .review-study-heading { gap: 15px; }
  .review-exit { width: 100%; }
  .review-deck-menu { display: grid; overflow: visible; }
}
