:root {
  --brand: #0f53bd;
  --brand-soft: #e8f0ff;
  --accent: #ff7b5f;
  --white: #ffffff;
  --ink: #1a1a1a;
  --muted: #595959;
  --page-bg: #f5f8ff;
  --border: #dbe6ff;
  --shadow: 0 10px 30px rgba(15, 83, 189, 0.12);
  --ui-font: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  --ui-card-bg: linear-gradient(180deg, #f7fbff 0%, #eef5ff 100%);
  --ui-card-soft-bg: rgba(255, 255, 255, 0.8);
  --ui-card-border: #cfe0ff;
  --ui-card-shadow: 0 10px 24px rgba(31, 78, 176, 0.08);
  --ui-card-title: #203250;
  --ui-card-muted: #5a6f94;
  --ui-card-kicker: #1f4eb0;
  --catalog-card-thumb-size: 168px;
  --catalog-card-thumb-size-md: 154px;
  --catalog-card-thumb-size-sm: 118px;
  --catalog-card-content-size: 300px;
  --catalog-card-width: calc(var(--catalog-card-thumb-size) + var(--catalog-card-content-size));
  --catalog-card-width-md: calc(var(--catalog-card-thumb-size-md) + var(--catalog-card-content-size));
  --catalog-card-width-sm: calc(var(--catalog-card-thumb-size-sm) + var(--catalog-card-content-size));
  --catalog-card-body-pad-y: 0.58rem;
  --catalog-card-body-pad-x: 0.62rem;
  --list-visible-items: 10;
  --list-option-row-size: 2.35rem;
  --admin-table-head-size: 2.9rem;
  --admin-table-row-size: 2.8rem;
  --product-table-head-size: 2.35rem;
  --product-table-row-size: 3.1rem;
  --mock-table-head-size: 3rem;
  --mock-table-row-size: 3.45rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, var(--white) 0%, var(--page-bg) 100%);
  font-family: var(--ui-font);
  line-height: 1.55;
}

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

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 5vw 0.55rem 4vw;
  background: transparent;
  backdrop-filter: none;
  border-bottom: 0;
}

.home-page .site-header {
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.home-page .site-header.scrolled {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: none;
  box-shadow: 0 6px 20px rgba(15, 83, 189, 0.08);
}

.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;
}

body:not(.admin-login-page) .brand {
  display: block;
  position: relative;
  width: 243.2px;
  height: 73.6px;
  text-decoration: none;
  font-weight: 700;
}

.brand:focus,
.brand:focus-visible,
.brand:active {
  outline: none !important;
  box-shadow: none !important;
}

body:not(.admin-login-page) .brand-logo {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  height: auto;
  object-fit: contain;
  border: 0;
  outline: 0;
  box-shadow: none;
  background: transparent;
  transition: opacity 0.2s ease;
}

body:not(.admin-login-page) .logo-a {
  width: 60.8px;
  opacity: 0;
}

body:not(.admin-login-page) .logo-b {
  width: 243.2px;
  opacity: 1;
}

body:not(.admin-login-page) .logo-b1 {
  width: 243.2px;
  opacity: 0;
}

body:not(.admin-login-page) .site-header.scrolled .logo-a {
  opacity: 1;
}

body:not(.admin-login-page) .site-header.scrolled .logo-b {
  opacity: 0;
}

.nav-links {
  display: flex;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  font-weight: 600;
}

.header-right {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: flex-end;
  gap: 0.8rem;
}

.home-header-tools {
  margin-right: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding-left: 0.35rem;
}

.home-course-select,
.home-search-input {
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}

.home-course-select {
  min-width: 200px;
  padding: 0 0.72rem;
}

.home-search-form {
  margin: 0;
}

.home-search-input {
  width: min(320px, 30vw);
  padding: 0 2.1rem 0 0.82rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23595959' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  background-size: 16px 16px;
}

.refer-earn-btn {
  white-space: nowrap;
  padding: 0.52rem 0.9rem;
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.mobile-search-btn {
  display: none;
  width: 38px;
  height: 38px;
  border: 1px solid var(--brand);
  border-radius: 10px;
  background: var(--white);
  color: var(--brand);
  font-size: 0;
  line-height: 1;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230f53bd' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px 16px;
}

.mobile-toggle-top,
.mobile-toggle-courses,
.mobile-search-panel {
  display: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  line-height: 1.2;
}

.nav-links a:hover {
  color: var(--brand);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--white);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
}

.section {
  width: min(1120px, 92%);
  margin: 0 auto;
  padding: 4rem 0;
}

.hero {
  min-height: calc(90vh - 70px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 46%);
  gap: 1.4rem;
  align-items: center;
}

.hero-content {
  max-width: 780px;
}

.hero-media {
  display: flex;
  justify-content: flex-end;
}

.home-page .hero-media img {
  width: min(396.8px, 100%);
  height: auto;
  object-fit: contain;
}

.hero-scroll {
  grid-column: 1 / -1;
  margin-top: 0.8rem;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.hero-scroll-track {
  display: flex;
  width: 400%;
  animation: hero-slide-left 16s ease-in-out infinite;
}

.hero-scroll-item {
  display: block;
  flex: 0 0 25%;
  height: 220px;
  overflow: hidden;
  border-right: 0;
  background: transparent;
}

.hero-scroll-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

@keyframes hero-slide-left {
  0%,
  20% {
    transform: translateX(0);
  }
  24%,
  45% {
    transform: translateX(-25%);
  }
  49%,
  70% {
    transform: translateX(-50%);
  }
  74%,
  100% {
    transform: translateX(-75%);
  }
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.8rem;
  color: var(--brand);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 6vw, 4.1rem);
  line-height: 1.08;
}

.hero-subtitle {
  margin: 0 0 1.8rem;
  max-width: 62ch;
  color: var(--muted);
  font-size: clamp(1rem, 2.4vw, 1.2rem);
}

.hero h1 {
  font-size: clamp(1.8rem, 5vw, 3.5rem);
}

.hero-highlight {
  color: var(--brand);
}

.hero-line {
  display: block;
}

.hero-line-two {
  white-space: nowrap;
}

.btn-primary {
  display: inline-block;
  border: 0;
  border-radius: 12px;
  background: var(--brand);
  color: var(--white);
  padding: 0.82rem 1.3rem;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}

.btn-primary:disabled,
.btn-secondary:disabled,
.btn-sky:disabled,
.btn-ghost:disabled {
  background: #dce8ff;
  border-color: #dce8ff;
  color: #7a94c4;
  cursor: not-allowed;
  transform: none;
  opacity: 1;
}

.btn-secondary {
  border: 1px solid var(--brand);
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  padding: 0.78rem 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  background: #dce8ff;
}

.btn-sky {
  border: 1px solid #7fc8ff;
  border-radius: 12px;
  background: #54b6ff;
  color: #fff;
  padding: 0.78rem 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn-sky:hover {
  transform: translateY(-2px);
  background: #3fa8fb;
}

.top-login-btn {
  padding: 0.5rem 0.95rem;
}

.hero-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.hero-mobile-cta {
  gap: 0;
  align-items: stretch;
  border: 2px solid #c7d9ff;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  width: min(560px, 100%);
  box-shadow: 0 4px 14px rgba(15, 83, 189, 0.08);
}

.mobile-prefix {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  padding: 0.75rem 0.55rem;
  border-right: 1px solid var(--border);
  font-weight: 700;
}

#enrollMobileInput {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 0.9rem;
  font: inherit;
}

.hero-mobile-cta #enrollNowBtn {
  border-radius: 0;
  margin: 0;
  white-space: nowrap;
  min-width: 152px;
  padding: 0 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: none;
}

#enrollMobileMessage {
  margin-top: 0.45rem;
}

#studentMobile[readonly] {
  background: #f5f8ff;
  color: #4f658f;
}

.hidden {
  display: none !important;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.42);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 1200;
}

.modal-overlay.open {
  display: flex;
}

.modal-card {
  width: min(520px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: var(--white);
  border-radius: 16px;
  padding: 1.2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  position: relative;
}

body:not(.admin-login-page) .auth-modal-logo {
  width: 136px;
  height: auto;
  object-fit: contain;
  margin: 0.15rem auto 0.7rem;
}

.modal-card h2 {
  margin: 0 0 0.9rem;
  text-align: left;
}

.modal-close {
  position: absolute;
  top: 0.55rem;
  right: 0.75rem;
  border: 0;
  background: transparent;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--muted);
}

.auth-switch {
  display: flex;
  gap: 0.6rem;
  margin: 0.85rem 0 0.95rem;
}

.switch-btn {
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 12px;
  padding: 0.42rem 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.switch-btn.active {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--white);
}

.auth-form {
  display: grid;
  gap: 0.7rem;
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field label {
  font-weight: 600;
}

.field-hint {
  min-height: 1rem;
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.field-hint.success {
  color: #2b8a3e;
}

.field-hint.error {
  color: #e03131;
}

.field-inline-check {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

.field-inline-check input {
  width: 16px;
  height: 16px;
}

.field input,
.field select {
  border: 1px solid #dbdbdb;
  border-radius: 10px;
  padding: 0.62rem 0.72rem;
  font: inherit;
}

.password-input-wrap {
  position: relative;
}

.password-input-wrap input {
  width: 100%;
  padding-right: 2.4rem;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 0.55rem;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.forgot-password-link {
  justify-self: end;
  border: 0;
  background: transparent;
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0;
  margin-top: 0.08rem;
  cursor: pointer;
}

.field.error input,
.field.error select {
  border-color: #e03131;
  background: #fff5f5;
}

.error-text {
  color: #e03131;
  min-height: 1em;
  font-size: 0.82rem;
}

.form-message {
  margin: 0.1rem 0;
  min-height: 1.1em;
  font-weight: 600;
  font-size: 0.9rem;
}

.form-message.error {
  color: #e03131;
}

.form-message.success {
  color: #2b8a3e;
}

.admin-toast {
  position: fixed;
  right: 1rem;
  top: 1rem;
  z-index: 200;
  width: min(420px, calc(100vw - 2rem));
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.16);
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.admin-toast.open {
  opacity: 1;
  transform: translateY(0);
}

.admin-toast.success {
  background: #ebfbee;
  border-color: #b2f2bb;
  color: #1b5e20;
}

.admin-toast.error {
  background: #fff5f5;
  border-color: #ffc9c9;
  color: #c92a2a;
}

.auth-submit {
  margin-top: 0.2rem;
  justify-self: start;
  width: auto;
  min-width: 122px;
  padding: 0.48rem 0.88rem;
  font-size: 0.9rem;
}

.section-heading {
  margin-bottom: 1.5rem;
}

.section-heading h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.6rem, 3.7vw, 2.4rem);
}

.section-heading p {
  margin: 0;
  color: var(--muted);
}

.home-latest-products {
  padding-top: 0.25rem;
}

.home-latest-head {
  margin-bottom: 0.85rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.7rem;
}

.home-latest-head h2 {
  margin: 0;
  font-size: clamp(1.45rem, 3.2vw, 2rem);
}

.home-latest-view-all {
  color: var(--brand);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
}

.home-latest-view-all:hover {
  text-decoration: underline;
}

.home-latest-grid {
  display: grid;
  grid-template-columns: repeat(
    auto-fill,
    minmax(min(100%, var(--catalog-card-width)), var(--catalog-card-width))
  );
  justify-content: start;
  gap: 0.85rem;
}

.home-latest-card {
  display: grid;
  grid-template-columns: var(--catalog-card-thumb-size) minmax(0, 1fr);
  width: min(100%, var(--catalog-card-width));
  min-height: var(--catalog-card-thumb-size);
  justify-self: start;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}

.dash-card,
.home-latest-card,
.home-latest-empty,
.products-filters,
.products-quick-links,
.product-card,
.product-description-section,
.product-salient-features,
.product-highlights,
.product-exams-covered,
.product-pstet-tabs,
.lesson-summary-card,
.lesson-row,
.lesson-transcript-card,
.preview-live-transcript-card,
.mock-filters-card,
.admin-panel,
.overview-card,
.profile-card,
.modal-card,
.empty-products {
  border-color: var(--ui-card-border) !important;
  background: var(--ui-card-bg) !important;
  box-shadow: var(--ui-card-shadow);
}

.home-latest-thumb,
.product-thumb,
.dash-product-card .home-latest-thumb,
.admin-thumb-preview,
.admin-product-thumb,
.mock-chance-summary,
.mock-chance-item,
.product-contact-card,
.product-exam-item,
.transcript-segment,
.preview-stretch-card,
.admin-inline-checklist,
.field input,
.field select,
.field textarea,
.price-range input,
.filter-search,
.lesson-course-select,
.preview-sync-offset-manual,
.preview-line-sync-ms,
.admin-inline-edit-input,
.admin-inline-edit-textarea {
  border-color: var(--ui-card-border) !important;
  background: var(--ui-card-soft-bg) !important;
}

.product-description-section p,
.product-highlights-list li,
.product-salient-item,
.product-exam-item,
.lesson-summary-v,
.lesson-row h3,
.lesson-progress-info,
.products-heading-row h1,
.mock-page-header h1,
.lesson-overview-head h1,
.section-heading h2,
.home-latest-body h3,
.product-card h3,
.overview-v,
.profile-top h1 {
  color: var(--ui-card-title);
}

.product-salient-features h4 span,
.product-highlights h4 span,
.product-exams-covered h4 span,
.mock-card-kicker,
.lesson-summary-k,
.overview-k,
.home-latest-view-all,
.products-mock-back-btn,
.product-tags span,
.home-latest-tags span {
  color: var(--ui-card-kicker);
}

.product-description,
.product-meta,
.mock-subtitle,
.lesson-row-meta,
.products-heading-row p,
.section-heading p,
.overview-card p,
.product-contact-card p,
.product-exam-item p,
.lesson-summary-k,
.mock-chance-note,
.mock-chance-item-label,
.mock-chance-summary-label {
  color: var(--ui-card-muted);
}

.home-latest-thumb {
  width: 100%;
  height: 100%;
  min-height: var(--catalog-card-thumb-size);
  aspect-ratio: 1 / 1;
  object-fit: contain;
  object-position: center;
  background: #f4f8ff;
}

.home-latest-body {
  min-width: 0;
  padding: var(--catalog-card-body-pad-y) var(--catalog-card-body-pad-x);
  display: grid;
  gap: 0.3rem;
  align-content: start;
}

.home-latest-tags {
  margin: 0;
  display: flex;
  gap: 0.38rem;
  flex-wrap: wrap;
}

.home-latest-tags span {
  font-size: 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #f5f8ff;
  padding: 0.1rem 0.4rem;
}

.home-latest-body h3 {
  margin: 0.12rem 0 0;
  font-size: 1rem;
  line-height: 1.35;
}

.home-latest-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.home-latest-pricing {
  margin-top: 0.12rem;
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.home-latest-pricing strong {
  font-size: 1.22rem;
  line-height: 1;
}

.home-latest-mrp {
  color: #777;
  text-decoration: line-through;
  font-size: 0.84rem;
}

.home-latest-off {
  color: #2b8a3e;
  font-size: 0.82rem;
  font-weight: 700;
}

.home-latest-actions {
  margin-top: 0.35rem;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 0.34rem;
  align-items: center;
}

.home-latest-actions .btn-secondary,
.home-latest-actions .btn-primary,
.home-latest-actions .btn-sky {
  width: 100%;
  min-width: 0;
  padding: 0.38rem 0.3rem;
  border-radius: 9px;
  font-size: 0.76rem;
  line-height: 1.1;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
}

.home-latest-empty {
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 0.95rem;
  color: var(--muted);
  background: #fff;
}

.home-latest-message {
  margin-top: 0.55rem;
}

.catalog-window {
  position: relative;
}

.home-latest-grid.catalog-window-host,
.dash-products-grid.catalog-window-host,
.mock-products-grid.catalog-window-host {
  display: block !important;
}

.catalog-window-nav {
  margin-bottom: 0.45rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 0.45rem;
}

.catalog-window-nav .catalog-nav-btn:first-child {
  justify-self: start;
}

.catalog-window-nav .catalog-nav-btn:last-child {
  justify-self: end;
}

.catalog-window-nav.is-mobile {
  display: flex;
  position: absolute;
  top: 50%;
  right: -0.35rem;
  transform: translateY(-50%);
  flex-direction: column;
  margin: 0;
  z-index: 3;
}

.catalog-nav-btn {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--brand);
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.catalog-nav-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.catalog-window-grid {
  display: grid;
  gap: 0.85rem;
  padding-top: 2rem;
}

.catalog-window-grid.is-desktop {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.catalog-window-grid.is-mobile {
  grid-template-columns: 1fr;
  padding-right: 2.4rem;
}

.catalog-window-item {
  position: relative;
  min-width: 0;
}

.catalog-window-item .home-latest-card {
  width: 100%;
  min-width: 0;
}

.dash-products-grid.catalog-window-host .home-latest-card,
.mock-products-grid.catalog-window-host .home-latest-card {
  grid-template-columns: minmax(142px, 46%) minmax(0, 1fr);
  min-height: 196px;
}

.dash-products-grid.catalog-window-host .home-latest-thumb,
.mock-products-grid.catalog-window-host .home-latest-thumb {
  align-self: start;
  height: auto;
  min-height: 0;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  background: #eef4ff;
}

.dash-products-grid.catalog-window-host .home-latest-body,
.mock-products-grid.catalog-window-host .home-latest-body {
  padding: 0.5rem 0.56rem 0.56rem;
}

@media (min-width: 681px) {
  .dash-products-grid.catalog-window-host .home-latest-card,
.mock-products-grid.catalog-window-host .home-latest-card {
    height: 196px;
  }

  .dash-products-grid.catalog-window-host .home-latest-thumb,
.mock-products-grid.catalog-window-host .home-latest-thumb {
    align-self: stretch;
    height: 100%;
    min-height: 196px;
  }

  .dash-products-grid.catalog-window-host .home-latest-body,
.mock-products-grid.catalog-window-host .home-latest-body {
    gap: 0.24rem;
    padding: 0.44rem 0.5rem 0.48rem;
    align-content: start;
  }

  .dash-products-grid.catalog-window-host .home-latest-body h3,
.mock-products-grid.catalog-window-host .home-latest-body h3 {
    font-size: 0.96rem;
    line-height: 1.22;
  }

  .dash-products-grid.catalog-window-host .home-latest-meta,
.mock-products-grid.catalog-window-host .home-latest-meta {
    font-size: 0.8rem;
  }

  .dash-products-grid.catalog-window-host .home-latest-pricing strong,
.mock-products-grid.catalog-window-host .home-latest-pricing strong {
    font-size: 1.06rem;
  }

  .dash-products-grid.catalog-window-host .home-latest-mrp,
  .dash-products-grid.catalog-window-host .home-latest-off {
    font-size: 0.8rem;
  }
}

.catalog-all-products-btn {
  position: absolute;
  top: -1.95rem;
  right: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  padding: 0.32rem 0.62rem;
  white-space: nowrap;
}

.catalog-all-products-btn:hover {
  background: #eef4ff;
}

.features-grid,
.testimonials-grid {
  display: grid;
  gap: 1rem;
}

.features-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.testimonials-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: #fbfdff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.1rem;
  box-shadow: var(--shadow);
}

.feature-card h3,
.testimonial-card h3 {
  margin: 0 0 0.5rem;
}

.feature-card p,
.testimonial-card p {
  margin: 0;
  color: var(--muted);
}

.testimonial-card span {
  display: inline-block;
  margin-top: 0.75rem;
  color: #1d5fca;
  font-weight: 600;
  font-size: 0.92rem;
}

.contact-form {
  max-width: 680px;
  display: grid;
  gap: 0.8rem;
}

.contact-form label {
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #dfdfdf;
  border-radius: 10px;
  padding: 0.72rem 0.8rem;
  font: inherit;
  color: var(--ink);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(15, 83, 189, 0.25);
  border-color: var(--brand);
}

.site-footer {
  margin-top: 2rem;
  padding: 1.4rem 5vw 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
}

.home-announcement {
  overflow: hidden;
  margin: 0 5vw 0.6rem;
  padding: 0.15rem 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: var(--brand);
  box-shadow: none;
}

.home-announcement-track {
  display: inline-flex;
  min-width: 200%;
  align-items: center;
  gap: 1rem;
  padding: 0;
  white-space: nowrap;
  animation: homeAnnouncementScroll 18s linear infinite;
}

.home-announcement a {
  color: var(--brand);
  font-weight: 700;
  text-decoration: none;
}

.home-announcement a:hover {
  text-decoration: underline;
}

.home-announcement-sep {
  opacity: 0.5;
}

.syllabus-main {
  padding-bottom: 2rem;
}

.syllabus-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 1.4rem;
  align-items: stretch;
}

.syllabus-hero-copy,
.syllabus-summary-card,
.syllabus-overview-card,
.syllabus-side-rail,
.syllabus-subject-card,
.syllabus-table-card,
.syllabus-note-card {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(235, 243, 255, 0.92));
  box-shadow: var(--shadow);
}

.syllabus-hero-copy {
  padding: 1.7rem 1.8rem;
  border-radius: 28px;
}

.syllabus-hero-copy h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 1.08;
}

.syllabus-hero-text {
  margin: 0;
  max-width: 58ch;
  color: var(--muted);
}

.syllabus-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.syllabus-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.syllabus-summary-card,
.syllabus-overview-card,
.syllabus-note-card {
  border-radius: 22px;
  padding: 1.15rem 1.2rem;
}

.syllabus-summary-card strong {
  display: block;
  margin-top: 0.2rem;
  font-size: 1.16rem;
  color: var(--brand);
}

.syllabus-summary-card p,
.syllabus-overview-card p,
.syllabus-note-card p {
  margin: 0.45rem 0 0;
  color: var(--muted);
}

.syllabus-summary-label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.syllabus-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 1.2rem;
}

.syllabus-side-rail {
  position: sticky;
  top: 108px;
  align-self: start;
  display: grid;
  gap: 0.65rem;
  padding: 1.2rem;
  border-radius: 22px;
}

.syllabus-side-rail h2 {
  margin: 0 0 0.2rem;
  font-size: 1.05rem;
}

.syllabus-side-rail a {
  text-decoration: none;
  font-weight: 600;
  color: var(--ui-card-title);
}

.syllabus-side-rail a:hover {
  color: var(--brand);
}

.syllabus-overview-grid,
.syllabus-notes-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.syllabus-subject-stack {
  display: grid;
  gap: 1rem;
}

.syllabus-subject-card {
  border-radius: 24px;
  padding: 1.25rem 1.35rem;
}

.syllabus-subject-card h3 {
  margin: 0 0 0.7rem;
  color: var(--ui-card-title);
}

.syllabus-subject-card h4 {
  margin: 0 0 0.55rem;
  color: var(--brand);
}

.syllabus-subject-card ul,
.syllabus-overview-card ul {
  margin: 0;
  padding-left: 1.1rem;
}

.syllabus-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.syllabus-table-card {
  border-radius: 24px;
  padding: 0.4rem;
  overflow: hidden;
}

.syllabus-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 18px;
}

.syllabus-table th,
.syllabus-table td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid #dce6fa;
  text-align: left;
}

.syllabus-table th {
  background: #eaf2ff;
  color: var(--ui-card-title);
}

.syllabus-table tbody tr:last-child td {
  border-bottom: 0;
}

@keyframes homeAnnouncementScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
}

.social-links a:hover {
  color: var(--brand);
}

@media (min-width: 681px) {
  .site-header {
    padding-left: 6.8vw;
  }

  body:not(.admin-login-page) .logo-a {
    left: calc(16px - 6.8vw);
    width: 49.6px;
  }

  .home-page .nav-links {
    position: fixed;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 14;
  }

  .nav-links {
    position: fixed;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    flex-direction: column;
    gap: 0.55rem;
    z-index: 12;
  }

  .nav-links a {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #fff;
    box-shadow: var(--shadow);
    color: transparent;
    font-size: 0;
    text-decoration: none;
    position: relative;
  }

  .nav-links a::before {
    font-size: 16px;
    color: var(--brand);
    line-height: 1;
  }

  .nav-links a:nth-child(1)::before {
    content: "\2605";
  }

  .nav-links a:nth-child(2)::before {
    content: "\01F4AC";
  }

  .nav-links a:nth-child(3)::before {
    content: "\2709";
  }

  .nav-links a:nth-child(4)::before {
    content: "\2302";
  }

  .nav-links a:nth-child(5)::before {
    content: "\25A4";
  }

  .nav-links a:nth-child(6)::before {
    content: "\20B9";
  }

  .site-header .nav-links a.nav-link-lessons::before {
    content: "\1F4D6";
  }

  .site-header .nav-links a.nav-link-subscriptions::before {
    content: "\1F4DA";
  }

  .site-header .nav-links a.nav-link-mock-tests::before {
    content: "\270D";
  }

  .site-header .nav-links a.nav-link-history::before {
    content: "\1F552";
  }

  .site-header .nav-links a.nav-link-refer::before {
    content: "\1F381";
  }

  .site-header .nav-links a.nav-link-logout::before {
    content: "\21AA";
  }

  .site-header .nav-links a.nav-link-dashboard::before,
  .site-header .nav-links a.nav-link-profile::before,
  .site-header .nav-links a.nav-link-support::before,
  body:not(.is-mock-page) .site-header .nav-links a.nav-link-mock-tests::before,
  body:not(.is-mock-page) .site-header .nav-links a[href="./mock-tests.html"]::before,
  body:not(.is-mock-page) .site-header .nav-links a[href="./mock-tests"]::before {
    content: "" !important;
    display: inline-block;
    width: 18px;
    height: 18px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
  }

  .site-header .nav-links a.nav-link-dashboard::before {
    background-image: url("/public/home_icon.png");
  }

  .site-header .nav-links a.nav-link-profile::before {
    background-image: url("/public/profile_icon.jpg");
  }

  .site-header .nav-links a.nav-link-support::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b4fbf' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a4 4 0 0 1-4 4H8l-5 3V7a4 4 0 0 1 4-4h10a4 4 0 0 1 4 4z'/%3E%3Cpath d='M8 9h8'/%3E%3Cpath d='M8 13h5'/%3E%3C/svg%3E");
  }

  body:not(.is-mock-page) .site-header .nav-links a.nav-link-mock-tests::before,
  body:not(.is-mock-page) .site-header .nav-links a[href="./mock-tests.html"]::before,
  body:not(.is-mock-page) .site-header .nav-links a[href="./mock-tests"]::before {
    background-image: url("/public/mock_icon.png");
  }

  .nav-links a.nav-link-subscriptions::before {
    content: "\25A4";
  }

  .site-header .nav-links a.is-active {
    border-color: #8fb3ff;
    background: #eef4ff;
  }

  .nav-links a::after {
    content: attr(data-label);
    position: absolute;
    left: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
    background: var(--brand);
    color: #fff;
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
    padding: 0.32rem 0.48rem;
    border-radius: 6px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
  }

  .nav-links a:hover::after {
    opacity: 1;
  }
}

@media (max-width: 960px) {
  .home-course-select {
    min-width: 168px;
  }

  .home-search-input {
    width: 180px;
  }

  .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .home-page .site-header,
  .home-page .site-header.scrolled {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    transform: none !important;
  }

  .home-page .site-header .header-actions {
    display: inline-flex !important;
  }

  .site-header {
    padding: 0.35rem 4% 0.5rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 50;
    background: transparent;
  }

  body:not(.home-page) .site-header {
    min-height: 64px;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 6px 16px rgba(15, 83, 189, 0.1);
  }

  body:not(.home-page) .site-header + main {
    margin-top: calc(64px + 0.65rem) !important;
  }

  body:not(.admin-login-page) .logo-a {
    width: 30.4px;
    opacity: 0;
  }

  body:not(.admin-login-page) .logo-b {
    width: 121.6px;
    opacity: 1;
    pointer-events: auto;
  }

  body:not(.admin-login-page) .logo-b1 {
    width: 121.6px;
    opacity: 0;
    pointer-events: none;
  }

  body:not(.admin-login-page).home-page .logo-b {
    opacity: 0;
    pointer-events: none;
  }

  body:not(.admin-login-page).home-page .logo-b1 {
    opacity: 1;
    pointer-events: auto;
  }

  body:not(.admin-login-page).home-page .site-header.scrolled .logo-b1 {
    opacity: 0;
    pointer-events: none;
  }

  body:not(.admin-login-page).home-page .site-header.scrolled .logo-a {
    opacity: 1;
  }

  body:not(.admin-login-page).home-page .site-header .logo-a {
    opacity: 0;
  }

  body:not(.admin-login-page) .brand {
    width: 121.6px;
    height: 36.8px;
  }

  .header-right {
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
  }

  .home-header-tools {
    display: none;
  }

  .mobile-search-panel {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 4%;
    right: 4%;
    z-index: 13;
    margin-right: 0;
    padding: 0.55rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .site-header.mobile-search-open .mobile-search-panel {
    display: block;
  }

  .mobile-search-panel .home-search-input {
    width: 100%;
  }

  .site-header.menu-open .mobile-toggle-top {
    display: flex;
  }

  .site-header.menu-open .mobile-toggle-courses {
    display: block;
  }

  .header-actions {
    display: inline-flex;
    gap: 0.5rem;
  }

  .mobile-search-btn {
    display: inline-flex;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .top-login-btn {
    display: none;
    padding: 0.42rem 0.75rem;
    font-size: 0.88rem;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    right: 4%;
    left: auto;
    transform: none;
    width: min(220px, 84vw);
    padding: 0.55rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--white);
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    font-size: 0.95rem;
  }

  .site-header.menu-open .nav-links {
    display: flex;
  }

  .nav-links a {
    padding: 0.55rem 0.35rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    width: 100%;
  }

  .nav-links > a::after {
    content: "\203A";
    color: var(--muted);
    font-weight: 700;
    margin-left: auto;
  }

  .mobile-toggle-top {
    margin: 0.35rem 0.2rem 0.45rem;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    order: -2;
  }

  .mobile-toggle-login {
    padding: 0.44rem 0.85rem;
    border-radius: 10px;
    font-size: 0.9rem;
  }

  .mobile-gift-btn {
    width: 38px;
    height: 38px;
    border: 1px solid var(--brand);
    border-radius: 10px;
    background: #fff;
    color: var(--brand);
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-toggle-courses {
    display: none;
    margin: 0 0.2rem 0.25rem;
    order: -1;
  }

  .mobile-courses-toggle {
    display: none !important;
  }

  .mobile-courses-select-wrap {
    display: block !important;
    margin-top: 0;
  }

  .mobile-toggle-courses .home-course-select {
    width: 100%;
    min-width: 0;
    text-align: left;
  }

  .mobile-search-btn,
  .menu-toggle,
  .mobile-toggle-login,
  .mobile-gift-btn,
  .mobile-courses-toggle {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
  }

  .nav-links a:hover {
    background: #eaf1ff;
  }

  .section {
    width: 92%;
    padding: 3rem 0 3rem 1rem;
  }

  .home-page main#home {
    padding-top: 56px;
  }

  .hero {
    min-height: auto;
    padding-top: 0.25rem;
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .hero.section {
    padding-top: 0.75rem;
  }

  .hero-media {
    order: -1;
    justify-content: center;
  }

  .home-page .hero-media img {
    width: min(204.8px, 92%);
  }

  .hero-scroll {
    order: 2;
    margin-top: 0.45rem;
    margin-bottom: 0.55rem;
  }

  .hero-scroll-track {
    animation-duration: 12s;
  }

  .hero-scroll-item {
    height: 136px;
  }

  .features-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
  }

  .hero-mobile-cta {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 104px;
    align-items: stretch;
    flex-wrap: nowrap;
    width: 100%;
  }

  .mobile-prefix {
    min-width: 44px;
    padding: 0.68rem 0.4rem;
    font-size: 0.95rem;
  }

  .hero-mobile-cta #enrollNowBtn {
    min-width: 0;
    padding: 0 0.35rem;
    font-size: 0.78rem;
    line-height: 1.1;
    white-space: normal;
    text-align: center;
  }

  .hero h1 {
    font-size: clamp(1.55rem, 7.8vw, 2.15rem);
    line-height: 1.16;
  }

  .hero-line-one,
  .hero-line-two {
    white-space: nowrap;
  }

  .hero-subtitle {
    font-size: 0.86rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn-primary {
    transition: none;
  }
}

.products-wrap {
  width: min(1220px, 94%);
  margin: 1rem auto 2.5rem;
}

.products-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.products-layout.products-layout--single {
  grid-template-columns: minmax(0, 1fr);
}

.products-filters {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  padding: 1rem;
  position: sticky;
  top: 78px;
}

.products-filters h2 {
  margin: 0 0 0.8rem;
}

.filter-block {
  padding: 0.65rem 0;
  border-top: 1px solid #edf2ff;
}

.filter-block:first-of-type {
  border-top: 0;
  padding-top: 0.25rem;
}

.filter-block h3 {
  margin: 0 0 0.55rem;
  font-size: 1rem;
}

.filter-options {
  max-height: calc(var(--list-visible-items) * var(--list-option-row-size));
  overflow: auto;
  display: grid;
  gap: 0.42rem;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.filter-option {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  font-size: 0.92rem;
}

.filter-search {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.52rem 0.6rem;
  margin-bottom: 0.5rem;
}

.price-range {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  margin-bottom: 0.5rem;
}

.price-range input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.48rem 0.55rem;
}

.products-content {
  min-width: 0;
}

.products-quick-links {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  padding: 0.72rem 0.82rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.quick-link-btn {
  border: 0;
  background: transparent;
  color: var(--brand);
  font-weight: 700;
  cursor: pointer;
  padding: 0.15rem 0.2rem;
}

.quick-link-btn.active {
  color: var(--ink);
  text-decoration: underline;
}

.products-heading-row {
  margin-top: 0.9rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.7rem;
}

.products-heading-row h1 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.products-heading-row p {
  margin: 0;
  color: var(--muted);
}

.products-heading-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.products-mock-back-btn {
  white-space: nowrap;
}

.admin-inline-action-message {
  margin-top: 0.75rem;
}

.admin-row-action-message {
  margin-top: 0.5rem;
  font-size: 0.86rem;
  line-height: 1.4;
}

.products-grid {
  margin-top: 0.8rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

.products-grid.products-grid-catalog {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.products-grid.products-grid-catalog .home-latest-card {
  width: 100%;
  min-width: 0;
}

.products-grid.products-grid-catalog .home-latest-body h3 {
  font-size: 1rem;
}

.product-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  position: relative;
}

.product-card-stack {
  display: grid;
  gap: 0.52rem;
}

.product-card-wide {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(420px, 1.05fr);
  align-items: stretch;
}

.product-main {
  border-right: 1px solid #e8efff;
}

.product-badge {
  position: absolute;
  left: 0.58rem;
  top: 0.58rem;
  z-index: 1;
  background: var(--brand);
  color: #fff;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.22rem 0.55rem;
}

.product-thumb {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: contain;
  object-position: center;
  background: #f4f8ff;
  display: block;
  margin: 0 auto;
}

.product-body {
  padding: 0.72rem 0.78rem 0.85rem;
}

.product-tags {
  margin: 0;
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.product-tags span {
  font-size: 0.72rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #f5f8ff;
  padding: 0.12rem 0.45rem;
}

.product-card h3 {
  margin: 0.45rem 0 0.35rem;
  font-size: 1.16rem;
  line-height: 1.25;
}

.product-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.product-description {
  margin: 0.45rem 0;
  color: #3b3b3b;
  font-size: 0.9rem;
}

.product-description-section {
  border: 1px solid var(--ui-card-border);
  border-radius: 12px;
  background: #f8fbff;
  padding: 0.62rem 0.68rem;
}

.product-description-section h4 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.product-description-section p {
  margin: 0;
  color: #1f2a44;
  font-size: 0.9rem;
  line-height: 1.6;
}

.admin-inline-edit-input,
.admin-inline-edit-textarea {
  width: 100%;
  border: 1px solid var(--ui-card-border);
  border-radius: 8px;
  background: #fff;
  color: #18315f;
  font: inherit;
  padding: 0.45rem 0.55rem;
}

.admin-inline-edit-textarea {
  resize: vertical;
}

.product-description-section.is-inline-editing,
.product-highlights.is-inline-editing,
.product-exams-covered.is-inline-editing,
.product-pstet-tabs.is-inline-editing {
  background: #f4f8ff;
}

.product-salient-features.is-inline-editing .product-salient-item,
.product-highlights.is-inline-editing .product-highlights-list li {
  align-items: center;
}

.product-salient-features.is-inline-editing .admin-inline-edit-input,
.product-highlights.is-inline-editing .admin-inline-edit-input {
  border: 0;
  background: transparent;
  padding: 0;
  min-height: 28px;
}

.product-exams-covered.is-inline-editing .product-exam-item {
  gap: 0.42rem;
  padding: 0.5rem;
}

.product-pstet-list.is-inline-editing li::before {
  margin-top: 0.8rem;
}

.product-pstet-faqs.is-inline-editing .product-pstet-faq-item {
  background: #fff;
}

.product-salient-features {
  margin-top: 0.55rem;
}

.product-salient-features h4 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
}

.product-salient-features h4 span {
  color: var(--brand);
}

.product-salient-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}

.product-salient-item {
  border: 1px solid var(--ui-card-border);
  border-radius: 10px;
  background: #f5f9ff;
  padding: 0.42rem 0.52rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #1d376b;
}

.product-salient-icon {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.product-salient-icon svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.product-salient-icon {
  background: #e7f0ff;
  color: #2a67d8;
}

.product-contact-card {
  margin-top: 0.48rem;
  border: 1px solid var(--ui-card-border);
  border-radius: 10px;
  background: #f5f9ff;
  padding: 0.45rem 0.55rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.product-contact-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e7f0ff;
  color: #2567dc;
  flex-shrink: 0;
}

.product-contact-icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.product-contact-card p {
  margin: 0;
  font-size: 0.85rem;
  color: #1f2a44;
}

.product-contact-card a {
  color: #1f66da;
  text-decoration: none;
  font-weight: 700;
}

.product-contact-card a:hover {
  text-decoration: underline;
}

.product-highlights {
  border: 1px solid var(--ui-card-border);
  border-radius: 12px;
  background: #f8fbff;
  padding: 0.62rem 0.68rem;
}

.product-highlights h4 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.product-highlights h4 span {
  color: var(--brand);
}

.product-highlights-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem 0.7rem;
}

.product-highlights-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  color: #1f2a44;
  font-size: 0.84rem;
  line-height: 1.45;
}

.product-highlight-check {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e7f0ff;
  color: #2a67d8;
  flex-shrink: 0;
}

.product-highlight-check svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.product-exams-covered {
  border: 1px solid var(--ui-card-border);
  border-radius: 12px;
  background: #f8fbff;
  padding: 0.62rem 0.68rem;
}

.product-exams-covered h4 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.product-exams-covered h4 span {
  color: var(--brand);
}

.product-exams-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.product-exam-item {
  border: 1px solid #d9e6ff;
  border-radius: 10px;
  background: #fff;
  padding: 0.45rem 0.35rem;
  display: grid;
  justify-items: center;
  align-content: start;
  text-align: center;
  gap: 0.35rem;
}

.product-exam-item img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.product-exam-item p {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.25;
  color: #1f2a44;
  font-weight: 600;
}

.product-pstet-tabs {
  border: 1px solid var(--ui-card-border);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.product-pstet-tab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 1px solid #d9e6ff;
  background: #f5f9ff;
}

.product-pstet-tab-nav button {
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #2b3f66;
  padding: 0.6rem 0.7rem;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.product-pstet-tab-nav button.is-active {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

.product-pstet-tab-panels {
  padding: 0.72rem 0.78rem;
}

.product-pstet-tab-panel {
  display: none;
}

.product-pstet-tab-panel.is-active {
  display: block;
}

.product-pstet-tab-panel p {
  margin: 0 0 0.55rem;
  color: #1f2a44;
  font-size: 0.9rem;
  line-height: 1.6;
}

.product-pstet-tab-panel p:last-child {
  margin-bottom: 0;
}

.product-pstet-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.48rem;
}

.product-pstet-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  color: #1f2a44;
  font-size: 0.88rem;
  line-height: 1.5;
}

.product-pstet-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  margin-top: 0.46rem;
  background: #2a67d8;
  flex-shrink: 0;
}

.product-pstet-faqs {
  display: grid;
  gap: 0.5rem;
}

.product-pstet-faq-item {
  border: 1px solid #d9e6ff;
  border-radius: 10px;
  background: #f8fbff;
  padding: 0.52rem 0.6rem;
}

.product-pstet-faq-item h5 {
  margin: 0 0 0.3rem;
  font-size: 0.9rem;
  color: #1c3565;
}

.product-pstet-faq-item p {
  margin: 0;
  color: #30466c;
  font-size: 0.84rem;
  line-height: 1.5;
}

.product-checkout-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  background: rgba(8, 18, 38, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.product-checkout-modal.open {
  display: flex;
}

.product-checkout-dialog {
  width: min(980px, 95vw);
  max-height: 92vh;
  overflow: auto;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #dbe6ff;
  box-shadow: 0 24px 44px rgba(15, 83, 189, 0.16);
  position: relative;
  padding: 0.9rem 0.95rem 1rem;
}

.product-checkout-close {
  position: absolute;
  right: 0.6rem;
  top: 0.45rem;
  border: 0;
  background: transparent;
  font-size: 1.8rem;
  line-height: 1;
  color: #2d3f64;
  cursor: pointer;
}

.product-checkout-dialog h3 {
  margin: 0 0 0.65rem;
  font-size: 1.45rem;
  text-align: center;
}

.product-checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 0.8rem;
}

.product-checkout-left,
.product-checkout-right {
  border: 1px solid #dbe6ff;
  border-radius: 12px;
  background: #fbfdff;
  padding: 0.75rem;
}

.product-checkout-offer-card {
  border: 1px solid #dbe6ff;
  border-radius: 10px;
  background: #fff;
  padding: 0.62rem;
}

.product-checkout-offer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
}

.product-checkout-offer-top strong {
  font-size: 1.02rem;
}

.product-checkout-chip {
  border-radius: 999px;
  background: #67a740;
  color: #fff;
  padding: 0.2rem 0.58rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.product-checkout-token-row {
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.product-checkout-token,
.product-checkout-token-code {
  display: inline-block;
  border: 1px dashed #f2a8a8;
  border-radius: 7px;
  color: #bf4a4a;
  background: #fff6f6;
  font-weight: 700;
  padding: 0.18rem 0.55rem;
  font-size: 0.88rem;
}

.product-checkout-token-row button {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: #d74242;
  font-weight: 700;
  cursor: pointer;
}

.product-checkout-offer-help {
  margin: 0.6rem 0 0;
  color: #7b9165;
  font-weight: 700;
  font-size: 0.88rem;
}

.product-checkout-friend-card {
  margin-top: 0.7rem;
  border-top: 1px dashed #c8d6f2;
  padding-top: 0.65rem;
}

.product-checkout-friend-card label {
  display: block;
  margin: 0 0 0.4rem;
  font-weight: 700;
  color: #253a62;
}

.product-checkout-friend-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.product-checkout-friend-row input {
  flex: 1 1 auto;
  border: 1px solid #c7d5f2;
  border-radius: 10px;
  padding: 0.58rem 0.62rem;
  font: inherit;
}

.product-checkout-friend-row button {
  border: 0;
  border-radius: 10px;
  background: #f2f6ff;
  color: var(--brand);
  font-weight: 700;
  padding: 0.58rem 0.75rem;
  cursor: pointer;
}

.product-checkout-friend-message {
  margin: 0.45rem 0 0;
  font-size: 0.83rem;
  color: #1f2a44;
}

.product-checkout-friend-message.error {
  color: #d14545;
}

.product-checkout-friend-message.success {
  color: #2f8a48;
}

.product-checkout-wallet-card {
  margin-top: 0.7rem;
  border-top: 1px dashed #c8d6f2;
  padding-top: 0.65rem;
}

.product-checkout-wallet-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.55rem;
}

.product-checkout-wallet-check {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: #34466d;
  cursor: pointer;
}

.product-checkout-wallet-check input {
  margin: 0;
}

.product-checkout-wallet-input {
  width: 100%;
  border: 1px solid #c7d5f2;
  border-radius: 10px;
  padding: 0.58rem 0.62rem;
  font: inherit;
}

.product-checkout-wallet-input:disabled {
  background: #f6f8fc;
  color: #8691a9;
}

.product-checkout-right h4 {
  margin: 0 0 0.45rem;
  font-size: 1.02rem;
}

.product-checkout-order-row {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  align-items: center;
  gap: 0.55rem;
  border-bottom: 1px solid #e2eafc;
  padding-bottom: 0.6rem;
  margin-bottom: 0.65rem;
}

.product-checkout-order-row img {
  width: 84px;
  height: 84px;
  border-radius: 10px;
  object-fit: cover;
  background: #f4f8ff;
}

.product-checkout-order-row p {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
}

.product-checkout-order-row small {
  color: #5a6a89;
}

.product-checkout-detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  padding: 0.3rem 0;
}

.product-checkout-detail-row span {
  color: #394e75;
}

.product-checkout-detail-row strong {
  color: #12274e;
}

.product-checkout-detail-row.total {
  margin-top: 0.2rem;
  border-top: 1px dashed #c8d6f2;
  padding-top: 0.55rem;
}

.product-checkout-detail-row.total span,
.product-checkout-detail-row.total strong {
  font-size: 1.16rem;
  color: #0d2149;
}

.product-checkout-continue {
  width: 100%;
  margin-top: 0.7rem;
  justify-content: center;
  font-size: 1rem;
}

.product-checkout-continue:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.checkout-wrap {
  width: min(1180px, 94%);
  margin: clamp(6.5rem, 11vw, 8.2rem) auto 2rem;
}

.checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.8fr);
  gap: 1rem;
  align-items: start;
}

.checkout-left,
.checkout-right {
  display: grid;
  gap: 0.85rem;
}

.checkout-card {
  border: 1px solid #dbe6ff;
  border-radius: 14px;
  background: #fff;
  padding: 1rem;
}

.checkout-card h2 {
  margin: 0 0 0.7rem;
  font-size: 1.22rem;
  color: #111f3f;
}

.checkout-product-row {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 0.85rem;
  align-items: center;
}

.checkout-product-row img {
  width: 108px;
  height: 108px;
  border-radius: 10px;
  object-fit: cover;
  background: #f5f8ff;
}

.checkout-product-row h3 {
  margin: 0;
  font-size: 1.4rem;
  line-height: 1.3;
  color: #111f3f;
}

.checkout-product-row p {
  margin: 0.3rem 0 0;
  color: #4f5f85;
  font-size: 0.96rem;
}

.checkout-product-row strong {
  display: block;
  margin-top: 0.45rem;
  font-size: 1.9rem;
  color: #122a57;
}

.checkout-personal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.checkout-personal-grid p {
  margin: 0;
  color: #3b4f79;
}

.checkout-payment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.checkout-method {
  border: 1px solid #d4e1f8;
  border-radius: 11px;
  background: #fff;
  min-height: 56px;
  padding: 0.6rem 0.72rem;
  display: flex;
  align-items: center;
  gap: 0.48rem;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.checkout-method input {
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
  cursor: pointer;
}

.checkout-method span {
  font-weight: 700;
  color: #21365f;
}

.checkout-method.is-active {
  border-color: #8eb4ff;
  background: #f6faff;
  box-shadow: inset 0 0 0 1px rgba(15, 83, 189, 0.15);
}

.checkout-coupon-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  border: 1px solid #dbe6ff;
  border-radius: 11px;
  background: #fbfdff;
  padding: 0.65rem 0.7rem;
}

.checkout-coupon-row strong {
  color: #1a2f5c;
}

.checkout-link-btn {
  border: 0;
  background: transparent;
  color: #e14646;
  font-weight: 700;
  cursor: pointer;
}

.checkout-help-text {
  margin: 0.5rem 0 0;
  color: #4e658f;
  font-size: 0.9rem;
}

.checkout-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.4rem 0;
}

.checkout-price-row span {
  color: #3b4f79;
}

.checkout-price-row strong {
  color: #102653;
}

.checkout-price-row.total {
  margin-top: 0.3rem;
  border-top: 1px dashed #c7d7f4;
  padding-top: 0.62rem;
}

.checkout-price-row.total span,
.checkout-price-row.total strong {
  font-size: 1.28rem;
  color: #081c44;
}

.checkout-pay-btn {
  width: 100%;
  justify-content: center;
  font-size: 1.03rem;
}

.product-addons {
  margin: 0 0 0.55rem;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.22rem;
  font-size: 0.84rem;
  color: #414141;
}

.product-pricing {
  display: flex;
  align-items: baseline;
  gap: 0.38rem;
  flex-wrap: wrap;
}

.product-pricing strong {
  font-size: 1.56rem;
  line-height: 1;
}

.product-mrp {
  color: #777;
  text-decoration: line-through;
  font-size: 0.9rem;
}

.product-off {
  color: #2b8a3e;
  font-size: 0.88rem;
  font-weight: 700;
}

.product-access {
  margin: 0.35rem 0 0;
  color: #4a4a4a;
  font-size: 0.83rem;
}

.product-referral-code-wrap {
  margin-top: 0.55rem;
}

.product-referral-code-input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.5rem 0.65rem;
  font-size: 0.84rem;
  outline: none;
}

.product-referral-code-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(15, 83, 189, 0.12);
}

.product-open-wrap {
  margin: 0;
  border-left: 0;
  border-radius: 0;
  padding: 0.72rem 0.78rem 0.85rem;
  background: #fafcff;
}

.product-open-wrap h4 {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
}

.product-learn-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.83rem;
}

.product-learn-subject-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
}

.product-learn-subject-tabs button {
  border: 1px solid #c7dbff;
  border-radius: 999px;
  background: #fff;
  color: #2b4f95;
  font-weight: 700;
  font-size: 0.74rem;
  line-height: 1;
  padding: 0.36rem 0.62rem;
  cursor: pointer;
}

.product-learn-subject-tabs button.is-active {
  background: #1f63d8;
  border-color: #1f63d8;
  color: #fff;
}

.product-learn-subject-panel {
  display: none;
}

.product-learn-subject-panel.is-active {
  display: block;
}

.product-learn-table-wrap {
  max-height: calc(var(--product-table-head-size) + (var(--list-visible-items) * var(--product-table-row-size)));
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.product-learn-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 360px;
}

.product-learn-table th,
.product-learn-table td {
  padding: 0.45rem;
  border-bottom: 1px solid #e7eeff;
  text-align: left;
  vertical-align: middle;
  font-size: 0.82rem;
}

.product-learn-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f7fbff;
  font-size: 0.78rem;
  color: #355799;
  font-weight: 700;
}

.product-learn-name {
  display: block;
  font-weight: 600;
  color: #1b1d24;
}

.product-learn-type {
  display: inline-block;
  margin-top: 0.15rem;
  color: #667085;
}

.product-play-icon-btn {
  width: 36px;
  min-width: 36px;
  height: 36px;
  border-radius: 999px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.product-play-icon-btn > span[aria-hidden="true"] {
  font-size: 0.85rem;
  line-height: 1;
}

.product-play-icon-btn.is-locked {
  opacity: 0.45;
  cursor: not-allowed;
}

.product-play-icon-btn.is-upcoming {
  opacity: 0.5;
  background: #94a3b8;
  border-color: #94a3b8;
  cursor: not-allowed;
}

.product-demo-tests {
  margin-top: 0.7rem;
  padding: 0.6rem 0.65rem;
  border: 1px solid #cfe2ff;
  border-radius: 10px;
  background: #f5f9ff;
}

.product-demo-title {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: #2a4e9d;
}

.product-demo-actions {
  margin-top: 0.45rem;
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.product-demo-btn {
  padding: 0.35rem 0.55rem;
  font-size: 0.76rem;
}

.product-actions {
  margin-top: 0.85rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.empty-products {
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 1rem;
  color: var(--muted);
  background: #fff;
}

.admin-product-thumb {
  width: 112px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--border);
  background: #f3f7ff;
}

.thumbnail-upload-row {
  margin-top: 0.45rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.thumbnail-upload-row input[type="file"] {
  max-width: 100%;
}

.admin-thumb-preview {
  margin-top: 0.55rem;
  width: 180px;
  height: 102px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--border);
  background: #f3f7ff;
}

.admin-inline-checklist {
  max-height: calc(var(--list-visible-items) * var(--list-option-row-size));
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.55rem;
  display: grid;
  gap: 0.4rem;
  background: #fff;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.admin-inline-checklist .filter-option {
  margin: 0;
  width: 100%;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 0.55rem;
  padding: 0.36rem 0.3rem;
}

.admin-inline-checklist .filter-option + .filter-option {
  border-top: 1px solid #edf2ff;
}

.admin-inline-checklist .filter-option input {
  margin-top: 0.18rem;
}

.attachment-item-title {
  display: block;
  line-height: 1.3;
}

.attachment-item-meta {
  display: block;
  margin-top: 0.14rem;
  color: #5b6e92;
  line-height: 1.35;
  word-break: break-word;
}

.attachment-pagination {
  margin-top: 0.45rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  justify-content: flex-end;
}

.attachment-pagination span {
  color: #4b5f83;
  font-weight: 700;
  min-width: 96px;
  text-align: center;
}

.checkbox-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #24324d;
  font-weight: 600;
  line-height: 1.3;
  justify-self: start;
  white-space: nowrap;
}

.checkbox-inline input {
  margin: 0;
  width: 16px;
  min-width: 16px;
  height: 16px;
  padding: 0;
  border: 0;
  border-radius: 0;
}

.admin-field-checkbox {
  display: flex;
  align-items: flex-end;
  padding-top: 1.45rem;
}

.mock-wrap {
  width: min(1120px, 94%);
  margin: 0.8rem auto 2rem;
}

.lesson-wrap {
  width: min(1120px, 94%);
  margin: 0.8rem auto 2rem;
}

.lesson-overview-head h1 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
}

.lesson-back-btn {
  padding: 0.28rem 0.52rem;
  font-size: 0.82rem;
  border-radius: 9px;
  min-height: 0;
}

.lesson-summary-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  padding: 1rem;
  margin: 1rem 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  align-items: end;
}

.lesson-summary-k {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.lesson-summary-v {
  margin: 0.2rem 0 0;
  font-size: 1rem;
  font-weight: 700;
}

.lesson-course-select {
  width: 100%;
  margin-top: 0.3rem;
  border: 1px solid #d6dff6;
  border-radius: 10px;
  padding: 0.55rem 0.65rem;
  font: inherit;
  background: #fff;
}

.lesson-list {
  display: grid;
  gap: 0.8rem;
}

.lesson-row {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  padding: 0.9rem;
}

.lesson-row.completed {
  background: #f8fbff;
}

.lesson-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

.lesson-row h3 {
  margin: 0;
  font-size: 1.18rem;
}

.lesson-row-meta {
  margin: 0.45rem 0 0;
  color: var(--muted);
}

.lesson-row-actions {
  margin-top: 0.7rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.lesson-action-btn {
  min-width: 150px;
}

.lesson-player-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 1rem;
  align-items: start;
}

.lesson-side-stack {
  display: grid;
  gap: 1rem;
  position: sticky;
  top: 84px;
  align-self: start;
}

.lesson-transcript-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  padding: 1rem;
}

.lesson-video-card {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  position: static;
  top: auto;
  align-self: auto;
}

.lesson-playback-shell {
  display: grid;
  gap: 0.5rem;
}

.lesson-ai-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  padding: 1rem;
  display: grid;
  gap: 0.8rem;
}

.lesson-ai-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
}

.lesson-ai-head h2 {
  margin: 0;
  font-size: 1.08rem;
}

.lesson-ai-head .mock-subtitle {
  margin: 0.2rem 0 0;
}

.lesson-ai-language-row {
  display: grid;
  gap: 0.35rem;
}

.lesson-ai-language-row label {
  font-size: 0.84rem;
  font-weight: 700;
  color: #27457f;
}

.lesson-ai-language-select {
  width: 100%;
  border: 1px solid #cfd8ea;
  border-radius: 12px;
  background: #f8fbff;
  padding: 0.72rem 0.85rem;
  color: #20304f;
  font: inherit;
}

.lesson-ai-toolbar {
  display: grid;
  gap: 0.75rem;
}

.lesson-ai-quick-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.lesson-ai-voice-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.lesson-ai-voice-stop-btn {
  width: 44px;
  height: 44px;
  border: 1px solid #1f61cd;
  border-radius: 50%;
  background: #ffffff;
  color: #1f61cd;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.lesson-ai-voice-stop-btn:hover:not(:disabled) {
  background: #edf4ff;
  transform: translateY(-1px);
}

.lesson-ai-voice-stop-btn:disabled {
  border-color: #cfd8ea;
  background: #f3f6fb;
  color: #a5b2cb;
  cursor: not-allowed;
}

.lesson-ai-voice-stop-icon {
  width: 13px;
  height: 13px;
  border-radius: 2px;
  background: currentColor;
  display: block;
}

.lesson-ai-voice-state {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.3rem 0.72rem;
  border-radius: 999px;
  background: #eef4ff;
  color: #2753a6;
  font-size: 0.84rem;
  font-weight: 700;
}

.lesson-ai-voice-state.is-connecting {
  background: #fff4d8;
  color: #8a6400;
}

.lesson-ai-voice-state.is-listening,
.lesson-ai-voice-state.is-speaking {
  background: #e9f8ef;
  color: #1d7d45;
}

.lesson-ai-voice-state.is-error {
  background: #ffe9e7;
  color: #c4372f;
}

.lesson-ai-voice-state.is-ended {
  background: #eef1f6;
  color: #5d6a85;
}

.lesson-ai-selection-hint {
  border: 1px dashed #cfd8ea;
  border-radius: 12px;
  background: #f7faff;
  color: #2753a6;
  padding: 0.7rem 0.8rem;
  font-size: 0.92rem;
  line-height: 1.45;
}

.lesson-ai-selection-hint.is-active {
  border-style: solid;
  border-color: #9eb8ee;
  background: #eef4ff;
}

.lesson-ai-messages {
  min-height: 180px;
  max-height: 360px;
  overflow: auto;
  display: grid;
  gap: 0.65rem;
  padding-right: 0.2rem;
}

.lesson-ai-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

.lesson-ai-message {
  display: grid;
  gap: 0.3rem;
  justify-items: start;
}

.lesson-ai-message.is-user {
  justify-items: end;
}

.lesson-ai-message-role {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
}

.lesson-ai-message-bubble {
  max-width: 100%;
  border-radius: 14px;
  padding: 0.7rem 0.82rem;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.58;
}

.lesson-ai-message.is-user .lesson-ai-message-bubble {
  background: #1f61cd;
  color: #fff;
}

.lesson-ai-message.is-assistant .lesson-ai-message-bubble {
  background: #f4f7fb;
  color: var(--ink);
  border: 1px solid #dfe7f3;
}

.lesson-ai-thread {
  border: 1px solid #dfe7f3;
  border-radius: 14px;
  background: #f8fbff;
  overflow: visible;
}

.lesson-ai-thread.is-open {
  border-color: #9eb8ee;
  background: #eef4ff;
}

.lesson-ai-thread-toggle {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0.8rem 0.85rem;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.7rem;
  text-align: left;
  cursor: pointer;
  white-space: normal;
  min-height: 0;
  overflow: visible;
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  color: inherit;
}

.lesson-ai-thread-order {
  flex: 0 0 36px;
  min-width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #1f61cd;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lesson-ai-thread-main {
  flex: 1 1 auto;
  display: block;
  gap: 0.3rem;
  min-width: 0;
  max-width: 100%;
  overflow: visible;
}

.lesson-ai-thread-question {
  display: block;
  width: 100%;
  max-width: 100%;
  color: #1a2a47;
  font-weight: 700;
  line-height: 1.45;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.lesson-ai-thread-time {
  display: block;
  margin-top: 0.3rem;
}

.lesson-ai-thread-time,
.lesson-ai-thread-answer-role {
  font-size: 0.76rem;
  color: #6b7e9f;
  font-weight: 700;
}

.lesson-ai-thread-chevron {
  flex: 0 0 16px;
  margin-top: 0.15rem;
  color: #355799;
  font-size: 1.25rem;
  line-height: 1;
  text-align: center;
}

.lesson-ai-thread-answer-wrap {
  border-top: 1px solid #d8e3f5;
  padding: 0.8rem 0.85rem 0.9rem;
  display: grid;
  gap: 0.7rem;
}

.lesson-ai-thread-answer-block {
  display: grid;
  gap: 0.35rem;
}

.lesson-ai-thread-answer,
.lesson-ai-thread-pending {
  margin: 0;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #dfe7f3;
  padding: 0.75rem 0.8rem;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.6;
  color: #223252;
}

.lesson-ai-form {
  display: grid;
  gap: 0.65rem;
}

.lesson-ai-form textarea {
  width: 100%;
  min-height: 110px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  font: inherit;
  line-height: 1.5;
  resize: vertical;
}

.lesson-ai-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}

.lesson-ai-grounding-note {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.4;
}

.lesson-ai-mcq-card {
  width: min(720px, 100%);
  display: grid;
  gap: 0.85rem;
}

.lesson-ai-mcq-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.6rem;
  padding-right: 2rem;
}

.lesson-ai-mcq-head h2 {
  margin: 0;
}

.lesson-ai-mcq-question {
  font-size: 1rem;
  font-weight: 700;
  color: #12305c;
  line-height: 1.5;
}

.lesson-ai-mcq-options {
  display: grid;
  gap: 0.7rem;
}

.lesson-ai-mcq-option {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  border: 1px solid #d9e3f5;
  border-radius: 14px;
  background: #f8fbff;
  padding: 0.8rem 0.9rem;
  cursor: pointer;
}

.lesson-ai-mcq-option input {
  margin-top: 0.15rem;
  accent-color: var(--brand);
}

.lesson-ai-mcq-option.is-selected {
  border-color: #8eb4ff;
  background: #eef4ff;
}

.lesson-ai-mcq-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
}

.lesson-ai-mcq-result {
  border: 1px solid #dbe6ff;
  border-radius: 14px;
  background: #f8fbff;
  padding: 0.9rem 1rem;
  display: grid;
  gap: 0.75rem;
}

.lesson-ai-mcq-score {
  margin: 0;
  font-weight: 800;
  color: #102653;
}

.lesson-ai-mcq-weak-area {
  border: 1px solid #d3e2ff;
  border-radius: 12px;
  background: #eef5ff;
  padding: 0.8rem 0.9rem;
  display: grid;
  gap: 0.3rem;
}

.lesson-ai-mcq-weak-area strong {
  color: #12305c;
}

.lesson-ai-mcq-weak-area p,
.lesson-ai-mcq-feedback {
  margin: 0;
  color: #42577f;
  line-height: 1.5;
}

.lesson-ai-mcq-review-item {
  border-top: 1px solid #dbe3f2;
  padding-top: 0.75rem;
  display: grid;
  gap: 0.25rem;
}

.lesson-ai-mcq-review-item:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.lesson-ai-mcq-review-item strong {
  color: #12305c;
}

.lesson-ai-mcq-review-item p {
  margin: 0;
  color: #42577f;
  line-height: 1.45;
}

.card-collapse-enabled {
  position: relative;
}

.card-collapse-toggle {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--brand);
  font-weight: 800;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(20, 40, 80, 0.08);
}

.card-collapse-toggle:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.card-collapse-enabled > h1,
.card-collapse-enabled > h2,
.card-collapse-enabled > h3,
.card-collapse-enabled > h4,
.card-collapse-enabled > .admin-header-row,
.card-collapse-enabled > .attempt-topbar,
.card-collapse-enabled > .attempt-lesson-head,
.card-collapse-enabled > .lesson-row-head,
.card-collapse-enabled > .card-collapse-title {
  padding-right: 2.35rem;
}

.card-collapse-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
}

.card-collapse-enabled.card-collapsed .card-collapse-body {
  display: none;
}

.card-collapse-enabled.card-collapsed > h1,
.card-collapse-enabled.card-collapsed > h2,
.card-collapse-enabled.card-collapsed > h3,
.card-collapse-enabled.card-collapsed > h4,
.card-collapse-enabled.card-collapsed > .admin-header-row,
.card-collapse-enabled.card-collapsed > .attempt-topbar,
.card-collapse-enabled.card-collapsed > .attempt-lesson-head,
.card-collapse-enabled.card-collapsed > .lesson-row-head,
.card-collapse-enabled.card-collapsed > .card-collapse-title {
  margin-bottom: 0;
}

.lesson-video {
  width: 100%;
  border-radius: 12px;
  background: #000;
  max-height: 560px;
}

.lesson-video-card audio {
  margin-top: 0.45rem;
}

.preview-live-transcript-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fdfefe;
  padding: 0.85rem;
  margin-bottom: 0.75rem;
}

.lesson-player-actions {
  margin-top: 0.1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: nowrap;
}

.lesson-player-actions .btn-primary {
  margin-left: auto;
}

.lesson-player-actions .tts-compact-select {
  min-width: 128px;
}

.lesson-progress-info {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  min-width: 0;
}

.transcript-list {
  margin-top: 0.75rem;
  max-height: 540px;
  overflow: auto;
  display: grid;
  gap: 0.5rem;
}

.transcript-segment {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  padding: 0.6rem 0.7rem;
  cursor: pointer;
  line-height: 1.45;
  font: inherit;
  transition: background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.transcript-segment.active {
  border-color: #d4a100;
  background: #ffe768;
  box-shadow: inset 0 0 0 1px rgba(181, 136, 0, 0.24);
}

.transcript-inline-text {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.65;
  color: var(--ink);
}

.transcript-inline-token {
  border-radius: 4px;
  transition: background-color 120ms ease, box-shadow 120ms ease, color 120ms ease;
}

.transcript-inline-token[data-preview-word-index] {
  cursor: pointer;
}

.transcript-inline-token.active {
  background: #ffe768;
  box-shadow: inset 0 -1px 0 rgba(181, 136, 0, 0.38);
  color: #1f1400;
}

.transcript-inline-segment {
  display: block;
  white-space: pre-wrap;
  line-height: 1.6;
  cursor: pointer;
  padding: 0;
  border: 0;
  background: transparent;
}

.transcript-inline-segment.active {
  background: #ffe768;
}

.lesson-transcript-empty {
  margin: 0;
  color: var(--muted);
}

.transcript-history-list {
  margin-top: 0.45rem;
  max-height: 320px;
}

.transcript-spoken-history {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.6;
  color: var(--ink);
}

.transcript-full-paragraph {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.75;
  color: var(--ink);
  font-size: clamp(1rem, 1.45vw, 1.18rem);
  word-break: break-word;
}

.transcript-scroll-speed-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
  margin-top: 0.45rem;
}

.transcript-scroll-speed-row label {
  font-weight: 700;
  color: var(--ink);
  font-size: 0.92rem;
}

.preview-sync-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto 92px auto auto;
  gap: 0.55rem;
  align-items: center;
  margin-bottom: 0.5rem;
}

.preview-sync-row label {
  font-weight: 700;
  color: var(--ink);
}

.preview-sync-row input[type="range"] {
  width: 100%;
}

.preview-sync-offset-label {
  font-size: 0.92rem;
  font-weight: 700;
  color: #174a9f;
  min-width: 64px;
  text-align: right;
}

.preview-sync-offset-manual,
.preview-line-sync-ms {
  width: 100%;
  border: 1px solid #dcdcdc;
  border-radius: 8px;
  padding: 0.4rem 0.5rem;
  font: inherit;
}

.preview-sync-offset-unit {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.preview-line-sync-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 92px auto auto auto;
  gap: 0.55rem;
  align-items: center;
  margin-bottom: 0.65rem;
}

.preview-line-sync-row label {
  font-weight: 700;
  color: var(--ink);
}

.preview-manual-stretch-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 0.65rem;
}

.preview-stretch-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fcfdff;
  padding: 0.55rem 0.6rem;
  display: grid;
  gap: 0.45rem;
}

.preview-stretch-card label {
  font-weight: 700;
  color: var(--ink);
}

.preview-stretch-range-group {
  display: grid;
  gap: 0.35rem;
}

.preview-stretch-range-group input[type="range"] {
  width: 100%;
}

.preview-stretch-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px auto 92px auto auto;
  gap: 0.45rem;
  align-items: center;
}

.preview-stretch-summary {
  font-size: 0.86rem;
  font-weight: 700;
  color: #174a9f;
}

.mock-page-header h1 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
}

.mock-subtitle {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.mock-guest-inline-cta {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.2rem;
  flex-wrap: nowrap;
  margin-top: 0;
  margin-bottom: 0.65rem;
  font-size: 1rem;
  line-height: 1.6;
}

.mock-guest-inline-cta .dash-k {
  margin: 0;
  font-size: inherit;
  line-height: inherit;
}

.mock-guest-register-link {
  border: 0;
  background: transparent;
  padding: 0;
  color: #0f53bd;
  font-weight: 700;
  font-size: inherit;
  line-height: inherit;
  cursor: pointer;
}

.mock-guest-register-link:hover {
  text-decoration: underline;
}

.mock-filters-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  padding: 1rem;
  margin: 1rem 0;
}

.mock-filters-card h2 {
  margin: 0 0 0.8rem;
}

.mock-filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
}

.mock-page-banner {
  padding: 0;
  overflow: hidden;
}

.mock-page-banner-image {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  display: block;
}

.mock-summary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.9fr);
  gap: 1.1rem;
  align-items: start;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.mock-summary-grid--triple {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.mock-summary-card {
  height: 100%;
  border-radius: 14px;
  padding: 0.95rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  overflow: hidden;
}

.mock-details-card {
  background: var(--ui-card-bg);
  border: 1px solid var(--ui-card-border);
  box-shadow: var(--ui-card-shadow);
}

.mock-card-kicker {
  margin: 0;
  color: var(--ui-card-kicker);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mock-summary-card h2,
.mock-summary-card h3,
.mock-summary-card .dash-k,
.mock-summary-card .dash-v {
  margin: 0;
}

.mock-summary-card .dash-k,
.mock-summary-card .dash-v,
.mock-summary-card p {
  max-width: 100%;
  line-height: 1.5;
}

.mock-chance-card {
  min-height: 100%;
  background: var(--ui-card-bg);
  border: 1px solid var(--ui-card-border);
  box-shadow: var(--ui-card-shadow);
}

.mock-chance-panel {
  display: grid;
  gap: 0.75rem;
}

.mock-chance-summary {
  border: 1px solid var(--ui-card-border);
  border-radius: 12px;
  background: var(--ui-card-soft-bg);
  padding: 0.8rem 0.9rem;
}

.mock-chance-total {
  display: block;
  color: #0f53bd;
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1;
}

.mock-chance-summary-label {
  display: block;
  margin-top: 0.28rem;
  color: var(--ui-card-muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mock-chance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.mock-chance-item {
  border: 1px solid var(--ui-card-border);
  border-radius: 12px;
  background: var(--ui-card-soft-bg);
  padding: 0.65rem 0.75rem;
}

.mock-chance-item-label {
  display: block;
  color: var(--ui-card-muted);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mock-chance-item-value {
  display: block;
  margin-top: 0.18rem;
  color: var(--ui-card-title);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.2;
}

.mock-chance-note {
  margin: 0;
  color: var(--ui-card-muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.mock-chance-panel--empty {
  color: var(--ui-card-title);
  font-weight: 700;
  line-height: 1.55;
}

.mock-filter-grid .field-span-2 {
  grid-column: span 2;
}

.mock-upcoming-card {
  margin-top: 0.8rem;
  border: 1px solid #bcd3ff;
  border-radius: 12px;
  background: #f5f9ff;
  padding: 0.75rem 0.9rem;
}

.mock-upcoming-kicker {
  margin: 0;
  color: var(--ui-card-kicker);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mock-upcoming-card h3 {
  margin: 0.2rem 0 0.25rem;
}

.mock-upcoming-when {
  margin: 0;
  color: #243b63;
  font-weight: 600;
}

.mock-refer-card {
  border: 1px solid #cfe4ff;
  border-radius: 12px;
  background: #f7fbff;
  padding: 0.68rem 0.82rem;
}

.mock-refer-card--compact {
  padding: 0.95rem 1rem;
}

.mock-refer-kicker {
  margin: 0;
  color: var(--ui-card-kicker);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.mock-refer-row {
  margin-top: 0.42rem;
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.mock-ref-code-input {
  flex: 1 1 280px;
  min-width: 220px;
  width: 100%;
  max-width: 100%;
  font-family: "Consolas", "Courier New", monospace;
  letter-spacing: 0.04em;
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: none;
  box-sizing: border-box;
}

.mock-refer-actions {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.mock-refer-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.38rem;
  min-height: 32px;
  padding: 0;
  white-space: nowrap;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #0f53bd;
  cursor: pointer;
}

.mock-refer-action-btn:hover {
  opacity: 0.8;
}

.mock-refer-action-btn:focus-visible {
  outline: 2px solid #9fc0ff;
  outline-offset: 2px;
  border-radius: 8px;
}

.mock-refer-action-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex: 0 0 auto;
  display: block;
}

.mock-refer-success-icon {
  display: none;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #16a34a;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.mock-refer-action-btn.is-copied .mock-refer-action-icon {
  display: none;
}

.mock-refer-action-btn.is-copied .mock-refer-success-icon {
  display: inline-flex;
}

.mock-refer-card--compact .dash-k {
  margin: 0;
}

.mock-refer-card--compact .mock-refer-row {
  margin-top: 0.2rem;
}

.mock-summary-card .mock-upcoming-card {
  margin-top: 0.9rem;
}

.mock-registration-form-card {
  background: #fff;
  border: 1px solid var(--ui-card-border);
  box-shadow: 0 12px 28px rgba(15, 83, 189, 0.08);
  padding: 1.05rem 1rem 1.1rem;
}

.mock-registration-table-card {
  margin-top: 1rem;
  background: #fff;
  border: 1px solid var(--ui-card-border);
  box-shadow: 0 12px 28px rgba(15, 83, 189, 0.08);
  padding: 1rem;
}

.mock-table-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
  flex-wrap: wrap;
}

.mock-table-header h3 {
  margin: 0;
}

.mock-table-quota {
  margin: 0;
  color: #29518f;
  font-weight: 700;
}

.mock-table-wrap {
  width: 100%;
  max-height: calc(var(--mock-table-head-size) + (var(--list-visible-items) * var(--mock-table-row-size)));
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.mock-tests-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

.mock-tests-table th,
.mock-tests-table td {
  padding: 0.8rem 0.65rem;
  border-bottom: 1px solid #e4ecfb;
  text-align: left;
  vertical-align: middle;
}

.mock-tests-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f7fbff;
  color: #2b4775;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mock-tests-table tbody tr:last-child td {
  border-bottom: 0;
}

.mock-tests-table td:nth-child(1),
.mock-tests-table td:nth-child(3),
.mock-tests-table td:nth-child(4),
.mock-tests-table td:nth-child(5),
.mock-tests-table td:nth-child(6) {
  white-space: nowrap;
}

.mock-form-locked {
  opacity: 0.72;
}

.mock-form-locked input,
.mock-form-locked select,
.mock-form-locked button[type="submit"] {
  cursor: not-allowed;
}

.mock-inline-check {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.95rem;
}

.mock-inline-check input {
  width: 16px;
  height: 16px;
}

.filter-action {
  display: flex;
  align-items: flex-end;
}

.mock-tests-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.mock-test-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  padding: 1rem;
}

.mock-test-card h3 {
  margin: 0 0 0.45rem;
}

.mock-test-meta {
  margin: 0.25rem 0;
  color: var(--muted);
}

.mock-test-badges {
  margin-top: 0.55rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.mock-test-actions {
  margin-top: 0.85rem;
}

.mock-lock-toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 120;
  width: min(420px, calc(100vw - 2rem));
  border: 1px solid #ffcbc2;
  border-radius: 14px;
  background: #fff5f2;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.14);
  padding: 0.8rem;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.mock-lock-toast.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.mock-lock-toast-title {
  margin: 0;
  font-weight: 800;
  color: #b63f2c;
}

.mock-lock-toast-text {
  margin: 0.35rem 0 0;
  color: #5c392f;
}

.mock-lock-toast-actions {
  margin-top: 0.7rem;
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.mock-lock-toast-actions .btn-secondary,
.mock-lock-toast-actions .btn-ghost {
  padding: 0.5rem 0.78rem;
  font-size: 0.9rem;
}

.mock-registration-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(17, 24, 39, 0.56);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.mock-registration-dialog {
  width: min(760px, 96vw);
  max-height: 92vh;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem;
  position: relative;
}

.mock-registration-close {
  position: absolute;
  right: 0.8rem;
  top: 0.7rem;
  border: 1px solid var(--border);
  background: #fff;
  color: #1f2937;
  border-radius: 8px;
  width: 28px;
  height: 28px;
  cursor: pointer;
}

.mock-registration-banner-wrap {
  margin-bottom: 0.6rem;
}

.mock-registration-banner-wrap img {
  width: 100%;
  max-height: 240px;
  object-fit: contain;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.mock-registration-actions {
  margin-top: 0.85rem;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.mock-no-chance-dialog {
  width: min(520px, 96vw);
}

.mock-reattempt-modal-card {
  width: min(420px, 96vw);
  padding: 1.1rem;
}

.mock-reattempt-modal-card h3 {
  margin: 0;
}

.mock-reattempt-actions {
  display: flex;
  gap: 0.65rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.mock-reattempt-actions .btn-primary,
.mock-reattempt-actions .btn-secondary {
  flex: 1 1 150px;
  justify-content: center;
}

.mock-no-chance-title {
  margin: 0;
  font-size: 1.35rem;
}

.mock-no-chance-text {
  margin: 0.65rem 0 0;
  color: #42516e;
  line-height: 1.55;
}

.mock-no-chance-id {
  margin: 0.85rem 0 0;
  color: var(--ui-card-kicker);
  font-weight: 700;
}

.mock-no-chance-actions {
  margin-top: 1rem;
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.mock-no-chance-actions .btn-primary,
.mock-no-chance-actions .btn-secondary {
  flex: 1 1 180px;
  justify-content: center;
  text-align: center;
}

.mock-time-choice-wrap {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.mock-time-choice {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
}

.mock-global-reg-popup {
  cursor: pointer;
}

.mock-global-reg-popup .mock-registration-close {
  z-index: 2;
}

.mock-global-reg-popup--image-only {
  width: auto;
  max-width: min(920px, 96vw);
  max-height: 92vh;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.mock-global-reg-image-only {
  display: block;
  width: 100%;
  max-width: min(920px, 96vw);
  max-height: 90vh;
  object-fit: contain;
  border-radius: 0;
  border: 0;
  background: transparent;
}

.mock-global-reg-popup--image-only .mock-registration-close {
  right: -10px;
  top: -10px;
  border-radius: 999px;
  width: 30px;
  height: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.landing-login-promo-dialog {
  width: min(608px, 92vw);
  max-width: none;
  max-height: 92vh;
  overflow: visible;
}

.landing-login-promo-image {
  display: block;
  width: min(608px, 92vw);
  max-width: none;
  max-height: 92vh;
  object-fit: contain;
  border-radius: 16px;
  border: 0;
  background: transparent;
}

.landing-login-promo-dialog .mock-registration-close {
  right: 6px;
  top: 6px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  box-shadow: none;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

.mock-global-reg-popup .mock-global-reg-title {
  margin: 0.1rem 0 0.4rem;
}

.mock-global-reg-popup .mock-global-reg-sub {
  margin: 0.2rem 0;
  color: var(--muted);
}

.mock-guest-register-card {
  width: min(460px, 100%);
}

.mock-guest-register-form {
  display: grid;
  gap: 0.9rem;
  margin-top: 0.9rem;
}

.mock-guest-register-form .btn-primary {
  width: 100%;
  justify-content: center;
}

.mock-products-section {
  margin-top: 1.35rem;
}

.mock-products-heading-row {
  margin-bottom: 0.25rem;
  align-items: center;
  justify-content: space-between;
}

.mock-products-mobile-list {
  display: grid;
  gap: 0.85rem;
}

.mock-products-mobile-item {
  min-width: 0;
}

.attempt-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  padding: 1rem;
}

.attempt-post-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0.35rem 0 0.75rem;
}

.attempt-result-hint {
  margin: 0.35rem 0 0.7rem;
  color: var(--brand);
  font-weight: 600;
  font-size: 0.94rem;
}

.attempt-transcript-actions {
  display: flex;
  justify-content: flex-start;
  margin: 0.1rem 0 0.75rem;
}

.attempt-lesson-ref {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  margin-bottom: 0.9rem;
}

.attempt-lesson-head h2 {
  margin: 0;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
}

.attempt-lesson-media {
  width: 100%;
  margin-top: 0.6rem;
  border-radius: 10px;
  background: #000;
}

.attempt-lesson-transcript-wrap {
  margin-top: 0.7rem;
}

.attempt-lesson-transcript-wrap h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.attempt-lesson-transcript {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  white-space: pre-wrap;
  line-height: 1.6;
  max-height: 260px;
  overflow-y: auto;
  background: #fefefe;
}

.attempt-transcript-full {
  margin: 0;
  white-space: normal;
  line-height: 1.7;
}

.attempt-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

.attempt-index {
  margin: 0;
  color: var(--brand);
  font-weight: 700;
}

.attempt-timer {
  margin: 0;
  padding: 0.25rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.attempt-question-text {
  margin: 0.55rem 0 0.9rem;
  font-size: 1rem;
  font-weight: 700;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.5;
  tab-size: 4;
}

.attempt-language-hint {
  margin: 0.55rem 0 0.35rem;
  color: var(--brand);
  font-weight: 600;
}

.attempt-language-toggle {
  display: none;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
}

.attempt-language-toggle .btn-ghost.is-active {
  background: var(--brand-soft);
  color: var(--brand);
  border-color: var(--brand);
}

.attempt-question-panels {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}

.attempt-question-panel {
  min-width: 0;
}

.attempt-question-panel-half {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.8rem;
  background: #fbfcff;
}

.attempt-language-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.attempt-options {
  display: grid;
  gap: 0.6rem;
}

.attempt-option {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.6rem;
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  cursor: pointer;
  box-sizing: border-box;
  width: 100%;
}

.attempt-option span {
  font-size: 1rem;
  font-weight: 400;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.45;
}

.attempt-option input {
  margin-top: 0.2rem;
}

.attempt-actions {
  margin-top: 1rem;
  display: flex;
  gap: 0.6rem;
  flex-wrap: nowrap;
  align-items: center;
}

.attempt-nav-btn {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 999px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
}

.attempt-main-btn {
  flex: 0 0 auto;
  width: 120px;
  min-width: 120px;
  text-align: center;
}

.row-selected {
  background: #f3f8ff;
}

@media (max-width: 980px) {
  .home-latest-grid {
    grid-template-columns: repeat(
      auto-fill,
      minmax(min(100%, var(--catalog-card-width-md)), var(--catalog-card-width-md))
    );
  }

  .home-latest-card {
    grid-template-columns: var(--catalog-card-thumb-size-md) minmax(0, 1fr);
    width: min(100%, var(--catalog-card-width-md));
    min-height: var(--catalog-card-thumb-size-md);
  }

  .home-latest-thumb {
    min-height: var(--catalog-card-thumb-size-md);
  }

  .products-layout {
    grid-template-columns: 1fr;
  }

  .products-filters {
    position: static;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .products-grid.products-grid-catalog {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-card-wide {
    grid-template-columns: 1fr;
  }

  .product-main {
    border-right: 0;
    border-bottom: 1px solid #e8efff;
  }

  .product-open-wrap {
    border-top: 0;
  }

  .mock-page-banner {
    padding: 0.35rem;
  }

  .mock-page-banner-image {
    border-radius: 12px;
  }

  .landing-login-promo-dialog {
    width: min(96vw, 448px);
  }

  .landing-login-promo-image {
    width: min(96vw, 448px);
    max-width: none;
    max-height: 92vh;
    border-radius: 12px;
  }

  .landing-login-promo-dialog .mock-registration-close {
    right: 0.35rem;
    top: 0.35rem;
    width: 34px;
    height: 34px;
    font-size: 1.55rem;
  }

  .mock-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mock-summary-grid {
    grid-template-columns: 1fr;
  }

  .mock-summary-grid--triple {
    grid-template-columns: 1fr;
  }

  .mock-filter-grid .field-span-2 {
    grid-column: span 2;
  }

  .mock-tests-grid {
    grid-template-columns: 1fr;
  }

  .lesson-player-layout {
    grid-template-columns: 1fr;
  }

  .lesson-video-card {
    position: sticky;
    top: 76px;
  }
}

@media (max-width: 680px) {
  .home-latest-products {
    padding-top: 0;
  }

  .home-latest-head {
    margin-bottom: 0.65rem;
    align-items: center;
  }

  .home-latest-head h2 {
    font-size: clamp(1.3rem, 6vw, 1.6rem);
  }

  .home-latest-card {
    grid-template-columns: var(--catalog-card-thumb-size-sm) minmax(0, 1fr);
    width: min(100%, var(--catalog-card-width-sm));
    min-height: var(--catalog-card-thumb-size-sm);
  }

  .home-latest-thumb {
    min-height: var(--catalog-card-thumb-size-sm);
  }

  .home-latest-body {
    padding: 0.5rem 0.54rem 0.56rem;
  }

  .home-latest-body h3 {
    font-size: 0.9rem;
  }

  .home-latest-meta {
    font-size: 0.76rem;
  }

  .home-latest-pricing strong {
    font-size: 1.05rem;
  }

  .home-latest-actions {
    gap: 0.3rem;
  }

  .home-latest-actions .btn-secondary,
  .home-latest-actions .btn-primary,
  .home-latest-actions .btn-sky {
    padding: 0.35rem 0.24rem;
    font-size: 0.72rem;
  }

  .catalog-window-nav.is-mobile {
    right: -0.15rem;
  }

  .catalog-nav-btn {
    width: 30px;
    height: 30px;
    font-size: 0.88rem;
  }

  body:not(.is-mock-page) .site-header .nav-links a.nav-link-mock-tests::before,
  body:not(.is-mock-page) .site-header .nav-links a[href="./mock-tests.html"]::before,
  body:not(.is-mock-page) .site-header .nav-links a[href="./mock-tests"]::before {
    width: 16px;
    height: 16px;
  }

  .catalog-window-grid.is-mobile {
    padding-top: 1.9rem;
    padding-right: 0;
  }

  .catalog-all-products-btn {
    top: -1.85rem;
    font-size: 0.74rem;
    padding: 0.28rem 0.54rem;
  }

  .products-wrap {
    width: 94%;
    margin-top: 0.6rem;
  }

  .products-layout {
    grid-template-columns: 1fr;
  }

  .products-filters {
    display: none;
  }

  .products-page .products-wrap {
    margin-top: calc(56px + 0.6rem);
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .products-grid.products-grid-catalog {
    grid-template-columns: 1fr;
  }

  .products-heading-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .mock-products-heading-row {
    flex-direction: row;
    align-items: center;
  }

  .mock-products-section .btn-secondary {
    white-space: nowrap;
  }

  .mock-products-mobile-item .home-latest-card {
    width: 100%;
    min-height: var(--catalog-card-thumb-size-sm);
  }

  .mock-products-mobile-item .home-latest-thumb {
    min-height: var(--catalog-card-thumb-size-sm);
    height: 100%;
  }

  .mock-products-mobile-item .home-latest-body {
    padding: 0.55rem 0.58rem 0.62rem;
  }

  .mock-guest-inline-cta {
    display: inline;
    white-space: normal;
    font-size: 0.96rem;
    line-height: 1.55;
  }

  .mock-guest-inline-cta .dash-k {
    display: inline;
  }

  .mock-guest-register-link {
    display: inline;
    white-space: nowrap;
    margin-left: 0.18rem;
  }

  .products-heading-actions {
    width: 100%;
    justify-content: space-between;
  }

  .product-thumb {
    max-width: 260px;
  }

  .product-learn-subject-tabs button {
    padding: 0.34rem 0.5rem;
    font-size: 0.7rem;
  }

  .product-salient-grid {
    grid-template-columns: 1fr;
  }

  .product-highlights-list {
    grid-template-columns: 1fr;
    gap: 0.48rem;
  }

  .product-exams-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.4rem;
  }

  .product-exam-item {
    padding: 0.35rem 0.28rem;
  }

  .product-exam-item img {
    width: 48px;
    height: 48px;
  }

  .product-exam-item p {
    font-size: 0.7rem;
  }

  .product-pstet-tab-nav button {
    padding: 0.52rem 0.56rem;
    font-size: 0.74rem;
  }

  .product-pstet-tab-panels {
    padding: 0.58rem 0.6rem;
  }

  .product-pstet-tab-panel p {
    font-size: 0.82rem;
  }

  .product-pstet-list li {
    font-size: 0.8rem;
  }

  .product-pstet-faq-item h5 {
    font-size: 0.84rem;
  }

  .product-pstet-faq-item p {
    font-size: 0.78rem;
  }

  .product-checkout-modal {
    padding: 0.6rem;
  }

  .product-checkout-dialog {
    width: 100%;
    max-height: 94vh;
    padding: 0.65rem 0.6rem 0.75rem;
  }

  .product-checkout-dialog h3 {
    font-size: 1.2rem;
  }

  .product-checkout-layout {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .product-checkout-left,
  .product-checkout-right {
    padding: 0.55rem;
  }

  .product-checkout-order-row {
    grid-template-columns: 68px minmax(0, 1fr);
  }

  .product-checkout-order-row img {
    width: 68px;
    height: 68px;
  }

  .product-checkout-token,
  .product-checkout-token-code {
    font-size: 0.8rem;
    padding: 0.16rem 0.45rem;
  }

  .checkout-wrap {
    width: 95%;
    margin-top: 6rem;
  }

  .checkout-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .checkout-card {
    padding: 0.78rem;
  }

  .checkout-card h2 {
    font-size: 1.05rem;
  }

  .checkout-product-row {
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 0.65rem;
  }

  .checkout-product-row img {
    width: 84px;
    height: 84px;
  }

  .checkout-product-row h3 {
    font-size: 1.04rem;
  }

  .checkout-product-row p {
    font-size: 0.82rem;
  }

  .checkout-product-row strong {
    font-size: 1.26rem;
    margin-top: 0.28rem;
  }

  .checkout-personal-grid {
    grid-template-columns: 1fr;
    gap: 0.36rem;
  }

  .checkout-personal-grid p {
    font-size: 0.86rem;
  }

  .checkout-payment-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .checkout-method {
    min-height: 46px;
    padding: 0.45rem 0.56rem;
  }

  .checkout-method span {
    font-size: 0.9rem;
  }

  .checkout-coupon-row strong {
    font-size: 0.86rem;
  }

  .checkout-help-text {
    font-size: 0.82rem;
  }

  .checkout-price-row span,
  .checkout-price-row strong {
    font-size: 0.9rem;
  }

  .checkout-price-row.total span,
  .checkout-price-row.total strong {
    font-size: 1.1rem;
  }

  .product-salient-item {
    font-size: 0.8rem;
    padding: 0.4rem 0.48rem;
  }

  .product-contact-card {
    padding: 0.42rem 0.48rem;
  }

  .product-contact-card p {
    font-size: 0.8rem;
  }

  .product-referral-code-input {
    font-size: 0.8rem;
    padding: 0.48rem 0.58rem;
  }

  .mock-wrap {
    width: 94%;
  }

  .lesson-wrap {
    width: 94%;
    margin-top: 0.8rem;
  }

  .mock-page-banner {
    padding: 0.45rem;
  }

  .mock-page-banner-image {
    max-height: 260px;
    object-fit: contain;
    border-radius: 12px;
  }

  .lesson-back-btn {
    padding: 0.24rem 0.44rem;
    font-size: 0.76rem;
  }

  .lesson-summary-card {
    grid-template-columns: 1fr;
  }

  .lesson-player-layout {
    grid-template-columns: 1fr;
  }

  .transcript-list {
    max-height: 320px;
  }

  .mock-filter-grid {
    grid-template-columns: 1fr;
  }

  .mock-filter-grid .field-span-2 {
    grid-column: span 1;
  }

  .mock-inline-check {
    margin-top: 0.2rem;
  }

  .mock-ref-code-input {
    min-width: 0;
    width: 100%;
  }

  .mock-chance-grid {
    grid-template-columns: 1fr;
  }

  .mock-refer-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .mock-refer-action-btn {
    min-width: 0;
    width: auto;
    padding: 0;
  }

  .mock-refer-action-icon {
    width: 20px;
    height: 20px;
  }

  .mock-refer-success-icon {
    width: 20px;
    height: 20px;
    font-size: 0.78rem;
  }

  .attempt-actions {
    gap: 0.4rem;
  }

  .attempt-language-toggle {
    display: flex;
    flex-wrap: wrap;
  }

  .attempt-question-panels {
    gap: 0.75rem;
  }

  .attempt-lesson-transcript {
    max-height: 220px;
  }

  .mock-lock-toast {
    right: 0.6rem;
    bottom: 0.6rem;
    width: calc(100vw - 1.2rem);
  }

  .attempt-main-btn {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    padding: 0.7rem 0.45rem;
    font-size: 0.92rem;
  }
}

@media (max-width: 980px) {
  .syllabus-hero,
  .syllabus-shell,
  .syllabus-columns,
  .syllabus-overview-grid,
  .syllabus-notes-grid {
    grid-template-columns: 1fr;
  }

  .syllabus-side-rail {
    position: static;
  }
}

@media (max-width: 680px) {
  .home-announcement {
    margin: 4.85rem 1rem 0.75rem;
    padding: 0;
    font-size: 0.92rem;
  }

  .home-announcement-track {
    min-width: 260%;
    padding: 0;
    font-size: 0.92rem;
  }

  .syllabus-hero-copy,
  .syllabus-summary-card,
  .syllabus-overview-card,
  .syllabus-side-rail,
  .syllabus-subject-card,
  .syllabus-note-card {
    border-radius: 18px;
  }

  .syllabus-table th,
  .syllabus-table td {
    padding: 0.72rem 0.8rem;
    font-size: 0.94rem;
  }
}

@media (min-width: 769px) {
  .attempt-question-panels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.admin-wrap {
  width: min(1120px, 94%);
  margin: 0.8rem auto 2rem;
}

.admin-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 100vh;
}

.admin-top-header {
  justify-content: flex-end;
}

.admin-main {
  min-width: 0;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  background: #fff;
  border-right: 1px solid var(--border);
  padding: 0.2rem 0.8rem 0.8rem;
}

.admin-sidebar-brand {
  display: block;
  width: 198px;
  margin: 0 0 0.65rem;
}

.admin-sidebar-brand img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.admin-sidebar-title {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 700;
}

.admin-sidebar-nav {
  display: grid;
  gap: 0.5rem;
}

.public-refer-wrap {
  width: min(1120px, 94%);
  margin: 0.9rem auto 2rem;
}

.public-refer-hero {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.public-refer-hero img {
  width: 100%;
  height: auto;
  display: block;
}

.public-refer-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  padding: 1rem;
}

.public-refer-card h1 {
  margin: 0;
  font-size: clamp(1.4rem, 2.8vw, 2rem);
}

.public-refer-card > p {
  margin: 0.25rem 0 0.9rem;
  color: var(--muted);
  font-weight: 600;
}

.public-refer-layout {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
  gap: 0.9rem;
  align-items: start;
}

.public-refer-table-wrap {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.public-refer-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 0;
  table-layout: fixed;
}

.public-refer-table th,
.public-refer-table td {
  padding: 0.65rem 0.72rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.public-refer-table th {
  background: #f2f7ff;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.public-refer-table tbody tr:nth-child(odd) {
  background: #fcfdff;
}

.public-refer-note {
  margin: 0.65rem 0 0;
  font-size: 0.82rem;
  color: #475569;
  line-height: 1.45;
}

.public-refer-top-earners {
  align-self: start;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  padding: 0.7rem 0.7rem 0.65rem;
}

.public-refer-top-earners h3 {
  margin: 0 0 0.55rem;
  font-size: 1rem;
}

.public-earners-scroll {
  max-height: 420px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
}

.public-earners-track {
  display: block;
}

.public-earners-list {
  margin: 0;
  padding: 0;
  list-style-position: inside;
}

.public-earners-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
}

.public-earners-list li:nth-child(odd) {
  background: #fbfdff;
}

.public-earners-list li:last-child {
  border-bottom: 0;
}

.public-earners-list strong {
  color: #0f53bd;
  white-space: nowrap;
}

@media (max-width: 680px) {
  .public-refer-wrap {
    width: 94%;
    margin-top: 4.4rem;
  }

  .public-refer-card {
    padding: 0.8rem;
  }

  .public-refer-layout {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .public-refer-top-earners {
    order: 2;
    width: 100%;
    margin: 0 auto;
    padding: 0.6rem;
  }

  .public-refer-card {
    order: 1;
  }

  .has-real-earners .public-refer-top-earners {
    order: 1;
  }

  .has-real-earners .public-refer-card {
    order: 2;
  }

  .public-earners-scroll {
    max-height: 300px;
  }

  .public-refer-table-wrap {
    overflow-x: visible;
  }

  .public-refer-table {
    min-width: 0;
    table-layout: fixed;
  }

  .public-refer-table th,
  .public-refer-table td {
    padding: 0.5rem 0.38rem;
    font-size: 0.74rem;
    white-space: normal;
    word-break: break-word;
  }

  .public-refer-table th:nth-child(1),
  .public-refer-table td:nth-child(1) {
    width: 46%;
  }

  .public-refer-table th:nth-child(2),
  .public-refer-table td:nth-child(2),
  .public-refer-table th:nth-child(3),
  .public-refer-table td:nth-child(3) {
    width: 27%;
    text-align: center;
  }

  .public-refer-note {
    margin-top: 0.55rem;
    font-size: 0.74rem;
  }
}

.admin-sidebar-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  padding: 0.55rem 0.65rem;
  font-weight: 700;
}

.admin-sidebar-link:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.admin-sidebar-link.active {
  background: var(--brand-soft);
  border-color: var(--brand);
  color: var(--brand);
}

.admin-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.admin-header-row h1 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.15;
}

.admin-subtitle {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

.admin-panel {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  padding: 1rem;
  margin-bottom: 1rem;
}

.admin-tabs {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.admin-tab-btn {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: #35507f;
  padding: 0.45rem 0.9rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.admin-tab-btn:focus {
  outline: none;
  box-shadow: none;
}

.admin-tab-btn:focus-visible {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(15, 83, 189, 0.14);
}

.admin-tab-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.admin-tab-btn.active {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.admin-tab-btn.saved {
  border-color: #2e8b57;
  color: #2e8b57;
}

.admin-tab-btn.saved.active {
  background: #2e8b57;
  color: #fff;
}

.admin-tab-panel {
  display: none;
}

.admin-tab-panel.active {
  display: block;
}

.tests-subtabs {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
  margin: 0.2rem 0 0.8rem;
}

.tests-subtab-btn {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: #35507f;
  padding: 0.38rem 0.82rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.tests-subtab-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.tests-subtab-btn.active {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: #184b9f;
}

.lesson-question-bank {
  margin: 0.9rem 0 0.4rem;
  padding: 0.9rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
}

.tests-builder-workspace {
  margin: 0.9rem 0 0.4rem;
}

.tests-builder-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.tests-builder-tab-btn,
.question-bank-mode-btn {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: #35507f;
  padding: 0.4rem 0.82rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.tests-builder-tab-btn:hover,
.question-bank-mode-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.tests-builder-tab-btn.active,
.question-bank-mode-btn.active {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: #184b9f;
}

.tests-builder-tab-btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.tests-builder-tab-panel,
.question-bank-mode-panel {
  display: none;
}

.tests-builder-tab-panel.active,
.question-bank-mode-panel.active {
  display: block;
}

.question-bank-surface-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.question-bank-guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.question-bank-guide-card {
  border: 1px solid #d9e6ff;
  border-radius: 12px;
  background: #f8fbff;
  padding: 0.7rem 0.8rem;
}

.question-bank-guide-card h4 {
  margin: 0 0 0.32rem;
  font-size: 0.95rem;
  color: #184b9f;
}

.question-bank-guide-card p {
  margin: 0;
  color: #35507f;
  line-height: 1.5;
  font-size: 0.88rem;
}

.question-bank-mode-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}

.question-mode-toolbar {
  justify-content: flex-start;
}

.voice-type-btn {
  min-height: 38px;
  padding: 0.56rem 0.95rem;
  white-space: nowrap;
}

.voice-type-btn.is-recording {
  border-color: #cc2f45;
  background: #ffebef;
  color: #8b1730;
}

.voice-type-btn.is-recording:hover {
  transform: none;
  background: #ffe1e8;
}

.lesson-sticky-voice-tools {
  position: fixed;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  z-index: 1100;
}

.lesson-sticky-tool-btn {
  min-width: 112px;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(16, 38, 79, 0.16);
}

.admin-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
  margin-bottom: 1.25rem;
}

.overview-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  padding: 0.85rem 0.95rem;
}

.overview-card p {
  margin: 0;
}

.overview-k {
  color: var(--muted);
  font-size: 0.85rem;
}

.overview-v {
  margin-top: 0.15rem !important;
  font-size: 1.4rem;
  font-weight: 800;
}

.admin-panel h2 {
  margin: 0 0 0.8rem;
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
}

.admin-form {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.admin-form-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
}

.attachments-top-row {
  grid-template-columns: minmax(220px, 1.2fr) repeat(3, minmax(0, 1fr));
  align-items: start;
}

.attachments-filter-row {
  align-items: start;
}

.referral-link-row {
  grid-template-columns: 1fr;
}

.referral-link-field {
  gap: 0.45rem;
}

.referral-link-actions {
  display: flex;
  align-items: center;
}

.referral-id-text {
  margin: 0;
  font-size: 0.9rem;
  color: #35507f;
  font-weight: 600;
}

.referral-tabs {
  margin-bottom: 0.85rem;
}

.withdrawal-confirm-details {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #f8fbff;
  padding: 0.7rem 0.75rem;
}

.withdrawal-confirm-details p {
  margin: 0 0 0.38rem;
  color: #2b3f66;
  font-size: 0.92rem;
}

.withdrawal-confirm-details p:last-child {
  margin-bottom: 0;
}

.admin-field {
  display: grid;
  gap: 0.35rem;
}

.admin-field label {
  font-weight: 600;
  font-size: 0.86rem;
}

.admin-field input,
.admin-field textarea,
.admin-field select {
  width: 100%;
  min-width: 0;
  border: 1px solid #dcdcdc;
  border-radius: 10px;
  padding: 0.55rem 0.65rem;
  font: inherit;
}

.admin-field select {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lesson-top-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.lesson-preview-modal .lesson-preview-card {
  width: min(1080px, 96vw);
  max-height: 92vh;
}

.lesson-preview-modal .lesson-video {
  max-height: 360px;
}

.lesson-preview-modal .transcript-list {
  max-height: 360px;
}

.admin-field textarea {
  resize: vertical;
  min-height: 78px;
}

.admin-field.inline-check {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.admin-field.inline-check input {
  width: 16px;
  height: 16px;
}

.admin-actions {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  flex-wrap: wrap;
}

.product-form-step-actions {
  justify-content: flex-end;
  margin-top: 0.9rem;
}

.admin-addons-preview-shell {
  display: grid;
  gap: 0.75rem;
}

.admin-addon-card {
  display: grid;
  gap: 0.35rem;
}

.admin-addon-edit-row {
  display: flex;
  justify-content: flex-end;
}

.admin-addon-editor {
  display: none !important;
  margin-top: 0.15rem;
  padding-top: 0.55rem;
  border-top: 1px dashed #dbe6ff;
}

.admin-addon-card.is-editing .admin-addon-editor {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.admin-addon-editor .admin-form-row + .admin-form-row {
  margin-top: 0.55rem;
}

.admin-actions select {
  border: 1px solid #dcdcdc;
  border-radius: 10px;
  padding: 0.5rem 0.6rem;
  font: inherit;
  min-height: 38px;
  background: #fff;
}

.admin-actions .tts-compact-select {
  width: min(180px, 24vw);
}

.voice-progress-wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.55rem;
  align-items: center;
  margin-top: 0.3rem;
}

.voice-progress-track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: #e9edf6;
  overflow: hidden;
}

.voice-progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #1e66d1 0%, #5c9dff 100%);
  transition: width 0.2s ease;
}

.voice-progress-percent {
  font-size: 0.86rem;
  font-weight: 700;
  color: #174a9f;
  min-width: 42px;
  text-align: right;
}

.speaker-preview-btn {
  width: 38px;
  height: 38px;
  min-width: 38px;
  padding: 0;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
}

.btn-ghost {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--brand);
  padding: 0.66rem 0.95rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.global-back-btn {
  min-height: 38px;
  padding: 0.45rem 0.82rem;
  white-space: nowrap;
}

.global-back-btn:hover {
  background: #f4f8ff;
}

.admin-table-wrap {
  max-height: calc(var(--admin-table-head-size) + (var(--list-visible-items) * var(--admin-table-row-size)));
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.admin-table th,
.admin-table td {
  padding: 0.62rem 0.7rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f2f7ff;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.table-actions {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.admin-linked-summary {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.table-link-btn {
  border: 0;
  background: transparent;
  color: var(--brand);
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}

.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.admin-modal.hidden {
  display: none;
}

.admin-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.52);
}

.admin-modal-card {
  position: relative;
  width: min(920px, 96vw);
  max-height: min(82vh, 900px);
  overflow: auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.9rem;
}

.admin-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.admin-modal-head h3 {
  margin: 0;
}

.table-actions select {
  min-width: 170px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.35rem 0.45rem;
  font: inherit;
  background: #fff;
}

.table-btn {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  padding: 0.35rem 0.6rem;
  cursor: pointer;
  font-weight: 700;
}

.table-btn.edit {
  color: var(--brand);
}

.table-btn.delete {
  color: #d6336c;
}

.student-assignment-modal-card {
  width: min(760px, 96vw);
}

.student-assignment-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.8fr);
  gap: 0.8rem;
  margin-top: 0.9rem;
}

.student-assignment-toolbar label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  color: var(--text);
}

.student-assignment-toolbar input,
.student-assignment-toolbar select {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.62rem 0.75rem;
  font: inherit;
  background: #fff;
}

.student-assignment-list {
  margin-top: 0.9rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.7rem;
  display: grid;
  gap: 0.65rem;
  max-height: min(56vh, 460px);
  overflow-y: auto;
}

.student-assignment-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: flex-start;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  cursor: pointer;
  background: #fff;
}

.student-assignment-option:hover {
  border-color: rgba(31, 97, 205, 0.34);
  box-shadow: 0 12px 26px rgba(25, 78, 165, 0.08);
}

.student-assignment-option input {
  margin-top: 0.2rem;
}

.student-assignment-option-body {
  display: grid;
  gap: 0.2rem;
}

.student-assignment-option-body strong {
  color: var(--text);
}

.student-assignment-option-body span {
  color: var(--ui-card-muted);
  font-size: 0.92rem;
}

.student-assignment-empty {
  margin: 0;
  color: var(--ui-card-muted);
  text-align: center;
  padding: 1rem 0.5rem;
}

@media (max-width: 980px) {
  .admin-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-form-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .attachments-top-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .admin-overview {
    grid-template-columns: 1fr;
  }

  .admin-header-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-tabs {
    gap: 0.45rem;
  }

  .admin-tab-btn {
    width: 100%;
    text-align: center;
  }

  .admin-form-row {
    grid-template-columns: 1fr;
  }

  .attachments-top-row {
    grid-template-columns: 1fr;
  }

  .student-assignment-toolbar {
    grid-template-columns: 1fr;
  }

  .referral-link-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .tests-subtabs {
    gap: 0.4rem;
  }

  .tests-subtab-btn {
    width: 100%;
    text-align: center;
  }

  .tests-builder-tab-btn,
  .question-bank-mode-btn {
    width: 100%;
    text-align: center;
  }

  .question-bank-surface-head {
    flex-direction: column;
  }

  .question-bank-guide-grid {
    grid-template-columns: 1fr;
  }

  .admin-actions .tts-compact-select {
    width: min(160px, 44vw);
  }

  .voice-progress-wrap {
    grid-template-columns: 1fr;
  }

  .voice-progress-percent {
    text-align: left;
  }

  .lesson-sticky-voice-tools {
    right: 0.75rem;
    top: auto;
    bottom: 0.9rem;
    transform: none;
  }

  .lesson-sticky-tool-btn {
    min-width: 92px;
  }

  .lesson-preview-modal .lesson-preview-card {
    width: min(1080px, 94vw);
    padding: 0.95rem;
  }

  .lesson-preview-modal .lesson-video {
    max-height: 220px;
  }

  .lesson-preview-modal .transcript-list {
    max-height: 260px;
  }

  .preview-sync-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .preview-sync-offset-label {
    text-align: left;
  }

  .preview-line-sync-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .preview-manual-stretch-row {
    grid-template-columns: 1fr;
  }

  .preview-stretch-controls {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .transcript-full-paragraph {
    font-size: 0.98rem;
    line-height: 1.68;
  }

  .transcript-scroll-speed-row {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .lesson-side-stack {
    position: static;
    top: auto;
  }

  .lesson-ai-toolbar {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.95fr);
    align-items: end;
    gap: 0.45rem;
  }

  .lesson-ai-language-row {
    min-width: 0;
  }

  .lesson-ai-language-select {
    padding: 0.62rem 0.7rem;
    font-size: 0.88rem;
  }

  .lesson-ai-quick-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.35rem;
  }

  .lesson-ai-quick-actions .btn-secondary {
    min-width: 0;
    padding: 0.58rem 0.35rem;
    font-size: 0.72rem;
    line-height: 1.15;
    border-radius: 10px;
    white-space: normal;
  }

  .lesson-ai-thread-toggle {
    gap: 0.5rem;
    padding: 0.72rem 0.76rem;
  }

  .lesson-ai-voice-row {
    align-items: stretch;
  }

  .lesson-ai-voice-row .btn-secondary {
    min-width: 0;
    padding: 0.56rem 0.5rem;
    font-size: 0.74rem;
    border-radius: 10px;
  }

  .lesson-ai-voice-stop-btn {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
  }

  .lesson-ai-voice-state {
    width: 100%;
    justify-content: center;
    font-size: 0.76rem;
    min-height: 34px;
  }

  .lesson-ai-thread-order {
    flex-basis: 30px;
    min-width: 30px;
    width: 30px;
    height: 30px;
    font-size: 0.74rem;
  }

  .lesson-ai-thread-question {
    font-size: 0.88rem;
    line-height: 1.4;
  }

  .lesson-ai-thread-time,
  .lesson-ai-thread-answer-role {
    font-size: 0.7rem;
  }

  .lesson-ai-thread-chevron {
    flex-basis: 14px;
    font-size: 1rem;
  }

  .lesson-ai-form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .lesson-ai-form-actions .btn-primary {
    width: 100%;
  }
}

@media (max-width: 980px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .admin-sidebar-brand {
    width: 176px;
  }

  .admin-sidebar-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.mock-launcher-fab {
  position: fixed;
  right: 1.05rem;
  bottom: 1.05rem;
  width: 68px;
  height: 68px;
  border: 1px solid #e0b83a;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff4a8 0%, #f3d964 100%);
  box-shadow: 0 16px 34px rgba(201, 162, 34, 0.28);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  z-index: 1200;
}

.mock-launcher-fab img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.mock-launcher-fab:hover {
  transform: translateY(-2px);
}

@media (max-width: 680px) {
  .mock-launcher-fab {
    right: 0.8rem;
    bottom: 0.8rem;
    width: 58px;
    height: 58px;
  }

  .mock-launcher-fab img {
    width: 28px;
    height: 28px;
  }
}
.auth-alt-link {
  margin: 0.75rem 0 0;
  text-align: center;
  color: var(--ui-card-muted);
  font-size: 0.92rem;
}

.auth-alt-link a {
  color: var(--brand);
  font-weight: 700;
  text-decoration: none;
}

.auth-alt-link a:hover {
  text-decoration: underline;
}

.contact-query-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-bottom: 1.2rem;
}

.contact-query-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(180px, 0.7fr) auto;
  gap: 0.75rem;
  align-items: end;
}

.contact-query-layout {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 1rem;
}

.contact-query-list {
  display: grid;
  gap: 0.7rem;
  max-height: 78vh;
  overflow-y: auto;
}

.contact-query-item {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  padding: 0.9rem;
  text-align: left;
  cursor: pointer;
  display: grid;
  gap: 0.45rem;
}

.contact-query-item.active {
  border-color: rgba(31, 97, 205, 0.36);
  box-shadow: 0 14px 28px rgba(25, 78, 165, 0.12);
}

.contact-query-item p {
  margin: 0;
  color: var(--ui-card-muted);
  font-size: 0.92rem;
}

.contact-query-item-top,
.contact-query-item-bottom,
.contact-thread-header,
.contact-thread-status,
.contact-reply-actions,
.contact-thread-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.contact-query-item-bottom {
  color: var(--ui-card-muted);
  font-size: 0.82rem;
}

.contact-query-empty,
.contact-thread-empty {
  border: 1px dashed var(--border);
  border-radius: 14px;
  padding: 1rem;
  color: var(--ui-card-muted);
  background: #fff;
}

.contact-thread-content {
  display: grid;
  gap: 0.9rem;
}

.contact-thread-header h2 {
  margin: 0;
  font-size: 1.35rem;
}

.contact-messages-list {
  display: grid;
  gap: 0.75rem;
  max-height: 52vh;
  overflow-y: auto;
  padding-right: 0.2rem;
}

.contact-message-bubble {
  border-radius: 14px;
  padding: 0.9rem 1rem;
  background: #f6f8fd;
  border: 1px solid #dde6fb;
  display: grid;
  gap: 0.4rem;
}

.contact-message-bubble.admin {
  background: #eef5ff;
  border-color: #cfe0ff;
}

.contact-message-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.85rem;
}

.contact-message-email,
.contact-message-bubble p {
  margin: 0;
}

.contact-reply-form {
  display: grid;
  gap: 0.8rem;
}

.contact-reply-actions {
  align-items: end;
}

.contact-reply-actions .admin-field {
  flex: 1 1 auto;
}

.chip.warning {
  color: #8f5f00;
  background: #fff2cc;
}

.support-wrap {
  width: min(1220px, 94%);
  margin: 1rem auto 2.4rem;
}

.support-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: 1rem;
  align-items: start;
  margin-bottom: 1rem;
}

.support-hero h1 {
  margin: 0;
}

.support-hero p {
  margin: 0.35rem 0 0;
  color: var(--ui-card-muted);
}

.support-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.support-layout {
  display: grid;
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
  gap: 1rem;
}

.support-sidebar,
.support-main {
  display: grid;
  gap: 1rem;
}

.support-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem;
}

.support-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.support-card-head h2 {
  margin: 0;
  font-size: 1.1rem;
}

.support-card-head p {
  margin: 0.15rem 0 0;
  color: var(--ui-card-muted);
  font-size: 0.92rem;
}

.support-new-form,
.support-thread-card {
  display: grid;
  gap: 0.8rem;
}

.support-reply-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
}

.support-reply-footer p {
  margin: 0;
}

@media (max-width: 980px) {
  .contact-query-layout {
    grid-template-columns: 1fr;
  }

  .contact-query-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .contact-query-toolbar .admin-actions {
    grid-column: span 2;
  }

  .support-hero,
  .support-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .contact-query-overview {
    grid-template-columns: 1fr;
  }

  .contact-query-toolbar {
    grid-template-columns: 1fr;
  }

  .contact-query-toolbar .admin-actions {
    grid-column: span 1;
  }

  .contact-query-item-top,
  .contact-query-item-bottom,
  .contact-thread-header,
  .contact-thread-status,
  .contact-reply-actions,
  .contact-thread-controls,
  .contact-message-meta,
  .support-card-head,
  .support-reply-footer {
    flex-direction: column;
    align-items: flex-start;
  }

.support-hero-stats {
  grid-template-columns: 1fr;
  }
}

.site-header .nav-links a.nav-link-smart-tuitions::before,
.site-header .nav-links a[href="./smart-tuitions.html"]::before,
.site-header .nav-links a[href="./smart-tuitions"]::before {
  content: "" !important;
  display: inline-block;
  width: 18px;
  height: 18px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b4fbf' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='14' rx='2'/%3E%3Cpath d='M8 20h8'/%3E%3Cpath d='M12 16v4'/%3E%3Cpath d='M7 9h10'/%3E%3Cpath d='M7 12h6'/%3E%3C/svg%3E");
}

.smart-tuitions-main {
  padding-bottom: 3rem;
}

.smart-tuitions-banner-section {
  padding-top: 1rem;
  padding-bottom: 0.6rem;
}

.smart-tuitions-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 1.5rem;
  align-items: center;
  padding-top: 1.5rem;
}

.smart-tuitions-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.smart-tuitions-kicker-icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 14px;
  background: linear-gradient(135deg, #edf4ff 0%, #d8e8ff 100%);
  border: 1px solid #bfd4ff;
  box-shadow: 0 10px 22px rgba(27, 79, 191, 0.12);
  position: relative;
}

.smart-tuitions-kicker-icon::before,
.smart-tuitions-kicker-icon::after {
  content: "";
  position: absolute;
  background: #1b4fbf;
  border-radius: 999px;
}

.smart-tuitions-kicker-icon::before {
  width: 1rem;
  height: 0.16rem;
  left: 0.68rem;
  top: 0.84rem;
  box-shadow: 0 0.42rem 0 #1b4fbf, 0 0.84rem 0 #1b4fbf;
}

.smart-tuitions-kicker-icon::after {
  width: 0.24rem;
  height: 1rem;
  right: 0.76rem;
  top: 0.7rem;
}

.smart-tuitions-copy h1 {
  margin: 0;
  max-width: 14ch;
  font-size: clamp(2.5rem, 5vw, 4.3rem);
  line-height: 1.05;
}

.smart-tuitions-title span {
  display: block;
}

.smart-tuitions-title span:first-child {
  font-size: 0.82em;
  white-space: nowrap;
}

.smart-tuitions-title span:nth-child(2) {
  white-space: nowrap;
}

.smart-tuitions-lead {
  max-width: 62ch;
  margin: 1rem 0 0;
  color: var(--ui-card-muted);
  font-size: 1.08rem;
}

.smart-tuitions-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.35rem;
}

.smart-tuitions-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.2rem;
}

.smart-tuitions-highlights span,
.smart-tuitions-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.2rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid #cfe0ff;
  background: rgba(255, 255, 255, 0.88);
  color: #1b4fbf;
  font-weight: 600;
}

.smart-tuitions-hero-card {
  display: grid;
  gap: 1rem;
  padding: 1.2rem;
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(82, 146, 255, 0.2), transparent 35%),
    linear-gradient(180deg, #ffffff 0%, #edf4ff 100%);
  border: 1px solid #cfe0ff;
  box-shadow: 0 20px 44px rgba(31, 78, 176, 0.12);
}

.smart-tuitions-hero-top {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.smart-tuitions-banner {
  width: 100%;
  display: block;
  border-radius: 16px;
  border: 1px solid #d8e5ff;
  object-fit: cover;
  box-shadow: 0 18px 40px rgba(31, 78, 176, 0.16);
}

.smart-tuitions-hero-panel {
  padding: 1.15rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid #d8e5ff;
}

.smart-tuitions-hero-panel h2,
.smart-tuitions-support-card h2 {
  margin: 0;
  font-size: 1.25rem;
}

.smart-tuitions-hero-panel ul,
.smart-tuitions-support-card ul {
  margin: 0.85rem 0 0;
  padding-left: 1.1rem;
  color: var(--ui-card-muted);
}

.smart-tuitions-stats,
.smart-tuitions-class-grid,
.smart-tuitions-subject-grid,
.smart-tuitions-board-grid {
  display: grid;
  gap: 1rem;
}

.smart-tuitions-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.smart-tuitions-stats article {
  padding: 0.9rem 0.75rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #d8e5ff;
  text-align: center;
}

.smart-tuitions-stats strong {
  display: block;
  color: var(--brand);
  font-size: 1.45rem;
}

.smart-tuitions-stats span {
  color: var(--ui-card-muted);
  font-size: 0.92rem;
}

.smart-tuitions-class-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.smart-tuitions-class-card,
.smart-tuitions-subject-card,
.smart-tuitions-board-card {
  padding: 1.15rem;
}

.smart-tuitions-class-card h3,
.smart-tuitions-subject-card h3,
.smart-tuitions-board-card h3 {
  margin: 0 0 0.5rem;
}

.smart-tuitions-class-card p,
.smart-tuitions-subject-card p,
.smart-tuitions-board-card p,
.smart-tuitions-cta-card p {
  margin: 0;
  color: var(--ui-card-muted);
}

.smart-tuitions-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 1rem;
  align-items: start;
}

.smart-tuitions-left-heading {
  margin-bottom: 1rem;
}

.smart-tuitions-subject-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.smart-tuitions-support-card {
  padding: 1.2rem;
  border-radius: 22px;
  position: sticky;
  top: 110px;
}

.smart-tuitions-board-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.smart-tuitions-cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem;
  border-radius: 24px;
  background:
    radial-gradient(circle at left top, rgba(255, 123, 95, 0.14), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, #eef5ff 100%);
  border: 1px solid #cfe0ff;
}

.smart-tuitions-cta-card h2 {
  margin: 0 0 0.45rem;
}

.smart-tuitions-cta-card .smart-tuitions-actions {
  flex-shrink: 0;
  justify-content: flex-end;
}

.smart-tuitions-cta-card .smart-tuitions-actions .btn-primary,
.smart-tuitions-cta-card .smart-tuitions-actions .btn-secondary {
  min-width: 150px;
  text-align: center;
}

@media (max-width: 980px) {
  .smart-tuitions-hero,
  .smart-tuitions-layout,
  .smart-tuitions-cta-card {
    grid-template-columns: 1fr;
  }

  .smart-tuitions-class-grid,
  .smart-tuitions-board-grid {
    grid-template-columns: 1fr;
  }

  .smart-tuitions-support-card {
    position: static;
  }
}

@media (max-width: 680px) {
  .smart-tuitions-page .site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .smart-tuitions-page .brand {
    width: 108px;
    height: 34px;
    flex: 0 0 auto;
  }

  .smart-tuitions-page .header-right {
    flex: 1 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-left: auto;
    width: auto !important;
    min-width: max-content;
    overflow: visible;
    position: relative;
  }

  .smart-tuitions-page .home-header-tools {
    display: none !important;
  }

  .smart-tuitions-page .header-actions {
    display: inline-flex !important;
    align-items: center;
    justify-content: flex-end;
    gap: 0.45rem;
    margin-left: auto;
    visibility: visible;
    opacity: 1;
  }

  .smart-tuitions-page .mobile-search-btn,
  .smart-tuitions-page .menu-toggle {
    display: inline-flex !important;
    visibility: visible;
    opacity: 1;
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    background-color: #fff;
  }

  .smart-tuitions-page .menu-toggle span {
    display: block !important;
  }

  .smart-tuitions-page .top-login-btn {
    display: none !important;
  }

  .smart-tuitions-main {
    padding-top: 56px;
  }

  .smart-tuitions-banner-section {
    padding-top: 0.75rem;
    padding-bottom: 0.35rem;
  }

  .smart-tuitions-banner {
    border-radius: 12px;
  }

  .smart-tuitions-copy h1 {
    max-width: none;
    font-size: 2.35rem;
  }

  .smart-tuitions-title span:first-child,
  .smart-tuitions-title span:nth-child(2) {
    white-space: normal;
  }

  .smart-tuitions-hero {
    padding-top: 1.4rem;
  }

  .smart-tuitions-stats,
  .smart-tuitions-subject-grid {
    grid-template-columns: 1fr;
  }

  .smart-tuitions-hero-card,
  .smart-tuitions-cta-card {
    padding: 1rem;
  }

  .smart-tuitions-cta-card {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }

  .smart-tuitions-cta-card .smart-tuitions-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 0.65rem;
  }

  .smart-tuitions-cta-card .smart-tuitions-actions .btn-primary,
  .smart-tuitions-cta-card .smart-tuitions-actions .btn-secondary {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 0.7rem 0.45rem;
    font-size: 0.88rem;
    white-space: nowrap;
  }

  .smart-tuitions-cta-card > div:first-child {
    width: 100%;
  }
}
