:root {
  --purple: #552ecd;
  --purple-hover: #4624b3;
  --purple-soft: #ede4ff;
  --text: #1a1a1a;
  --muted: #666666;
  --faint: #9ca3af;
  --line: #e5e7eb;
  --bg: #ffffff;
  --green: #22c55e;
  --green-bg: #dcfce7;
  --green-text: #15803d;
  --blue: #3b82f6;
  --blue-soft: #eaf2ff;
  --orange: #f97316;
  --orange-soft: #fff1e6;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  --font: "Raleway", sans-serif;
  --display: "Raleway", sans-serif;
  --font-num: "Poppins", sans-serif;
  --fs-xs: 12px;
  --fs-sm: 13px;
  --fs-md: 14px;
  --fs-lg: 15px;
  --fs-xl: 26px;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-extrabold: 800;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand-name, .btn, .price, .auth-block h1, .auth-block h2 {
  font-family: var(--display);
}

img,
svg {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  font-family: inherit;
}

.site-header,
.hero,
.features,
.pricing,
.site-footer {
  width: min(1080px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0 4px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.brand-mark {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
}

.brand-mark svg {
  width: 100%;
  height: 100%;
}

.brand-mark.sm {
  width: 18px;
  height: 18px;
}

.brand-name {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #0f172a;
}

.menu-btn {
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  display: grid;
  place-content: center;
  gap: 5px;
  cursor: pointer;
}

.menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: #111;
  border-radius: 2px;
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.28);
  z-index: 40;
  display: flex;
  justify-content: flex-end;
}

.nav-overlay[hidden] {
  display: none;
}

.nav-drawer {
  width: min(280px, 86vw);
  height: 100%;
  background: #fff;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.08);
}

.nav-drawer a {
  padding: 12px 10px;
  border-radius: 10px;
  font-weight: 600;
}

.nav-drawer a:hover {
  background: var(--purple-soft);
  color: var(--purple);
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 12px;
  padding: 18px 0 28px;
}

.hero-copy h1 {
  font-size: clamp(26px, 5vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.045em;
  font-weight: 800;
  color: #111111;
}

.hero-copy h1 span {
  color: var(--purple);
}

.hero-copy > p {
  margin: 10px 0 16px;
  max-width: 420px;
  color: #71717a;
  font-size: clamp(13px, 2.2vw, 17px);
  line-height: 1.5;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  cursor: pointer;
  color: #fff;
  background: var(--purple);
  border-radius: 12px;
  font-weight: 700;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn svg {
  width: 20px;
  height: 20px;
}

.btn:hover {
  background: var(--purple-hover);
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(93, 46, 236, 0.22);
}

.btn:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
  box-shadow: none;
}

.btn-lg {
  padding: 12px 18px;
  font-size: 15px;
  border-radius: 12px;
}

.btn-wide,
.btn-auth {
  width: 100%;
  padding: 15px 20px;
  font-size: 16px;
  position: relative;
}

.btn-auth svg,
.btn-wide svg {
  position: absolute;
  right: 18px;
}

.trust-line {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  color: var(--faint);
  font-size: 12px;
}

.trust-line svg {
  width: 18px;
  height: 18px;
}

.hero-visual {
  position: relative;
  min-height: 380px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-glow {
  position: absolute;
  width: min(340px, 90%);
  height: min(340px, 90%);
  border-radius: 50%;
  background: radial-gradient(circle, #efe7ff 0%, rgba(239, 231, 255, 0.4) 48%, transparent 70%);
  z-index: 0;
}

.phone {
  position: relative;
  z-index: 1;
  width: min(220px, 46vw);
  height: min(450px, 94vw);
  background: #111;
  border-radius: 32px;
  padding: 8px;
  box-shadow: 16px 28px 48px rgba(17, 24, 39, 0.18);
  transform: rotate(6deg);
  border: 2px solid #2a2a2e;
}

.phone-island {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 86px;
  height: 20px;
  background: #111;
  border-radius: 12px;
  z-index: 3;
}

.phone-screen {
  height: 100%;
  background: #fff;
  border-radius: 32px;
  overflow: hidden;
  padding: 32px 12px 14px;
}

.app-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.app-brand {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
}

.app-menu {
  width: 18px;
  display: grid;
  gap: 3px;
}

.app-menu i {
  display: block;
  height: 1.6px;
  background: #111;
  border-radius: 2px;
}

.app-label {
  font-size: 12px;
  font-weight: 700;
  color: #1f2937;
  margin: 10px 2px 8px;
}

.subject-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.subject-card {
  background: #fff;
  border-radius: 14px;
  padding: 12px 4px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.subject-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.subject-icon svg {
  width: 17px;
  height: 17px;
}

.subject-icon.bio { background: #e8f8ee; }
.subject-icon.phy { background: #efe8ff; }
.subject-icon.chem { background: #fff1e6; }

.test-list {
  display: grid;
  gap: 8px;
}

.test-item {
  background: #fff;
  border-radius: 14px;
  padding: 10px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.test-item strong {
  display: block;
  font-size: 11.5px;
  line-height: 1.2;
}

.test-item small {
  color: #9ca3af;
  font-size: 9.5px;
}

.test-ico {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.test-ico svg {
  width: 15px;
  height: 15px;
}

.test-ico.mock { background: #efe8ff; }
.test-ico.chapter { background: #e8f8ee; }

.test-item .chev {
  margin-left: auto;
  color: #c4c8d0;
  font-size: 18px;
  line-height: 1;
}

.recent-card {
  background: #fff;
  border-radius: 14px;
  padding: 12px 10px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.recent-card strong {
  display: block;
  font-size: 11px;
  line-height: 1.3;
}

.recent-card small {
  color: #9ca3af;
  font-size: 9px;
}

.recent-card b {
  color: #22c55e;
  font-size: 13px;
  flex: 0 0 auto;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #fff;
  border: 1px solid #eef0f4;
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.features article {
  padding: 22px 12px;
  text-align: center;
}

.features article + article {
  border-left: 1px solid #eef0f4;
}

.feature-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 10px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-icon.purple { background: #f1ebff; }
.feature-icon.blue { background: var(--blue-soft); }
.feature-icon.orange { background: var(--orange-soft); }

.features h2 {
  font-size: 15px;
  margin-bottom: 6px;
}

.features p {
  color: var(--muted);
  font-size: 12px;
  max-width: 160px;
  margin-inline: auto;
}

.pricing {
  margin-top: 20px;
  border: 1px solid #e7e9ee;
  border-radius: 20px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.pricing-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pricing-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.crown {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--purple);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.crown svg {
  width: 24px;
  height: 24px;
}

.pricing-info h2 {
  font-size: 16px;
  letter-spacing: -0.03em;
}

.pricing-info p {
  color: var(--muted);
  font-size: 12px;
}

.price-block {
  text-align: right;
}

.offer-pill {
  display: inline-block;
  background: var(--green-bg);
  color: var(--green-text);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 4px;
}

.price {
  color: var(--purple);
  font-weight: 700;
  font-size: 18px;
}

.price span {
  font-size: 32px;
  letter-spacing: -0.04em;
  line-height: 1;
}

.old-price {
  color: var(--faint);
  text-decoration: line-through;
  text-decoration-color: #ef4444;
  text-decoration-thickness: 2px;
  font-size: 15px;
}

.perk-row {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 14px 0 16px;
  padding: 12px 0;
  border-top: 1px solid #eef0f4;
  border-bottom: 1px solid #eef0f4;
}

.perk-row li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
}

.perk-row li + li {
  border-left: 1px solid #eef0f4;
}

.perk-row svg {
  width: 18px;
  height: 18px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px 0 32px;
  color: var(--muted);
  font-size: 13px;
}

.site-footer svg {
  width: 16px;
  height: 16px;
}

.auth-body {
  background: #fff;
}

.app {
  width: min(430px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 16px 22px 28px;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.auth-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0 8px;
}

.auth-header .brand-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.045em;
  color: #1a1a2e;
}

.auth-header-top {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.back-btn {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 12px;
  background: #f4f0fc;
  text-decoration: none;
}

.back-btn:hover,
.back-btn:focus-visible {
  background: #ece4fb;
}

.back-btn svg {
  width: 22px;
  height: 22px;
}

.auth-block {
  text-align: center;
  padding: 22px 0 0;
}

.auth-block[hidden] {
  display: none !important;
}

.auth-icon {
  width: 72px;
  height: 72px;
  margin: 8px auto 18px;
  border-radius: 50%;
  background: var(--purple-soft);
  display: grid;
  place-items: center;
}

.auth-icon svg {
  width: 30px;
  height: 30px;
}

.auth-block h1,
.auth-block h2 {
  font-size: 28px;
  letter-spacing: -0.045em;
  font-weight: 800;
  color: #0a1128;
  line-height: 1.15;
}

.auth-block h2 {
  font-size: 26px;
}

.auth-sub {
  color: var(--muted);
  margin: 10px 0 28px;
  font-size: 14.5px;
  line-height: 1.45;
}

.phone-field {
  display: flex;
  align-items: center;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 3px 14px;
  margin-bottom: 16px;
  background: #fff;
  overflow: hidden;
}

.phone-field:focus-within {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(93, 46, 236, 0.12);
}

.cc-btn {
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  padding: 12px 4px;
  font-family: "Poppins", var(--font-num), sans-serif;
}

.cc-btn svg {
  width: 10px;
  height: 10px;
}

.phone-divider {
  width: 1px;
  height: 22px;
  background: #e5e7eb;
  margin: 0 12px;
}

.phone-field input {
  flex: 1;
  border: 0;
  outline: none;
  padding: 12px 0;
  background: transparent;
  color: var(--text);
  font-family: "Poppins", var(--font-num), sans-serif;
  font-size: 15px;
}

.phone-field input::placeholder {
  color: #c0c4cc;
  font-weight: 400;
}

.phone-field input:-webkit-autofill,
.phone-field input:-webkit-autofill:hover,
.phone-field input:-webkit-autofill:focus,
.phone-field input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
  box-shadow: 0 0 0 1000px #fff inset !important;
  -webkit-text-fill-color: var(--text, #111827) !important;
  caret-color: var(--text, #111827);
  border: 0;
  border-radius: 0;
  background-color: #fff !important;
  background-clip: content-box;
  transition: background-color 99999s ease-out;
}

.phone-field input:autofill,
.phone-field input:autofill:hover,
.phone-field input:autofill:focus {
  box-shadow: 0 0 0 1000px #fff inset;
  background-color: #fff;
}

.field-error {
  color: #dc2626;
  font-size: 13px;
  margin: -6px 0 12px;
  text-align: left;
}

.otp-block .field-error {
  text-align: center;
  margin: 12px 0 0;
}

.btn-auth {
  height: 54px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
}

.btn-auth span {
  pointer-events: none;
}

.auth-split {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin: 28px 0 8px;
}

.auth-split span {
  height: 1px;
  background: #e8eaef;
}

.auth-split svg {
  width: 18px;
  height: 18px;
}

.otp-block {
  padding-top: 22px;
}

.otp-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 6px 0 16px;
}

.otp-box {
  flex: 1;
  max-width: 72px;
  height: 64px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  text-align: center;
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  outline: none;
  background: #fff;
  font-family: var(--display);
}

.otp-box::placeholder {
  color: #c5c9d2;
  font-weight: 500;
  font-size: 22px;
}

.otp-box:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(93, 46, 236, 0.12);
}

.otp-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 2px 2px 18px;
  font-size: 14px;
}

.link-btn {
  border: 0;
  background: none;
  color: var(--purple);
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
}

.resend {
  color: var(--muted);
}

.resend span,
.resend button {
  color: var(--purple);
  font-weight: 600;
  border: 0;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

.auth-foot {
  margin-top: auto;
  padding: 28px 0 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #9aa0ad;
  font-size: 13px;
}

.auth-foot svg {
  width: 15px;
  height: 15px;
}

.auth-shell {
  min-height: 100%;
}

.auth-aside {
  display: none;
}

.auth-card {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.toast {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translateX(-50%);
  background: #964BE1;
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 13px;
  z-index: 50;
  font-weight: 600;
}
span.setup-m-soon.exam-mode-comingsoon {
    top: 2px;
}
span.setup-m-soon.exam-mode-comingsoon-question{
  top: 2px;
  font-size: 10px;
}
.exam-mode-comingsoonbtn{
      padding-top: 15px !important;
}

.toast[hidden] {
  display: none;
}

@media (min-width: 900px) {
  .hero {
    padding: 36px 0 48px;
    gap: 24px;
  }

  .hero-copy h1 {
    font-size: 52px;
  }

  .hero-copy > p {
    font-size: 17px;
    margin: 16px 0 24px;
  }

  .hero-visual {
    min-height: 520px;
  }

  .phone {
    width: 250px;
    height: 520px;
  }

  .landing-body .hero-visual {
    min-height: 280px;
  }

  .landing-body .phone {
    width: 148px;
    height: 304px;
  }

  .features article {
    padding: 32px 24px;
  }

  .feature-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 14px;
  }

  .crown {
    width: 52px;
    height: 52px;
  }

  .features h2 {
    font-size: 18px;
  }

  .features p {
    font-size: 14px;
  }

  .pricing {
    padding: 28px;
  }

  .pricing-info h2 {
    font-size: 22px;
  }

  .pricing-info p {
    font-size: 14px;
  }

  .price span {
    font-size: 42px;
  }

  .perk-row li {
    font-size: 14px;
  }
}

/* Mobile-only layout for now */
.landing-body,
.auth-body,
.dash-body {
  max-width: 430px;
  margin: 0 auto;
  background: #fff;
}

@media (min-width: 768px) {
  .auth-body {
    max-width: none;
    margin: 0;
    background:
      radial-gradient(circle at 18% 12%, rgba(109, 62, 234, 0.14), transparent 32%),
      radial-gradient(circle at 88% 88%, rgba(85, 46, 205, 0.1), transparent 36%),
      #f5f2fb;
  }

  .auth-shell {
    min-height: 100vh;
  }

  .auth-body .app {
    width: 100%;
    max-width: none;
    min-height: 100vh;
    padding: 40px 24px;
    background: transparent;
    align-items: center;
    justify-content: center;
  }

  .auth-card {
    width: min(440px, 100%);
    flex: 0 0 auto;
    background: #fff;
    border: 1px solid #eeeaf6;
    border-radius: 28px;
    box-shadow: 0 24px 60px rgba(48, 24, 110, 0.12);
    padding: 22px 28px 20px;
  }
  
  .auth-header {
    padding: 2px 0 4px;
  }

  .auth-block {
    padding-top: 12px;
  }

  .otp-block {
    padding-top: 12px;
  }

  .auth-foot {
    margin-top: 8px;
    padding: 18px 0 6px;
  }
}

@media (min-width: 1024px) {
  .auth-body {
    background: #f4f1fb;
    height: 100vh;
    height: 100dvh;
    max-width: none;
    margin: 0;
    overflow: hidden;
  }

  .auth-shell {
    display: grid;
    grid-template-columns: minmax(380px, 1.05fr) minmax(480px, 1fr);
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  .auth-aside {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    min-height: 0;
    height: 100%;
    padding: 44px 56px 36px;
    color: #fff;
    background:
      radial-gradient(circle at 86% 12%, rgba(255, 255, 255, 0.18), transparent 28%),
      radial-gradient(circle at 8% 88%, rgba(0, 0, 0, 0.12), transparent 34%),
      linear-gradient(165deg, #4c22c6 0%, #5d2eec 46%, #7b4de8 100%);
  }

  .auth-aside::before,
  .auth-aside::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
  }

  .auth-aside::before {
    width: 280px;
    height: 280px;
    right: -90px;
    bottom: -70px;
    background: rgba(255, 255, 255, 0.08);
  }

  .auth-aside::after {
    width: 160px;
    height: 160px;
    left: -50px;
    top: 120px;
    background: rgba(255, 255, 255, 0.07);
  }

  .auth-aside-brand {
    position: relative;
    z-index: 1;
    width: fit-content;
  }

  .auth-aside-brand .brand-mark {
    width: 36px;
    height: 36px;
    padding: 5px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.16);
  }

  .auth-aside-brand .brand-name {
    color: #fff;
    font-size: 22px;
  }

  .auth-body .back-btn {
    display: grid;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #f4f0fc;
  }

  .auth-aside-copy {
    position: relative;
    z-index: 1;
    max-width: 440px;
  }

  .auth-kicker {
    display: inline-block;
    margin-bottom: 16px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .auth-aside-copy h2 {
    font-family: var(--display);
    font-size: 42px;
    line-height: 1.12;
    letter-spacing: -0.045em;
    font-weight: 800;
  }

  .auth-aside-copy > p {
    margin: 16px 0 28px;
    max-width: 380px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 16px;
    line-height: 1.55;
  }

  .auth-points {
    list-style: none;
    display: grid;
    gap: 14px;
  }

  .auth-points li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 500;
  }

  .auth-points svg {
    width: 22px;
    height: 22px;
  }

  .auth-aside-foot {
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
  }

  .auth-body .app {
    min-height: 0;
    height: 100%;
    padding: 28px 40px;
    background: #f6f3fc;
    overflow: auto;
    align-items: center;
    justify-content: center;
  }

  .auth-card {
    width: min(460px, 100%);
    padding: 24px 32px 20px;
    max-height: calc(100vh - 56px);
    max-height: calc(100dvh - 56px);
    overflow: auto;
  }

  .auth-body .auth-card .admin-field {
    margin-bottom: 12px;
  }

  .auth-body .auth-block {
    padding-top: 8px;
  }

  .auth-body .auth-sub {
    margin-bottom: 16px;
  }

  .auth-body .btn-auth {
    margin-top: 4px;
  }

  .auth-header {
    justify-content: flex-start;
  }

  .auth-header .brand {
    display: none;
  }

  .auth-block h1,
  .auth-block h2 {
    font-size: 30px;
  }

  .otp-box {
    height: 68px;
    max-width: 78px;
    font-size: 24px;
  }
}

.landing-body .hero {
  grid-template-columns: minmax(0, 1fr) 158px;
  align-items: center;
  gap: 10px 8px;
  padding: 10px 0 28px;
  overflow: visible;
}

.landing-body .hero-copy h1 {
  font-size: 26px;
}

.landing-body .hero-copy > p {
  margin: 8px 0 12px;
  font-size: 12px;
}

.landing-body .hero-copy .btn-lg {
  padding: 10px 14px;
  font-size: 13px;
}

.landing-body .hero-visual {
  min-height: 280px;
  margin-top: 0;
}

.landing-body .phone-glow {
  width: 170px;
  height: 170px;
}

.landing-body .phone {
  width: 148px;
  height: 304px;
  padding: 6px;
  border-radius: 26px;
  transform: rotate(8deg);
}

.landing-body .phone-island {
  top: 12px;
  width: 56px;
  height: 14px;
}

.landing-body .phone-screen {
  border-radius: 20px;
  padding: 24px 8px 8px;
}

.landing-body .phone-screen .app-head {
  margin-bottom: 8px;
}

.landing-body .phone-screen .app-brand {
  font-size: 10px;
}

.landing-body .phone-screen .app-label {
  font-size: 8px;
  margin: 6px 0 5px;
}

.landing-body .phone-screen .subject-row {
  gap: 4px;
  margin-bottom: 8px;
}

.landing-body .phone-screen .subject-card {
  font-size: 7px;
  padding: 6px 1px 5px;
  gap: 3px;
  border-radius: 8px;
}

.landing-body .phone-screen .subject-icon {
  width: 18px;
  height: 18px;
}

.landing-body .phone-screen .subject-icon svg {
  width: 10px;
  height: 10px;
}

.landing-body .phone-screen .test-item {
  padding: 6px 5px;
  gap: 5px;
  border-radius: 8px;
}

.landing-body .phone-screen .test-ico {
  width: 20px;
  height: 20px;
}

.landing-body .phone-screen .test-item strong {
  font-size: 7px;
}

.landing-body .phone-screen .test-item small {
  font-size: 6px;
}

.landing-body .phone-screen .recent-card,
.landing-body .phone-screen .app-label:nth-of-type(3) {
  display: none;
}

.landing-body .features {
  grid-template-columns: repeat(3, 1fr);
}

.landing-body .features article {
  padding: 16px 6px;
}

.landing-body .features h2 {
  font-size: 12px;
}

.landing-body .features p {
  font-size: 10px;
  max-width: none;
}

.landing-body .features article + article {
  border-left: 1px solid #eef0f4;
  border-top: 0;
}

.landing-body .pricing-top {
  flex-direction: column;
  align-items: flex-start;
}

.landing-body .price-block {
  text-align: left;
}

.landing-body .perk-row {
  grid-template-columns: 1fr 1fr;
  gap: 10px 0;
}

.landing-body .perk-row li {
  justify-content: flex-start;
  padding: 4px;
  font-size: 13px;
}

.landing-body .perk-row li + li {
  border-left: 0;
}

.auth-switch {
  margin-top: 14px;
  font-size: 14px;
  color: var(--muted);
}

.auth-switch a {
  color: var(--purple);
  font-weight: 600;
}

.drawer-logout {
  width: 100%;
  border: 0;
  background: none;
  text-align: left;
  padding: 12px 10px;
  font-weight: 600;
  color: #b91c1c;
  cursor: pointer;
}

.hello {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 800;
  margin: 8px 0 18px;
}

.dash-app .app-label {
  font-size: 15px;
}

.home-subjects .subject-card,
.home-tests .test-item,
.home-recent {
  font-size: 14px;
}

.home-subjects .subject-icon {
  width: 40px;
  height: 40px;
}

.home-tests .test-item strong,
.home-recent strong {
  font-size: 14px;
}

.home-tests .test-item small,
.home-recent small {
  font-size: 12px;
}

.home-recent b {
  font-size: 16px;
}

a.subject-card,
a.test-item {
  color: inherit;
  text-decoration: none;
}

.practice-body {
  background: #f4f4f8;
}

.practice-app {
  padding: 8px 16px 28px;
  background: #f4f4f8;
}

.practice-block {
  background: linear-gradient(#f6f0ff 0%, #fff 38%);
  border-radius: 18px;
  box-shadow: 0 4px 18px rgba(17, 24, 39, 0.05);
  padding: 12px 12px 14px;
  margin-bottom: 12px;
}

.practice-block .practice-step {
  margin-top: 0;
}

.practice-top {
  display: grid;
  grid-template-columns: 40px 40px 1fr 40px;
  align-items: center;
  gap: 4px;
  margin-bottom: 18px;
}

.practice-icon-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: #1a1a1a;
  cursor: pointer;
}

.practice-icon-btn svg {
  width: 22px;
  height: 22px;
}

.practice-profile {
  border: 1.5px solid #d7d8de;
  border-radius: 50%;
  color: #1a1a1a;
  list-style: none;
}

.practice-profile::-webkit-details-marker {
  display: none;
}

.practice-account {
  position: relative;
}

.practice-account form {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background: #fff;
  border: 1px solid #ececef;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.1);
  min-width: 120px;
  z-index: 4;
}

.practice-account button {
  width: 100%;
  border: 0;
  background: none;
  padding: 10px 14px;
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.practice-nav-title {
  margin: 0;
  text-align: center;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 800;
}

.practice-hero {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 6px;
}

.practice-sub {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 22px;
}

.perf-date-filter {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.perf-date-open {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.perf-date-input {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  border: 0;
}

.practice-step {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--purple);
  font-weight: 700;
  font-size: 14px;
  margin: 18px 0 10px;
}

.practice-step span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--purple);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
}

.practice-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}

.practice-modes {
  grid-template-columns: 1fr 1fr;
}

.practice-counts {
  grid-template-columns: repeat(4, 1fr);
}

.practice-card,
.practice-count {
  border: 1.5px solid #ececef;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(17, 24, 39, 0.05);
  padding: 14px 8px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font: inherit;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
}

.practice-card .practice-ico {
  width: 28px;
  height: 28px;
  color: #8b8f99;
}

.practice-card .practice-ico svg,
.practice-start svg {
  width: 100%;
  height: 100%;
}

.practice-card.is-on,
.practice-count.is-on {
  border-color: var(--purple);
  background: #f4edff;
  color: var(--purple);
  box-shadow: none;
}

.practice-card.is-on .practice-ico {
  color: var(--purple);
}

.practice-count {
  min-height: 56px;
  justify-content: center;
  font-size: 18px;
  font-family: var(--display);
}

.practice-select-label {
  display: block;
  margin: 18px 0 8px;
  color: var(--muted);
  font-size: 13px;
}

.practice-select {
  position: relative;
}

.practice-select select {
  width: 100%;
  height: 52px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  padding: 0 40px 0 14px;
  font: inherit;
  font-weight: 600;
  appearance: none;
  color: var(--text);
}

.practice-select svg {
  position: absolute;
  right: 14px;
  top: 50%;
  width: 12px;
  height: 12px;
  transform: translateY(-50%);
  pointer-events: none;
}

.practice-start {
  width: 100%;
  margin-top: 22px;
  height: 54px;
  border-radius: 999px;
  background: linear-gradient(90deg, #552ecd 0%, #7b4de8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 800;
}

.practice-start:hover {
  background: linear-gradient(90deg, #4c28b8 0%, #6f42d9 100%);
}

.practice-start svg {
  width: 22px;
  height: 22px;
}

.practice-continue {
  width: 100%;
  margin-top: 14px;
  border: 0;
  background: none;
  color: var(--purple);
  font: inherit;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}

.practice-continue svg {
  width: 18px;
  height: 18px;
}

.practice-foot {
  margin-top: 22px;
  background: #f1f2f6;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.practice-foot svg {
  width: 18px;
  height: 18px;
}

.quiz-progress {
  min-width: 40px;
  text-align: right;
  font-size: 13px;
  font-weight: 800;
  color: var(--purple);
}

.quiz-app .practice-nav-title {
  font-size: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quiz-meta {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 10px;
}

.quiz-question {
  font-family: var(--display);
  font-size: 18px;
  line-height: 1.4;
  margin: 0 0 16px;
  white-space: pre-wrap;
}

.q-stem {
  white-space: pre-wrap;
}

.q-meta-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.q-meta-badges[hidden] {
  display: none !important;
}

.q-badge {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
}

.q-badge-year {
  background: #ede4ff;
  color: #552ecd;
}

.q-badge-diff.is-easy {
  background: #e8f6ec;
  color: #1b8a3e;
}

.q-badge-diff.is-medium {
  background: #FEF6EE;
  color: #E04F16;
}

.q-badge-diff.is-hard {
  background: #fdecec;
  color: #dc2626;
}

.q-badge-diff.is-unknown {
  background: #f3f4f6;
  color: #4b5563;
}

.quiz-mobile .q-meta-badges {
  margin: 0 0 12px;
}

.mtf-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 14px 0;
  padding: 12px;
  border: 1px solid #e8eaf0;
  border-radius: 14px;
  background: #fafbff;
}

.mtf-col-title {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 800;
  color: #552ecd;
}

.mtf-list {
  list-style: none;
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.mtf-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: start;
  font-size: 13px;
  line-height: 1.4;
  color: #1f2937;
}

.mtf-list li b {
  min-width: 1.6em;
  color: #552ecd;
  font-weight: 800;
}

@media (max-width: 640px) {
  .mtf-columns {
    grid-template-columns: 1fr;
  }
}

.q-media {
  margin: 4px 0 16px;
}

.q-media-img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(100%, 560px);
  max-height: 380px;
  object-fit: contain;
  object-position: left center;
  margin: 4px 0 16px;
  padding: 8px 10px;
  border: 1px solid #eceef4;
  border-radius: 10px;
  background: #faf9fd;
  cursor: zoom-in;
}

.q-media .q-media-img {
  margin: 0;
}

.desk-q-text .q-media,
.rev-q-text .q-media {
  margin: 10px 0 12px;
}

.desk-opt-text .q-media-img,
.rev-opt-text .q-media-img,
.quiz-option .q-media-img,
.quiz-m-opt-text .q-media-img {
  max-width: min(100%, 280px);
  max-height: 180px;
  margin: 8px 0 0;
  padding: 6px;
}

.desk-opt:has(.q-media-img),
.rev-opt:has(.q-media-img),
.quiz-option:has(.q-media-img),
.quiz-m-opt:has(.q-media-img) {
  align-items: flex-start;
}

.quiz-options {
  display: grid;
  gap: 10px;
}

.quiz-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
  width: 100%;
  border: 1.5px solid #ececef;
  background: #fff;
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
  cursor: pointer;
}

.quiz-option b {
  flex: 0 0 22px;
  color: var(--purple);
}

.quiz-option.is-right {
  border-color: #16a34a;
  background: #f0fdf4;
}

.quiz-option.is-wrong {
  border-color: #dc2626;
  background: #fef2f2;
}

.quiz-result {
  text-align: center;
  padding: 28px 8px 8px;
}

.quiz-result .btn + .btn {
  margin-top: 10px;
}

.quiz-score {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 18px;
}

.hist-mobile-list {
  display: grid;
  gap: 10px;
}

.hist-mobile-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1.5px solid #ececef;
  background: #fff;
  border-radius: 14px;
  padding: 12px 14px;
  color: inherit;
  text-decoration: none;
}

.hist-mobile-empty {
  color: var(--muted);
  text-align: center;
  padding: 28px 8px;
}

.hist-mobile-card strong {
  display: block;
  font-size: 14px;
}

.hist-mobile-card small {
  color: var(--muted);
  font-size: 12px;
}

.hist-mobile-card b {
  font-size: 16px;
}

.home-mobile-subjects {
  display: grid;
  gap: 12px;
  margin: 18px 0 8px;
}

.home-mobile-card {
  border: 1.5px solid #ececef;
  background: #fff;
  border-radius: 14px;
  padding: 14px;
}

.home-mobile-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.home-mobile-card-head strong {
  font-size: 15px;
}

.home-mobile-card-head span {
  color: #535862;
  font-size: 12px;
  font-weight: 600;
}

.home-mobile .home-legend {
  list-style: none;
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
}

.home-mobile .home-legend li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #4b5563;
}

.home-mobile .home-legend span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.home-mobile .home-legend .is-strong { background: #166534; }
.home-mobile .home-legend .is-good { background: #86efac; }
.home-mobile .home-legend .is-need { background: #f97316; }
.home-mobile .home-legend .is-skip { background: #d1d5db; }

.home-dash-app {
  padding: 0;
  background: #fff;
}

.home-dash-mobile {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  padding: calc(10px + env(safe-area-inset-top)) 0 calc(88px + env(safe-area-inset-bottom));
  font-family: "Raleway", var(--font), sans-serif;
  background: #fff;
  color: #111827;
}

.practice-mobile .setup-m-num,
.practice-mobile .setup-m-count,
.practice-mobile .quiz-m-pal,
.practice-mobile .quiz-m-timer strong,
.practice-mobile #quiz-m-timer,
.practice-mobile #quiz-m-progress-pct,
.practice-mobile .quiz-m-opt-key,
.practice-mobile .q-badge-year,
.practice-mobile .quiz-m-score,
.practice-mobile .quiz-m-q-bar h2,
.practice-mobile .hist-score,
.practice-mobile .hist-m-stats dd,
.practice-mobile .hist-m-attempted b,
.practice-mobile .hist-m-card-copy b,
.practice-mobile .rev-m-metrics strong,
.practice-mobile .rev-m-metrics em,
.practice-mobile .rev-m-summary b,
.practice-mobile .rev-m-pal,
.practice-mobile .rev-m-opt-key,
/*.practice-mobile .rev-m-opt-text,*/
.practice-mobile .rev-m-q-top h3,
.practice-mobile .rev-m .q-badge-year,
.practice-mobile .rev-m-hello p b,
.practice-mobile .cov-count,
.practice-mobile .cov-mobile-summary .home-mobile-card-head span,
.practice-mobile .cov-m-badge,
.practice-mobile .cov-m-progress-row strong,
.practice-mobile .cov-m-stat strong,
.practice-mobile .cov-m-num,
.practice-mobile .cov-m-card-body b,
.landing-mobile .m-offer-zero,
.landing-mobile .m-offer-old,
.landing-mobile .m-offer-old s,
body.m-open.auth-body .otp-box,
body.m-open.auth-body .phone-field input,
body.m-open.auth-body .cc-btn,
body.m-open.auth-body #otp-hint {
  font-family: "Poppins", var(--font-num), sans-serif;
}

.dash-m-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  padding: 4px 16px 10px;
}

@media (max-width: 1023px) {
  .home-dash-mobile .dash-m-top {
    position: fixed;
    top: 0;
    left: 50%;
    z-index: 25;
    width: min(430px, 100%);
    transform: translateX(-50%);
    background: #fff;
    padding-top: calc(4px + env(safe-area-inset-top));
  }

  .home-dash-mobile {
    padding-top: calc(58px + env(safe-area-inset-top));
  }
}

.dash-m-left {
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1;
}

.dash-m-menu {
  width: 36px;
  height: 40px;
}

.dash-m-back,
.dash-m-page-back {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #eee;
  color: #000000;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  text-decoration: none;
}

.dash-m-top .dash-m-back {
  width: 36px;
  height: 36px;
}

.dash-m-back svg,
.dash-m-page-back svg {
  width: 22px;
  height: 22px;
  display: block;
}

.dash-m-title-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.dash-m-title-row > div {
  min-width: 0;
  flex: 1;
}

.dash-m-page-back {
  margin-top: 2px;
}

.dash-m-logo {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.dash-m-logo .brand-mark {
  width: 32px;
  height: 32px;
}

.dash-m-brand-copy {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 0;
  line-height: 1.15;
  color: inherit;
  text-decoration: none;
  z-index: 0;
}

.dash-m-brand-name {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #111827;
  text-transform: uppercase;
}

.dash-m-brand-tag {
  font-size: 12px;
  font-weight: 500;
  color: #535862;
  white-space: nowrap;
}

.dash-m-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1;
}

.dash-m-icon-btn,
.dash-m-initials {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex: 0 0 auto;
}

.dash-m-icon-btn {
  background: #f3f4f6;
  color: #111827;
}

.dash-m-icon-btn svg {
  width: 18px;
  height: 18px;
}

.dash-m-user {
  position: relative;
}

.dash-m-initials {
  list-style: none;
  padding: 0;
  background: #F9F2FF;
  color: #964BE1;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.dash-m-initials::-webkit-details-marker,
.dash-m-initials::marker {
  display: none;
  content: none;
}

.dash-m-user form,
.dash-m-account form {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 120px;
  background: #fff;
  border: 1px solid #ececef;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.1);
  z-index: 5;
}

.dash-m-user button,
.dash-m-account button,
.dash-m-drawer button {
  width: 100%;
  border: 0;
  background: none;
  padding: 10px 14px;
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  color: #111827;
}

.dash-m-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  margin: 0 0 8px;
  padding: 10px 10px 4px;
  overflow: visible;
  background: #F4F3FF;
}

.dash-m-tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  padding: 6px 4px;
  border: 0;
  background: transparent;
  color: #535862;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}

.dash-m-tab svg {
  width: 22px;
  height: 22px;
}

.dash-m-tab.is-active {
  color: #964BE1;
}

.dash-m-tab.is-active::after {
  content: "";
  position: absolute;
  left: 22%;
  right: 22%;
  bottom: -2px;
  height: 3px;
  border-radius: 999px;
  background: #964BE1;
}

.dash-m-account {
  display: flex;
}

.dash-m-account summary {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 6px;
  list-style: none;
  cursor: pointer;
}

.dash-m-account summary::-webkit-details-marker {
  display: none;
}

.dash-m-main {
  display: grid;
  gap: 22px;
  padding: 10px 20px 0;
}

.dash-m-hello h1 {
  margin: 0 0 4px;
  font-size: 22px;
/*  font-weight: 800;*/
  letter-spacing: -0.04em;
  color: #111827;
  line-height: 1.15;
}

.dash-m-hello p {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  color:#535862;
}

.dash-m-cta {
  position: relative;
  display: grid;
  gap: 16px;
  padding: 18px 18px 18px 22px;
  background: #F9F2FF;
  border: 1px solid #E0E1E4;
  border-radius: 16px;
  overflow: hidden;
}

/*.dash-m-cta::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 7px;
  border-radius: 0 8px 8px 0;
  background: #964BE1;
}*/

.dash-m-cta-copy {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.dash-m-cta-ico {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: #EEDDFF;
  color:#964BE1;
}

.dash-m-cta-ico svg {
  width: 26px;
  height: 26px;
}

.dash-m-cta h2 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #111827;
}

.dash-m-cta p {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: #535862;
  font-weight: 500;
  padding-bottom: 18px;
}

.dash-m-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  background: #964BE1;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

.dash-m-cta-btn:hover {
  background: #7C3BC8;
}

.dash-m-quick {
  display: grid;
  gap: 12px;
}

.dash-m-quick-head {
  margin-bottom: 2px;
}

.dash-m-quick-head h2 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #111827;
}

.dash-m-quick-head p {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  color: #535862;
}

.dash-m-quick-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 12px;
  padding: 16px 14px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.04);
  color: inherit;
  text-decoration: none;
}

.dash-m-quick-card.is-blue {
  background: #EFF6FE;
  border: 1px solid #E0E1E4;
  border-radius: 8px;
}

.dash-m-quick-card.is-green {
  background: #F1FAF5;
  border: 1px solid #E0E1E4;
  border-radius: 16px;
}

.dash-m-quick-card.is-orange {
  background: #FEF5F0;
  border: 1px solid #E0E1E4;
  border-radius: 16px;
}

.dash-m-quick-ico {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.dash-m-quick-ico svg {
  width: 22px;
  height: 22px;
}

.dash-m-quick-card.is-blue .dash-m-quick-ico {
  background: #E0F0FD;
  color: #2563eb;
}

.dash-m-quick-card.is-green .dash-m-quick-ico {
  background: #d7f1e1;
  color: #16a34a;
}

.dash-m-quick-card.is-orange .dash-m-quick-ico {
  background: #f8e7dd;
  color: #ea580c;
}

.dash-m-quick-copy {
  min-width: 0;
}

.dash-m-quick-copy strong {
  display: block;
  margin-bottom: 2px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #111827;
}

.dash-m-quick-copy small {
  display: block;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 500;
  color: #535862;
}

.dash-m-quick-arrow {
  width: 26px;
  height: 26px;
}

.dash-m-quick-card.is-blue .dash-m-quick-arrow {
  color: #2563eb;
}

.dash-m-quick-card.is-green .dash-m-quick-arrow {
  color: #16a34a;
}

.dash-m-quick-card.is-orange .dash-m-quick-arrow {
  color: #ea580c;
}

.dash-m-dock {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 20;
  width: min(430px, 100%);
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  background: #F4F3FF;
  border-top: 1px solid #f0eef6;
  box-shadow: 0 -8px 24px rgba(17, 24, 39, 0.04);
}

.dash-m-dock a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 4px;
  color: #535862;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.dash-m-dock svg {
  width: 22px;
  height: 22px;
}

.dash-m-dock a.is-active {
  color: #964BE1;
}

.dash-m-overlay {
  justify-content: flex-start;
  z-index: 50;
}

.dash-m-drawer {
  box-shadow: 8px 0 30px rgba(0, 0, 0, 0.08);
}

.dash-m-drawer form {
  margin-top: 8px;
}

.dash-m-drawer button {
  padding: 12px 10px;
  border-radius: 10px;
  color: #111827;
}

.dash-m-drawer button:hover {
  background: var(--purple-soft);
  color: var(--purple);
}

.hist-m-main {
  gap: 16px;
  padding-bottom: 12px;
}

.hist-m-hello {
  position: relative;
}

/*.hist-m-hello::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 2px;
  width: 6px;
  height: 28px;
  border-radius: 0 8px 8px 0;
  background: #964BE1;
}*/

.hist-m-hello h1 {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #111827;
  line-height: 1.15;
}

.hist-m-hello p {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  color: #535862;
  line-height: 1.45;
}

.hist-m-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.hist-m-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border: 1px solid #E9EAEB;
  border-radius: 999px;
  background: #fff;
}

.hist-m-chip select {
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid;
    background: #FAFAFA;
    padding: 6px 26px 6px 14px;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    color: #414651;
    border-color: #964BE1 !important;
    border-radius: 12px;
}

.hist-m-chip svg {
  position: absolute;
  right: 10px;
  top: 50%;
  width: 12px;
  height: 12px;
  color: #9ca3af;
  transform: translateY(-50%);
  pointer-events: none;
}

.hist-m-attempted {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin: 0;
  padding: 6px 14px;
  border: 1px solid #964BE1;
  border-radius: 999px;
  background: #F9F2FF;
  font-size: 15px;
  font-weight: 600;
  color: #535862;
  white-space: nowrap;
  width: 55%;
}

.hist-m-attempted b {
  color: #964BE1;
  font-family: "Poppins", var(--font-num), sans-serif;
  font-weight: 700;
}
.newfamiltydd{
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  padding-left: 3px;
}
.hist-m-recent {
  display: grid;
  gap: 12px;
}

.hist-m-recent h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #111827;
}

.hist-m-list {
  display: grid;
  gap: 14px;
}

.hist-m-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid #E0E1E4;
  border-radius: 16px;
  background: #FAFAFA;
  box-shadow: 0 1px 3px 0 rgba(10, 13, 18, 0.1);

/*  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04);*/
}

.hist-m-card.is-off {
  display: none;
}

.hist-m-card-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.hist-m-ico {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.hist-m-ico svg {
  width: 28px;
  height: 28px;
}

.hist-m-ico.blue { background: #E0F0FD; color: #1570EF; }
.hist-m-ico.orange { background: #FEF0E5; color: #EF6820; }
.hist-m-ico.teal { background: #E0F0FD; color: #1570EF; }
.hist-m-ico.green { background: #e8f8ee; color: #16a34a; }

.hist-m-card-copy {
  min-width: 0;
  flex: 1;
}

.hist-m-card-copy strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #181D27;
  line-height: 1.25;
}

.hist-m-card-copy p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0 0;
  font-size: 12px;
  font-weight: 600;
  color: #535862;
}

.hist-m-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #D5D7DA;
  flex: 0 0 auto;
}

.hist-m-type {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  background: #F4F3FF;
  color: #5925DC;
}

.hist-m-card-copy b {
  margin-left: auto;
  color: #FA6432;
  font-family: "Poppins", var(--font-num), sans-serif;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.hist-m-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 8px 0;
  border-top: 1px solid #f3f4f6;
  border-bottom: 1px solid #f3f4f6;
}

.hist-m-stats div {
  display: grid;
  gap: 4px;
  text-align: center;
  padding: 0 4px;
}

.hist-m-stats div + div {
  border-left: 1px solid #E0E1E4;
}

.hist-m-stats dt {
  font-size: 12px;
  font-weight: 500;
  color: #535862;
  line-height: 1.25;
}

.hist-m-stats dd {
  margin: 0;
  font-family: "Poppins", var(--font-num), sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #000;
  line-height: 1.2;
}

.hist-m-stats .is-correct { color: #099250; }
.hist-m-stats .is-incorrect { color: #D92D20; }
.hist-m-stats .is-unattempted { color: #808080; }

.hist-m-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: "Poppins", var(--font-num), sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: #414651;
}

.hist-m-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
/*  border: 1px solid #E9EAEB;*/
  border-radius: 999px;
  background: #F5F5F5;
}

.hist-m-meta svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  color: #414651;
}

.hist-m-view {
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  width: min(240px, 72%);
  min-height: 48px;
  margin-top: 4px;
  border: 1.8px solid #964BE1;
  border-radius: 12px;
  color: #964BE1;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}

.hist-m-view:hover {
  background: #F9F2FF;
}

.home-dash-mobile.rev-m {
  padding-bottom: calc(148px + env(safe-area-inset-bottom));
}

.rev-m-main {
  gap: 16px;
  padding-bottom: 12px;
}

.rev-m-hello h1 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #111827;
  line-height: 1.2;
}

.rev-m-hello p {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: #535862;
}

.rev-m-hello p span {
  color: #964BE1;
}

.rev-m-hello p b {
  font-family: "Poppins", var(--font-num), sans-serif;
  font-weight: 700;
}

.rev-m-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.rev-m-metrics article {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 84px;
  padding: 12px;
  border: 1px solid #E0E1E4;
  border-radius: 8px;
  
}

.rev-m-metric-ico {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.rev-m-metric-ico svg {
  width: 22px;
  height: 22px;
}

.rev-m-metric-ico.is-score {
  background: #EBE2FF;
    color: #5B05B1;
}

.rev-m-metric-ico.is-accuracy {
  background: #FAF0E4;
  color: #E67D39;
}

.rev-m-metric-ico.is-correct {
  background: #EBF8EE;
    color: #2C9B66;
}

.rev-m-metric-ico.is-time {
  background: #E2E9FF;
  color: #052DB1;
}

.rev-m-metrics small {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #535862;
}

.rev-m-metrics strong {
  display: block;
  margin-top: 2px;
  font-family: "Poppins", var(--font-num), sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #181D27;
  line-height: 1.2;
}

.rev-m-metrics em {
  display: block;
  margin-top: 2px;
  font-family: "Poppins", var(--font-num), sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  color: #535862;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rev-m-card {
  padding: 14px;
  /*border: 1px solid #E0E1E4;
  border-radius: 16px;
  background: #FAFAFA;*/
  overflow: visible;
}

.rev-m-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.rev-m-card h2 {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #111827;
}

.rev-m-card-head h2 {
  margin: 0;
}

.rev-m-hide {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 0;
  background: none;
  padding: 0;
  color: #252B37;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.rev-m-hide svg {
  width: 12px;
  height: 12px;
}

.rev-m-hide.is-collapsed svg {
  transform: rotate(180deg);
}

.rev-m-palette {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px 10px;
  padding: 4px 4px 8px;
  overflow: visible;
}

.rev-m-pal {
  position: relative;
  display: grid;
  place-items: center;
  height: 34px;
  border: 0;
  background: #F3F4F6;
  border-radius: 4px;
  font-family: "Poppins", var(--font-num), sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #535862;
  cursor: pointer;
  overflow: visible;
}

.rev-m-pal.is-correct {
  background: #EDFCF2;
  color: #099250;
}

.rev-m-pal.is-wrong {
  background: #FEF3F2;
  color: #D92D20;
}

.rev-m-pal.is-skipped {
  background: #F5F5F5;
  color: #717680;
}

.rev-m-pal-badge {
  position: absolute;
  right: -6px;
  bottom: -6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  box-shadow: none;
}

.rev-m-pal-badge svg {
  width: 16px;
  height: 16px;
  display: block;
}

.rev-m-pal-badge.is-correct {
  background: #ECFDF3;
  color: #12B76A;
}

.rev-m-pal-badge.is-wrong {
  background: #FEF3F2;
  color: #D92D20;
}

.rev-m-pal-badge.is-skipped {
  width: 10px;
  height: 10px;
  right: -3px;
  bottom: -3px;
  background: #98A2B3;
}

.rev-m-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  font-size: 12px;
  font-weight: 600;
  color: #535862;
}

.rev-m-legend li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.rev-m-legend span {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: transparent;
}

.rev-m-legend span svg {
  width: 16px;
  height: 16px;
  display: block;
}

.rev-m-legend .is-correct { color: #12B76A; }
.rev-m-legend .is-wrong { color: #D92D20; }
.rev-m-legend .is-skipped {
  width: 8px;
  height: 8px;
  background: #98A2B3;
}
.rev-m-legend .is-flag { color: #F79009; }

.rev-m-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 25px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.rev-m-summary li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: #535862;
}

.rev-m-summary span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.rev-m-summary svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: #667085;
}

.rev-m-summary b {
  font-family: "Poppins", var(--font-num), sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #181D27;
}

.rev-m-summary .is-good { color: #099250; }
.rev-m-summary .is-bad { color: #D92D20; }

.rev-m-questions {
  display: grid;
  gap: 12px;
}

.rev-m-q {
  padding: 14px;
  border: 1px solid #E0E1E4;
  border-radius: 16px;
  background: #FAFAFA;
}

.rev-m-q-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.rev-m-q-top h3 {
  margin: 0;
  font-family: "Poppins", var(--font-num), sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #964BE1;
}

.rev-m-q-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 10px;
}

.rev-m-status {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.rev-m-status.is-correct { background: #EDFCF2; color: #099250; }
.rev-m-status.is-wrong { background: #FEF3F2;color: #D92D20;}
.rev-m-status.is-skipped { background: #FEF0E5; color: #EF6820; }

.rev-m-q-text {
  font-size: 16px;
  font-weight: 500;
  color: #252B37;
  line-height: 1.45;
}

.rev-m-opts {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.rev-m-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #E0E1E4;
  border-radius: 8px;
  background: #FAFAFA;
}

.rev-m-opt-key {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #E9EAEB;
  display: grid;
  place-items: center;
  font-family: "Poppins", var(--font-num), sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #414651;
  flex: 0 0 auto;
}

.rev-m-opt-text {
  flex: 1;
  min-width: 0;
/*  font-family: "Poppins", var(--font-num), sans-serif;*/
  font-size: 16px;
/*  font-weight: 600;*/
  color: #181D27;
}

.rev-m-opt-tag {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.rev-m-opt.is-wrong {
  border-color: #FDA29B;
  background: #FEF3F2;
}

.rev-m-opt.is-wrong .rev-m-opt-key {
  background: #D92D20;
  border-color: #D92D20;
  color: #fff;
}

.rev-m-opt.is-wrong .rev-m-opt-tag {
  color: #D92D20;
}

.rev-m-opt.is-answer,
.rev-m-opt.is-right {
  border-color: #AAF0C4;
  background: #EDFCF2;
}

.rev-m-opt.is-answer .rev-m-opt-key,
.rev-m-opt.is-right .rev-m-opt-key {
  background: #099250;
  border-color: #099250;
  color: #fff;
}

.rev-m-opt.is-answer .rev-m-opt-tag,
.rev-m-opt.is-right .rev-m-opt-tag {
  color: #099250;
}

.rev-m-explain {
  margin-top: 12px;
  padding: 12px 14px 14px 16px;
/*  border: 1px solid #FECDCA;*/
  border-left: 1px solid #D92D20;
  border-radius: 8px;
  background: #FEF3F2;
}

.rev-m-explain-title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
  color: #C6364F;
}

.rev-m-explain-title svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: #C6364F;
}

.rev-m-explain > p:last-child {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: #535862;
  line-height: 1.55;
}

.rev-m-actions {
  position: fixed;
  left: 50%;
  bottom: calc(56px + env(safe-area-inset-bottom));
  z-index: 18;
  width: min(430px, 100%);
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 10px 16px 30px;
  background: #fff;
}

.rev-m-back,
.rev-m-retake {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

.rev-m-back {
  border: 1.5px solid #964BE1;
  color: #964BE1;
  background: #fff;
}

.rev-m-retake {
  background: #964BE1;
  color: #fff;
}

.rev-m-retake:hover {
  background: #7C3BC8;
}

.vis-hide {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.setup-m-main {
  gap: 20px;
  padding-bottom: 12px;
}

.setup-m-hello h1 {
  margin: 0 0 6px;
  font-size: 22px;
/*  font-weight: 800;*/
  letter-spacing: -0.04em;
  color: #111827;
  line-height: 1.15;
}

.setup-m-hello p {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  color: #535862;
  line-height: 1.45;
}

.setup-m-step h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #111827;
}

.setup-m-num {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #FAFAFA;
  border-radius: 50%;
  color:#414651;
  font-family: "Poppins", var(--font-num), sans-serif;
  font-size: 12px;
  font-weight: 800;
  flex: 0 0 auto;
}

.setup-m-step.is-first {
  position: relative;
}

/*.setup-m-step.is-first::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 0;
  width: 25px;
  height: 70px;
  border-radius: 0 5px 6px 0;
  background: #964BE1;
}*/

.setup-m-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.setup-m-card,
.setup-m-count,
.setup-m-mode {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 108px;
  padding: 18px 8px 12px;
  border: 1.5px solid #E0E1E4;
  border-radius: 8px;
  background:#F5F5F5;
  color: #535862;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
}
.setup-m-card{
  background: #F9F2FF;
}
.setup-m-count, .setup-m-mode{
  font-weight: 500 !important;
  padding-top: 20px !important;
}
.setup-m-card,
.setup-m-mode {
  font: inherit;
  font-size: 12px;
  font-weight: 700;
}

.setup-m-ico {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: #f3f4f6;
  color: inherit;
}

.setup-m-ico svg {
  width: 20px;
  height: 20px;
}

.setup-m-tick {
  display: none;
  position: absolute;
  top: 8px;
  right: 8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #EB5F31 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 4.7 8.4 9.5 3.5' fill='none' stroke='white' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 10px no-repeat;
}

.setup-m-card.is-on,
.setup-m-count.is-on,
.setup-m-mode.is-on {
  border-color: #FFD7CA;
  background: #FFF9F7;
  color: #EB5F31;
}

.setup-m-card.is-on .setup-m-ico {
  background: #FFE8DC;
  color: #EB5F31;
}

.setup-m-card.is-on .setup-m-tick,
.setup-m-count.is-on .setup-m-tick,
.setup-m-mode.is-on .setup-m-tick {
  display: block;
}

.setup-m-card.is-soon {
  color: #535862;
  background: #F5F5F5;
  border-color: #ECECEC;
  cursor: pointer;
}

.setup-m-card.is-soon .setup-m-ico {
  margin-top: 12px;
  background: #fff;
  color: #535862;
}

.setup-m-soon {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #964BE1;
}

.setup-m-counts,
.setup-m-modes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.setup-m-count,
.setup-m-mode {
  min-height: 52px;
  padding: 12px 10px;
  font-size: 14px;
  border-radius: 8px;
}

.setup-m-count {
  font-family: "Poppins", var(--font-num), sans-serif;
}

.setup-m-modes {
  grid-template-columns: 1fr 1fr;
}

.setup-m-select {
  position: relative;
  z-index: 12;
}

.setup-m-select > select {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.setup-m-select-btn {
  width: 100%;
  height: 52px;
  border: 1.5px solid #D9D9D9;
  border-radius: 14px;
  background: #fff;
  padding: 0 40px 0 16px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #414651;
  text-align: left;
  cursor: pointer;
}

.setup-m-select.is-open .setup-m-select-btn {
  border-color: #964BE1;
}

.setup-m-select-btn span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.setup-m-select-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 13;
  display: grid;
  align-content: start;
  max-height: min(52vh, calc(100dvh - 180px - env(safe-area-inset-bottom)));
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  background: #fff;
  border: 1.5px solid #E5E7EB;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.12);
}

.setup-m-select-menu[hidden] {
  display: none !important;
}

.setup-m-select-option {
  width: 100%;
  min-height: 44px;
  padding: 10px 16px;
  border: 0;
  border-bottom: 1px solid #F3F4F6;
  background: #fff;
  color: #252B37;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.setup-m-select-option:last-child {
  border-bottom: 0;
}

.setup-m-select-option.is-on {
  background: #F9F2FF;
  color: #964BE1;
}

.setup-m-select svg {
  position: absolute;
  right: 16px;
  top: 26px;
  width: 12px;
  height: 12px;
  color: #9ca3af;
  pointer-events: none;
}

.setup-m-select.is-open svg {
  transform: rotate(180deg);
}

.setup-m-start {
  width: 100%;
  min-height: 54px;
  margin-top: 4px;
  border: 0;
  border-radius:12px;
  background: #964BE1;
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
}

.setup-m-start:hover {
  background: #7C3BC8;
}

.quiz-m {
  padding-bottom: calc(168px + env(safe-area-inset-bottom));
}

.quiz-m-main {
  gap: 16px;
}

.quiz-m-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.quiz-m-head h1 {
  margin: 0 0 4px;
  font-size: 24px;
/*  font-weight: 800;*/
  letter-spacing: -0.04em;
  color: #111827;
  line-height: 1.2;
}

.quiz-m-head p {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  color: #535862;
}

.quiz-m-timer {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  min-height: 44px;
  padding: 8px 14px 8px 12px;
  border-radius: 12px;
  background: #FEF3F2;
}

.quiz-m-timer svg {
  width: 22px;
  height: 22px;
  color: #D92D20;
}

.quiz-m-timer strong {
  font-family: "Poppins", var(--font-num), sans-serif;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #252B37;
}

.quiz-m-progress {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #FAFAFA;
}

.quiz-m-palette-scrim {
  position: fixed;
  inset: 0;
  z-index: 18;
  border: 0;
  background: rgba(17, 24, 39, 0.38);
  cursor: pointer;
}

.quiz-m-palette-scrim[hidden] {
  display: none !important;
}

.quiz-m-palette-dock {
  position: fixed;
  left: max(0px, calc(50% - 215px));
  top: 0;
  bottom: calc(64px + env(safe-area-inset-bottom));
  z-index: 21;
  display: flex;
  align-items: center;
  pointer-events: none;
}

.quiz-m-palette-dock > * {
  pointer-events: auto;
}

.quiz-m-palette-menu {
  width: min(300px, calc(100vw - 44px));
  height: 100%;
  overflow: auto;
  background: #fff;
  padding: calc(18px + env(safe-area-inset-top)) 16px 18px;
  box-shadow: 8px 0 28px rgba(17, 24, 39, 0.14);
}

.quiz-m-palette-menu[hidden] {
  display: none !important;
}

.quiz-m-collapse {
  width: 28px;
  height: 56px;
  border: 0;
  border-radius: 0 12px 12px 0;
  background: #964BE1;
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 4px 0 14px rgba(150, 75, 225, 0.28);
}
button#quiz-m-palette-toggle {
  display: none !important;
}
.quiz-m-collapse svg {
  width: 14px;
  height: 14px;
}

.quiz-m-collapse.is-open svg {
  transform: rotate(180deg);
}

.quiz-m-palette-menu .quiz-m-pal {
  width: 100%;
  height: auto;
}

.quiz-m-progress-ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #EBE2FF;
  color: #5B05B1;
}

.quiz-m-progress-ico svg {
  width: 28px;
  height: 28px;
}

.quiz-m-progress-copy {
  min-width: 0;
}

.quiz-m-progress-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.quiz-m-progress-copy p {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: #535862;
}

.quiz-m-progress-track {
  height: 8px;
  border-radius: 999px;
  background: #E9EAEB;
  overflow: hidden;
}

.quiz-m-progress-track span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: #964BE1;
}

#quiz-m-progress-pct {
  font-size: 16px;
  font-weight: 700;
  color:#181D27;
}

.quiz-m-palette-menu h2,
.quiz-m-palette-card h2 {
  margin: 4px 0 12px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #111827;
}

.quiz-m-palette {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.quiz-m-pal {
  position: relative;
  aspect-ratio: 1;
  height: 35px;
  width: 56px;
  border: 1.5px solid #A4A7AE;
  background:  #E9EBF4;
  border-radius: 8px;
  font-family: "Poppins", var(--font-num), sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #535862;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.quiz-m-pal.is-answered {
  background: #EDFCF2;
  border-color: #86d49a;
  color: #099250;
}

.quiz-m-pal.is-skipped,
.quiz-m-pal.is-flagged:not(.is-answered):not(.is-current) {
  background: #fff8e8;
  border-color: #f5c56b;
  color: #c2410c;
}

/*.quiz-m-pal.is-current:not(.is-answered) {
  background: #964BE1;
  border-color: #964BE1;
  color: #fff;
}*/

.quiz-m .rev-pal-badge {
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 0 0 2px #fff;
}

.quiz-m .rev-pal-badge svg {
  width: 8px;
  height: 8px;
  display: block;
}

.quiz-m .rev-pal-badge.is-correct { background: #1b8a3e; }
.quiz-m .rev-pal-badge.is-flag {
  top: -5px;
  right: -5px;
  bottom: auto;
  background: #ff8a1f;
}

.quiz-m-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
  font-weight: 500;
  color: #535862;
}

.quiz-m-legend li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.quiz-m-legend span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-sizing: border-box;
}

.quiz-m-legend .is-answered { background: #099250; }
.quiz-m-legend .is-empty { background: #c7cce4; }
.quiz-m-legend .is-flag { background: #f59e0b; }

.quiz-m-list {
  display: grid;
  gap: 28px;
}

.quiz-m-q {
  scroll-margin-top: 12px;
  padding-bottom: 22px;
  border-bottom: 1px solid #e9eaeb;
}

.quiz-m-q:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.quiz-m-submit-bar {
  position: fixed;
  left: 50%;
  bottom: calc(64px + env(safe-area-inset-bottom));
  z-index: 17;
  width: min(430px, 100%);
  transform: translateX(-50%);
  padding: 10px 20px 12px;
  background: #fff;
  border-top: 1px solid #f0eef6;
  box-shadow: 0 -8px 24px rgba(17, 24, 39, 0.06);
}

.quiz-m-submit-bar[hidden] {
  display: none !important;
}

.quiz-m-submit {
  width: 100%;
  min-height: 54px;
  margin: 0;
  border: 0;
  border-radius: 12px;
  background: #964BE1;
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
}

.quiz-m-q-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.quiz-m-q-bar h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #964BE1;
}

.quiz-m-report {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  background:#E9EAEB;
  color: #414651;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.quiz-m-report svg {
  width: 14px;
  height: 14px;
}

.quiz-m .q-meta-badges {
  margin: 0 0 12px;
}

.quiz-m .q-badge-year {
    background: #F4F3FF;
    color: #5925DC;
}

.quiz-m .q-badge-diff.is-medium,
.quiz-m .q-badge-diff.is-unknown {
  background: #f3f4f6;
  color: #535862;
}

.quiz-m .q-badge-sample {
  background: #f9f2ff;
  color: #964be1;
}

.quiz-m-q-text {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  color: #252B37;
}

.quiz-m-options {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.quiz-m-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  text-align: left;
  background: #FAFAFA;
  border: 1px solid #E0E1E4;
  color: #181D27;
  background: #fff;
  border-radius: 8px;
  padding: 10px 14px;
  font: inherit;
  cursor: pointer;
}

.quiz-m-opt-key {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid #E0E1E4;
  background: #E9EAEB;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 12px;
  color: #414651;
  flex: 0 0 auto;
}

.quiz-m-opt-text {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  color: #111827;
}

.quiz-m-opt.is-on {
  border-color: #964BE1;
  background: #f9f2ff;
}

.quiz-m-opt.is-on .quiz-m-opt-key {
  background: #964BE1;
  border-color: #964BE1;
  color: #fff;
}

.quiz-m-tools-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.quiz-m-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  width: 100%;
  border: 0;
  border-radius: 12px;
  background: #F9F2FF;
  padding: 0 12px;
  color: #535862;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.quiz-m-link svg {
  width: 16px;
  height: 16px;
}

.quiz-m-link.is-on {
    border-color: #964BE1 !important;
    background: #f9f2ff !important;
    border: 1px solid;
}

.quiz-m-actions {
  position: fixed;
  left: 50%;
  bottom: calc(64px + env(safe-area-inset-bottom));
  z-index: 15;
  width: min(430px, 100%);
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 10px 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, #fff 28%);
}

.quiz-m-actions.is-away,
.quiz-m-actions[hidden] {
  display: none !important;
}

#quiz-m-wrap[hidden],
.quiz-m-done[hidden] {
  display: none !important;
}

#quiz-m-wrap[hidden] ~ .quiz-m-actions,
#quiz-m-wrap[hidden] ~ .quiz-m-top,
#quiz-m-wrap[hidden] ~ .quiz-m-submit-bar,
#quiz-m-wrap[hidden] ~ .quiz-m-palette-scrim,
#quiz-m-wrap[hidden] ~ .quiz-m-palette-dock {
  display: none !important;
}

.quiz-m-prev,
.quiz-m-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 46px;
  border-radius: 12px;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.quiz-m-prev {
  border: 1px solid #535862;
  background: #fff;
  color: #535862;
}

.quiz-m-prev:disabled {
  opacity: 0.45;
  cursor: default;
}

.quiz-m-next {
  border: 0;
  background: #964BE1;
  color: #fff;
}

.quiz-m-prev svg,
.quiz-m-next svg {
  width: 16px;
  height: 16px;
}

.quiz-m-top {
  position: fixed;
  right: max(16px, calc(50% - 215px + 16px));
  bottom: calc(148px + env(safe-area-inset-bottom));
  z-index: 16;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: #964BE1;
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(106, 75, 195, 0.28);
}

.quiz-m-top[hidden] {
  display: none !important;
}

.quiz-m-top svg {
  width: 20px;
  height: 20px;
}

.quiz-m-done {
  padding: 32px 20px 0;
  text-align: center;
}

.quiz-m-done p {
  margin: 0;
  color: #535862;
  font-size: 12px;
  font-weight: 600;
}

.quiz-m-done h1 {
  margin: 8px 0 12px;
  font-size: 24px;
}

.quiz-m-score {
  margin-bottom: 18px !important;
  color: #111827 !important;
  font-family: "Poppins", var(--font-num), sans-serif;
  font-size: 18px;
  font-weight: 800 !important;
}

.quiz-m-done .setup-m-start {
  width: 100%;
}

.quiz-m-done-back {
  display: block;
  margin-top: 12px;
  color: #964BE1;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

.perf-mobile-tabs {
  display: flex;
  gap: 12px;
  margin: 8px 0 14px;
  overflow: auto;
}

.perf-mobile-tabs a {
  color: #535862;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.perf-mobile-tabs a.is-active {
  color: #552ecd;
  border-bottom-color: #552ecd;
}

.perf-m-main {
  display: grid;
  gap: 16px;
  padding: 4px 16px 8px;
}

.perf-m-hello h1 {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #111827;
  line-height: 1.15;
}

.perf-m-hello p {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  color: #535862;
  line-height: 1.45;

}

.perf-m-subjects {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0;
  scrollbar-width: none;
}

.perf-m-subjects::-webkit-scrollbar {
  display: none;
}

.perf-m-subject {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px 0 10px;
  border: 0;
  border-radius: 6px;
  background: #F5F4FD;
  color: #414651;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.perf-m-subject-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  background: transparent;
  color: inherit;
}

.perf-m-subject-ico svg {
  width: 18px;
  height: 18px;
  display: block;
}

.perf-m-subject.is-active {
  background: #964be1;
  color: #fff;
}

.perf-m-subject.is-active .perf-m-subject-ico {
  background: transparent;
  color: #fff;
}

.perf-m-card {
  display: grid;
  gap: 16px;
  justify-items: center;
  padding: 20px 16px 16px;
  border: 1px solid #e8e8ec;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(17, 24, 39, 0.04);
}

.perf-m-ring {
  width: min(220px, 70%);
  height: auto;
  display: block;
}

.perf-m-trend-copy {
  text-align: center;
}

.perf-m-trend-copy h2 {
  margin: 0;
  color: #111827;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.perf-m-trend-copy p {
  margin: 4px 0 0;
  color:#535862;
  font-size: 12px;
  font-weight: 500;
}

.perf-m-table {
  width: 100%;
  display: grid;
  gap: 8px;
}

.perf-m-table-head,
.perf-m-table-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr 0.7fr;
  gap: 6px;
  align-items: center;
}

.perf-m-table-head span,
.perf-m-table-row span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 6px 8px;
  border-radius: 4px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
}

.perf-m-table-head span {
  background:#F6F5FF;
  color: #181D27;
}

.perf-m-table-row span {
  background: #fafafa;
  color:#252B37;
  font-family: "Poppins", var(--font-num), sans-serif;
  font-weight: 500;
}

.perf-m-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  display: inline-block;
}

.perf-m-dot.is-strong { background: #22c55e; }
.perf-m-dot.is-need { background: #f97316; }
.perf-m-dot.is-skip { background: #c5c7d0; }

.perf-m-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 12px;
  background: #964be1;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.perf-m-btn:hover,
.perf-m-btn:active {
  background: #7c3bc8;
  color: #fff;
}

.perf-m-detail {
  display: grid;
  gap: 12px;
}

.perf-m-back-overview {
  color: #964be1;
  font-size: 13px;
  font-weight: 700;
}

.perf-m-detail h2 {
  margin: 0;
  color: #111827;
  font-size: 16px;
  font-weight: 800;
}

.perf-m-detail-list {
  display: grid;
  gap: 10px;
}

.perf-m-detail-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid #e8e8ec;
  border-radius: 14px;
  background: #fff;
}

.perf-m-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.perf-m-detail-head strong {
  color: #111827;
  font-size: 14px;
  font-weight: 700;
}

.perf-m-detail-head span {
  flex: 0 0 auto;
  color: #6b7280;
  font-size: 12px;
  font-weight: 600;
}

.perf-m-detail-card p {
  margin: 0;
  color: #6b7280;
  font-size: 12px;
}

.perf-m-detail-practice {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  background: #f3e8ff;
  color: #964be1;
  font-size: 12px;
  font-weight: 700;
}

.cov-mobile .cov-toolbar {
  display: grid;
  gap: 12px;
  margin: 4px 0 12px;
}

.cov-mobile .cov-filters button,
.cov-mobile .cov-sort span,
.cov-mobile .cov-count.is-0,
.cov-mobile .cov-legend,
.cov-mobile .cov-tip {
  color: #535862;
}

.cov-filters {
  display: flex;
  gap: 8px;
  overflow: auto;
  padding: 2px 0;
}

.cov-filters button {
  flex: 0 0 auto;
  height: 34px;
  padding: 0 12px;
  border: 1.5px solid #e5e7eb;
  border-radius: 999px;
  background: #fff;
  color: #6b7280;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.cov-filters button.is-active {
  border-color: #552ecd;
  color: #552ecd;
  background: #f5f3ff;
}

.cov-sort {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.cov-sort span {
  color: #6b7280;
  font-size: 12px;
  font-weight: 600;
}

.cov-sort select {
  width: 100%;
  height: 40px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.2 4.4 6 8.1l3.8-3.7' fill='none' stroke='%238A8F9C' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 12px center / 12px no-repeat;
  padding: 0 36px 0 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: #111827;
  appearance: none;
}

.cov-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 24px;
  padding: 0 7px;
  border-radius: 6px;
  font-family: "Poppins", var(--font-num), sans-serif;
  font-size: 12px;
  font-weight: 800;
}

.cov-count.is-0 { background: #eef0f4; color: #6b7280; }
.cov-count.is-1 { background: #dbeafe; color: #1d4ed8; }
.cov-count.is-23 { background: #dcfce7; color: #15803d; }
.cov-count.is-4 { background: #86efac; color: #14532d; }

.cov-practice {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 12px;
  border: 1.5px solid #93c5fd;
  border-radius: 8px;
  color: #2563eb;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.cov-mobile .cov-practice {
  width: 100%;
  margin-top: 10px;
}

.cov-mobile-list.biology .cov-practice.is-again {
  color: #16a34a;
  border-color: #86efac;
}

.cov-mobile-list.chemistry .cov-practice.is-again {
  color: #552ecd;
  border-color: #c4b5fd;
}

.cov-mobile-list.physics .cov-practice.is-again {
  color: #2563eb;
  border-color: #93c5fd;
}

.cov-bar {
  height: 8px;
  border-radius: 999px;
  background: #eef0f4;
  overflow: hidden;
}

.cov-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #22c55e;
}

.cov-mobile-summary.biology .cov-bar i,
.cov-col.biology .cov-bar i { background: #22c55e; }
.cov-mobile-summary.chemistry .cov-bar i,
.cov-col.chemistry .cov-bar i { background: #552ecd; }
.cov-mobile-summary.physics .cov-bar i,
.cov-col.physics .cov-bar i { background: #2563eb; }

.cov-mobile-summary p {
  margin: 0 0 10px;
  color: #535862;
  font-size: 13px;
  font-weight: 600;
}

.cov-foot {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.cov-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  color: #6b7280;
  font-size: 12px;
  font-weight: 600;
}

.cov-legend-title {
  color: #374151;
  font-weight: 700;
}

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

.cov-legend i {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  display: inline-block;
}

.cov-legend .is-0 { background: #eef0f4; }
.cov-legend .is-1 { background: #dbeafe; }
.cov-legend .is-23 { background: #dcfce7; }
.cov-legend .is-4 { background: #86efac; }

.cov-tip {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  color: #6b7280;
  font-size: 12px;
  font-weight: 500;
}

.cov-tip svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: #f59e0b;
  margin-top: 1px;
}

/*.cov-m {
  background: #f7f7f8;
}*/

.cov-m-main {
  display: grid;
  gap: 16px;
  padding: 4px 16px 8px;
}

.cov-m-hello {
  margin: 0;
}

.cov-m-hello h1 {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #111827;
  line-height: 1.15;
}

.cov-m-hello p {
  margin: 0;
 font-size: 15px;
 font-weight: 500;
 color: #535862;
 line-height: 1.45;
}

.cov-m-subjects {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0;
  scrollbar-width: none;
}

.cov-m-subjects::-webkit-scrollbar {
  display: none;
}

.cov-m-subject {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px 0 10px;
/*  border: 1.5px solid #e5e7eb;*/
  border-radius: 6px;
  background: #F5F4FD;
  color:#414651;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.cov-m-subject-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #111827;
}

.cov-m-subject-ico svg {
  width: 15px;
  height: 15px;
}

.cov-m-subject.is-active {
/*  border-color: var(--purple);*/
  background: #964BE1;
  color: #fff;
}

.cov-m-subject.is-active .cov-m-subject-ico {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.cov-m-progress {
  display: grid;
  gap: 12px;
  padding: 14px 14px 16px;
  border: 1.5px solid #E0E1E4;
  border-radius: 8px;
  background: #FAFAFA;
}

.cov-m-progress-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 18px;
  border-bottom: 1px solid #E0E1E4;
}

.cov-m-progress-top p {
  margin: 0;
  color: #535862;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
}

.cov-m-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 6px 16px;
  border-radius: 8px;
  background: #F1E2FF;
  color: #964BE1;
  font-family: "Poppins", var(--font-num), sans-serif;
  font-size: 12px;
  font-weight: 700;
}

.cov-m-progress-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cov-m-bar {
  flex: 1 1 auto;
  height: 8px;
  border-radius: 999px;
  background: #E9EAEB;
  overflow: hidden;
}

.cov-m-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--purple);
}

.cov-m-progress-row strong {
  flex: 0 0 auto;
  color: #535862;
  font-family: "Poppins", var(--font-num), sans-serif;
  font-size: 13px;
  font-weight: 500;
}

.cov-m-chapters {
  display: grid;
  gap: 12px;
}

.cov-m-chapters h2 {
  margin: 0;
  color: #111827;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.cov-m-chapters-tools {
  display: flex;
  justify-content: flex-end;
}

.cov-m-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.cov-m-stat {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 10px 8px;
  border: 0;
  border-radius: 12px;
  background: #F5F5F5;
  text-align: center;
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.cov-m-stat span {
  color: #414651;
  font-size: 11px;
  font-weight: 500;
}

.cov-m-stat strong {
  color: #535862;
  font-family: "Poppins", var(--font-num), sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.1;
}

.cov-m-stat.is-active {
  background: #fafafa;
}

.cov-m-stat.is-active span,
.cov-m-stat.is-active strong {
  color: #964be1;
}

.cov-m-sort {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  min-height: 28px;
  padding: 0 16px 0 12px;
  border: 0;
  border-radius: 999px;
  background: #E9EAEB;
/*  border: 1px solid #E9EAEB;*/
  color: #414651;
}

.cov-m-sort[hidden] {
  display: none !important;
}

.cov-m-sort > svg:first-of-type {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  color: #6b7280;
}

.cov-m-sort select {
  appearance: none;
  border: 0;
  background: transparent;
  color: #414651;
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  padding: 0;
  margin: 0;
  max-width: 150px;
  cursor: pointer;
}

.cov-m-sort-chevron {
  position: absolute;
  right: 8px;
  width: 14px;
  height: 14px;
  pointer-events: none;
  color: #6b7280;
}

.cov-m-list {
  display: grid;
  gap: 10px;
}

.cov-m-card {
  display: grid;
  gap: 0;
  padding: 0;
  border: 1.5px solid #E0E1E4;
  border-radius: 12px;
  box-shadow: 0 1px 2px -1px rgba(10, 173, 18, 0.10), 0 1px 3px 0 rgba(10, 173, 18, 0.10);
  background: #FAFAFA;
  overflow: hidden;
}

.cov-m-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid #E0E1E4;
}

.cov-m-num {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #F5F5F5;
  color: #414651;
  font-family: "Poppins", var(--font-num), sans-serif;
  font-size: 12px;
  font-weight: 600;
}

.cov-m-card-head strong {
  min-width: 0;
  color: #111827;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

.cov-m-card-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
  padding: 12px 14px 14px;
}

.cov-m-card-body > div {
  display: grid;
  gap: 4px;
  border-right: 1px solid #E0E1E4;
  min-width: 0;
}

.cov-m-card-body span {
  color: #535862;
  font-size: 11px;
  font-weight: 400;
  text-align: center;
}

.cov-m-card-body b {
  color:#252B37;
  font-family: "Poppins", var(--font-num), sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.1;
  text-align: center;
}

.cov-m-score.good,
.cov-m-score.mid { color: #ea580c; }
.cov-m-score.low { color: #FA6432; }
.cov-m-score.none { color: #111827; }

.cov-m-practice {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  background: #F2E5FF;
  color: #964BE1;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.hist-score {
  font-family: "Poppins", var(--font-num), sans-serif;
}

.hist-score.good { color: #16a34a; }
.hist-score.mid { color: #ea580c; }
.hist-score.low { color: #dc2626; }

.landing-desktop {
  display: none;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 100;
  background: #552ecd;
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
}

.skip-link:focus {
  left: 12px;
}

@media (min-width: 1024px) {
  html:has(.landing-body),
  html:has(.landing-body) body.landing-body {
    min-height: 100%;
    overflow-x: hidden;
  }

  .landing-body {
    max-width: none;
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
/*    background: #f3e8ff4d;*/
     background: #FBFCFF;
  }

  .landing-mobile {
    display: none !important;
  }

  .landing-desktop {
    --desk: #552ecd;
    --desk-dark: #4524b0;
    --desk-purple: #6d4dff;
    --desk-ink: #0f172a;
    --desk-muted: #64748b;
    display: grid;
    grid-template-areas:
      "header"
      "hero"
      "trust"
      "features"
      "footer";
    /* The hero row fills leftover space on tall screens, but never shrinks
       below its content — short screens grow the page and scroll instead. */
    grid-template-rows: auto 1fr auto auto auto;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
    color: var(--desk-ink);
    background: transparent;
    font-family: Inter, system-ui, -apple-system, Segoe UI, sans-serif;
  }

  .landing-desktop > .skip-link {
    position: absolute;
  }

  .landing-desktop > .desk-header { grid-area: header; }
  .landing-desktop > main { display: contents; }
  .landing-desktop .desk-hero { grid-area: hero; }
  .landing-desktop .desk-trust { grid-area: trust; }
  .landing-desktop .desk-features { grid-area: features; }
  .landing-desktop > .desk-footer { grid-area: footer; }

  html {
    scroll-behavior: smooth;
  }

  #desk-offer,
  #neet-features,
  #desk-about,
  #desk-contact,
  #desk-support {
    scroll-margin-top: 0;
  }

  .desk-wrap {
    width: min(1200px, calc(100% - 112px));
    margin-inline: auto;
  }

  .desk-header {
    position: relative;
    z-index: 30;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  }

  .desk-header-inner {
    min-height: 58px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
  }

  .desk-header-inner .brand {
    justify-self: start;
    gap: 10px;
  }

  .desk-header-inner .desk-auth-actions,
  .desk-header-inner .desk-btn-solid {
    justify-self: end;
  }

  .desk-auth-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }

  .desk-header .brand-name {
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #0f172a;
  }

  .desk-logo {
    width: 28px;
    height: 28px;
  }

  .desk-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    font-size: 14px;
    font-weight: 500;
    color: #475569;
  }

  .desk-nav a {
    position: relative;
    padding: 8px 0;
    transition: color 0.15s ease;
  }

  .desk-nav a.is-active,
  .desk-nav a:hover {
    color: #0f172a;
    font-weight: 600;
  }

  .desk-nav a.is-active::after {
    display: none;
  }

  .desk-btn-outline,
  .desk-btn-solid {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 96px;
    height: 40px;
    padding: 0 18px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    font-family: inherit;
    transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  }

  .desk-btn-outline {
    border: 1.5px solid #c4b5fd;
    color: #552ecd;
    background: #fff;
  }

  .desk-btn-outline:hover {
    background: #f5f3ff;
    border-color: #552ecd;
    transform: translateY(-1px);
  }

  .desk-btn-solid {
    background: #552ecd;
    color: #fff;
    border: 0;
    box-shadow: 0 8px 20px rgba(85, 46, 205, 0.22);
  }

  .desk-btn-solid:hover {
    background: #4524b0;
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(85, 46, 205, 0.28);
  }

  .desk-hero {
    position: relative;
    display: flex;
    align-items: center;
    padding: 8px 0 4px;
  }

  .desk-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 492px;
    gap: 56px;
    align-items: center;
  }

  .desk-hero-copy {
    min-width: 0;
  }

  .desk-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 18px;
    padding: 7px 14px;
    border-radius: 999px;
    background: #5D3FD30D;
    color: #5D3FD3;
    border: 1px solid #5d3fd342;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
  }

  .desk-hero-badge span {
    display: inline-grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    color: #7c3aed;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
  }

  .desk-hero-copy h1 {
    margin: 0;
    font-size:54px;
    line-height: 1.07;
    letter-spacing: -0.045em;
    font-weight: 800;
    color: #0f172a;
  }

  .desk-hero-copy h1 span {
    display: inline-block;
/*    color: #7c5cfc;*/
    background: linear-gradient(135deg, #2D2DAD 0%, #B097FF 100%);
   -webkit-background-clip: text;
   -webkit-text-fill-color: transparent;
    white-space: nowrap;
  }

  .desk-hero-lead {
    margin: 16px 0 28px;
    color: #64748b;
    font-size: 16px !important;
    font-weight: 400;
    line-height: 1.6;
    max-width: 450px;
  }

  .desk-hero-points {
    list-style: none;
    display: grid;
    gap: 12px;
    max-width: 440px;
  }

  .desk-hero-points li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0;
    border: 0;
    font-size: 15px;
    font-weight: 500;
    color: #334155;
  }

  .desk-check {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    display: grid;
  }

  .desk-check svg {
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: #2DD4BF1A;
    color: #2DD4BF;
  }

  .desk-offer {
    position: relative;
    overflow: hidden;
    width: 100%;
    background: #fff;
    border-radius: 24px;
    /*box-shadow:
      0 24px 56px rgba(79, 70, 229, 0.14),
      0 2px 0 rgba(255, 255, 255, 0.8) inset;*/
/*    border: 1px solid rgba(226, 232, 240, 0.95);*/
    box-shadow: 0 12px 35px rgba(70, 90, 140, 0.08);
    border: 1px solid #DCEBFF;
    padding: 28px 30px 24px;
  }

  .desk-offer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 18px;
    right: 18px;
    height: 4px;
    border-radius: 0 0 8px 8px;
    background: linear-gradient(90deg, #fb923c, #f97316 45%, #fbbf24);
  }

  .desk-offer-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: start;
    margin-bottom: 22px;
  }

  .desk-offer-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    padding: 4px 20px;
    border-radius: 999px;
    border: 1px solid #5D3FD31A;
    background: #f5f3ff99;
    color: #6344D4;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .desk-offer-badge svg {
    width: 14px;
    height: 14px;
  }

  .desk-seats-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #fff7ed;
    color: #f97316;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .desk-seats-pill svg {
    width: 12px;
    height: 12px;
  }

  .desk-offer-copy {
    min-width: 0;
  }

  .desk-offer-copy h2 {
    margin: 14px 0 0;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #0f172a;
  }

  .desk-offer-sub {
    margin: 0;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 400;
  }

  .desk-offer-price {
    text-align: right;
    min-width: 118px;
    padding-top: 6px;
  }

  .desk-zero {
    margin: 0;
    font-size: 44px;
    font-weight: 800;
    line-height: 0.95;
    color: #0f172a;
    letter-spacing: -0.05em;
  }

  .desk-old-price {
    margin: 4px 0 0;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 500;
  }

  /*.desk-old-price s {
    text-decoration: line-through;
    text-decoration-color: #ef4444;
    text-decoration-thickness: 2px;
  }*/

  .desk-old-price s {
    text-decoration: none;
    position: relative;
}

.desk-old-price s::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 2px;
    background: #ef4444;
    transform: rotate(-10deg);
}

  .desk-offer-checks {
    list-style: none;
    display: grid;
    gap: 15px;
    margin: 0 0 24px;
  }

  .desk-offer-checks li {
    position: relative;
    padding-left: 30px;
    font-size: 14px;
    font-weight: 500;
    color: #5A6371;
    line-height: 1.35;
  }

  .desk-offer-checks li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1px;
    width: 20px;
    height: 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Ccircle cx='10' cy='10' r='10' fill='%2322C55E'/%3E%3Cpath d='M6 10.2 8.8 13 14 7.6' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
  }

  .desk-offer-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .desk-offer-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 300px);
    height: 54px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    background: #6344D4;
    box-shadow: 0 14px 28px rgba(85, 46, 205, 0.28);
    transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  }

  .desk-offer-cta:hover {
    background: #4524b0;
    transform: translateY(-1px);
    box-shadow: 0 18px 32px rgba(85, 46, 205, 0.32);
  }

  .desk-hurry {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 6px 14px;
    border-radius: 999px;
    background: #fff3e6;
    font-size: 12px;
    font-weight: 600;
  }

  .desk-hurry-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #f97316;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .desk-hurry svg {
    width: 13px;
    height: 13px;
    flex: 0 0 auto;
  }

  .desk-hurry-count {
    color: #7c2d12;
    font-weight: 600;
  }

  .desk-offer-login {
    margin: 0;
    text-align: center;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 500;
    color: #64748b;
  }

  .desk-offer-login a {
    color: #552ecd;
    font-weight: 700;
  }

  .desk-offer-login a:hover {
    text-decoration: underline;
  }

  .desk-trust {
    padding: 4px 0 2px;
  }

  .desk-trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background:rgba(255, 255, 255, 0.5);
    border: 1px solid rgb(214 218 223);
    border-radius: 18px;
/*    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);*/
    box-shadow: 0 4px 12px rgba(226, 232, 240, 1);
    padding: 4px 6px;
  }

  .desk-trust-grid article {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    position: relative;
  }

  .desk-trust-grid article:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 12px;
    bottom: 12px;
    width: 1px;
    background: #eef2f7;
  }

  .desk-trust-ico {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid #d4d9de;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    background: #fff !important;
    color: #7c3aed;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
  }

  .desk-trust-ico svg {
    width: 16px;
    height: 16px;
  }

  .desk-trust h2 {
    margin: 0;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #0f172a;
  }

  .desk-trust p {
    margin: 1px 0 0;
    color: rgba(100, 116, 139, 1);
    font-size: 11px;
    font-weight: 400;
  }

  .desk-features {
    padding: 10px 0 2px;
  }

  .desk-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.04em;
    margin: 0 0 10px;
    color: #0f172a;
  }

  .desk-section-title::before {
    content: "";
    width: 4px;
    height: 22px;
    border-radius: 999px;
    background: rgba(93, 63, 211, 1);
  }

  .desk-section-title::after {
    display: none;
  }

  .desk-section-title span {
    color: inherit;
  }

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

  .desk-feature-grid article {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgb(214 218 223);
    border-radius: 20px ;
    box-shadow: 0 4px 12px rgba(226, 232, 240, 1);
    padding: 12px 12px 12px;
    text-align: left;
    min-height: 0;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
  }

  .desk-feature-grid article:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 22px rgba(15, 23, 42, 0.07);
  }

  .desk-feature-ico {
    width: 34px;
    height: 34px;
    margin: 0 0 8px;
    border-radius: 8px;
    display: grid;
    place-items: center;
  }

  .desk-feature-ico svg {
    width: 18px;
    height: 18px;
  }

  .desk-feature-ico.is-blue { background:rgb(96 165 250 / 19%); color: rgba(96, 165, 250, 1); }
  .desk-feature-ico.is-purple { background: rgb(192 132 252 / 18%); color: rgba(192, 132, 252, 1); }
  .desk-feature-ico.is-orange { background:rgb(251 146 60 / 13%); color: rgba(255, 138, 52, 1); }
  .desk-feature-ico.is-green { background: rgb(208 238 217 / 74%); color: rgba(34, 197, 94, 1); }
  .desk-feature-ico.is-pink { background: rgb(251 113 133 / 13%); color: rgba(251, 113, 133, 1); }
  .desk-feature-ico.is-sky { background: rgb(34 211 238 / 20%); color:rgba(34, 211, 238, 1); }

  .desk-feature-grid h3 {
    margin: 0 0 4px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
    color: #0f172a;
  }

  .desk-feature-grid p {
    margin: 0;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(100, 116, 139, 1);
    line-height: 1.3;
  }

  .desk-footer {
    padding: 4px 0 10px;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 500;
  }

  .desk-seo-copy {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .desk-footer-inner {
    text-align: center;
  }
}

@media (min-width: 1024px) and (max-width: 1279px) {
  .desk-wrap {
    width: min(1120px, calc(100% - 44px));
  }

  .desk-hero-grid {
    grid-template-columns: minmax(0, 1fr) 440px;
    gap: 32px;
  }

  .desk-hero-copy h1 {
    font-size: 54px;
  }

  .desk-nav {
    gap: 16px;
    font-size: 13px;
  }

  .desk-trust-grid article {
    padding-inline: 10px;
  }

  .desk-feature-grid h3 {
    font-size: 12px;
  }
}

/* Short student laptops — keep one screen, shrink carefully */
/* Laptop heights (~768px) — offer card must fit the hero row */
/*@media (min-width: 1024px) and (max-height: 720px) {
  .desk-offer {
    padding: 18px 24px 16px;
    border-radius: 24px;
  }

  .desk-offer-head {
    margin-bottom: 8px;
  }

  .desk-offer-copy h2 {
    margin-top: 10px;
    font-size: 24px;
  }

  .desk-zero {
    font-size: 38px;
  }

  .desk-old-price {
    margin-top: 3px;
  }

  .desk-seats-pill {
    margin-top: 7px;
  }

  .desk-offer-checks {
    gap: 16px;
    margin-bottom: 16px;
  }

  .desk-offer-checks li {
    font-size: 14px;
  }

  .desk-offer-actions {
    gap: 9px;
  }

  .desk-offer-cta {
    height: 48px;
    font-size: 15px;
    border-radius: 13px;
  }
}
*/
@media (min-width: 1024px) and (max-height: 900px) {
  .desk-header-inner {
    min-height: 50px;
  }

  .desk-btn-outline,
  .desk-btn-solid {
    height: 36px;
    font-size: 13px;
  }

  .desk-hero {
    padding: 4px 0 2px;
  }

  .desk-hero-copy h1 {
    font-size: 54px;
  }

  .desk-hero-lead {
    margin: 10px 0 12px;
    font-size: 14px;
  }

  .desk-hero-points {
    gap: 8px;
  }

  .desk-hero-points li {
    font-size: 13px;
  }

  .desk-offer {
    padding: 18px 18px 15px;
    border-radius: 20px;
  }

  .desk-offer-head {
    margin-bottom: 6px;
  }

  .desk-offer-badge {
    padding: 5px 10px;
    font-size: 10px;
  }

  .desk-offer-copy h2 {
    margin-top: 7px;
    font-size: 21px;
  }

  .desk-offer-sub {
    font-size: 12px;
  }

  .desk-zero {
    font-size: 32px;
  }

  .desk-old-price {
    margin-top: 2px;
    font-size: 24px;
  }

  .desk-seats-pill {
    margin-top: 3px;
    padding: 4px 14px;
    font-size: 10px;
  }

  .desk-offer-checks {
    gap: 12px;
    margin-bottom: 22px;
  }

  .desk-offer-checks li {
    font-size: 12px;
    padding-left: 26px;
    line-height: 1.3;
  }

  .desk-offer-checks li::before {
    width: 17px;
    height: 17px;
    background-size: 17px;
  }

  .desk-offer-actions {
    gap: 10px;
  }

  .desk-offer-cta {
    height: 42px;
    font-size: 14px;
    width: min(100%, 260px);
    border-radius: 12px;
  }

  .desk-hurry {
    padding: 2px 10px;
    font-size: 11px;
  }

  .desk-offer-login {
    font-size: 12px;
  }

  .desk-trust-grid article {
    padding: 7px 10px;
  }

  .desk-trust-ico {
    width: 30px;
    height: 30px;
  }

  .desk-features {
    padding: 6px 0 0;
  }

  .desk-section-title {
    font-size: 18px;
    margin-bottom: 8px;
  }

  .desk-feature-grid article {
    padding: 10px;
  }

  .desk-feature-ico {
    width: 30px;
    height: 30px;
    margin-bottom: 6px;
  }

  .desk-footer {
    padding: 2px 0 8px;
  }
}

.practice-desktop,
.dashboard-desktop {
  display: none;
}

@media (min-width: 1024px) {
  .mobile-desktop-gate {
    display: none !important;
    position: absolute !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
  }

  body.practice-body .brand,
  .mobile-desktop-gate .brand,
  .practice-desktop > :not(.desk-side):not(.desk-practice-shell),
  .desk-side > .desk-side-brand ~ .desk-side-brand,
  .practice-desktop > .desk-side ~ .desk-side {
    display: none !important;
  }

  .practice-body {
    max-width: none;
    margin: 0;
    height: 100vh;
    overflow: hidden;
    background: #f6f7fb;
  }

  .practice-body .app.practice-app {
    display: block;
    width: 100%;
    max-width: none;
    height: 100vh;
    min-height: 100vh;
    padding: 0;
    margin: 0;
    background: #f6f7fb;
    overflow: hidden;
  }

  .practice-mobile {
    display: none !important;
  }

  .practice-desktop {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    grid-template-areas: "side main";
    grid-template-rows: minmax(0, 1fr);
    height: 100%;
    min-height: 0;
    background: #f6f7fb;
    font-family: var(--font);
    overflow: hidden;
  }

  .practice-desktop > .desk-side {
    grid-area: side;
  }

  .practice-desktop > .desk-practice-shell {
    grid-area: main;
  }

  .desk-side {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    background: #fff;
    border-right: 1px solid #eceef4;
    padding: 22px 14px 18px;
    overflow: hidden;
  }

  .desk-side-brand {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
    margin: 0 10px 28px;
    text-decoration: none;
    color: inherit;
  }

  .desk-side-brand .brand-name {
    white-space: nowrap;
  }

  .desk-side-nav {
    display: grid;
    align-content: start;
    gap: 12px;
    overflow: auto;
    min-height: 0;
    flex: 1;
  }

  .desk-side-nav a,
  .desk-side-settings {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 16px;
    color: #4b5563;
    font-weight: 500;
    font-size: 15px;
    line-height: 1.2;
    background: transparent;
  }

  .desk-side-nav a svg,
  .desk-side-settings svg {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    stroke-width: 1.7;
  }

  .desk-side-nav a:hover,
  .desk-side-settings:hover {
    background: transparent;
    color: #552ecd;
  }

  .desk-side-nav a.is-active,
  .desk-side-nav a.is-active:hover {
    background: #ebe4ff;
    color: #6a4bc3;
    box-shadow: inset 4px 0 0 #6a4bc3;
  }

  .desk-side-div {
    border: 0;
    border-top: 2px solid #eceef4;
    margin: 4px 10px;
  }

  .desk-side-logout button {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    border: 0;
    border-radius: 16px;
    background: transparent;
    color: #4b5563;
    font-weight: 500;
    font-size: 15px;
    line-height: 1.2;
    text-align: left;
    cursor: pointer;
  }

  .desk-side-logout button svg {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    stroke-width: 1.7;
  }

  .desk-side-logout button:hover {
    color: #552ecd;
  }

  .desk-side-acc {
    display: grid;
    gap: 0;
  }

  .desk-side-acc.is-open {
    background: linear-gradient(180deg, #faf8ff 0%, #f4f0ff 100%);
    border: 1px solid #ece6ff;
    border-radius: 18px;
    padding: 2px 0 8px;
  }

  .desk-side-acc-head {
    display: flex;
    align-items: center;
    border-radius: 16px;
  }

  .desk-side-acc.is-open .desk-side-acc-head {
    border-radius: 16px 16px 10px 10px;
  }

  .desk-side-acc-head.is-active,
  .desk-side-acc-head.is-active .desk-side-acc-link {
    color: #6a4bc3;
  }

  .desk-side-acc:not(.is-open) .desk-side-acc-head.is-active {
    background: #ebe4ff;
    box-shadow: inset 4px 0 0 #6a4bc3;
  }

  .desk-side-acc:not(.is-open) .desk-side-acc-link {
    flex: 1;
  }

  .desk-side-acc.is-open .desk-side-acc-head.is-active {
    background: transparent;
  }

  .desk-side-acc-head.is-current,
  .desk-side-acc-head.is-current .desk-side-acc-link,
  .desk-side-acc-head.is-current .desk-side-acc-toggle {
    color: #6a4bc3;
  }

  .desk-side-acc-link {
    flex: 0 1 auto;
    min-width: 0;
    padding-right: 4px;
  }

  .desk-side-acc-head.is-active .desk-side-acc-link,
  .desk-side-acc-head.is-active .desk-side-acc-link:hover {
    background: transparent;
    color: #6a4bc3;
  }

  .desk-side-acc-toggle {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    margin-left: 2px;
    border: 0;
    padding: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    display: grid;
    place-items: center;
    border-radius: 0;
    appearance: none;
  }

  .desk-side-acc-toggle svg,
  .desk-side-nav .desk-side-acc-toggle svg {
    width: 16px;
    height: 16px;
    display: block;
    transition: transform 0.22s cubic-bezier(.22,.8,.36,1);
  }

  .desk-side-acc.is-open .desk-side-acc-toggle svg {
    transform: rotate(180deg);
  }

  .desk-side-acc-toggle:hover {
    color: #552ecd;
    background: transparent;
  }

  .desk-side-nav a.is-current,
  .desk-side-nav a.is-current:hover {
    color: #6a4bc3;
  }

  .desk-side-sub {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transition: grid-template-rows 0.32s cubic-bezier(.22,.8,.36,1), opacity 0.22s ease;
  }

  .desk-side-acc.is-open .desk-side-sub {
    grid-template-rows: 1fr;
    opacity: 1;
    pointer-events: auto;
  }

  .desk-side-sub-inner {
    overflow: hidden;
    min-height: 0;
    display: grid;
    gap: 4px;
    margin: 0 8px 0 12px;
    padding: 6px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #eee8ff;
    box-shadow: 0 8px 20px rgba(85, 46, 205, 0.06);
  }

  .desk-side-nav .desk-side-sub-link {
    gap: 10px;
    padding: 8px 10px;
    border-radius: 11px;
    color: #4b5563;
    font-size: 13.5px;
    font-weight: 600;
  }

  .desk-side-nav .desk-side-sub-link svg {
    width: 14px;
    height: 14px;
  }

  .desk-side-sub-ico {
    width: 28px;
    height: 28px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
  }

  .desk-side-sub-ico.biology { background: #e8f8ee; color: #16a34a; }
  .desk-side-sub-ico.chemistry { background: #ede4ff; color: #552ecd; }
  .desk-side-sub-ico.physics { background: #fff1e6; color: #ea580c; }

  .desk-side-nav .desk-side-sub-link:hover {
    background: #f6f3ff;
    color: #552ecd;
  }

  .desk-side-nav .desk-side-sub-link.is-active,
  .desk-side-nav .desk-side-sub-link.is-active:hover {
    background: #efe9ff;
    color: #552ecd;
    box-shadow: inset 0 0 0 1px #e4dcff;
  }

  .desk-side-acc.is-open .desk-side-sub-link {
    animation: desk-sub-in 0.34s cubic-bezier(.22,.8,.36,1) both;
  }

  .desk-side-acc.is-open .desk-side-sub-link:nth-child(1) { animation-delay: 0.04s; }
  .desk-side-acc.is-open .desk-side-sub-link:nth-child(2) { animation-delay: 0.09s; }
  .desk-side-acc.is-open .desk-side-sub-link:nth-child(3) { animation-delay: 0.14s; }

  @keyframes desk-sub-in {
    from {
      opacity: 0;
      transform: translateY(-6px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .desk-side-sub,
    .desk-side-acc-toggle,
    .desk-side-acc-toggle svg,
    .desk-side-acc.is-open .desk-side-sub-link {
      animation: none;
      transition: none;
    }
  }

  .desk-side-note {
    display: none;
  }

  .desk-side-settings {
    margin-top: auto;
    flex: 0 0 auto;
  }

  .desk-practice-shell {
    display: grid;
    grid-template-rows: 64px 1fr;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
  }

  .desk-practice-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 28px;
    background: #fff;
    border-bottom: 1px solid #eceef4;
  }

  .desk-top-copy {
    min-width: 0;
    display: grid;
    gap: 2px;
  }

  .desk-icon-btn {
    width: 36px;
    height: 36px;
    border: 0;
    background: #fff;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #4b5563;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
  }

  .desk-icon-btn svg {
    width: 20px;
    height: 20px;
  }

  .desk-icon-btn:hover {
    background: #f3f4f6;
  }

  .desk-title-block {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
  }

  .desk-title-ico {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #ede4ff;
    color: #552ecd;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    margin-top: 2px;
  }

  .desk-title-ico svg {
    width: 22px;
    height: 22px;
  }

  .desk-page-title {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.045em;
    margin: 0;
    font-family: var(--display);
    color: #111827;
  }

  .desk-page-sub {
    margin: 4px 0 0;
    color: #6b7280;
    font-size: 13px;
    font-weight: 500;
  }

  .desk-updated,
  .desk-filter-btn {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 14px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    color: #374151;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
  }

  .desk-filter-btn {
    cursor: pointer;
    margin-right: 10px;
  }

  .desk-filter-btn svg {
    width: 16px;
    height: 16px;
  }

  .desk-filter-btn:hover {
    border-color: #d1d5db;
    background: #f9fafb;
  }

  .desk-date-filter {
    position: relative;
    margin: 0 10px 0 0;
  }

  .desk-updated-filter {
    cursor: pointer;
    appearance: none;
  }

  .desk-updated-filter:hover {
    border-color: #d1d5db;
  }

  .desk-updated-input {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    border: 0;
    background: transparent;
  }

  .desk-updated svg {
    width: 16px;
    height: 16px;
    color: #6b7280;
  }

  .desk-practice-tools {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
  }

  .desk-welcome {
    min-width: 0;
  }

  .desk-welcome h1 {
    margin: 0 0 4px;
    font-size: var(--fs-xl);
    font-weight: var(--fw-bold);
    color: #1a1a2e;
    letter-spacing: -0.03em;
  }

  .desk-welcome p {
    margin: 0;
    font-size: var(--fs-md);
    color: #535862;
    font-weight: var(--fw-regular);
  }

  .desk-user {
    position: relative;
  }

  .desk-user summary {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    color: #111827;
    font-family: var(--font);
  }

  .desk-user summary::-webkit-details-marker {
    display: none;
  }

  .desk-user summary svg {
    width: 12px;
    height: 12px;
    color: #6b7280;
  }

  .desk-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #552ecd;
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 14px;
    flex: 0 0 auto;
  }

  .desk-user-id {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.3;
  }

  .desk-user-name {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .desk-user-contact {
    max-width: 170px;
    font-size: 11px;
    font-weight: 500;
    color: #535862;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .desk-user form {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: #fff;
    border: 1px solid #ececef;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.1);
    min-width: 140px;
    z-index: 8;
  }

  .desk-user button {
    width: 100%;
    border: 0;
    background: none;
    padding: 10px 14px;
    font: inherit;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
  }

  .desk-practice-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    padding: 24px 28px 32px;
    align-items: start;
    min-height: 0;
    overflow: auto;
  }

  .desk-create h1 {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.045em;
    margin: 6px 0 8px;
    font-family: var(--display);
  }

  .desk-create h1 span {
    color: #f97316;
  }

  .desk-crumbs {
    color: #9ca3af;
    font-size: 13px;
  }

  .desk-crumbs a {
    color: inherit;
  }

  .desk-crumbs-top {
    margin: 0;
    color: #9ca3af;
    font-size: 13px;
    font-weight: 500;
  }

  .desk-crumbs .is-current,
  .desk-crumbs-top .is-current {
    color: #552ecd;
    font-weight: 600;
  }

  .desk-crumb-sep {
    margin: 0 6px;
    color: #d1d5db;
  }

  .desk-create-sub {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 24px;
  }

  .desk-create {
    overflow: visible;
    min-width: 0;
  }

  .desk-step {
    margin-bottom: 24px;
  }

  .desk-step h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 12px;
  }

  .desk-step h2 span {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #552ecd;
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 700;
  }

  .desk-subjects,
  .desk-counts {
    display: grid;
    gap: 12px;
  }

  .desk-subjects {
    grid-template-columns: repeat(3, 1fr);
  }

  .desk-counts {
    grid-template-columns: repeat(3, 1fr);
    max-width: 420px;
  }

  .desk-pick,
  .desk-count {
    position: relative;
    border: 1.5px solid #e5e7eb;
    background: #fff;
    border-radius: 14px;
    min-height: 92px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    font-size: 14px;
    color: #111827;
    cursor: pointer;
    font-family: var(--font);
  }

  .desk-count {
    min-height: 72px;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.04em;
  }

  .desk-pick.is-on,
  .desk-count.is-on {
    border-color: #552ecd;
    background: #f6f2ff;
    box-shadow: 0 0 0 3px rgba(85, 46, 205, 0.12);
  }

  .desk-tick {
    display: none;
    position: absolute;
    top: 8px;
    right: 8px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #552ecd url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 4.7 8.4 9.5 3.5' fill='none' stroke='white' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 10px no-repeat;
  }

  .desk-pick.is-on .desk-tick,
  .desk-count.is-on .desk-tick {
    display: block;
  }

  .desk-pick-ico {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
  }

  .desk-pick-ico svg {
    width: 22px;
    height: 22px;
  }

  .desk-pick-ico.bio {
    background: #ede4ff;
    color: #552ecd;
  }

  .desk-pick-ico.chem {
    background: #e8f1ff;
    color: #2563eb;
  }

  .desk-pick-ico.phy {
    background: #fff1e6;
    color: #ea580c;
  }

  .desk-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    color: #6b7280;
    font-size: 12px;
    font-weight: 500;
  }

  .desk-hint svg {
    width: 16px;
    height: 16px;
    color: #552ecd;
  }

  .desk-chapter {
    position: relative;
    max-width: 560px;
    z-index: 12;
  }

  .desk-chapter select {
    width: 100%;
    min-height: 52px;
    border: 1.5px solid #e5e7eb;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.2 4.4 6 8.1l3.8-3.7' fill='none' stroke='%238A8F9C' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 16px center / 12px no-repeat;
    border-radius: 12px;
    padding: 0 44px 0 16px;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    cursor: pointer;
    appearance: none;
  }

  .desk-chapter select:focus {
    outline: none;
    border-color: #552ecd;
    box-shadow: 0 0 0 3px rgba(85, 46, 205, 0.12);
  }

  .desk-preview {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: none;
    padding: 18px 16px 16px;
    position: sticky;
    top: 84px;
  }

  .desk-preview h2 {
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 14px;
  }

  .desk-preview ul {
    list-style: none;
    display: grid;
    gap: 12px;
    margin-bottom: 16px;
  }

  .desk-preview li {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .desk-preview small {
    display: block;
    color: #6b7280;
    font-size: 12px;
    font-weight: 500;
  }

  .desk-preview strong {
    font-size: 13px;
    font-weight: 700;
    color: #111827;
  }

  .desk-preview-ico {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
  }

  .desk-preview-ico svg {
    width: 18px;
    height: 18px;
  }

  .desk-preview-ico.purple { background: #ede4ff; color: #552ecd; }
  .desk-preview-ico.blue { background: #e8f1ff; color: #2563eb; }
  .desk-preview-ico.orange { background: #fff1e6; color: #ea580c; }
  .desk-preview-ico.green { background: #e8f8ee; color: #16a34a; }
  .desk-preview-ico.pink { background: #fde8f2; color: #db2777; }

  .desk-preview-note {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background: #f4efff;
    color: #4c1d95;
    border-radius: 10px;
    padding: 12px;
    font-size: 12px;
    line-height: 1.45;
    margin-bottom: 16px;
  }

  .desk-preview-note svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    margin-top: 1px;
  }

  .desk-start {
    width: 100%;
    height: 44px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
  }

  .desk-start svg {
    width: 22px;
    height: 22px;
  }

  .quiz-mobile {
    display: none !important;
  }

  .desk-quiz-wrap {
    min-height: 0;
    overflow: auto;
  }

  .desk-quiz-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 292px;
    gap: 24px;
    padding: 22px 28px 32px;
    align-items: start;
  }

  .desk-quiz-main h1 {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.045em;
    margin: 4px 0 6px;
    font-family: var(--display);
  }

  .desk-quiz-meta {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 18px;
  }

  .desk-progress-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid #eceef4;
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 16px;
    box-shadow: 0 8px 20px rgba(17, 24, 39, 0.04);
  }

  .desk-progress-ico {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #ede4ff;
    color: #552ecd;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
  }

  .desk-progress-ico svg {
    width: 20px;
    height: 20px;
  }

  .desk-progress-copy {
    flex: 1;
    min-width: 0;
  }

  .desk-progress-copy p {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 8px;
  }

  .desk-progress-track {
    height: 8px;
    background: #eceef4;
    border-radius: 99px;
    overflow: hidden;
  }

  .desk-progress-track span {
    display: block;
    height: 100%;
    width: 0;
    background: #552ecd;
    border-radius: inherit;
  }

  .desk-progress-card strong {
    font-size: 13px;
    color: #6b7280;
    min-width: 40px;
    text-align: right;
  }

  .desk-q-card {
    background: #fff;
    border: 1px solid #eceef4;
    border-radius: 18px;
    padding: 22px 22px 20px;
    box-shadow: 0 10px 28px rgba(17, 24, 39, 0.05);
  }

  .desk-q-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
  }

  .desk-q-head h2 {
    font-size: 14px;
    font-weight: 600;
    color: #552ecd;
  }

  .desk-flag-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1.5px solid #e5e7eb;
    background: #fff;
    border-radius: 10px;
    padding: 8px 12px;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    color: #4b5563;
    cursor: pointer;
  }

  .desk-flag-btn svg {
    width: 16px;
    height: 16px;
  }

  .desk-flag-btn.is-on {
    border-color: #f97316;
    background: #fff7ed;
    color: #c2410c;
  }

  .desk-q-text {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.55;
    color: #111827;
    margin: 0 0 16px;
    white-space: pre-wrap;
  }

  .desk-q-text:has(+ .q-media:not([hidden])) {
    margin-bottom: 10px;
  }

  .desk-q-options {
    display: grid;
    gap: 10px;
  }

  .desk-opt {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 56px;
    text-align: left;
    border: 1.5px solid #e5e7eb;
    background: #fff;
    border-radius: 14px;
    padding: 10px 14px;
    font: inherit;
    cursor: pointer;
  }

  .desk-opt-key {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid #e5e7eb;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 13px;
    color: #6b7280;
    flex: 0 0 auto;
  }

  .desk-opt-text {
    flex: 1;
    font-weight: 600;
  }

  .desk-opt-check {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.2 6.2 4.6 8.5 9.8 3.2' fill='none' stroke='%23552ECD' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
  }

  .desk-opt.is-on {
    border-color: #552ecd;
    background: #f6f2ff;
    box-shadow: 0 0 0 3px rgba(85, 46, 205, 0.1);
  }

  .desk-opt.is-on .desk-opt-key {
    background: #552ecd;
    border-color: #552ecd;
    color: #fff;
  }

  .desk-q-actions {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
  }

  .desk-q-actions .desk-btn-ghost:first-of-type {
    justify-self: start;
  }

  .desk-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 16px;
    border: 1.5px solid #e5e7eb;
    background: #fff;
    border-radius: 12px;
    font: inherit;
    font-weight: 700;
    color: #374151;
    cursor: pointer;
  }

  .desk-btn-ghost svg {
    width: 18px;
    height: 18px;
  }

  .desk-btn-ghost:disabled {
    opacity: 0.45;
    cursor: not-allowed;
  }

  .desk-btn-ghost.is-on {
    border-color: #ff8a1f;
    color: #e67700;
    background: #fff4e8;
  }

  .desk-btn-next {
    min-height: 46px;
    padding: 0 18px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-self: end;
    white-space: nowrap;
  }

  .desk-btn-next[hidden],
  .btn.desk-btn-next.is-hidden {
    display: none !important;
  }

  .desk-btn-next svg {
    width: 18px;
    height: 18px;
  }

  .desk-quiz-aside {
    display: grid;
    gap: 14px;
  }

  .desk-timer-card,
  .desk-palette-card,
  .desk-summary-card {
    background: #fff;
    border: 1px solid #eceef4;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 8px 20px rgba(17, 24, 39, 0.04);
  }

  .desk-timer-card {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .desk-timer-ico {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #fee2e2;
    color: #dc2626;
    display: grid;
    place-items: center;
  }

  .desk-timer-ico svg {
    width: 20px;
    height: 20px;
  }

  .desk-timer-card strong {
    display: block;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.03em;
  }

  .desk-timer-card small {
    color: #6b7280;
    font-size: 12px;
  }

  .desk-palette-head,
  .desk-summary-card h2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 12px;
  }

  .desk-palette-hide {
    border: 0;
    background: none;
    color: #552ecd;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
  }

  .desk-palette-hide svg {
    width: 12px;
    height: 12px;
    transition: transform 0.15s ease;
  }

  .desk-palette-hide.is-collapsed svg {
    transform: rotate(180deg);
  }

  .desk-palette {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    padding: 4px 2px 6px;
  }

  .desk-pal-btn {
    position: relative;
    aspect-ratio: 1;
    border: 1.5px solid #e5e7eb;
    background: #fff;
    border-radius: 8px;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    color: #4b5563;
    cursor: pointer;
    display: grid;
    place-items: center;
    overflow: visible;
  }

  .desk-pal-btn.is-answered,
  .desk-pal-btn.is-correct {
    background: #eaf7ee;
    border-color: #1b8a3e;
    color: #1b8a3e;
  }

  .desk-pal-btn.is-wrong {
    background: #fdecec;
    border-color: #e11d48;
    color: #dc2626;
  }

  .desk-pal-btn.is-skipped {
    background: #fff4e8;
    border-color: #ff8a1f;
    color: #e67700;
  }

  .desk-pal-btn.is-current {
    border-color: #552ecd;
    box-shadow: 0 0 0 2px rgba(85, 46, 205, 0.18);
    color: #552ecd;
  }

  .rev-pal-badge {
    position: absolute;
    right: -4px;
    bottom: -4px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    box-shadow: 0 0 0 2px #fff;
  }

  .rev-pal-badge svg {
    width: 8px;
    height: 8px;
    display: block;
  }

  .rev-pal-badge.is-correct { background: #1b8a3e; }
  .rev-pal-badge.is-wrong { background: #e11d48; }
  .rev-pal-badge.is-skipped { background: #ff8a1f; }
  .rev-pal-badge.is-flag {
    top: -5px;
    right: -5px;
    bottom: auto;
    background: #ff8a1f;
  }
  .rev-pal-badge.is-empty {
    background: #fff;
    border: 1.5px solid #c5cad3;
    box-shadow: none;
  }
  .rev-pal-badge.is-now {
    background: #fff;
    border: 2px solid #552ecd;
    box-shadow: none;
  }

  .rev-legend {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    margin-top: 14px;
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
  }

  .rev-legend li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }

  .rev-legend .rev-pal-badge {
    position: static;
    width: 16px;
    height: 16px;
    box-shadow: none;
    flex: 0 0 auto;
  }

  .rev-legend .rev-pal-badge svg {
    width: 9px;
    height: 9px;
  }

  .desk-legend {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 10px;
    margin-top: 12px;
    font-size: 12px;
    color: #6b7280;
  }

  .desk-legend li {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .desk-dot {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    border: 1.5px solid #d1d5db;
    flex: 0 0 auto;
  }

  .desk-dot.green {
    background: #e8f8ee;
    border-color: #86efac;
  }

  .desk-dot.current {
    border-color: #552ecd;
    background: #fff;
  }

  .desk-dot.gray {
    background: #fff;
  }

  .desk-dot.red {
    background: #fee2e2;
    border-color: #fca5a5;
  }

  .desk-dot.orange {
    background: #fff7ed;
    border-color: #fdba74;
  }

  .desk-dot.flag {
    border: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 1.5v9M3 1.5h6L7.4 4.2 9 6.8H3' fill='%23f97316'/%3E%3C/svg%3E") center / contain no-repeat;
  }

  .desk-summary-card ul {
    list-style: none;
    display: grid;
    gap: 12px;
  }

  .desk-summary-card li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
  }

  .desk-summary-card small {
    display: block;
    color: #9ca3af;
    font-size: 12px;
  }

  .desk-summary-card strong {
    font-size: 14px;
    font-weight: 700;
  }

  .desk-submit,
  .desk-submit-note {
    display: none !important;
  }

  .desk-btn-next.is-submit {
    background: var(--purple);
  }

  .desk-btn-next.is-submit:hover {
    background: var(--purple-hover);
  }

  .desk-quiz-done {
    padding: 80px 28px;
    text-align: center;
  }

  .desk-quiz-done-kicker {
    color: #552ecd;
    font-weight: 700;
    margin-bottom: 8px;
  }

  .desk-quiz-done h1 {
    font-size: 36px;
    margin-bottom: 12px;
  }

  .desk-quiz-done-score {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 24px;
  }

  .desk-quiz-done .desk-start {
    max-width: 280px;
    margin: 0 auto;
  }

  .dashboard-desktop,
  .dashboard-desktop .desk-practice-shell {
    background: #fafafa;
  }

  .dashboard-desktop .desk-practice-shell {
    grid-template-rows: auto 1fr;
  }

  .dashboard-desktop .desk-practice-top {
    min-height: 88px;
    padding-top: 14px;
    padding-bottom: 14px;
    background: transparent;
    border-bottom: 0;
  }

  .dash-main {
    min-height: 0;
    overflow: auto;
    display: grid;
    gap: 16px;
    align-content: start;
    padding: 20px 28px 28px;
    background: #f6f7fb;
  }

  .home-dash .dash-main {
    gap: 20px;
    padding: 4px 28px 28px;
    background: #fafafa;
  }

  .dash-subjects {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    min-width: 0;
    overflow: visible;
  }

  .dash-split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
  }

  .dash-cta,
  .dash-card,
  .dash-panel {
    background: #fff;
    border: 1px solid #eceef4;
    border-radius: 18px;
    box-shadow: 0 8px 20px rgba(17, 24, 39, 0.04);
  }

  .dash-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    background: #f4efff;
    border-color: #e6dcff;
  }

  .dash-cta-copy {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
  }

  .dash-cta-ico,
  .dash-metric-ico,
  .dash-recent-ico,
  .dash-step-ico {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: var(--purple);
    background: var(--purple-soft);
  }

  .dash-metric-ico {
    border-radius: 50%;
  }

  .dash-cta-ico svg,
  .dash-metric-ico svg,
  .dash-recent-ico svg,
  .dash-step-ico svg {
    width: 20px;
    height: 20px;
  }

  .dash-cta h2 {
    margin: 0 0 4px;
    font-size: var(--fs-lg);
    font-weight: var(--fw-bold);
    letter-spacing: -0.02em;
    color: #1a1a2e;
  }

  .dash-cta p {
    margin: 0;
    font-size: var(--fs-md);
    color: #535862;
    font-weight: var(--fw-regular);
  }

  .dash-cta-btn {
    flex: 0 0 auto;
    padding: 14px 22px;
    font-size: var(--fs-md);
    font-weight: var(--fw-semibold);
    white-space: nowrap;
    border-radius: 12px;
  }

  .dash-card {
    padding: 18px 20px 16px;
  }

  .dash-card-head,
  .dash-subject-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
  }

  .dash-card-head h2,
  .dash-subject-head h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #1a1a2e;
  }

  .dash-card-head a,
  .dash-subject-head a {
    color: #552ecd;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
  }

  .dash-card-head a:hover,
  .dash-subject-head a:hover {
    text-decoration: underline;
  }

  .dash-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
  }

  .dash-metrics article {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 4px 16px;
    border-right: 1px solid #eceef4;
  }

  .dash-metrics article:first-child {
    padding-left: 0;
  }

  .dash-metrics article:last-child {
    border-right: 0;
    padding-right: 0;
  }

  .dash-metrics strong,
  .dash-subject-stats strong,
  .dash-recent-score b,
  .dash-weak b {
    display: block;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #111827;
    line-height: 1.2;
  }

  .dash-metrics small,
  .dash-recent small,
  .dash-weak small,
  .dash-subject-stats small {
    display: block;
    color: #6b7280;
    font-size: 12px;
    font-weight: 500;
  }

  .dash-metric-ico.purple,
  .dash-recent-ico.purple,
  .dash-step-ico.purple { background: #ede4ff; color: #552ecd; }
  .dash-metric-ico.green,
  .dash-recent-ico.green { background: #e8f8ee; color: #16a34a; }
  .dash-metric-ico.orange,
  .dash-recent-ico.orange,
  .dash-step-ico.orange { background: #fff1e6; color: #ea580c; }
  .dash-metric-ico.blue,
  .dash-recent-ico.blue,
  .dash-step-ico.blue { background: #e8f1ff; color: #2563eb; }

  .dash-recent,
  .dash-weak,
  .dash-steps {
    list-style: none;
    display: grid;
    gap: 2px;
  }

  .dash-recent a,
  .dash-weak li,
  .dash-steps a {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 10px 4px;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
  }

  .dash-recent a:hover,
  .dash-steps a:hover {
    background: #f8f7ff;
  }

  .dash-recent a > div,
  .dash-weak li > div {
    min-width: 0;
  }

  .dash-recent strong,
  .dash-weak strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
  }

  .dash-recent-score {
    text-align: right;
  }

  .dash-recent-score em {
    display: block;
    font-style: normal;
    font-size: 12px;
    font-weight: 700;
  }

  .dash-recent-score.good { color: #16a34a; }
  .dash-recent-score.mid { color: #ea580c; }
  .dash-recent-score.low { color: #dc2626; }

  .dash-empty {
    padding: 18px 8px;
    color: #6b7280;
    font-size: 13px;
    font-weight: 500;
  }


  .dash-weak b {
    font-size: 14px;
    text-align: right;
    color: #ea580c;
  }

  .dash-steps a {
    grid-template-columns: 40px minmax(0, 1fr) 16px;
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
  }

  .dash-steps a > svg {
    width: 16px;
    height: 16px;
    color: #9ca3af;
  }

  .dash-subject-head > div {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    min-width: 0;
  }

  .dash-subject-ico {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
  }

  .dash-subject-ico svg {
    width: 16px;
    height: 16px;
  }

  .dash-subject-ico.biology { background: #ede4ff; color: #552ecd; }
  .dash-subject-ico.chemistry { background: #e8f1ff; color: #2563eb; }
  .dash-subject-ico.physics { background: #fff1e6; color: #ea580c; }

  .dash-subject-head .dash-view {
    border: 1px solid #eceef4;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 700;
    color: #552ecd;
    text-decoration: none;
    background: #fff;
  }

  .dash-subject-head .dash-view:hover {
    background: #f8f7ff;
    text-decoration: none;
  }

  .dash-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
  }

  .dash-pill.is-good { background: #e8f8ee; color: #15803d; }
  .dash-pill.is-mid { background: #fff1e6; color: #c2410c; }
  .dash-pill.is-low { background: #fee2e2; color: #b91c1c; }
  .dash-pill.is-muted { background: #f3f4f6; color: #6b7280; }

  .dash-subject-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 10px;
  }

  .dash-subject-stats strong {
    font-size: 22px;
  }

  .dash-subject-stats .is-up { color: #16a34a; }
  .dash-subject-stats .is-down { color: #dc2626; }

  .dash-chart {
    width: 100%;
    height: 148px;
    display: block;
    overflow: visible;
  }

  .dash-chart text {
    fill: #111827;
  }

  .dash-foot {
    margin: 22px 0 0;
    text-align: center;
    color: #9ca3af;
    font-size: 13px;
    font-weight: 500;
  }

  .home-dash .home-cta {
    background: #fff;
    border-color: #eceef4;
    padding: 22px 24px;
  }

  .home-dash .dash-cta-ico {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #ede6ff;
    color: #6a4bc3;
  }

  .home-dash .dash-cta-ico svg {
    width: 34px;
    height: 34px;
  }

  .dash-panel {
    padding: 18px 22px 20px;
  }

  .home-dash .dash-panel {
    padding: 22px 24px 24px;
  }

  .dash-panel-head {
    margin-bottom: 14px;
  }

  .home-dash .dash-panel-head {
    margin-bottom: 16px;
  }

  .dash-panel-head h2 {
    margin: 0 0 3px;
    letter-spacing: -0.02em;
    color: #1a1a2e;
  }

  .dash-panel-head p {
    margin: 0;
    color: #535862;
  }

  .dash-road-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .dash-road-tile {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    padding: 20px 22px;
    border-radius: 16px;
    background: #f6f5fe;
  }

  .dash-road-ico {
    width: 49px;
    height: 49px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    background: #D1EEDB;
  }

  .dash-road-ico svg {
    width: 34px;
    height: 34px;
  }

  .dash-road-ico.is-purple { color: var(--purple); }
  .dash-road-ico.is-green { color: #16a34a; }

  .dash-road-copy {
    min-width: 0;
  }

  .dash-road-copy strong {
    display: block;
    letter-spacing: -0.02em;
    color: #1a1a2e;
  }

  .dash-road-copy p {
    margin: 2px 0 0;
    color: #535862;
  }

  .dash-quick-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  .dash-quick {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
    padding: 18px 16px 16px;
    border: 1px solid #eceef4;
    border-radius: 16px;
    background: #fff;
  }

  .dash-quick-top {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
  }

  .dash-quick-ico {
    width: 49px;
    height: 49px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
  }

  .dash-quick-ico svg {
    width: 30px;
    height: 30px;
  }

  .dash-quick-copy {
    min-width: 0;
  }

  .dash-quick-copy h3 {
    margin: 0 0 2px;
    letter-spacing: -0.02em;
    color: #1a1a2e;
  }

  .dash-quick-copy p {
    margin: 0;
    color:#535862;
  }

  .dash-quick-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: auto;
    padding: 11px 14px;
    border-radius: 10px;
  }

  .dash-quick-btn span {
    font-size: 16px;
    line-height: 1;
  }

  .dash-quick.is-blue .dash-quick-ico { background: #EFF8FF; color: #2563eb;}
  .dash-quick.is-blue .dash-quick-btn { background: #EFF4FF; color: #2563eb;  border:1px solid #C8DCE8;}
  .dash-quick.is-blue .dash-quick-btn:hover { background: #e2e9ff; }

  .dash-quick.is-green .dash-quick-ico { background: #EDFCF2; color: #16a34a;}
  .dash-quick.is-green .dash-quick-btn { background: #EDFCF2; color: #15803d; border:1px solid #C0E1CB }
  .dash-quick.is-green .dash-quick-btn:hover { background: #ddf5e6; }

  .dash-quick.is-orange .dash-quick-ico { background: #FEF6EE; color: #ea580c; }
  .dash-quick.is-orange .dash-quick-btn { background: #FEF6EE; color: #ea580c; border:1px solid #EAD9D1; }
  .dash-quick.is-orange .dash-quick-btn:hover { background: #ffe7d5; }

  .home-subject {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }

  .home-subject-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
  }

  .home-subject-head h2 {
    margin: 0;
    font-size: var(--fs-lg);
    font-weight: var(--fw-bold);
    letter-spacing: -0.02em;
    color: var(--purple);
  }

  .home-subject .dash-subject-ico {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--purple-soft);
    color: var(--purple);
  }

  .home-subject .dash-subject-ico.biology,
  .home-subject .dash-subject-ico.chemistry,
  .home-subject .dash-subject-ico.physics {
    background: var(--purple-soft);
    color: var(--purple);
  }

  .home-subject-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 96px;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
  }

  .home-subject-updated {
    margin: 0 0 6px;
    color: #6b7280;
    font-size: var(--fs-sm);
    font-weight: var(--fw-regular);
    line-height: 1.4;
  }

  .home-subject-count {
    margin: 0;
    color: #111827;
    font-size: 28px;
    font-weight: var(--fw-bold);
    letter-spacing: -0.03em;
    line-height: 1.1;
  }

  .home-donut {
    width: 96px;
    height: 96px;
    display: block;
  }

  .home-legend {
    list-style: none;
    display: grid;
    gap: 8px;
    margin: 0 0 14px;
    padding: 0;
  }

  .home-legend li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--fs-sm);
    font-weight: var(--fw-regular);
    color: #4b5563;
  }

  .home-legend span,
  .home-bar span {
    display: inline-block;
  }

  .home-legend span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex: 0 0 auto;
  }

  .home-legend .is-strong,
  .home-bar .is-strong { background: #22c55e; }
  .home-legend .is-need,
  .home-bar .is-need { background: #f97316; }
  .home-legend .is-skip,
  .home-bar .is-skip { background: #d1d5db; }

  .home-bar {
    display: flex;
    overflow: hidden;
    height: 8px;
    border-radius: 999px;
    background: #eef0f4;
    margin-bottom: 16px;
  }

  .home-bar span {
    height: 100%;
  }

  .home-chapter-link {
    color: var(--purple);
    font-size: var(--fs-md);
    font-weight: var(--fw-bold);
    text-decoration: none;
    margin-top: auto;
  }

  .home-chapter-link:hover {
    text-decoration: underline;
  }

  .home-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .home-action {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    min-width: 0;
    padding: 18px 18px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #fff;
    box-shadow: none;
  }

  .home-action-top {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
  }

  .home-action-ico {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    background: #f3e8ff;
    color: var(--purple);
  }

  .home-action-ico svg {
    width: 20px;
    height: 20px;
  }

  .home-action-copy {
    min-width: 0;
    padding-top: 1px;
  }

  .home-action h2 {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: var(--fw-bold);
    color: #111827;
    letter-spacing: -0.02em;
  }

  .home-action p {
    margin: 0;
    font-size: var(--fs-md);
    font-weight: var(--fw-regular);
    color: #6b7280;
    line-height: 1.45;
  }

  .home-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    margin-top: auto;
    min-height: 42px;
    padding: 10px 14px;
    border: 0;
    border-radius: 10px;
    background: #f3e8ff;
    color: var(--purple);
    font-size: var(--fs-md);
    font-weight: var(--fw-semibold);
    text-decoration: none;
    box-shadow: none;
    transform: none;
  }

  .home-action-btn span {
    font-weight: var(--fw-semibold);
  }

  .home-action-btn:hover {
    background: #ede4ff;
    color: var(--purple);
    transform: none;
    box-shadow: none;
  }

    @media (max-width: 1280px) {
    .dash-metrics {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dash-metrics article {
      border-right: 0;
      padding: 8px 0;
    }
  }

  .history-desktop .desk-practice-shell {
    grid-template-rows: 72px 1fr;
  }

  .hist-main {
    min-height: 0;
    overflow: auto;
    padding: 8px 28px 32px;
  }

  .hist-tabs {
    display: flex;
    gap: 28px;
    border-bottom: 1px solid #eceef4;
    margin-bottom: 18px;
  }

  .hist-tabs button {
    border: 0;
    background: none;
    padding: 0 0 12px;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    color: #6b7280;
    cursor: pointer;
    position: relative;
  }

  .hist-tabs button.is-on {
    color: #552ecd;
  }

  .hist-tabs button.is-on::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: #552ecd;
    border-radius: 2px 2px 0 0;
  }

  .hist-filters {
    display: grid;
    grid-template-columns: repeat(4, minmax(140px, 1fr)) minmax(180px, 1.2fr) auto;
    gap: 12px;
    align-items: end;
    margin-bottom: 18px;
  }

  .hist-filters label span {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 6px;
  }

  .hist-filters select,
  .hist-search input {
    width: 100%;
    height: 42px;
    border: 1.5px solid #e5e7eb;
    background: #fff;
    border-radius: 10px;
    padding: 0 36px 0 12px;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    appearance: none;
  }

  .hist-filters select {
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.2 4.4 6 8.1l3.8-3.7' fill='none' stroke='%238A8F9C' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 12px center / 12px no-repeat;
  }

  .hist-date-select {
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='4.5' y='6' width='15' height='14' rx='2' fill='none' stroke='%238A8F9C' stroke-width='1.7'/%3E%3Cpath d='M8 4.5v3M16 4.5v3M4.5 10h15' fill='none' stroke='%238A8F9C' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") right 10px center / 16px no-repeat !important;
    padding-right: 38px;
  }

  .hist-search {
    position: relative;
  }

  .hist-search svg {
    position: absolute;
    left: 12px;
    top: 50%;
    width: 16px;
    height: 16px;
    color: #9ca3af;
    transform: translateY(-50%);
  }

  .hist-search input {
    padding-left: 36px;
    font-weight: 500;
  }

  .hist-filter-btn {
    height: 42px;
    padding: 0 14px;
    border: 1.5px solid #e5e7eb;
    background: #fff;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    color: #374151;
    cursor: pointer;
    white-space: nowrap;
  }

  .hist-filter-btn svg {
    width: 16px;
    height: 16px;
  }

  .hist-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
  }

  .hist-stats article {
    background: #fff;
    border: 1px solid #eceef4;
    border-radius: 16px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 20px rgba(17, 24, 39, 0.04);
  }

  .hist-stats strong {
    display: block;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
  }

  .hist-stats small {
    color: #6b7280;
    font-size: 12px;
  }

  .hist-stat-ico {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
  }

  .hist-stat-ico svg {
    width: 18px;
    height: 18px;
  }

  .hist-stat-ico.blue { background: #e8f1ff; color: #2563eb; }
  .hist-stat-ico.green { background: #e8f8ee; color: #16a34a; }
  .hist-stat-ico.gold { background: #fff7e0; color: #d97706; }
  .hist-stat-ico.purple { background: #ede4ff; color: #552ecd; }

  .hist-table-card {
    background: #fff;
    border: 1px solid #eceef4;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(17, 24, 39, 0.04);
    overflow: hidden;
  }

  .hist-table-wrap {
    overflow-x: auto;
  }

  .hist-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 980px;
  }

  .hist-table th {
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    color: #6b7280;
    padding: 14px 16px;
    background: #f8f9fc;
    border-bottom: 1px solid #eceef4;
    white-space: nowrap;
  }

  .hist-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 13px;
    color: #374151;
    vertical-align: middle;
  }

  .hist-table tbody tr:last-child td {
    border-bottom: 0;
  }

  .hist-table tbody tr:nth-child(n + 7) {
    display: none;
  }

  .hist-table tbody tr.is-on {
    display: table-row !important;
  }

  .hist-table tbody tr.is-off {
    display: none !important;
  }

  .hist-test {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 220px;
  }

  .hist-test-ico {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
  }

  .hist-test-ico svg {
    width: 18px;
    height: 18px;
  }

  .hist-test-ico.green { background: #e8f8ee; color: #16a34a; }
  .hist-test-ico.blue { background: #E0F0FD; color: #1570EF; }
  .hist-test-ico.purple { background: #ede4ff; color: #552ecd; }
  .hist-test-ico.teal { background: #E0F0FD; color: #1570EF; }
  .hist-test-ico.orange { background: #FEF0E5; color: #EF6820; }

  .hist-test strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #111827;
  }

  .hist-test small,
  .hist-sub {
    display: block;
    color: #9ca3af;
    font-size: 12px;
    font-weight: 500;
  }

  .hist-pill {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
  }

  .hist-pill.full {
    background: #e8f8ee;
    color: #15803d;
  }

  .hist-pill.chapter {
    background: #e8f1ff;
    color: #1d4ed8;
  }

  .hist-pill.unit {
    background: #ede4ff;
    color: #552ecd;
  }

  .hist-score {
    display: block;
    font-weight: 800;
  }

  .hist-score.good { color: #16a34a; }
  .hist-score.mid { color: #ea580c; }
  .hist-score.low { color: #dc2626; }

  .hist-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
  }

  .hist-view {
    border: 1.5px solid #552ecd;
    background: #fff;
    color: #552ecd;
    border-radius: 8px;
    padding: 6px 12px;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
  }

  .hist-more {
    position: relative;
  }

  .hist-more summary {
    list-style: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    cursor: pointer;
    color: #6b7280;
  }

  .hist-more summary::-webkit-details-marker {
    display: none;
  }

  .hist-more summary svg {
    width: 16px;
    height: 16px;
  }

  .hist-more summary:hover {
    background: #f3f4f6;
  }

  .hist-more div {
    position: absolute;
    right: 0;
    top: calc(100% + 4px);
    background: #fff;
    border: 1px solid #ececef;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.1);
    min-width: 140px;
    z-index: 8;
    padding: 6px;
  }

  .hist-more button,
  .hist-more a {
    width: 100%;
    border: 0;
    background: none;
    text-align: left;
    padding: 8px 10px;
    border-radius: 8px;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    color: inherit;
    text-decoration: none;
    display: block;
  }

  .hist-more button:hover,
  .hist-more a:hover {
    background: #f6f2ff;
    color: #552ecd;
  }

  .hist-empty {
    text-align: center;
    color: #6b7280;
    padding: 32px 16px;
  }

  .hist-pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border-top: 1px solid #eceef4;
  }

  .hist-pager p {
    color: #6b7280;
    font-size: 13px;
  }

  .hist-pages {
    display: flex;
    gap: 6px;
  }

  .hist-pages button {
    min-width: 32px;
    height: 32px;
    border: 1.5px solid #e5e7eb;
    background: #fff;
    border-radius: 8px;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    color: #374151;
    cursor: pointer;
  }

  .hist-pages button.is-on {
    background: #552ecd;
    border-color: #552ecd;
    color: #fff;
  }

  .hist-pages button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
  }

  .hist-alt {
    padding-bottom: 12px;
  }

  .hist-snapshot-card,
  .hist-analytics {
    background: #fff;
    border: 1px solid #eceef4;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 8px 20px rgba(17, 24, 39, 0.04);
  }

  .hist-snapshot-card h2,
  .hist-analytics h2 {
    font-size: 16px;
    margin-bottom: 16px;
  }

  .hist-snapshot-card ul {
    list-style: none;
    display: grid;
    gap: 14px;
  }

  .hist-snapshot-card li {
    display: grid;
    grid-template-columns: 120px 56px 1fr;
    gap: 10px;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
  }

  .hist-snapshot-card b {
    text-align: right;
    color: #552ecd;
  }

  .hist-snapshot-card i {
    display: block;
    height: 8px;
    background: #552ecd;
    border-radius: 99px;
    font-style: normal;
  }

  .hist-analytics p {
    color: #6b7280;
    max-width: 520px;
  }

  .hist-analytics-list {
    list-style: none;
    display: grid;
    gap: 4px;
  }

  .hist-analytics-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
  }

  .hist-analytics-list li:last-child {
    border-bottom: 0;
  }

  .hist-analytics-list small {
    display: block;
    color: #9ca3af;
    font-size: 12px;
    font-weight: 500;
  }

  .hist-analytics-list b {
    color: #552ecd;
  }

  .review-desktop .desk-practice-shell {
    grid-template-rows: 64px 1fr;
  }

  .rev-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 24px;
    padding: 24px 28px 36px;
    min-height: 0;
    overflow: auto;
    align-items: start;
    background: #f6f7fb;
  }

  .rev-head {
    margin: 0 0 20px;
  }

  .rev-head h1 {
    font-family: var(--display);
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 1.15;
    color: #111827;
    margin: 0 0 8px;
  }

  .review-desktop .desk-quiz-meta {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
  }

  .rev-btn-outline,
  .rev-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 16px;
    border: 1.5px solid #552ecd;
    background: #fff;
    color: #552ecd;
    border-radius: 10px;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
  }

  .rev-btn-outline svg,
  .rev-btn-solid svg {
    width: 16px;
    height: 16px;
  }

  .rev-btn-solid {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 10px;
    background: #552ecd;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
  }

  .rev-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
  }

  .rev-metrics article {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: none;
  }

  .rev-metrics small {
    display: block;
    color: #6b7280;
    font-size: 12px;
    font-weight: 500;
    margin: 0 0 2px;
  }

  .rev-metrics strong {
    display: block;
    font-family: var(--display);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #111827;
    line-height: 1.1;
    margin-bottom: 2px;
  }

  .rev-metrics em {
    font-style: normal;
    color: #6b7280;
    font-size: 12px;
    font-weight: 500;
  }

  .rev-metrics em.is-accent {
    color: #ff8a1f;
    font-weight: 600;
  }

  .rev-metric-ico {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
  }

  .rev-metric-ico svg {
    width: 22px;
    height: 22px;
  }

  .rev-metric-ico.purple { background: #ede4ff; color: #552ecd; }
  .rev-metric-ico.green { background: #e8f6ec; color: #1b8a3e; }
  .rev-metric-ico.orange { background: #fff4e8; color: #ff8a1f; }
  .rev-metric-ico.blue { background: #ede4ff; color: #552ecd; }

  .rev-questions {
    display: grid;
    gap: 20px;
  }

  .rev-q {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px 22px 18px;
    box-shadow: none;
    scroll-margin-top: 16px;
  }

  .rev-q-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
  }

  .rev-q-top h3 {
    font-size: 14px;
    color: #552ecd;
    font-weight: 700;
  }

  .rev-q-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
  }

  .rev-status.is-flagged {
    background: #fff4e8;
    color: #e67700;
  }

  .rev-status.is-flagged .rev-status-ico {
    background: #ff8a1f;
  }

  .rev-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 999px;
    padding: 4px 10px 4px 6px;
  }

  .rev-status-ico {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
  }

  .rev-status-ico svg {
    width: 9px;
    height: 9px;
  }

  .rev-status.is-correct { background: #e8f6ec; color: #1b8a3e; }
  .rev-status.is-correct .rev-status-ico { background: #1b8a3e; }
  .rev-status.is-wrong { background: #fdecec; color: #dc2626; }
  .rev-status.is-wrong .rev-status-ico { background: #e11d48; }
  .rev-status.is-skipped { background: #fff4e8; color: #e67700; }
  .rev-status.is-skipped .rev-status-ico { background: #ff8a1f; }

  .rev-q-text {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.55;
    color: #111827;
    margin: 0 0 14px;
/*    white-space: pre-wrap;*/
  }

  .desk-opt-text .q-media-img,
  .rev-opt-text .q-media-img {
    max-width: min(100%, 280px);
    max-height: 180px;
    margin: 8px 0 0;
  }

  .rev-opts {
    display: grid;
    gap: 10px;
  }

  .rev-opt {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 10px 14px;
    border: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
  }

  .rev-opt-key {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1.5px solid #d1d5db;
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 700;
    color: #6b7280;
    flex: 0 0 auto;
    background: #fff;
  }

  .rev-opt-text {
    flex: 1;
    min-width: 0;
  }

  .rev-opt-tag {
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
  }

  .rev-opt.is-right,
  .rev-opt.is-answer {
    border-color: #86efac;
    background: #f0fdf4;
    font-weight: 600;
  }

  .rev-opt.is-right .rev-opt-key,
  .rev-opt.is-answer .rev-opt-key {
    background: #16a34a;
    border-color: #16a34a;
    color: #fff;
  }

  .rev-opt.is-right .rev-opt-tag,
  .rev-opt.is-answer .rev-opt-tag {
    color: #15803d;
  }

  .rev-opt.is-wrong {
    border-color: #fca5a5;
    background: #fef2f2;
    font-weight: 600;
  }

  .rev-opt.is-wrong .rev-opt-key {
    background: #dc2626;
    border-color: #dc2626;
    color: #fff;
  }

  .rev-opt.is-wrong .rev-opt-tag {
    color: #dc2626;
  }

  .rev-explain {
    margin-top: 14px;
    background: #f0fdf4;
    border-radius: 10px;
    padding: 12px 14px 12px 16px;
    border-left: 4px solid #22c55e;
  }

  .rev-q.is-wrong .rev-explain {
    background: #fef2f2;
    border-left-color: #ef4444;
  }

  .rev-q.is-skipped .rev-explain {
    background: #fff7ed;
    border-left-color: #ff8a1f;
  }

  .rev-explain-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #15803d;
    margin-bottom: 4px;
  }

  .rev-q.is-wrong .rev-explain-title {
    color: #dc2626;
  }

  .rev-q.is-skipped .rev-explain-title {
    color: #c2410c;
  }

  .rev-explain-title svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
  }

  .rev-explain p:last-child {
    color: #4b5563;
    font-size: 13px;
    line-height: 1.55;
    font-weight: 400;
    margin: 0;
  }

  .rev-empty {
    color: #6b7280;
    padding: 12px 0;
  }

  .rev-aside {
    display: grid;
    gap: 16px;
    position: sticky;
    top: 16px;
  }

  .rev-side-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    box-shadow: none;
  }

  .rev-side-card h2 {
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 0;
  }

  .review-desktop .desk-palette-head {
    margin-bottom: 12px;
  }

  .rev-summary {
    list-style: none;
    display: grid;
    gap: 12px;
    margin-top: 12px;
  }

  .rev-summary li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
  }

  .rev-summary li span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }

  .rev-summary svg {
    width: 16px;
    height: 16px;
    color: #6b7280;
    flex: 0 0 auto;
  }

  .rev-summary b {
    color: #111827;
    font-size: 13px;
    font-weight: 700;
  }

  .rev-good {
    color: #16a34a !important;
  }

  .rev-bad {
    color: #dc2626 !important;
  }

  .rev-back,
  .rev-aside .rev-btn-solid {
    width: 100%;
  }

  .rev-keep-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #9ca3af;
    font-size: 12px;
    text-align: center;
    font-weight: 500;
  }

  .rev-keep-note svg {
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
  }

  .perf-tabs {
    display: flex;
    gap: 36px;
    border-bottom: 1px solid #eceef4;
    margin: 0 0 20px;
    background: transparent;
  }

  .perf-tabs a {
    padding: 2px 0 12px;
    color: #4b5563;
    font-size: 15px;
    font-weight: 600;
    box-shadow: inset 0 -3px 0 transparent;
  }

  .perf-tabs a.is-active {
    color: var(--purple);
    font-weight: 700;
    box-shadow: inset 0 -3px 0 var(--purple);
  }

  .performance-desktop .dash-main {
    padding: 20px 28px 28px;
    background: #f6f7fb;
    gap: 16px;
    overflow: auto;
  }

  .performance-desktop:not(.perf-overview) .desk-icon-btn {
    display: none;
  }

  .performance-desktop.perf-overview .dash-main {
    gap: 20px;
    padding: 4px 28px 28px;
    background: #fafafa;
  }

  .perf-analytics-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 22px;
    background: #fff;
    border: 1px solid #eceef4;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(17, 24, 39, 0.04);
  }

  .perf-analytics-ico {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    background: #ede6ff;
    color: #6a4bc3;
  }

  .perf-analytics-ico svg {
    width: 26px;
    height: 26px;
  }

  .perf-analytics-head h2 {
    margin: 0 0 3px;
    color: #1a1a2e;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
  }

  .perf-analytics-head p {
    margin: 0;
    color: #535862;
    font-size: 14px;
    font-weight: 400;
  }

  .perf-subject-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
  }

  .perf-subject-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
    padding: 18px 18px 16px;
    background: #fff;
    border: 1px solid #eceef4;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(17, 24, 39, 0.04);
  }

  .perf-subject-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .perf-subject-card-copy {
    min-width: 0;
    flex: 1;
  }

  .perf-subject-card-copy h3 {
    margin: 0;
    color: #1a1a2e;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.02em;
  }

  .perf-subject-card-copy p {
    margin: 2px 0 0;
    color: #6b7280;
    font-size: 13px;
    font-weight: 500;
  }

  .performance-desktop .perf-subject-card-head .dash-subject-ico {
    width: 36px;
    height: 36px;
    border-radius: 50%;
  }

  .performance-desktop .perf-subject-card-head .dash-subject-ico svg {
    width: 18px;
    height: 18px;
  }

  .perf-card-more {
    width: 32px;
    height: 32px;
    margin-left: auto;
    display: grid;
    place-items: center;
    color: #9aa0ad;
    border-radius: 8px;
  }

  .perf-card-more:hover {
    background: #f4f0ff;
    color: #6a4bc3;
  }

  .perf-card-more svg {
    width: 18px;
    height: 18px;
  }

  .perf-trend-ring {
    width: 168px;
    height: 168px;
    margin: 4px auto 0;
    display: block;
  }

  .perf-trend-block {
    display: grid;
    gap: 10px;
  }

  .perf-trend-copy h4 {
    margin: 0;
    color: #1a1a2e;
    font-size: 14px;
    font-weight: 700;
  }

  .perf-trend-copy p {
    margin: 2px 0 0;
    color: #6b7280;
    font-size: 12px;
    font-weight: 500;
  }

  .perf-trend-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border-radius: 10px;
  }

  .perf-trend-table th,
  .perf-trend-table td {
    padding: 8px 10px;
    text-align: left;
    font-size: 12px;
    line-height: 1.3;
  }

  .perf-trend-table th {
    background: #efe8ff;
    color: #5b4b8a;
    font-weight: 700;
  }

  .perf-trend-table td {
    background: #f7f3ff;
    color: #1a1a2e;
    font-weight: 600;
    border-top: 1px solid #fff;
  }

  .perf-trend-table th:last-child,
  .perf-trend-table td:last-child {
    text-align: center;
    width: 52px;
  }

  .perf-trend-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    vertical-align: middle;
  }

  .perf-trend-dot.is-strong { background: #22c55e; }
  .perf-trend-dot.is-need { background: #f97316; }
  .perf-trend-dot.is-skip { background: #c5c7d0; }

  .perf-analytics-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    margin-top: auto;
    padding: 12px 16px;
    border-radius: 12px;
    background: #6a4bc3;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
  }

  .perf-analytics-btn:hover {
    background: #5b3fb0;
    color: #fff;
  }

  .perf-analytics-btn span {
    font-size: 18px;
    line-height: 1;
  }

  .performance-desktop .dash-card {
    border-radius: 18px;
    padding: 18px 20px 20px;
    overflow: visible;
  }

  .perf-dist-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
  }

  .perf-dist-head h2,
  .perf-heat-title,
  .perf-heat .dash-card-head h2 {
    margin: 0;
    font-size: 16px;
    font-weight: var(--fw-extrabold);
    color: #1a1a2e;
    letter-spacing: -0.02em;
  }

  .perf-dist-head h2 span,
  .perf-heat-title span {
    color: #6b7280;
    font-size: var(--fs-md);
    font-weight: var(--fw-medium);
  }

  .perf-legend {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px 16px;
    margin: 0;
    padding: 0;
  }

  .perf-legend li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
  }

  .perf-legend span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex: 0 0 auto;
  }

  .perf-legend .is-90 { background: #166534; }
  .perf-legend .is-80 { background: #81c784; }
  .perf-legend .is-low { background: #f59e42; }
  .perf-legend .is-skip { background: #9595a5; }

  .perf-donuts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  .perf-donut-card {
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 4px 8px 0;
  }

  .perf-donut-head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  .perf-donut-head h3 {
    margin: 0;
    font-size: 16px;
    font-weight: var(--fw-extrabold);
    color: #1a1a2e;
    letter-spacing: -0.02em;
  }

  .performance-desktop .perf-donut-head .dash-subject-ico {
    width: 32px;
    height: 32px;
    border-radius: 50%;
  }

  .performance-desktop .dash-subject-ico.biology { background: #e8f8ee; color: #16a34a; }
  .performance-desktop .dash-subject-ico.chemistry { background: #ede4ff; color: var(--purple); }
  .performance-desktop .dash-subject-ico.physics { background: var(--orange-soft); color: #ea580c; }

  .perf-donut {
    width: 220px;
    height: 220px;
    display: block;
    overflow: visible;
  }

  .perf-donut-total {
    margin: 0;
    color: var(--purple);
    font-size: var(--fs-sm);
    font-weight: var(--fw-bold);
  }

  .perf-heat,
  .perf-dist,
  .perf-trend,
  .perf-table-card {
    overflow: visible;
  }

  .perf-heat-title {
    margin: 0 0 16px;
  }

  .perf-heat-grid {
    display: grid;
    grid-template-columns: minmax(140px, 1.15fr) repeat(5, minmax(0, 1fr));
    gap: 8px 10px;
    align-items: center;
    width: 100%;
    min-width: 0;
  }

  .perf-heat-head {
    color: #6b7280;
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    text-align: center;
    padding: 0 4px 2px;
  }

  .perf-heat-head:first-child {
    text-align: left;
  }

  .perf-heat-subject {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #1a1a2e;
    font-size: 16px;
    font-weight: var(--fw-extrabold);
  }

  .performance-desktop .perf-heat-subject .dash-subject-ico {
    width: 32px;
    height: 32px;
    border-radius: 50%;
  }

  .perf-heat-cell {
    display: grid;
    place-items: center;
    min-height: 44px;
    border-radius: 8px;
    font-size: var(--fs-lg);
    font-weight: var(--fw-extrabold);
  }

  .perf-heat-cell.is-90 { background: var(--green-bg); color: #166534; }
  .perf-heat-cell.is-80 { background: #ecfdf3; color: var(--green-text); }
  .perf-heat-cell.is-low { background: var(--orange-soft); color: #ea580c; }
  .perf-heat-cell.is-skip { background: #f3f4f6; color: #1a1a2e; }
  .perf-heat-cell.is-total { background: #f3f4f6; color: #1a1a2e; }

  .perf-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 14px 16px;
  }

  .perf-filters {
    display: grid;
    grid-template-columns: 250px 330px;
    gap: 14px;
    flex: 0 0 auto;
  }

  .perf-filters label {
    display: grid;
    gap: 6px;
    min-width: 0;
    color: #4b5563;
    font-size: 12px;
    font-weight: 700;
  }

  .perf-filters select {
    width: 100%;
    height: 48px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 0 36px 0 12px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%239ca3af' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center;
    color: #111827;
    font-size: 15px;
    font-weight: 600;
    appearance: none;
  }

  .perf-select-wrap {
    position: relative;
  }

  .perf-select-wrap .dash-subject-ico {
    position: absolute;
    left: 12px;
    top: 50%;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 1;
  }

  .perf-select-wrap select {
    padding-left: 42px;
  }

  .perf-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    flex: 1 1 420px;
    max-width: 560px;
    margin-left: auto;
  }

  .perf-metrics article {
    background: #fff;
    border: 1px solid #eceef4;
    border-radius: 10px;
    padding: 8px 10px 9px;
    box-shadow: 0 4px 12px rgba(17, 24, 39, 0.04);
  }

  .perf-metrics small {
    display: block;
    color: #6b7280;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 2px;
  }

  .perf-metrics strong {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.15;
    color: #111827;
  }

  .perf-metrics .is-last { color: #16a34a; }
  .perf-metrics .is-avg { color: #552ecd; }
  .perf-metrics .is-best { color: #2563eb; }

  .perf-subject {
    display: grid;
    gap: 18px;
  }

  .perf-panel {
    display: grid;
    gap: 32px;
    padding: 20px 22px 14px;
    background: #fff;
    border: 1px solid #eceef4;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(17, 24, 39, 0.04);
  }

  .perf-trend {
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    overflow: visible;
  }

  .perf-trend .dash-card-head {
    margin: 4px 0 8px;
  }

  .perf-trend .dash-card-head h2 {
    font-size: 16px;
    font-weight: 800;
    color: #1a1a2e;
  }

  .perf-chart-wrap {
    position: relative;
    width: 100%;
    min-height: 280px;
    overflow: visible;
    padding: 0;
  }

  .perf-chart {
    width: 100%;
    height: auto;
    display: block;
    overflow: visible;
  }

  .perf-chart-point {
    cursor: pointer;
  }

  .perf-chart-point.is-on .perf-chart-ring {
    r: 8px;
  }

  .perf-chart-point.is-on .perf-chart-core {
    fill: #fff;
    r: 3px;
  }

  .perf-chart-tip {
    position: absolute;
    z-index: 3;
    min-width: 84px;
    padding: 8px 12px 10px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.14);
    transform: translate(-50%, calc(-100% - 14px));
    pointer-events: none;
    text-align: left;
  }

  .perf-chart-tip::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -7px;
    border: 7px solid transparent;
    border-top-color: #fff;
    transform: translateX(-50%);
    filter: drop-shadow(0 3px 2px rgba(17, 24, 39, 0.08));
  }

  .perf-chart-tip[hidden] {
    display: none !important;
  }

  .perf-chart-tip small,
  .perf-chart-tip span {
    display: block;
    color: #9ca3af;
    font-size: 11px;
    font-weight: 600;
  }

  .perf-chart-tip strong {
    display: block;
    margin: 1px 0 2px;
    color: #111827;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
  }

  .perf-chart-empty {
    margin: 28px 0;
    text-align: center;
    color: #9ca3af;
    font-weight: 600;
  }

  .perf-table-wrap {
    overflow: visible;
    border: 1px solid #eceef4;
    border-radius: 12px;
  }

  .perf-chapter-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 920px;
  }

  .perf-chapter-table th,
  .perf-chapter-table td {
    padding: 14px 14px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    border-bottom: 1px solid #f1f3f7;
    white-space: nowrap;
  }

  .perf-chapter-table thead th {
    position: sticky;
    top: 0;
    background: #f8fafc;
    color: #6b7280;
    font-size: 12px;
    z-index: 1;
  }

  .perf-chapter-table tbody tr.is-selected {
    background: #f5f3ff;
  }

  .perf-avg {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .perf-avg-bar {
    width: 72px;
    height: 8px;
    border-radius: 999px;
    background: #eef0f4;
    overflow: hidden;
    flex: 0 0 auto;
  }

  .perf-avg-bar i {
    display: block;
    height: 100%;
    border-radius: inherit;
  }

  .perf-avg-bar .is-strong { background: #166534; }
  .perf-avg-bar .is-good { background: #4ade80; }
  .perf-avg-bar .is-needs { background: #fb923c; }
  .perf-avg-bar .is-none { background: #d1d5db; }

  .perf-status {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
  }

  .perf-status.is-strong { background: #dcfce7; color: #166534; }
  .perf-status.is-good { background: #ede4ff; color: #552ecd; }
  .perf-status.is-needs { background: #ffedd5; color: #c2410c; }
  .perf-status.is-none { background: #f3f4f6; color: #6b7280; }

  .perf-practice {
    display: inline-flex;
    align-items: center;
    height: 32px;
    padding: 0 12px;
    border: 1px solid #552ecd;
    border-radius: 8px;
    color: #552ecd;
    font-size: 12px;
    font-weight: 700;
    background: #fff;
  }

  .perf-practice:hover {
    background: #f5f3ff;
  }

  .coverage-desktop .desk-icon-btn {
    display: none;
  }

  .coverage-desktop .dash-main.cov-main {
    align-content: start;
    overflow: auto;
    min-height: 0;
    gap: 14px;
    padding: 16px 28px 18px;
  }

  .coverage-desktop .cov-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-width: 0;
  }

  .coverage-desktop .cov-filters {
    flex: 1;
    min-width: 0;
  }

  .coverage-desktop .cov-filters button {
    height: 36px;
    padding: 0 14px;
    font-size: 13px;
  }

  .coverage-desktop .cov-sort {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
  }

  .coverage-desktop .cov-sort span {
    margin: 0;
    white-space: nowrap;
  }

  .coverage-desktop .cov-sort select {
    width: 220px;
    height: 40px;
  }

  .cov-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    align-items: start;
  }

  .coverage-desktop .cov-col {
    max-height: calc(100vh - 250px);
    min-height: 360px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 16px 0 0;
    border-radius: 18px;
  }

  .cov-col-head {
    padding: 0 16px 10px;
    flex: 0 0 auto;
  }

  .cov-col-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
  }

  .cov-col-title h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.02em;
  }

  .coverage-desktop .cov-col .dash-subject-ico {
    width: 32px;
    height: 32px;
    border-radius: 50%;
  }

  .coverage-desktop .dash-subject-ico.biology { background: #e8f8ee; color: #16a34a; }
  .coverage-desktop .dash-subject-ico.chemistry { background: #ede4ff; color: var(--purple); }
  .coverage-desktop .dash-subject-ico.physics { background: #e8f1ff; color: #2563eb; }

  .cov-col.biology .cov-col-title h2 { color: #16a34a; }
  .cov-col.chemistry .cov-col-title h2 { color: #552ecd; }
  .cov-col.physics .cov-col-title h2 { color: #2563eb; }

  .cov-col-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
    color: #6b7280;
    font-size: 12px;
    font-weight: 600;
  }

  .cov-col-meta strong {
    color: #111827;
    font-size: 13px;
    font-weight: 800;
  }

  .cov-col.biology .cov-practice.is-again {
    color: #16a34a;
    border-color: #86efac;
  }

  .cov-col.chemistry .cov-practice.is-again {
    color: #552ecd;
    border-color: #c4b5fd;
  }

  .cov-col.physics .cov-practice.is-again {
    color: #2563eb;
    border-color: #93c5fd;
  }

  .cov-practice:hover {
    background: #f8fafc;
  }

  .cov-practice.is-start:hover {
    background: #eff6ff;
  }

  .cov-col.biology .cov-practice.is-again:hover { background: #f0fdf4; }
  .cov-col.chemistry .cov-practice.is-again:hover { background: #f5f3ff; }
  .cov-col.physics .cov-practice.is-again:hover { background: #eff6ff; }

  .cov-table-wrap {
    flex: 1;
    min-height: 0;
    overflow: auto;
  }

  .cov-table {
    width: 100%;
    border-collapse: collapse;
  }

  .cov-table th,
  .cov-table td {
    padding: 10px 16px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    border-bottom: 1px solid #f1f3f7;
    vertical-align: middle;
  }

  .cov-table thead th {
    position: sticky;
    top: 0;
    background: #f8fafc;
    color: #6b7280;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: none;
    z-index: 1;
  }

  .cov-table tbody td:first-child {
    color: #111827;
    font-weight: 600;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  .cov-table tbody td:nth-child(2),
  .cov-table tbody td:nth-child(3) {
    white-space: nowrap;
    width: 1%;
  }

  .cov-table tbody tr:hover td {
    background: #fafbfc;
  }

  .coverage-desktop .cov-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0;
    padding: 4px 2px 0;
  }

  .coverage-desktop .cov-legend {
    gap: 12px 18px;
  }

  .coverage-desktop .cov-tip {
    margin-left: auto;
    white-space: nowrap;
  }
}

@media (min-width: 1024px) and (max-width: 1280px) {
  .desk-quiz-body {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 16px;
    padding: 18px 18px 28px;
  }

  .desk-quiz-main h1 {
    font-size: 26px;
  }

  .hist-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr)) auto auto;
  }

  .hist-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .perf-subject-grid {
    gap: 12px;
  }

  .perf-trend-ring {
    width: 140px;
    height: 140px;
  }

  .perf-subject-card {
    padding: 14px 14px 14px;
  }

  .coverage-desktop .dash-main.cov-main {
    padding: 14px 18px 16px;
  }

  .coverage-desktop .cov-sort select {
    width: 190px;
  }

  .cov-table th,
  .cov-table td {
    padding: 10px 12px;
  }

  .coverage-desktop .cov-practice {
    padding: 0 8px;
    font-size: 11px;
  }

  .rev-main {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 16px;
    padding: 16px 18px 28px;
  }

  .rev-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rev-head {
    flex-direction: column;
  }
}

@media (min-width: 1024px) {
  .landing-desktop,
  .practice-desktop,
  .auth-shell {
    font-size: var(--fs-md);
    font-weight: var(--fw-regular);
  }

  .practice-desktop h1,
  .practice-desktop .desk-page-title,
  .practice-desktop .desk-create h1,
  .practice-desktop .desk-quiz-main h1,
  .practice-desktop .rev-head h1 {
    font-size: var(--fs-xl);
    font-weight: var(--fw-bold);
    letter-spacing: -0.03em;
  }

  .practice-desktop h2,
  .practice-desktop h3,
  .practice-desktop .desk-step h2,
  .practice-desktop .desk-preview h2,
  .practice-desktop .desk-palette-head,
  .practice-desktop .desk-summary-card h2,
  .practice-desktop .rev-side-card h2,
  .practice-desktop .desk-q-head h2 {
    font-size: var(--fs-lg);
    font-weight: var(--fw-semibold);
  }

  .practice-desktop .desk-q-text,
  .practice-desktop .rev-q-text {
    font-size: var(--fs-lg);
    font-weight: var(--fw-medium);
  }

  .practice-desktop .desk-opt,
  .practice-desktop .desk-opt-text,
  .practice-desktop .rev-opt,
  .practice-desktop .rev-opt-text {
    font-size: var(--fs-md);
    font-weight: var(--fw-medium);
  }

  .practice-desktop .desk-opt-key,
  .practice-desktop .rev-opt-key {
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
  }

  .practice-desktop .btn,
  .practice-desktop .desk-btn-next,
  .practice-desktop .desk-btn-ghost,
  .practice-desktop .desk-start,
  .practice-desktop .desk-submit,
  .practice-desktop .rev-btn-solid,
  .practice-desktop .rev-btn-outline,
  .practice-desktop .rev-back,
  .landing-desktop .desk-btn-solid,
  .landing-desktop .desk-btn-outline {
    font-size: var(--fs-md);
    font-weight: var(--fw-semibold);
  }

  .practice-desktop .desk-side-nav a,
  .practice-desktop .desk-side-logout button,
  .practice-desktop .desk-side-settings {
    font-size: 15px;
    font-weight: var(--fw-medium);
  }

  .practice-desktop .desk-side-sub-link {
    font-size: 13.5px;
    font-weight: 600;
  }

  .landing-desktop .desk-nav a,
  .landing-desktop .desk-help {
    font-size: var(--fs-md);
    font-weight: var(--fw-medium);
  }

  .practice-desktop .desk-quiz-meta,
  .practice-desktop .desk-create-sub,
  .practice-desktop .desk-crumbs,
  .practice-desktop .desk-user summary {
    font-size: var(--fs-md);
    font-weight: var(--fw-regular);
  }

  .practice-desktop small,
  .practice-desktop .desk-hint,
  .practice-desktop .rev-legend,
  .practice-desktop .desk-legend,
  .practice-desktop .rev-metrics small,
  .practice-desktop .rev-metrics em,
  .practice-desktop .rev-keep-note,
  .practice-desktop .desk-submit-note,
  .practice-desktop .desk-preview-note,
  .practice-desktop .desk-preview small {
    font-size: var(--fs-xs);
    font-weight: var(--fw-regular);
  }

  .practice-desktop .rev-metrics strong,
  .practice-desktop .hist-stat-ico + div strong,
  .practice-desktop .desk-count,
  .practice-desktop .desk-timer-card strong {
    font-size: 22px;
    font-weight: var(--fw-bold);
  }

  .practice-desktop .desk-pick,
  .practice-desktop .hist-tabs button,
  .practice-desktop .rev-summary li,
  .practice-desktop .rev-summary b {
    font-size: var(--fs-md);
    font-weight: var(--fw-medium);
  }

  .practice-desktop .desk-pal-btn {
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
  }

  .home-dash .desk-welcome h1 {
    font-size: var(--fs-xl);
    font-weight: var(--fw-bold);
  }

  .home-dash .desk-welcome p,
  .home-dash .dash-cta p,
  .home-dash .home-action p,
  .home-dash .home-subject-updated,
  .home-dash .home-legend li {
    font-weight: var(--fw-regular);
  }

  .home-dash .dash-cta h2,
  .home-dash .home-subject-head h2,
  .home-dash .home-action h2,
  .home-dash .home-subject-count {
    font-weight: var(--fw-bold);
  }

  .home-dash .dash-panel-head h2 {
    font-size: 20px;
/*    font-weight: var(--fw-extrabold);*/
    font-weight: 700;
  }

  .home-dash .dash-panel-head p,
  .home-dash .dash-road-copy p,
  .home-dash .dash-quick-copy p {
    font-size: var(--fs-sm);
    font-weight: var(--fw-regular);
  }

  .home-dash .dash-road-copy strong,
  .home-dash .dash-quick-copy h3 {
/*    font-size: var(--fs-lg);*/
    font-size: 16px;
    font-weight: var(--fw-bold);
  }

  .home-dash .dash-cta-btn,
  .home-dash .dash-quick-btn,
  .home-dash .home-action-btn {
    font-size: var(--fs-md);
    font-weight: var(--fw-semibold);
  }

  .home-dash .home-chapter-link {
    font-size: var(--fs-md);
    font-weight: var(--fw-bold);
  }

  .landing-desktop .desk-section-title {
    font-size: 26px;
    font-weight: var(--fw-bold);
  }

  .landing-desktop .desk-hero-copy h1 {
    font-weight:bold;
  }

  .landing-desktop .desk-hero-lead,
  .landing-desktop .desk-hero-points li {
    font-size: var(--fs-lg);
    font-weight: var(--fw-medium);
  }

  .landing-desktop .desk-feature-grid h3,
  .landing-desktop .desk-trust h2 {
/*    font-size: var(--fs-md);*/
   font-size: 12px;
/*    font-weight: var(--fw-semibold);*/
   font-weight: 700;
  }

  .auth-block h1,
  .auth-block h2 {
    font-size: 26px;
    font-weight: var(--fw-bold);
  }

  .performance-desktop .perf-dist-head h2,
  .performance-desktop .perf-heat-title,
  .performance-desktop .perf-trend h2,
  .performance-desktop .perf-table-card h2,
  .performance-desktop .dash-card-head h2 {
    font-size: 16px;
    font-weight: var(--fw-extrabold);
    color: #1a1a2e;
  }

  .performance-desktop .perf-dist-head h2 span,
  .performance-desktop .perf-heat-title span {
    font-size: var(--fs-md);
    font-weight: var(--fw-medium);
    color: #6b7280;
  }

  .performance-desktop .perf-donut-head h3,
  .performance-desktop .perf-heat-subject {
    font-size: 16px;
    font-weight: var(--fw-extrabold);
    color: #1a1a2e;
  }

  .performance-desktop .perf-donut-total {
    font-size: var(--fs-sm);
    font-weight: var(--fw-bold);
    color: var(--purple);
  }

  .performance-desktop .perf-heat-cell {
    font-size: var(--fs-lg);
    font-weight: var(--fw-extrabold);
  }
}

.admin-field {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
  text-align: left;
}

.onboard-name-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.onboard-name-row .admin-field {
  margin-bottom: 0;
}

.onboard-name-row + .field-error {
  margin-top: 8px;
}

.onboard-form-error {
  margin: 0 0 14px;
}

.onboard-skip {
  margin-top: 14px;
  text-align: center;
}

.onboard-skip button {
  background: none;
  border: 0;
  padding: 0;
  color: #6b7280;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.onboard-skip button:hover {
  color: var(--purple, #552ecd);
}

@media (max-width: 420px) {
  .onboard-name-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1023px) {
  body.m-open.auth-body.onboard-body .auth-block {
    padding-top: 28px;
  }

  body.m-open.auth-body.onboard-body .admin-field input,
  body.m-open.auth-body.onboard-body .admin-field select {
    font-size: 16px;
  }

  body.m-open.auth-body.onboard-body .onboard-skip {
    display: block;
    margin-top: 8px;
  }

  body.m-open.auth-body.onboard-body .onboard-skip button {
    min-height: 44px;
    padding: 10px 12px;
  }
}

.admin-field span {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}

.admin-field input,
.admin-field select,
.admin-search input,
.admin-status-filter select {
  height: 48px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0 14px;
  outline: none;
  background: #fff;
  color: var(--text);
  width: 100%;
}

.admin-field input:focus,
.admin-field select:focus,
.admin-search input:focus,
.admin-status-filter select:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(93, 46, 236, 0.12);
}

.admin-field em {
  font-style: normal;
  font-weight: 500;
  color: #9ca3af;
}

.onboard-status {
  border: 0;
  padding: 0;
  margin: 0 0 14px;
}

.onboard-status legend {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
}

.onboard-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.onboard-status-row label {
  cursor: pointer;
}

.onboard-status-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.onboard-status-row span {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 14px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #4b5563;
  background: #fff;
}

.onboard-status-row input:checked + span {
  border-color: var(--purple);
  background: var(--purple-soft);
  color: var(--purple);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.admin-filters {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.admin-filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  min-width: 96px;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  background: var(--purple);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  flex: 1;
}

.admin-filter-btn:hover {
  background: var(--purple-hover);
  color: #fff;
}

.admin-filter-actions {
  display: flex;
  gap: 10px;
}

.admin-body {
  min-height: 100vh;
  background: #f6f7fb;
  font-family: var(--font);
  color: var(--text);
}

.admin-shell {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 100vh;
}

.admin-side {
  background: #fff;
  border-bottom: 1px solid #eceef4;
  padding: 18px 16px 12px;
}

.admin-side .desk-side-brand,
.admin-side .brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.admin-side-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ca3af;
  margin: 0 4px 10px;
}

.admin-side-nav {
  display: flex;
  gap: 8px;
}

.admin-side-nav a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  color: #4b5563;
  font-weight: 500;
  font-size: 15px;
}

.admin-side-nav a svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.admin-side-nav a.is-active,
.admin-side-nav a.is-active:hover {
  background: #ebe4ff;
  color: #6a4bc3;
}

.admin-side-foot {
  display: grid;
  gap: 4px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #eceef4;
}

.admin-side-link {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: #4b5563;
  font: inherit;
  font-weight: 500;
  font-size: 15px;
  text-align: left;
  cursor: pointer;
}

.admin-side-link svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.admin-side-link:hover {
  color: #552ecd;
  background: #f6f3ff;
}

.admin-main {
  min-width: 0;
  padding: 20px 16px 32px;
}

.admin-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.admin-top h1 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #111827;
}

.admin-top p {
  color: #6b7280;
  font-size: 14px;
  margin-top: 4px;
}

.admin-logout {
  border: 1px solid #eceef4;
  background: #fff;
  color: #374151;
  border-radius: 10px;
  padding: 8px 14px;
  font-weight: 600;
  cursor: pointer;
}

.admin-logout:hover {
  color: #552ecd;
  border-color: #d9cdf8;
}

.admin-card {
  background: #fff;
  border: 1px solid #eceef4;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.04);
  overflow: hidden;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}

.admin-table th {
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  color: #6b7280;
  padding: 14px 16px;
  background: #f8f9fc;
  border-bottom: 1px solid #eceef4;
  white-space: nowrap;
}

.admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #f3f4f6;
  font-size: 14px;
  color: #374151;
  vertical-align: middle;
}

.admin-table tbody tr:last-child td {
  border-bottom: 0;
}

.admin-empty {
  text-align: center;
  color: #9ca3af;
  padding: 36px 16px !important;
}

.admin-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-top: 1px solid #eceef4;
  color: #6b7280;
  font-size: 13px;
}

.admin-pager-meta {
  font-weight: 600;
  color: #6b7280;
}

.admin-pager-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.admin-pager a,
.admin-pager span.is-disabled,
.admin-pager span.is-current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  border: 1px solid #eceef4;
  border-radius: 8px;
  padding: 6px 10px;
  font-weight: 600;
  color: #374151;
  background: #fff;
  text-decoration: none;
}

.admin-pager a:hover {
  color: #552ecd;
  border-color: #d9cdf8;
}

.admin-pager span.is-current {
  background: #552ecd;
  border-color: #552ecd;
  color: #fff;
}

.admin-pager span.is-disabled {
  color: #c4c9d4;
  background: #f9fafb;
}

.admin-qb-body .admin-main.admin-qb {
  background: #f6f7fb;
}

.admin-qb-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.admin-qb-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.admin-qb-kicker {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7c5cde;
}

.admin-qb-hero h1 {
  margin: 0;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #111827;
}

.admin-qb-sub {
  margin: 6px 0 0;
  color: #6b7280;
  font-size: 14px;
}

.admin-qb-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.admin-qb-stat {
  min-width: 92px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #e7eaf2;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.04);
}

.admin-qb-stat strong {
  display: block;
  font-size: 18px;
  font-weight: 800;
  color: #111827;
}

.admin-qb-stat span {
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
}

.admin-qb-stat.is-live {
  background: #ecfdf3;
  border-color: #bbf7d0;
}

.admin-qb-stat.is-live strong {
  color: var(--green-text);
}

.admin-qb-stat.is-reviewed {
  background: var(--purple-soft);
  border-color: #d9cdf8;
}

.admin-qb-stat.is-reviewed strong {
  color: #6a4bc3;
}

.admin-qb-toolbar {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.admin-qb-tabs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.admin-qb-tab {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid #e7eaf2;
  background: #fff;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.04);
  color: #374151;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.admin-qb-tab:hover {
  transform: translateY(-1px);
  border-color: #d9cdf8;
}

.admin-qb-tab-ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  color: #6b7280;
  flex: 0 0 auto;
}

.admin-qb-tab-ico svg {
  width: 20px;
  height: 20px;
}

.admin-qb-tab-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.admin-qb-tab-text strong {
  font-size: 15px;
  font-weight: 800;
}

.admin-qb-tab-text em {
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
}

.admin-qb-tab.is-biology.is-active,
.admin-qb-tab.is-biology.is-active:hover {
  background: linear-gradient(135deg, #ecfdf3, #fff);
  border-color: #86efac;
  box-shadow: 0 10px 24px rgba(34, 197, 94, 0.12);
}

.admin-qb-tab.is-biology.is-active .admin-qb-tab-ico {
  background: #dcfce7;
  color: #15803d;
}

.admin-qb-tab.is-chemistry.is-active,
.admin-qb-tab.is-chemistry.is-active:hover {
  background: linear-gradient(135deg, #f3eefe, #fff);
  border-color: #d9cdf8;
  box-shadow: 0 10px 24px rgba(85, 46, 205, 0.12);
}

.admin-qb-tab.is-chemistry.is-active .admin-qb-tab-ico {
  background: var(--purple-soft);
  color: #6a4bc3;
}

.admin-qb-tab.is-physics.is-active,
.admin-qb-tab.is-physics.is-active:hover {
  background: linear-gradient(135deg, #fff7ed, #fff);
  border-color: #fdba74;
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.12);
}

.admin-qb-tab.is-physics.is-active .admin-qb-tab-ico {
  background: #ffedd5;
  color: #c2410c;
}

.admin-qb-filters {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #e7eaf2;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.04);
}

.admin-qb-search input,
.admin-qb-select select {
  width: 100%;
  height: 48px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 0 14px;
  background: #fff;
  color: #111827;
}

.admin-qb-search input:focus,
.admin-qb-select select:focus {
  outline: none;
  border-color: #c4b5fd;
  box-shadow: 0 0 0 3px rgba(85, 46, 205, 0.12);
}

.admin-qb-filter-actions {
  display: flex;
  gap: 10px;
}

.admin-qb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  min-width: 96px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #374151;
  font-weight: 700;
  cursor: pointer;
  flex: 1;
}

.admin-qb-btn.is-primary {
  border: 0;
  background: var(--purple);
  color: #fff;
}

.admin-qb-btn.is-primary:hover {
  background: var(--purple-hover);
  color: #fff;
}

.admin-qb-btn.is-small {
  height: 38px;
  min-width: 0;
  padding: 0 12px;
  font-size: 12px;
  flex: 0 0 auto;
}

.admin-csv-file {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.admin-csv-file span {
  font-size: 13px;
  font-weight: 700;
  color: #374151;
}

.admin-csv-file input {
  max-width: 420px;
}

.admin-csv-hint {
  margin: 0 0 14px;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.5;
}

.admin-csv-cols {
  display: block;
  overflow-x: auto;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f8f5ff;
  color: #4524b0;
  font-size: 12px;
  line-height: 1.5;
  white-space: nowrap;
}

.admin-csv-errors {
  margin: 8px 0 0;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.5;
}

.admin-qb-btn.is-danger {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

.admin-qb-bulkbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e7eaf2;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.04);
}

.admin-qb-bulkbar select {
  height: 42px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 0 12px;
  min-width: 180px;
  background: #fff;
}

.admin-qb-check-all,
.admin-qb-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #4b5563;
}

.admin-qb-pick {
  display: inline-flex;
  align-items: center;
}

.admin-qb-form {
  display: grid;
  gap: 14px;
}

.admin-qb-form-card {
  padding: 18px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid #e7eaf2;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.04);
}

.admin-qb-form-card h2 {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 800;
  color: #111827;
}

.admin-qb-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.admin-qb-form label,
.admin-qb-full {
  display: grid;
  gap: 6px;
}

.admin-qb-form label span,
.admin-qb-full span {
  font-size: 12px;
  font-weight: 700;
  color: #6b7280;
}

.admin-qb-form input,
.admin-qb-form select,
.admin-qb-form textarea {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
  color: #111827;
  font: inherit;
}

.admin-qb-form textarea {
  resize: vertical;
  min-height: 96px;
}

.admin-qb-form-flags {
  display: grid;
  gap: 12px;
}

.admin-qb-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-qb-flash.is-error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}

.admin-qb-flash {
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: #ecfdf3;
  border: 1px solid #bbf7d0;
  color: var(--green-text);
  font-size: 13px;
  font-weight: 700;
}

.admin-qb-result-count {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin: 0;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--purple-soft);
  border: 1px solid #d9cdf8;
  color: #4b5563;
  font-size: 13px;
  font-weight: 600;
}

.admin-qb-result-count strong {
  color: #4624b3;
  font-weight: 800;
}

.admin-qb-result-clear {
  margin-left: auto;
  color: var(--purple);
  font-weight: 700;
  text-decoration: underline;
}

.admin-qb-result-clear:hover {
  color: var(--purple-hover);
}

.admin-qb-feed {
  display: grid;
  gap: 16px;
}

.admin-qb-item {
  display: grid;
}

/* Same spacing as Practice Test */
.admin-qb-feed .desk-q-card {
  background: #fff;
  border: 1px solid #eceef4;
  border-radius: 18px;
  padding: 22px 22px 20px;
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.05);
}

.admin-qb-feed .desk-q-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.admin-qb-feed .desk-q-head h2 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #552ecd;
}

.admin-qb-feed .desk-q-text {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.55;
  color: #111827;
  margin: 0 0 16px;
  white-space: normal;
}

.admin-qb-feed .desk-q-text .q-stem {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.admin-qb-feed .desk-q-text .mtf-columns {
  white-space: normal;
}

.admin-qb-feed .desk-q-text:has(+ .q-media) {
  margin-bottom: 10px;
}

.admin-qb-feed .desk-q-options {
  display: grid;
  gap: 10px;
}

.admin-qb-feed .desk-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  text-align: left;
  border: 1.5px solid #e5e7eb;
  background: #fff;
  border-radius: 14px;
  padding: 10px 14px;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: default;
}

.admin-qb-feed .desk-opt-key {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid #e5e7eb;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 13px;
  color: #6b7280;
  flex: 0 0 auto;
}

.admin-qb-feed .desk-opt-text {
  flex: 1;
  min-width: 0;
  font-weight: 600;
  text-align: left;
  white-space: normal;
  word-break: break-word;
}

.admin-qb-feed .desk-opt-check {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.2 6.2 4.6 8.5 9.8 3.2' fill='none' stroke='%23552ECD' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}

.admin-qb-feed .desk-opt.is-on {
  border-color: #552ecd;
  background: #f6f2ff;
  box-shadow: 0 0 0 3px rgba(85, 46, 205, 0.1);
}

.admin-qb-feed .desk-opt.is-on .desk-opt-key {
  background: #552ecd;
  border-color: #552ecd;
  color: #fff;
}

.admin-qb-feed .desk-opt:has(.q-media-img) {
  align-items: flex-start;
}

.admin-qb-card-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 14px;
  padding: 0 0 14px;
  border-bottom: 1px solid #eceef4;
}

.q-badge-chapter {
  background: #e0f2fe;
  color: #0369a1;
  white-space: normal;
  height: auto;
  min-height: 26px;
  padding: 4px 10px;
  line-height: 1.3;
  max-width: min(100%, 320px);
}

.q-badge-type {
  background: #ffedd5;
  color: #c2410c;
}

.admin-qb-feed .rev-explain {
  margin-top: 14px;
  background: #f0fdf4;
  border-radius: 10px;
  padding: 12px 14px 12px 16px;
  border-left: 4px solid #22c55e;
}

.admin-qb-feed .rev-explain-title {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 700;
  color: #15803d;
}

.admin-qb-feed .rev-explain p:last-child {
  margin: 0;
  color: #4b5563;
  font-size: 13px;
  line-height: 1.55;
  font-weight: 400;
  white-space: pre-wrap;
  word-break: break-word;
}

.admin-qb-match-raw {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f8f9fc;
  border: 1px solid #eceef4;
  font: inherit;
  font-size: 13px;
  white-space: pre-wrap;
  word-break: break-word;
}

.admin-qb-card {
  position: relative;
  overflow: hidden;
  padding: 18px 16px 18px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid #e7eaf2;
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.05);
}

.admin-qb-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: #c4b5fd;
}

.admin-qb-card.is-biology::before { background: #22c55e; }
.admin-qb-card.is-chemistry::before { background: #7c5cde; }
.admin-qb-card.is-physics::before { background: #f97316; }

.admin-qb-card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-left: 8px;
}

.admin-qb-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.admin-qb-id {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.admin-qb-chip {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #4b5563;
  font-size: 12px;
  font-weight: 700;
}

.admin-qb-chip.is-soft {
  background: #eef2ff;
  color: #4338ca;
}

.admin-qb-chip.is-diff.is-easy {
  background: #ecfdf3;
  color: #15803d;
}

.admin-qb-chip.is-diff.is-medium {
  background: #fff7ed;
  color: #c2410c;
}

.admin-qb-chip.is-diff.is-hard {
  background: #fef2f2;
  color: #b91c1c;
}

.admin-qb-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-qb-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 38px;
  padding: 0 12px 0 8px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #6b7280;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.admin-qb-switch {
  width: 34px;
  height: 20px;
  border-radius: 999px;
  background: #d1d5db;
  position: relative;
  flex: 0 0 auto;
}

.admin-qb-switch i {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: left 0.15s ease;
}

.admin-qb-toggle.is-on .admin-qb-switch i {
  left: 16px;
}

.admin-qb-toggle.is-live.is-on {
  background: #ecfdf3;
  border-color: #86efac;
  color: #15803d;
}

.admin-qb-toggle.is-live.is-on .admin-qb-switch {
  background: #22c55e;
}

.admin-qb-toggle.is-reviewed.is-on {
  background: var(--purple-soft);
  border-color: #d9cdf8;
  color: #6a4bc3;
}

.admin-qb-toggle.is-reviewed.is-on .admin-qb-switch {
  background: #7c5cde;
}

.admin-qb-label {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9ca3af;
}

.admin-qb-question,
.admin-qb-options-wrap,
.admin-qb-explain,
.admin-qb-match-wrap,
.admin-qb-grid {
  padding-left: 8px;
}

.admin-qb-text,
.admin-qb-opt-body p,
.admin-qb-explain p,
.admin-qb-explain pre,
.admin-qb-grid p:not(.admin-qb-label) {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: #111827;
  white-space: pre-wrap;
  word-break: break-word;
}

.admin-qb-explain pre {
  font-family: inherit;
}

.admin-qb-path {
  margin-top: 8px;
  color: #6b7280;
  font-size: 12px;
}

.admin-qb-img {
  display: block;
  max-width: min(100%, 360px);
  max-height: 200px;
  margin-top: 10px;
  border: 1px solid #eceef4;
  border-radius: 14px;
  object-fit: contain;
  background: #f8f9fc;
}

.admin-qb-options-wrap,
.admin-qb-explain,
.admin-qb-match-wrap,
.admin-qb-grid {
  margin-top: 16px;
}

.admin-qb-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.admin-qb-options li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid #eef0f5;
  background: #fafbfe;
}

.admin-qb-options li.is-correct {
  border-color: #86efac;
  background: linear-gradient(180deg, #f0fdf4, #fff);
}

.admin-qb-opt-key {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #e5e7eb;
  color: #374151;
  font-weight: 800;
}

.admin-qb-options li.is-correct .admin-qb-opt-key {
  background: #22c55e;
  border-color: #22c55e;
  color: #fff;
}

.admin-qb-correct-tag {
  align-self: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: #dcfce7;
  color: #15803d;
  font-size: 11px;
  font-weight: 800;
}

.admin-qb-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.admin-qb-match {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.admin-qb-match-heads {
  margin: 0 0 8px;
  color: #4b5563;
  font-size: 13px;
  font-weight: 600;
}

.admin-qb-match ul {
  margin: 0;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid #eef0f5;
  background: #fafbfe;
}

.admin-qb-match li {
  padding: 4px 0;
  font-size: 14px;
  color: #374151;
}

.admin-qb-empty {
  padding: 42px 20px;
  text-align: center;
  border-radius: 22px;
  background: #fff;
  border: 1px dashed #d5d9e3;
}

.admin-qb-empty strong {
  display: block;
  font-size: 16px;
  color: #111827;
}

.admin-qb-empty p {
  margin: 6px 0 0;
  color: #6b7280;
  font-size: 14px;
}

.admin-qb-pager {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 8px 4px 4px;
  color: #6b7280;
  font-size: 13px;
}

.admin-qb-pager a,
.admin-qb-pager span.is-disabled {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 8px 12px;
  font-weight: 700;
  color: #374151;
  background: #fff;
}

.admin-qb-pager a:hover {
  color: #552ecd;
  border-color: #d9cdf8;
}

.admin-qb-pager span.is-disabled {
  color: #c4c9d4;
}

@media (max-width: 1023px) {
  .admin-side {
    position: sticky;
    top: 0;
    z-index: 20;
  }

  .admin-side-nav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .admin-side-nav::-webkit-scrollbar {
    display: none;
  }

  .admin-side-nav a {
    white-space: nowrap;
  }

  .admin-top {
    flex-wrap: wrap;
  }

  .admin-top h1 {
    font-size: 22px;
  }

  .admin-table-wrap {
    -webkit-overflow-scrolling: touch;
  }

  .admin-qb-hero {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-qb-hero h1 {
    font-size: 24px;
  }

  .admin-qb-hero-actions {
    justify-content: flex-start;
  }

  .admin-qb-hero-actions .admin-qb-btn {
    flex: 1 1 46%;
  }

  .admin-qb-stat {
    flex: 1 1 40%;
  }

  .admin-qb-bulkbar select,
  .admin-qb-bulkbar .admin-qb-btn {
    flex: 1 1 100%;
    min-width: 0;
  }

  .admin-qb-card-tools .admin-qb-toggles {
    flex-wrap: wrap;
  }

  .admin-qb-pager {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (min-width: 1024px) {
  .admin-body {
    height: 100vh;
    overflow: hidden;
  }

  .admin-shell {
    grid-template-columns: 240px minmax(0, 1fr);
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
  }

  .admin-side {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    overflow: auto;
    border-bottom: 0;
    border-right: 1px solid #eceef4;
    padding: 22px 14px 18px;
  }

  .admin-side .desk-side-brand,
  .admin-side .brand {
    margin: 0 10px 22px;
  }

  .admin-side-label {
    margin: 0 16px 8px;
  }

  .admin-side-nav {
    display: grid;
    align-content: start;
    gap: 12px;
    flex: 1;
  }

  .admin-side-nav a {
    padding: 12px 16px;
    border-radius: 16px;
  }

  .admin-side-foot {
    margin-top: auto;
    flex: 0 0 auto;
  }

  .admin-side-link {
    padding: 12px 16px;
    border-radius: 16px;
  }

  /* Main column scrolls; do NOT use 1fr + overflow:hidden card (clips user list). */
  .admin-main {
    display: block;
    height: 100%;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 22px 28px 32px;
  }

  .admin-filters {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px auto;
    align-items: center;
  }

  .admin-filter-actions {
    flex: 0 0 auto;
  }

  .admin-filter-btn {
    flex: 0 0 auto;
    min-width: 96px;
  }

  .admin-main.admin-qb {
    display: block;
  }

  .admin-qb-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  /* Flex-wrap rather than a fixed column count so the bar keeps working as
     filters are added and at narrower desktop widths. */
  .admin-qb-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }

  .admin-qb-search {
    flex: 1 1 240px;
    min-width: 0;
  }

  .admin-qb-select {
    flex: 1 1 150px;
    min-width: 0;
  }

  .admin-qb-form-grid {
    grid-template-columns: 1fr 1fr;
  }

  .admin-qb-full {
    grid-column: 1 / -1;
  }

  .admin-qb-filter-actions {
    flex: 0 0 auto;
    margin-left: auto;
  }

  .admin-qb-btn {
    flex: 0 0 auto;
  }

  .admin-qb-card {
    padding: 22px 22px 22px 24px;
  }

  .admin-qb-options {
    grid-template-columns: 1fr 1fr;
  }

  .admin-qb-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .admin-qb-match {
    grid-template-columns: 1fr 1fr;
  }
}

/* —— Support form —— */
.support-body {
  background: #f4f6fb;
}

.support-app {
  width: min(100%, 960px);
  margin: 0 auto;
  min-height: 100vh;
  padding: 0 16px 28px;
  background: #f4f6fb;
}

.support-guest-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 0 14px;
}

.support-guest-signin {
  height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 14px;
  background: #2f46f5;
}

.support-guest-signin:hover {
  background: #2438d4;
}

.practice-mobile.support-mobile {
  padding-bottom: 24px;
}

.practice-mobile.support-mobile .support-card {
  margin-top: 8px;
}

.support-card {
  background: #fff;
  border: 1px solid #e8ecf4;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}

.support-card-head {
  padding: 22px 20px 8px;
}

.support-title {
  font-size: 28px;
  font-weight: 800;
  color: #1e3a8a;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 8px;
}

.support-lead {
  color: #64748b;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 10px;
}

.support-sla {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #64748b;
  font-size: 13px;
  font-weight: 500;
}

.support-sla svg {
  width: 16px;
  height: 16px;
  color: #94a3b8;
}

.support-success {
  margin: 8px 20px 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  font-size: 14px;
  font-weight: 600;
}

.support-errors {
  margin: 8px 20px 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  font-size: 13px;
}

.support-errors ul {
  margin: 0;
  padding-left: 18px;
}

.support-form {
  padding: 8px 16px 0;
}

.support-grid {
  display: grid;
  gap: 14px;
}

.support-panel {
  margin: 0;
  padding: 16px;
  border: 1px solid #e8ecf4;
  border-radius: 16px;
  background: #fbfcfe;
  min-width: 0;
}

.support-panel legend {
  float: left;
  width: 100%;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1e3a8a;
  margin-bottom: 14px;
}

.support-panel legend + * {
  clear: both;
}

.support-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.support-field {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
  text-align: left;
  min-width: 0;
}

.support-field:last-child {
  margin-bottom: 0;
}

.support-field > span {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}

.support-field i {
  color: #f97316;
  font-style: normal;
}

.support-field em {
  font-style: normal;
  font-weight: 500;
  color: #94a3b8;
}

.support-field input,
.support-field select,
.support-field textarea {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  outline: none;
  padding: 0 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.support-field input,
.support-field select {
  height: 46px;
}

.support-field textarea {
  min-height: 120px;
  padding: 12px 14px;
  resize: vertical;
  line-height: 1.45;
}

.support-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none'%3E%3Cpath d='M2.2 4.4 6 8.1l3.8-3.7' stroke='%238A8F9C' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.support-field input::placeholder,
.support-field textarea::placeholder {
  color: #94a3b8;
}

.support-field input:focus,
.support-field select:focus,
.support-field textarea:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.support-drop {
  display: grid;
  place-items: center;
  gap: 4px;
  min-height: 92px;
  padding: 16px;
  border: 1.5px dashed #dbe3f0;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.support-drop.is-dragover {
  border-color: #f97316;
  background: #fff7ed;
}

.support-drop-copy {
  color: #64748b;
  font-size: 14px;
}

.support-drop-copy strong {
  color: #f97316;
  font-weight: 700;
}

.support-drop-hint {
  color: #94a3b8;
  font-size: 12px;
}

.support-file-list {
  list-style: none;
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.support-file-list[hidden] {
  display: none !important;
}

.support-file-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e8ecf4;
  font-size: 13px;
  color: #334155;
}

.support-file-list button {
  border: 0;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 0 2px;
}

.support-file-list button:hover {
  color: #ef4444;
}

.support-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 4px 18px;
  border-top: 1px solid #eef2f7;
  margin-top: 16px;
}

.support-required {
  color: #94a3b8;
  font-size: 13px;
}

.support-required i {
  color: #f97316;
  font-style: normal;
}

.support-submit {
  background: #f97316;
  border-radius: 12px;
  height: 44px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(249, 115, 22, 0.25);
}

.support-submit:hover {
  background: #ea580c;
}

.support-submit svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 560px) {
  .support-row {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1024px) {
  .support-body .app.support-app {
    width: min(100%, 1100px);
    padding: 8px 28px 40px;
  }

  .support-desktop-main {
    min-height: 0;
    overflow: auto;
    padding: 8px 28px 32px;
  }

  .practice-mobile.support-mobile {
    overflow: auto;
    padding-bottom: 24px;
  }

  .support-desktop-main .support-form-page,
  .practice-mobile.support-mobile .support-form-page {
    max-width: 1100px;
  }

  .support-desktop .support-card {
    max-width: 1100px;
  }

  .support-desktop .support-card-head {
    padding: 28px 28px 10px;
  }

  .support-desktop .support-form {
    padding: 4px 28px 0;
  }

  .support-desktop .support-grid {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    align-items: start;
  }

  .support-desktop .support-panel {
    min-height: 100%;
  }

  .support-desktop .support-card-foot {
    padding: 18px 0 24px;
  }

  .support-desktop .support-title {
    font-size: 32px;
  }

  .support-guest .support-grid {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    align-items: start;
  }

  .support-guest .support-card-head {
    padding: 28px 28px 10px;
  }

  .support-guest .support-form {
    padding: 4px 28px 0;
  }

  .support-guest .support-card-foot {
    padding: 18px 0 24px;
  }

  .support-guest .support-title {
    font-size: 32px;
  }
}

/* Auth alert modal (existing user on Sign Up) */
.auth-alert {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(17, 24, 39, 0.48);
}

.q-lightbox {
  position: fixed;
  inset: 0;
  z-index: 240;
  display: grid;
  place-items: center;
  padding: 56px 28px 28px;
  background: rgba(17, 24, 39, 0.72);
  cursor: zoom-out;
}

.q-lightbox[hidden] {
  display: none !important;
}

.q-lightbox-img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(1100px, 92vw);
  max-height: 86vh;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
  padding: 12px;
  box-shadow: 0 24px 60px rgba(17, 24, 39, 0.35);
  cursor: default;
}

.q-lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #111827;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.18);
}

.q-lightbox-close svg {
  width: 18px;
  height: 18px;
}

.auth-alert[hidden] {
  display: none !important;
}

.auth-alert-card {
  width: min(420px, 100%);
  background: #fff;
  border-radius: 20px;
  padding: 28px 24px 22px;
  box-shadow: 0 24px 60px rgba(17, 24, 39, 0.22);
  text-align: center;
}

.auth-alert-ico {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--purple-soft, #ede4ff);
  color: var(--purple, #552ecd);
}

.auth-alert-ico svg {
  width: 26px;
  height: 26px;
}

.auth-alert-card h2 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 800;
  color: var(--text, #1a1a1a);
}

.auth-alert-card p {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted, #666);
}

.auth-alert-card .btn-auth {
  width: 100%;
  min-height: 46px;
}

.mobile-desktop-gate {
  display: none;
}

.m-only,
.m-auth-tagline,
.m-auth-hero,
.m-auth-title,
.m-auth-lead,
.m-flag,
.m-otp-extra,
.m-auth-orb {
  display: none;
}
/*Ravinder css*/
main#desk-main {
    min-height: 90vh;
    overflow-y: auto;
}

.landing-desktop {
    min-height: 100%;
    height: 100%;
}

.desk-trust-grid {
    padding: 15px 6px;
}

.desk-features {
    padding-top: 30px;
}

.desk-features .desk-section-title {
    padding-bottom: 10px;
}

.desk-trust {
    padding-top: 10px;
}
.landing-desktop .desk-hero {
    padding-top: 25px;
    padding-bottom: 20px;
}

.desk-feature-grid article {
    padding: 15px;
}

.desk-feature-grid article span.desk-feature-ico {
    margin-bottom: 15px;
}
.desk-footer {
    padding-top: 15px;
}
/*Ravinder css end*/
@media (max-width: 1023px) {
  html,
  body {
    max-width: none !important;
    margin: 0 !important;
    height: 100%;
    background: #f4f0ff;
  }

  /* The gate only applies to pages that actually render it (the student
     layout). Admin pages have no gate markup, so they must never be blanked. */
  body:not(.m-open):not(.admin-area):not([data-mobile-app="1"]):has(> .mobile-desktop-gate) {
    overflow: hidden;
  }

  body:not(.m-open):not(.admin-area):not([data-mobile-app="1"]):has(> .mobile-desktop-gate) > *:not(.mobile-desktop-gate) {
    display: none !important;
  }

  body.m-open .mobile-desktop-gate,
  body[data-mobile-app="1"] .mobile-desktop-gate {
    display: none !important;
  }

  body.m-open.practice-body {
    overflow: auto;
    background: #fff;
    height: auto;
    min-height: 100%;
    font-family: "Raleway", sans-serif;
  }

  body.m-open.practice-body .app.practice-app {
    width: min(430px, 100%);
    min-height: 100dvh;
    height: auto;
    padding: 0;
    background: #fff;
  }

  body.admin-area,
  body.admin-body {
    height: auto;
    min-height: 100%;
    overflow-x: hidden;
    background: #f6f7fb;
  }

  body.admin-area.auth-body {
    background: #fff;
  }

  .mobile-desktop-gate {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 400;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 28px 20px;
    background:
      radial-gradient(circle at 12% 8%, rgba(255, 138, 31, 0.22), transparent 28%),
      radial-gradient(circle at 88% 18%, rgba(85, 46, 205, 0.28), transparent 34%),
      radial-gradient(circle at 80% 92%, rgba(46, 139, 87, 0.16), transparent 30%),
      linear-gradient(180deg, #efe8ff 0%, #f7f4ff 48%, #fff 100%);
  }

  .mobile-desktop-gate-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(8px);
    pointer-events: none;
  }

  .mobile-desktop-gate-orb.is-a {
    width: 180px;
    height: 180px;
    top: -50px;
    left: -40px;
    background: rgba(85, 46, 205, 0.22);
  }

  .mobile-desktop-gate-orb.is-b {
    width: 160px;
    height: 160px;
    right: -48px;
    top: 18%;
    background: rgba(255, 138, 31, 0.2);
  }

  .mobile-desktop-gate-orb.is-c {
    width: 140px;
    height: 140px;
    right: 12%;
    bottom: -36px;
    background: rgba(46, 139, 87, 0.16);
  }

  .mobile-desktop-gate-inner {
    position: relative;
    width: min(380px, 100%);
    padding: 34px 26px 30px;
    text-align: center;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(85, 46, 205, 0.1);
    border-radius: 28px;
    box-shadow:
      0 18px 50px rgba(48, 24, 110, 0.14),
      0 0 0 1px rgba(255, 255, 255, 0.7) inset;
    backdrop-filter: blur(16px);
  }

  .mobile-desktop-gate .brand {
    justify-content: center;
    margin-bottom: 22px;
  }

  .mobile-desktop-gate .brand-mark {
    width: 34px;
    height: 34px;
  }

  .mobile-desktop-gate .brand-name {
    font-size: 28px;
    color: #1a1330;
  }

  .mobile-desktop-gate-visual {
    width: 148px;
    margin: 0 auto 18px;
    animation: gate-float 3.6s ease-in-out infinite;
  }

  .mobile-desktop-gate-visual svg {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 12px 18px rgba(85, 46, 205, 0.22));
  }

  .mobile-desktop-gate-badge {
    display: inline-flex;
    align-items: center;
    margin: 0 0 12px;
    padding: 5px 12px;
    border-radius: 999px;
    background: #ede4ff;
    color: #552ecd;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .mobile-desktop-gate-msg {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #1a1330;
    line-height: 1.25;
  }

  .mobile-desktop-gate-sub {
    margin: 10px 0 0;
    font-size: 15px;
    color: #666;
    line-height: 1.55;
  }

  @keyframes gate-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
  }

  body.m-open.landing-body,
  body.m-open.auth-body {
    overflow: auto;
    background: #fff;
    max-width: none !important;
    height: auto;
    min-height: 100%;
  }

  body.m-open .m-only {
    display: inline !important;
  }

  body.m-open .d-only {
    display: none !important;
  }

  /* Mobile landing */
  body.m-open .m-land {
    position: relative;
    overflow: hidden;
    min-height: 100dvh;
    padding: 18px 22px 36px;
    background:
      radial-gradient(circle at 92% 8%, rgba(124, 92, 255, 0.22), transparent 28%),
      radial-gradient(circle at 100% 42%, rgba(255, 138, 31, 0.16), transparent 26%),
      radial-gradient(circle at 8% 92%, rgba(255, 120, 162, 0.2), transparent 30%),
      #fff;
  }

  .m-land-orb {
    display: none;
  }

  .m-land-top {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 28px;
  }

  .m-land-top .brand-name {
    font-size: 22px;
    font-weight: 800;
    color: #111827;
  }

  .m-land-auth-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
  }

  .m-land-auth-outline,
  .m-land-auth-solid {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
  }

  .m-land-auth-outline {
    border: 1.5px solid #c4b5fd;
    color: #552ecd;
    background: #fff;
  }

  .m-land-auth-solid {
    background: #964BE1;
    color: #fff;
    border: 0;
    box-shadow: 0 8px 16px rgba(150, 75, 225, 0.22);
  }

  .m-land-main {
    position: relative;
    z-index: 1;
  }

  .m-land-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 18px;
    padding: 6px 12px 6px 6px;
    border-radius: 999px;
    background: #efe9ff;
    color: #5b3def;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .m-land-plus {
    display: inline-flex;
    width: 22px;
    height: 22px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #6d4dff;
    color: #fff;
    font-size: 14px;
    line-height: 1;
  }

  .m-land-title {
    margin: 0 0 12px;
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 1.12;
    color: #111827;
  }

  .m-land-title span {
    background: linear-gradient(90deg, #6d4dff 0%, #7b8cff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }

  .m-land-lead {
    margin: 0 0 16px;
    max-width: 34ch;
    color: #535862;
    font-size: 14.5px;
    line-height: 1.55;
  }

  .m-land-points {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0 0 22px;
  }

  .m-land-points li,
  .m-offer-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #1f2937;
    font-size: 14.5px;
    font-weight: 600;
  }

  .m-check,
  .m-check svg {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
  }

  .m-offer {
    position: relative;
    padding: 18px 18px 20px;
    background: #fff;
    border: 1px solid #efeaf8;
    border-radius: 22px;
    box-shadow: 0 16px 40px rgba(48, 24, 110, 0.1);
  }

  .m-offer::before {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    top: 0;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #ff8a1f, #ffd36a);
  }

  .m-offer-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
  }

  .m-offer-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 8px 0 0;
    padding: 5px 10px;
    border-radius: 999px;
    background: #efe9ff;
    color: #5b3def;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .m-offer-badge svg {
    width: 14px;
    height: 14px;
  }

  .m-offer-price {
    text-align: right;
  }

  .m-offer-zero {
    margin: 0;
    font-family: "Poppins", var(--font-num), sans-serif;
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #111827;
    line-height: 1;
  }

  .m-offer-old {
    margin: 2px 0 8px;
    font-family: "Poppins", var(--font-num), sans-serif;
    color: #9ca3af;
    font-size: 13px;
  }

  .m-offer-old s {
    color: #9ca3af;
  }

  .m-offer-soon {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #fff1e6;
    color: #c2410c;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
  }

  .m-offer-soon svg {
    width: 12px;
    height: 12px;
  }

  .m-offer h2 {
    margin: 0 0 14px;
    font-size: 22px;
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.03em;
  }

  .m-offer-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0 0 20px;
  }

  .m-offer-list li {
    font-weight: 500;
    color: #374151;
  }

  .m-offer-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    border-radius: 14px;
    background: #964BE1;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 22px rgba(150, 75, 225, 0.28);
  }

  .m-offer-cta:hover {
    background: #7C3BC8;
  }

  .m-offer-login {
    margin: 14px 0 0;
    text-align: center;
    color: #6b7280;
    font-size: 13.5px;
    font-weight: 500;
  }

  .m-offer-login a {
    color: #552ecd;
    font-weight: 700;
    text-decoration: none;
  }

  .m-offer-login a:hover {
    text-decoration: underline;
  }

  /* Mobile login / OTP */
  body.m-open.auth-body .app {
    width: 100%;
    max-width: none;
    min-height: 100vh;
    /* svh stays fixed while the keyboard / URL bar animates, dvh does not */
    min-height: 100svh;
    padding: 0;
    background: transparent;
    align-items: stretch;
    justify-content: flex-start;
  }

  body.m-open.auth-body .auth-card {
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    flex: 1;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background:
      radial-gradient(circle at 92% 4%, rgba(196, 181, 253, 0.42), transparent 28%),
      radial-gradient(circle at 0% 96%, rgba(255, 168, 130, 0.22), transparent 34%),
      #fff;
    padding: 22px 22px 32px;
  }

  body.m-open.auth-body .auth-header {
    display: block;
    padding: 0;
  }

  body.m-open.auth-body .auth-header-top {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  body.m-open.auth-body .back-btn {
    display: grid;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f4f0fc;
    position: relative;
    z-index: 2;
  }

  body.m-open.auth-body .back-btn:hover,
  body.m-open.auth-body .back-btn:focus-visible {
    background: #ece4fb;
  }

  body.m-open.auth-body .auth-icon,
  body.m-open.auth-body .auth-block h1,
  body.m-open.auth-body .auth-block h2,
  body.m-open.auth-body .auth-block > .auth-sub:not(#otp-hint),
  body.m-open.auth-body .auth-switch,
  body.m-open.auth-body .auth-foot {
    display: none !important;
  }

  body.m-open .m-auth-orb {
    display: block;
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(28px);
  }

  body.m-open .m-auth-orb.is-a {
    width: 170px;
    height: 170px;
    top: -56px;
    right: -48px;
    background: rgba(196, 181, 253, 0.48);
  }

  body.m-open .m-auth-orb.is-b {
    width: 200px;
    height: 200px;
    left: -80px;
    bottom: -36px;
    background: rgba(255, 168, 130, 0.26);
  }

  body.m-open .m-auth-brand {
    display: block;
    text-align: left;
  }

  body.m-open .m-auth-tagline {
    display: block;
    margin: 0px 0 0 38px;
    color: #9aa0ad;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    display: none !important
  }

  body.m-open .m-auth-hero {
    display: block;
    margin: 40px 0 0;
    text-align: left;
  }

  body.m-open .m-auth-hero p {
    margin: 0;
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 1.12;
    color: #111827;
  }

  body.m-open .m-auth-hero span {
    color: #6d4dff;
  }

  body.m-open.auth-body .auth-block {
    padding-top: 48px;
    text-align: left;
  }

  body.m-open .m-auth-title {
    display: block;
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    text-align: left;
  }

  body.m-open .m-auth-lead {
    display: block;
    margin: 0 0 20px;
    color: #9aa0ad;
    font-size: 14px;
    text-align: left;
  }

  body.m-open .m-flag {
    display: inline-flex !important;
    width: 22px;
    height: 15px;
    border-radius: 3px;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
  }

  body.m-open .m-flag svg {
    width: 22px;
    height: 15px;
  }

  body.m-open.auth-body .phone-field {
    border-radius: 16px;
    padding: 6px 16px;
    margin-bottom: 16px;
    min-height: 54px;
    overflow: hidden;
    background: #fff;
  }

  /* iOS zooms the whole page when a focused input is under 16px */
  body.m-open.auth-body .phone-field input {
    font-family: "Poppins", var(--font-num), sans-serif;
    font-size: 16px;
    background: transparent;
  }

  body.m-open.auth-body .phone-field input:-webkit-autofill,
  body.m-open.auth-body .phone-field input:-webkit-autofill:hover,
  body.m-open.auth-body .phone-field input:-webkit-autofill:focus,
  body.m-open.auth-body .phone-field input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
    box-shadow: 0 0 0 1000px #fff inset !important;
    -webkit-text-fill-color: #111827 !important;
    background-color: #fff !important;
  }

  body.m-open.auth-body .btn-auth {
    width: 100%;
    min-height: 54px;
    border-radius: 16px;
    background: #964BE1;
    box-shadow: 0 10px 22px rgba(150, 75, 225, 0.28);
  }

  body.m-open.auth-body .btn-auth:hover,
  body.m-open.auth-body .btn-auth:active {
    background: #7C3BC8;
  }

  body.m-open.auth-body .otp-block {
    display: flex;
    flex-direction: column;
  }

  body.m-open.auth-body .otp-block .m-auth-title {
    margin-bottom: 6px;
  }

  body.m-open.auth-body #otp-hint {
    display: block;
    margin: 0 0 6px;
    color: #9aa0ad;
    font-size: 14px;
  }

  body.m-open.auth-body .otp-actions {
    display: contents;
  }

  body.m-open.auth-body #change-number {
    display: inline-block;
    order: 2;
    margin: 0 0 18px;
    color: #964BE1;
    font-weight: 600;
    text-transform: capitalize;
  }

  body.m-open.auth-body .otp-row {
    order: 3;
    margin: 0 0 18px;
  }

  body.m-open.auth-body .otp-box {
    max-width: 64px;
    height: 64px;
    border-radius: 12px;
    font-family: "Poppins", var(--font-num), sans-serif;
    font-size: 22px;
  }

  body.m-open .m-otp-extra {
    display: block;
    order: 4;
    margin: 0 0 8px;
    color: #535862;
    font-size: 14px;
  }

  body.m-open .m-otp-extra button {
    border: 0;
    background: none;
    color: #964BE1;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    padding: 0;
  }

  body.m-open .m-otp-extra button:disabled {
    opacity: 0.45;
    cursor: default;
  }

  body.m-open.auth-body #resend-text {
    display: block;
    order: 5;
    margin: 0 0 22px;
    color: #535862;
    font-size: 14px;
  }

  body.m-open.auth-body #resend-text[hidden] {
    display: none !important;
  }

  body.m-open.auth-body #resend-text span,
  body.m-open.auth-body #resend-text button {
    color: #964BE1;
    font-weight: 700;
  }

  body.m-open.auth-body #verify-otp {
    order: 6;
    background: #964BE1;
  }

  body.m-open.auth-body #verify-otp:hover,
  body.m-open.auth-body #verify-otp:active {
    background: #7C3BC8;
  }

  body.m-open.auth-body #otp-error {
    order: 7;
  }

  body.m-open.m-active-body {
    overflow-x: hidden;
    overflow-y: auto;
    height: auto;
    min-height: 100dvh;
    background: #fbfbfb;
  }

  body.m-open .m-active {
    position: relative;
    overflow: hidden;
    min-height: 100dvh;
    height: auto;
    max-width: 430px;
    margin: 0 auto;
    padding: 22px 22px 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    background:
      radial-gradient(circle at 92% 4%, rgba(221, 214, 254, 0.42), transparent 28%),
      radial-gradient(circle at 6% 88%, rgba(196, 181, 253, 0.4), transparent 34%),
      radial-gradient(circle at 94% 92%, rgba(251, 207, 210, 0.38), transparent 30%),
      #fbfbfb;
  }

  .m-active-orb,
  .m-active-star {
    position: absolute;
    pointer-events: none;
  }

  .m-active-orb {
    border-radius: 50%;
    filter: blur(28px);
  }

  .m-active-orb.is-a {
    width: 168px;
    height: 168px;
    top: -48px;
    right: -52px;
    background: rgba(221, 214, 254, 0.7);
  }

  .m-active-orb.is-b {
    width: 220px;
    height: 220px;
    left: -80px;
    bottom: -20px;
    background: rgba(196, 181, 253, 0.55);
  }

  .m-active-orb.is-c {
    width: 190px;
    height: 190px;
    right: -60px;
    bottom: -28px;
    background: rgba(251, 207, 210, 0.55);
  }

  .m-active-star {
    width: 10px;
    height: 10px;
    background: #c4b5fd;
    clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  }

  .m-active-star.s1 { top: 17%; left: 11%; }
  .m-active-star.s2 { top: 13%; right: 14%; width: 8px; height: 8px; }
  .m-active-star.s3 { top: 26%; right: 9%; width: 12px; height: 12px; }
  .m-active-star.s4 { top: 28%; left: 9%; width: 7px; height: 7px; }
  .m-active-star.s5 { bottom: 22%; left: 8%; width: 9px; height: 9px; }
  .m-active-star.s6 { bottom: 18%; right: 10%; width: 8px; height: 8px; }

  .m-active-brand {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
  }

  .m-active-brand .brand {
    justify-content: center;
  }

  .m-active-brand .brand-mark {
    width: 30px;
    height: 30px;
  }

  .m-active-brand .brand-name {
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #111827;
  }

  .m-active-main {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    width: 100%;
    padding: 22px 4px 0;
  }

  .m-active-check {
    position: relative;
    width: 88px;
    height: 88px;
    margin: 0 auto 18px;
  }

  .m-active-glow {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.28) 0%, rgba(139, 92, 246, 0.08) 58%, transparent 72%);
  }

  .m-active-badge {
    position: absolute;
    inset: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(180deg, #8b6dff 0%, #6d4dff 100%);
    box-shadow:
      0 0 0 10px rgba(139, 92, 246, 0.12),
      0 12px 24px rgba(109, 77, 255, 0.28);
  }

  .m-active-badge svg {
    width: 24px;
    height: 24px;
  }

  .m-active-sparkle {
    position: absolute;
    width: 9px;
    height: 9px;
    background: #a78bfa;
    clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  }

  .m-active-sparkle.is-1 { top: 2px; right: 4px; }
  .m-active-sparkle.is-2 { bottom: 8px; left: 2px; width: 7px; height: 7px; }
  .m-active-sparkle.is-3 { top: 16px; left: -4px; width: 6px; height: 6px; }

  .m-active-main h1,
  .m-active-main h2 {
    margin: 0;
    width: 100%;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.28;
    color: #111827;
  }

  .m-active-main h2 {
    margin-top: 4px;
  }

  .m-active-main p {
    margin: 12px auto 0;
    max-width: 320px;
    color: #535862;
    font-size: 14px;
    line-height: 1.55;
  }

  .m-active-main strong {
    color: #5b4cff;
    font-weight: 800;
  }

  .m-active-laptop {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    align-self: stretch;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: calc(100% + 16px);
    margin: 40px -8px 0;
  }

  .m-active-laptop img {
    display: block;
    width: 100%;
    max-height: 100%;
    height: auto;
    object-fit: contain;
    object-position: bottom center;
  }

  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}

/* Mobile auth OTP toast only — keep clear of resend timer (do not change desktop block below) */
@media (max-width: 1023px) {
  body.auth-body #toast,
  body.m-open.auth-body #toast {
    position: fixed !important;
    top: max(20px, env(safe-area-inset-top, 0px)) !important;
    bottom: auto !important;
    left: 6px !important;
    right: 0 !important;
    margin: 0 auto !important;
    transform: none !important;
    width: max-content !important;
    max-width: min(360px, calc(100vw - 32px)) !important;
    z-index: 10000 !important;
    padding: 12px 18px !important;
    text-align: center !important;
    box-shadow: 0 12px 28px rgba(85, 46, 205, 0.28) !important;
    pointer-events: none !important;
  }
}

@media (min-width: 1024px) {
  body.auth-body #toast {
    position: fixed !important;
    top: 28px !important;
    bottom: auto !important;
    left: auto !important;
    right: 150px !important;
    margin: 0 !important;
    transform: none !important;
    width: max-content;
    max-width: min(360px, calc(50vw - 56px));
    z-index: 10000;
    padding: 12px 20px;
    text-align: center;
    box-shadow: 0 12px 28px rgba(85, 46, 205, 0.28);
    pointer-events: none;
  }
}
