/*
 * Mayna LMS — mobile-first. Base styles target small phones (320px+);
 * min-width breakpoints add tablet (600px) and desktop (1024px) layouts.
 * Everything is scoped to .mlms so the theme and the WooCommerce checkout are untouched.
 * Colours follow the site's theme variables (--oz-*) when present.
 */

.mlms {
  --mlms-accent: var(--oz-primary, #165dff);
  --mlms-accent-ink: #fff;
  --mlms-ink: var(--oz-dark, #0b1739);
  --mlms-text: #1f2937;
  --mlms-muted: #5b6475;
  --mlms-line: var(--oz-border, #dfe6f1);
  --mlms-bg: #fff;
  --mlms-soft: var(--oz-bg, #f4f7fc);
  --mlms-ok: #047857;
  --mlms-ok-bg: #e7f6ef;
  --mlms-warn: #92400e;
  --mlms-warn-bg: #fff4dc;
  --mlms-err: #b42318;
  --mlms-err-bg: #fdecea;
  --mlms-radius: 12px;
  --mlms-tap: 48px;
  --mlms-gap: 16px;
  color: var(--mlms-text);
  font-size: 16px;
  line-height: 1.55;
  overflow-wrap: anywhere;
  -webkit-text-size-adjust: 100%;
}
.mlms *, .mlms *::before, .mlms *::after { box-sizing: border-box; }
.mlms img, .mlms video { max-width: 100%; height: auto; }
.mlms :where(h1, h2, h3, p, ul, ol, dl, figure) { margin-top: 0; }

/* Page shell for our template: full width, comfortable gutters, no horizontal scroll. */
.mlms-page { width: 100% !important; max-width: 100%; float: none !important; }
.mlms-page .site-main { margin: 0; padding: 16px 0 32px; }
.mlms-body .site-content { display: block; }
.mlms-page .mlms { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.mlms-page .mlms.mlms-narrow, .mlms-narrow { max-width: 760px; margin: 0 auto; }

.mlms-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mlms-i { flex: none; width: 20px; height: 20px; vertical-align: middle; }
.mlms-muted { color: var(--mlms-muted); }

/* ---------- Typography ---------- */
.mlms-title { font-size: 1.625rem; line-height: 1.25; margin: 0 0 12px; color: var(--mlms-ink); }
.mlms-h2 { font-size: 1.25rem; line-height: 1.3; margin: 0 0 12px; color: var(--mlms-ink); }
.mlms-h3 { font-size: 1.0625rem; line-height: 1.35; margin: 0 0 8px; color: var(--mlms-ink); }
.mlms-h3 a { color: inherit; text-decoration: none; }
.mlms-lead { font-size: 1.0625rem; color: var(--mlms-muted); margin: 0 0 16px; }
.mlms-prose { font-size: 1rem; }
.mlms-prose > :last-child { margin-bottom: 0; }
.mlms-prose img, .mlms-prose iframe { max-width: 100%; }
.mlms-prose table { display: block; max-width: 100%; overflow-x: auto; }
.mlms-prose pre { max-width: 100%; overflow-x: auto; white-space: pre-wrap; }

/* ---------- Buttons (min 48px touch targets) ---------- */
.mlms-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--mlms-tap); padding: 12px 20px;
  border: 2px solid var(--mlms-accent); border-radius: 10px;
  background: var(--mlms-accent); color: var(--mlms-accent-ink) !important;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2; text-align: center; text-decoration: none !important;
  cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  transition: filter .15s, transform .05s;
}
.mlms-btn:hover { filter: brightness(1.08); }
.mlms-btn:active { transform: translateY(1px); }
.mlms-btn:disabled, .mlms-btn[aria-busy="true"] { opacity: .65; cursor: progress; }
.mlms-btn-ghost { background: transparent; color: var(--mlms-accent) !important; }
.mlms-btn-sm { min-height: 40px; padding: 8px 14px; font-size: .9375rem; }
.mlms-btn-lg { min-height: 56px; font-size: 1.0625rem; }
.mlms-btn-block { display: flex; width: 100%; }
.mlms-btn.is-locked { background: var(--mlms-soft); border-color: var(--mlms-line); color: var(--mlms-muted) !important; cursor: not-allowed; }
.mlms-btn.is-done { background: var(--mlms-ok); border-color: var(--mlms-ok); }
.mlms-inline-form { margin: 0; }

.mlms a:focus-visible, .mlms button:focus-visible, .mlms summary:focus-visible, .mlms input:focus-visible, .mlms textarea:focus-visible {
  outline: 3px solid var(--mlms-accent); outline-offset: 2px;
}

/* ---------- Cards, alerts, badges ---------- */
.mlms-card { background: var(--mlms-bg); border: 1px solid var(--mlms-line); border-radius: var(--mlms-radius); padding: 16px; margin: 0 0 var(--mlms-gap); }
.mlms-alert { border-radius: 10px; padding: 12px 16px; margin: 0 0 var(--mlms-gap); border: 1px solid transparent; }
.mlms-alert.is-success { background: var(--mlms-ok-bg); color: var(--mlms-ok); border-color: #b9e5d1; }
.mlms-alert.is-error { background: var(--mlms-err-bg); color: var(--mlms-err); border-color: #f5c2bd; }
.mlms-gate { text-align: center; padding: 24px 16px; }
.mlms-gate > .mlms-i { width: 32px; height: 32px; color: var(--mlms-muted); margin-bottom: 8px; }
.mlms-gate .mlms-btn { margin-top: 8px; }
.mlms-empty { text-align: center; padding: 24px 16px; }
.mlms-badge { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: .875rem; font-weight: 700; background: var(--mlms-soft); color: var(--mlms-ink); }
.mlms-badge.is-requested { background: var(--mlms-warn-bg); color: var(--mlms-warn); }
.mlms-badge.is-printed, .mlms-badge.is-shipped { background: #e6efff; color: #1d4ed8; }
.mlms-badge.is-delivered { background: var(--mlms-ok-bg); color: var(--mlms-ok); }
.mlms-dl { display: grid; grid-template-columns: 1fr; gap: 2px 16px; margin: 0 0 16px; }
.mlms-dl dt { font-size: .875rem; color: var(--mlms-muted); margin-top: 8px; }
.mlms-dl dd { margin: 0; font-weight: 600; }

.mlms-crumb { margin: 0 0 12px; }
.mlms-crumb a { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; color: var(--mlms-muted); text-decoration: none; font-weight: 600; }
.mlms-crumb a:hover { color: var(--mlms-accent); }

/* ---------- Progress bar ---------- */
.mlms-bar { height: 10px; border-radius: 999px; background: #e8edf5; overflow: hidden; }
.mlms-bar span { display: block; height: 100%; min-width: 0; background: var(--mlms-accent); border-radius: inherit; transition: width .4s ease; }
.mlms-pct { margin: 8px 0 16px; font-weight: 700; color: var(--mlms-ink); }

/* ---------- Course page ---------- */
.mlms-hero { display: grid; gap: 16px; margin: 0 0 24px; }
.mlms-hero-media { border-radius: var(--mlms-radius); overflow: hidden; background: var(--mlms-soft); aspect-ratio: 16 / 9; }
.mlms-hero-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mlms-chips { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.mlms-chips li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--mlms-soft); font-size: .9375rem; font-weight: 600; color: var(--mlms-ink); }
.mlms-chips .mlms-i { width: 18px; height: 18px; color: var(--mlms-accent); }

.mlms-course-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.mlms-section { margin: 0 0 32px; }
.mlms-checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.mlms-checklist li { display: flex; gap: 10px; align-items: flex-start; }
.mlms-checklist .mlms-i { color: var(--mlms-ok); margin-top: 2px; }

.mlms-buy .mlms-price { font-size: 2rem; font-weight: 800; color: var(--mlms-ink); margin: 0 0 12px; line-height: 1.1; }
.mlms-includes { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.mlms-includes li { display: flex; gap: 10px; align-items: flex-start; font-size: .9375rem; }
.mlms-includes .mlms-i { color: var(--mlms-accent); margin-top: 1px; }

/* Sticky "Buy now" bar on phones and tablets. */
.mlms-buybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 999;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: var(--mlms-bg); border-top: 1px solid var(--mlms-line); box-shadow: 0 -6px 20px rgba(15, 23, 42, .08);
}
.mlms-buybar-price { display: grid; line-height: 1.2; min-width: 0; }
.mlms-buybar-price strong { font-size: 1.25rem; color: var(--mlms-ink); }
.mlms-buybar-price span { font-size: .875rem; color: var(--mlms-muted); }
.mlms-buybar .mlms-btn { flex: none; min-width: 140px; }
.mlms-course.has-buybar { padding-bottom: 88px; }

.mlms-instructor { display: flex; gap: 12px; align-items: flex-start; }
.mlms-instructor p { margin: 4px 0 0; color: var(--mlms-muted); }
.mlms-avatar { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--mlms-accent); color: #fff; font-weight: 800; font-size: 1.25rem; }

/* Status card + steps */
.mlms-status-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.mlms-status-head .mlms-h3 { margin: 0; }
.mlms-steps { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.mlms-steps li { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 10px; background: var(--mlms-soft); }
.mlms-steps li > div { display: grid; min-width: 0; }
.mlms-steps small { color: var(--mlms-muted); font-size: .875rem; }
.mlms-steps .is-done .mlms-i { color: var(--mlms-ok); }
.mlms-steps .is-current .mlms-i { color: var(--mlms-accent); }
.mlms-steps .is-locked { color: var(--mlms-muted); }

/* ---------- Curriculum accordion (native <details>: works by touch, keyboard, no JS) ---------- */
.mlms-curriculum { display: grid; gap: 8px; }
.mlms-module { border: 1px solid var(--mlms-line); border-radius: var(--mlms-radius); background: var(--mlms-bg); overflow: hidden; }
.mlms-module > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px;
  min-height: 56px; padding: 12px 16px; font-weight: 700; color: var(--mlms-ink); background: var(--mlms-soft);
}
.mlms-module > summary::-webkit-details-marker { display: none; }
.mlms-module > summary::before {
  content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(-45deg); transition: transform .15s;
}
.mlms-module[open] > summary::before { transform: rotate(45deg); }
.mlms-module-title { flex: 1; min-width: 0; }
.mlms-module-meta { flex: none; font-size: .875rem; font-weight: 600; color: var(--mlms-muted); }
.mlms-lessons { list-style: none; margin: 0; padding: 0; }
.mlms-lesson + .mlms-lesson { border-top: 1px solid var(--mlms-line); }
.mlms-lesson > a, .mlms-lesson-row { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 16px; color: var(--mlms-text); text-decoration: none; }
.mlms-lesson > a:hover { background: var(--mlms-soft); }
.mlms-lesson-icon { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--mlms-soft); color: var(--mlms-muted); }
.mlms-lesson-icon .mlms-i { width: 16px; height: 16px; }
.mlms-lesson-name { flex: 1; min-width: 0; }
.mlms-lesson-n { color: var(--mlms-muted); }
.mlms-lesson-dur { flex: none; font-size: .875rem; color: var(--mlms-muted); }
.mlms-lesson.is-done .mlms-lesson-icon { background: var(--mlms-ok-bg); color: var(--mlms-ok); }
.mlms-lesson.is-current .mlms-lesson-icon, .mlms-lesson.is-open .mlms-lesson-icon { background: var(--mlms-accent); color: #fff; }
.mlms-lesson.is-locked, .mlms-lesson.is-preview { color: var(--mlms-muted); }
.mlms-lesson.is-active { background: #eef3ff; box-shadow: inset 4px 0 0 var(--mlms-accent); }
.mlms-lesson.is-active .mlms-lesson-name { font-weight: 700; color: var(--mlms-ink); }

/* ---------- Lesson page ---------- */
.mlms-lesson-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.mlms-player { position: relative; margin: 0 -16px 16px; background: #000; aspect-ratio: 16 / 9; }
.mlms-player video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
.mlms-lesson-title { font-size: 1.375rem; line-height: 1.3; margin: 0 0 4px; color: var(--mlms-ink); }
.mlms-lesson-meta { margin: 0 0 16px; color: var(--mlms-muted); font-size: .9375rem; }
.mlms-lesson-progress { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; margin: 0 0 16px; }
.mlms-progress-text { font-weight: 700; font-size: .9375rem; color: var(--mlms-ink); white-space: nowrap; }
.mlms-hint { margin: 0 0 16px; padding: 12px 16px; border-radius: 10px; background: var(--mlms-soft); font-size: .9375rem; }
.mlms-hint.is-done { background: var(--mlms-ok-bg); color: var(--mlms-ok); font-weight: 600; }
.mlms-hint.is-flash { animation: mlms-flash .9s; }
@keyframes mlms-flash { 30% { background: var(--mlms-warn-bg); color: var(--mlms-warn); } }
.mlms-done-pill { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px; padding: 8px 14px; border-radius: 999px; background: var(--mlms-ok-bg); color: var(--mlms-ok); font-weight: 700; }
[data-mlms-complete] { margin: 0 0 16px; }
.mlms-lesson-body { margin: 8px 0 24px; }
.mlms-quiz-card { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.mlms-quiz-card > div { display: grid; flex: 1; min-width: 160px; }
.mlms-quiz-card small { color: var(--mlms-muted); }
.mlms-quiz-card > .mlms-i { width: 28px; height: 28px; color: var(--mlms-accent); }
.mlms-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 8px 0 0; }
.mlms-pager .mlms-btn { width: 100%; padding-left: 12px; padding-right: 12px; }
.mlms-side-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.mlms-side-head .mlms-h3 { margin: 0; }
.mlms-lesson-side > .mlms-bar { margin-bottom: 12px; }

/* ---------- Exam & quiz ---------- */
.mlms-q { border: 1px solid var(--mlms-line); border-radius: var(--mlms-radius); background: var(--mlms-bg); margin: 0 0 16px; padding: 16px; min-width: 0; }
.mlms-q legend { display: flex; gap: 10px; align-items: flex-start; padding: 0; margin: 0 0 12px; font-weight: 700; color: var(--mlms-ink); float: left; width: 100%; }
.mlms-q legend + * { clear: left; }
.mlms-qn { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--mlms-accent); color: #fff; font-size: .875rem; }
.mlms-opt { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 14px; margin: 0 0 8px; border: 2px solid var(--mlms-line); border-radius: 10px; cursor: pointer; }
.mlms-opt:last-child { margin-bottom: 0; }
.mlms-opt input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--mlms-accent); }
.mlms-opt:has(input:checked) { border-color: var(--mlms-accent); background: #eef3ff; }
.mlms-result { text-align: center; padding: 24px 16px; }
.mlms-score { font-size: 3rem; font-weight: 800; line-height: 1; margin-bottom: 8px; }
.mlms-result.is-pass .mlms-score { color: var(--mlms-ok); }
.mlms-result.is-fail .mlms-score { color: var(--mlms-err); }
.mlms-review { list-style: none; margin: 0 0 16px; padding: 0; }
.mlms-review-q { font-weight: 700; color: var(--mlms-ink); }
.mlms-review ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mlms-review ul li { padding: 8px 12px; border-radius: 8px; background: var(--mlms-soft); }
.mlms-review li.is-answer { background: var(--mlms-ok-bg); color: var(--mlms-ok); font-weight: 600; }
.mlms-review li.is-chosen { background: var(--mlms-err-bg); color: var(--mlms-err); }
.mlms-review > li.is-right { border-left: 4px solid var(--mlms-ok); }
.mlms-review > li.is-wrong { border-left: 4px solid var(--mlms-err); }

/* ---------- Forms ---------- */
.mlms-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.mlms-field { display: grid; gap: 6px; margin: 0; }
.mlms-field > span { font-weight: 600; font-size: .9375rem; color: var(--mlms-ink); }
.mlms-field input, .mlms-field textarea {
  width: 100%; min-height: var(--mlms-tap); padding: 10px 14px; border: 1px solid #c3cbd8; border-radius: 10px;
  background: #fff; color: var(--mlms-text); font: inherit; font-size: 16px; /* 16px stops iOS/Android zoom-on-focus */
}
.mlms-verify { display: grid; gap: 12px; margin-bottom: 16px; }

/* ---------- Dashboard ---------- */
.mlms-dash { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.mlms-dash-nav ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mlms-dash-nav a {
  display: flex; align-items: center; gap: 8px; min-height: var(--mlms-tap); padding: 10px 12px;
  border: 1px solid var(--mlms-line); border-radius: 10px; background: var(--mlms-bg); color: var(--mlms-ink); text-decoration: none; font-weight: 600;
}
.mlms-dash-nav a[aria-current="page"] { background: var(--mlms-accent); border-color: var(--mlms-accent); color: #fff; }
.mlms-dash-nav a span:not(.mlms-count) { flex: 1; min-width: 0; }
.mlms-count { flex: none; min-width: 24px; padding: 0 6px; border-radius: 999px; background: var(--mlms-soft); color: var(--mlms-ink); font-size: .8125rem; text-align: center; }
.mlms-dash-nav a[aria-current="page"] .mlms-count { background: rgba(255, 255, 255, .25); color: #fff; }
.mlms-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 24px; }
.mlms-stat { display: grid; justify-items: start; gap: 2px; padding: 12px; border: 1px solid var(--mlms-line); border-radius: var(--mlms-radius); background: var(--mlms-bg); color: var(--mlms-muted); text-decoration: none; font-size: .8125rem; }
.mlms-stat strong { font-size: 1.5rem; line-height: 1.1; color: var(--mlms-ink); }
.mlms-stat .mlms-i { color: var(--mlms-accent); }

.mlms-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin: 0 0 24px; }
.mlms-grid > .mlms-card { margin: 0; }
.mlms-course-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.mlms-course-card-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: var(--mlms-soft); }
.mlms-course-card-body { padding: 16px; display: grid; gap: 8px; flex: 1; align-content: start; }
.mlms-course-card-body p { margin: 0; }
.mlms-course-card-body .mlms-btn { margin-top: 4px; align-self: end; }

/* ---------- Catalogue ---------- */
.mlms-catalog-head { margin: 0 0 16px; }
.mlms-ccard { padding: 0; overflow: hidden; }
.mlms-ccard-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.mlms-ccard-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: var(--mlms-soft); }
.mlms-ccard-body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.mlms-ccard-body p { margin: 0; }
.mlms-ccard-meta { font-size: .875rem; color: var(--mlms-muted); }
.mlms-ccard-foot { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mlms-price-sm { font-weight: 800; font-size: 1.125rem; color: var(--mlms-ink); }
.mlms-ccard-link:hover .mlms-h3 { color: var(--mlms-accent); }
.mlms-pagination ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 24px; justify-content: center; }
.mlms-pagination a, .mlms-pagination span { display: grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 12px; border: 1px solid var(--mlms-line); border-radius: 10px; text-decoration: none; }
.mlms-pagination .current { background: var(--mlms-accent); color: #fff; border-color: var(--mlms-accent); }

/* ---------- Large phones / tablets: 600px+ ---------- */
@media (min-width: 600px) {
  .mlms-title { font-size: 2rem; }
  .mlms-card { padding: 20px; }
  .mlms-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mlms-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mlms-form .mlms-wide { grid-column: 1 / -1; }
  .mlms-dash-nav ul { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .mlms-dl { grid-template-columns: max-content 1fr; }
  .mlms-dl dt { margin-top: 0; }
  .mlms-player { margin: 0 0 16px; border-radius: var(--mlms-radius); overflow: hidden; }
  .mlms-pager { display: flex; justify-content: space-between; }
  .mlms-pager .mlms-btn { width: auto; min-width: 180px; }
}

/* ---------- Laptop / desktop: 1024px+ ---------- */
@media (min-width: 1024px) {
  .mlms-hero { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: 32px; }
  .mlms-hero-body { order: -1; }
  .mlms-title { font-size: 2.25rem; }
  .mlms-course-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
  .mlms-course-aside { position: sticky; top: 96px; }
  .mlms-buybar { display: none; }
  .mlms-course.has-buybar { padding-bottom: 0; }
  .mlms-lesson-layout { grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
  .mlms-lesson-side { position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow-y: auto; overscroll-behavior: contain; padding-right: 4px; }
  .mlms-lesson-title { font-size: 1.75rem; }
  .mlms-dash { grid-template-columns: 240px minmax(0, 1fr); gap: 32px; align-items: start; }
  .mlms-dash-nav { position: sticky; top: 96px; }
  .mlms-dash-nav ul { grid-template-columns: 1fr; }
  .mlms-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mlms-dash .mlms-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Large desktop: 1440px+ ---------- */
@media (min-width: 1440px) {
  .mlms-page .mlms { max-width: 1320px; }
  .mlms-dash .mlms-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- Very small phones (under 360px) ---------- */
@media (max-width: 359px) {
  .mlms-page .mlms { padding: 0 12px; }
  .mlms-player { margin: 0 -12px 16px; }
  .mlms-stats { grid-template-columns: 1fr; }
  .mlms-buybar .mlms-btn { min-width: 0; padding: 12px 14px; }
  .mlms-pager { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .mlms *, .mlms *::before { transition: none !important; animation: none !important; }
}
