:root {
  --home-ink: #172036;
  --home-muted: #737d94;
  --home-blue: #315df6;
  --home-line: rgba(43, 60, 100, 0.09);
  --home-shadow: 0 18px 50px rgba(45, 67, 128, 0.09);
}

* {
  -webkit-tap-highlight-color: transparent !important;
}

button:focus:not(:focus-visible),
a:focus:not(:focus-visible) {
  outline: none;
}

body[data-active-screen="start"],
body[data-active-screen="learning-calendar"],
body[data-active-screen="learning-materials"],
body[data-active-screen="single-practice"],
body[data-active-screen="exam-preview"],
body[data-active-screen="wrong-review-hub"] {
  color: var(--home-ink);
  background: #f7f8fc;
}

body[data-active-screen="start"] .mock-app,
body[data-active-screen="learning-calendar"] .mock-app,
body[data-active-screen="learning-materials"] .mock-app,
body[data-active-screen="single-practice"] .mock-app,
body[data-active-screen="exam-preview"] .mock-app,
body[data-active-screen="wrong-review-hub"] .mock-app {
  background:
    radial-gradient(circle at 8% 0%, rgba(120, 185, 255, 0.13), transparent 27rem),
    radial-gradient(circle at 90% 22%, rgba(175, 153, 255, 0.09), transparent 24rem),
    #f7f8fc;
}

.start-stage {
  padding: 28px 24px 46px;
  background: transparent;
}

.start-shell.home-shell {
  width: min(1280px, 100%);
  gap: 18px;
}

.home-layout {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 1.72fr) minmax(310px, 0.88fr);
  gap: 24px;
  align-items: start;
}

.home-main,
.home-side {
  display: grid;
  gap: 20px;
}

.home-welcome-card {
  position: relative;
  display: flex;
  height: 198px;
  min-height: 198px;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  padding: 30px 230px 30px 38px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 30px;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.98), rgba(247, 249, 255, 0.91));
  box-shadow: var(--home-shadow);
}

.home-welcome-card::before {
  position: absolute;
  right: -95px;
  bottom: -170px;
  width: 390px;
  height: 390px;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(114, 196, 255, 0.15), rgba(86, 99, 249, 0.1));
  content: "";
}

.home-welcome-copy {
  position: relative;
  z-index: 1;
}

.home-eyebrow {
  display: block;
  margin-bottom: 8px;
  color: var(--home-blue);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.home-welcome-copy h1 {
  margin: 0;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.18;
  letter-spacing: -0.04em;
}

.home-welcome-copy h1 span + span {
  margin-left: 0.12em;
}

.home-welcome-copy p {
  margin: 13px 0 0;
  color: var(--home-muted);
  font-size: 15px;
}

.home-welcome-art {
  position: absolute;
  z-index: 1;
  right: 32px;
  bottom: -16px;
  width: 190px;
  height: 190px;
  flex: none;
}

.home-welcome-art img {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 180px;
  height: 180px;
  object-fit: contain;
  filter: drop-shadow(0 17px 22px rgba(48, 83, 205, 0.2));
  transition: transform .16s ease;
}

.home-note {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  color: var(--home-blue);
  border: 4px solid white;
  border-radius: 50%;
  background: white;
  box-shadow: 0 8px 22px rgba(37, 68, 147, 0.1);
  font-weight: 700;
}

.home-note-one { top: 13px; right: auto; left: 0; width: 34px; height: 34px; color: #8668d5; }
.home-note-two { top: -3px; right: 5px; left: auto; width: 40px; height: 40px; color: var(--home-blue); }
.home-note-three { top: 48px; right: 1px; left: auto; width: 27px; height: 27px; color: #24ad91; font-size: 12px; }

.start-dashboard.home-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.home-stat {
  display: grid;
  min-height: 104px;
  place-content: center;
  justify-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 24px;
  box-shadow: 0 9px 26px rgba(45, 67, 128, 0.07);
}

.home-stat-purple { background: linear-gradient(135deg, #f2ecff, #e7ddff); }
.home-stat-mint { background: linear-gradient(135deg, #e9faef, #d7f4e2); }
.home-stat-sky { background: linear-gradient(135deg, #e8f7ff, #d6f0ff); }
.home-stat strong { font-size: 28px; line-height: 1; }
.home-stat span { color: var(--home-muted); font-size: 12px; }
.home-stat-action { color: inherit; font: inherit; cursor: pointer; transition: transform .16s ease, box-shadow .16s ease; }
.home-stat-action:hover { transform: translateY(-2px); box-shadow: 0 13px 30px rgba(45, 67, 128, 0.12); }
.home-stat-action:focus-visible { outline: 3px solid rgba(49,93,246,.24); outline-offset: 3px; }
.home-stat-action:active { transform: translateY(0); }

.home-mobile-teacher-class-card {
  display: none;
}

.home-shell .start-auth-bar { display: none; }

.home-section-heading {
  margin: 3px 4px 15px;
  font-size: 21px;
  font-weight: 800;
}

.home-learning-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

.home-learning-grid .start-card-group {
  grid-column: span 2;
  gap: 10px;
}

.home-learning-grid .start-card.home-feature-card {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 148px;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  padding: 24px;
  color: var(--home-ink);
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 9px 26px rgba(45, 67, 128, 0.07);
  transform: none;
}

.home-learning-grid .start-card.home-feature-primary {
  min-height: 190px;
  color: white;
  border: 0;
  background:
    radial-gradient(circle at 90% 90%, rgba(80, 180, 255, 0.3), transparent 18rem),
    linear-gradient(135deg, #3564fb, #254bd8);
  box-shadow: 0 18px 38px rgba(42, 79, 218, 0.2);
}

.home-learning-grid .start-card.home-feature-preview {
  background:
    radial-gradient(circle at 90% 10%, rgba(102, 192, 255, 0.2), transparent 12rem),
    rgba(255, 255, 255, 0.94);
}

.home-feature-icon {
  display: grid;
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  place-items: center;
  color: white;
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.13);
}

.home-feature-icon svg {
  width: 27px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.home-feature-icon-preview { color: #315df6; background: #edf2ff; }
.home-feature-icon-materials { color: #315df6; background: #edf2ff; }
.home-feature-icon-practice { color: #7656c5; background: #f0e9ff; }
.home-feature-icon-wrong { color: #168e70; background: #e4f8ef; }

.home-feature-copy {
  display: grid;
  min-width: 0;
  gap: 6px;
  text-align: left;
}

.home-feature-copy small { color: #9aabc9; font-size: 9px; font-weight: 800; letter-spacing: 0.13em; }
.home-feature-copy strong { font-size: 22px; }
.home-feature-copy > span { color: var(--home-muted); font-size: 12px; line-height: 1.65; }
.home-feature-primary .home-feature-copy small,
.home-feature-primary .home-feature-copy > span { color: rgba(255, 255, 255, 0.72); }

.home-feature-lock {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  margin-left: auto;
  place-items: center;
  color: #ef5470;
  border: 0;
  border-radius: 14px;
  background: #fff0f3;
  transform: none;
}
.home-feature-lock::before,.home-feature-lock::after { display: none; content: none; }
.home-feature-lock svg { position: static; width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.home-feature-lock .home-lock-open { display: none; }
.home-feature-lock.is-unlocked { color: #168e70; background: #e4f8ef; }
.home-feature-lock.is-unlocked .home-lock-closed { display: none; }
.home-feature-lock.is-unlocked .home-lock-open { display: block; }
.home-feature-primary .home-feature-lock,
.home-feature-primary .home-feature-lock.is-unlocked { color: white; background: rgba(255,255,255,.16); }

.home-learning-grid .start-exam-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 10px;
  border: 0;
  border-radius: 20px;
  background: white;
}

.home-learning-grid .start-option-button {
  display: grid;
  min-height: 62px;
  align-content: center;
  justify-items: start;
  gap: 4px;
  padding: 10px 15px;
  text-align: left;
  border: 1px solid #e5e9f2;
  border-radius: 15px;
  box-shadow: none;
}

.start-option-button small { color: #929cb1; font-size: 9px; font-weight: 500; }

.home-side-card {
  padding: 25px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--home-shadow);
}

.home-week-card header { display: flex; align-items: flex-start; justify-content: space-between; }
.home-week-card header small { color: #98a0b2; font-size: 9px; font-weight: 800; }
.home-week-card h2 { margin: 5px 0 0; font-size: 21px; }
.home-week-card header button { min-height: 31px; padding: 0 10px; color: #315df6; border: 0; border-radius: 10px; background: #edf2ff; font-size: 10px; font-weight: 800; }

.home-week-row { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin: 25px 0; }
.home-week-row span { display: grid; justify-items: center; gap: 8px; }
.home-week-row small { color: #98a0b2; font-size: 9px; }
.home-week-row b { display: grid; width: 30px; height: 30px; place-items: center; color: #737d94; border-radius: 10px; background: #f5f6f9; font-size: 10px; }
.home-week-row b.is-done { color: #168e70; background: #e3f8ee; }
.home-week-row b.is-today { color: white; background: #315df6; box-shadow: 0 7px 15px rgba(49,93,246,.23); }

.home-streak { display: flex; align-items: center; gap: 15px; padding-top: 19px; border-top: 1px solid var(--home-line); }
.home-streak > strong { display: grid; width: 66px; height: 66px; flex: 0 0 auto; align-content: center; justify-items: center; gap: 1px; box-sizing: border-box; padding: 8px; color: #315df6; border-radius: 50%; background: #edf2ff; line-height: 1; white-space: nowrap; }
.home-streak > strong .home-streak-count { font-size: 21px; font-weight: 850; letter-spacing: -.04em; }
.home-streak > strong[data-digits="3"] .home-streak-count { font-size: 18px; }
.home-streak > strong .home-streak-unit { color: #315df6; font-size: 8px; font-weight: 800; line-height: 1.1; text-transform: uppercase; }
.home-streak > span { display: grid; min-width: 0; gap: 5px; font-size: 14px; font-weight: 800; }
.home-streak small { color: var(--home-muted); font-size: 10px; font-weight: 500; line-height: 1.5; }

.home-side-menu { display: grid; padding-top: 10px; padding-bottom: 10px; }
.home-side-menu button { display: flex; min-height: 66px; align-items: center; padding: 10px 2px; text-align: left; border: 0; border-bottom: 1px solid var(--home-line); background: transparent; }
.home-side-menu button[hidden] { display: none; }
.home-side-menu button:last-child { border-bottom: 0; }
.home-side-menu button > span { display: grid; gap: 4px; font-size: 13px; font-weight: 800; }
.home-side-menu .home-side-logout > span { color: #e34f67; }
.home-side-menu small { color: #98a0b2; font-size: 10px; font-weight: 500; }
.home-side-menu b { margin-left: auto; color: #98a0b2; font-size: 22px; }

@media (min-width: 641px) {
  .account-class-management-entry {
    display: none !important;
  }
}

.home-shell .start-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 10px;
  color: #98a0b2;
  font-size: 10px;
}
.home-shell .start-footer-icp {
  color: inherit;
  text-decoration: none;
}
.home-shell .start-footer-icp:hover,
.home-shell .start-footer-icp:focus-visible {
  color: #64748b;
  text-decoration: underline;
}

.home-public-membership {
  display: flex;
  width: 100%;
  box-sizing: border-box;
  align-items: center;
  gap: 18px;
  padding: 24px 28px;
  color: white;
  border: 1px solid rgba(255, 255, 255, .75);
  border-radius: 25px;
  background: linear-gradient(135deg, #315df6 0%, #477ff6 64%, #66aaf4 100%);
  box-shadow: 0 17px 38px rgba(49, 93, 246, .18);
  text-decoration: none;
}

.home-public-membership-icon {
  display: grid;
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  place-items: center;
  color: #315df6;
  border-radius: 18px;
  background: white;
  font-size: 13px;
  font-weight: 900;
}

.home-public-membership-copy { display: grid; gap: 4px; }
.home-public-membership-copy small { color: rgba(255, 255, 255, .72); font-size: 8px; font-weight: 850; letter-spacing: .14em; }
.home-public-membership-copy strong { font-size: 17px; }
.home-public-membership-copy span { color: rgba(255, 255, 255, .82); font-size: 11px; }
.home-public-membership > b { margin-left: auto; font-size: 11px; white-space: nowrap; }
.home-public-membership > b i { margin-left: 7px; font-size: 21px; font-style: normal; vertical-align: -1px; }
.home-public-membership:hover,
.home-public-membership:focus-visible { transform: translateY(-1px); box-shadow: 0 20px 44px rgba(49, 93, 246, .24); }

.home-public-company {
  display: grid;
  gap: 22px;
  width: 100%;
  box-sizing: border-box;
  padding: 28px 30px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--home-shadow);
}

.home-public-company-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--home-line);
}

.home-public-company-heading small,
.home-public-company-intro > small {
  display: block;
  color: var(--home-blue);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .14em;
}

.home-public-company-heading h2 {
  margin: 6px 0 0;
  color: var(--home-ink);
  font-size: 23px;
}

.home-public-company-heading > span {
  padding: 7px 11px;
  color: #5870aa;
  border-radius: 999px;
  background: #edf2ff;
  font-size: 10px;
  font-weight: 800;
}

.home-public-company-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, .95fr);
  gap: 28px;
  align-items: start;
}

.home-public-company-intro h3 {
  margin: 9px 0 10px;
  color: var(--home-ink);
  font-size: 18px;
}

.home-public-company-intro p {
  margin: 0;
  color: var(--home-muted);
  font-size: 12px;
  line-height: 1.85;
}

.home-public-company-details {
  display: grid;
  gap: 9px;
  margin: 0;
}

.home-public-company-details > div {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #f7f8fc;
}

.home-public-company-details dt {
  color: #8a94aa;
  font-size: 10px;
  font-weight: 700;
}

.home-public-company-details dd {
  min-width: 0;
  margin: 0;
  color: var(--home-ink);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.home-public-company-details a {
  color: #315df6;
  text-decoration: none;
}

.home-public-company-details a:hover,
.home-public-company-details a:focus-visible {
  text-decoration: underline;
}

.home-mobile-nav { display: none; }

.home-exam-menu-stage {
  min-height: 100vh;
  padding: 28px 24px 60px;
  background:
    radial-gradient(circle at 88% 3%, rgba(114, 181, 255, .18), transparent 25rem),
    radial-gradient(circle at 8% 34%, rgba(139, 117, 255, .09), transparent 22rem),
    #f5f7fc;
}
.home-exam-menu-shell { display: grid; width: min(1280px,100%); margin: 0 auto; gap: 16px; }
.home-exam-menu-stage .entry-hub-titlebar { height: 60px; margin-bottom: 2px; }
.home-exam-guide {
  position: relative;
  height: 198px;
  min-height: 190px;
  margin-bottom: 0;
  overflow: hidden;
  padding: 30px 220px 28px 31px;
  color: white;
  border: 1px solid rgba(255,255,255,.38);
  border-radius: 28px;
  background:
    radial-gradient(circle at 82% 18%, rgba(255,255,255,.22), transparent 9rem),
    linear-gradient(135deg, #315df6 0%, #477ff6 64%, #64a8f4 100%);
  box-shadow: 0 18px 42px rgba(49,93,246,.2);
}
.home-exam-guide::after {
  content: "";
  position: absolute;
  right: -84px;
  bottom: -126px;
  width: 310px;
  height: 310px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
}
.home-exam-guide-copy { position: relative; z-index: 2; }
.home-exam-guide-copy > small { color: rgba(255,255,255,.72); font-size: 9px; font-weight: 850; letter-spacing: .16em; }
.home-exam-guide h2 { margin: 8px 0 0; color: white; font-size: 29px; line-height: 1.2; letter-spacing: -.035em; }
.home-exam-guide p { max-width: 430px; margin: 12px 0 0; color: rgba(255,255,255,.78); font-size: 11px; font-weight: 650; line-height: 1.65; }
.home-exam-guide-tags { display: flex; gap: 8px; margin-top: 18px; }
.home-exam-guide-tags span { padding: 7px 10px; color: white; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; background: rgba(255,255,255,.12); font-size: 9px; font-weight: 800; }
.home-exam-guide-art { position: absolute; z-index: 1; right: 32px; bottom: -16px; width: 180px; height: 180px; }
.home-exam-guide-art img { position: absolute; right: 0; bottom: 0; width: 170px; height: 170px; object-fit: contain; filter: drop-shadow(0 15px 20px rgba(20,54,145,.24)); }
.home-exam-guide-note,
.home-exam-guide-spark { position: absolute; z-index: 2; display: grid; place-items: center; color: #315df6; border-radius: 50%; background: rgba(255,255,255,.92); box-shadow: 0 8px 18px rgba(33,64,145,.16); font-weight: 850; }
.home-exam-guide-note.note-one { top: 13px; left: 0; width: 34px; height: 34px; color: #7b5ce2; font-size: 14px; }
.home-exam-guide-note.note-two { top: -3px; right: 5px; width: 40px; height: 40px; font-size: 15px; }
.home-exam-guide-spark { top: 48px; right: 1px; width: 27px; height: 27px; color: #19a987; font-size: 12px; }
.home-exam-menu-grid > .home-feature-preview { grid-column: span 2; min-height: 145px; }
.single-practice-intro { margin: -5px 0 2px 61px; color: var(--home-muted); font-size: 11px; line-height: 1.7; }

.learning-calendar-stage { min-height: 100vh; padding: 28px 24px 60px; }
.learning-calendar-shell { width: min(1280px, 100%); margin: 0 auto; }
.learning-calendar-titlebar { display: flex; min-height: 60px; align-items: center; gap: 14px; margin-bottom: 18px; }
.learning-calendar-titlebar > button { display: grid; width: 46px; height: 46px; place-items: center; color: #315df6; border: 0; border-radius: 15px; background: white; box-shadow: 0 9px 26px rgba(45,67,128,.07); font-size: 27px; }
.learning-calendar-titlebar small { color: #98a0b2; font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.learning-calendar-titlebar h1 { margin: 2px 0 0; font-size: 28px; }
.learning-calendar-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 17px; }
.learning-calendar-summary article { display: grid; min-height: 94px; place-content: center; justify-items: center; gap: 5px; border-radius: 22px; background: white; box-shadow: 0 9px 26px rgba(45,67,128,.07); }
.learning-calendar-summary strong { font-size: 22px; }
.learning-calendar-summary small { color: #737d94; font-size: 10px; }
.learning-calendar-layout { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(250px,.7fr); gap: 17px; align-items: start; }
.learning-calendar-card,.learning-day-detail { padding: 25px; border-radius: 27px; background: white; box-shadow: var(--home-shadow); }
.learning-calendar-card > header { display: grid; grid-template-columns: 38px 1fr 38px; align-items: center; gap: 10px; }
.learning-calendar-card > header button { width: 38px; height: 38px; color: #315df6; border: 0; border-radius: 13px; background: #edf2ff; font-size: 24px; }
.learning-calendar-card h2 { margin: 0; text-align: center; font-size: 20px; }
.learning-calendar-weekdays,.learning-calendar-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 7px; }
.learning-calendar-weekdays { margin: 24px 0 9px; }
.learning-calendar-weekdays span { color: #98a0b2; font-size: 9px; line-height: 13px; text-align: center; }
.learning-calendar-day,.learning-calendar-spacer { aspect-ratio: 1; }
.learning-calendar-day { position: relative; display: grid; place-items: center; color: #737d94; border: 0; border-radius: 14px; background: #f7f8fb; font-size: 11px; font-weight: 700; }
.learning-calendar-day.is-learned { color: #168e70; background: #e3f8ee; }
.learning-calendar-day.is-today { color: white; background: #315df6; box-shadow: 0 8px 16px rgba(49,93,246,.22); }
.learning-calendar-day.is-selected { box-shadow: inset 0 0 0 2px #315df6; }
.learning-day-detail { min-height: 260px; }
.learning-day-detail > small { color: #98a0b2; font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.learning-day-detail h2 { margin: 8px 0 0; font-size: 22px; line-height: 30px; }
.learning-day-detail > p { color: #737d94; font-size: 11px; line-height: 1.6; }
.learning-day-overview { display: grid; min-height: 48px; grid-template-columns: repeat(3,1fr); gap: 7px; margin-top: 15px; }
.learning-day-overview > span { display: grid; min-width: 0; padding: 9px 4px; justify-items: center; gap: 2px; border-radius: 12px; background: #f7f8fc; }
.learning-day-overview strong { color: #27324b; font-size: 14px; }
.learning-day-overview small { color: #8a93a8; font-size: 8px; text-align: center; }
.learning-day-activity { display: grid; gap: 7px; margin-top: 13px; padding: 14px; border: 1px solid transparent; border-radius: 15px; background: #f4f7ff; }
.learning-day-activity.is-in-progress { border-color: #cfd9ff; background: #f7f8ff; }
.learning-day-activity header { display: flex; min-height: 19px; align-items: center; justify-content: space-between; gap: 8px; }
.learning-day-activity header strong { min-width: 0; font-size: 11px; }
.learning-day-activity header span { flex: 0 0 auto; padding: 4px 7px; color: #315df6; border-radius: 999px; background: #e8edff; font-size: 8px; font-weight: 800; }
.learning-day-activity p { margin: 0; color: #59657e; font-size: 9px; line-height: 1.65; }
.learning-day-activity > small { color: #98a0b2; font-size: 8px; }

.learning-materials-stage { min-height: 100vh; padding: 28px 24px 60px; }
.learning-materials-shell { width: min(1280px, 100%); margin: 0 auto; }
.learning-materials-stage.is-sign-template-preview .learning-materials-shell { width: min(1280px,100%); }
.learning-materials-stage.is-music-library .learning-materials-shell { width: min(1280px,100%); }
.learning-materials-hero { position: relative; min-height: 210px; padding: 38px 230px 38px 38px; overflow: hidden; color: white; border-radius: 30px; background: radial-gradient(circle at 86% 22%,rgba(255,255,255,.23),transparent 12rem),linear-gradient(135deg,#315df6,#5f8ff5); box-shadow: 0 20px 48px rgba(49,93,246,.2); }
.learning-materials-hero[hidden] { display: none; }
.learning-materials-hero::after { content: ""; position: absolute; right: -84px; bottom: -126px; width: 310px; height: 310px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; }
.learning-materials-hero > * { position: relative; z-index: 1; }
.learning-materials-hero small { font-size: 9px; font-weight: 800; letter-spacing: .14em; }
.learning-materials-hero h2 { margin: 13px 0 8px; font-size: 32px; }
.learning-materials-all-grades-range { display: inline; }
.learning-materials-hero p { max-width: 530px; margin: 0; color: rgba(255,255,255,.78); font-size: 12px; line-height: 1.75; }
.learning-materials-hero .learning-materials-hero-art { position: absolute; z-index: 2; right: 32px; bottom: -16px; width: 190px; height: 190px; }
.learning-materials-hero-art img { position: absolute; right: 0; bottom: 0; width: 180px; height: 180px; object-fit: contain; filter: drop-shadow(0 15px 20px rgba(20,54,145,.24)); }
.learning-materials-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; margin-top: 17px; }
.learning-materials-category-card { appearance: none; display: grid; height: 192px; min-height: 192px; align-content: start; gap: 7px; padding: 25px; color: inherit; border: 1px solid rgba(255,255,255,.9); border-radius: 24px; background: rgba(255,255,255,.94); text-align: left; touch-action: manipulation; cursor: pointer; box-shadow: var(--home-shadow); transition: transform .18s ease,box-shadow .18s ease; }
body[data-locale="en-GB"] .learning-materials-category-card { min-height: 192px; }
.learning-materials-card-icon { display: grid; width: 42px; height: 42px; place-items: center; color: #315df6; border-radius: 14px; background: #edf2ff; font-size: 18px; font-weight: 850; }
.learning-materials-card-icon svg { width: 26px; height: 26px; }
.learning-materials-category-card strong { margin-top: 4px; font-size: 19px; }
.learning-materials-category-card p { margin: 0; color: #737d94; font-size: 11px; line-height: 1.65; }
.learning-materials-category-card small { margin-top: auto; color: #9aabc9; font-size: 9px; }
.learning-materials-grade-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 11px; margin-top: 17px; }
.learning-materials-grade-grid.is-with-search { grid-template-columns: repeat(6,minmax(0,1fr)); }
.learning-materials-grade-card,.learning-materials-search-card { appearance: none; display: grid; min-height: 135px; align-content: center; justify-items: start; gap: 6px; padding: 20px; color: inherit; border: 1px solid #e4e9f5; border-radius: 21px; background: rgba(255,255,255,.95); font: inherit; text-align: left; touch-action: manipulation; cursor: pointer; box-shadow: var(--home-shadow); transition: transform .18s ease,box-shadow .18s ease,border-color .18s ease; }
.learning-materials-category-card:active,.learning-materials-grade-card:active,.learning-materials-search-card:active { transform: scale(.99); }
@media (hover: hover) and (pointer: fine) {
  .learning-materials-category-card:hover { transform: translateY(-2px); box-shadow: 0 22px 45px rgba(28,44,90,.14); }
  .learning-materials-grade-card:hover,.learning-materials-search-card:hover { transform: translateY(-2px); border-color: #d7e0f5; box-shadow: 0 19px 38px rgba(45,67,128,.12); }
}
.learning-materials-grade-card:focus-visible,.learning-materials-search-card:focus-visible { outline: 3px solid rgba(49,93,246,.28); outline-offset: 3px; }
.learning-materials-grade-card b { color: #315df6; font-size: 30px; line-height: 1; }
.learning-materials-grade-card strong,.learning-materials-search-card strong { font-size: 14px; }
.learning-materials-grade-card small,.learning-materials-search-card small { color: #8b95aa; font-size: 9px; }
.learning-materials-search-icon { display: grid; width: 30px; height: 30px; place-items: center; color: #315df6; }
.learning-materials-search-icon svg { width: 30px; height: 30px; overflow: visible; fill: none; stroke: currentColor; stroke-width: 2.8; stroke-linecap: round; }
@media (min-width: 641px) and (max-width: 900px) {
  .learning-materials-grade-grid.is-with-search { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
.learning-materials-term-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-top: 17px; }
.learning-materials-search-panel { display: grid; gap: 9px; margin-top: 17px; padding: 18px; border: 1px solid #e4e9f5; border-radius: 22px; background: rgba(255,255,255,.96); box-shadow: var(--home-shadow); }
.learning-materials-search-field { display: grid; min-width: 0; height: 54px; grid-template-columns: 32px minmax(0,1fr) 40px; align-items: center; gap: 9px; padding: 0 8px 0 15px; border: 1px solid #dce4f4; border-radius: 16px; background: #f8faff; transition: border-color .16s ease,box-shadow .16s ease,background .16s ease; }
.learning-materials-search-field:focus-within { border-color: #8ca7fb; background: #fff; box-shadow: 0 0 0 4px rgba(49,93,246,.1); }
.learning-materials-search-field-icon { display: grid; width: 28px; height: 28px; place-items: center; color: #315df6; }
.learning-materials-search-field-icon svg { width: 27px; height: 27px; overflow: visible; fill: none; stroke: currentColor; stroke-width: 2.8; stroke-linecap: round; }
.learning-materials-search-field input { width: 100%; min-width: 0; height: 100%; padding: 0; color: #172238; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; }
.learning-materials-search-field input::placeholder { color: #9aa5ba; opacity: 1; }
.learning-materials-search-field input::-webkit-search-cancel-button { display: none; }
.learning-materials-search-clear { appearance: none; display: grid; width: 36px; height: 36px; place-items: center; padding: 0; color: #66738d; border: 0; border-radius: 11px; background: #e9eef8; font-size: 23px; line-height: 1; cursor: pointer; }
.learning-materials-search-clear[hidden] { visibility: hidden; pointer-events: none; }
.learning-materials-search-clear:focus-visible { outline: 3px solid rgba(49,93,246,.25); outline-offset: 2px; }
.learning-materials-search-status { min-height: 14px; margin: 0 3px; color: #7c879e; font-size: 10px; font-weight: 750; line-height: 14px; }
#learning-materials-search-results > .learning-materials-term-grid { margin-top: 12px; }
.learning-materials-search-empty { margin-top: 12px; }
.learning-materials-term-card { display: grid; gap: 7px; padding: 20px; border: 1px solid #e5eaf5; border-radius: 20px; background: rgba(255,255,255,.96); box-shadow: var(--home-shadow); }
.learning-materials-term-card header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.learning-materials-term-heading { display: grid; min-width: 0; justify-items: start; gap: 5px; }
.learning-materials-term-card strong { min-width: 0; font-size: 16px; }
.learning-materials-term-card p { margin: 0; color: #657089; font-size: 11px; line-height: 1.6; }
.learning-materials-term-grade { padding: 4px 7px; color: #315df6; border-radius: 999px; background: #edf2ff; font-size: 8px; font-weight: 800; line-height: 1; }
.learning-materials-term-actions { display: grid; flex: 0 0 auto; align-items: stretch; gap: 6px; }
.learning-materials-pronunciation-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}
.learning-materials-language-badge { flex: 0 0 auto; padding: 4px 7px; color: #315df6; border-radius: 999px; background: #edf2ff; font-size: 8px; font-weight: 800; }
.learning-materials-pronunciation-button { appearance: none; display: grid; width: 32px; height: 32px; place-items: center; padding: 0; color: #315df6; border: 1px solid #dbe4fb; border-radius: 10px; background: #fff; cursor: pointer; transition: transform .16s ease,box-shadow .16s ease,color .16s ease,background .16s ease; }
.learning-materials-pronunciation-button:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(49,93,246,.14); }
.learning-materials-pronunciation-button svg { width: 18px; height: 18px; fill: currentColor; }
.learning-materials-pronunciation-button svg path:nth-child(n+2) { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.learning-materials-pronunciation-button.is-speaking { color: #fff; border-color: #315df6; background: #315df6; box-shadow: 0 7px 18px rgba(49,93,246,.26); }
.learning-materials-pronunciation-button.is-unavailable { opacity: .5; cursor: not-allowed; }
.learning-materials-symbol-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-top: 17px; }
.learning-materials-symbol-grid.is-comparison-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.learning-materials-symbol-card { display: grid; min-height: 174px; grid-template-columns: minmax(0,184px) 1fr; align-items: stretch; gap: 17px; padding: 18px; border: 1px solid #e5eaf5; border-radius: 20px; background: rgba(255,255,255,.96); box-shadow: var(--home-shadow); }
.learning-materials-symbol-card.is-comparison { grid-column: 1 / -1; grid-template-columns: minmax(0,1fr); grid-template-rows: auto 286px; gap: 14px; padding: 22px; }
.learning-materials-symbol-card.is-single-sign { min-height: 274px; grid-template-columns: minmax(0,1fr); grid-template-rows: auto 210px; gap: 14px; padding: 20px; }
.learning-materials-symbol-examples { position: relative; display: grid; min-width: 0; grid-template-columns: minmax(230px,30%) minmax(0,1fr); align-items: stretch; gap: 18px; }
.learning-materials-symbol-examples.is-single { grid-template-columns: minmax(0,1fr); }
.learning-materials-symbol-examples.is-three { grid-template-columns: minmax(170px,.72fr) minmax(170px,.72fr) minmax(0,1.56fr); }
.learning-materials-symbol-examples.is-four { grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-rows: repeat(2,280px); }
.learning-materials-symbol-card.is-comparison.is-four-examples { grid-template-rows: auto auto; }
.learning-materials-symbol-example { display: grid; min-width: 0; grid-template-rows: auto 1fr; gap: 8px; }
.learning-materials-symbol-example > small { justify-self: start; padding: 6px 10px; color: #315df6; border-radius: 999px; background: #edf2ff; font-size: 9px; font-weight: 850; }
.learning-materials-symbol-mark { position: relative; display: grid; min-width: 0; min-height: 136px; place-items: center; overflow: hidden; color: #18335f; border: 1px solid #e5eaf5; border-radius: 16px; background: #fff; text-align: center; }
.learning-materials-symbol-mark svg { display: block; width: 100% !important; height: auto !important; max-height: 136px; overflow: visible; }
.learning-materials-symbol-example .learning-materials-symbol-mark { min-height: 246px; }
.learning-materials-symbol-example .learning-materials-symbol-mark svg { max-height: 220px; }
.learning-materials-symbol-examples.is-single .learning-materials-symbol-mark { min-height: 170px; }
.learning-materials-symbol-examples.is-single .learning-materials-symbol-mark svg { width: min(100%,420px) !important; max-height: 160px; }
.learning-materials-symbol-example.is-standalone .learning-materials-symbol-mark svg { width: 180px !important; height: 150px !important; max-height: 150px; }
.learning-materials-symbol-example.is-wide-symbol .learning-materials-symbol-mark svg { width: min(88%,360px) !important; height: auto !important; max-height: 110px; }
.learning-materials-symbol-loading,.learning-materials-symbol-error { max-width: 100px; color: #8390a9; font-size: 8px; font-weight: 750; line-height: 1.45; }
.learning-materials-symbol-mark[aria-busy="true"]::after { content: ""; position: absolute; bottom: 14px; width: 34px; height: 2px; overflow: hidden; border-radius: 999px; background: linear-gradient(90deg,transparent,#8ea7ef,transparent); animation: learning-materials-symbol-loading 1.1s ease-in-out infinite; }
.learning-materials-symbol-copy { display: grid; min-width: 0; align-content: center; gap: 9px; }
.learning-materials-symbol-card.is-comparison .learning-materials-symbol-copy { min-height: 40px; grid-template-columns: minmax(0,1fr); align-items: start; align-content: start; }
.learning-materials-symbol-card.is-single-sign .learning-materials-symbol-copy { min-height: 40px; align-content: start; }
.learning-materials-symbol-heading { display: grid; gap: 4px; }
.learning-materials-symbol-copy strong { font-size: 16px; line-height: 1.35; }
.learning-materials-symbol-heading span { color: #315df6; font-size: 10px; font-weight: 750; line-height: 1.4; }
.learning-materials-symbol-copy p { margin: 0; color: #657089; font-size: 10px; line-height: 1.65; }
.learning-materials-symbol-copy .learning-materials-symbol-context-note { color: #8b95aa; font-size: 8px; line-height: 1.55; }
.learning-materials-symbol-copy > small { justify-self: start; padding: 5px 8px; color: #315df6; border-radius: 999px; background: #edf2ff; font-size: 8px; font-weight: 800; }
@keyframes learning-materials-symbol-loading { 0%,100% { transform: translateX(-20px); opacity: .35; } 50% { transform: translateX(20px); opacity: 1; } }
.learning-materials-empty { margin-top: 17px; padding: 35px 24px; border: 1px dashed #ced8eb; border-radius: 22px; background: rgba(255,255,255,.8); text-align: center; }
.learning-materials-empty strong { display: block; font-size: 17px; }
.learning-materials-empty p { margin: 8px 0 0; color: #737d94; font-size: 10px; }

.learning-music-library { display: grid; width: 100%; max-width: 1280px; min-width: 0; box-sizing: border-box; gap: 14px; margin: 17px auto 0; }
.learning-music-instrument-hub { display: grid; width: 100%; max-width: 1280px; min-width: 0; box-sizing: border-box; gap: 11px; margin: 17px auto 0; }
.learning-music-instrument-hub > p { margin: 0 4px; color: #8b95a9; font-size: 9px; line-height: 1.6; }
.learning-music-instrument-card { appearance: none; display: grid; min-width: 0; min-height: 126px; grid-template-columns: 66px minmax(0,1fr) 24px; align-items: center; gap: 17px; padding: 23px; color: inherit; border: 1px solid #e1e7f3; border-radius: 24px; background: linear-gradient(135deg,rgba(255,255,255,.99),rgba(244,247,255,.97)); font: inherit; text-align: left; cursor: pointer; touch-action: manipulation; box-shadow: var(--home-shadow); transition: transform .17s ease,border-color .17s ease,box-shadow .17s ease; }
.learning-music-instrument-card:hover { transform: translateY(-2px); border-color: #cbd7f6; box-shadow: 0 20px 42px rgba(37,57,112,.12); }
.learning-music-instrument-card:focus-visible { outline: 3px solid rgba(49,93,246,.25); outline-offset: 3px; }
.learning-music-instrument-card .learning-music-piano-icon { width: 64px; height: 64px; border-radius: 19px; }
.learning-music-instrument-card .learning-music-piano-icon .learning-music-piano-glyph { font-size: 40px; }
.learning-music-instrument-icon { display: grid; width: 64px; height: 64px; place-items: center; color: #315df6; border-radius: 19px; background: #e9efff; }
.learning-music-instrument-icon svg { width: 43px; height: 43px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.learning-music-violin-glyph { display: block; font-family: "Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif; font-size: 40px; line-height: 1; transform: rotate(-4deg); filter: drop-shadow(0 4px 5px rgba(75,47,30,.13)); }
.learning-music-instrument-card.is-prototype { background: linear-gradient(135deg,rgba(255,255,255,.99),rgba(245,241,255,.97)); }
.learning-music-instrument-card.is-prototype .learning-music-instrument-icon { color: #7359d9; background: #efeaff; }
.learning-music-instrument-card-copy { display: grid; min-width: 0; gap: 4px; }
.learning-music-instrument-card-copy small { color: #8993a9; font-size: 9px; font-weight: 750; }
.learning-music-instrument-card-copy strong { color: #1d2a45; font-size: 22px; }
.learning-music-instrument-card-copy em { color: #78849b; font-size: 10px; font-style: normal; line-height: 1.5; }
.learning-music-instrument-card-status { padding: 7px 11px; color: #315df6; border-radius: 999px; background: #e9efff; font-size: 9px; font-weight: 800; white-space: nowrap; }
.learning-music-instrument-card-status.is-prototype { color: #684fc9; background: #eee9ff; }
.learning-music-instrument-card-arrow { color: #9cabc2; font-size: 29px; line-height: 1; }
.learning-music-piano-icon { display: grid; width: 54px; height: 54px; place-items: center; color: #315df6; border-radius: 17px; background: #e9efff; }
.learning-music-piano-glyph { display: block; font-family: "Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif; font-size: 35px; line-height: 1; transform: rotate(-2deg); filter: drop-shadow(0 4px 5px rgba(33,42,61,.13)); }
.learning-violin-prototype { display: grid; gap: 14px; margin-top: 17px; }
.learning-violin-detail-audio { grid-template-columns: minmax(230px,.72fr) minmax(430px,1.28fr); align-items: start; }
.learning-violin-audio-column { display: grid; min-width: 0; gap: 10px; }
.learning-violin-segmented { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; padding: 5px; border-radius: 16px; background: #f0f3f9; }
.learning-violin-segmented button { appearance: none; display: grid; min-width: 0; min-height: 40px; align-content: center; padding: 7px 12px; color: #66728b; border: 1px solid transparent; border-radius: 12px; background: transparent; font: inherit; text-align: left; cursor: pointer; touch-action: manipulation; }
.learning-violin-segmented button strong { color: inherit; font-size: 11px; }
.learning-violin-segmented button small { color: inherit; font-size: 8px; font-weight: 650; opacity: .72; }
.learning-violin-segmented button.is-active { color: #315df6; border-color: #d8e1ff; background: #fff; box-shadow: 0 7px 15px rgba(45,67,128,.09); }
.learning-violin-score-selector { padding: 10px 20px; border-bottom: 1px solid #e7ebf3; background: #fbfcff; }
.learning-violin-score-selector .learning-violin-segmented { width: min(680px,100%); margin-left: auto; }
.learning-violin-detail-score .learning-music-score-pages[hidden] { display: none; }
.learning-violin-score-paper { width: min(820px,calc(100% - 40px)); min-height: 550px; justify-self: center; margin: 20px auto 0; padding: 34px 45px 27px; color: #1d2941; border: 1px solid #dde3ed; border-bottom: 0; border-radius: 16px 16px 0 0; background: #fff; box-shadow: 0 17px 38px rgba(42,57,92,.1); }
.learning-violin-score-paper > header { display: grid; justify-items: center; gap: 6px; text-align: center; }
.learning-violin-score-paper > header span { justify-self: end; padding: 5px 8px; color: #315df6; border-radius: 8px; background: #edf2ff; font-size: 8px; font-weight: 850; }
.learning-violin-score-paper > header b { font-family: Georgia,serif; font-size: 24px; }
.learning-violin-score-paper > header small { color: #6f788b; font-size: 9px; }
.learning-violin-score-system-list { display: grid; gap: 34px; margin-top: 42px; }
.learning-violin-score-system { position: relative; display: grid; height: 46px; grid-template-columns: 36px minmax(0,1fr); align-items: center; border-top: 1px solid #202a3b; border-bottom: 1px solid #202a3b; background: repeating-linear-gradient(to bottom,transparent 0 10px,#202a3b 10px 11px); }
.learning-violin-score-system::before,.learning-violin-score-system::after { content: ""; position: absolute; top: -1px; bottom: -1px; width: 1px; background: #202a3b; }
.learning-violin-score-system::before { left: 0; }.learning-violin-score-system::after { right: 0; }
.learning-violin-score-clef { position: relative; z-index: 1; padding-left: 7px; font-family: Georgia,serif; font-size: 36px; line-height: 1; }
.learning-violin-score-notes { position: relative; display: flex; height: 100%; align-items: center; justify-content: space-around; }
.learning-violin-score-notes::before,.learning-violin-score-notes::after { content: ""; position: absolute; top: 0; bottom: 0; width: 1px; background: #202a3b; }
.learning-violin-score-notes::before { left: 33%; }.learning-violin-score-notes::after { left: 67%; }
.learning-violin-score-notes i { position: relative; z-index: 1; width: 8px; height: 6px; border-radius: 50%; background: #202a3b; transform: rotate(-18deg); }
.learning-violin-score-notes i::after { content: ""; position: absolute; right: 0; bottom: 3px; width: 1px; height: 20px; background: #202a3b; transform: rotate(18deg); transform-origin: bottom; }
.learning-violin-score-notes.is-pattern-1 i:nth-child(3n+1) { transform: translateY(-8px) rotate(-18deg); }
.learning-violin-score-notes.is-pattern-1 i:nth-child(3n+2) { transform: translateY(6px) rotate(-18deg); }
.learning-violin-score-notes.is-pattern-2 i:nth-child(odd) { transform: translateY(-5px) rotate(-18deg); }
.learning-violin-score-notes.is-pattern-2 i:nth-child(even) { transform: translateY(8px) rotate(-18deg); }
.learning-violin-score-notes.is-pattern-3 i:nth-child(4n+1) { transform: translateY(8px) rotate(-18deg); }
.learning-violin-score-notes.is-pattern-3 i:nth-child(4n+3) { transform: translateY(-9px) rotate(-18deg); }
.learning-violin-score-system.is-paired { height: 82px; grid-template-columns: 30px 32px minmax(0,1fr); grid-template-rows: repeat(2,41px); background: none; border: 0; }
.learning-violin-score-system.is-paired::before { left: 30px; }.learning-violin-score-system.is-paired::after { display: none; }
.learning-violin-score-instrument { grid-row: 1 / 3; color: #6f788b; font-size: 8px; font-style: normal; }
.learning-violin-score-system.is-paired .learning-violin-score-clef { grid-column: 2; grid-row: 1; height: 41px; padding-left: 5px; border-top: 1px solid #202a3b; border-bottom: 1px solid #202a3b; background: repeating-linear-gradient(to bottom,transparent 0 9px,#202a3b 9px 10px); font-size: 30px; }
.learning-violin-score-system.is-paired .learning-violin-score-notes { grid-column: 3; grid-row: 1; height: 41px; border-top: 1px solid #202a3b; border-bottom: 1px solid #202a3b; background: repeating-linear-gradient(to bottom,transparent 0 9px,#202a3b 9px 10px); }
.learning-violin-score-system.is-paired .learning-violin-score-clef.is-piano { grid-row: 2; }
.learning-violin-score-system.is-paired .learning-violin-score-notes.is-piano { grid-row: 2; }
.learning-violin-score-paper > footer { margin-top: 34px; color: #8a94a7; font-size: 8px; text-align: center; }
.learning-violin-prototype-note { margin: 0; padding: 12px 15px; color: #69768d; border: 1px dashed #cfd9eb; border-radius: 14px; background: rgba(255,255,255,.72); font-size: 9px; text-align: center; }
.learning-music-controls { display: grid; gap: 15px; padding: 20px; border: 1px solid #e1e7f3; border-radius: 22px; background: rgba(255,255,255,.97); box-shadow: var(--home-shadow); }
.learning-music-track-card:focus-visible { outline: 3px solid rgba(49,93,246,.24); outline-offset: 2px; }
.learning-music-search-shell { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: stretch; gap: 8px; margin-top: 2px; }
.learning-music-text-search { display: grid; min-width: 0; min-height: 58px; grid-template-columns: 34px minmax(0,1fr) 34px; align-items: center; gap: 8px; padding: 7px 8px 7px 14px; border: 1px solid #dce4f4; border-radius: 16px; background: #f8faff; transition: border-color .16s ease,background .16s ease,box-shadow .16s ease; }
.learning-music-text-search:focus-within { border-color: #8ca7fb; background: #fff; box-shadow: 0 0 0 4px rgba(49,93,246,.09); }
.learning-music-search-trigger-icon { display: grid; width: 29px; height: 29px; place-items: center; color: #315df6; }
.learning-music-search-trigger-icon svg { width: 27px; height: 27px; overflow: visible; fill: none; stroke: currentColor; stroke-width: 2.8; stroke-linecap: round; }
.learning-music-text-search input { width: 100%; min-width: 0; height: 42px; padding: 0; color: #25324d; border: 0; outline: 0; background: transparent; font: inherit; font-size: 13px; }
.learning-music-text-search input::placeholder { color: #98a3b8; opacity: 1; }
.learning-music-text-search input::-webkit-search-cancel-button { display: none; }
.learning-music-text-search button { appearance: none; display: grid; width: 32px; height: 32px; place-items: center; padding: 0; color: #71809a; border: 0; border-radius: 10px; background: #e9eef8; font-size: 19px; cursor: pointer; }
.learning-music-text-search button[hidden] { visibility: hidden; pointer-events: none; }
.learning-music-open-picker { appearance: none; min-width: 124px; padding: 0 17px; color: #fff; border: 1px solid #315df6; border-radius: 16px; background: #315df6; font: inherit; font-size: 10px; font-weight: 800; cursor: pointer; touch-action: manipulation; box-shadow: 0 8px 18px rgba(49,93,246,.18); }
.learning-music-picker { display: grid; gap: 14px; padding: 16px; border: 1px solid #cad6f6; border-radius: 18px; background: linear-gradient(145deg,#f8faff,#fff); box-shadow: 0 13px 28px rgba(42,64,126,.1); }
.learning-music-picker > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.learning-music-picker > header > span { display: grid; gap: 3px; }
.learning-music-picker > header strong { color: #25324d; font-size: 14px; }
.learning-music-picker > header small { color: #8a95aa; font-size: 8px; }
.learning-music-picker > header button { appearance: none; display: grid; width: 30px; height: 30px; place-items: center; padding: 0; color: #71809a; border: 0; border-radius: 9px; background: #edf1f8; font-size: 20px; cursor: pointer; }
.learning-music-picker-fields { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 9px; }
.learning-music-picker-fields label { display: grid; min-width: 0; gap: 6px; }
.learning-music-picker-fields label > span { color: #69768e; font-size: 9px; font-weight: 750; }
.learning-music-picker-fields select { appearance: none; width: 100%; min-width: 0; height: 45px; padding: 0 32px 0 12px; color: #25324d; border: 1px solid #dce4f2; border-radius: 12px; outline: 0; background: #fff linear-gradient(45deg,transparent 50%,#71809a 50%) calc(100% - 15px) 19px/5px 5px no-repeat; font: inherit; font-size: 12px; font-weight: 750; }
.learning-music-picker-fields select:focus { border-color: #7898f7; box-shadow: 0 0 0 3px rgba(49,93,246,.09); }
.learning-music-picker-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.learning-music-picker-actions button { appearance: none; min-height: 43px; padding: 8px 16px; border-radius: 13px; font: inherit; font-size: 10px; font-weight: 800; cursor: pointer; touch-action: manipulation; }
.learning-music-picker-preview { color: #315df6; border: 1px solid #aebffa; background: #f4f7ff; }
.learning-music-picker-confirm { color: #fff; border: 1px solid #315df6; background: #315df6; box-shadow: 0 8px 18px rgba(49,93,246,.2); }
.learning-music-picker-actions button:disabled { color: #9aa5b8; border-color: #dce2ec; background: #eef1f6; cursor: not-allowed; box-shadow: none; opacity: .8; }
.learning-music-active-selection { display: flex; min-width: 0; min-height: 39px; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 8px 7px 13px; color: #53617b; border: 1px solid #e2e7f1; border-radius: 13px; background: #fafbfe; font-size: 9px; font-weight: 750; }
.learning-music-active-selection[hidden] { display: none; }
.learning-music-active-selection span { overflow: hidden; min-width: 0; text-overflow: ellipsis; white-space: nowrap; }
.learning-music-active-selection button { appearance: none; flex: 0 0 auto; padding: 6px 9px; color: #315df6; border: 0; border-radius: 9px; background: #edf2ff; font: inherit; font-size: 8px; font-weight: 800; cursor: pointer; }
.learning-music-search-status { min-height: 14px; margin: -6px 3px 0; color: #7c879e; font-size: 9px; font-weight: 750; line-height: 14px; }
.learning-music-search-status[hidden],.learning-music-results[hidden] { display: none; }
.learning-music-results { display: grid; gap: 13px; }
.learning-music-group-section { display: grid; gap: 11px; padding: 18px; border: 1px solid #e2e8f3; border-radius: 22px; background: rgba(255,255,255,.97); box-shadow: var(--home-shadow); }
.learning-music-group-section > header { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.learning-music-group-section > header > span { display: grid; gap: 3px; }
.learning-music-group-section > header strong { color: #25324d; font-size: 16px; }
.learning-music-group-section > header small { color: #8a95aa; font-size: 9px; }
.learning-music-group-section > header b { display: grid; width: 38px; height: 38px; place-items: center; color: #315df6; border-radius: 13px; background: #edf2ff; font-size: 16px; }
.learning-music-track-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.learning-music-track-card { appearance: none; display: grid; min-width: 0; min-height: 92px; grid-template-columns: minmax(0,1fr) auto; grid-template-areas: "heading arrow" "copy arrow"; align-items: center; gap: 9px 12px; padding: 14px 15px; color: inherit; border: 1px solid #e5eaf4; border-radius: 16px; background: #fbfcff; font: inherit; text-align: left; cursor: pointer; touch-action: manipulation; transition: transform .16s ease,border-color .16s ease,box-shadow .16s ease; }
.learning-music-track-card:hover { transform: translateY(-1px); border-color: #cdd8f4; box-shadow: 0 10px 22px rgba(44,64,120,.09); }
.learning-music-track-heading { grid-area: heading; display: flex; min-width: 0; align-items: center; gap: 7px; }
.learning-music-track-code { display: grid; flex: 0 0 auto; min-width: 42px; height: 30px; place-items: center; padding: 0 9px; color: #fff; border-radius: 10px; background: linear-gradient(135deg,#315df6,#6e91f7); font-size: 10px; font-weight: 850; box-shadow: 0 7px 15px rgba(49,93,246,.18); }
.learning-music-track-copy { grid-area: copy; display: flex; min-width: 0; align-items: baseline; gap: 4px; }
.learning-music-track-copy small { flex: 0 0 auto; color: #34415b; font-size: 11px; font-weight: 800; }
.learning-music-track-copy small::after { content: ":"; }
.learning-music-track-copy strong { color: #34415b; font-size: 11px; line-height: 1.45; overflow-wrap: anywhere; }
.learning-music-track-assets { display: flex; min-width: 0; gap: 5px; }
.learning-music-track-assets i { padding: 4px 7px; color: #8d98ac; border-radius: 999px; background: #edf0f6; font-size: 7px; font-style: normal; font-weight: 750; }
.learning-music-track-assets i.is-ready { color: #315df6; background: #e6edff; }
.learning-music-track-arrow { grid-area: arrow; color: #a1acc0; font-size: 21px; line-height: 1; }
.learning-music-empty { margin-top: 0; }
.learning-music-empty-icon { display: grid; width: 48px; height: 48px; margin: 0 auto 12px; place-items: center; color: #315df6; border-radius: 15px; background: #edf2ff; font-size: 23px; }
.learning-music-detail { display: grid; width: 100%; max-width: 1280px; min-width: 0; box-sizing: border-box; gap: 14px; margin: 17px auto 0; }
.learning-music-detail-audio,.learning-music-detail-score { border: 1px solid #e1e7f3; border-radius: 22px; background: #fff; box-shadow: var(--home-shadow); }
.learning-music-detail-audio { display: grid; grid-template-columns: minmax(0,1fr) minmax(280px,42%); align-items: center; gap: 18px; padding: 18px 20px; }
.learning-music-detail-audio > span,.learning-music-detail-score header > span { display: grid; min-width: 0; gap: 4px; }
.learning-music-detail-audio small,.learning-music-detail-score small { color: #8993a9; font-size: 8px; font-weight: 800; }
.learning-music-detail-audio strong,.learning-music-detail-score strong { color: #26334e; font-size: 12px; line-height: 1.4; }
.learning-music-detail-audio-meta { display: flex; align-items: center; gap: 7px; }
.learning-music-detail-audio-code { display: inline-grid; min-width: 30px; height: 20px; padding: 0 7px; place-items: center; color: #315df6; border-radius: 7px; background: #e8efff; font-size: 8px; font-weight: 850; line-height: 1; letter-spacing: .02em; }
.learning-music-detail-audio-copy em { color: #6f7d96; font-size: 9px; font-style: normal; font-weight: 750; }
.learning-music-audio-element { display: none; }
.learning-music-audio-player { display: grid; min-width: 0; grid-template-columns: 40px auto minmax(100px,1fr) auto; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 18px; background: #f1f3f6; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.learning-music-audio-toggle { appearance: none; display: grid; width: 38px; height: 38px; place-items: center; padding: 0; color: #fff; border: 0; border-radius: 50%; background: #315df6; font: inherit; cursor: pointer; touch-action: manipulation; box-shadow: 0 7px 15px rgba(49,93,246,.2); }
.learning-music-audio-toggle-icon { display: block; width: 20px; height: 20px; fill: currentColor; }
.learning-music-audio-icon-pause { display: none; }
.learning-music-audio-toggle.is-playing .learning-music-audio-icon-play { display: none; }
.learning-music-audio-toggle.is-playing .learning-music-audio-icon-pause { display: inline; }
.learning-music-audio-current,.learning-music-audio-duration { color: #334058; font-size: 10px; font-weight: 800; font-variant-numeric: tabular-nums; }
.learning-music-audio-seek { --audio-progress:0%; appearance: none; -webkit-appearance: none; width: 100%; min-width: 0; height: 22px; margin: 0; padding: 0; border: 0; outline: 0; background: transparent; cursor: pointer; touch-action: pan-y; }
.learning-music-audio-seek::-webkit-slider-runnable-track { height: 5px; border-radius: 999px; background: linear-gradient(to right,#315df6 0 var(--audio-progress),#c8cfdb var(--audio-progress) 100%); }
.learning-music-audio-seek::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 16px; height: 16px; margin-top: -5.5px; border: 3px solid #315df6; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(35,54,99,.2); }
.learning-music-audio-seek::-moz-range-track { height: 5px; border-radius: 999px; background: #c8cfdb; }
.learning-music-audio-seek::-moz-range-progress { height: 5px; border-radius: 999px; background: #315df6; }
.learning-music-audio-seek::-moz-range-thumb { width: 12px; height: 12px; border: 3px solid #315df6; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(35,54,99,.2); }
.learning-music-audio-seek:focus-visible { filter: drop-shadow(0 0 4px rgba(49,93,246,.45)); }
.learning-music-audio-seek:disabled { cursor: wait; opacity: .55; }
.learning-music-detail-score { overflow: hidden; }
.learning-music-detail-score header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 20px; border-bottom: 1px solid #e7ebf3; }
.learning-music-detail-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; }
.learning-music-share-button { appearance: none; display: inline-flex; min-height: 36px; align-items: center; justify-content: center; gap: 6px; padding: 8px 12px; color: #fff; border: 1px solid #315df6; border-radius: 12px; background: #315df6; font: inherit; font-size: 9px; font-weight: 850; cursor: pointer; touch-action: manipulation; box-shadow: 0 7px 15px rgba(49,93,246,.16); }
.learning-music-share-button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.learning-music-share-button:hover { background: #244de0; }
.learning-music-share-button:focus-visible { outline: 3px solid rgba(49,93,246,.22); outline-offset: 2px; }
.learning-music-detail-navigation { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; }
.learning-music-detail-navigation button { appearance: none; min-width: 76px; min-height: 36px; padding: 8px 12px; color: #315df6; border: 1px solid #dbe4ff; border-radius: 12px; background: #edf2ff; font: inherit; font-size: 9px; font-weight: 850; cursor: pointer; touch-action: manipulation; }
.learning-music-detail-navigation button:hover { border-color: #b8c8ff; background: #e5edff; }
.learning-music-detail-navigation button:focus-visible { outline: 3px solid rgba(49,93,246,.22); outline-offset: 2px; }
.learning-music-score-pages { display: grid; background: #eef2f8; }
.learning-music-score-empty { display: grid; min-height: 210px; place-items: center; padding: 36px 20px; color: #77849d; background: linear-gradient(180deg,#fbfcff 0%,#f3f6fb 100%); text-align: center; }
.learning-music-score-empty strong { font-size: 16px; font-weight: 850; }
.learning-music-score-page { display: grid; margin: 0; background: #fff; }
.learning-music-score-page + .learning-music-score-page { border-top: 8px solid #eef2f8; }
.learning-music-score-page figcaption { padding: 9px 20px; color: #63718b; border-bottom: 1px solid #e7ebf3; background: #f8faff; font-size: 9px; font-weight: 800; }
.learning-music-detail-score img { display: block; width: 100%; height: auto; background: #fff; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.learning-music-share-backdrop { position: fixed; z-index: 1500; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(20,31,58,.62); backdrop-filter: blur(5px); }
.learning-music-share-dialog { position: relative; display: grid; width: min(420px,100%); max-height: calc(100dvh - 48px); justify-items: center; gap: 9px; padding: 28px; overflow-y: auto; box-sizing: border-box; border: 1px solid rgba(255,255,255,.8); border-radius: 26px; background: #fff; box-shadow: 0 28px 70px rgba(19,34,76,.3); text-align: center; }
.learning-music-share-close { appearance: none; position: absolute; top: 14px; right: 14px; display: grid; width: 36px; height: 36px; place-items: center; padding: 0; color: #71809b; border: 0; border-radius: 12px; background: #f0f3f9; font: inherit; font-size: 23px; cursor: pointer; }
.learning-music-share-mascot { display: block; width: 76px; height: 76px; object-fit: contain; border: 0; border-radius: 0; background: transparent; filter: drop-shadow(0 9px 12px rgba(45,103,217,.18)); }
.learning-music-share-eyebrow { color: #315df6; font-size: 9px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.learning-music-share-dialog h2 { margin: 0; color: #1f2d49; font-size: 22px; }
.learning-music-share-dialog > p { max-width: 330px; margin: 0; color: #65738d; font-size: 11px; line-height: 1.55; }
.learning-music-share-qr-shell { display: grid; width: 210px; height: 210px; margin-top: 5px; place-items: center; padding: 12px; border: 1px solid #e1e7f3; border-radius: 20px; background: #f8faff; }
.learning-music-share-qr-shell img { display: block; width: 100%; height: 100%; image-rendering: pixelated; -webkit-touch-callout: default; user-select: auto; }
.learning-music-share-qr-shell span { color: #74819a; font-size: 10px; line-height: 1.5; }
.learning-music-share-message { min-height: 34px; color: #677690; font-size: 10px; line-height: 1.6; }
.learning-music-share-brand { display: grid; justify-items: center; gap: 2px; color: #1f2d49; }
.learning-music-share-brand strong { font-size: 10px; font-weight: 850; }
.learning-music-share-brand span { color: #315df6; font-size: 9px; font-weight: 750; letter-spacing: .04em; }
.learning-music-share-actions { display: flex; width: 100%; gap: 9px; }
.learning-music-share-actions button { appearance: none; flex: 1 1 0; min-height: 42px; padding: 9px 12px; color: #315df6; border: 1px solid #dbe4ff; border-radius: 13px; background: #edf2ff; font: inherit; font-size: 10px; font-weight: 850; cursor: pointer; }
.learning-music-share-actions button.is-primary { color: #fff; border-color: #315df6; background: #315df6; }
.learning-music-share-actions button:disabled { cursor: wait; opacity: .65; }
.learning-music-share-image-viewer { position: fixed; z-index: 1510; inset: 0; display: grid; grid-template-rows: auto minmax(0,1fr) auto; justify-items: center; gap: 12px; padding: 22px 18px calc(22px + env(safe-area-inset-bottom)); box-sizing: border-box; color: #fff; background: rgba(17,26,49,.94); }
.learning-music-share-image-viewer[hidden] { display: none; }
.learning-music-share-image-viewer > strong { font-size: 17px; }
.learning-music-share-image-viewer > img { display: block; width: auto; max-width: min(420px,100%); height: 100%; min-height: 0; max-height: calc(100dvh - 118px); object-fit: contain; border-radius: 18px; box-shadow: 0 22px 60px rgba(0,0,0,.32); -webkit-touch-callout: default; user-select: auto; }
.learning-music-share-image-viewer > small { font-size: 11px; line-height: 1.5; text-align: center; }
.learning-music-share-image-close { appearance: none; position: absolute; z-index: 1; top: 16px; right: 16px; display: grid; width: 38px; height: 38px; place-items: center; padding: 0; color: #fff; border: 1px solid rgba(255,255,255,.24); border-radius: 13px; background: rgba(255,255,255,.12); font: inherit; font-size: 24px; cursor: pointer; }

body[data-active-screen="single-practice"] .single-practice-stage,
body[data-active-screen="exam-preview"] .exam-preview-stage { min-height: 100vh; padding: 34px 24px 60px; background: transparent; }
body[data-active-screen="single-practice"] .single-practice-stage { padding-top: 28px; }
body[data-active-screen="single-practice"] .single-practice-stage {
  background:
    radial-gradient(circle at 88% 3%, rgba(114, 181, 255, .18), transparent 25rem),
    radial-gradient(circle at 8% 34%, rgba(139, 117, 255, .09), transparent 22rem),
    #f5f7fc;
}
body[data-active-screen="exam-preview"] .exam-preview-stage {
  background:
    radial-gradient(circle at 88% 3%, rgba(114, 181, 255, .18), transparent 25rem),
    radial-gradient(circle at 8% 34%, rgba(139, 117, 255, .09), transparent 22rem),
    #f5f7fc;
}
body[data-active-screen="single-practice"] .single-practice-shell,
body[data-active-screen="exam-preview"] .exam-preview-shell { width: min(1280px,100%); gap: 16px; }
body[data-active-screen="single-practice"] .single-practice-titlebar { margin-bottom: 2px; }
body[data-active-screen="single-practice"] .single-practice-hero,
body[data-active-screen="exam-preview"] .exam-preview-hero { min-height: 145px; padding: 27px 31px; border: 1px solid rgba(255,255,255,.9); border-radius: 27px; background: radial-gradient(circle at 90% 18%,rgba(100,182,255,.2),transparent 12rem),rgba(255,255,255,.94); box-shadow: var(--home-shadow); }
body[data-active-screen="single-practice"] .single-practice-kicker,
body[data-active-screen="exam-preview"] .exam-preview-kicker { color: #315df6; font-size: 9px; letter-spacing: .13em; }
body[data-active-screen="single-practice"] .single-practice-hero h1,
body[data-active-screen="exam-preview"] .exam-preview-hero h1 { color: var(--home-ink); font-size: 27px; }
body[data-active-screen="single-practice"] .single-practice-hero p:not(.single-practice-kicker) { color: var(--home-muted); font-size: 11px; }
body[data-active-screen="single-practice"] .single-practice-home-button,
body[data-active-screen="exam-preview"] .exam-preview-home-button { min-height: 43px; padding: 0 14px; color: #315df6; border: 0; border-radius: 14px; background: #edf2ff; font-size: 11px; box-shadow: none; }
body[data-active-screen="single-practice"] .single-practice-summary {
  position: relative;
  height: 198px;
  min-height: 190px;
  padding: 30px 220px 28px 31px;
  border: 1px solid rgba(255,255,255,.38);
  border-radius: 28px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 82% 18%, rgba(255,255,255,.22), transparent 9rem),
    linear-gradient(135deg, #315df6 0%, #477ff6 64%, #64a8f4 100%);
  box-shadow: 0 18px 42px rgba(49,93,246,.2);
}
body[data-active-screen="single-practice"] .single-practice-summary::after {
  content: "";
  position: absolute;
  right: -84px;
  bottom: -126px;
  width: 310px;
  height: 310px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
}
body[data-active-screen="single-practice"] .single-practice-summary-copy { position: relative; z-index: 2; }
body[data-active-screen="single-practice"] .single-practice-summary-copy > small {
  color: rgba(255,255,255,.72);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .16em;
}
body[data-active-screen="single-practice"] .single-practice-summary h2 {
  margin: 8px 0 0;
  color: #fff;
  font-size: 29px;
  line-height: 1.2;
  letter-spacing: -.035em;
}
body[data-active-screen="single-practice"] .single-practice-summary p {
  max-width: 430px;
  margin: 12px 0 0;
  color: rgba(255,255,255,.78);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.65;
}
body[data-active-screen="single-practice"] .single-practice-summary-tags { display: flex; gap: 8px; margin-top: 18px; }
body[data-active-screen="single-practice"] .single-practice-summary-tags span {
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  color: #fff;
  background: rgba(255,255,255,.12);
  font-size: 9px;
  font-weight: 800;
}
body[data-active-screen="single-practice"] .single-practice-summary-art {
  position: absolute;
  z-index: 1;
  right: 32px;
  bottom: -16px;
  width: 180px;
  height: 180px;
}
body[data-active-screen="single-practice"] .single-practice-summary-art img {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 170px;
  height: 170px;
  object-fit: contain;
  filter: drop-shadow(0 15px 20px rgba(20,54,145,.24));
}
body[data-active-screen="single-practice"] .single-practice-summary-note,
body[data-active-screen="single-practice"] .single-practice-summary-spark {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  color: #315df6;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  box-shadow: 0 8px 18px rgba(33,64,145,.16);
  font-weight: 850;
}
body[data-active-screen="single-practice"] .single-practice-summary-note.note-one { top: 13px; left: 0; width: 34px; height: 34px; color: #7b5ce2; font-size: 14px; }
body[data-active-screen="single-practice"] .single-practice-summary-note.note-two { top: -3px; right: 5px; width: 40px; height: 40px; font-size: 15px; }
body[data-active-screen="single-practice"] .single-practice-summary-spark { top: 48px; right: 1px; width: 27px; height: 27px; color: #19a987; font-size: 12px; }
body[data-active-screen="single-practice"] .single-practice-categories {
  padding: 25px;
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 28px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 12px 34px rgba(45,67,128,.08);
}
body[data-active-screen="single-practice"] .single-practice-categories-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding: 0 2px 18px;
  border-bottom: 1px solid var(--home-line);
}
body[data-active-screen="single-practice"] .single-practice-categories-heading small { color: #98a2b8; font-size: 9px; font-weight: 850; letter-spacing: .16em; }
body[data-active-screen="single-practice"] .single-practice-categories-heading h2 { margin: 5px 0 0; color: var(--home-ink); font-size: 23px; }
body[data-active-screen="single-practice"] .single-practice-categories-heading > span { padding: 7px 10px; border-radius: 11px; color: #315df6; background: #edf2ff; font-size: 9px; font-weight: 800; }
body[data-active-screen="single-practice"] .single-practice-grid {
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 9px 14px;
}
body[data-active-screen="single-practice"] .single-practice-card {
  position: relative;
  min-height: 78px;
  grid-template-columns: 46px minmax(0,1fr) 16px;
  gap: 13px;
  padding: 11px 13px;
  border: 1px solid #edf0f6;
  border-radius: 18px;
  background: #fbfcff;
  box-shadow: none;
  touch-action: pan-y;
}
body[data-active-screen="single-practice"] .single-practice-card::before {
  content: "";
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 15px;
  color: #315df6;
  background: #e9efff;
  font-size: 12px;
  font-weight: 850;
}
body[data-active-screen="single-practice"] .single-practice-card::after { content: "›"; color: #9fa8b9; font-size: 23px; font-weight: 450; }
body[data-active-screen="single-practice"] .single-practice-card:nth-child(4n + 2)::before { color: #785bd6; background: #f0eaff; }
body[data-active-screen="single-practice"] .single-practice-card:nth-child(4n + 3)::before { color: #168e70; background: #e4f8ef; }
body[data-active-screen="single-practice"] .single-practice-card:nth-child(4n + 4)::before { color: #238ab8; background: #e6f6fc; }
body[data-active-screen="single-practice"] .single-practice-card:focus-visible { border-color: rgba(49,93,246,.22); background: #fff; box-shadow: 0 10px 22px rgba(45,67,128,.08); }
@media (hover: hover) and (pointer: fine) {
  body[data-active-screen="single-practice"] .single-practice-card:hover { transform: translateY(-1px); border-color: rgba(49,93,246,.22); background: #fff; box-shadow: 0 10px 22px rgba(45,67,128,.08); }
}
body[data-active-screen="single-practice"] .single-practice-card-main { gap: 4px; }
body[data-active-screen="single-practice"] .single-practice-card-title { color: var(--home-ink); font-size: 14px; }
body[data-active-screen="single-practice"] .single-practice-card-copy { color: var(--home-muted); font-size: 9px; line-height: 1.5; }
body[data-locale="en-GB"][data-active-screen="single-practice"] .single-practice-categories-heading { padding-bottom: 22px; }
body[data-active-screen="exam-preview"] .exam-preview-paper-grid { gap: 12px; }
body[data-active-screen="exam-preview"] .exam-preview-paper-card { min-height: 105px; padding: 20px 23px; border: 1px solid rgba(255,255,255,.9); border-radius: 23px; background: rgba(255,255,255,.94); box-shadow: 0 9px 26px rgba(45,67,128,.07); }
body[data-active-screen="exam-preview"] .exam-preview-paper-title { color: var(--home-ink); font-size: 17px; }
body[data-active-screen="exam-preview"] .exam-preview-paper-eyebrow { color: #98a0b2; font-size: 9px; }
body[data-active-screen="exam-preview"] .exam-preview-paper-lock { margin-left: 0; align-self: center; justify-self: center; }
body[data-active-screen="exam-preview"] .exam-preview-paper-options { padding: 10px; border: 0; border-radius: 18px; background: white; box-shadow: 0 9px 26px rgba(45,67,128,.07); }

body[data-active-screen="login"] .login-panel,
body[data-active-screen="recharge"] .login-panel,
body[data-active-screen="feedback"] .login-panel {
  border-color: rgba(255,255,255,.9);
  border-radius: 28px;
  background: rgba(255,255,255,.94);
  box-shadow: var(--home-shadow);
}

body[data-active-screen="login"] .login-stage,
body[data-active-screen="recharge"] .login-stage,
body[data-active-screen="feedback"] .login-stage {
  min-height: 100vh;
  align-items: flex-start;
  padding: 42px 24px 60px;
  background:
    radial-gradient(circle at 8% 0%, rgba(120,185,255,.13), transparent 27rem),
    radial-gradient(circle at 90% 22%, rgba(175,153,255,.09), transparent 24rem),
    #f7f8fc;
}

body[data-active-screen="login"] .login-header,
body[data-active-screen="recharge"] .login-header,
body[data-active-screen="feedback"] .login-header { display: none; }

body[data-active-screen="login"] .login-shell { width: min(500px,100%); gap: 0; }
body[data-active-screen="recharge"] .account-feature-shell,
body[data-active-screen="feedback"] .account-feature-shell { width: min(1280px,100%); gap: 18px; }
body[data-active-screen="recharge"] .recharge-stage,
body[data-active-screen="feedback"] .feedback-stage { padding: 28px 24px 60px; }
body[data-active-screen="recharge"] .account-feature-titlebar,
body[data-active-screen="feedback"] .account-feature-titlebar { height: 60px; min-height: 60px; }

.account-feature-titlebar { height: 53px; min-height: 53px; margin-bottom: 0; }
.account-feature-intro-heading { margin: 0 0 9px; color: var(--home-ink); font-size: 21px; letter-spacing: -.02em; }

body[data-active-screen="login"] .login-panel,
body[data-active-screen="recharge"] .login-panel,
body[data-active-screen="feedback"] .login-panel { padding: 31px; }

body[data-active-screen="login"] .login-copy h1,
body[data-active-screen="recharge"] .login-copy h1,
body[data-active-screen="feedback"] .login-copy h1 { color: var(--home-ink); font-size: 27px; letter-spacing: -.03em; }
body[data-active-screen="login"] .login-copy p,
body[data-active-screen="recharge"] .login-copy p,
body[data-active-screen="feedback"] .login-copy p { color: var(--home-muted); font-size: 12px; line-height: 1.7; }
body[data-active-screen="login"] .login-kicker,
body[data-active-screen="recharge"] .login-kicker,
body[data-active-screen="feedback"] .login-kicker { color: #315df6; font-size: 9px; letter-spacing: .13em; }

body[data-active-screen="login"] .login-mode-tabs { gap: 5px; padding: 5px; border: 0; border-radius: 16px; background: #f2f4f8; }
body[data-active-screen="login"] .login-mode-tab { height: 40px; border-radius: 12px; font-size: 12px; }
body[data-active-screen="login"] .login-mode-tab.is-active { color: #315df6; background: white; box-shadow: 0 5px 14px rgba(38,57,105,.08); }

body[data-active-screen="login"] .login-form-links { padding: 0 3px; }
body[data-active-screen="login"] .login-form-links button { color: #315df6; font-size: 11px; font-weight: 700; }
body[data-active-screen="login"] .login-form-links .login-forgot-password { color: var(--home-muted); }

body[data-active-screen="login"] .login-field,
body[data-active-screen="feedback"] .login-field { color: var(--home-ink); font-size: 11px; }
body[data-active-screen="login"] .login-field input,
body[data-active-screen="feedback"] .login-field textarea { border-color: #e4e8f0; background: #fafbfe; color: var(--home-ink); font-size: 12px; }

body[data-active-screen="login"] .login-button,
body[data-active-screen="recharge"] .login-button,
body[data-active-screen="feedback"] .login-button { min-height: 46px; height: auto; border-color: #e1e7f2; border-radius: 15px; color: #315df6; font-size: 12px; }
body[data-active-screen="login"] .login-button-primary,
body[data-active-screen="recharge"] .login-button-primary,
body[data-active-screen="feedback"] .login-button-primary { color: white; border: 0; background: linear-gradient(135deg,#4773ff,#315df6); box-shadow: 0 10px 22px rgba(49,93,246,.2); }

body[data-active-screen="recharge"] .recharge-panel { gap: 16px; }
body[data-active-screen="recharge"] .recharge-feature { padding: 6px 11px; border: 0; border-radius: 999px; color: #315df6 !important; background: #edf2ff; font-size: 10px !important; }
body[data-active-screen="recharge"] .recharge-summary { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; }
body[data-active-screen="recharge"] .recharge-summary-item { min-height: 105px; align-content: center; padding: 17px; border: 0; border-radius: 18px; background: #f5f7fb; }
body[data-active-screen="recharge"] .recharge-summary-item span { color: #315df6; font-size: 10px; }
body[data-active-screen="recharge"] .recharge-summary-item strong { color: var(--home-ink); font-size: 12px; line-height: 1.65; }
body[data-active-screen="recharge"] .recharge-benefits h2 { color: var(--home-ink); font-size: 18px; }
body[data-active-screen="recharge"] .recharge-benefit-list { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 11px; }
body[data-active-screen="recharge"] .recharge-benefit-item { min-height: 150px; align-content: start; padding: 17px; border: 0; border-radius: 19px; background: #f7f8fc; }
body[data-active-screen="recharge"] .recharge-benefit-item span { color: #315df6; background: #eaf0ff; font-size: 9px; }
body[data-active-screen="recharge"] .recharge-benefit-item strong { color: var(--home-ink); font-size: 13px; }
body[data-active-screen="recharge"] .recharge-benefit-item p { color: var(--home-muted); font-size: 10px; line-height: 1.6; }
body[data-active-screen="recharge"] .membership-benefit-summary { display: flex; align-items: center; gap: 22px; padding: 16px 19px; border-radius: 16px; background: #f7f8fc; }
body[data-active-screen="recharge"] .membership-benefit-summary > strong { flex: 0 0 auto; color: var(--home-ink); font-size: 13px; }
body[data-active-screen="recharge"] .membership-benefit-summary > div { display: flex; flex-wrap: wrap; gap: 10px 20px; }
body[data-active-screen="recharge"] .membership-benefit-summary span { color: var(--home-muted); font-size: 11px; font-weight: 700; }
body[data-active-screen="recharge"] .membership-benefit-summary span::before { content: "✓"; margin-right: 6px; color: #315df6; font-weight: 900; }
body[data-active-screen="recharge"] .recharge-note { padding: 14px 16px; border: 0; border-radius: 16px; background: #e9f8f2; }
body[data-active-screen="recharge"] .recharge-note strong { color: #168e70; font-size: 12px; }
body[data-active-screen="recharge"] .recharge-note p { color: #527267; font-size: 10px; }
body[data-active-screen="recharge"] .recharge-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
body[data-active-screen="recharge"] .membership-recharge-actions { grid-template-columns: minmax(180px,280px); justify-content: start; }

body[data-active-screen="feedback"] .feedback-upload-card,
body[data-active-screen="feedback"] .feedback-preview { border-color: #dfe5ef; border-radius: 16px; background: #f7f9fc; }
body[data-active-screen="feedback"] .feedback-field { grid-template-rows: 16px 184px 18px; }
body[data-active-screen="feedback"] .feedback-field > span:first-child { line-height: 16px; }
body[data-active-screen="feedback"] .feedback-field textarea { height: 184px; min-height: 184px; box-sizing: border-box; }
body[data-active-screen="feedback"] .feedback-counter { height: 18px; line-height: 18px; }
body[data-active-screen="feedback"] .feedback-actions { display: grid; grid-template-columns: minmax(180px,280px); justify-content: start; }

@media (min-width: 641px) {
  body[data-active-screen="feedback"] .feedback-form {
    grid-template-columns: minmax(0,1.55fr) minmax(280px,.65fr);
    align-items: start;
  }
  body[data-active-screen="feedback"] .feedback-upload-card,
  body[data-active-screen="feedback"] .feedback-preview { height: 184px; min-height: 184px; box-sizing: border-box; margin-top: 24px; }
}

.password-input-shell { position: relative; display: block; width: 100%; }
.password-input-shell > input { padding-right: 50px !important; }
.password-input-shell > button { position: absolute; z-index: 2; top: 50%; right: 8px; display: grid; width: 38px; height: 38px; place-items: center; padding: 0; color: #7c879d; border: 0; border-radius: 12px; background: transparent; transform: translateY(-50%); }
.password-input-shell > button:hover,.password-input-shell > button:focus-visible { color: #315df6; background: #edf2ff; }
.password-input-shell svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; pointer-events: none; }
.password-eye-slash { opacity: 0; }
.password-input-shell > button.is-visible .password-eye-slash { opacity: 1; }

body[data-active-screen="login"] .login-button,
body[data-active-screen="recharge"] .login-button,
body[data-active-screen="feedback"] .login-button,
body[data-active-screen="login"] .login-field input,
body[data-active-screen="feedback"] .login-field textarea { border-radius: 14px; }

body[data-active-screen="login"] .login-shell:has(.account-ui-heading) { width: min(1280px, 100%); }
body[data-active-screen="login"] .login-panel:has(.account-ui-heading) { padding: 0; border: 0; background: transparent; box-shadow: none; }
body[data-active-screen="login"] .login-stage:has(.account-ui-heading) { padding: 28px 24px 60px; }

.account-ui-heading { display: flex; height: 60px; box-sizing: border-box; align-items: center; justify-content: flex-start; gap: 14px; margin-bottom: 18px; }
.account-ui-heading p { margin: 0 0 2px; color: #98a0b2; font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.account-ui-heading h1 { margin: 0; color: var(--home-ink); font-size: 28px; }
.account-ui-heading > button,.account-auth-back { display: grid; width: 46px; height: 46px; flex: 0 0 auto; place-items: center; padding: 0; color: #315df6; border: 0; border-radius: 15px; background: white; box-shadow: 0 9px 26px rgba(45,67,128,.07); font-size: 27px; font-weight: 500; }
.account-auth-back { margin-bottom: 17px; }
.language-settings-heading { height: 60px; min-height: 60px; box-sizing: border-box; }
.account-ui-hero { position: relative; display: flex; min-height: 132px; align-items: center; gap: 20px; overflow: hidden; padding: 24px 27px; border-radius: 28px; background: radial-gradient(circle at 92% 5%,rgba(103,193,255,.17),transparent 13rem),linear-gradient(120deg,#fff,#f5f8ff); box-shadow: var(--home-shadow); }
.account-ui-mascot { display: grid; width: 84px; height: 84px; flex: 0 0 auto; place-items: center; overflow: hidden; border-radius: 27px; background: linear-gradient(145deg,#e9f4ff,#edf0ff); }
.account-ui-mascot img { width: 94px; height: 94px; object-fit: contain; transform: translateY(4px); }
.account-ui-identity { display: grid; gap: 4px; }
.account-ui-identity small,.account-ui-identity span { color: #98a0b2; font-size: 11px; }
.account-ui-identity strong { color: var(--home-ink); font-size: 22px; }
.account-ui-vip { display: grid; gap: 2px; margin-left: auto; padding: 10px 14px; color: #315df6; border-radius: 15px; background: #eaf0ff; text-align: center; }
.account-ui-vip strong { font-size: 11px; }.account-ui-vip small { color: #6f84cc; font-size: 8px; }
.account-ui-message { margin: 12px 0 0; padding: 10px 13px; color: #60708f; border-radius: 13px; background: rgba(255,255,255,.7); font-size: 10px; text-align: center; }
.account-ui-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; margin-top: 18px; }
.account-ui-card { overflow: hidden; padding: 23px; border-radius: 27px; background: rgba(255,255,255,.94); box-shadow: var(--home-shadow); }
.account-ui-card header { display: flex; height: 35px; box-sizing: border-box; align-items: baseline; justify-content: space-between; padding: 0 2px 15px; border-bottom: 1px solid var(--home-line); }
.account-ui-card header > strong { color: var(--home-ink); font-size: 16px; }.account-ui-card header small { color: #98a0b2; font-size: 8px; font-weight: 750; letter-spacing: .1em; }
.account-ui-card > div { display: grid; }
.account-ui-card button { display: flex; min-height: 68px; align-items: center; gap: 12px; padding: 12px 2px; text-align: left; border: 0; border-bottom: 1px solid var(--home-line); background: transparent; }
.account-ui-card button:last-child { border-bottom: 0; }
.account-ui-card button > span { display: grid; min-width: 0; gap: 4px; }.account-ui-card button strong { color: var(--home-ink); font-size: 13px; }.account-ui-card button small { color: #98a0b2; font-size: 10px; }.account-ui-card button b { margin-left: auto; color: #98a0b2; font-size: 22px; font-weight: 400; }
.account-ui-card .account-ui-logout strong { color: #e34f67; }
.account-ui-wrong-count { height: 14px; margin: 14px 0 0; color: #98a0b2; font-size: 10px; line-height: 14px; text-align: center; }
.login-panel:has(.account-ui-heading) .account-password-panel { margin: 14px 0 0; border: 0; border-radius: 20px; background: white; box-shadow: var(--home-shadow); }

.account-language-entry { display: flex; width: 100%; min-height: 62px; align-items: center; gap: 12px; margin-top: 15px; padding: 11px 15px; color: var(--home-ink); text-align: left; border: 1px solid #e5e9f2; border-radius: 17px; background: #f8faff; }
.account-language-entry > span { display: grid; min-width: 0; gap: 3px; }
.account-language-entry strong { font-size: 12px; }
.account-language-entry small { color: #8b94a7; font-size: 9px; }
.account-language-entry b { margin-left: auto; color: #98a0b2; font-size: 21px; font-weight: 400; }
.account-language-entry:hover,.account-language-entry:focus-visible { border-color: #bdcafa; background: #f0f4ff; }
.account-about-entry { margin-top: 9px; }

.about-us-hero { position: relative; display: flex; min-height: 192px; align-items: center; overflow: hidden; box-sizing: border-box; padding: 34px 38px; color: white; border-radius: 28px; background: radial-gradient(circle at 83% 20%,rgba(255,255,255,.24),transparent 12rem),linear-gradient(135deg,#315df6 0%,#477ff6 62%,#65a9f4 100%); box-shadow: 0 18px 42px rgba(49,93,246,.2); }
.about-us-hero::after { position: absolute; right: -92px; bottom: -142px; width: 350px; height: 350px; border: 1px solid rgba(255,255,255,.26); border-radius: 50%; content: ""; }
.about-us-hero > div { position: relative; z-index: 1; max-width: 560px; }
.about-us-hero small,.about-us-card > small { font-size: 9px; font-weight: 800; letter-spacing: .14em; }
.about-us-hero small { color: rgba(255,255,255,.82); }
.about-us-hero h2 { margin: 8px 0 0; font-size: 30px; line-height: 1.22; }
.about-us-hero p { margin: 12px 0 0; color: rgba(255,255,255,.84); font-size: 12px; line-height: 1.7; }
.about-us-hero img { position: absolute; z-index: 1; right: 38px; bottom: -13px; width: 184px; height: 184px; object-fit: contain; filter: drop-shadow(0 16px 22px rgba(22,65,178,.25)); }
.about-us-grid { display: grid; grid-template-columns: minmax(0,.82fr) minmax(0,1.18fr); gap: 18px; margin-top: 18px; }
.about-us-card { box-sizing: border-box; padding: 27px; border-radius: 27px; background: rgba(255,255,255,.95); box-shadow: var(--home-shadow); }
.about-us-card > small { color: #98a0b2; }
.about-us-card h2 { margin: 7px 0 0; color: var(--home-ink); font-size: 21px; }
.about-us-intro-card p { margin: 18px 0 0; color: #6f7b93; font-size: 11px; line-height: 2; }
.about-us-details { display: grid; margin: 17px 0 0; }
.about-us-details > div { display: grid; grid-template-columns: 132px minmax(0,1fr); gap: 17px; padding: 12px 0; border-top: 1px solid var(--home-line); }
.about-us-details dt { color: #98a0b2; font-size: 10px; }
.about-us-details dd { min-width: 0; margin: 0; color: var(--home-ink); font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; }
.about-us-details a { color: #315df6; text-decoration: none; }
.about-us-details a:hover,.about-us-details a:focus-visible { text-decoration: underline; }
.about-us-phone { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 12px; }
.about-us-phone button { padding: 4px 8px; color: #315df6; border: 1px solid #cfdaff; border-radius: 8px; background: #f2f5ff; font-size: 9px; font-weight: 700; }
.about-us-phone button:hover,.about-us-phone button:focus-visible { border-color: #315df6; background: #eaf0ff; }

.account-language-settings-card { display: grid; height: 232px; grid-template-columns: minmax(0,.72fr) minmax(0,1.28fr); align-items: center; gap: 30px; box-sizing: border-box; padding: 29px; border-radius: 27px; background: white; box-shadow: var(--home-shadow); }
.account-language-settings-card > * { min-width: 0; }
.account-language-intro { display: flex; height: 122px; flex-direction: column; justify-content: center; }
.account-language-intro > small { color: #98a0b2; font-size: 8px; font-weight: 800; letter-spacing: .11em; }
.account-language-intro h2 { margin: 6px 0 0; color: var(--home-ink); font-size: 21px; line-height: 1.25; }
.account-language-intro p { max-width: 430px; margin: 10px 0 0; color: #7d879b; font-size: 10px; line-height: 1.75; }
.account-language-options { display: grid; width: 100%; height: 122px; min-width: 0; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 11px; }
.account-language-option { position: relative; display: grid; width: 100%; height: 122px; min-width: 0; min-height: 122px; align-content: center; justify-items: center; gap: 9px; box-sizing: border-box; padding: 14px 10px; color: var(--home-ink); text-align: center; border: 1.5px solid #e4e9f3; border-radius: 19px; background: #f9faff; }
.account-language-radio { display: block; width: 18px; height: 18px; border: 2px solid #9299a8; border-radius: 50%; }
.account-language-option-copy { display: grid; gap: 4px; }
.account-language-option-copy strong { font-size: 13px; }
.account-language-option-copy small { color: #9099ab; font-size: 8px; line-height: 1.45; }
.account-language-option > b { color: #315df6; font-size: 8px; font-weight: 750; }
.account-language-option.is-selected { border-color: #315df6; background: #edf2ff; box-shadow: 0 8px 20px rgba(49,93,246,.1); }
.account-language-option.is-selected .account-language-radio { border: 5px solid #315df6; }
.account-language-option.is-disabled { cursor: not-allowed; opacity: .58; }
.account-language-device-note { grid-column: 1 / -1; height: 29px; box-sizing: border-box; margin: -7px 0 0; padding-top: 14px; color: #98a0b2; border-top: 1px solid #edf0f5; font-size: 9px; line-height: 14px; text-align: center; }

.login-identity-picker { margin: 0; padding: 0; border: 0; }
.login-identity-picker legend { margin-bottom: 9px; color: #5d6880; font-size: 11px; font-weight: 700; }
.login-identity-picker > div { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.login-identity-picker label { position: relative; display: flex; min-height: 68px; align-items: center; gap: 11px; padding: 14px; cursor: pointer; border: 1.5px solid #e4e9f3; border-radius: 17px; background: #f9faff; transition: border-color .18s ease,background .18s ease,box-shadow .18s ease; }
.login-identity-picker label:has(input:checked) { border-color: #315df6; background: #edf2ff; box-shadow: 0 8px 20px rgba(49,93,246,.1); }
.login-identity-picker input { width: 17px; height: 17px; flex: 0 0 auto; accent-color: #315df6; }
.login-identity-picker label > span { display: grid; gap: 4px; }
.login-identity-picker strong { color: var(--home-ink); font-size: 13px; }
.login-identity-picker small { color: #8a94a9; font-size: 9px; line-height: 1.45; }

body[data-active-screen="login"] .login-shell:has(.teacher-student-heading) { width: min(1280px,100%); }
body[data-active-screen="login"] .login-panel:has(.teacher-student-heading) { padding: 0; border: 0; background: transparent; box-shadow: none; }
.teacher-student-heading { margin-bottom: 18px; }
.teacher-student-action-card small,.teacher-student-list-card header small,.teacher-student-day-card > small { color: #98a0b2; font-size: 8px; font-weight: 800; letter-spacing: .11em; }
.account-identity-management-card { display: grid; grid-template-columns: minmax(260px,.8fr) minmax(520px,1.2fr); align-items: center; gap: 32px; padding: 28px; border-radius: 25px; background: white; box-shadow: var(--home-shadow); }
.account-identity-management-card > div:first-child small { color: #98a0b2; font-size: 8px; font-weight: 800; letter-spacing: .11em; }
.account-identity-management-card h2 { margin: 5px 0 0; color: var(--home-ink); font-size: 20px; }
.account-identity-management-card p { max-width: 480px; margin: 9px 0 0; color: #7d879b; font-size: 10px; line-height: 1.7; }
.account-identity-management-options { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 11px; }
.account-identity-management-options button { display: grid; min-height: 92px; place-content: center; justify-items: center; gap: 7px; padding: 14px; color: var(--home-ink); border: 1.5px solid #e4e9f3; border-radius: 18px; background: #f9faff; }
.account-identity-management-options button > span { display: block; width: 17px; height: 17px; border: 2px solid #9299a8; border-radius: 50%; }
.account-identity-management-options button strong { font-size: 13px; }
.account-identity-management-options button small { color: #315df6; font-size: 8px; font-weight: 750; }
.account-identity-management-options button.is-selected { border-color: #315df6; background: #edf2ff; box-shadow: 0 8px 20px rgba(49,93,246,.1); }
.account-identity-management-options button.is-selected > span { border: 5px solid #315df6; }
.teacher-student-action-card,.teacher-student-list-card { margin-top: 16px; padding: 23px; border-radius: 25px; background: white; box-shadow: var(--home-shadow); }
.teacher-student-action-card { display: grid; min-height: 120.5px; box-sizing: border-box; grid-template-columns: minmax(260px,1fr) minmax(330px,.9fr); align-items: center; gap: 26px; }
.teacher-student-action-card h2,.teacher-student-list-card h2,.teacher-student-calendar-card h2,.teacher-student-day-card h2 { margin: 4px 0 0; color: var(--home-ink); font-size: 20px; }
.teacher-student-action-card p { max-width: 560px; margin: 8px 0 0; color: #7d879b; font-size: 10px; line-height: 1.65; }
.teacher-student-code-entry { display: grid; grid-template-columns: 1fr auto; gap: 9px; }
.teacher-student-code-entry input { min-width: 0; height: 48px; padding: 0 15px; color: var(--home-ink); border: 1.5px solid #e2e7f1; border-radius: 14px; outline: 0; font-size: 17px; font-weight: 750; letter-spacing: .12em; }
.teacher-student-code-entry input:focus { border-color: #315df6; box-shadow: 0 0 0 3px rgba(49,93,246,.1); }
.teacher-student-code-entry button,.teacher-student-primary-button { min-height: 48px; padding: 0 20px; color: white; border: 0; border-radius: 14px; background: #315df6; font-size: 11px; font-weight: 750; box-shadow: 0 8px 18px rgba(49,93,246,.2); }
.student-binding-code-box { display: grid; justify-items: center; gap: 4px; padding: 15px 18px; border: 1px dashed #9badef; border-radius: 16px; background: #f1f4ff; }
.student-binding-code-box strong { color: #315df6; font-size: 24px; letter-spacing: .16em; }
.student-binding-code-box small { color: #7d89ad; letter-spacing: 0; }
.teacher-student-action-card:has(.student-binding-code-box) { grid-template-columns: minmax(280px,1fr) auto auto; }
.teacher-student-action-card.teacher-student-identity-required { grid-template-columns: minmax(280px,1fr) auto; }
.teacher-student-list-card > header { display: flex; height: 63px; box-sizing: border-box; align-items: center; justify-content: space-between; padding-bottom: 17px; border-bottom: 1px solid #edf0f5; }
.teacher-student-list-card > header > div { display: grid; gap: 3px; }
.teacher-student-list-card > header > span { padding: 7px 11px; color: #315df6; border-radius: 999px; background: #edf2ff; font-size: 9px; font-weight: 750; }
.teacher-student-person-list { display: grid; }
.teacher-student-person-card { display: grid; grid-template-columns: 48px minmax(0,1fr) auto; align-items: center; gap: 13px; min-height: 78px; padding: 12px 2px; border-bottom: 1px solid #edf0f5; }
.teacher-student-person-card:last-child { border-bottom: 0; }
.teacher-student-avatar { display: grid; width: 48px; height: 48px; flex: 0 0 auto; place-items: center; color: #315df6; border-radius: 16px; background: #edf2ff; font-size: 18px; font-weight: 800; }
.teacher-student-person-card > span:nth-child(2) { display: grid; gap: 4px; }
.teacher-student-person-card strong { color: var(--home-ink); font-size: 13px; }
.teacher-student-person-card small { color: #98a0b2; font-size: 9px; }
.teacher-student-person-actions { display: flex; gap: 8px; }
.teacher-student-person-actions button { min-height: 36px; padding: 0 13px; color: #315df6; border: 0; border-radius: 11px; background: #edf2ff; font-size: 9px; font-weight: 750; }
.teacher-student-person-actions button.is-danger { color: #d64b62; background: #fff0f3; }
.teacher-student-empty { display: grid; min-height: 138px; place-content: center; justify-items: center; gap: 7px; padding: 24px; text-align: center; }
.teacher-student-empty strong { color: var(--home-ink); font-size: 14px; }
.teacher-student-empty p { max-width: 440px; margin: 0; color: #98a0b2; font-size: 10px; line-height: 1.6; }

.teacher-student-detail-hero { display: grid; grid-template-columns: 58px minmax(220px,1fr) repeat(3,110px); align-items: center; gap: 16px; padding: 21px 24px; border-radius: 24px; background: white; box-shadow: var(--home-shadow); }
.teacher-student-detail-hero > .teacher-student-avatar { width: 58px; height: 58px; border-radius: 18px; font-size: 21px; }
.teacher-student-detail-hero > div { display: grid; gap: 3px; }
.teacher-student-detail-hero > div small,.teacher-student-detail-hero > div p { color: #98a0b2; font-size: 9px; }
.teacher-student-detail-hero > div strong { color: var(--home-ink); font-size: 18px; }
.teacher-student-detail-hero > div p { margin: 3px 0 0; }
.teacher-student-detail-hero > span:not(.teacher-student-avatar) { display: grid; justify-items: center; gap: 3px; padding: 10px; border-left: 1px solid #edf0f5; }
.teacher-student-detail-hero > span:not(.teacher-student-avatar) strong { color: var(--home-ink); font-size: 18px; }
.teacher-student-detail-hero > span:not(.teacher-student-avatar) small { color: #98a0b2; font-size: 8px; }
.teacher-student-detail-tabs { display: flex; gap: 8px; margin: 16px 0; padding: 6px; border-radius: 16px; background: rgba(255,255,255,.8); box-shadow: var(--home-shadow); }
.teacher-student-detail-tabs button { min-height: 42px; flex: 1; color: #748099; border: 0; border-radius: 12px; background: transparent; font-size: 11px; font-weight: 750; }
.teacher-student-detail-tabs button.is-active { color: white; background: #315df6; box-shadow: 0 7px 16px rgba(49,93,246,.2); }
.teacher-student-detail-tabs button span { margin-left: 4px; padding: 2px 6px; border-radius: 999px; background: rgba(255,255,255,.2); font-size: 8px; }
.teacher-student-calendar-layout { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(300px,.75fr); gap: 16px; align-items: start; }
.teacher-student-calendar-card,.teacher-student-day-card { padding: 23px; border-radius: 25px; background: white; box-shadow: var(--home-shadow); }
.teacher-student-calendar-card > header { display: grid; grid-template-columns: 38px 1fr 38px; align-items: center; gap: 10px; }
.teacher-student-calendar-card > header h2 { text-align: center; }
.teacher-student-calendar-card > header button { width: 38px; height: 38px; color: #315df6; border: 0; border-radius: 12px; background: #edf2ff; font-size: 22px; }
.teacher-student-calendar-weekdays,.teacher-student-calendar-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 7px; }
.teacher-student-calendar-weekdays { margin: 22px 0 8px; }
.teacher-student-calendar-weekdays span { color: #98a0b2; font-size: 9px; text-align: center; }
.teacher-student-calendar-grid > button,.teacher-student-calendar-spacer { aspect-ratio: 1.12; }
.teacher-student-calendar-grid > button { position: relative; display: grid; place-items: center; color: #768198; border: 0; border-radius: 13px; background: #f7f8fb; font-size: 10px; font-weight: 750; }
.teacher-student-calendar-grid > button.has-activity { color: #148c6e; background: #e5f8ef; }
.teacher-student-calendar-grid > button.is-selected { color: white; background: #315df6; box-shadow: 0 7px 15px rgba(49,93,246,.2); }
.teacher-student-calendar-grid > button i { position: absolute; bottom: 7px; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.teacher-student-day-card > h2 { margin-bottom: 15px; }
.teacher-student-selected-summary { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; margin-bottom: 11px; }
.teacher-student-selected-summary span { display: grid; min-height: 68px; place-content: center; justify-items: center; gap: 3px; border-radius: 15px; background: #f5f7ff; }
.teacher-student-selected-summary strong { color: var(--home-ink); font-size: 16px; }
.teacher-student-selected-summary small { color: #98a0b2; font-size: 8px; }
.teacher-student-day-activities { display: grid; gap: 8px; }
.teacher-student-day-activities article { padding: 13px; border-radius: 15px; background: #f5f7ff; }
.teacher-student-day-activities header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.teacher-student-day-activities header strong { color: var(--home-ink); font-size: 10px; }
.teacher-student-day-activities header span { color: #315df6; font-size: 8px; }
.teacher-student-day-activities p { margin: 7px 0 0; color: #6f7b93; font-size: 9px; line-height: 1.55; }
.teacher-student-wrong-list { display: grid; gap: 11px; }
.teacher-student-wrong-card { padding: 19px 21px; border-radius: 21px; background: white; box-shadow: var(--home-shadow); }
.teacher-student-wrong-card > header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 13px; border-bottom: 1px solid #edf0f5; }
.teacher-student-wrong-card > header > span { display: grid; gap: 4px; }
.teacher-student-wrong-card > header small { color: #98a0b2; font-size: 8px; }
.teacher-student-wrong-card > header strong { color: var(--home-ink); font-size: 13px; }
.teacher-student-wrong-card > header b { padding: 7px 10px; color: #d64b62; border-radius: 999px; background: #fff0f3; font-size: 9px; }
.teacher-student-wrong-prompt { margin: 13px 0 0; padding: 12px 14px; color: #46536d; border-radius: 13px; background: #f7f9fd; font-size: 10px; line-height: 1.65; }
.teacher-student-wrong-card > div { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; padding-top: 13px; }
.teacher-student-wrong-card > div span { display: grid; gap: 5px; }
.teacher-student-wrong-card > div small { color: #98a0b2; font-size: 8px; }
.teacher-student-wrong-card > div strong { overflow-wrap: anywhere; color: #5e6a82; font-size: 10px; font-weight: 650; }

.wrong-review-hub-stage {
  min-height: 100vh;
  padding: 28px 24px 60px;
  background:
    radial-gradient(circle at 88% 3%, rgba(114, 181, 255, .18), transparent 25rem),
    radial-gradient(circle at 8% 34%, rgba(139, 117, 255, .09), transparent 22rem),
    #f5f7fc;
}

.wrong-review-hub-shell {
  display: grid;
  width: min(1280px, 100%);
  margin: 0 auto;
  gap: 16px;
}

.wrong-review-hub-titlebar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 2px;
}

.wrong-review-hub-titlebar > button {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  place-items: center;
  padding: 1px 6px;
  color: var(--home-blue);
  border: 0;
  border-radius: 15px;
  background: white;
  box-shadow: 0 9px 26px rgba(45,67,128,.07);
  font-size: 27px;
}

.wrong-review-hub-summary small,
.wrong-review-hub-categories header small {
  display: block;
  margin-bottom: 5px;
  color: #98a2b7;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.wrong-review-hub-titlebar small {
  display: inline;
  margin-bottom: 0;
  color: #98a0b2;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
}

.wrong-review-hub-titlebar h1 {
  margin: 2px 0 0;
  color: var(--home-ink);
  font-size: 28px;
  line-height: normal;
  letter-spacing: normal;
}

.wrong-review-hub-summary {
  position: relative;
  display: block;
  height: 198px;
  min-height: 190px;
  overflow: hidden;
  padding: 30px 220px 28px 31px;
  color: white;
  border: 1px solid rgba(255,255,255,.38);
  border-radius: 28px;
  background:
    radial-gradient(circle at 82% 18%, rgba(255,255,255,.22), transparent 9rem),
    linear-gradient(135deg, #315df6 0%, #477ff6 64%, #64a8f4 100%);
  box-shadow: 0 18px 42px rgba(49,93,246,.2);
}

.wrong-review-hub-summary::after {
  content: "";
  position: absolute;
  right: -84px;
  bottom: -126px;
  width: 310px;
  height: 310px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
}

.wrong-review-hub-summary-copy { position: relative; z-index: 2; max-width: 430px; }

.wrong-review-hub-summary-art {
  position: absolute;
  z-index: 1;
  right: 32px;
  bottom: -16px;
  width: 180px;
  height: 180px;
  pointer-events: none;
}

.wrong-review-hub-summary-art img {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 170px;
  height: 170px;
  object-fit: contain;
  filter: drop-shadow(0 14px 18px rgba(18, 48, 139, 0.25));
}

.wrong-review-hub-note,
.wrong-review-hub-spark {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  color: #315df6;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  box-shadow: 0 8px 18px rgba(33,64,145,.16);
  font-weight: 850;
}

.wrong-review-hub-note.note-one { top: 13px; left: 0; width: 34px; height: 34px; color: #7b5ce2; font-size: 14px; }
.wrong-review-hub-note.note-two { top: -3px; right: 5px; width: 40px; height: 40px; font-size: 15px; }
.wrong-review-hub-spark { top: 48px; right: 1px; width: 27px; height: 27px; color: #19a987; font-size: 12px; }

.wrong-review-hub-summary small,
.wrong-review-hub-summary p {
  color: rgba(255, 255, 255, 0.72);
}

.wrong-review-hub-summary h2 {
  margin: 8px 0 0;
  font-size: 29px;
  line-height: 1.2;
  letter-spacing: -.035em;
}

.wrong-review-hub-summary p {
  max-width: 430px;
  margin: 12px 0 0;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.65;
}

.wrong-review-hub-summary > button {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 33px;
  width: fit-content;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 0 12px;
  color: var(--home-blue);
  border: 0;
  border-radius: 999px;
  background: white;
  box-shadow: 0 9px 22px rgba(24, 50, 143, 0.12);
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}

.wrong-review-hub-summary > button:disabled {
  color: rgba(75, 91, 129, 0.55);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: none;
  cursor: default;
}

.wrong-review-hub-summary > button span {
  font-size: 18px;
}

.wrong-review-hub-categories {
  padding: 27px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 29px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--home-shadow);
}

.wrong-review-hub-categories > header {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--home-line);
}

.wrong-review-hub-categories > header h2 {
  margin: 0;
  color: var(--home-ink);
  font-size: 22px;
  letter-spacing: -0.03em;
}

body[data-locale="en-GB"] .wrong-review-hub-categories > header { padding-bottom: 23px; }

.wrong-review-hub-category-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 28px;
}

.wrong-review-hub-category-list > button {
  display: flex;
  min-width: 0;
  min-height: 78px;
  align-items: center;
  gap: 14px;
  padding: 13px 2px;
  text-align: left;
  border: 0;
  border-bottom: 1px solid var(--home-line);
  background: transparent;
}

.wrong-review-hub-category-count {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 800;
}

.wrong-review-hub-tone-blue { color: #315df6; background: #eaf0ff; }
.wrong-review-hub-tone-purple { color: #8063c9; background: #eee6ff; }
.wrong-review-hub-tone-mint { color: #159978; background: #e2f8ed; }
.wrong-review-hub-tone-sky { color: #2588bd; background: #e7f6ff; }

.wrong-review-hub-category-copy {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.wrong-review-hub-category-copy strong {
  overflow: hidden;
  color: var(--home-ink);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wrong-review-hub-category-copy small {
  overflow: hidden;
  color: #99a2b4;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wrong-review-hub-category-list > button > b {
  margin-left: auto;
  color: #9ca5b7;
  font-size: 25px;
  font-weight: 400;
}

.wrong-review-hub-category-list > button:disabled {
  cursor: default;
}

.wrong-review-hub-category-list > button:disabled .wrong-review-hub-category-copy strong,
.wrong-review-hub-category-list > button:disabled > b {
  color: #aeb5c3;
}

.wrong-review-hub-category-list > button:disabled .wrong-review-hub-category-count {
  opacity: 0.58;
}

@media (max-width: 960px) {
  .home-layout { grid-template-columns: 1fr; }
  .home-side { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .home-public-company-layout { grid-template-columns: 1fr; gap: 20px; }
  .account-language-settings-card { height: auto; grid-template-columns: 1fr; }
  .account-language-intro { height: auto; min-height: 122px; }
  .account-language-device-note { height: 43px; min-height: 43px; }
  .account-identity-management-card { height: 245px; box-sizing: border-box; grid-template-columns: minmax(0,1fr); grid-template-rows: 77px 92px; gap: 20px; }
  .account-identity-management-card p { max-width: none; }
  .learning-calendar-layout { grid-template-columns: 1fr; }
  body[data-active-screen="single-practice"] .single-practice-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 640px) {
  body[data-active-screen="start"], body[data-active-screen="single-practice"], body[data-active-screen="wrong-review-hub"] { padding-bottom: 92px; }
  .start-stage { padding: 17px 15px 28px; }
  .start-shell.home-shell { gap: 13px; }
  .home-main,.home-side { gap: 14px; }
  .home-welcome-card { height: auto; min-height: 178px; padding: 25px 21px; border-radius: 26px; }
  .home-welcome-copy { max-width: 64%; }
  .home-welcome-copy h1 { font-size: 26px; line-height: 1.18; }
  .home-welcome-copy h1 span { display: block; }
  .home-welcome-copy h1 span + span { margin-left: 0; }
  .home-welcome-copy p { margin-top: 9px; font-size: 12px; line-height: 1.5; }
  .home-welcome-art { position: absolute; right: -5px; bottom: 0; width: 142px; height: 127px; }
  .home-welcome-art img { right: -3px; bottom: -23px; width: 132px; height: 132px; }
  .home-note-one { top: 2px; right: 5px; left: auto; width: 35px; height: 35px; color: var(--home-blue); }
  .home-note-two { top: 20px; right: auto; left: 0; width: 29px; height: 29px; color: #8668d5; }
  .home-note-three { top: -14px; right: auto; left: 54px; width: 26px; height: 26px; font-size: 10px; }
  .start-dashboard.home-stats { gap: 7px; }
  .home-stat { min-height: 70px; border-radius: 18px; }
  .home-stat strong { font-size: 21px; }
  .home-stat span { font-size: 9px; }
  .home-mobile-teacher-class-card:not([hidden]) {
    display: flex;
    min-height: 82px;
    align-items: center;
    gap: 13px;
    padding: 14px 17px;
    color: var(--home-ink);
    text-align: left;
    border: 1px solid rgba(255,255,255,.88);
    border-radius: 22px;
    background:
      radial-gradient(circle at 90% 10%, rgba(111,180,255,.2), transparent 9rem),
      linear-gradient(135deg, rgba(255,255,255,.98), rgba(241,246,255,.96));
    box-shadow: 0 9px 26px rgba(45,67,128,.08);
  }
  .home-mobile-teacher-class-icon {
    display: grid;
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    place-items: center;
    color: #315df6;
    border-radius: 16px;
    background: #e9efff;
  }
  .home-mobile-teacher-class-icon svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
  }
  .home-mobile-teacher-class-copy {
    display: grid;
    min-width: 0;
    gap: 3px;
  }
  .home-mobile-teacher-class-copy small {
    color: #7890c7;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .1em;
  }
  .home-mobile-teacher-class-copy strong {
    font-size: 16px;
  }
  .home-mobile-teacher-class-copy > span {
    color: var(--home-muted);
    font-size: 10px;
  }
  .home-mobile-teacher-class-card > b {
    margin-left: auto;
    color: #315df6;
    font-size: 25px;
    font-weight: 500;
  }
  .home-shell .home-learning { display: none; }
  .home-section-heading { margin: 4px 2px 11px; font-size: 19px; }
  .home-learning-grid { grid-template-columns: 1fr; gap: 12px; }
  .home-learning-grid .start-card-group { grid-column: auto; }
  .home-learning-grid .start-card.home-feature-card { min-height: 132px; gap: 14px; padding: 19px 17px; border-radius: 23px; }
  .home-learning-grid .home-feature-primary { min-height: 165px; }
  .home-feature-icon { width: 49px; height: 49px; border-radius: 16px; }
  .home-feature-icon svg { width: 23px; }
  .home-feature-copy strong { font-size: 19px; }
  .home-feature-copy > span { font-size: 11px; line-height: 1.55; }
  .home-feature-lock { transform: scale(.9); }
  .home-mobile-materials { display: none !important; }
  .home-mobile-redundant-practice { display: none !important; }
  .home-desktop-wrong { display: none !important; }

  .wrong-review-hub-stage { padding: 17px 15px 108px; }
  .wrong-review-hub-shell { gap: 10px; }
  .wrong-review-hub-titlebar { gap: 14px; margin-bottom: 2px; padding: 0; }
  .wrong-review-hub-titlebar > button { width: 46px; height: 46px; padding: 1px 6px; border-radius: 15px; font-size: 27px; }
  .wrong-review-hub-titlebar h1 { margin-top: 2px; font-size: 23px; }
  .wrong-review-hub-titlebar small { font-size: 9px; }
  .wrong-review-hub-summary { height: 185px; min-height: 182px; padding: 24px 145px 22px 21px; border-radius: 25px; }
  .wrong-review-hub-summary::after { right: -84px; bottom: -126px; }
  .wrong-review-hub-summary-copy { max-width: 205px; }
  .wrong-review-hub-summary h2 { margin-top: 8px; font-size: 25px; }
  .wrong-review-hub-summary p { max-width: 205px; margin-top: 10px; font-size: 10px; }
  .wrong-review-hub-summary-art { top: auto; right: 6px; bottom: -15px; width: 148px; height: 155px; }
  .wrong-review-hub-summary-art img { width: 142px; height: 142px; }
  .wrong-review-hub-note.note-one { top: 18px; left: 1px; width: 29px; height: 29px; }
  .wrong-review-hub-note.note-two { top: 3px; right: 7px; width: 33px; height: 33px; }
  .wrong-review-hub-spark { top: 43px; right: 2px; width: 24px; height: 24px; }
  .wrong-review-hub-summary > button { min-height: 29px; margin-top: 13px; padding: 0 10px; border-radius: 999px; font-size: 8px; }
  .wrong-review-hub-categories { padding: 20px; border-radius: 24px; }
  .wrong-review-hub-categories > header { padding-bottom: 16px; }
  body[data-locale="en-GB"] .wrong-review-hub-categories > header { padding-bottom: 21px; }
  .wrong-review-hub-categories > header h2 { font-size: 21px; }
  .wrong-review-hub-category-list { grid-template-columns: 1fr; }
  .wrong-review-hub-category-list > button { min-height: 76px; }
  .wrong-review-hub-category-count { width: 45px; height: 45px; }
  .wrong-review-hub-category-copy strong { font-size: 13px; }
  .home-learning-grid .start-exam-options { grid-template-columns: 1fr; }
  .home-side { grid-template-columns: 1fr; }
  .home-side-menu { display: none; }
  .home-side-card { padding: 21px; border-radius: 24px; }
  .home-shell .start-footer {
    flex-direction: column;
    gap: 2px;
    padding: 3px 0 78px;
  }
  .home-public-company {
    gap: 17px;
    padding: 20px 18px;
    border-radius: 24px;
  }
  .home-public-membership { align-items: flex-start; gap: 13px; padding: 20px 18px; border-radius: 22px; }
  .home-public-membership-icon { width: 48px; height: 48px; border-radius: 15px; font-size: 11px; }
  .home-public-membership-copy { min-width: 0; }
  .home-public-membership-copy strong { font-size: 15px; }
  .home-public-membership-copy span { font-size: 10px; line-height: 1.6; }
  .home-public-membership > b { display: none; }
  .home-public-company-heading {
    align-items: center;
    padding-bottom: 14px;
  }
  .home-public-company-heading h2 { font-size: 20px; }
  .home-public-company-heading > span { font-size: 9px; }
  .home-public-company-layout { gap: 18px; }
  .home-public-company-intro h3 { font-size: 16px; line-height: 1.5; }
  .home-public-company-intro p { font-size: 11px; line-height: 1.75; }
  .home-public-company-details > div {
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 9px;
    padding: 10px;
  }
  .home-public-company-details dt { font-size: 9px; }
  .home-public-company-details dd { font-size: 10px; }
  .home-mobile-nav { position: fixed; z-index: 40; right: 12px; bottom: max(10px, env(safe-area-inset-bottom)); left: 12px; display: grid; grid-template-columns: repeat(5,1fr); min-height: 68px; padding: 7px 5px; border: 1px solid #fff; border-radius: 23px; background: #fff; box-shadow: 0 32px 0 24px #f7f8fc, 0 14px 42px rgba(28,44,90,.17); }
  .home-mobile-nav button { display: grid; place-content: center; justify-items: center; gap: 3px; color: #98a0b2; border: 0; background: transparent; }
  .home-mobile-nav button > span { font-size: 20px; line-height: 1; }
  .home-mobile-nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
  .home-mobile-nav small { font-size: 9px; }
  .home-mobile-nav button.is-active { color: #315df6; }
  .home-mobile-nav-main > span { display: grid; width: 49px; height: 49px; margin-top: -31px; place-items: center; color: white; border: 6px solid #f7f8fc; border-radius: 50%; background: #315df6; box-shadow: 0 9px 20px rgba(49,93,246,.28); font-size: 29px !important; }
  .home-mobile-nav-main > span svg { width: 22px; height: 22px; }
  .learning-calendar-stage,.learning-materials-stage { padding: 17px 15px 96px; }
  .learning-calendar-titlebar { min-height: 52px; }
  .learning-calendar-stage .learning-calendar-titlebar { margin-bottom: 12px; }
  .learning-materials-titlebar { margin-bottom: 12px; }
  .home-exam-menu-stage { padding: 17px 15px 108px; }
  .home-exam-menu-shell { gap: 10px; }
  .home-exam-menu-stage .entry-hub-titlebar { height: 52px; margin-bottom: 2px; }
  .home-exam-menu-grid .start-card.home-feature-primary { height: 165px; overflow: hidden; }
  .home-exam-menu-grid > .start-card.home-feature-preview { height: 132px; overflow: hidden; }
  body[data-locale="en-GB"] .home-exam-menu-grid .home-feature-copy > span {
    font-size: 10px;
    line-height: 1.45;
  }
  body[data-locale="en-GB"] .home-exam-guide {
    padding-top: 19px;
    padding-bottom: 12px;
  }
  body[data-locale="en-GB"] .home-exam-guide-copy > small {
    font-size: 8px;
    line-height: 1.15;
  }
  body[data-locale="en-GB"] .home-exam-guide h2 {
    margin-top: 5px;
    font-size: 23px;
    line-height: 1.08;
  }
  body[data-locale="en-GB"] .home-exam-guide p {
    margin-top: 7px;
    font-size: 9px;
    line-height: 1.4;
  }
  body[data-locale="en-GB"] .home-exam-guide-tags {
    margin-top: 7px;
  }
  body[data-locale="en-GB"] .home-exam-guide-tags span {
    padding: 4px 7px;
    font-size: 7px;
  }
  .home-exam-guide { height: 185px; min-height: 182px; margin-bottom: 0; padding: 24px 145px 22px 21px; border-radius: 25px; }
  .home-exam-guide h2 { font-size: 25px; }
  .home-exam-guide p { max-width: 205px; margin-top: 10px; font-size: 10px; }
  .home-exam-guide-tags { flex-wrap: wrap; gap: 6px; margin-top: 13px; }
  .home-exam-guide-tags span { padding: 6px 8px; font-size: 8px; }
  .home-exam-guide-art { right: 6px; bottom: -15px; width: 148px; height: 155px; }
  .home-exam-guide-art img { width: 142px; height: 142px; }
  .home-exam-guide-note.note-one { top: 18px; left: 1px; width: 29px; height: 29px; }
  .home-exam-guide-note.note-two { top: 3px; right: 7px; width: 33px; height: 33px; }
  .home-exam-guide-spark { top: 43px; right: 2px; width: 24px; height: 24px; }
  body[data-locale="en-GB"] .home-exam-guide {
    padding-top: 19px;
    padding-bottom: 12px;
  }
  body[data-locale="en-GB"] .home-exam-guide-copy > small {
    font-size: 8px;
    line-height: 1.15;
  }
  body[data-locale="en-GB"] .home-exam-guide h2 {
    margin-top: 5px;
    font-size: 23px;
    line-height: 1.08;
  }
  body[data-locale="en-GB"] .home-exam-guide p {
    margin-top: 7px;
    font-size: 9px;
    line-height: 1.4;
  }
  body[data-locale="en-GB"] .home-exam-guide-tags {
    margin-top: 7px;
  }
  body[data-locale="en-GB"] .home-exam-guide-tags span {
    padding: 4px 7px;
    font-size: 7px;
  }
  body[data-active-screen="exam-preview"] .exam-preview-summary h2 {
    font-size: 24px;
    white-space: nowrap;
  }
  .home-exam-menu-grid > .home-feature-preview { grid-column: auto; }
  .single-practice-intro { margin: -3px 2px 0 57px; }
  .learning-calendar-titlebar h1 { font-size: 23px; }
  .learning-calendar-summary { gap: 8px; }
  .learning-calendar-summary article { min-height: 86px; padding: 8px 3px; border-radius: 19px; }
  .learning-calendar-summary strong { font-size: 18px; }
  .learning-calendar-summary small { font-size: 8px; text-align: center; }
  .learning-calendar-card,.learning-day-detail { padding: 20px 17px; border-radius: 23px; }
  .learning-calendar-weekdays,.learning-calendar-grid { gap: 5px; }
  .learning-calendar-day { border-radius: 11px; font-size: 10px; }
  .learning-materials-hero {
    height: 185px;
    min-height: 182px;
    padding: 24px 145px 22px 21px;
    border: 1px solid rgba(255,255,255,.38);
    border-radius: 25px;
    background:
      radial-gradient(circle at 82% 18%, rgba(255,255,255,.22), transparent 9rem),
      linear-gradient(135deg, #315df6 0%, #477ff6 64%, #64a8f4 100%);
    box-shadow: 0 18px 42px rgba(49,93,246,.2);
  }
  .learning-materials-hero::after { right: -84px; bottom: -126px; }
  .learning-materials-hero h2 { margin: 8px 0 0; font-size: 25px; line-height: 1.2; letter-spacing: -.035em; }
  .learning-materials-all-grades-range { display: block; font-size: .82em; line-height: 1.15; }
  .learning-materials-hero p { max-width: 205px; margin-top: 8px; font-size: 10px; font-weight: 650; line-height: 1.65; }
  body[data-locale="en-GB"] .learning-materials-hero p { margin-top: 5px; }
  .learning-materials-hero .learning-materials-hero-art { right: 6px; bottom: -15px; width: 148px; height: 155px; }
  .learning-materials-hero-art img { width: 142px; height: 142px; }
  .learning-materials-hero-art .home-exam-guide-note.note-one { top: 18px; left: 1px; width: 29px; height: 29px; }
  .learning-materials-hero-art .home-exam-guide-note.note-two { top: 3px; right: 7px; width: 33px; height: 33px; }
  .learning-materials-hero-art .home-exam-guide-spark { top: 43px; right: 2px; width: 24px; height: 24px; }
  .learning-materials-grid,.learning-materials-term-grid,.learning-materials-symbol-grid,.learning-materials-symbol-grid.is-comparison-grid { grid-template-columns: 1fr; }
  .learning-materials-grid { gap: 10px; }
  .learning-materials-grade-grid,.learning-materials-grade-grid.is-with-search { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
  .learning-materials-category-card { height: 172px; min-height: 172px; padding: 18px; border-radius: 21px; }
  body[data-locale="en-GB"] .learning-materials-category-card { min-height: 172px; }
  .learning-materials-category-card strong { font-size: 16px; }
  .learning-materials-grade-card,.learning-materials-search-card { height: 118px; min-height: 118px; padding: 16px; }
  .learning-materials-search-panel { gap: 8px; padding: 12px; border-radius: 19px; }
  .learning-materials-search-field { height: 52px; grid-template-columns: 29px minmax(0,1fr) 40px; gap: 7px; padding-left: 12px; border-radius: 15px; }
  .learning-materials-search-field input { font-size: 16px; }
  .learning-materials-search-status { font-size: 9px; }
  .learning-materials-term-card { padding: 17px; border-radius: 18px; }
  .learning-materials-symbol-card { min-height: 148px; grid-template-columns: minmax(104px,36%) 1fr; gap: 12px; padding: 14px; }
  .learning-materials-symbol-card.is-comparison { grid-template-columns: minmax(0,1fr); grid-template-rows: auto 388px; gap: 12px; padding: 14px; }
  .learning-materials-symbol-card.is-comparison.is-three-examples { grid-template-rows: auto auto; }
  .learning-materials-symbol-card.is-comparison.is-four-examples { grid-template-rows: auto auto; }
  .learning-materials-symbol-card.is-single-sign { min-height: 250px; grid-template-columns: minmax(0,1fr); grid-template-rows: auto 194px; gap: 10px; padding: 14px; }
  .learning-materials-symbol-examples { grid-template-columns: minmax(0,1fr); grid-template-rows: repeat(2,minmax(0,1fr)); gap: 12px; }
  .learning-materials-symbol-examples.is-three { grid-template-columns: minmax(0,1fr); grid-template-rows: repeat(3,184px); }
  .learning-materials-symbol-examples.is-four { grid-template-columns: minmax(0,1fr); grid-template-rows: repeat(4,184px); }
  .learning-materials-symbol-example { gap: 6px; }
  .learning-materials-symbol-example > small { padding: 4px 8px; font-size: 8px; }
  .learning-materials-symbol-mark { min-height: 118px; }
  .learning-materials-symbol-mark svg { max-height: 118px; }
  .learning-materials-symbol-example .learning-materials-symbol-mark { min-height: 160px; }
  .learning-materials-symbol-example .learning-materials-symbol-mark svg { max-height: 154px; }
  .learning-materials-symbol-examples.is-single .learning-materials-symbol-mark { min-height: 160px; }
  .learning-materials-symbol-examples.is-single .learning-materials-symbol-mark svg { width: min(100%,320px) !important; max-height: 150px; }
  .learning-materials-symbol-example.is-standalone .learning-materials-symbol-mark svg { width: 168px !important; height: 140px !important; max-height: 140px; }
  .learning-materials-symbol-example.is-wide-symbol .learning-materials-symbol-mark svg { width: min(90%,300px) !important; height: auto !important; max-height: 100px; }
  .learning-materials-symbol-copy { gap: 7px; }
  .learning-materials-symbol-card.is-comparison .learning-materials-symbol-copy { grid-template-columns: minmax(0,1fr); align-content: center; gap: 7px; }
  .learning-materials-symbol-copy strong { font-size: 14px; }
  .learning-materials-symbol-heading span { font-size: 9px; }
  .learning-materials-symbol-copy p { font-size: 9px; line-height: 1.58; }
  .login-shell:has(.account-ui-heading) .login-header { display: none; }
  .account-ui-heading { height: 52px; margin: 0 0 12px; }
  .account-ui-heading h1 { font-size: 23px; }
  .account-ui-hero { min-height: 112px; gap: 13px; padding: 17px; border-radius: 24px; }
  .account-ui-mascot { width: 66px; height: 66px; border-radius: 21px; }.account-ui-mascot img { width: 74px; height: 74px; }
  .account-ui-identity strong { font-size: 18px; }.account-ui-identity small,.account-ui-identity span { font-size: 9px; }
  .account-ui-vip { padding: 8px 9px; border-radius: 13px; }.account-ui-vip strong { font-size: 9px; }
  .account-ui-grid { grid-template-columns: 1fr; gap: 12px; margin-top: 12px; }
  .account-ui-card { padding: 19px; border-radius: 23px; }
  .about-us-hero { min-height: 178px; padding: 24px 22px; border-radius: 23px; }
  .about-us-hero > div { max-width: 66%; }
  .about-us-hero h2 { margin-top: 6px; font-size: 23px; }
  .about-us-hero p { margin-top: 9px; font-size: 10px; line-height: 1.6; }
  .about-us-hero img { right: -3px; bottom: -5px; width: 142px; height: 142px; }
  .about-us-grid { grid-template-columns: 1fr; gap: 12px; margin-top: 12px; }
  .about-us-card { padding: 20px 18px; border-radius: 23px; }
  .about-us-intro-card p { margin-top: 13px; font-size: 10px; line-height: 1.9; }
  .about-us-details { margin-top: 13px; }
  .about-us-details > div { grid-template-columns: 1fr; gap: 5px; padding: 11px 0; }
  .about-us-details dt { font-size: 9px; }
  .about-us-details dd { font-size: 10px; }
  .language-settings-heading { height: 52px; min-height: 52px; }
  .account-language-settings-card { grid-template-columns: 1fr; gap: 20px; padding: 21px 18px; border-radius: 23px; }
  .account-language-intro { min-height: 128px; }
  .account-language-options { height: auto; grid-template-columns: 1fr; gap: 8px; }
  .account-language-option { height: 72px; min-height: 72px; grid-template-columns: auto minmax(0,1fr) auto; align-content: center; justify-items: start; gap: 12px; padding: 12px 14px; text-align: left; border-radius: 16px; }
  .account-language-option-copy { min-width: 0; }
  .account-language-option > b { justify-self: end; }
  .account-language-device-note { margin-top: -4px; line-height: 1.55; }
  .account-identity-management-card {
    height: 238px;
    box-sizing: border-box;
    grid-template-columns: 1fr;
    grid-template-rows: 94px 82px;
    gap: 20px;
    padding: 21px 18px;
    border-radius: 23px;
  }
  .account-identity-management-options { gap: 7px; }
  .account-identity-management-options button { min-height: 82px; gap: 6px; padding: 10px 5px; border-radius: 16px; }
  .account-identity-management-options button strong { font-size: 11px; }
  .teacher-student-heading { margin-bottom: 12px; }
  .teacher-student-action-card,
  .teacher-student-action-card:has(.student-binding-code-box),
  .teacher-student-action-card.teacher-student-identity-required {
    height: 179.5px;
    box-sizing: border-box;
    grid-template-columns: minmax(0,1fr);
    gap: 17px;
    margin-top: 12px;
    padding: 20px 18px;
    border-radius: 23px;
  }
  .teacher-student-action-card .teacher-student-primary-button { width: 100%; }
  .teacher-student-code-entry { grid-template-columns: minmax(0,1fr); }
  .teacher-student-action-card:has(.teacher-student-code-entry) {
    height: auto;
    min-height: 239.5px;
  }
  .teacher-student-list-card { height: 241px; box-sizing: border-box; margin-top: 12px; padding: 20px 18px; border-radius: 23px; }
  .teacher-student-person-card { grid-template-columns: 44px minmax(0,1fr); gap: 11px; padding: 14px 0; }
  .teacher-student-avatar { width: 44px; height: 44px; border-radius: 14px; font-size: 16px; }
  .teacher-student-person-actions { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .teacher-student-person-actions button { min-height: 40px; }
  .teacher-student-detail-hero {
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 12px 8px;
    padding: 18px;
    border-radius: 22px;
  }
  .teacher-student-detail-hero > .teacher-student-avatar { grid-column: 1; width: 52px; height: 52px; justify-self: start; }
  .teacher-student-detail-hero > div { grid-column: 2 / -1; }
  .teacher-student-detail-hero > span:not(.teacher-student-avatar) { padding: 10px 3px 2px; border-top: 1px solid #edf0f5; border-left: 0; }
  .teacher-student-detail-hero > span:not(.teacher-student-avatar) strong { font-size: 16px; }
  .teacher-student-calendar-layout { grid-template-columns: minmax(0,1fr); gap: 12px; }
  .teacher-student-calendar-card,.teacher-student-day-card { padding: 18px 15px; border-radius: 22px; }
  .teacher-student-calendar-weekdays,.teacher-student-calendar-grid { gap: 4px; }
  .teacher-student-calendar-weekdays { margin-top: 18px; }
  .teacher-student-calendar-grid > button { border-radius: 10px; font-size: 9px; }
  .teacher-student-calendar-grid > button i { bottom: 5px; }
  .teacher-student-wrong-card { padding: 17px; border-radius: 20px; }
  .teacher-student-wrong-card > header { align-items: flex-start; }
  .teacher-student-wrong-card > div { grid-template-columns: 1fr; gap: 11px; }
  body[data-active-screen="login"] .login-stage,
  body[data-active-screen="recharge"] .login-stage,
  body[data-active-screen="feedback"] .login-stage { padding: 20px 15px 40px; }
  body[data-active-screen="recharge"] .login-stage,
  body[data-active-screen="feedback"] .login-stage { padding-top: 17px; }
  body[data-active-screen="login"] .login-stage { padding-bottom: 108px; }
  body[data-active-screen="login"] .login-stage:has(.account-ui-heading) { padding: 17px 15px 108px; }
  body[data-active-screen="login"] .login-panel,
  body[data-active-screen="recharge"] .login-panel,
  body[data-active-screen="feedback"] .login-panel { padding: 25px 20px; border-radius: 27px; }
  body[data-active-screen="recharge"] .recharge-summary,
  body[data-active-screen="recharge"] .recharge-benefit-list,
  body[data-active-screen="recharge"] .recharge-actions { grid-template-columns: 1fr; }
  body[data-active-screen="recharge"] .recharge-benefit-item { min-height: 0; }
  body[data-active-screen="recharge"] .membership-benefit-summary { align-items: flex-start; gap: 10px; padding: 15px 16px; }
  body[data-active-screen="recharge"] .membership-benefit-summary > div { gap: 8px 14px; }
  body[data-active-screen="login"] .login-field input,
  body[data-active-screen="feedback"] .login-field textarea,
  .account-password-panel .login-field input { font-size: 16px !important; }
  .account-feature-titlebar { height: 46px; min-height: 46px; }
  body[data-active-screen="recharge"] .account-feature-shell,
  body[data-active-screen="feedback"] .account-feature-shell { gap: 12px; }
  body[data-active-screen="recharge"] .account-feature-titlebar,
  body[data-active-screen="feedback"] .account-feature-titlebar { height: 52px; min-height: 52px; }
  body[data-active-screen="feedback"] .feedback-field { grid-template-rows: 16px 150px 18px; }
  body[data-active-screen="feedback"] .feedback-field textarea { height: 150px; min-height: 150px; }
  body[data-active-screen="feedback"] .feedback-upload-card { height: 150px; min-height: 150px; box-sizing: border-box; margin-top: 0; }
  body[data-active-screen="feedback"] .feedback-preview { height: auto; min-height: 0; margin-top: 0; }
  body[data-active-screen="single-practice"] .single-practice-stage,
  body[data-active-screen="exam-preview"] .exam-preview-stage { padding: 17px 15px 40px; }
  body[data-active-screen="single-practice"] .single-practice-stage { padding-bottom: 108px; }
  body[data-active-screen="single-practice"] .single-practice-shell { gap: 10px; }
  body[data-active-screen="single-practice"] .single-practice-titlebar,
  body[data-active-screen="exam-preview"] .exam-preview-titlebar { margin-bottom: 2px; }
  body[data-active-screen="single-practice"] .single-practice-hero,
  body[data-active-screen="exam-preview"] .exam-preview-hero { min-height: 0; padding: 21px; border-radius: 23px; }
  body[data-active-screen="single-practice"] .single-practice-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  body[data-active-screen="single-practice"] .single-practice-card { min-height: 112px; padding: 16px; border-radius: 19px; }
  body[data-active-screen="single-practice"] .single-practice-summary { height: 185px; min-height: 182px; padding: 24px 145px 22px 21px; border-radius: 25px; }
  body[data-active-screen="single-practice"] .single-practice-summary h2 { font-size: 25px; }
  body[data-active-screen="single-practice"] .single-practice-summary p { max-width: 205px; margin-top: 10px; font-size: 10px; }
  body[data-active-screen="single-practice"] .single-practice-summary-tags { flex-wrap: wrap; gap: 6px; margin-top: 13px; }
  body[data-active-screen="single-practice"] .single-practice-summary-tags span { padding: 6px 8px; font-size: 8px; }
  body[data-active-screen="single-practice"] .single-practice-summary-art { right: 6px; bottom: -15px; width: 148px; height: 155px; }
  body[data-active-screen="single-practice"] .single-practice-summary-art img { width: 142px; height: 142px; }
  body[data-active-screen="single-practice"] .single-practice-summary-note.note-one { top: 18px; left: 1px; width: 29px; height: 29px; }
  body[data-active-screen="single-practice"] .single-practice-summary-note.note-two { top: 3px; right: 7px; width: 33px; height: 33px; }
  body[data-active-screen="single-practice"] .single-practice-summary-spark { top: 43px; right: 2px; width: 24px; height: 24px; }
  body[data-active-screen="single-practice"] .single-practice-categories { padding: 20px 17px; border-radius: 24px; }
  body[data-active-screen="single-practice"] .single-practice-categories-heading { margin-bottom: 9px; padding-bottom: 15px; }
  body[data-locale="en-GB"][data-active-screen="single-practice"] .single-practice-categories-heading { padding-bottom: 18px; }
  body[data-active-screen="single-practice"] .single-practice-categories-heading h2 { font-size: 21px; }
  body[data-active-screen="single-practice"] .single-practice-grid { grid-template-columns: 1fr; gap: 0; }
  body[data-active-screen="single-practice"] .single-practice-card { min-height: 76px; padding: 10px 3px; border: 0; border-bottom: 1px solid var(--home-line); border-radius: 0; background: transparent; }
  body[data-active-screen="single-practice"] .single-practice-card:hover,
  body[data-active-screen="single-practice"] .single-practice-card:active { transform: none; background: transparent; box-shadow: none; }
  body[data-active-screen="single-practice"] .single-practice-card:last-child { border-bottom: 0; }
  body[data-active-screen="single-practice"] .single-practice-card::before { width: 45px; height: 45px; border-radius: 15px; }
  body[data-active-screen="single-practice"] .single-practice-card-title { font-size: 13px; }
  body[data-active-screen="single-practice"] .single-practice-card-copy { font-size: 9px; }
  @supports (-webkit-touch-callout: none) {
    .learning-materials-stage { padding-top: 15px; }
    .learning-materials-titlebar { margin-bottom: 10px; }
    body[data-active-screen="single-practice"] .single-practice-stage { padding-top: 15px; }
    body[data-active-screen="single-practice"] .single-practice-titlebar { margin-bottom: 0; }
  }
body[data-active-screen="exam-preview"] .exam-preview-paper-card { border-radius: 21px; }
}

/* Wrong-review answer screen pilot: visual changes only, scoped away from exams and practice. */
body[data-active-screen="exam"][data-activity-mode="wrong-review"] {
  --selection-blue: #315df6;
  color: var(--home-ink);
  background: #fff;
}

body[data-active-screen="exam"][data-activity-mode="wrong-review"] .mock-app,
body[data-active-screen="exam"][data-activity-mode="wrong-review"] .wide-stage {
  background: #fff;
}

body[data-active-screen="exam"][data-activity-mode="wrong-review"] .exam-main {
  background: #fff;
}

body[data-active-screen="exam"][data-activity-mode="wrong-review"] .wide-stage {
  height: 100vh;
  padding: 20px 24px;
}

body[data-active-screen="exam"][data-activity-mode="wrong-review"] .wide-shell {
  width: min(1280px, 100%);
  max-width: 100%;
  min-width: 0;
  height: calc(100vh - 40px);
  margin: 0 auto;
  background: transparent;
}

body[data-active-screen="exam"][data-activity-mode="wrong-review"] .exam-toolbar {
  display: flex;
  padding: 14px 18px;
  border: 0;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 34px rgba(45, 67, 128, 0.07);
}

body[data-active-screen="exam"][data-activity-mode="wrong-review"] .exam-toolbar .toolbar-right {
  display: none !important;
}

body[data-active-screen="exam"][data-activity-mode="wrong-review"] .toolbar-left {
  flex-wrap: wrap;
}

body[data-active-screen="exam"][data-activity-mode="wrong-review"] .toolbar-brand {
  color: #16213d;
  font-weight: 750;
}

body[data-active-screen="exam"][data-activity-mode="wrong-review"] :is(#exam-prev-button, #exam-next-button) {
  min-width: 88px;
  height: 42px;
  border: 1px solid rgba(49, 93, 246, 0.14);
  border-radius: 13px;
  color: #315df6;
  background: #f1f5ff;
  box-shadow: none;
  font-weight: 750;
}

body[data-active-screen="exam"][data-activity-mode="wrong-review"] #exam-next-button:not(:disabled) {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(135deg, #4773ff, #315df6);
  box-shadow: 0 8px 18px rgba(49, 93, 246, 0.2);
}

body[data-active-screen="exam"][data-activity-mode="wrong-review"] .exam-main {
  gap: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 0 4px 16px;
  scrollbar-width: thin;
  scrollbar-color: rgba(49, 93, 246, 0.22) transparent;
}

body[data-active-screen="exam"][data-activity-mode="wrong-review"] .wrong-review-main {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  gap: 16px;
}

body[data-active-screen="exam"][data-activity-mode="wrong-review"] .wrong-review-main > * {
  max-width: 100%;
  min-width: 0;
}

body[data-active-screen="exam"][data-activity-mode="wrong-review"] .wrong-review-overview-card {
  display: grid;
  gap: 9px;
  padding: 22px 24px;
  border: 1px solid rgba(43, 60, 100, 0.08);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(45, 67, 128, 0.07);
}

body[data-active-screen="exam"][data-activity-mode="wrong-review"] .wrong-review-overview-card h1 {
  margin: 0;
  color: var(--home-ink);
  font-size: 26px;
  letter-spacing: -0.03em;
}

body[data-active-screen="exam"][data-activity-mode="wrong-review"] .wrong-review-overview-card p {
  margin: 0;
  color: var(--home-muted);
}

body[data-active-screen="exam"][data-activity-mode="wrong-review"] .wrong-review-progress {
  margin-top: 8px;
  color: #315df6 !important;
  font-size: 11px !important;
  font-weight: 800;
}

body[data-active-screen="exam"][data-activity-mode="wrong-review"] .wrong-review-helper {
  font-size: 14px !important;
  line-height: 1.6;
}

body[data-active-screen="exam"][data-activity-mode="wrong-review"] .wrong-review-home-button {
  width: 100%;
  min-height: 46px;
  margin-top: 7px;
  border: 1px solid rgba(49, 93, 246, 0.14);
  border-radius: 14px;
  color: #315df6;
  background: #f1f5ff;
  font-size: 15px;
  font-weight: 750;
}

body[data-active-screen="exam"][data-activity-mode="wrong-review"] .wrong-review-main :is(
  .exam-card,
  .info-main-card-frame,
  .info-action-card-frame,
  .q1-question-card,
  .q1-reference-card,
  .q1-answer-card,
  .select-page-shell,
  .capture-page-wrap
) {
  border-color: rgba(43, 60, 100, 0.08);
  border-radius: 22px;
  background-color: #fff;
  box-shadow: 0 12px 34px rgba(45, 67, 128, 0.07);
}

body[data-active-screen="exam"][data-activity-mode="wrong-review"] :is(
  .answer-submit,
  .q1-answer-button,
  [data-action="submit-current-page"]
) {
  z-index: 0;
  color: #ffffff;
  border-color: transparent !important;
  border-radius: 14px;
  background: linear-gradient(135deg, #4773ff, #315df6);
  box-shadow: 0 10px 22px rgba(49, 93, 246, 0.2);
}

body[data-active-screen="exam"][data-activity-mode="wrong-review"] .wrong-review-feedback-card {
  padding: 16px 18px;
  border-width: 0;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(45, 67, 128, 0.1);
}

body[data-active-screen="exam"][data-activity-mode="wrong-review"] .exam-bottom-row {
  display: none !important;
}

body[data-active-screen="exam"][data-activity-mode="wrong-review"] .paper-nav {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 52px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 32px rgba(45, 67, 128, 0.09);
}

body[data-active-screen="exam"][data-activity-mode="wrong-review"] .wrong-review-nav-button {
  flex-basis: 54px;
  width: 54px;
  min-width: 54px;
  color: #315df6;
  border-color: rgba(43, 60, 100, 0.08);
  background: #ffffff;
  font-size: 20px;
}

body[data-active-screen="exam"][data-activity-mode="wrong-review"] .wrong-review-nav-status {
  color: var(--home-ink);
  background: transparent;
  font-size: 12px;
  font-weight: 750;
}

body[data-active-screen="exam"][data-activity-mode="wrong-review"] .wrong-review-nav-status span:last-child {
  color: #98a0b2;
  font-size: 9px;
  font-weight: 500;
}

body[data-active-screen="exam"][data-activity-mode="wrong-review"] .wrong-review-result-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: grid;
  max-width: none !important;
  place-items: center;
  padding: max(24px, env(safe-area-inset-top)) 18px max(24px, env(safe-area-inset-bottom));
  overflow: hidden;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  animation: wrong-review-overlay-in 220ms ease-out both;
  overscroll-behavior: contain;
  cursor: pointer;
  touch-action: manipulation;
}

body[data-active-screen="exam"][data-activity-mode="wrong-review"] .wrong-review-result-dialog {
  width: min(370px, calc(100vw - 36px));
  padding: 22px 22px 20px;
  border: 0;
  border-radius: 30px;
  background: #ffffff;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: 0 22px 58px rgba(22, 40, 92, 0.2);
  text-align: center;
  animation: wrong-review-dialog-in 520ms cubic-bezier(0.2, 0.9, 0.2, 1.14) both;
}

body[data-active-screen="exam"][data-activity-mode="wrong-review"] .wrong-review-result-orbit {
  position: relative;
  width: 166px;
  height: 150px;
  margin: -6px auto 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91, 174, 255, 0.2), rgba(91, 174, 255, 0.04) 58%, transparent 72%);
}

body[data-active-screen="exam"][data-activity-mode="wrong-review"] .wrong-review-result-mascot {
  position: absolute;
  left: 50%;
  bottom: 1px;
  width: 146px;
  height: 146px;
  object-fit: contain;
  transform: translateX(-50%);
  filter: drop-shadow(0 16px 18px rgba(44, 103, 219, 0.2));
  animation: wrong-review-mascot-jump 780ms cubic-bezier(0.2, 0.85, 0.25, 1.12) both,
    wrong-review-mascot-float 2.4s ease-in-out 820ms infinite;
}

body[data-active-screen="exam"][data-activity-mode="wrong-review"] .wrong-review-result-spark {
  position: absolute;
  z-index: 2;
  color: #315df6;
  font-weight: 800;
  opacity: 0;
  animation: wrong-review-spark-in 480ms ease-out 420ms both;
}

body[data-active-screen="exam"][data-activity-mode="wrong-review"] .spark-one { left: 8px; top: 45px; color: #7c5ce0; font-size: 22px; transform: rotate(-10deg); }
body[data-active-screen="exam"][data-activity-mode="wrong-review"] .spark-two { right: 10px; top: 24px; color: #21b997; font-size: 20px; }
body[data-active-screen="exam"][data-activity-mode="wrong-review"] .spark-three { right: 1px; bottom: 24px; color: #315df6; font-size: 18px; transform: rotate(12deg); }

body[data-active-screen="exam"][data-activity-mode="wrong-review"] .wrong-review-result-kicker {
  margin: 2px 0 5px;
  color: #98a2b8;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.08em;
}

body[data-active-screen="exam"][data-activity-mode="wrong-review"] .wrong-review-result-dialog h2 {
  margin: 0;
  color: #16213d;
  font-size: 31px;
  letter-spacing: -0.04em;
}

body[data-active-screen="exam"][data-activity-mode="wrong-review"] .wrong-review-result-overlay.is-correct .wrong-review-result-dialog h2 {
  color: #168a55;
}

body[data-active-screen="exam"][data-activity-mode="wrong-review"] .wrong-review-result-overlay:is(.is-incorrect, .is-unanswered) .wrong-review-result-dialog h2 {
  color: #d43b45;
}

body[data-active-screen="exam"][data-activity-mode="wrong-review"] .wrong-review-result-message {
  margin: 9px 0 0;
  color: #73809b;
  font-size: 14px;
  line-height: 1.55;
}

body[data-active-screen="exam"][data-activity-mode="wrong-review"] .wrong-review-result-score {
  display: inline-flex;
  margin: 10px 0 0;
  padding: 5px 10px;
  border-radius: 999px;
  color: #946b0a;
  background: #fff5d6;
  font-size: 13px;
  font-weight: 800;
}

body[data-active-screen="exam"][data-activity-mode="wrong-review"] .wrong-review-result-dismiss-hint {
  margin: 18px 0 0;
  color: #9aa4b8;
  font-size: 12px;
  font-weight: 650;
}

body[data-active-screen="exam"][data-activity-mode="wrong-review"] .wrong-review-result-continue,
body[data-active-screen="exam"][data-activity-mode="single-practice"] .single-practice-result-continue {
  display: none;
}

body[data-active-screen="exam"][data-activity-mode="wrong-review"] .wrong-review-result-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

body[data-active-screen="exam"][data-activity-mode="wrong-review"] .wrong-review-result-button {
  display: inline-flex;
  min-width: 98px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 16px;
  border: 1px solid rgba(49, 93, 246, 0.16);
  border-radius: 15px;
  color: #315df6;
  background: #f5f8ff;
  font-size: 15px;
  font-weight: 800;
  touch-action: manipulation;
}

body[data-active-screen="exam"][data-activity-mode="wrong-review"] .wrong-review-result-button span {
  font-size: 24px;
  font-weight: 500;
  line-height: 1;
}

body[data-active-screen="exam"][data-activity-mode="wrong-review"] .wrong-review-result-button.is-primary {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(135deg, #4773ff, #315df6);
  box-shadow: 0 10px 22px rgba(49, 93, 246, 0.22);
}

body[data-active-screen="exam"][data-activity-mode="wrong-review"] .wrong-review-result-button.is-retry {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(135deg, #ff7b7b, #f04f62);
  box-shadow: 0 10px 22px rgba(221, 68, 82, 0.2);
}

@keyframes wrong-review-overlay-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes wrong-review-dialog-in {
  from { opacity: 0; transform: translateY(34px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes wrong-review-mascot-jump {
  0% { opacity: 0; transform: translate(-50%, 55px) scale(0.64) rotate(-8deg); }
  55% { opacity: 1; transform: translate(-50%, -13px) scale(1.08) rotate(4deg); }
  76% { transform: translate(-50%, 5px) scale(0.97) rotate(-2deg); }
  100% { opacity: 1; transform: translate(-50%, 0) scale(1) rotate(0); }
}

@keyframes wrong-review-mascot-float {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, -7px); }
}

@keyframes wrong-review-spark-in {
  from { opacity: 0; scale: 0.4; }
  to { opacity: 1; scale: 1; }
}

@media (max-width: 760px) {
  body[data-active-screen="exam"][data-activity-mode="wrong-review"] .wrong-review-result-overlay {
    place-items: center;
    padding: max(24px, env(safe-area-inset-top)) 18px max(24px, env(safe-area-inset-bottom));
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  body[data-active-screen="exam"][data-activity-mode="wrong-review"] .wide-stage {
    height: 100svh;
    padding: 0 12px;
  }

  body[data-active-screen="exam"][data-activity-mode="wrong-review"] .wide-stage[data-screen="exam"] .wide-shell {
    height: 100svh;
    padding: 0 !important;
  }

  body[data-active-screen="exam"][data-activity-mode="wrong-review"] .exam-main {
    padding: 0 0 10px;
  }

  body[data-active-screen="exam"][data-activity-mode="wrong-review"] .exam-toolbar {
    margin: 10px 0 12px;
    padding: 14px;
    border-radius: 19px;
  }

  body[data-active-screen="exam"][data-activity-mode="wrong-review"] .toolbar-left {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  body[data-active-screen="exam"][data-activity-mode="wrong-review"] .toolbar-brand {
    grid-column: 1 / -1;
    margin: 0;
    font-size: 15px;
  }

  body[data-active-screen="exam"][data-activity-mode="wrong-review"] :is(#exam-prev-button, #exam-next-button) {
    width: 100%;
    min-width: 0;
  }

  body[data-active-screen="exam"][data-activity-mode="wrong-review"] .wrong-review-main {
    gap: 12px;
    padding-bottom: 4px;
  }

  body[data-active-screen="exam"][data-activity-mode="wrong-review"] .wrong-review-overview-card {
    padding: 19px 17px;
    border-radius: 19px;
  }

  body[data-active-screen="exam"][data-activity-mode="wrong-review"] .wrong-review-overview-card h1 {
    font-size: 22px;
  }

  body[data-active-screen="exam"][data-activity-mode="wrong-review"] .wrong-review-main :is(
    .exam-card,
    .info-main-card-frame,
    .info-action-card-frame,
    .q1-question-card,
    .q1-reference-card,
    .q1-answer-card,
    .select-page-shell,
    .capture-page-wrap
  ) {
    border-radius: 19px;
  }

  body[data-active-screen="exam"][data-activity-mode="wrong-review"] .wrong-review-feedback-card {
    padding: 13px 14px;
    border-radius: 17px;
  }

  body[data-active-screen="exam"][data-activity-mode="wrong-review"] .paper-nav {
    min-height: 50px;
    border-radius: 17px;
  }

  body[data-active-screen="exam"][data-activity-mode="wrong-review"] .wrong-review-nav-button {
    flex-basis: 48px;
    width: 48px;
    min-width: 48px;
  }

  body[data-active-screen="exam"][data-activity-mode="wrong-review"] .wrong-review-result-dialog {
    width: min(326px, calc(100vw - 44px));
    padding: 14px 16px 15px;
    border: 0;
    border-radius: 24px;
    background: #ffffff;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: 0 16px 44px rgba(22, 40, 92, 0.18);
  }

  body[data-active-screen="exam"][data-activity-mode="wrong-review"] .wrong-review-result-orbit {
    width: 116px;
    height: 102px;
    margin-top: -3px;
  }

  body[data-active-screen="exam"][data-activity-mode="wrong-review"] .wrong-review-result-mascot {
    width: 104px;
    height: 104px;
  }

  body[data-active-screen="exam"][data-activity-mode="wrong-review"] .wrong-review-result-dialog h2 {
    font-size: 25px;
  }

  body[data-active-screen="exam"][data-activity-mode="wrong-review"] .wrong-review-result-kicker {
    margin-top: 0;
    font-size: 10px;
  }

  body[data-active-screen="exam"][data-activity-mode="wrong-review"] .wrong-review-result-message {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.45;
  }

  body[data-active-screen="exam"][data-activity-mode="wrong-review"] .wrong-review-result-dismiss-hint {
    display: none;
  }

  body[data-active-screen="exam"][data-activity-mode="wrong-review"] .wrong-review-result-continue {
    display: flex;
    min-height: 42px;
    margin-top: 13px;
    padding: 0 13px 0 16px;
    align-items: center;
    justify-content: space-between;
    color: #315df6;
    border: 1px solid rgba(49, 93, 246, 0.16);
    border-radius: 14px;
    background: #f2f6ff;
    font-size: 13px;
    font-weight: 800;
  }

  body[data-active-screen="exam"][data-activity-mode="wrong-review"] .wrong-review-result-continue b {
    font-size: 22px;
    font-weight: 500;
    line-height: 1;
  }

  body[data-active-screen="exam"][data-activity-mode="wrong-review"] .wrong-review-result-button {
    min-width: 92px;
    min-height: 46px;
    padding-inline: 13px;
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-active-screen="exam"][data-activity-mode="wrong-review"] :is(
    .wrong-review-result-overlay,
    .wrong-review-result-dialog,
    .wrong-review-result-mascot,
    .wrong-review-result-spark
  ) {
    animation: none !important;
  }
}

/* Single practice reuses the proven review-card language without exam-only controls. */
.single-practice-return-button {
  display: none !important;
}

body[data-active-screen="exam"][data-activity-mode="single-practice"] {
  --selection-blue: #315df6;
  color: var(--home-ink);
  background: #fff;
}

body[data-active-screen="exam"][data-activity-mode="single-practice"] :is(.mock-app, .wide-stage) {
  background: #fff;
}

body[data-active-screen="exam"][data-activity-mode="single-practice"] .wide-stage {
  height: 100vh;
  padding: 20px 24px;
}

body[data-active-screen="exam"][data-activity-mode="single-practice"] .wide-shell {
  width: min(1280px, 100%);
  max-width: 100%;
  min-width: 0;
  height: calc(100vh - 40px);
  margin: 0 auto;
  background: transparent;
}

body[data-active-screen="exam"][data-activity-mode="single-practice"] .exam-toolbar {
  display: flex;
  padding: 14px 18px;
  border: 0;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 34px rgba(45, 67, 128, 0.07);
}

body[data-active-screen="exam"][data-activity-mode="single-practice"] .exam-toolbar .toolbar-right {
  display: none !important;
}

body[data-active-screen="exam"][data-activity-mode="single-practice"] .toolbar-left {
  flex-wrap: wrap;
}

body[data-active-screen="exam"][data-activity-mode="single-practice"] .toolbar-brand {
  color: #16213d;
  font-weight: 750;
}

body[data-active-screen="exam"][data-activity-mode="single-practice"] :is(#exam-prev-button, #exam-next-button) {
  min-width: 88px;
  height: 42px;
  border: 1px solid rgba(49, 93, 246, 0.14);
  border-radius: 13px;
  color: #315df6;
  background: #f1f5ff;
  box-shadow: none;
  font-weight: 750;
}

body[data-active-screen="exam"][data-activity-mode="single-practice"] #exam-next-button:not(:disabled) {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(135deg, #4773ff, #315df6);
  box-shadow: 0 8px 18px rgba(49, 93, 246, 0.2);
}

body[data-active-screen="exam"][data-activity-mode="single-practice"] .single-practice-return-button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 126px;
  height: 42px;
  border: 1px solid rgba(49, 93, 246, 0.14);
  border-radius: 13px;
  color: #315df6;
  background: #ffffff;
  box-shadow: none;
  font-weight: 750;
}

body[data-active-screen="exam"][data-activity-mode="single-practice"] .exam-main {
  gap: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 0 4px 16px;
  background: #fff;
  scrollbar-width: thin;
  scrollbar-color: rgba(49, 93, 246, 0.22) transparent;
}

body[data-active-screen="exam"][data-activity-mode="single-practice"] .info-card-stack {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  gap: 16px;
}

body[data-active-screen="exam"][data-activity-mode="single-practice"] :is(
  .exam-card,
  .info-main-card-frame,
  .info-action-card-frame,
  .q1-question-card,
  .q1-reference-card,
  .q1-answer-card,
  .select-page-shell,
  .capture-page-wrap
) {
  border-color: rgba(43, 60, 100, 0.08);
  border-radius: 22px;
  background-color: #fff;
  box-shadow: 0 12px 34px rgba(45, 67, 128, 0.07);
}

body[data-active-screen="exam"][data-activity-mode="single-practice"] :is(
  .answer-submit,
  .q1-answer-button,
  [data-action="submit-current-page"]
) {
  z-index: 0;
  color: #ffffff;
  border-color: transparent !important;
  border-radius: 14px;
  background: linear-gradient(135deg, #4773ff, #315df6);
  box-shadow: 0 10px 22px rgba(49, 93, 246, 0.2);
}

body[data-active-screen="exam"][data-activity-mode="single-practice"] :is(.exam-bottom-row, .bottom-actions-group) {
  display: none !important;
}

body[data-active-screen="exam"][data-activity-mode="single-practice"] .single-practice-result-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: grid;
  max-width: none !important;
  place-items: center;
  padding: max(24px, env(safe-area-inset-top)) 18px max(24px, env(safe-area-inset-bottom));
  overflow: hidden;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  animation: wrong-review-overlay-in 220ms ease-out both;
  overscroll-behavior: contain;
  cursor: pointer;
  touch-action: manipulation;
}

body[data-active-screen="exam"][data-activity-mode="single-practice"] .single-practice-result-dialog {
  width: min(370px, calc(100vw - 36px));
  padding: 22px 22px 20px;
  border: 0;
  border-radius: 30px;
  background: #ffffff;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: 0 22px 58px rgba(22, 40, 92, 0.2);
  text-align: center;
  animation: wrong-review-dialog-in 520ms cubic-bezier(0.2, 0.9, 0.2, 1.14) both;
}

body[data-active-screen="exam"][data-activity-mode="single-practice"] .single-practice-result-orbit {
  position: relative;
  width: 166px;
  height: 150px;
  margin: -6px auto 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91, 174, 255, 0.2), rgba(91, 174, 255, 0.04) 58%, transparent 72%);
}

body[data-active-screen="exam"][data-activity-mode="single-practice"] .single-practice-result-mascot {
  position: absolute;
  left: 50%;
  bottom: 1px;
  width: 146px;
  height: 146px;
  object-fit: contain;
  transform: translateX(-50%);
  filter: drop-shadow(0 16px 18px rgba(44, 103, 219, 0.2));
  animation: wrong-review-mascot-jump 780ms cubic-bezier(0.2, 0.85, 0.25, 1.12) both,
    wrong-review-mascot-float 2.4s ease-in-out 820ms infinite;
}

body[data-active-screen="exam"][data-activity-mode="single-practice"] .single-practice-result-spark {
  position: absolute;
  z-index: 2;
  color: #315df6;
  font-weight: 800;
  opacity: 0;
  animation: wrong-review-spark-in 480ms ease-out 420ms both;
}

body[data-active-screen="exam"][data-activity-mode="single-practice"] .single-practice-result-orbit .spark-one { left: 8px; top: 45px; color: #7c5ce0; font-size: 22px; transform: rotate(-10deg); }
body[data-active-screen="exam"][data-activity-mode="single-practice"] .single-practice-result-orbit .spark-two { right: 10px; top: 24px; color: #21b997; font-size: 20px; }
body[data-active-screen="exam"][data-activity-mode="single-practice"] .single-practice-result-orbit .spark-three { right: 1px; bottom: 24px; color: #315df6; font-size: 18px; transform: rotate(12deg); }

body[data-active-screen="exam"][data-activity-mode="single-practice"] .single-practice-result-kicker {
  margin: 2px 0 5px;
  color: #98a2b8;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.08em;
}

body[data-active-screen="exam"][data-activity-mode="single-practice"] .single-practice-result-dialog h2 {
  margin: 0;
  color: #16213d;
  font-size: 31px;
  letter-spacing: -0.04em;
}

body[data-active-screen="exam"][data-activity-mode="single-practice"] .single-practice-result-overlay.is-correct .single-practice-result-dialog h2 {
  color: #168a55;
}

body[data-active-screen="exam"][data-activity-mode="single-practice"] .single-practice-result-overlay:is(.is-incorrect, .is-unanswered) .single-practice-result-dialog h2 {
  color: #d43b45;
}

body[data-active-screen="exam"][data-activity-mode="single-practice"] .single-practice-result-message {
  margin: 9px 0 0;
  color: #73809b;
  font-size: 14px;
  line-height: 1.55;
}

body[data-active-screen="exam"][data-activity-mode="single-practice"] .single-practice-result-score {
  display: inline-flex;
  margin: 10px 0 0;
  padding: 5px 10px;
  border-radius: 999px;
  color: #946b0a;
  background: #fff5d6;
  font-size: 13px;
  font-weight: 800;
}

body[data-active-screen="exam"][data-activity-mode="single-practice"] .single-practice-result-dismiss-hint {
  margin: 18px 0 0;
  color: #9aa4b8;
  font-size: 12px;
  font-weight: 650;
}

@media (max-width: 760px) {
  body[data-active-screen="exam"][data-activity-mode="single-practice"] .single-practice-result-overlay {
    place-items: center;
    padding: max(24px, env(safe-area-inset-top)) 18px max(24px, env(safe-area-inset-bottom));
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  body[data-active-screen="exam"][data-activity-mode="single-practice"] .wide-stage {
    height: 100svh;
    padding: 0 12px;
  }

  body[data-active-screen="exam"][data-activity-mode="single-practice"] .wide-stage[data-screen="exam"] .wide-shell {
    height: 100svh;
    padding: 0 !important;
  }

  body[data-active-screen="exam"][data-activity-mode="single-practice"] .exam-main {
    padding: 0 0 10px;
  }

  body[data-active-screen="exam"][data-activity-mode="single-practice"] .exam-toolbar {
    margin: 10px 0 12px;
    padding: 14px;
    border-radius: 19px;
  }

  body[data-active-screen="exam"][data-activity-mode="single-practice"] .toolbar-left {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  body[data-active-screen="exam"][data-activity-mode="single-practice"] .toolbar-brand {
    grid-column: 1 / -1;
    margin: 0;
    font-size: 15px;
  }

  body[data-active-screen="exam"][data-activity-mode="single-practice"] :is(#exam-prev-button, #exam-next-button) {
    width: 100%;
    min-width: 0;
  }

  body[data-active-screen="exam"][data-activity-mode="single-practice"] .single-practice-return-button {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
    height: 40px;
  }

  body[data-active-screen="exam"][data-activity-mode="single-practice"] .info-card-stack {
    gap: 12px;
    padding-bottom: 4px;
  }

  body[data-active-screen="exam"][data-activity-mode="single-practice"] :is(
    .exam-card,
    .info-main-card-frame,
    .info-action-card-frame,
    .q1-question-card,
    .q1-reference-card,
    .q1-answer-card,
    .select-page-shell,
    .capture-page-wrap
  ) {
    border-radius: 19px;
  }

  body[data-active-screen="exam"][data-activity-mode="single-practice"] .single-practice-result-dialog {
    width: min(326px, calc(100vw - 44px));
    padding: 14px 16px 15px;
    border: 0;
    border-radius: 24px;
    background: #ffffff;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: 0 16px 44px rgba(22, 40, 92, 0.18);
  }

  body[data-active-screen="exam"][data-activity-mode="single-practice"] .single-practice-result-orbit {
    width: 116px;
    height: 102px;
    margin-top: -3px;
  }

  body[data-active-screen="exam"][data-activity-mode="single-practice"] .single-practice-result-mascot {
    width: 104px;
    height: 104px;
  }

  body[data-active-screen="exam"][data-activity-mode="single-practice"] .single-practice-result-dialog h2 {
    font-size: 25px;
  }

  body[data-active-screen="exam"][data-activity-mode="single-practice"] .single-practice-result-kicker {
    margin-top: 0;
    font-size: 10px;
  }

  body[data-active-screen="exam"][data-activity-mode="single-practice"] .single-practice-result-message {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.45;
  }

  body[data-active-screen="exam"][data-activity-mode="single-practice"] .single-practice-result-dismiss-hint {
    display: none;
  }

  body[data-active-screen="exam"][data-activity-mode="single-practice"] .single-practice-result-continue {
    display: flex;
    min-height: 42px;
    margin-top: 13px;
    padding: 0 13px 0 16px;
    align-items: center;
    justify-content: space-between;
    color: #315df6;
    border: 1px solid rgba(49, 93, 246, 0.16);
    border-radius: 14px;
    background: #f2f6ff;
    font-size: 13px;
    font-weight: 800;
  }

  body[data-active-screen="exam"][data-activity-mode="single-practice"] .single-practice-result-continue b {
    font-size: 22px;
    font-weight: 500;
    line-height: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-active-screen="exam"][data-activity-mode="single-practice"] :is(
    .single-practice-result-overlay,
    .single-practice-result-dialog,
    .single-practice-result-mascot,
    .single-practice-result-spark
  ) {
    animation: none !important;
  }
}

/* Formal Grade 5 mock exam UI pilot. Question structure and scoring stay untouched. */
body[data-active-screen="theme"] {
  background: #f5f7fd;
}

body[data-active-screen="theme"] .narrow-stage[data-screen="theme"] {
  min-height: 100vh;
  padding: 32px 24px;
  background:
    radial-gradient(circle at 88% 4%, rgba(128, 200, 255, 0.24), transparent 31%),
    linear-gradient(145deg, #f5f8ff 0%, #eef3ff 100%);
}

body[data-active-screen="theme"] .theme-shell {
  width: min(1280px, 100%);
  min-width: 0;
  min-height: 0;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(43, 60, 100, 0.07);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 22px 58px rgba(45, 67, 128, 0.1);
}

body[data-active-screen="theme"] .entry-header {
  height: auto;
  min-height: 0;
  padding: 30px 34px 8px;
  border: 0;
}

body[data-active-screen="theme"] .entry-brand {
  color: #315df6;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.16em;
}

body[data-active-screen="theme"] .entry-title-band {
  padding: 0 34px;
  border: 0;
}

body[data-active-screen="theme"] .entry-page-title {
  color: #16213d;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 850;
  letter-spacing: -0.04em;
}

body[data-active-screen="theme"] .theme-panel {
  padding: 15px 34px 34px;
}

body[data-active-screen="theme"] .theme-copy {
  max-width: 680px;
  color: #76839e;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.65;
}

body[data-active-screen="theme"] .theme-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
}

body[data-active-screen="theme"] .theme-option {
  width: auto;
  min-width: 0;
  min-height: 210px;
  padding: 12px;
  align-items: stretch;
  border: 2px solid transparent;
  border-radius: 20px;
  background: #f7f9fe;
  box-shadow: inset 0 0 0 1px rgba(43, 60, 100, 0.06);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

body[data-active-screen="theme"] .theme-option:hover {
  transform: translateY(-2px);
}

body[data-active-screen="theme"] .theme-option.selected {
  border-color: #315df6;
  background: #f7f9fe;
  box-shadow: 0 12px 28px rgba(49, 93, 246, 0.13);
}

body[data-active-screen="theme"] .theme-preview {
  width: 100%;
  height: 118px;
  padding: 13px;
  border: 1px solid rgba(43, 60, 100, 0.09);
  border-radius: 15px;
  background: var(--preview-surface);
  overflow: hidden;
}

body[data-active-screen="theme"] .theme-preview-sheet {
  width: 100%;
  height: 100%;
  padding: 16px 14px;
  display: grid;
  align-content: center;
  gap: 8px;
  border: 1px solid rgba(43, 60, 100, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.42);
}

body[data-active-screen="theme"] .theme-preview-sheet i {
  height: 2px;
  display: block;
  border-radius: 999px;
  background: rgba(35, 48, 78, 0.3);
}

body[data-active-screen="theme"] .theme-option-copy {
  margin-top: 12px;
  padding-right: 32px;
  display: grid;
  gap: 3px;
}

body[data-active-screen="theme"] .theme-option-copy strong {
  color: #16213d;
  font-size: 17px;
}

body[data-active-screen="theme"] .theme-option-copy small {
  color: #8d99b0;
  font-size: 12px;
  font-weight: 650;
}

body[data-active-screen="theme"] .theme-radio-mark {
  position: absolute;
  right: 15px;
  bottom: 17px;
  width: 24px;
  height: 24px;
  margin: 0;
  border: 2px solid #cbd4e5;
  display: grid;
  place-items: center;
}

body[data-active-screen="theme"] .theme-option.selected .theme-radio-mark {
  border-color: #315df6;
  background: #315df6;
}

body[data-active-screen="theme"] .theme-option.selected .theme-radio-mark::after {
  inset: auto;
  width: 8px;
  height: 5px;
  border: 0;
  border-left: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  border-radius: 0;
  background: transparent;
  transform: translateY(-1px) rotate(-45deg);
}

body[data-active-screen="theme"] .theme-actions {
  margin-top: 24px;
  justify-content: flex-end;
}

body[data-active-screen="theme"] .theme-continue-button {
  min-width: 180px;
  min-height: 50px;
  border: 0;
  border-radius: 15px;
  color: #ffffff;
  background: linear-gradient(135deg, #4773ff, #315df6);
  box-shadow: 0 12px 25px rgba(49, 93, 246, 0.23);
  font-size: 16px;
  font-weight: 800;
}

body:is(
  [data-active-screen="instructions"],
  [data-active-screen="exam"]
)[data-activity-mode="exam"] {
  --stage-bg: #f4f7ff;
  background: #f4f7ff;
}

body:is(
  [data-active-screen="instructions"],
  [data-active-screen="exam"]
)[data-activity-mode="exam"] .mock-app {
  background:
    radial-gradient(circle at 88% 2%, rgba(121, 197, 255, 0.2), transparent 30%),
    linear-gradient(155deg, #f6f9ff 0%, #f1f4fc 100%);
}

body:is(
  [data-active-screen="instructions"],
  [data-active-screen="exam"]
)[data-activity-mode="exam"] .wide-stage {
  height: 100vh;
  padding: 20px 24px;
  background: transparent !important;
}

body:is(
  [data-active-screen="instructions"],
  [data-active-screen="exam"]
)[data-activity-mode="exam"] .wide-shell {
  width: min(1280px, 100%);
  max-width: 100%;
  min-width: 0;
  height: calc(100vh - 40px);
  margin: 0 auto;
  padding: 0;
  background: transparent !important;
}

body:is(
  [data-active-screen="instructions"],
  [data-active-screen="exam"]
)[data-activity-mode="exam"] .exam-toolbar {
  flex: 0 0 auto;
  padding: 14px 18px;
  border: 1px solid rgba(43, 60, 100, 0.07);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 12px 34px rgba(45, 67, 128, 0.08);
}

body:is(
  [data-active-screen="instructions"],
  [data-active-screen="exam"]
)[data-activity-mode="exam"] :is(.toolbar-left, .toolbar-right) {
  min-width: 0;
  flex-wrap: wrap;
  gap: 8px;
}

body:is(
  [data-active-screen="instructions"],
  [data-active-screen="exam"]
)[data-activity-mode="exam"] .toolbar-brand {
  margin-right: 10px;
  color: #16213d;
  font-size: 15px;
  font-weight: 800;
}

body:is(
  [data-active-screen="instructions"],
  [data-active-screen="exam"]
)[data-activity-mode="exam"] .toolbar-button {
  min-width: 0;
  height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(49, 93, 246, 0.12);
  border-radius: 12px;
  color: #315df6;
  background: #f1f5ff;
  box-shadow: none;
  font-size: 13px;
  font-weight: 750;
}

body[data-active-screen="exam"][data-activity-mode="exam"][data-exam-shell="unified-question"] :is(
  [data-action="open-nav"],
  [data-action="restart-flow"]
) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body:is(
  [data-active-screen="instructions"],
  [data-active-screen="exam"]
)[data-activity-mode="exam"] #exam-next-button:not(:disabled),
body[data-active-screen="instructions"][data-activity-mode="exam"] [data-action="go-exam-start"] {
  border-color: transparent;
  color: #ffffff;
  background: linear-gradient(135deg, #4773ff, #315df6);
  box-shadow: 0 8px 18px rgba(49, 93, 246, 0.2);
}

body:is(
  [data-active-screen="instructions"],
  [data-active-screen="exam"]
)[data-activity-mode="exam"] .end-button {
  color: #e14d5a;
  border-color: rgba(225, 77, 90, 0.12);
  background: #fff3f4;
}

body:is(
  [data-active-screen="instructions"],
  [data-active-screen="exam"]
)[data-activity-mode="exam"] .timer-pill {
  min-width: 82px;
  height: 40px;
  border-radius: 12px;
  background: #16213d;
  font-size: 13px;
  letter-spacing: 0.04em;
}

body:is(
  [data-active-screen="instructions"],
  [data-active-screen="exam"]
)[data-activity-mode="exam"] .exam-main {
  gap: 16px;
  padding: 16px 4px 14px;
  background: transparent !important;
  scrollbar-color: rgba(49, 93, 246, 0.22) transparent;
}

body:is(
  [data-active-screen="instructions"],
  [data-active-screen="exam"]
)[data-activity-mode="exam"] .exam-main::-webkit-scrollbar-thumb {
  border-color: transparent;
  background: rgba(49, 93, 246, 0.2);
}

body:is(
  [data-active-screen="instructions"],
  [data-active-screen="exam"]
)[data-activity-mode="exam"] .exam-main :is(
  .exam-card,
  .info-frame,
  .info-main-card-frame,
  .info-action-card-frame,
  .q1-question-card,
  .q1-reference-card,
  .q1-answer-card,
  .select-page-shell,
  .capture-page-wrap
) {
  border-color: rgba(43, 60, 100, 0.09);
  border-radius: 22px;
  background-color: var(--test-surface) !important;
  box-shadow: 0 12px 34px rgba(45, 67, 128, 0.08);
}

body:is(
  [data-active-screen="instructions"],
  [data-active-screen="exam"]
)[data-activity-mode="exam"] .exam-main :is(
  .card-content,
  .info-main-card-content,
  .info-main-card-body,
  .info-action-card-body,
  .q1-question-card-body,
  .q1-reference-card-body,
  .q1-answer-card-body,
  .q1-generated-notation-wrap,
  .q1-card-stack
) {
  background-color: var(--test-surface) !important;
}

body:is(
  [data-active-screen="instructions"],
  [data-active-screen="exam"]
)[data-activity-mode="exam"] :is(
  .answer-submit,
  .q1-answer-button,
  [data-action="submit-current-page"],
  .info-main-continue
) {
  color: #ffffff;
  border-color: transparent !important;
  border-radius: 14px;
  background: linear-gradient(135deg, #4773ff, #315df6);
  box-shadow: 0 10px 22px rgba(49, 93, 246, 0.2);
}

body:is(
  [data-active-screen="instructions"],
  [data-active-screen="exam"]
)[data-activity-mode="exam"] .exam-bottom-row {
  gap: 12px;
  padding: 12px 0 0;
  background: transparent;
}

body:is(
  [data-active-screen="instructions"],
  [data-active-screen="exam"]
)[data-activity-mode="exam"] .paper-nav {
  min-height: 48px;
  border: 1px solid rgba(43, 60, 100, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 10px 28px rgba(45, 67, 128, 0.07);
}

body:is(
  [data-active-screen="instructions"],
  [data-active-screen="exam"]
)[data-activity-mode="exam"] :is(.paper-item, .paper-nav-arrow) {
  color: #6f7d98;
  border-color: rgba(43, 60, 100, 0.07);
  background: transparent;
}

body:is(
  [data-active-screen="instructions"],
  [data-active-screen="exam"]
)[data-activity-mode="exam"] .paper-item.active {
  color: #ffffff;
  background: #315df6;
}

body:is(
  [data-active-screen="instructions"],
  [data-active-screen="exam"]
)[data-activity-mode="exam"] .bottom-actions-group {
  gap: 8px;
}

body:is(
  [data-active-screen="instructions"],
  [data-active-screen="exam"]
)[data-activity-mode="exam"] .bottom-action {
  min-width: 92px;
  height: 48px;
  border: 1px solid rgba(49, 93, 246, 0.12);
  border-radius: 14px;
  color: #315df6;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 10px 28px rgba(45, 67, 128, 0.07);
  font-weight: 750;
}

@media (max-width: 900px) {
  body[data-active-screen="theme"] .theme-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body:is(
    [data-active-screen="instructions"],
    [data-active-screen="exam"]
  )[data-activity-mode="exam"] .exam-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }

  body:is(
    [data-active-screen="instructions"],
    [data-active-screen="exam"]
  )[data-activity-mode="exam"] :is(.toolbar-left, .toolbar-right) {
    width: 100%;
  }
}

@media (max-width: 760px) {
  body[data-active-screen="theme"] .narrow-stage[data-screen="theme"] {
    min-height: 100svh;
    padding: 16px 12px;
  }

  body[data-active-screen="theme"] .theme-shell {
    min-height: calc(100svh - 32px);
    border-radius: 23px;
  }

  body[data-active-screen="theme"] .entry-header {
    padding: 24px 20px 7px;
  }

  body[data-active-screen="theme"] .entry-title-band {
    padding-inline: 20px;
  }

  body[data-active-screen="theme"] .entry-page-title {
    font-size: 30px;
  }

  body[data-active-screen="theme"] .theme-panel {
    padding: 13px 20px 24px;
  }

  body[data-active-screen="theme"] .theme-grid {
    margin-top: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  body[data-active-screen="theme"] .theme-option {
    min-height: 174px;
    padding: 9px;
    border-radius: 17px;
  }

  body[data-active-screen="theme"] .theme-preview {
    height: 92px;
    padding: 9px;
    border-radius: 12px;
  }

  body[data-active-screen="theme"] .theme-preview-sheet {
    padding: 11px 9px;
    gap: 6px;
  }

  body[data-active-screen="theme"] .theme-option-copy {
    margin-top: 9px;
    padding-right: 24px;
  }

  body[data-active-screen="theme"] .theme-option-copy strong {
    font-size: 15px;
  }

  body[data-active-screen="theme"] .theme-option-copy small {
    font-size: 11px;
  }

  body[data-active-screen="theme"] .theme-radio-mark {
    right: 12px;
    bottom: 14px;
    width: 21px;
    height: 21px;
  }

  body[data-active-screen="theme"] .theme-actions {
    margin-top: 18px;
  }

  body[data-active-screen="theme"] .theme-continue-button {
    width: 100%;
    min-width: 0;
    min-height: 48px;
  }

  body:is(
    [data-active-screen="instructions"],
    [data-active-screen="exam"]
  )[data-activity-mode="exam"] .wide-stage,
  body[data-active-screen="exam"][data-activity-mode="exam"][data-exam-shell="unified-question"] .wide-stage[data-screen="exam"] {
    height: 100dvh;
    padding: 0;
    background: transparent !important;
  }

  body:is(
    [data-active-screen="instructions"],
    [data-active-screen="exam"]
  )[data-activity-mode="exam"] .wide-shell,
  body[data-active-screen="exam"][data-activity-mode="exam"][data-exam-shell="unified-question"] .wide-stage[data-screen="exam"] .wide-shell {
    height: 100dvh;
    padding: 9px 10px 10px;
    background: transparent !important;
  }

  body:is(
    [data-active-screen="instructions"],
    [data-active-screen="exam"]
  )[data-activity-mode="exam"] .exam-toolbar {
    gap: 8px;
    padding: 12px;
    border: 1px solid rgba(43, 60, 100, 0.06);
    border-radius: 18px;
  }

  body:is(
    [data-active-screen="instructions"],
    [data-active-screen="exam"]
  )[data-activity-mode="exam"] .toolbar-left {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  body:is(
    [data-active-screen="instructions"],
    [data-active-screen="exam"]
  )[data-activity-mode="exam"] .toolbar-brand {
    grid-column: 1 / -1;
    margin: 0 0 2px;
    font-size: 14px;
  }

  body:is(
    [data-active-screen="instructions"],
    [data-active-screen="exam"]
  )[data-activity-mode="exam"] .toolbar-left .toolbar-button {
    width: 100%;
    height: 40px;
    padding-inline: 8px;
  }

  body[data-active-screen="exam"][data-activity-mode="exam"][data-exam-shell="unified-question"] [data-action="open-nav"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  body[data-active-screen="exam"][data-activity-mode="exam"] :is(
    [data-action="open-nav"],
    [data-action="restart-flow"],
    [data-action="go-theme"]
  ),
  body[data-active-screen="instructions"][data-activity-mode="exam"] [data-action="go-theme"] {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }

  body:is(
    [data-active-screen="instructions"],
    [data-active-screen="exam"]
  )[data-activity-mode="exam"] .toolbar-right {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  body:is(
    [data-active-screen="instructions"],
    [data-active-screen="exam"]
  )[data-activity-mode="exam"] .toolbar-right::-webkit-scrollbar {
    display: none;
  }

  body:is(
    [data-active-screen="instructions"],
    [data-active-screen="exam"]
  )[data-activity-mode="exam"] .toolbar-right > * {
    flex: 0 0 auto;
  }

  body:is(
    [data-active-screen="instructions"],
    [data-active-screen="exam"]
  )[data-activity-mode="exam"] .timer-pill {
    order: -1;
  }

  body:is(
    [data-active-screen="instructions"],
    [data-active-screen="exam"]
  )[data-activity-mode="exam"] .exam-main {
    gap: 12px;
    padding: 12px 2px;
  }

  body:is(
    [data-active-screen="instructions"],
    [data-active-screen="exam"]
  )[data-activity-mode="exam"] .exam-main :is(
    .exam-card,
    .info-frame,
    .info-main-card-frame,
    .info-action-card-frame,
    .q1-question-card,
    .q1-reference-card,
    .q1-answer-card,
    .select-page-shell,
    .capture-page-wrap
  ) {
    border-radius: 18px;
  }

  body:is(
    [data-active-screen="instructions"],
    [data-active-screen="exam"]
  )[data-activity-mode="exam"] .exam-bottom-row {
    gap: 8px;
    padding-top: 8px;
  }

  body:is(
    [data-active-screen="instructions"],
    [data-active-screen="exam"]
  )[data-activity-mode="exam"] .paper-nav {
    min-height: 46px;
    border-radius: 14px;
  }

  body:is(
    [data-active-screen="instructions"],
    [data-active-screen="exam"]
  )[data-activity-mode="exam"] .bottom-action {
    height: 44px;
    border-radius: 13px;
  }
}

/* Mock exam UI pilot refinements: stable shell, menu clearance and themed confirms. */
body[data-active-screen="exam"][data-activity-mode="exam"] [data-action="restart-flow"] {
  display: none !important;
}

body:is(
  [data-active-screen="instructions"],
  [data-active-screen="exam"]
)[data-activity-mode="exam"] .timer-pill {
  color: #315df6;
  border: 1px solid rgba(49, 93, 246, 0.14);
  background: linear-gradient(135deg, #f1f6ff 0%, #dceaff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

body[data-active-screen="instructions"][data-activity-mode="exam"] .wide-stage[data-screen="instructions"],
body[data-active-screen="exam"][data-activity-mode="exam"] .wide-stage[data-screen="exam"] {
  height: 100vh !important;
  padding: 20px 24px !important;
  background: transparent !important;
}

body[data-active-screen="instructions"][data-activity-mode="exam"] .wide-stage[data-screen="instructions"] .wide-shell,
body[data-active-screen="exam"][data-activity-mode="exam"] .wide-stage[data-screen="exam"] .wide-shell {
  width: min(1280px, 100%) !important;
  height: calc(100vh - 40px) !important;
  margin-inline: auto !important;
  padding: 0 !important;
  background: transparent !important;
}

.exam-confirm-dialog-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  padding: 24px;
  display: grid;
  place-items: center;
  background: rgba(19, 29, 54, 0.58);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}

.exam-confirm-dialog {
  position: relative;
  width: min(440px, 100%);
  padding: 34px 32px 30px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 28px 74px rgba(19, 29, 54, 0.28);
  text-align: center;
}

.exam-confirm-dialog-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #8d99b0;
  background: #f2f5fb;
  font-size: 24px;
  line-height: 1;
}

.exam-confirm-dialog-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  color: #315df6;
  background: linear-gradient(145deg, #edf4ff, #dfeaff);
  font-size: 30px;
  font-weight: 800;
}

.exam-confirm-dialog h2 {
  margin: 0;
  color: #16213d;
  font-size: 26px;
  line-height: 1.25;
  letter-spacing: -0.035em;
}

.exam-confirm-dialog p {
  margin: 14px 0 0;
  color: #76839e;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.7;
}

/* Time-limit prompt shown when the two-hour exam countdown reaches zero. */
.exam-time-up-dialog-overlay {
  position: fixed;
  inset: 0;
  z-index: 10020;
  padding: 24px;
  display: grid;
  place-items: center;
  background: rgba(19, 29, 54, 0.58);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.exam-time-up-dialog {
  width: min(440px, 100%);
  padding: 30px 32px 32px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.99);
  box-shadow: 0 30px 78px rgba(19, 29, 54, 0.3);
  text-align: center;
}

.exam-time-up-dialog-art {
  position: relative;
  width: 190px;
  height: 138px;
  margin: -8px auto 10px;
}

.exam-time-up-dialog-art img {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 138px;
  height: 138px;
  object-fit: contain;
  transform: translateX(-50%);
  filter: drop-shadow(0 16px 24px rgba(49, 93, 246, 0.2));
}

.exam-time-up-dialog-note,
.exam-time-up-dialog-spark {
  position: absolute;
  z-index: 1;
  font-weight: 900;
}

.exam-time-up-dialog-note-one {
  left: 3px;
  top: 46px;
  color: #8367df;
  font-size: 26px;
}

.exam-time-up-dialog-note-two {
  right: 0;
  bottom: 17px;
  color: #315df6;
  font-size: 29px;
}

.exam-time-up-dialog-spark {
  right: 21px;
  top: 8px;
  color: #20ba92;
  font-size: 26px;
}

.exam-time-up-dialog h2 {
  margin: 0;
  color: #16213d;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.035em;
}

.exam-time-up-dialog footer {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.exam-time-up-dialog button {
  width: 100%;
  min-width: 0;
  height: 50px;
  border-radius: 15px;
  font-size: 14px;
  font-weight: 850;
}

.exam-time-up-continue-button {
  border: 1px solid rgba(49, 93, 246, 0.16);
  color: #315df6;
  background: #eef3ff;
}

.exam-time-up-end-button {
  border: 1px solid rgba(229, 82, 91, 0.18);
  color: #ffffff;
  background: linear-gradient(135deg, #ff6670 0%, #ea4b58 100%);
  box-shadow: 0 10px 22px rgba(229, 82, 91, 0.18);
}

/* Keep the destructive end-test confirmation consistent with the mock-exam shell. */
.end-test-dialog-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  padding: 24px;
  display: grid;
  place-items: center;
  background: rgba(19, 29, 54, 0.58);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}

.end-test-dialog {
  position: relative;
  width: min(440px, 100%);
  min-width: 0;
  max-height: calc(100vh - 48px);
  padding: 34px 32px 30px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 28px;
  overflow: auto;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 28px 74px rgba(19, 29, 54, 0.28);
  text-align: center;
}

body[data-locale="en-GB"] .end-test-dialog {
  min-width: 349.890625px;
}

.end-test-dialog-header {
  min-height: 0;
  padding: 0;
  border: 0;
  display: block;
}

.end-test-dialog-header::before {
  content: none;
  display: none;
}

.end-test-dialog-state-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  color: #e5525b;
  background: linear-gradient(145deg, #fff3f4, #ffe2e5);
  font-size: 30px;
  font-weight: 850;
}

.end-test-dialog-state-symbol {
  grid-area: 1 / 1;
}

.end-test-dialog-state-mascot {
  grid-area: 1 / 1;
  width: 76px;
  height: 76px;
  display: none;
  object-fit: contain;
}

.end-test-dialog-state-note,
.end-test-dialog-state-spark {
  position: absolute;
  z-index: 1;
  display: none;
  font-weight: 900;
}

.end-test-dialog-header h2 {
  margin: 0;
  color: #16213d;
  font-size: 26px;
  font-weight: 850;
  line-height: 1.25;
  letter-spacing: -0.035em;
}

.end-test-dialog-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #8d99b0;
  background: #f2f5fb;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

.end-test-dialog-body {
  padding: 0;
}

.end-test-dialog-copy {
  margin: 14px 0 0;
  color: #76839e;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.7;
}

.end-test-unanswered-alert {
  margin: 18px 0 0;
  padding: 13px 15px;
  border: 1px solid rgba(229, 82, 91, 0.14);
  border-radius: 14px;
  background: #fff1f2;
  color: #cf424d;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.55;
}

.end-test-dialog-footer {
  min-height: 0;
  margin-top: 24px;
  padding: 0;
  border: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 10px;
  background: transparent;
}

.end-test-confirm-button,
.end-test-cancel-button {
  width: 100%;
  min-width: 0;
  height: 48px;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 800;
}

.end-test-dialog[data-save-state="saving"] .end-test-dialog-state-icon {
  position: relative;
  width: 174px;
  height: 126px;
  margin: -6px auto 12px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.end-test-dialog[data-save-state="saving"] .end-test-dialog-state-symbol {
  display: none;
}

.end-test-dialog[data-save-state="saving"] .end-test-dialog-state-mascot {
  display: block;
  width: 126px;
  height: 126px;
  filter: drop-shadow(0 14px 22px rgba(49, 93, 246, 0.18));
}

.end-test-dialog[data-save-state="saving"] :is(
  .end-test-dialog-state-note,
  .end-test-dialog-state-spark
) {
  display: block;
}

.end-test-dialog[data-save-state="saving"] .end-test-dialog-state-note-one {
  left: 2px;
  top: 42px;
  color: #8367df;
  font-size: 25px;
}

.end-test-dialog[data-save-state="saving"] .end-test-dialog-state-note-two {
  right: 0;
  bottom: 17px;
  color: #315df6;
  font-size: 28px;
}

.end-test-dialog[data-save-state="saving"] .end-test-dialog-state-spark {
  right: 20px;
  top: 8px;
  color: #20ba92;
  font-size: 25px;
}

.end-test-dialog :is(button:disabled, button[aria-disabled="true"]) {
  opacity: .56;
  cursor: wait;
  pointer-events: none;
}

.end-test-confirm-button {
  border: 1px solid rgba(229, 82, 91, 0.18);
  color: #ffffff;
  background: linear-gradient(135deg, #ff6670 0%, #ea4b58 100%);
  box-shadow: 0 10px 22px rgba(229, 82, 91, 0.18);
}

.end-test-cancel-button {
  border: 1px solid rgba(49, 93, 246, 0.14);
  color: #315df6;
  background: #eef3ff;
  box-shadow: none;
}

/* Official-style item navigation, adapted to the current blue/white UI. */
.exam-navigation-dialog-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  padding: 28px;
  display: grid;
  place-items: center;
  background: rgba(19, 29, 54, 0.58);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}

.exam-navigation-dialog {
  width: min(1060px, 100%);
  max-height: calc(100vh - 56px);
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 28px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: rgba(247, 250, 255, 0.99);
  box-shadow: 0 30px 90px rgba(19, 29, 54, 0.32);
}

.exam-navigation-dialog-header {
  position: relative;
  padding: 2px 52px 20px 2px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.exam-navigation-dialog-eyebrow {
  color: #315df6;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.18em;
}

.exam-navigation-dialog-header h2 {
  margin: 5px 0 0;
  color: #16213d;
  font-size: 28px;
  font-weight: 850;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.exam-navigation-dialog-header p {
  margin: 7px 0 0;
  color: #7d89a2;
  font-size: 13px;
  font-weight: 650;
}

.exam-navigation-dialog-close {
  position: absolute;
  top: 0;
  right: 0;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #8d99b0;
  background: #eaf0fb;
  font-size: 25px;
  font-weight: 700;
  line-height: 1;
}

.exam-navigation-dialog-content {
  min-height: 0;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 14px;
}

.exam-navigation-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.exam-navigation-summary > span {
  min-height: 70px;
  padding: 12px 15px;
  border: 1px solid rgba(49, 93, 246, 0.08);
  border-radius: 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(45, 67, 128, 0.055);
}

.exam-navigation-summary strong {
  color: #16213d;
  font-size: 25px;
  font-weight: 850;
}

.exam-navigation-summary small {
  color: #8793aa;
  font-size: 12px;
  font-weight: 750;
}

.exam-navigation-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  color: #7c88a0;
  font-size: 12px;
  font-weight: 700;
}

.exam-navigation-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.exam-navigation-legend i,
.exam-navigation-item-status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  background: #c5cede;
}

.exam-navigation-legend .is-current {
  background: #315df6;
}

.exam-navigation-legend .is-answered,
.exam-navigation-row.is-answered .exam-navigation-item-status i {
  background: #29bd8b;
}

.exam-navigation-legend .is-unanswered,
.exam-navigation-row.is-unanswered .exam-navigation-item-status i {
  background: #c5cede;
}

.exam-navigation-legend .is-marked {
  background: #8b6ae7;
}

.exam-navigation-table {
  min-height: 0;
  border: 1px solid rgba(49, 93, 246, 0.09);
  border-radius: 19px;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  overflow: hidden;
  background: #ffffff;
}

.exam-navigation-table-head {
  min-height: 42px;
  padding: 0 10px 0 14px;
  display: grid;
  grid-template-columns: 94px 112px minmax(0, 1fr) 54px;
  align-items: center;
  gap: 8px;
  color: #929db2;
  background: #f5f8fe;
  font-size: 11px;
  font-weight: 800;
}

.exam-navigation-table-head span:last-child {
  text-align: center;
}

.exam-navigation-list {
  min-height: 180px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-color: #cbd7ed transparent;
}

.exam-navigation-row {
  min-height: 58px;
  padding: 0 10px 0 0;
  border-bottom: 1px solid #eef2f8;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 54px;
  align-items: stretch;
  gap: 6px;
  background: #ffffff;
}

.exam-navigation-row:last-child {
  border-bottom: 0;
}

.exam-navigation-row.is-current {
  background: linear-gradient(90deg, #edf3ff 0%, #f4f8ff 100%);
  box-shadow: inset 4px 0 0 #315df6;
}

.exam-navigation-row-main {
  min-width: 0;
  padding: 8px 0 8px 14px;
  border: 0;
  display: grid;
  grid-template-columns: 24px 62px 112px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  color: inherit;
  background: transparent;
  text-align: left;
}

.exam-navigation-row-main:hover {
  background: rgba(49, 93, 246, 0.045);
}

.exam-navigation-current-indicator {
  color: #315df6;
  font-size: 24px;
  font-weight: 900;
  text-align: center;
}

.exam-navigation-item-number {
  color: #16213d;
  font-size: 14px;
  font-weight: 850;
}

.exam-navigation-item-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #78859d;
  font-size: 12px;
  font-weight: 750;
}

.exam-navigation-item-copy {
  min-width: 0;
  overflow: hidden;
  color: #68758e;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.exam-navigation-mark-button {
  width: 38px;
  height: 38px;
  margin: auto;
  padding: 9px;
  border: 1px solid #dce4f2;
  border-radius: 12px;
  color: #a5b0c3;
  background: #f8faff;
}

.exam-navigation-mark-button svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.exam-navigation-mark-button.is-active {
  border-color: rgba(139, 106, 231, 0.18);
  color: #7554d8;
  background: #f0eaff;
}

.exam-navigation-dialog-footer {
  padding-top: 18px;
  display: flex;
  justify-content: flex-end;
}

.exam-navigation-dialog-done {
  width: 124px;
  height: 46px;
  border: 0;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, #4773ff, #315df6);
  box-shadow: 0 10px 22px rgba(49, 93, 246, 0.2);
  font-size: 14px;
  font-weight: 800;
}

@media (max-width: 760px) {
  .exam-navigation-dialog-overlay {
    padding: 12px;
  }

  .exam-navigation-dialog {
    max-height: calc(100dvh - 24px);
    padding: 20px 14px 16px;
    border-radius: 24px;
  }

  .exam-navigation-dialog-header {
    padding: 0 44px 16px 2px;
  }

  .exam-navigation-dialog-header h2 {
    font-size: 25px;
  }

  .exam-navigation-dialog-header p {
    font-size: 12px;
  }

  .exam-navigation-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .exam-navigation-summary > span {
    min-height: 58px;
    padding: 10px 12px;
    border-radius: 15px;
  }

  .exam-navigation-summary strong {
    font-size: 21px;
  }

  .exam-navigation-legend {
    gap: 7px 13px;
    font-size: 11px;
  }

  .exam-navigation-table {
    border-radius: 17px;
  }

  .exam-navigation-table-head {
    display: none;
  }

  .exam-navigation-list {
    min-height: 210px;
  }

  .exam-navigation-row {
    min-height: 68px;
    padding-right: 5px;
    grid-template-columns: minmax(0, 1fr) 44px;
  }

  .exam-navigation-row-main {
    padding: 9px 0 9px 10px;
    grid-template-columns: 16px 42px minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 3px 7px;
  }

  .exam-navigation-current-indicator {
    grid-column: 1;
    grid-row: 1 / 3;
    font-size: 20px;
  }

  .exam-navigation-item-number {
    grid-column: 2;
    grid-row: 1 / 3;
    font-size: 13px;
  }

  .exam-navigation-item-status {
    grid-column: 3;
    grid-row: 1;
    font-size: 11px;
  }

  .exam-navigation-item-copy {
    grid-column: 3;
    grid-row: 2;
    font-size: 11px;
  }

  .exam-navigation-mark-button {
    width: 34px;
    height: 34px;
    padding: 8px;
    border-radius: 11px;
  }

  .exam-navigation-dialog-footer {
    padding-top: 13px;
  }

  .exam-navigation-dialog-done {
    width: 100%;
    height: 46px;
  }

  .end-test-dialog-overlay {
    padding: 18px;
  }

  .exam-time-up-dialog-overlay {
    padding: 18px;
  }

  .exam-time-up-dialog {
    padding: 26px 20px 22px;
    border-radius: 24px;
  }

  .exam-time-up-dialog-art {
    width: 174px;
    height: 126px;
    margin-bottom: 8px;
  }

  .exam-time-up-dialog-art img {
    width: 126px;
    height: 126px;
  }

  .exam-time-up-dialog h2 {
    font-size: 25px;
  }

  .exam-time-up-dialog footer {
    margin-top: 21px;
  }

  .end-test-dialog {
    width: 100%;
    max-height: calc(100vh - 36px);
    padding: 30px 20px 22px;
    border-radius: 24px;
  }

  body[data-locale="en-GB"] .end-test-dialog {
    min-width: 325.890625px;
  }

  .end-test-dialog-header h2 {
    font-size: 24px;
  }

  .end-test-dialog-footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .end-test-confirm-button,
  .end-test-cancel-button {
    height: 48px;
    min-height: 48px;
    font-size: 14px;
  }
}

.exam-confirm-dialog footer {
  margin-top: 25px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

#app-notice-dialog .exam-confirm-dialog footer {
  display: flex;
  justify-content: center;
}

#app-notice-dialog .exam-confirm-dialog-button {
  width: min(183px, 100%);
}

.exam-confirm-dialog-button {
  min-height: 48px;
  padding: 0 14px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 800;
}

.exam-confirm-dialog-cancel {
  border: 1px solid rgba(49, 93, 246, 0.14);
  color: #315df6;
  background: #f1f5ff;
}

.exam-confirm-dialog-primary {
  border: 0;
  color: #ffffff;
  background: linear-gradient(135deg, #4773ff, #315df6);
  box-shadow: 0 10px 22px rgba(49, 93, 246, 0.22);
}

.learning-materials-login-gate-dialog {
  box-sizing: border-box;
  width: min(460px, 100%);
}

.learning-materials-login-gate-dialog.is-vip-gate .learning-materials-login-gate-icon {
  color: #8a5cf6;
  background: linear-gradient(145deg, #f2ecff, #e7eefe);
  box-shadow: 0 12px 28px rgba(112, 78, 220, 0.15);
}

.learning-materials-login-gate-dialog.is-vip-gate .learning-materials-login-gate-kicker {
  color: #7657d6;
}

.learning-materials-login-gate-dialog.is-trial-gate .learning-materials-login-gate-icon {
  color: #257e72;
  background: linear-gradient(145deg, #e6faf5, #e9f4ff);
  box-shadow: 0 12px 28px rgba(37, 126, 114, 0.13);
}

.learning-materials-login-gate-dialog.is-trial-gate .learning-materials-login-gate-kicker {
  color: #257e72;
}

.learning-materials-login-gate-dialog footer.is-single-action {
  grid-template-columns: 1fr;
}

.learning-materials-login-gate-dialog button[hidden] {
  display: none;
}

.learning-materials-login-gate-icon svg {
  width: 31px;
  height: 31px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.exam-confirm-dialog .learning-materials-login-gate-kicker {
  margin: 0 0 8px;
  color: #95a0b6;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.2;
  letter-spacing: 0.16em;
}

.learning-materials-login-gate-later {
  margin-top: 17px;
  padding: 4px 10px;
  border: 0;
  color: #7d89a2;
  background: transparent;
  font-size: 13px;
  font-weight: 750;
}

.learning-materials-login-gate-later:hover {
  color: #315df6;
}

@media (max-width: 760px) {
  body[data-active-screen="instructions"][data-activity-mode="exam"] .wide-stage[data-screen="instructions"],
  body[data-active-screen="exam"][data-activity-mode="exam"] .wide-stage[data-screen="exam"] {
    height: 100dvh !important;
    padding: 0 !important;
  }

  body[data-active-screen="instructions"][data-activity-mode="exam"] .wide-stage[data-screen="instructions"] .wide-shell,
  body[data-active-screen="exam"][data-activity-mode="exam"] .wide-stage[data-screen="exam"] .wide-shell {
    height: 100dvh !important;
    padding: 9px 10px 10px !important;
  }

  body[data-active-screen="exam"][data-activity-mode="exam"] .exam-toolbar .toolbar-right {
    width: 100%;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) 76px;
    gap: 6px;
    overflow: visible;
  }

  body[data-active-screen="exam"][data-activity-mode="exam"] .exam-toolbar .toolbar-right > * {
    width: 100%;
    min-width: 0;
    max-width: none;
    height: 40px;
    padding-inline: 5px;
    font-size: 12px;
  }

  body[data-active-screen="exam"][data-activity-mode="exam"] .exam-toolbar .timer-pill {
    order: initial;
  }

  .exam-confirm-dialog-overlay {
    padding: 18px;
    align-items: center;
  }

  .exam-confirm-dialog {
    padding: 30px 20px 22px;
    border-radius: 24px;
  }

  .exam-confirm-dialog-icon {
    width: 58px;
    height: 58px;
    margin-bottom: 15px;
    border-radius: 18px;
  }

  .exam-confirm-dialog h2 {
    font-size: 23px;
  }

  .exam-confirm-dialog p {
    font-size: 14px;
  }

  .exam-confirm-dialog footer {
    grid-template-columns: 1fr;
  }
}

/* Grade 5 mock-exam landing page: match the blue/white product UI. */
body[data-active-screen="landing"] {
  color: var(--home-ink);
  background: #f7f8fc;
}

body[data-active-screen="landing"] .mock-app {
  background:
    radial-gradient(circle at 8% 0%, rgba(120, 185, 255, 0.14), transparent 28rem),
    radial-gradient(circle at 92% 24%, rgba(175, 153, 255, 0.1), transparent 25rem),
    #f7f8fc;
}

body[data-active-screen="landing"] .landing-stage {
  min-height: 100svh;
  padding: 28px 24px 48px;
  background: transparent;
}

body[data-active-screen="landing"] .landing-shell {
  display: grid;
  width: 100%;
  max-width: 1280px;
  min-width: 0;
  min-height: 0;
  margin-inline: auto;
  gap: 18px;
  border: 0;
  background: transparent;
}

body[data-active-screen="landing"] .landing-header {
  min-height: 0;
  padding: 18px 24px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--home-shadow);
}

body[data-active-screen="landing"] .landing-brand {
  color: #315df6;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body[data-active-screen="landing"] .landing-title-band {
  position: relative;
  overflow: hidden;
  padding: 34px 36px;
  border: 0;
  border-radius: 30px;
  background: linear-gradient(135deg, #315df6 0%, #3e79ee 100%);
  box-shadow: 0 22px 48px rgba(49, 93, 246, 0.2);
}

body[data-active-screen="landing"] .landing-title-band::after {
  position: absolute;
  right: -78px;
  bottom: -126px;
  width: 310px;
  height: 310px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.055);
  content: "";
}

body[data-active-screen="landing"] .landing-page-title {
  position: relative;
  z-index: 1;
  max-width: 760px;
  color: #ffffff;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.035em;
}

body[data-active-screen="landing"] .landing-info-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  align-items: center;
  gap: 28px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--home-shadow);
}

body[data-active-screen="landing"] .landing-section-title {
  color: var(--home-ink);
  font-size: 23px;
  font-weight: 850;
  letter-spacing: -0.02em;
}

body[data-active-screen="landing"] .landing-meta {
  height: 178px;
}

body[data-active-screen="landing"] .landing-meta-list {
  margin-top: 20px;
  grid-template-columns: 116px minmax(0, 1fr);
  column-gap: 26px;
  row-gap: 12px;
}

body[data-active-screen="landing"] .landing-meta-label,
body[data-active-screen="landing"] .landing-meta-value {
  font-size: 15px;
  line-height: 1.5;
}

body[data-active-screen="landing"] .landing-meta-label {
  color: #8a94aa;
  font-weight: 700;
}

body[data-active-screen="landing"] .landing-meta-value {
  color: var(--home-ink);
  font-weight: 750;
}

body[data-locale="en-GB"][data-active-screen="landing"] .landing-meta-list {
  grid-template-columns: 150px minmax(0, 1fr);
  column-gap: 18px;
}

body[data-locale="en-GB"][data-active-screen="landing"] :is(
  .landing-meta-label,
  .landing-meta-value
) {
  font-size: 14px;
}

body[data-active-screen="landing"] .landing-start-panel {
  width: 100%;
  padding: 0;
}

body[data-active-screen="landing"] .landing-start-button {
  width: 100%;
  min-width: 0;
  height: 56px;
  border-radius: 17px;
  background: linear-gradient(135deg, #4773ff 0%, #315df6 100%);
  font-size: 17px;
  font-weight: 800;
  box-shadow: 0 14px 28px rgba(49, 93, 246, 0.22);
}

body[data-active-screen="landing"] .landing-features-panel {
  margin: 0;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--home-shadow);
}

body[data-active-screen="landing"] .landing-feature-grid {
  counter-reset: landing-feature;
  gap: 14px;
}

body[data-active-screen="landing"] .landing-feature-card {
  counter-increment: landing-feature;
  height: 112px;
  min-height: 112px;
  flex-direction: column;
  gap: 12px;
  padding: 18px 14px;
  border: 1px solid rgba(49, 93, 246, 0.06);
  border-radius: 20px;
  color: #4d5870;
  background: #f1f5ff;
  font-size: 14px;
  font-weight: 750;
}

body[data-locale="en-GB"][data-active-screen="landing"] .landing-feature-card {
  gap: 8px;
  padding: 14px;
  font-size: 12px;
  line-height: 1.35;
}

body[data-active-screen="landing"] .landing-feature-card:nth-child(2) {
  background: #f2ecff;
}

body[data-active-screen="landing"] .landing-feature-card:nth-child(3) {
  background: #eafaf4;
}

body[data-active-screen="landing"] .landing-feature-card:nth-child(4) {
  background: #eaf7ff;
}

body[data-active-screen="landing"] .landing-feature-card::before {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 12px;
  color: #315df6;
  background: rgba(255, 255, 255, 0.8);
  content: counter(landing-feature, decimal-leading-zero);
  font-size: 11px;
  font-weight: 900;
}

body[data-active-screen="landing"] .landing-rules-section {
  height: 115.53125px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--home-line);
}

body[data-active-screen="landing"] .landing-rules-title {
  color: var(--home-ink);
  font-size: 19px;
  font-weight: 850;
}

body[data-active-screen="landing"] .landing-rules-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 28px;
  margin: 15px 0 0;
  padding-left: 20px;
  color: #717b91;
  font-size: 14px;
}

@media (min-width: 761px) and (max-width: 1180px) {
  body[data-active-screen="landing"] .landing-stage {
    width: 100%;
    padding-inline: 20px;
    overflow-x: hidden;
  }

  body[data-active-screen="landing"] .landing-shell {
    width: 100%;
    max-width: 100%;
  }

  body[data-active-screen="landing"] .landing-info-panel {
    grid-template-columns: minmax(0, 1fr) minmax(190px, 28%);
  }

  body[data-active-screen="landing"] .landing-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-locale="en-GB"][data-active-screen="landing"] .landing-rules-section {
    padding-top: 14px;
  }

  body[data-locale="en-GB"][data-active-screen="landing"] .landing-rules-title {
    font-size: 17px;
  }

  body[data-locale="en-GB"][data-active-screen="landing"] .landing-rules-list {
    gap: 4px 20px;
    margin-top: 8px;
    padding-left: 17px;
    font-size: 11px;
    line-height: 1.3;
  }
}

@media (max-width: 760px) {
  body[data-active-screen="landing"] .landing-stage {
    padding: 14px 14px 34px;
  }

  body[data-active-screen="landing"] .landing-shell {
    gap: 14px;
  }

  body[data-active-screen="landing"] .landing-header {
    padding: 16px 18px;
    border-radius: 19px;
  }

  body[data-active-screen="landing"] .landing-brand {
    font-size: 11px;
  }

  body[data-active-screen="landing"] .landing-title-band {
    padding: 26px 22px;
    border-radius: 24px;
  }

  body[data-active-screen="landing"] .landing-page-title {
    font-size: 27px;
  }

  body[data-active-screen="landing"] .landing-info-panel {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 24px 20px;
    border-radius: 24px;
  }

  body[data-active-screen="landing"] .landing-section-title {
    font-size: 22px;
  }

  body[data-active-screen="landing"] .landing-meta-list {
    grid-template-columns: minmax(92px, 36%) minmax(0, 1fr);
    gap: 11px 12px;
  }

  body[data-active-screen="landing"] .landing-meta {
    height: 167px;
  }

  body[data-active-screen="landing"] .landing-meta-label,
  body[data-active-screen="landing"] .landing-meta-value {
    font-size: 14px;
  }

  body[data-locale="en-GB"][data-active-screen="landing"] .landing-meta-list {
    grid-template-columns: minmax(132px, 46%) minmax(0, 1fr);
    gap: 9px 10px;
  }

  body[data-locale="en-GB"][data-active-screen="landing"] :is(
    .landing-meta-label,
    .landing-meta-value
  ) {
    font-size: 12px;
    line-height: 1.35;
  }

  body[data-active-screen="landing"] .landing-start-button {
    height: 54px;
  }

  body[data-active-screen="landing"] .landing-features-panel {
    padding: 20px;
    border-radius: 24px;
  }

  body[data-active-screen="landing"] .landing-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  body[data-active-screen="landing"] .landing-feature-card {
    min-height: 126px;
    padding: 16px 10px;
    border-radius: 18px;
    font-size: 13px;
  }

  body[data-active-screen="landing"] .landing-rules-section {
    height: 171.0625px;
    margin-top: 20px;
    padding-top: 20px;
  }

  body[data-active-screen="landing"] .landing-rules-list {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  body[data-locale="en-GB"][data-active-screen="landing"] .landing-rules-section {
    padding-top: 16px;
  }

  body[data-locale="en-GB"][data-active-screen="landing"] .landing-rules-title {
    font-size: 17px;
  }

  body[data-locale="en-GB"][data-active-screen="landing"] .landing-rules-list {
    gap: 5px;
    margin-top: 10px;
    padding-left: 17px;
    font-size: 11px;
    line-height: 1.3;
  }
}

/* Every INFO surface shares the exact same exam toolbar as question pages. */
body[data-active-screen="instructions"][data-activity-mode="exam"] [data-action="open-nav"],
body[data-active-screen="exam"][data-activity-mode="exam"][data-exam-fragment^="Info_"] [data-action="open-nav"] {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

body[data-active-screen="exam"][data-activity-mode="exam"][data-exam-fragment^="Info_"] [data-action="restart-flow"] {
  display: none !important;
}

@media (max-width: 760px) {
  body[data-active-screen="instructions"][data-activity-mode="exam"] .wide-stage[data-screen="instructions"] {
    height: 100dvh !important;
    padding: 0 !important;
  }

  body[data-active-screen="instructions"][data-activity-mode="exam"] .wide-stage[data-screen="instructions"] .wide-shell {
    width: 100% !important;
    height: 100dvh !important;
    padding: 9px 10px 10px !important;
  }

  body[data-active-screen="instructions"][data-activity-mode="exam"] .instructions-toolbar {
    width: 100% !important;
    min-height: 0 !important;
    padding: 12px !important;
    border-radius: 18px !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 8px !important;
  }

  body[data-active-screen="instructions"][data-activity-mode="exam"] .instructions-toolbar-left {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 7px !important;
  }

  body[data-active-screen="instructions"][data-activity-mode="exam"] .instructions-toolbar .toolbar-brand {
    grid-column: 1 / -1 !important;
    margin: 0 0 2px !important;
    font-size: 14px !important;
  }

  body[data-active-screen="instructions"][data-activity-mode="exam"] .instructions-toolbar-left .toolbar-button {
    display: inline-flex !important;
    width: 100% !important;
    height: 40px !important;
    padding-inline: 8px !important;
    align-items: center;
    justify-content: center;
  }

  body[data-active-screen="instructions"][data-activity-mode="exam"] .instructions-toolbar-right {
    width: 100% !important;
    padding: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) 76px !important;
    gap: 7px !important;
  }

  body[data-active-screen="instructions"][data-activity-mode="exam"] .instructions-toolbar-right .toolbar-button,
  body[data-active-screen="instructions"][data-activity-mode="exam"] .instructions-timer-pill {
    display: inline-flex !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 40px !important;
    padding-inline: 6px !important;
    align-items: center;
    justify-content: center;
    order: initial !important;
  }

  body[data-active-screen="exam"][data-activity-mode="exam"][data-exam-fragment^="Info_"] .wide-stage[data-screen="exam"] {
    height: 100dvh !important;
    padding: 0 !important;
  }

  body[data-active-screen="exam"][data-activity-mode="exam"][data-exam-fragment^="Info_"] .wide-stage[data-screen="exam"] .wide-shell {
    width: 100% !important;
    height: 100dvh !important;
    padding: 9px 10px 10px !important;
  }

  body[data-active-screen="exam"][data-activity-mode="exam"][data-exam-fragment^="Info_"] .exam-toolbar {
    width: 100% !important;
    min-height: 0 !important;
    padding: 12px !important;
    border-radius: 18px !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 8px !important;
  }

  body[data-active-screen="exam"][data-activity-mode="exam"][data-exam-fragment^="Info_"] .toolbar-left {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 7px !important;
  }

  body[data-active-screen="exam"][data-activity-mode="exam"][data-exam-fragment^="Info_"] .toolbar-brand {
    grid-column: 1 / -1 !important;
    margin: 0 0 2px !important;
    font-size: 14px !important;
  }

  body[data-active-screen="exam"][data-activity-mode="exam"][data-exam-fragment^="Info_"] .toolbar-left .toolbar-button {
    width: 100% !important;
    height: 40px !important;
    padding-inline: 8px !important;
  }

  body[data-active-screen="exam"][data-activity-mode="exam"][data-exam-fragment^="Info_"] .toolbar-right {
    width: 100% !important;
    padding: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) 76px !important;
    gap: 7px !important;
    overflow: visible !important;
  }

  body[data-active-screen="exam"][data-activity-mode="exam"][data-exam-fragment^="Info_"] .toolbar-right > * {
    width: 100% !important;
    min-width: 0 !important;
    height: 40px !important;
    margin: 0 !important;
    padding-inline: 7px !important;
    order: initial !important;
  }

  body[data-active-screen="exam"][data-activity-mode="exam"][data-exam-fragment^="Info_"] [data-action="go-theme"],
  body[data-active-screen="exam"][data-activity-mode="exam"][data-exam-fragment^="Info_"] [data-action="return-home-save-draft"],
  body[data-active-screen="exam"][data-activity-mode="exam"][data-exam-fragment^="Info_"] [data-action="end-test"],
  body[data-active-screen="exam"][data-activity-mode="exam"][data-exam-fragment^="Info_"] .timer-pill {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }

  /* Keep both INFO toolbars pixel-identical to the regular question toolbar. */
  body[data-active-screen="instructions"][data-activity-mode="exam"] .instructions-toolbar-right,
  body[data-active-screen="exam"][data-activity-mode="exam"][data-exam-fragment^="Info_"] .toolbar-right {
    gap: 6px !important;
  }

  body[data-active-screen="instructions"][data-activity-mode="exam"] .instructions-toolbar-right > *,
  body[data-active-screen="exam"][data-activity-mode="exam"][data-exam-fragment^="Info_"] .toolbar-right > * {
    height: 40px !important;
    padding-inline: 5px !important;
    font-size: 12px !important;
    order: initial !important;
  }

  body[data-active-screen="instructions"][data-activity-mode="exam"] :is(
    [data-action="back-theme"],
    [data-action="go-exam-start"]
  ),
  body[data-active-screen="exam"][data-activity-mode="exam"][data-exam-fragment^="Info_"] :is(
    #exam-prev-button,
    #exam-next-button
  ) {
    display: block !important;
  }

  body[data-active-screen="exam"][data-activity-mode="exam"][data-exam-fragment^="Info_"] .toolbar-button {
    border-radius: 12px !important;
    line-height: normal !important;
  }

  body[data-active-screen="exam"][data-activity-mode="exam"][data-exam-fragment^="Info_"] .timer-pill {
    border-radius: 12px !important;
  }

  body[data-active-screen="instructions"][data-activity-mode="exam"] .instructions-toolbar-left .toolbar-button:is(
    [data-action="back-theme"],
    [data-action="go-exam-start"]
  ) {
    display: block !important;
  }

  body[data-active-screen="instructions"][data-activity-mode="exam"] .instructions-toolbar-right :is(
    .toolbar-button,
    .instructions-timer-pill
  ) {
    padding-inline: 5px !important;
  }

  body[data-active-screen="instructions"][data-activity-mode="exam"] .instructions-toolbar-right :is(
    [data-action="return-home-save-draft"],
    [data-action="end-test"]
  ),
  body[data-active-screen="exam"][data-activity-mode="exam"][data-exam-fragment^="Info_"] .toolbar-right :is(
    [data-action="return-home-save-draft"],
    [data-action="end-test"]
  ) {
    display: block !important;
  }
}

/* Results: mascot score reveal followed by a calm blue-and-white detail page. */
body[data-active-screen="results"],
body[data-active-screen="results"] .mock-app {
  background:
    radial-gradient(circle at 88% 0%, rgba(121, 197, 255, 0.2), transparent 32%),
    linear-gradient(155deg, #f6f9ff 0%, #f1f4fc 100%);
}

body[data-active-screen="results"] .results-stage {
  min-height: 100vh;
  padding: 24px;
  overflow: auto;
  color: #16213d;
  background: transparent;
}

body[data-active-screen="results"] .results-page {
  width: min(1280px, 100%);
  min-width: 0;
  margin: 0 auto;
  padding: 0 0 40px;
  display: grid;
  gap: 18px;
  color: #16213d;
  font-size: 15px;
  line-height: 1.5;
}

body[data-active-screen="results"] .results-header,
body[data-active-screen="results"] .results-summary-grid,
body[data-active-screen="results"] .results-category-section,
body[data-active-screen="results"] .results-practice-guide,
body[data-active-screen="results"] .results-answer-section {
  border: 1px solid rgba(43, 60, 100, 0.07);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 14px 38px rgba(45, 67, 128, 0.08);
}

body[data-active-screen="results"] .results-header {
  min-height: 0;
  padding: 26px 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 22px 30px;
}

body[data-active-screen="results"] .results-eyebrow,
body[data-active-screen="results"] .results-section-heading > p {
  margin: 0 0 5px;
  color: #315df6;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

body[data-active-screen="results"] .results-header h1 {
  margin: 0;
  color: #16213d;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 880;
  line-height: 1.15;
  letter-spacing: -0.045em;
}

body[data-active-screen="results"] .results-saved-message {
  margin: 10px 0 0;
  padding: 0;
  border: 0;
  color: #7b879f;
  font-size: 14px;
  font-weight: 650;
}

body[data-active-screen="results"] .results-home-button {
  min-width: 118px;
  height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(49, 93, 246, 0.14);
  border-radius: 14px;
  color: #315df6;
  background: #eef3ff;
  font-size: 14px;
  font-weight: 800;
}

body[data-active-screen="results"] .results-meta {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid #edf1f8;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

body[data-active-screen="results"] .results-meta div {
  min-width: 0;
  padding: 14px 16px;
  border-radius: 16px;
  display: block;
  background: #f6f8fd;
}

body[data-active-screen="results"] .results-meta dt {
  color: #94a0b7;
  font-size: 12px;
  font-weight: 750;
}

body[data-active-screen="results"] .results-meta dd {
  margin: 5px 0 0;
  color: #26324d;
  font-size: 14px;
  font-weight: 800;
}

body[data-active-screen="results"] .results-summary-grid {
  padding: 22px;
  border-bottom: 0;
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(360px, 1.1fr);
  gap: 18px;
}

body[data-active-screen="results"] .results-score-panel {
  min-height: 226px;
  padding: 26px;
  border-radius: 21px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  color: #ffffff;
  background:
    radial-gradient(circle at 92% 0%, rgba(255, 255, 255, 0.2), transparent 30%),
    linear-gradient(135deg, #3867f7 0%, #3157dc 100%);
  text-align: left;
}

body[data-active-screen="results"] .results-score-label {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 800;
}

body[data-active-screen="results"] .results-score-number {
  margin-top: 4px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

body[data-active-screen="results"] .results-score-number strong {
  width: auto;
  height: auto;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  display: inline;
  color: #ffffff;
  background: transparent;
  box-shadow: none;
  font-size: clamp(58px, 8vw, 84px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.07em;
}

body[data-active-screen="results"] .results-score-number span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 20px;
  font-weight: 800;
}

body[data-active-screen="results"] .results-achievement {
  margin-top: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  color: #315df6;
  background: #ffffff;
  font-size: 13px;
  font-weight: 850;
}

body[data-active-screen="results"] .results-score-panel > .results-score-bar {
  width: 100%;
  height: 9px;
  margin-top: 24px;
  border: 0;
  border-radius: 999px;
  display: block;
  background: rgba(255, 255, 255, 0.22);
}

body[data-active-screen="results"] .results-score-panel > .results-score-bar .results-score-fill {
  z-index: 0;
  background: #ffffff;
}

body[data-active-screen="results"] .results-summary-copy {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

body[data-active-screen="results"] .results-summary-copy article {
  min-width: 0;
  padding: 22px 16px;
  border: 1px solid rgba(49, 93, 246, 0.06);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: #f1f5ff;
  text-align: center;
}

body[data-active-screen="results"] .results-summary-copy article:nth-child(2) {
  background: #f2ecff;
}

body[data-active-screen="results"] .results-summary-copy article:nth-child(3) {
  background: #eafaf4;
}

body[data-active-screen="results"] .results-summary-copy strong {
  color: #16213d;
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 900;
  line-height: 1;
}

body[data-active-screen="results"] .results-summary-copy span {
  color: #7f8ba2;
  font-size: 13px;
  font-weight: 750;
}

body[data-active-screen="results"] .results-category-section,
body[data-active-screen="results"] .results-answer-section {
  padding: 26px 28px;
}

body[data-active-screen="results"] .results-section-heading h2,
body[data-active-screen="results"] .results-category-section h2,
body[data-active-screen="results"] .results-answer-section h2 {
  margin: 0;
  padding: 0;
  color: #16213d;
  font-size: 23px;
  font-weight: 880;
}

body[data-active-screen="results"] .results-section-list {
  width: 100%;
  margin: 20px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 22px;
}

body[data-active-screen="results"] .results-section-row {
  min-height: 62px;
  padding: 12px 14px;
  border-radius: 16px;
  grid-template-columns: minmax(120px, 1fr) minmax(150px, 1.2fr);
  gap: 14px;
  background: #f7f9fd;
}

body[data-active-screen="results"] .results-section-name {
  color: #26324d;
  font-size: 14px;
  font-weight: 800;
}

body[data-active-screen="results"] .results-section-score {
  width: 100%;
  height: 28px;
  border: 0;
  border-radius: 999px;
  color: #26324d;
  background: #e9eef8;
}

body[data-active-screen="results"] .results-section-score .results-score-fill {
  background: linear-gradient(90deg, #73a4ff, #315df6);
}

body[data-active-screen="results"] .results-practice-guide {
  margin: 0;
  padding: 26px 28px;
  border-color: rgba(49, 93, 246, 0.08);
  background: rgba(255, 255, 255, 0.97);
}

body[data-active-screen="results"] .results-practice-guide-heading > div > p {
  color: #315df6;
}

body[data-active-screen="results"] .results-practice-guide-heading h2,
body[data-active-screen="results"] .results-practice-card strong {
  color: #16213d;
}

body[data-active-screen="results"] .results-practice-card {
  border-color: rgba(49, 93, 246, 0.08);
  border-radius: 18px;
  background: #f7f9fd;
  box-shadow: none;
}

body[data-active-screen="results"] .results-answer-table-wrap {
  margin-top: 20px;
  border: 1px solid #eaf0f8;
  border-radius: 18px;
  overflow: auto;
}

body[data-active-screen="results"] .results-answer-table {
  min-width: 880px;
}

body[data-active-screen="results"] .results-answer-row {
  background: #f8faff;
  border-color: #ffffff;
}

body[data-active-screen="results"] .results-answer-row:nth-child(odd) {
  background: #ffffff;
}

.results-score-reveal-overlay {
  position: fixed;
  inset: 0;
  z-index: 12000;
  padding: 24px;
  display: grid;
  place-items: center;
  background: rgba(18, 28, 52, 0.58);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.results-score-reveal-dialog {
  width: min(480px, 100%);
  padding: 32px 34px 30px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.99);
  box-shadow: 0 34px 90px rgba(18, 28, 52, 0.34);
  text-align: center;
  animation: results-score-reveal-in 460ms cubic-bezier(0.2, 0.9, 0.22, 1.2) both;
}

.results-score-reveal-art {
  position: relative;
  width: 210px;
  height: 174px;
  margin: -8px auto 2px;
}

.results-score-reveal-art img {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 160px;
  height: auto;
  transform: translateX(-50%);
  filter: drop-shadow(0 18px 26px rgba(49, 93, 246, 0.22));
  animation: results-mascot-bounce 900ms 180ms ease both;
}

.results-score-reveal-note,
.results-score-reveal-spark {
  position: absolute;
  z-index: 1;
  font-weight: 900;
  animation: results-note-float 1.6s ease-in-out infinite alternate;
}

.results-score-reveal-note-one {
  left: 6px;
  top: 54px;
  color: #8367df;
  font-size: 28px;
}

.results-score-reveal-note-two {
  right: 2px;
  bottom: 28px;
  color: #315df6;
  font-size: 30px;
  animation-delay: 240ms;
}

.results-score-reveal-spark {
  right: 24px;
  top: 24px;
  color: #20ba92;
  font-size: 27px;
  animation-delay: 420ms;
}

.results-score-reveal-kicker {
  margin: 8px 0 0;
  color: #97a3ba;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.14em;
}

.results-score-reveal-score {
  margin-top: 2px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  color: #315df6;
}

.results-score-reveal-score strong {
  font-size: 70px;
  font-weight: 920;
  line-height: 1;
  letter-spacing: -0.07em;
}

.results-score-reveal-score span {
  color: #91a0bb;
  font-size: 22px;
  font-weight: 800;
}

.results-score-reveal-dialog h2 {
  margin: 15px 0 0;
  color: #16213d;
  font-size: 27px;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.04em;
}

.results-score-reveal-dialog > p:not(.results-score-reveal-kicker) {
  margin: 10px auto 0;
  max-width: 350px;
  color: #7c88a0;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.65;
}

.results-score-reveal-dialog button {
  width: 100%;
  height: 52px;
  margin-top: 24px;
  border: 0;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, #4773ff, #315df6);
  box-shadow: 0 14px 28px rgba(49, 93, 246, 0.24);
  font-size: 15px;
  font-weight: 850;
}

@keyframes results-score-reveal-in {
  from { opacity: 0; transform: translateY(32px) scale(0.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes results-mascot-bounce {
  0% { opacity: 0; transform: translateX(-50%) translateY(28px) scale(0.82); }
  55% { opacity: 1; transform: translateX(-50%) translateY(-10px) scale(1.06); }
  75% { transform: translateX(-50%) translateY(3px) scale(0.98); }
  100% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}

@keyframes results-note-float {
  from { transform: translateY(3px) rotate(-5deg); }
  to { transform: translateY(-7px) rotate(5deg); }
}

@media (max-width: 760px) {
  body[data-active-screen="results"] .results-stage {
    min-height: 100svh;
    padding: 12px 12px 28px;
  }

  body[data-active-screen="results"] .results-page {
    gap: 12px;
    padding-bottom: 20px;
  }

  body[data-active-screen="results"] .results-header,
  body[data-active-screen="results"] .results-summary-grid,
  body[data-active-screen="results"] .results-category-section,
  body[data-active-screen="results"] .results-practice-guide,
  body[data-active-screen="results"] .results-answer-section {
    border-radius: 20px;
  }

  body[data-active-screen="results"] .results-header {
    padding: 21px 18px 18px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px 10px;
  }

  body[data-active-screen="results"] .results-header h1 {
    font-size: 26px;
  }

  body[data-active-screen="results"] .results-home-button {
    min-width: 0;
    height: 40px;
    padding-inline: 13px;
    font-size: 13px;
  }

  body[data-active-screen="results"] .results-meta {
    grid-template-columns: 1fr;
    gap: 5px;
    padding-top: 12px;
  }

  body[data-active-screen="results"] .results-meta div {
    padding: 2px 0;
    border-radius: 0;
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    align-items: baseline;
    gap: 8px;
    background: transparent;
  }

  body[data-active-screen="results"] .results-meta dd {
    margin-top: 0;
  }

  body[data-active-screen="results"] .results-summary-grid {
    padding: 14px;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  body[data-active-screen="results"] .results-score-panel {
    min-height: 184px;
    padding: 21px;
  }

  body[data-active-screen="results"] .results-score-number strong {
    font-size: 68px;
  }

  body[data-active-screen="results"] .results-summary-copy {
    gap: 8px;
  }

  body[data-active-screen="results"] .results-summary-copy article {
    padding: 17px 8px;
    border-radius: 16px;
  }

  body[data-active-screen="results"] .results-summary-copy strong {
    font-size: 30px;
  }

  body[data-active-screen="results"] .results-category-section,
  body[data-active-screen="results"] .results-practice-guide,
  body[data-active-screen="results"] .results-answer-section {
    padding: 21px 17px;
  }

  body[data-active-screen="results"] .results-section-list {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 16px;
  }

  body[data-active-screen="results"] .results-section-row {
    min-height: 58px;
    padding: 10px 12px;
    grid-template-columns: minmax(100px, 0.8fr) minmax(150px, 1.2fr);
  }

  body[data-active-screen="results"] .results-practice-guide-heading {
    grid-template-columns: 1fr;
  }

  body[data-active-screen="results"] .results-answer-table-wrap {
    margin-top: 16px;
  }

  .results-score-reveal-overlay {
    padding: 18px;
  }

  .results-score-reveal-dialog {
    padding: 24px 22px 22px;
    border-radius: 28px;
  }

  .results-score-reveal-art {
    width: 190px;
    height: 154px;
  }

  .results-score-reveal-art img {
    width: 142px;
  }

  .results-score-reveal-score strong {
    font-size: 60px;
  }

  .results-score-reveal-dialog h2 {
    font-size: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .results-score-reveal-dialog,
  .results-score-reveal-art img,
  .results-score-reveal-note,
  .results-score-reveal-spark {
    animation: none !important;
  }
}

/* All full-paper instruction pages must scroll naturally on phones. */
@media (max-width: 760px) {
  body[data-active-screen="instructions"][data-activity-mode="exam"] .wide-stage,
  body[data-active-screen="instructions"][data-activity-mode="exam"] .wide-shell,
  body[data-active-screen="instructions"][data-activity-mode="exam"] .instructions-toolbar,
  body[data-active-screen="instructions"][data-activity-mode="exam"] .instructions-main,
  body[data-active-screen="instructions"][data-activity-mode="exam"] .info-main-card-frame,
  body[data-active-screen="instructions"][data-activity-mode="exam"] .info-main-card-content,
  body[data-active-screen="instructions"][data-activity-mode="exam"] .info-main-card-body {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  body[data-active-screen="instructions"][data-activity-mode="exam"] .wide-shell {
    max-width: 100vw !important;
    overflow: hidden;
  }

  body[data-active-screen="instructions"][data-activity-mode="exam"] .instructions-main {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  body[data-active-screen="instructions"][data-activity-mode="exam"] .info-main-card-frame {
    flex: 0 0 auto;
    height: auto !important;
    max-height: none !important;
  }

  body[data-active-screen="instructions"][data-activity-mode="exam"] .info-main-card-content,
  body[data-active-screen="instructions"][data-activity-mode="exam"] .info-main-card-body {
    height: auto !important;
    max-height: none !important;
    overflow: visible;
  }

  body[data-active-screen="instructions"][data-activity-mode="exam"] .bullet-copy,
  body[data-active-screen="instructions"][data-activity-mode="exam"] .bullet-copy li {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}

/*
 * Answer-page card shell cleanup.
 * The legacy structural wrappers must not paint another square surface behind
 * the new rounded question, answer and INFO cards.
 */
body[data-active-screen="exam"][data-activity-mode] .exam-main :is(
  .info-card-stack,
  .q1-card-stack,
  .select-capture-wrap
) {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Keep the real select-page card rounded while its outer capture shell stays clear. */
body[data-active-screen="exam"][data-activity-mode] .exam-main .select-capture-wrap {
  border-radius: 22px;
}

/*
 * Select and drag questions deliberately keep overflow visible for their
 * menus and draggable notation. Round the painted inner surface instead of
 * clipping it, so the established interaction layers remain untouched.
 */
body[data-active-screen="exam"][data-activity-mode] .exam-main .q1-answer-card:is(
  .q7-select-answer-card,
  .select-question-bank-card,
  .drag-answer-card
) {
  border-radius: 22px !important;
}

body[data-active-screen="exam"][data-activity-mode] .exam-main .q1-answer-card:is(
  .q7-select-answer-card,
  .select-question-bank-card,
  .drag-answer-card
) > .q1-answer-card-body {
  border-radius: inherit !important;
}

@media (max-width: 760px) {
  body[data-active-screen="exam"][data-activity-mode] .exam-main .select-capture-wrap {
    border-radius: 18px;
  }

  body[data-active-screen="exam"][data-activity-mode] .exam-main .q1-answer-card:is(
    .q7-select-answer-card,
    .select-question-bank-card,
    .drag-answer-card
  ) {
    border-radius: 18px !important;
  }
}

/*
 * Full-paper bottom bar status colours.
 *
 * Legacy INFO and question-shell selectors in styles.css are intentionally
 * very specific because they control sizing and overflow. Keep those layout
 * rules intact, but make every full-paper page use the same visual treatment
 * as the instruction page. The navigation renderer emits `current` and
 * `completed`; `active` is retained only as a compatibility alias.
 */
body:is(
  [data-active-screen="instructions"],
  [data-active-screen="exam"]
)[data-activity-mode="exam"] .paper-item.completed:not(.current):not(.active) {
  color: #23715c;
  border-color: rgba(35, 113, 92, 0.12);
  background: #dff5ed;
  box-shadow: none;
}

body:is(
  [data-active-screen="instructions"],
  [data-active-screen="exam"]
)[data-activity-mode="exam"] .paper-item:is(.current, .active) {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(180deg, #4b76ff 0%, #315eea 100%);
  box-shadow: inset 0 0 0 1px rgba(25, 66, 191, 0.2);
}

body:is(
  [data-active-screen="instructions"],
  [data-active-screen="exam"]
)[data-activity-mode="exam"] .wide-stage .exam-bottom-row .bottom-action {
  min-width: 92px;
  height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(49, 93, 246, 0.12);
  border-radius: 14px;
  color: #315df6;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 10px 28px rgba(45, 67, 128, 0.07);
  font-weight: 750;
}

body:is(
  [data-active-screen="instructions"],
  [data-active-screen="exam"]
)[data-activity-mode="exam"] .wide-stage .exam-bottom-row .bottom-action:focus-visible {
  outline: 2px solid rgba(49, 93, 246, 0.72);
  outline-offset: 2px;
  box-shadow:
    0 0 0 3px rgba(49, 93, 246, 0.12),
    0 10px 28px rgba(45, 67, 128, 0.07);
}

@media (max-width: 760px) {
  body:is(
    [data-active-screen="instructions"],
    [data-active-screen="exam"]
  )[data-activity-mode="exam"] .wide-stage .exam-bottom-row .bottom-action {
    min-width: 0;
    height: 42px;
    padding: 0 12px;
    border-radius: 13px;
  }
}

/* Match the opening INFO navigation height to every later INFO/question page. */
body[data-active-screen="instructions"][data-activity-mode="exam"]
  .wide-stage[data-screen="instructions"]
  .instructions-bottom-row
  .paper-nav {
  height: 46px;
  min-height: 46px;
}

/*
 * Music-context scores use the engraving width authored in their source data.
 * Keep one sizing mode across desktop, tablet and phone so resizing through
 * 1024px never switches between a responsive SVG and its original width.
 */
body[data-active-screen="exam"][data-activity-mode="exam"]
  .q1-reference-card-body.music-context-reference-fixed-scroll {
  overflow-x: auto !important;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
}

body[data-active-screen="exam"][data-activity-mode="exam"]
  .music-context-reference.is-fixed-staff-scale,
body[data-active-screen="exam"][data-activity-mode="exam"]
  .music-context-reference.is-fixed-staff-scale .music-context-system-staff {
  flex: none;
  max-width: none !important;
}

body[data-active-screen="exam"][data-activity-mode="exam"]
  .music-context-reference.is-fixed-staff-scale .music-context-system-staff svg {
  display: block;
  width: auto !important;
  max-width: none !important;
  height: auto !important;
}

/* Preserve the original full-width assessment workspace on desktop. */
@media (min-width: 1024px) {
  body[data-active-screen="instructions"][data-activity-mode="exam"]
    .wide-stage[data-screen="instructions"]
    .wide-shell,
  body[data-active-screen="exam"][data-activity-mode="exam"]
    .wide-stage[data-screen="exam"]
    .wide-shell,
  body[data-active-screen="exam"][data-activity-mode="single-practice"]
    .wide-stage[data-screen="exam"]
    .wide-shell,
  body[data-active-screen="exam"][data-activity-mode="wrong-review"]
    .wide-stage[data-screen="exam"]
    .wide-shell {
    width: 100% !important;
    max-width: none !important;
    margin-inline: 0 !important;
  }
}

/* Every assessment mode exposes its vertical rail only when its content overflows. */
body[data-active-screen="instructions"][data-exam-session-mode] .exam-main,
body[data-active-screen="exam"][data-exam-session-mode] .exam-main {
  overflow-y: auto;
  scrollbar-gutter: auto;
  scrollbar-width: auto;
}

body[data-active-screen="instructions"][data-exam-session-mode] .exam-main::-webkit-scrollbar,
body[data-active-screen="exam"][data-exam-session-mode] .exam-main::-webkit-scrollbar {
  width: 12px;
}

/* Keep the established phone instruction-card geometry when English wraps. */
body[data-active-screen="recharge"] .membership-payment-unavailable {
  min-height: 73.140625px;
}

body[data-active-screen="recharge"] .membership-plan-section > header {
  height: 45px;
}

body[data-active-screen="recharge"] .membership-plan-card {
  height: 184px;
}

body[data-active-screen="recharge"] .membership-purchase-note {
  min-height: 85px;
}

body[data-active-screen="recharge"] .recharge-benefits h2 {
  height: 25px;
  line-height: 25px;
}

body[data-locale="en-GB"][data-active-screen="recharge"] .membership-plan-duration {
  font-size: 14px;
}

body[data-locale="en-GB"][data-active-screen="recharge"] :is(
  .membership-plan-average,
  .membership-plan-action
) {
  font-size: 10px;
}

body[data-locale="en-GB"]:is(
  [data-active-screen="instructions"],
  [data-active-screen="exam"][data-exam-fragment^="Info_"]
)[data-activity-mode="exam"] .info-main-continue {
  font-size: 8px !important;
  font-weight: 500 !important;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

@media (max-width: 760px) {
  body[data-locale="en-GB"]:is(
    [data-active-screen="instructions"],
    [data-active-screen="exam"]
  )[data-activity-mode="exam"] .exam-toolbar .toolbar-button {
    font-size: 10px !important;
    font-weight: 750 !important;
    line-height: 1.12 !important;
  }

  body[data-active-screen="instructions"][data-activity-mode="exam"] .info-main-card-frame {
    height: 330.265625px !important;
  }

  body[data-locale="en-GB"][data-active-screen="instructions"][data-activity-mode="exam"]
    .info-main-card-frame .bullet-copy {
    margin-bottom: 6px;
    padding-left: 14px;
    font-size: 12px;
    line-height: 1.3;
  }

  body[data-locale="en-GB"][data-active-screen="instructions"][data-activity-mode="exam"]
    .info-main-card-frame .info-main-card-content {
    padding: 10px 12px;
  }

  body[data-locale="en-GB"][data-active-screen="instructions"][data-activity-mode="exam"]
    .info-main-card-frame :is(h1, h2) {
    margin-bottom: 4px;
    font-size: 16px;
    line-height: 1.2;
  }

  body[data-locale="en-GB"][data-active-screen="instructions"][data-activity-mode="exam"]
    .instructions-toolbar .toolbar-button {
    font-size: 10px !important;
  }

  body[data-locale="en-GB"]:is(
    [data-active-screen="instructions"],
    [data-active-screen="exam"][data-exam-fragment^="Info_"]
  )[data-activity-mode="exam"] .info-main-continue {
    font-size: 8px !important;
    font-weight: 500 !important;
    letter-spacing: -0.02em;
    white-space: nowrap;
  }

  body[data-locale="en-GB"]:is(
    [data-active-screen="instructions"],
    [data-active-screen="exam"]
  )[data-activity-mode="exam"] .toolbar-button:is(
    [data-action="go-theme"],
    [data-action="return-home-save-draft"]
  ) {
    padding-inline: 4px !important;
    text-align: center;
    white-space: pre-line !important;
    overflow-wrap: normal;
    line-height: 1.12 !important;
  }

  body[data-active-screen="recharge"] .membership-payment-unavailable {
    min-height: 82.1875px;
  }

  body[data-active-screen="recharge"] .membership-plan-section > header {
    height: 25px;
  }

  body[data-active-screen="recharge"] .membership-plan-card {
    height: 132px;
  }

  body[data-active-screen="recharge"] .membership-purchase-note {
    min-height: 113px;
  }

  body[data-locale="en-GB"][data-active-screen="recharge"] .membership-plan-duration {
    padding-right: 30px;
    font-size: 12px;
  }

  body[data-locale="en-GB"][data-active-screen="recharge"] :is(
    .membership-plan-average,
    .membership-plan-action
  ) {
    font-size: 9px;
  }
}

@media (max-width: 760px) {
  .learning-materials-stage.is-music-library { padding-bottom: 104px; }
  .learning-music-instrument-hub { gap: 9px; margin-top: 11px; }
  .learning-music-instrument-card { min-height: 108px; grid-template-columns: 54px minmax(0,1fr); gap: 12px; padding: 17px 14px; border-radius: 20px; }
  .learning-music-instrument-card .learning-music-piano-icon { width: 52px; height: 52px; border-radius: 16px; }
  .learning-music-instrument-card .learning-music-piano-icon .learning-music-piano-glyph { font-size: 33px; }
  .learning-music-instrument-icon { width: 52px; height: 52px; border-radius: 16px; }
  .learning-music-instrument-icon svg { width: 35px; height: 35px; }
  .learning-music-violin-glyph { font-size: 33px; }
  .learning-music-instrument-card-copy strong { font-size: 19px; }
  .learning-music-instrument-card-copy em { font-size: 8px; }
  .learning-music-instrument-card-status { padding: 6px 8px; font-size: 7px; }
  .learning-music-instrument-card-arrow { display: none; }
  .learning-music-library { gap: 10px; margin-top: 11px; }
  .learning-violin-prototype { gap: 10px; margin-top: 11px; }
  .learning-violin-detail-audio { grid-template-columns: 1fr; }
  .learning-violin-audio-column { gap: 9px; }
  .learning-violin-segmented button { min-height: 42px; padding: 7px 9px; }
  .learning-violin-segmented button strong { font-size: 10px; }
  .learning-violin-segmented button small { font-size: 7px; line-height: 1.35; }
  .learning-violin-score-selector { padding: 9px 14px; }
  .learning-violin-score-paper { width: calc(100% - 28px); min-height: 440px; margin-top: 14px; padding: 24px 18px 20px; border-radius: 13px 13px 0 0; }
  .learning-violin-score-paper > header b { font-size: 19px; }
  .learning-violin-score-system-list { gap: 29px; margin-top: 34px; }
  .learning-violin-score-system { height: 38px; grid-template-columns: 29px minmax(0,1fr); background: repeating-linear-gradient(to bottom,transparent 0 8px,#202a3b 8px 9px); }
  .learning-violin-score-clef { padding-left: 5px; font-size: 29px; }
  .learning-violin-score-notes i { width: 6px; height: 5px; }
  .learning-violin-score-notes i::after { height: 16px; }
  .learning-violin-score-system.is-paired { height: 70px; grid-template-columns: 24px 28px minmax(0,1fr); grid-template-rows: repeat(2,35px); }
  .learning-violin-score-system.is-paired::before { left: 24px; }
  .learning-violin-score-system.is-paired .learning-violin-score-clef,.learning-violin-score-system.is-paired .learning-violin-score-notes { height: 35px; background: repeating-linear-gradient(to bottom,transparent 0 7px,#202a3b 7px 8px); }
  .learning-violin-score-system.is-paired .learning-violin-score-clef { font-size: 25px; }
  .learning-music-piano-icon { width: 47px; height: 47px; border-radius: 15px; }
  .learning-music-piano-glyph { font-size: 31px; }
  .learning-music-controls { gap: 13px; padding: 14px; border-radius: 19px; }
  .learning-music-search-shell { grid-template-columns: minmax(0,1fr); gap: 7px; }
  .learning-music-text-search { min-height: 55px; padding-left: 11px; border-radius: 15px; }
  .learning-music-text-search input { height: 40px; font-size: 16px; }
  .learning-music-open-picker { min-height: 43px; border-radius: 13px; }
  .learning-music-picker { gap: 12px; padding: 13px; border-radius: 16px; }
  .learning-music-picker-fields { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px 6px; }
  .learning-music-picker-fields select { height: 44px; padding-right: 24px; padding-left: 8px; background-position: calc(100% - 10px) 18px; font-size: 16px; }
  .learning-music-picker-actions button { min-height: 44px; padding: 8px; font-size: 9px; }
  .learning-music-group-section { gap: 9px; padding: 13px; border-radius: 19px; }
  .learning-music-group-section > header strong { font-size: 14px; }
  .learning-music-group-section > header b { width: 34px; height: 34px; border-radius: 11px; font-size: 14px; }
  .learning-music-track-grid { grid-template-columns: 1fr; gap: 8px; }
  .learning-music-track-card { min-height: 92px; gap: 8px 10px; padding: 12px; border-radius: 14px; }
  .learning-music-track-code { min-width: 40px; height: 29px; padding: 0 8px; border-radius: 9px; font-size: 9px; }
  .learning-music-track-copy { display: grid; gap: 2px; }
  .learning-music-track-copy small { color: #72809a; font-size: 9px; line-height: 1.25; }
  .learning-music-track-copy small::after { content: ""; }
  .learning-music-track-copy strong { font-size: 10px; line-height: 1.45; }
  .learning-music-track-arrow { display: block; }
  .learning-music-track-assets i { padding: 4px 6px; }
  .learning-music-detail { gap: 10px; margin-top: 11px; }
  .learning-music-detail-audio { grid-template-columns: 1fr; gap: 12px; padding: 15px; border-radius: 19px; }
  .learning-music-audio-player { grid-template-columns: 38px auto minmax(0,1fr) auto; gap: 8px; padding: 8px 9px; border-radius: 15px; }
  .learning-music-audio-toggle { width: 36px; height: 36px; }
  .learning-music-audio-current,.learning-music-audio-duration { font-size: 9px; }
  .learning-music-detail-score { border-radius: 19px; }
  .learning-music-detail-score header { flex-wrap: wrap; gap: 9px; padding: 14px; }
  .learning-music-detail-score header strong { font-size: 11px; }
  .learning-music-detail-actions { display: grid; width: 100%; grid-template-columns: repeat(3,minmax(0,1fr)); align-items: stretch; gap: 7px; }
  .learning-music-share-button { grid-column: 2; grid-row: 1; width: 100%; min-width: 0; min-height: 38px; padding: 8px 6px; border-radius: 11px; font-size: 8px; }
  .learning-music-share-button svg { width: 15px; height: 15px; }
  .learning-music-detail-navigation { display: contents; }
  .learning-music-detail-navigation button { width: 100%; min-width: 0; min-height: 38px; padding: 8px 5px; border-radius: 11px; font-size: 8px; }
  .learning-music-detail-navigation button:first-child { grid-column: 1; grid-row: 1; }
  .learning-music-detail-navigation button:last-child { grid-column: 3; grid-row: 1; }
  .learning-music-score-page figcaption { padding: 8px 14px; font-size: 9px; }
  .learning-music-score-empty { min-height: 150px; padding: 28px 14px; }
  .learning-music-score-empty strong { font-size: 14px; }
  .learning-music-share-backdrop { padding: 16px; }
  .learning-music-share-dialog { max-height: calc(100dvh - 32px); gap: 8px; padding: 24px 18px 20px; border-radius: 22px; }
  .learning-music-share-mascot { width: 64px; height: 64px; }
  .learning-music-share-dialog h2 { font-size: 20px; }
  .learning-music-share-qr-shell { width: 188px; height: 188px; }
  .learning-music-share-actions { flex-direction: column; }
  .learning-music-share-actions button { min-height: 40px; }
}

@media (max-width: 349px) {
  body[data-locale="en-GB"] .end-test-dialog {
    width: calc(100vw - 36px);
    min-width: 0;
  }
}

/* Phone landscape renders the desktop viewport without iOS text inflation. */
html[data-phone-landscape-desktop="true"] {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html[data-phone-landscape-desktop="true"] body[data-active-screen="instructions"] .instructions-main,
html[data-phone-landscape-desktop="true"] body[data-active-screen="exam"][data-exam-fragment^="Info_"] .exam-main {
  min-height: 0;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y pinch-zoom;
  overscroll-behavior-y: contain;
}

html[data-phone-landscape-desktop="true"] body[data-active-screen="instructions"] .instructions-main > .info-frame,
html[data-phone-landscape-desktop="true"] body[data-active-screen="exam"][data-exam-fragment^="Info_"] .exam-main > .info-card-stack {
  flex: 0 0 auto;
}

html[data-phone-landscape-desktop="true"] body[data-active-screen="instructions"] :is(
  .info-main-card-frame,
  .info-main-card-content,
  .info-main-card-body
),
html[data-phone-landscape-desktop="true"] body[data-active-screen="exam"][data-exam-fragment^="Info_"] :is(
  .info-main-card-frame,
  .info-main-card-content,
  .info-main-card-body
) {
  height: auto !important;
  max-height: none !important;
}
