/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f7f7f9;
  color: #1f2933;
}

a {
  color: #0f6be7;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Topnav polish */
/* (Removed older duplicate topnav block) */

.form-alert {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #991b1b;
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
}

.form-alert__icon {
  font-size: 20px;
  line-height: 1.2;
}

.form-alert__body {
  display: grid;
  gap: 6px;
}

.form-alert__title {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.form-alert__subtitle,
.form-alert__hint {
  margin: 0;
  color: #991b1b;
  opacity: 0.85;
}

.form-alert__list {
  margin: 0;
  padding-left: 18px;
  color: #991b1b;
}

.form-alert__actions {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.topnav__links a.is-active,
.topnav__links a.active {
  background: rgba(15, 107, 231, 0.12);
  color: #0f172a;
  box-shadow: 0 1px 2px rgba(15, 107, 231, 0.16);
}

.topnav__badge-slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  min-width: 18px;
  min-height: 20px;
}

.form-banner {
  position: sticky;
  top: 72px;
  z-index: 15;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #991b1b;
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
}

.form-banner__icon {
  font-size: 20px;
  line-height: 1.2;
}

.form-banner__body {
  display: grid;
  gap: 4px;
}

.form-banner__title {
  margin: 0;
  font-weight: 800;
}

.form-banner__text {
  margin: 0;
  font-weight: 600;
}

.form-banner__hint {
  margin: 0;
  color: #991b1b;
  opacity: 0.9;
}

.form-banner__actions {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.form-banner--error .btn-ghost {
  border-color: #fecaca;
  color: #991b1b;
}

#lesson-media-list {
  scroll-margin-top: 120px;
}
.topnav__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 7px;
  border-radius: 999px;
  background: #0f6be7;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(15, 107, 231, 0.2);
}

.topnav__right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topnav__user {
  display: grid;
  gap: 2px;
  text-align: right;
}

.topnav__signedin {
  font-size: 0.85rem;
  color: #6b7280;
  letter-spacing: 0.01em;
}

.topnav__email {
  font-weight: 700;
  color: #111827;
  font-size: 0.95rem;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #0f6be7;
  color: #fff;
}

.nav a {
  color: #111827;
  margin-right: 12px;
  font-weight: 600;
  padding: 6px 8px;
  border-radius: 10px;
  opacity: 1;
  visibility: visible;
}

.nav-right span {
  margin-right: 12px;
}

.inline-form {
  display: inline;
}

.page {
  margin: 0;
  padding: 16px 0 28px;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.flash {
  margin: 12px 16px;
  padding: 10px 12px;
  border-radius: 6px;
  background: #e8eefc;
  color: #0b3c8a;
}


.flash-alert {
  background: #fdecea;
  color: #b71c1c;
}

.flash-notice {
  background: #e8f5e9;
  color: #1b5e20;
}

.btn {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #0f6be7;
  background: #0f6be7;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.btn.secondary {
  background: #fff;
  color: #0f6be7;
  border-color: #d1d5db;
}

.card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.card-title {
  margin: 6px 0;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.card-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.card-actions {
  margin-top: 8px;
}

.muted {
  color: #6b7280;
  font-size: 0.9em;
}

.video-embed {
  margin: 12px 0;
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.locked-player {
  border: 1px dashed #cbd5e1;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #e2e8f0;
  border-radius: 16px;
  display: grid;
  place-items: center;
  min-height: 240px;
  padding: 20px;
}

.locked-player__content {
  text-align: center;
  display: grid;
  gap: 8px;
}

.locked-icon {
  font-size: 2rem;
}

.up-next-card {
  display: flex;
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  background: #fff;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.up-next-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.up-next-thumb {
  width: 120px;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  background-color: #0f172a;
  position: relative;
  overflow: hidden;
}

.up-next-text {
  display: grid;
  gap: 4px;
  align-content: center;
}

.up-next-title {
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.3;
}

.up-next-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

/* Watch page layout */
.watch-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.watch-main {
  display: grid;
  gap: 12px;
}

.watch-sidebar {
  display: grid;
  gap: 10px;
}

.watch-sidebar.sticky {
  position: sticky;
  top: 90px;
}

.player-card {
  padding: 0;
  overflow: hidden;
  border-radius: 14px;
}

.carousel {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}

.carousel-track {
  display: flex;
  transition: transform 0.35s ease;
  width: 100%;
}

.carousel-slide {
  min-width: 100%;
  width: 100%;
  flex-shrink: 0;
  padding: 0px;
  box-sizing: border-box;
}

.carousel-slide.is-active {
  opacity: 1;
}

.carousel-media.video {
  position: relative;
}

.carousel-media.image {
  display: grid;
  place-items: center;
}

.carousel-media.image img {
  max-width: 100%;
  max-height: 520px;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(17, 24, 39, 0.08);
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 20px rgba(17, 24, 39, 0.12);
  cursor: pointer;
  transition: all 0.2s ease;
}

.carousel-arrow:hover {
  background: #fff;
  transform: translateY(-50%) translateY(-1px);
}

.carousel-arrow.left {
  left: 12px;
}

.carousel-arrow.right {
  right: 12px;
}

.carousel-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 12px;
  padding-bottom: 8px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #e2e8f0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.carousel-dot.active {
  background: #2563eb;
  border-color: #2563eb;
}

.ig-carousel .ig-frame {
  position: relative;
  background: #0f172a;
  min-height: 320px;
  max-height: min(60vh, 520px);
  display: grid;
  width: 100%;
  align-items: stretch;
  justify-items: stretch;
  overflow: hidden;
}

.ig-carousel .player-frame,
.ig-carousel iframe {
  border-radius: 14px;
}

.ig-counter {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 10px;
  background: rgba(15, 23, 42, 0.55);
  color: #fff;
  border-radius: 999px;
  font-size: 12px;
  backdrop-filter: blur(6px);
}

.ig-dots {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 10px 0 12px;
}

.ig-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #e2e8f0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ig-dot.active {
  background: #2563eb;
  border-color: #2563eb;
}

.ig-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 20px rgba(17, 24, 39, 0.12);
  cursor: pointer;
  transition: all 0.2s ease;
}

.ig-arrow:hover {
  background: #fff;
  transform: translateY(-50%) translateY(-1px);
}

.ig-arrow.left { left: 12px; }
.ig-arrow.right { right: 12px; }

.player-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 320px;
  overflow: hidden;
  border-radius: 14px;
  background: #000;
}

.player-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-poster {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.video-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}

.video-inline-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  background: transparent;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  z-index: 3;
}

.video-play-icon {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 2;
}

.video-play-icon::before {
  content: "";
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
}

.video-play-icon::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 18px solid #fff;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  margin-left: 6px;
}

.video-poster__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.55));
  border-radius: inherit;
}

.video-poster__label {
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1px;
}

/* Hide native controls until we explicitly show them */
video[data-inline-video]:not([controls])::-webkit-media-controls {
  display: none !important;
}
video[data-inline-video]:not([controls])::-moz-media-controls {
  display: none !important;
}

.meta-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.meta-info {
  display: grid;
  gap: 6px;
}

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

.action-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.watch-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.watch-actions {
  align-items: center;
  justify-content: flex-end;
}

.tiny-label {
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  margin: 0;
}

.about-body {
  position: relative;
}

.about-body.about-collapsed {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.about-card {
  display: grid;
  gap: 6px;
}

.strong-link {
  color: inherit;
  font-weight: 700;
  text-decoration: none;
}

.strong-link:hover {
  color: var(--primary);
}

.comments-card {
  display: grid;
  gap: 8px;
}

.comment-form .card-actions {
  justify-content: flex-end;
}

@media (min-width: 992px) {
  .watch-layout {
    grid-template-columns: 2fr 1fr;
    align-items: start;
  }
}

.video-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: grid;
  grid-template-rows: auto 1fr;
  text-decoration: none;
  color: inherit;
}

.video-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #dbeafe;
}

.video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  background-color: #0f172a;
}

.thumb-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 2rem;
  opacity: 0.8;
}

.thumb-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 8px;
  pointer-events: none;
}

.video-meta {
  padding: 10px 12px 12px;
  display: grid;
  gap: 4px;
}

.video-title {
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.3;
}

.video-subtitle {
  color: var(--muted);
  font-size: 0.9rem;
}

.video-info {
  color: var(--muted);
  font-size: 0.85rem;
}

.video-snippet {
  color: var(--muted);
  font-size: 0.9rem;
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.8em;
  font-weight: 600;
  margin-bottom: 6px;
}

.badge-locked {
  background: #fdecea;
  color: #b71c1c;
}

.badge-open {
  background: #e8f5e9;
  color: #1b5e20;
}

.pills {
  display: flex;
  gap: 8px;
  margin: 12px 0 20px 0;
  flex-wrap: wrap;
}

.pill {
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef2ff;
  color: #312e81;
  font-weight: 600;
}

.pill-group a {
  margin-left: 6px;
}

.section {
  margin-top: 20px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.lesson-card .card-actions {
  display: flex;
  justify-content: flex-start;
}

.testing-panel {
  margin-top: 24px;
}

.search-bar {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  margin: 12px 0 24px 0;
}

.search-bar .input {
  flex: 1;
  max-width: 480px;
  padding: 12px 14px;
  border-radius: 12px;
}

.search-bar .btn {
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 700;
}

.search-header h1 {
  margin: 0;
}

.page-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 16px;
  text-align: center;
}

.search-header {
  margin-bottom: 24px;
}

.search-hint-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 24px;
  color: #64748b;
  max-width: 760px;
  margin: 0 auto;
}

.ig-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.ig-tile {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #0f172a;
  aspect-ratio: 3 / 4;
  box-shadow: var(--shadow-sm);
}

.ig-tile:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.tile-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.tile-link:focus-visible .ig-tile {
  outline: 3px solid rgba(37, 99, 235, 0.35);
  outline-offset: 2px;
}

.ig-thumb {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.98);
}

.ig-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: end start;
  padding: 12px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.25) 45%, rgba(0, 0, 0, 0) 100%);
  color: #fff;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.ig-tile:hover .ig-overlay,
.ig-tile:focus-within .ig-overlay {
  opacity: 1;
}

.ig-overlay h3 {
  margin: 0 0 4px 0;
  font-size: 1.05rem;
}

.ig-overlay .muted {
  color: #e2e8f0;
}

.ig-tile.is-locked .ig-overlay {
  opacity: 1;
  backdrop-filter: blur(2px);
  align-items: center;
  justify-items: start;
  place-content: center;
  background: rgba(0, 0, 0, 0.6);
}

.ig-tile.is-locked .ig-overlay p {
  margin-bottom: 8px;
}

.ig-tile .btn {
  border-radius: 10px;
}

.lesson-page {
  max-width: 1040px;
}

.lesson-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.lesson-hero-text .page-title {
  margin: 4px 0;
}

.lesson-hero-actions {
  display: flex;
  gap: 10px;
}

.lesson-watch-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.lesson-watch-main {
  display: grid;
  gap: 12px;
}

.lesson-watch-rail {
  display: grid;
  gap: 10px;
}

.watch-player {
  padding: 0;
}

.up-next-list {
  display: grid;
  gap: 10px;
}

@media (min-width: 992px) {
  .lesson-watch-layout {
    grid-template-columns: 2fr 1fr;
  }
}

.lesson-media-card {
  margin-top: 16px;
}

.comments-section {
  margin-top: 24px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.comment-list {
  display: grid;
  gap: 12px;
}

.comment-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  box-shadow: var(--shadow-sm);
}

.comment-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #e2e8f0;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #1f2937;
}

.coach-avatar {
  background: #dbeafe;
  color: #1d4ed8;
}

.comment-author {
  margin: 0;
  font-weight: 700;
}

.reply-list {
  margin-left: 12px;
  border-left: 2px solid var(--border);
  padding-left: 10px;
  display: grid;
  gap: 8px;
}

.reply-card {
  background: #f8fafc;
}

.comment-form-card {
  margin-top: 14px;
}

.comment-form {
  margin-top: 10px;
}

.empty-state {
  text-align: left;
}

/* Layout helpers */
.container {
  max-width: 1100px;
  margin: 24px auto;
  padding: 0 16px;
}

.page-header {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.page-header h1,
.page-header h2 {
  margin: 0 0 8px 0;
}

.page-header .muted {
  font-size: 0.95rem;
  color: #6b7280;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.muted {
  color: #6b7280;
}

.notification-unread {
  background: #f0f4ff;
}

.notification-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.notification-actor {
  display: grid;
  gap: 2px;
}

.btn {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #0f6be7;
  background: #0f6be7;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.btn:hover {
  text-decoration: none;
}

.btn.secondary,
.btn.btn-secondary {
  background: #fff;
  color: #0f6be7;
  border-color: #d1d5db;
}

.btn.primary,
.btn.btn-primary {
  background: #0f6be7;
  color: #fff;
}

.btn-link {
  background: transparent;
  border: none;
  color: #0f6be7;
  padding: 0;
}

.profile-header {
  max-width: 980px;
  margin: 0 auto;
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-meta h1 {
  margin: 0;
}

.profile-meta .muted {
  max-width: 720px;
}

.actions-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.actions-row .btn {
  min-width: 120px;
}

.coach-bio {
  color: #6b7280;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

.coaches-page {
  padding: 24px 0 48px;
}

.coaches-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.coaches-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.coaches-search-form {
  display: flex;
  flex: 1;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.coaches-search-input {
  flex: 1;
  min-width: 260px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.coaches-search-input .input {
  flex: 1;
}

.coaches-sort {
  min-width: 180px;
}

.coaches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.coach-card {
  display: grid;
  gap: 10px;
}

.coach-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar-circle {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: #e0e7ff;
  color: #312e81;
  display: grid;
  place-items: center;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.coach-card__meta .coach-name {
  font-weight: 800;
  letter-spacing: -0.01em;
}
.coach-card__headline {
  color: #1f2937;
  font-weight: 600;
  font-size: 0.95rem;
}
.coach-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.avatar-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  background: #eef2ff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.avatar-fallback {
  font-weight: 600;
  color: #4f46e5;
  font-size: 0.95rem;
}
.coach-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.04);
}
.avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-weight: 800;
  color: #312e81;
}
.page-icon {
  width: 22px;
  height: 22px;
  color: #4f6ef7;
  margin-right: 8px;
  vertical-align: middle;
}

.coach-bio-snippet {
  margin: 0;
  line-height: 1.5;
}

.coach-stats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pill-soft {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.9rem;
}

.empty-state-card {
  text-align: center;
}

.access-page {
  max-width: 980px;
  margin: 24px auto 48px;
}

.access-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.access-card {
  margin-top: 16px;
}

/* Subscribers */
.subscribers-layout-legacy {
  display: grid;
  grid-template-columns: minmax(420px, 520px) 1fr;
  gap: 18px;
  align-items: start;
}

.subscribers-panel,
.subscribers-side {
  border: 1px solid #e5e9f1;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(16, 24, 40, 0.04);
  padding: 12px;
}

.subscribers-toolbar {
  position: sticky;
  top: 90px;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
  background: #fff;
}

.select-all {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  white-space: nowrap;
}

.subscribers-list-scroll {
  max-height: calc(100vh - 320px);
  overflow: auto;
  padding: 6px 2px 6px 0;
}

.subscribers-list .subscriber-card {
  display: block;
}

.subscriber-row {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid #f1f5f9;
}

.subscriber-row:last-child {
  border-bottom: none;
}

.subscriber-card.selected .subscriber-row {
  background: #eef2ff;
}

.subscriber-row:hover {
  background: #f8fbff;
}

.subscriber-row .avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e5e9f1;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #475467;
}

.subscriber-meta {
  min-width: 0;
}

.subscriber-name {
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.subscriber-date {
  font-size: 12px;
}

.subscriber-actions-row {
  display: flex;
  justify-content: flex-end;
}

.subscribers-layout-legacy .is-hidden {
  display: none !important;
}

.bulk-bar {
  position: sticky;
  bottom: 18px;
  z-index: 5;
}

.actions-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.actions-card__header h4 {
  margin: 0;
}

.actions-card__header .muted {
  margin: 0;
  line-height: 1.4;
}

.actions-card__summary {
  display: flex;
  align-items: center;
}

.actions-card__primary {
  display: flex;
}

.actions-card__secondary {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.modal-backdrop {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal {
  max-width: 720px;
  width: calc(100% - 48px);
  border-radius: 16px;
}

.modal-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.recipient-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.recipient-summary {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recipient-list {
  margin-top: 10px;
  max-height: 220px;
  overflow: auto;
}

.recipient-drawer {
  background: #f8fafc;
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  padding: 12px;
  box-shadow: inset 0 1px 1px rgba(17, 24, 39, 0.05);
}

.recipient-filter {
  width: 100%;
  margin-bottom: 10px;
}

.recipient-drawer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 200px;
  overflow: auto;
}

.recipient-drawer__list li {
  padding: 6px 0;
  border-bottom: 1px solid #e5e7eb;
  font-size: 14px;
  color: #334155;
}

.recipient-drawer__list li:last-child {
  border-bottom: none;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}

@media (max-width: 900px) {
  .subscribers-layout-legacy {
    grid-template-columns: 1fr;
  }
  .subscribers-toolbar {
    top: 70px;
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .subscribers-list-scroll {
    max-height: none;
  }
}

.segmented {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  background: #f1f5f9;
  border-radius: 14px;
  padding: 10px;
}

.segment {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px;
  display: grid;
  gap: 6px;
  cursor: pointer;
  align-items: center;
  transition: border-color 0.15s ease, box-shadow 0.2s ease;
}

.segment input {
  margin: 0;
}

.segment:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-sm);
}

.segment-title {
  font-weight: 700;
}

.small-text {
  font-size: 0.9rem;
}

.access-filter {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.access-disabled-overlay {
  background: rgba(241, 245, 249, 0.8);
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  padding: 12px;
  text-align: center;
}

.subscriber-meta {
  flex: 1;
}

.subscriber-card {
  align-items: center;
  position: relative;
}

.subscriber-card:hover {
  border-color: #dbeafe;
  box-shadow: var(--shadow-sm);
}

.selected-pill {
  margin-left: auto;
  display: none;
}

.subscriber-card input[type="checkbox"]:checked ~ .selected-pill {
  display: inline-flex;
}

.access-footer {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.access-footer .btn {
  margin-left: auto;
}

.sticky-save {
  position: sticky;
  bottom: 12px;
  z-index: 10;
}

.lesson-form-page {
  max-width: 1100px;
  margin: 24px auto 48px;
  padding: 0 16px;
}

.lesson-hero {
  margin-bottom: 12px;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  border: 1px solid #e2e8f0;
  box-shadow: var(--shadow-sm);
  border-radius: 16px;
  padding: 16px;
}

.lesson-hero__crumbs {
  margin-bottom: 6px;
}

.lesson-hero__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.lesson-hero__title {
  margin: 0;
  font-size: 1.8rem;
  letter-spacing: -0.02em;
}

.lesson-hero__subtitle {
  margin: 4px 0 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.page-header.card {
  margin: 0 auto 12px;
  max-width: 1100px;
  padding: 16px 18px;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}

.page-header__breadcrumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  color: var(--muted);
}

.page-header__title {
  margin: 0;
  font-size: 1.8rem;
  letter-spacing: -0.02em;
}

.page-header__subtitle {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.page-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.page-header__main {
  display: grid;
  gap: 4px;
}

.page-header__meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

@media (max-width: 640px) {
  .page-header {
    padding: 12px;
    border-radius: 14px;
  }

  .page-header__breadcrumbs {
    display: none;
  }

  .page-header__title {
    font-size: 1.35rem;
    line-height: 1.15;
  }

  .page-header__subtitle {
    font-size: 0.95rem;
  }

  .page-header__actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 10px;
  }

  .page-header__actions .btn {
    width: 100%;
    justify-content: center;
    padding: 12px 14px;
    border-radius: 12px;
  }

  .page-header__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
}

@media (max-width: 640px) {
  :root {
    --mv-space-1: 6px;
    --mv-space-2: 10px;
    --mv-space-3: 14px;
    --mv-radius: 12px;
  }

  .card {
    padding: 10px;
    margin-bottom: 10px;
    border-radius: var(--mv-radius);
  }

  .mv-card {
    padding: 12px 12px 10px;
    border-radius: 16px;
  }

  .btn {
    padding: 10px 12px;
    border-radius: 12px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  .btn-primary,
  .btn-secondary {
    padding: 10px 12px;
  }

  .page-title {
    font-size: 1.35rem;
    line-height: 1.15;
  }

  .page-subtitle {
    font-size: 0.95rem;
  }

  .muted {
    font-size: 0.92rem;
  }

  .page-header__title {
    font-size: 1.25rem;
    line-height: 1.15;
    margin-top: 4px;
  }

  .page-header__subtitle {
    font-size: 0.92rem;
    margin-top: 6px;
  }

  .page-header {
    padding: 10px;
  }

  .page-header.card {
    box-shadow: none;
    border-color: rgba(0, 0, 0, 0.06);
    background: transparent;
  }

  .topnav__inner {
    padding: 10px 12px;
  }

  .topnav__toggle {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .topnav__moreBtn {
    padding: 6px 8px;
    border-radius: 10px;
  }

  .topnav__brand-link {
    font-size: 1rem;
  }

  .dashboard-hero h1,
  .dashboard-hero .hero-title,
  .dashboard-hero .page-title {
    font-size: 1.35rem;
    line-height: 1.15;
  }

  .dashboard-hero {
    padding: 12px;
  }

  .dashboard-hero__top {
    align-items: flex-start;
  }

  .dashboard-hero__identity {
    align-items: flex-start;
    gap: 10px;
  }

  .dashboard-hero .hero__avatar {
    width: 44px;
    height: 44px;
  }

  .dashboard-hero .hero__kicker {
    font-size: 0.85rem;
  }

  .dashboard-hero .hero__name {
    font-size: 1.3rem;
    line-height: 1.12;
    margin-top: 2px;
  }

  .dashboard-hero .hero__meta {
    margin-top: 6px;
    font-size: 0.92rem;
  }

  .dashboard-hero__chips {
    margin-top: 8px;
  }

  .dashboard-hero__actions {
    width: 100%;
    justify-content: flex-start;
    margin-left: 0;
  }

  .dashboard-hero__actions .btn {
    min-height: 42px;
    justify-content: center;
  }
}

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

.crumb-sep {
  color: var(--muted);
}

.page-title-icon {
  display: inline-block;
  margin-right: 6px;
  color: #9ca3af;
  font-size: 1em;
  vertical-align: baseline;
}

/* mv-card system */
.mv-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 18px 18px 14px;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
  transition: transform 0.14s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  position: relative;
}

.mv-card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 8px 24px rgba(15, 23, 42, 0.08),
    0 6px 18px rgba(80, 120, 255, 0.1),
    0 0 0 1px rgba(47, 91, 234, 0.06);
  border-color: #dbeafe;
  z-index: 2;
}

.mv-card:focus-within {
  transform: translateY(-2px);
  box-shadow:
    0 10px 28px rgba(15, 23, 42, 0.08),
    0 8px 22px rgba(80, 120, 255, 0.12),
    0 0 0 1px rgba(47, 91, 234, 0.12);
  border-color: #cfe0ff;
  z-index: 2;
}

.mv-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}

.mv-card__title {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.mv-card__subtitle {
  margin: 4px 0 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.mv-card__meta {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 6px;
  border-top: 1px solid #edf2f7;
}

.mv-card__actions {
  margin-top: 16px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.mv-card--stretch {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.mv-card__body {
  flex: 1;
}

.mv-card__footer {
  margin-top: auto;
}

.mv-card__divider {
  height: 1px;
  background: #e8edf5;
  margin: 10px 0;
}

.mv-card__subtitle--clamp {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mv-card--lesson {
  display: flex;
  flex-direction: column;
  height: auto;
  position: relative;
  overflow: hidden;
}

.mv-card--lesson .mv-card__header {
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mv-card--lesson .mv-card__body {
  flex: 0 0 auto;
}

.mv-card--lesson .mv-card__footer {
  margin-top: auto;
}

.mv-card--lesson .mv-card__actions {
  border-top: 1px solid #e9eef5;
  padding-top: 12px;
}

.mv-card__title {
  display: block;
  width: 100%;
  margin: 0;
}

.mv-card__subtitle {
  display: block;
  margin-top: 6px;
  line-height: 1.5;
}

.mv-card__desc {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 6px;
}

.mv-card[data-expanded="true"] .mv-card__desc {
  display: none;
}

.mv-card__toggle {
  display: none;
  border: none;
  background: transparent;
  color: #0f6be7;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  margin: 2px 0 0 0;
}

.mv-card[data-has-toggle="true"] .mv-card__toggle {
  display: inline-flex;
}

.mv-card__toggle:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
}

.mv-card__overlay {
  position: absolute;
  inset: 10px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid #dfe6f3;
  border-radius: 16px;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
  padding: 14px 16px;
  z-index: 4;
  display: none;
  max-height: calc(100% - 16px);
  overflow-y: auto;
  backdrop-filter: blur(2px);
}

.mv-card__overlay-content {
  display: grid;
  gap: 10px;
}

.mv-card__overlay-close {
  position: absolute;
  top: 10px;
  right: 10px;
}

.vault-form-card {
  max-width: 900px;
  margin: 0 auto 16px;
}

.vault-form-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr auto;
  gap: 12px 14px;
  align-items: end;
}

.vault-form-grid .form-group {
  display: grid;
  gap: 4px;
}

.form-group--actions {
  align-self: end;
}

.vault-submit {
  height: 44px;
  min-width: 120px;
  width: 100%;
}

@media (max-width: 720px) {
  .vault-form-grid {
    grid-template-columns: 1fr;
  }

  .form-group--actions {
    width: 100%;
  }
}

.vault-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  padding: 10px 0;
  list-style: none;
}

.vault-summary__left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.vault-name {
  font-weight: 700;
}

.vault-desc-preview {
  max-width: 320px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vault-summary__actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.vault-caret {
  transition: transform 0.18s ease;
}

details[open] .vault-caret {
  transform: rotate(180deg);
}

.vault-body {
  padding: 12px;
  background: #f8fafc;
  border-radius: 14px;
  margin-top: 8px;
}

.vault-accordion {
  padding: 14px 16px;
}

.vault-body-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: start;
}

.vault-panel {
  background: #fff;
  border: 1px solid #e4e9f2;
  border-radius: 14px;
  padding: 12px;
  display: grid;
  gap: 10px;
  box-shadow: 0 8px 20px rgba(16, 24, 40, 0.03);
}

.vault-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.vault-lessons {
  display: grid;
  gap: 10px;
  padding: 6px 0;
}

.vault-lesson-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #e8edf5;
  border-radius: 12px;
  background: #fff;
}

.vault-lesson-row .muted {
  margin-top: 4px;
}

.vault-lesson-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

.vault-empty {
  padding: 12px;
  text-align: center;
}

.vault-add {
  margin-top: 10px;
  background: #fff;
  border: 1px dashed #dbeafe;
}

.vault-chip-picker {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.vault-chip {
  border: 1px solid #e1e7f0;
  background: #f8fafc;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
}

.vault-chip:hover {
  background: #eef2ff;
  border-color: #dbeafe;
}

.vault-chip--selected {
  background: #2f5bea;
  color: #fff;
  border-color: #2f5bea;
  box-shadow: 0 8px 20px rgba(47, 91, 234, 0.2);
}

.vault-chip--selected::before {
  content: "✓";
  font-size: 12px;
  margin-right: 6px;
  display: inline-block;
}

.vault-add-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

/* Vault explorer */
.vault-explorer {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 16px;
  align-items: start;
}

.vault-explorer__sidebar {
  display: grid;
  gap: 12px;
  align-self: stretch;
  max-height: calc(100vh - 200px);
  overflow-y: auto;
}

.vault-sidebar-card {
  padding: 14px;
}

.vault-explorer__main {
  width: 100%;
}

.vault-sidebar__header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 6px;
}

.vault-sidebar__create {
  margin-top: 10px;
  padding: 16px;
  border: 1px solid #e5e9f1;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(16, 24, 40, 0.06);
}

.vault-sidebar__create.is-hidden {
  display: none;
}

.vault-form .field {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

.vault-hint {
  margin: 0;
}

.vault-form__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
}

.vault-main-card {
  display: grid;
  gap: 14px;
  width: 119%;
}

.vault-main__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e8edf5;
}

.vault-main__meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.vault-list__item {
  display: grid;
  gap: 4px;
  padding: 8px 10px;
  border: 1px solid #e5e9f1;
  border-radius: 12px;
  transition: all 0.15s ease;
  text-decoration: none;
  color: inherit;
}

.vault-list__item:hover {
  border-color: #d0dcff;
  background: #f6f8ff;
  box-shadow: 0 8px 20px rgba(47, 91, 234, 0.06);
}

.vault-list__item.is-selected {
  border-color: #2f5bea;
  background: #eef2ff;
  box-shadow: 0 10px 22px rgba(47, 91, 234, 0.08);
}

.vault-list__item.is-hidden {
  display: none;
}

.vault-addlessons {
  display: grid;
  gap: 10px;
  background: #f8fbff;
  padding: 12px;
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
  position: relative;
}

.vault-addlessons__top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  position: sticky;
  top: 0;
  background: #f8fbff;
  padding-bottom: 6px;
}

.vault-addlessons__actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.vault-addlessons__search {
  padding-left: 34px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='8' r='6'/%3E%3Cline x1='13' y1='13' x2='16' y2='16'/%3E%3C/svg%3E") 10px center no-repeat;
  background-size: 16px;
}

.vault-addlessons__actions .link-btn {
  padding: 4px 8px;
  color: #475467;
  text-decoration: underline;
  background: transparent;
  border: none;
  cursor: pointer;
}

.vault-addlessons__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vault-addlessons__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vault-pill {
  border: 1px solid #e7ecf4;
  background: #fff;
  padding: 8px 10px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}

.vault-pill input {
  margin: 0;
}

.vault-pill__text {
  white-space: nowrap;
  font-weight: 600;
}

.vault-pill:hover {
  background: #eef2ff;
  border-color: #dbeafe;
  box-shadow: 0 8px 18px rgba(47, 91, 234, 0.07);
}

.vault-addlessons__empty {
  margin: 0;
  font-size: 13px;
  color: #94a3b8;
}

.vault-addlessons__footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  position: sticky;
  bottom: 0;
  padding-top: 8px;
  border-top: 1px solid #e5e9f1;
  background: #f8fbff;
}

.is-hidden {
  display: none !important;
}

.vault-list__title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
}

.vault-list__item .vault-desc-preview {
  max-width: 100%;
}

@media (max-width: 900px) {
  .vault-explorer {
    grid-template-columns: 1fr;
  }

  .vault-main__header {
    align-items: flex-start;
    flex-direction: column;
  }
}
.mv-card__overlay-close {
  position: absolute;
  top: 10px;
  right: 10px;
}

.mv-card__overlay-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.mv-card__overlay-body p {
  margin: 0;
  line-height: 1.5;
}

.mv-card[data-expanded="true"] .mv-card__overlay {
  display: block;
}

.icon-btn--ghost {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.icon-btn--ghost:hover,
.icon-btn--ghost:focus-visible {
  background: #eef2ff;
  border-color: #dbeafe;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
}

.mv-desc-toggle {
  margin-top: 6px;
}

.mv-desc-toggle summary {
  list-style: none;
  cursor: pointer;
  color: #0f6be7;
  font-weight: 600;
}

.mv-desc-toggle summary::-webkit-details-marker {
  display: none;
}

.mv-desc-toggle p {
  margin: 8px 0 0 0;
  line-height: 1.5;
}

.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid #e1e7f0;
  background: #f8fafc;
  color: #334155;
  padding: 0;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

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

.icon-btn:hover,
.icon-btn:focus-visible {
  background: #eef2ff;
  border-color: #d7def7;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  outline: none;
}

.icon-btn--danger {
  border-color: #f1d5d8;
  background: #fff5f5;
  color: #b91c1c;
}

.icon-btn--danger:hover,
.icon-btn--danger:focus-visible {
  background: #fee2e2;
  border-color: #fca5a5;
}

.icon-btn[data-tooltip] {
  position: relative;
}

.icon-btn[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%);
  background: #0f172a;
  color: #fff;
  padding: 5px 8px;
  border-radius: 8px;
  font-size: 0.78rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease, transform 0.12s ease;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.icon-btn[data-tooltip]:hover::after,
.icon-btn[data-tooltip]:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, -2px);
}

.mv-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  border: 1px solid transparent;
  background: #f8fafc;
  color: #475569;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
  transition: all 0.18s ease;
}

.mv-chip__dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  display: inline-block;
}

.mv-chip--free {
  background: #ecfdf3;
  color: #166534;
  border-color: #bbf7d0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}

.mv-chip--free .mv-chip__dot {
  background: #22c55e;
}

.mv-chip--subscribers {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}

.mv-chip--subscribers .mv-chip__dot {
  background: #2563eb;
}

.mv-chip--private {
  background: #f5f3ff;
  color: #6b21a8;
  border-color: #e9d5ff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.85);
}

.mv-chip:hover {
  filter: brightness(1.02);
}

/* Notifications inbox */
.mv-inbox {
  padding: 0;
}

.mv-inbox__filters {
  padding: 14px 16px 6px;
  border-bottom: 1px solid #e5e7eb;
}

.mv-inbox__list {
  display: grid;
}

.mv-inbox__row {
  display: grid;
  grid-template-columns: 44px 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #e5e7eb;
  transition: background 0.12s ease, transform 0.12s ease;
  position: relative;
}

.mv-inbox__row:hover {
  background: #f4f7ff;
}

.mv-inbox__row--unread {
  background: #f5f8ff;
  border-left: 4px solid #2563eb;
  padding-left: 12px;
}

.mv-inbox__row--message {
  border-left: 4px solid rgba(37, 99, 235, 0.45);
}

.mv-inbox__row--message.mv-inbox__row--unread {
  border-left-color: #2563eb;
}

.mv-inbox__row--comment {
  border-left: 4px solid rgba(16, 185, 129, 0.4);
}

.mv-inbox__row--comment.mv-inbox__row--unread {
  border-left-color: #10b981;
}

.mv-inbox__row--system {
  border-left: 4px solid rgba(234, 88, 12, 0.35);
}

.mv-inbox__row--system.mv-inbox__row--unread {
  border-left-color: #ea580c;
}

.mv-inbox__type-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #f3f4f6;
  font-size: 0.95rem;
  margin-right: 6px;
  flex-shrink: 0;
}

.mv-inbox__type-icon--message {
  background: #eef2ff;
  color: #1d4ed8;
}

.mv-inbox__type-icon--comment {
  background: #ecfdf3;
  color: #047857;
}

.mv-inbox__avatar {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #e8edff;
  color: #1d4ed8;
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.mv-type-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-left: 6px;
  border: 1px solid transparent;
}

.mv-type-chip--message {
  background: #eef2ff;
  color: #1d4ed8;
  border-color: #dbeafe;
}

.mv-type-chip--comment {
  background: #ecfdf3;
  color: #047857;
  border-color: #bbf7d0;
}

.mv-inbox__main {
  display: grid;
  gap: 4px;
}

.mv-inbox__title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.97rem;
}

.mv-inbox__preview {
  font-size: 0.9rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mv-inbox__unread-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #2563eb;
  display: inline-flex;
  margin-right: 4px;
}

.mv-inbox__meta {
  font-size: 0.9rem;
}

.mv-inbox__time {
  font-size: 0.9rem;
  color: var(--muted);
}

.mv-inbox__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.mv-inbox__row:hover .mv-inbox__actions,
.mv-inbox__row .notification-confirm {
  opacity: 1;
}

.mv-inbox__icon {
  display: flex;
  justify-content: center;
}

.mv-inbox__right {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  white-space: nowrap;
  position: relative;
}

/* Coach content filters */
.content-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.content-tabs {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.content-filters {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  flex: 1 1 auto;
}

.content-search__field {
  width: 200px;
}

.content-sort__select {
  width: 140px;
}

.content-clear {
  white-space: nowrap;
}

@media (max-width: 640px) {
  .content-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .content-filters {
    justify-content: stretch;
  }

  .content-search__field,
  .content-sort__select {
    width: 100%;
  }

  .content-filters .inline-form {
    width: 100%;
  }

  .content-filters {
    gap: 8px;
  }

  .card {
    padding: 12px;
    border-radius: 14px;
  }

  .btn {
    padding: 12px 14px;
    border-radius: 12px;
  }
}

.mv-inbox__open {
  margin: 0;
}

.notification-confirm {
  display: none;
  flex-direction: column;
  gap: 6px;
  text-align: right;
  padding: 8px 0 0;
}

.notification-confirm.is-active {
  display: flex;
}

.notification-confirm__actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

@media (max-width: 768px) {
  .mv-inbox__row {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }
  .mv-inbox__actions {
    justify-content: flex-start;
    opacity: 1;
  }
}

.mv-chip--private .mv-chip__dot {
  background: #7c3aed;
}

.page-header.card {
  margin: 0 auto 12px;
  max-width: 1100px;
  padding: 14px 16px;
}

/* Chat page */
.mv-chat {
  padding: 0;
}

.mv-chat__header {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 2;
  padding: 14px 16px;
  border-bottom: 1px solid #e5e7eb;
  border-radius: 18px 18px 0 0;
  display: flex;
  align-items: center;
}

.mv-chat__header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mv-chat__avatar {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #e8edff;
  color: #1d4ed8;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.mv-chat__title {
  margin: 0;
  font-size: 1.05rem;
}

.mv-chat__subtitle {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.mv-chat__subtitle-icon {
  margin-right: 6px;
  opacity: 0.8;
}

.mv-chat__identity {
  display: grid;
  gap: 2px;
}

.mv-chat__body {
  display: grid;
  grid-template-rows: 1fr auto;
  max-height: calc(100vh - 200px);
  background: #f8fafc;
  border-radius: 0 0 18px 18px;
}

.mv-chat__messages {
  padding: 16px 18px;
  overflow-y: auto;
  display: grid;
  gap: 12px;
}

.mv-chat__row {
  display: flex;
  margin-top: 6px;
}

.mv-chat__row--me {
  justify-content: flex-end;
}

.mv-chat__row--them {
  justify-content: flex-start;
}

.mv-chat__bubble {
  max-width: 72%;
  padding: 12px 14px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.mv-chat__row--continued .mv-chat__bubble {
  margin-top: 4px;
}

.mv-chat__row--me .mv-chat__bubble {
  background: #2f5bea;
  color: #fff;
  border-color: #2f5bea;
  box-shadow: 0 10px 22px rgba(47, 91, 234, 0.24);
}

.mv-chat__body-text p {
  margin: 0;
}

.mv-chat__meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 6px;
}

.mv-chat__row--me .mv-chat__meta {
  color: rgba(255, 255, 255, 0.75);
}

.mv-chat__date-separator {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

.mv-chat__date-separator span {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e5e7eb;
  position: relative;
}

.mv-chat__date-separator::before,
.mv-chat__date-separator::after {
  content: "";
  display: inline-block;
  width: 18%;
  height: 1px;
  background: #e5e7eb;
  vertical-align: middle;
  margin: 0 10px;
}

.mv-chat__composer {
  padding: 12px 14px;
  background: #fff;
  border-top: 1px solid #e5e7eb;
  position: sticky;
  bottom: 0;
  z-index: 1;
  display: grid;
}

.mv-chat__input {
  width: 100%;
  border-radius: 14px;
  border: 1px solid #d7deeb;
  padding: 12px 14px;
  resize: vertical;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.mv-chat__input:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.mv-chat__composer-form {
  display: grid;
}

.mv-chat__input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.mv-chat__send {
  justify-self: end;
  height: 100%;
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  padding-inline: 14px;
}

.mv-chat__messages::-webkit-scrollbar {
  width: 8px;
}

.mv-chat__messages::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}

.page-header__breadcrumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  color: var(--muted);
}

.page-header__title {
  margin: 0;
  font-size: 1.8rem;
  letter-spacing: -0.02em;
}

.page-header__subtitle {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.page-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.page-header__main {
  display: grid;
  gap: 4px;
}

.page-header__meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

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

.crumb-sep {
  color: var(--muted);
}

.lesson-form-card {
  display: grid;
  gap: 14px;
}

.lesson-form-tips ul {
  padding-left: 18px;
  margin: 8px 0 0 0;
  display: grid;
  gap: 6px;
}

.lesson-form-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 16px;
  align-items: start;
}

.lesson-form-main {
  display: grid;
  gap: 12px;
}

.lesson-form-sidebar {
  display: grid;
  gap: 12px;
}

.sticky-sidebar {
  position: sticky;
  top: 88px;
}

.lesson-form-actions {
  position: sticky;
  bottom: 12px;
  z-index: 10;
}

.form-submit-lock__overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.form-submit-lock__dialog {
  background: #fff;
  border-radius: 14px;
  padding: 20px 24px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.18);
  display: grid;
  gap: 10px;
  min-width: 260px;
  text-align: center;
}

.form-submit-lock__spinner {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 4px solid #e2e8f0;
  border-top-color: #2563eb;
  margin: 0 auto;
  animation: form-submit-spin 0.9s linear infinite;
}

.form-submit-lock__message {
  margin: 0;
  color: #0f172a;
  font-weight: 600;
}

@keyframes form-submit-spin {
  to {
    transform: rotate(360deg);
  }
}

.lesson-media-list {
  display: grid;
  gap: 10px;
}

.slide-card.is-destroyed {
  display: none;
}

.coach-vault {
  display: grid;
  gap: 16px;
}

.vault-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: sticky;
  top: 12px;
  z-index: 5;
}

.vault-header__info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 auto;
  min-width: 0;
}

.vault-header__info > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.vault-avatar {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background-size: cover;
  background-position: center;
  background-color: #e5e7eb;
  border: 1px solid #e5e7eb;
  flex-shrink: 0;
  overflow: hidden;
}

.vault-avatar__img {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  object-fit: cover;
  background: #e5e7eb;
  border: 1px solid #e5e7eb;
  display: block;
  flex-shrink: 0;
}

.vault-avatar--placeholder {
  background: #e5e7eb;
}

.vault-title {
  margin: 0;
  font-weight: 800;
  font-size: 1.3rem;
  line-height: 1.25;
}

.vault-handle {
  margin: 0;
  color: var(--muted);
}

.vault-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.vault-header__actions .vault-search {
  min-width: 180px;
}

@media (max-width: 640px) {
  .vault-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 14px 16px;
    border-radius: 16px;
    background: linear-gradient(135deg, #ffffff 0%, #f4f6ff 100%);
    border: 1px solid #e6e9f5;
  }

  .vault-header__info {
    width: 100%;
  }

  .vault-avatar,
  .vault-avatar__img {
    width: 56px;
    height: 56px;
  }

  .vault-title {
    font-size: 1.3rem;
  }

  .vault-header__actions {
    width: 100%;
    justify-content: flex-start;
    gap: 10px;
  }

  .vault-header__actions .vault-search {
    width: 100%;
    max-width: none;
  }
}

.vault-categories {
  display: grid;
  gap: 14px;
}

.vault-accordion-list {
  display: grid;
  gap: 10px;
  max-height: calc(100vh - 240px);
  overflow-y: auto;
}

.vault-accordion {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  padding: 0;
  overflow: hidden;
}

.vault-summary {
  list-style: none;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
}

.vault-summary::-webkit-details-marker {
  display: none;
}

.vault-summary__left {
  display: grid;
  gap: 4px;
}

.vault-summary__right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.vault-caret {
  display: inline-block;
  transition: transform 0.2s ease;
}

.vault-accordion[open] .vault-caret {
  transform: rotate(90deg);
}

.vault-body {
  padding: 12px;
  border-top: 1px solid #e5e7eb;
  display: grid;
  gap: 10px;
}

.vault-lesson-card {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  color: inherit;
  text-decoration: none;
  min-width: 260px;
  scroll-snap-align: start;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.vault-lesson-card:hover {
  border-color: #bfdbfe;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.14);
}

.vault-lesson-card.is-locked {
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.vault-lesson-card.is-hidden {
  display: none;
}

.vault-lesson-card__title {
  font-weight: 700;
}

.vault-lesson-card__meta {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.vault-lesson-card__lock {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 18px;
}

.vault-search {
  max-width: 240px;
}

.vault-rows {
  display: grid;
  gap: 12px;
}

.vault-row {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  padding: 12px;
  display: grid;
  gap: 10px;
}

.vault-row__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.vault-row__title {
  margin: 0;
}

.vault-row__meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.vault-row__scroller {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 0;
  scroll-snap-type: x mandatory;
}

@media (max-width: 768px) {
  .vault-header {
    position: static;
  }
}

.lesson-media-row {
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
}

.lesson-media-row__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.lesson-media-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.lesson-media-actions .input-xs {
  width: 70px;
  padding: 6px 8px;
}

.lesson-media-actions label {
  white-space: nowrap;
}

.lesson-media-actions-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.media-thumb img {
  max-width: 140px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.draft-slide {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  display: grid;
  gap: 10px;
}

.draft-slide__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.draft-slide__body {
  display: grid;
  gap: 10px;
}

.draft-slide__footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.slide-card {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 12px;
  align-items: center;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.slide-thumb {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  background: #f8fafc;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

.slide-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.thumb-video {
  font-size: 13px;
  color: #475467;
}

.slide-badge {
  margin-bottom: 4px;
}

.slide-fields {
  display: grid;
  gap: 6px;
}

.slide-controls {
  display: grid;
  gap: 6px;
  justify-items: center;
}

.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.icon-btn:hover {
  background: #f8fafc;
  transform: translateY(-1px);
}

.icon-btn--danger {
  color: #dc2626;
}

@media (max-width: 960px) {
  .lesson-form-layout {
    grid-template-columns: 1fr;
  }
  .sticky-sidebar,
  .lesson-form-actions {
    position: static;
  }
}

.visibility-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.visibility-card {
  position: relative;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px;
  display: flex;
  gap: 10px;
  cursor: pointer;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  align-items: flex-start;
}

.visibility-card:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-sm);
}

.visibility-card input {
  position: absolute;
  opacity: 0;
  inset: 0;
}

.vis-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.visibility-card__body {
  display: grid;
  gap: 4px;
}

.visibility-card__title {
  font-weight: 800;
  letter-spacing: -0.01em;
}

.visibility-card .checkmark {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #0f172a;
  display: grid;
  place-items: center;
  font-weight: 800;
  opacity: 0;
  transition: opacity 0.15s ease, background 0.2s ease;
}

.visibility-card input:checked ~ .visibility-card__body,
.visibility-card input:checked ~ .checkmark,
.visibility-card input:checked ~ .checkmark + .visibility-card__body {
  /* ensures sibling styles */
}

.visibility-card input:checked + .visibility-card__body,
.visibility-card input:checked ~ .visibility-card__body {
  color: #0f172a;
}

.visibility-card input:checked ~ .checkmark {
  opacity: 1;
  background: #dbeafe;
  color: #1d4ed8;
}

.visibility-card input:checked ~ .visibility-card__body,
.visibility-card input:checked ~ .checkmark {
  border-color: #bfdbfe;
}

.subscriber-list {
  display: grid;
  gap: 10px;
  max-height: 340px;
  overflow: auto;
  padding: 6px 0;
}

.subscriber-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  transition: border-color 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.subscriber-card:hover {
  border-color: #dbeafe;
  box-shadow: var(--shadow-sm);
  background: #f8fbff;
}

.subscriber-card input[type="checkbox"] {
  margin-right: 8px;
}

.subscriber-access-new {
  cursor: pointer;
}

.selected-pill {
  margin-left: auto;
  display: none;
}

.subscriber-card input[type="checkbox"]:checked ~ .selected-pill {
  display: inline-flex;
}

.visibility-card:focus-within {
  outline: 3px solid rgba(37, 99, 235, 0.25);
  outline-offset: 2px;
}

.visibility-card:has(input:checked) {
  border-color: #bfdbfe;
  background: #f8fbff;
  box-shadow: var(--shadow-sm);
}

.surface {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.surface--narrow {
  max-width: 760px;
  margin: 0 auto;
}

.stack > * + * {
  margin-top: 12px;
}

.center {
  text-align: center;
}

/* Design system overrides */
:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --primary: #2563eb;
  --primary-600: #1d4ed8;
  --danger: #dc2626;
  --success: #16a34a;
  --warning: #d97706;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 6px 20px rgba(15, 23, 42, 0.08);
  --radius: 14px;
  --radius-sm: 10px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

a {
  color: var(--primary);
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.page {
  margin: 0;
  padding: 16px 0 28px;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.page-title {
  margin: 0;
  font-size: 1.75rem;
  letter-spacing: -0.02em;
}

.page-subtitle {
  margin: 6px 0 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.topnav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
}

.topnav__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.topnav__bar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topnav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.topnav__brand-link {
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  font-size: 1.05rem;
  text-decoration: none;
}

.topnav__nav {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.topnav__links {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.topnav__links--desktop {
  display: flex;
  gap: 18px;
}

.nav-item--collapse-md {
  display: inline-flex;
}

.topnav__links--mobile {
  display: grid;
  gap: 8px;
}

.topnav__link {
  padding: 6px 12px;
  border-radius: 999px;
  color: #111827;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
  text-decoration: none;
}

.topnav__link:hover {
  background: rgba(37, 99, 235, 0.06);
}

.topnav__link.is-active {
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
  font-weight: 700;
}

.topnav__more {
  display: none;
  position: relative;
}

.topnav__moreBtn {
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 10px;
  padding: 8px 10px;
  font-weight: 600;
  cursor: pointer;
}

.topnav__moreBtn:hover {
  background: rgba(37, 99, 235, 0.06);
}

.topnav__moreMenu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 200px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  padding: 8px;
  display: grid;
  gap: 6px;
  z-index: 60;
}

.topnav__moreLink {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  color: #111827;
  font-weight: 600;
  text-decoration: none;
}

.topnav__moreLink:hover {
  background: rgba(37, 99, 235, 0.06);
}

.topnav__badge--inline {
  background: #e0e7ff;
  color: #1d4ed8;
}

.topnav__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  vertical-align: middle;
}

.topnav__right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
  margin-left: auto;
}

.topnav__account {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.topnav__user {
  display: flex;
  align-items: baseline;
  gap: 6px;
  color: var(--muted);
  max-width: 260px;
  white-space: nowrap;
}

.topnav__email {
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topnav__links::-webkit-scrollbar {
  height: 4px;
}

.topnav__links::-webkit-scrollbar-thumb {
  background: #dbeafe;
  border-radius: 999px;
}

.topnav__panel {
  display: none;
  background: #ffffff;
}

.topnav__panel-divider {
  height: 1px;
  background: rgba(0, 0, 0, 0.06);
  margin: 14px 0;
}

.topnav__panel-account {
  display: grid;
  gap: 10px;
}

.topnav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  cursor: pointer;
}

.topnav__toggle:hover {
  background: #f8fafc;
}

.topnav__toggle-bar {
  display: block;
  height: 2px;
  width: 18px;
  background: #111827;
  border-radius: 999px;
}

.btn-full {
  width: 100%;
  text-align: center;
  justify-content: center;
}

@media (max-width: 1100px) {
  .nav-item--collapse-md {
    display: none;
  }

  .topnav__more {
    display: block;
  }
}

@media (max-width: 980px) {
  .topnav__inner {
    gap: 12px;
    padding: 12px 16px;
  }
}

@media (max-width: 900px) {
  .topnav__nav {
    display: none;
  }

  .topnav__hamburger {
    display: inline-flex;
  }

  .topnav__account {
    gap: 10px;
  }

  .topnav__user {
    display: none;
  }

  /* Hide duplicate header logout button on mobile; keep the menu version */
  .topnav__account .btn {
    display: none;
  }

  .topnav__panel {
    display: none;
  }

  .topnav--mobile-open .topnav__panel {
    display: block;
    width: 100%;
    padding: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  }

  .topnav__link,
  .topnav__links a {
    width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
  }

  body.nav-open {
    overflow: hidden;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 14px;
  }

  .page {
    padding: 12px 0 22px;
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.card-header {
  margin-bottom: 8px;
}

.card-body {
  margin-top: 8px;
}

.card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

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

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.badge-success {
  background: #dcfce7;
  color: var(--success);
}

.badge-warning {
  background: #ffedd5;
  color: var(--warning);
}

.badge-danger {
  background: #fee2e2;
  color: var(--danger);
}

.badge-neutral {
  background: #e2e8f0;
  color: #334155;
}

.btn {
  border-radius: 12px;
  border: 1px solid transparent;
  padding: 10px 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.2s ease, background 0.2s ease;
  text-decoration: none;
}

.btn-primary,
.btn {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-primary {
  padding: 12px 16px;
}

.btn-primary:hover,
.btn:hover {
  background: var(--primary-600);
  color: #fff;
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  padding: 12px 16px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  transition: all 0.15s ease;
}

.btn-secondary:hover {
  background: var(--primary-600);
  transform: translateY(-1px);
}

.btn-ghost {
  background: #fff;
  border-color: #d1d5db;
  color: var(--primary);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}

.input,
.textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
  color: var(--text);
}

.input:focus,
.textarea:focus,
button:focus,
a:focus {
  outline: 3px solid rgba(37, 99, 235, 0.25);
  outline-offset: 2px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.empty-state {
  text-align: center;
  padding: 24px;
  color: var(--muted);
}

.toast-stack {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 9999;
  display: grid;
  gap: 10px;
}

.toast {
  min-width: 280px;
  max-width: 420px;
  background: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  animation: flash-in 0.35s ease;
  border-left: 4px solid #3b82f6;
}

.toast-notice {
  border-left-color: #3b82f6;
}

.toast-alert {
  border-left-color: #f59e0b;
}

.toast-error {
  border-left-color: #ef4444;
}

.toast-success {
  border-left-color: #22c55e;
}

.toast-message {
  font-size: 14px;
}

.toast-close {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  opacity: 0.6;
  line-height: 1;
}

.toast-close:hover {
  opacity: 1;
}

@keyframes flash-in {
  from {
    transform: translateY(-10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.auth-page {
  width: 100%;
  min-height: auto;
  display: block;
  padding: 0;
}

.auth-card {
  width: 80%;
  max-width: 460px;
  background: #fff;
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 18px;
  padding: 32px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.1);
  display: grid;
  gap: 14px;
  text-align: center;
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #111827;
  margin: 0 auto 16px;
}

.auth-brand__mark {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 1);
  display: inline-block;
}

.auth-brand__name {
  font-size: 14px;
}

.auth-title {
  margin: 0;
  font-size: 28px;
  color: #0f172a;
}

.auth-subtitle {
  margin: 6px 0 12px;
  color: #6b7280;
  font-size: 0.98rem;
}

.auth-helper {
  margin: 0 0 10px;
  color: #9ca3af;
  font-size: 0.95rem;
}

.auth-form {
  display: grid;
  gap: 14px;
  text-align: left;
}

.auth-card label {
  font-weight: 600;
  color: #0f172a;
}

.auth-form .form-row {
  margin-top: 14px;
}

.auth-form .form-row:first-child {
  margin-top: 0;
}

.auth-card .input {
  height: 46px;
  background: #f9fafb;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  padding: 12px 14px;
  transition: box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.auth-card .input::placeholder {
  color: #9ca3af;
}

.auth-card .input:focus {
  background: #fff;
  border-color: rgba(59, 130, 246, 0.95);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.18), 0 10px 20px rgba(17, 24, 39, 0.08);
}

.auth-actions {
  margin-top: 6px;
}

.auth-submit {
  width: 100%;
  height: 44px;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.25);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.auth-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.1);
  filter: brightness(0.98);
}

.auth-submit:active {
  transform: translateY(0px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.auth-footer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #6b7280;
  font-size: 13px;
  margin-top: 18px;
}

.auth-footer a {
  color: #1d4ed8;
  font-weight: 600;
}

.auth-footer a:hover {
  text-decoration: underline;
}

.auth-divider {
  color: #d1d5db;
}

/* Auth layout (logged-out screens) */
body.auth-page .topnav__nav,
body.auth-page .topnav__toggle,
body.auth-page .topnav__hamburger,
body.auth-page .topnav__more,
body.auth-page .topnav__panel,
body.auth-page .topnav__drawer,
body.auth-page .topnav__backdrop,
body.auth-page .topnav__account {
  display: none !important;
}

body.auth-page .topnav__inner {
  justify-content: flex-start;
  padding: 12px 16px;
}

body.auth-page .topnav {
  box-shadow: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

body.auth-page .page {
  padding-top: 10px;
}

body.auth-page .container {
  max-width: 520px;
}

body.auth-page .auth-page {
  padding: 0 0 28px;
}

body.auth-page .auth-card {
  margin: 12px auto 0;
  padding: 16px;
  border-radius: 16px;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
}

@media (max-width: 640px) {
  body.auth-page .container {
    padding: 0 16px;
  }

  body.auth-page .auth-card {
    margin-top: 10px;
    padding: 14px;
  }

  body.auth-page .auth-card h1 {
    font-size: 1.35rem;
  }
}

.feed {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 680px;
  margin: 0 auto;
}

.feed-item {
  padding: 0;
  overflow: hidden;
}

.feed-media {
  position: relative;
  aspect-ratio: 4 / 5;
  background: #0b0f1a;
}

.feed-media iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.feed-media-link {
  position: absolute;
  inset: 0;
  display: block;
}

.feed-media-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 600;
}

.feed-lock-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.feed-item:hover .feed-lock-overlay {
  opacity: 0.95;
}

.feed-lock-cta {
  text-align: center;
  color: #fff;
  display: grid;
  gap: 8px;
}

.feed-meta {
  padding: 14px 16px 18px 16px;
}

.feed-meta h3 {
  margin: 0 0 6px 0;
}

.dashboard-hero {
  padding: 20px 22px;
  background: linear-gradient(135deg, #ffffff 0%, #f3f6ff 100%);
  border: 1px solid #e6e9f5;
}

.dashboard-hero__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.dashboard-hero__identity {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 auto;
  min-width: 0;
}

.dashboard-hero__text {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.dashboard-hero .hero__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #eef2ff;
  color: #4338ca;
  font-weight: 700;
}

.dashboard-hero .hero__avatar .avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.dashboard-hero .hero__identity {
  flex: 1 1 auto;
  min-width: 0;
}

.dashboard-hero .hero__kicker {
  font-size: 0.95rem;
  color: var(--muted);
}

.dashboard-hero .hero__name {
  font-size: clamp(1.35rem, 2.4vw, 1.65rem);
  font-weight: 800;
  margin-top: 4px;
  line-height: 1.15;
  overflow-wrap: normal;
  word-break: keep-all;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dashboard-hero .hero__meta {
  margin-top: 6px;
  color: var(--muted);
}

.dashboard-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.dashboard-hero__chips .pill {
  white-space: nowrap;
}

.dashboard-hero__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.btn--compact {
  padding: 8px 10px;
  min-height: 40px;
  border-radius: 12px;
  font-weight: 700;
}

.dashboard-hero-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.dashboard-hero-header .page-title {
  font-size: 2rem;
}

.dashboard-hero-stats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

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

/* Conversations */
.conversation-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.conversation-avatar {
  background: #e2e8f0;
  color: #0f172a;
  font-weight: 700;
}

.hover-card {
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.hover-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  cursor: pointer;
}

.conversation-main {
  display: grid;
  gap: 4px;
}

.conversation-name.unread {
  font-weight: 800;
}

.unread-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #2563eb;
  margin-right: 6px;
  vertical-align: middle;
}

.inbox-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.tab-button {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 600;
  cursor: pointer;
}

.tab-button.is-active {
  background: #e0e7ff;
  color: #1d4ed8;
  border-color: #c7d2fe;
}

.inbox-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 14px;
}

.conversation-card {
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.conversation-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #dbeafe;
  cursor: pointer;
}

.conversation-card__body {
  display: flex;
  align-items: center;
  gap: 12px;
}

.conversation-text {
  display: grid;
  gap: 4px;
}

.conversation-preview {
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.conversation-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.conversation-timestamp {
  font-size: 0.9rem;
  color: var(--muted);
}

.lesson-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px 16px;
  align-items: start;
}

.lesson-card {
  min-height: 200px;
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.lesson-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #dbeafe;
}

.lesson-card--restricted {
  border-color: #e0e7ff;
  box-shadow: var(--shadow-sm);
}

.visibility-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}

.visibility-pill .pill-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.visibility-pill--free {
  background: #ecfdf3;
  border-color: #bbf7d0;
  color: #166534;
}

.visibility-pill--free .pill-dot {
  background: #16a34a;
}

.visibility-pill--subscribers {
  background: #eef2ff;
  border-color: #c7d2fe;
  color: #1d4ed8;
}

.visibility-pill--subscribers .pill-dot {
  background: #2563eb;
}

.visibility-pill--restricted {
  background: #f5f3ff;
  border-color: #e9d5ff;
  color: #6b21a8;
}

.visibility-pill--restricted .pill-dot {
  background: #7c3aed;
}

.manage-access-btn {
  border-width: 1.5px;
}

.empty-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.conversation-name {
  font-weight: 700;
}

.conversation-preview {
  margin-top: 4px;
}

.conversation-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.message-panel {
  display: grid;
  gap: 12px;
}

.message-thread {
  max-height: 60vh;
  overflow-y: auto;
  display: grid;
  gap: 10px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #f8fafc;
}

.message-row {
  display: flex;
}

.message-row.mine {
  justify-content: flex-end;
}

.message-row.theirs {
  justify-content: flex-start;
}

.message-bubble {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  max-width: 75%;
  box-shadow: var(--shadow-sm);
}

.message-row.mine .message-bubble {
  background: #e0e7ff;
  border-color: #c7d2fe;
}

.message-body {
  margin: 0 0 6px 0;
}

.message-meta {
  font-size: 0.8rem;
  color: var(--muted);
}

.message-form__actions {
  display: flex;
  justify-content: flex-end;
}

.chat-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

.chat-shell {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 60vh;
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: #fff;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
}

.chat-back {
  color: var(--primary);
  font-weight: 600;
}

.chat-header__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.chat-title {
  margin: 0;
  font-size: 1.2rem;
}

.chat-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.chat-messages {
  padding: 16px;
  overflow-y: auto;
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
}

.chat-empty {
  text-align: center;
  color: var(--muted);
  display: grid;
  gap: 6px;
  justify-items: center;
  padding: 40px 0;
}

.chat-empty-icon {
  font-size: 2rem;
}

.chat-empty-title {
  font-weight: 700;
  color: #0f172a;
}

.chat-row {
  display: flex;
  margin-bottom: 10px;
}

.chat-row--me {
  justify-content: flex-end;
}

.chat-row--them {
  justify-content: flex-start;
}

.chat-bubble {
  max-width: 70%;
  padding: 10px 12px;
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  background: #fff;
}

.chat-row--me .chat-bubble {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.chat-body {
  margin: 0 0 6px 0;
  line-height: 1.5;
}

.chat-row--me .chat-body p {
  color: #fff;
}

.chat-meta {
  font-size: 0.8rem;
  color: var(--muted);
}

.chat-row--me .chat-meta {
  color: rgba(255, 255, 255, 0.85);
}

.chat-composer {
  padding: 12px 14px;
  background: #fff;
  border-top: 1px solid var(--border);
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
}

.chat-form {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.chat-input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 12px;
  min-height: 48px;
  resize: vertical;
  font-size: 1rem;
  line-height: 1.4;
}

.chat-input:focus {
  border-color: #9bbcff;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
  outline: none;
}

.chat-send {
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
}

.chat-locked {
  text-align: center;
  color: var(--muted);
  display: grid;
  gap: 4px;
  padding: 10px;
}

.chat-locked__title {
  font-weight: 700;
  color: #0f172a;
}

.chat-locked__subtitle {
  font-size: 0.95rem;
}

@media (max-width: 640px) {
  .chat-shell {
    border-radius: 12px;
  }

  .chat-messages {
    padding: 12px;
  }

  .chat-bubble {
    max-width: 85%;
  }
}
/* My Lessons header */
.lessons-hero {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  padding: 20px 22px;
  margin: 0 0 18px 0;
}

.lessons-hero__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.lessons-hero__title h1 {
  margin: 0;
  font-size: 1.9rem;
  letter-spacing: -0.02em;
}

.lessons-hero__title p {
  margin: 6px 0 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.lessons-hero__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}

.lessons-hero__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.lessons-hero__filter {
  margin-top: 12px;
}

.lessons-hero__filter .input {
  width: 260px;
  max-width: 100%;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  background: #f2f6ff;
  border: 1px solid #dbe7ff;
}

.chip__label {
  color: #475467;
  font-size: 0.85rem;
}

.chip__value {
  font-weight: 700;
  font-size: 0.95rem;
  color: #0f172a;
}

.subscriber-card .avatar {
  width: 40px;
  height: 40px;
  font-size: 1rem;
}
.subscriber-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.subscriber-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.avatar-circle--lg {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: #e5e9f1;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-weight: 800;
  color: #312e81;
}

.subscriber-card.selected {
  background: #f1f5f9;
  border-color: #dbeafe;
}

.subscriber-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.subscriber-meta {
  display: grid;
  gap: 4px;
}

.subscriber-name {
  font-weight: 700;
}

.subscriber-actions {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 10px;
}

.select-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.subscriber-row {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 12px;
}

.subscriber-actions-row {
  display: flex;
  align-items: center;
}

.btn-small {
  padding: 6px 10px;
}

.bulk-bar {
  position: sticky;
  bottom: 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0;
}

.bulk-bar__left,
.bulk-bar__right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  display: grid;
  place-items: center;
  padding: 12px;
  z-index: 1000;
}

.modal-backdrop[hidden] {
  display: none !important;
}

.modal {
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  max-width: 620px;
  width: 100%;
  padding: 14px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.modal-close {
  border: none;
  background: transparent;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 6px;
}

.modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 10px;
}

.recipient-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.recipient-summary .chip {
  background: #f2f6ff;
  border: 1px solid #dbe7ff;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.9rem;
}

.latest-card {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #f8fafc;
  text-decoration: none;
  color: #0f172a;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

[hidden] {
  display: none !important;
}
.profile-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 16px 40px 16px;
}

.profile-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 2px solid #e5e7eb;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: grid;
  place-items: center;
}

.profile-meta {
  display: grid;
  gap: 10px;
}

.profile-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.profile-name {
  margin: 0;
  font-size: 1.8rem;
  letter-spacing: -0.01em;
}
.coach-headline {
  margin: 2px 0 6px;
  font-size: 1rem;
  color: #1f2937;
  font-weight: 600;
}

.profile-handle {
  color: var(--muted);
}

.verified-badge {
  background: #e0e7ff;
  color: #1d4ed8;
  padding: 4px 8px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
}
.profile-avatar img,
.profile-avatar__bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.profile-avatar__bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.profile-avatar__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e5e7eb 0%, #f8fafc 100%);
}
.profile-avatar--editable {
  border: 2px dashed #cbd5e1;
  display: grid;
  place-items: center;
}
.profile-edit-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
}
.profile-edit-avatar {
  display: grid;
  gap: 6px;
  justify-items: start;
}
.profile-edit-fields {
  display: grid;
  gap: 14px;
}

.profile-bio {
  margin: 0;
  color: var(--text);
}

.profile-location {
  margin: 0;
  color: var(--muted);
}

.profile-socials {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.social-link {
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef2ff;
  color: #1d4ed8;
  font-weight: 600;
  text-decoration: none;
}

.social-link:hover {
  background: #e0e7ff;
}

.profile-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.coach-metrics {
  margin-top: 14px;
  width: 154%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.coach-metric {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  display: grid;
  place-items: center;
  text-align: center;
  min-height: 64px;
  box-sizing: border-box;
}

.coach-metric__value {
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1.1;
}

.coach-metric__label {
  margin-top: 2px;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.2;
}

@media (min-width: 900px) {
  .coach-metrics {
    max-width: 320px;
  }
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 4px;
}

.stat {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  text-align: center;
}

.stat-value {
  font-weight: 800;
  font-size: 1.2rem;
}

.stat-label {
  color: var(--muted);
  font-size: 0.9rem;
}

.profile-section {
  margin-top: 20px;
}

.subscriber-access {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 10px;
}

.filter-row {
  margin: 8px 0 12px 0;
}

.profile-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
  align-items: start;
}

.profile-featured {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  box-shadow: var(--shadow-sm);
}

.profile-latest {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  box-shadow: var(--shadow-sm);
}

.section-header .section-title {
  margin: 0;
}

.section-title {
  font-size: 1.3rem;
  margin: 0;
}

.section-subtitle {
  margin: 4px 0 0 0;
  color: var(--muted);
}

.profile-lessons-header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 8px;
}

.view-all-link {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
  justify-self: end;
}

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

.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

/* Coach show hero */
.coach-hero {
  text-align: left;
}

.coach-hero__top {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 14px 16px;
  align-items: start;
}

.coach-hero__avatar {
  width: 120px;
  height: 120px;
}

.coach-hero__body {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.coach-hero__identity {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.coach-hero .profile-name {
  font-size: clamp(1.5rem, 2.2vw, 1.8rem);
  line-height: 1.1;
}

.coach-hero .coach-headline,
.coach-hero .profile-bio,
.coach-hero .profile-location {
  margin: 0;
}

.coach-hero__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.coach-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-start;
}

.coach-hero__actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 12px;
  box-sizing: border-box;
  white-space: normal;
}

.coach-hero__actions a.btn {
  box-sizing: border-box;
}

.coach-hero__actions form {
  margin: 0;
}

@media (max-width: 768px) {
  .coach-hero {
    padding: 14px;
  }

  .coach-hero__top {
    grid-template-columns: 80px 1fr;
    gap: 12px;
  }

  .coach-hero__avatar {
    width: 80px;
    height: 80px;
  }

  .coach-hero__links {
    gap: 6px;
  }

  .coach-hero__actions {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .coach-hero__top {
    grid-template-columns: 64px 1fr;
    gap: 10px;
  }

  .coach-hero__avatar {
    width: 72px;
    height: 72px;
  }

  .coach-hero .profile-name {
    font-size: 1.15rem;
    line-height: 1.2;
  }

  .coach-hero .profile-handle {
    font-size: 0.95rem;
  }

  .coach-hero .verified-badge {
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 999px;
  }

  .coach-hero .coach-headline {
    margin-top: 6px;
    font-size: 0.95rem;
    line-height: 1.25;
  }

  .coach-hero .profile-bio {
    margin-top: 6px;
    font-size: 0.92rem;
    line-height: 1.35;
  }

  .coach-hero .profile-location {
    margin-top: 6px;
    font-size: 0.9rem;
  }

  .coach-hero__links {
    margin-top: 10px;
    gap: 8px;
  }

  .coach-hero__actions {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    align-items: stretch;
    justify-content: start;
    justify-items: stretch;
    width: 100%;
  }

  .coach-hero__actions .btn {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 10px 12px;
    line-height: 1.1;
    white-space: normal;
    justify-content: center;
    min-height: 44px;
    font-size: 0.92rem;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
  }

  .coach-hero__actions .coach-hero__action-form {
    display: contents;
    margin: 0;
    padding: 0;
  }

  .coach-hero__actions.actions--stack {
    grid-template-columns: 1fr;
  }

  .coach-hero__note {
    grid-column: 1 / -1;
    margin-top: 4px;
    font-size: 0.85rem;
  }

  .coach-metrics {
    justify-items: stretch;
  }
}

.profile-tile {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  background: #fff;
  display: block;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.profile-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.tile-thumb {
  height: 180px;
  background-size: cover;
  background-position: center;
}

.tile-overlay {
  padding: 12px;
  color: #0f172a;
}

.tile-overlay h3 {
  margin: 0 0 6px 0;
}

.tile-overlay p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.tile-locked::after {
  content: "🔒";
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 1.1rem;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  padding: 4px;
}

.tile-locked .tile-overlay {
  position: relative;
}

.tile-locked .tile-overlay::before {
  content: "Subscriber-only";
  position: absolute;
  left: 12px;
  bottom: -4px;
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border-radius: 8px;
  font-size: 0.85rem;
}

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

.latest-card {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #f8fafc;
  text-decoration: none;
  color: #0f172a;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.latest-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.latest-title {
  font-weight: 700;
}

.latest-desc {
  color: var(--muted);
  font-size: 0.95rem;
}

.latest-meta {
  font-size: 0.85rem;
}

@media (max-width: 760px) {
  .profile-hero {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .profile-meta {
    justify-items: center;
  }

  .profile-actions {
    justify-content: center;
  }

  .profile-content {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 700px) {
  .lessons-hero__top {
    flex-direction: column;
    align-items: flex-start;
  }

  .lessons-hero__actions {
    justify-content: flex-start;
  }

  .lessons-hero__meta {
    align-items: flex-start;
  }

  .lessons-hero__filter .input {
    width: 100%;
  }
}
.empty-state {
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 18px;
  padding: 36px 32px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.05);
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 auto;
}

.empty-state--sm {
  padding: 16px;
  gap: 6px;
}

.empty-state__icon {
  font-size: 30px;
  opacity: 0.85;
  margin-bottom: 8px;
}

.empty-state__title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
}

.empty-state__body {
  margin: 0;
  color: #4b5563;
  line-height: 1.5;
}

.empty-state__actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}
