/* ============================================
   Monsoon Training Portal — Styles
   Matched to Monsoon Webapp MUI v7 Theme Tokens
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Public+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
  /* ── Monsoon Webapp Primary ── */
  --primary: #00A76F;
  --primary-light: #5BE49B;
  --primary-lighter: #C8FAD6;
  --primary-dark: #007867;
  --primary-darker: #004B50;
  --primary-contrast: #FFFFFF;

  /* ── Monsoon Webapp Secondary ── */
  --secondary: #8E33FF;
  --secondary-light: #C684FF;
  --secondary-lighter: #EFD6FF;
  --secondary-dark: #5119B7;

  /* ── Semantic ── */
  --success: #22C55E;
  --success-light: #D3FCD2;
  --warning: #FFAB00;
  --warning-light: #FFF5CC;
  --error: #FF5630;
  --error-light: #FFE9D5;
  --info: #00B8D9;
  --info-light: #CAFDF5;

  /* ── Greys (from webapp palette) ── */
  --grey-50: #FCFDFD;
  --grey-100: #F9FAFB;
  --grey-200: #F4F6F8;
  --grey-300: #DFE3E8;
  --grey-400: #C4CDD5;
  --grey-500: #919EAB;
  --grey-600: #637381;
  --grey-700: #454F5B;
  --grey-800: #1C252E;
  --grey-900: #141A21;
  --white: #FFFFFF;

  /* ── Text ── */
  --text-primary: #1C252E;
  --text-secondary: #637381;
  --text-disabled: #919EAB;

  /* ── Background ── */
  --bg-default: #FFFFFF;
  --bg-paper: #FFFFFF;
  --bg-neutral: #F4F6F8;

  /* ── Typography ── */
  --font-primary: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* ── Spacing ── */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-10: 40px;
  --sp-12: 48px;

  /* ── Radius (webapp uses 8px base) ── */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  /* ── Shadows (from webapp customShadows) ── */
  --shadow-z1: 0 1px 2px 0 rgba(145 158 171 / 0.16);
  --shadow-z4: 0 4px 8px 0 rgba(145 158 171 / 0.16);
  --shadow-z8: 0 8px 16px 0 rgba(145 158 171 / 0.16);
  --shadow-z12: 0 12px 24px -4px rgba(145 158 171 / 0.16);
  --shadow-card: 0 0 2px 0 rgba(145 158 171 / 0.2), 0 12px 24px -4px rgba(145 158 171 / 0.12);
  --shadow-dropdown: 0 0 2px 0 rgba(145 158 171 / 0.24), -20px 20px 40px -4px rgba(145 158 171 / 0.24);
  --shadow-primary: 0 8px 16px 0 rgba(0 167 111 / 0.24);

  /* ── Divider ── */
  --divider: rgba(145 158 171 / 0.2);

  /* ── Layout ── */
  --sidebar-width: 280px;
  --header-height: 64px;
  --max-content: 900px;
}

/* ============================================
   Reset
   ============================================ */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  color: var(--text-primary);
  background: var(--bg-neutral);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; display: block; }

/* ============================================
   Layout Shell
   ============================================ */

.app-layout { display: flex; min-height: 100vh; }

/* ============================================
   Sidebar
   ============================================ */

.sidebar {
  width: var(--sidebar-width);
  background: var(--white);
  border-right: 1px solid var(--divider);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  transition: transform 0.3s ease;
}

.sidebar-header {
  padding: var(--sp-6);
  border-bottom: 1px solid var(--divider);
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.sidebar-logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.sidebar-logo-text {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: var(--sp-2) 0;
}

.nav-section-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-disabled);
  padding: var(--sp-4) var(--sp-5) var(--sp-1);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-2) var(--sp-5);
  margin: 0 var(--sp-2);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  border-radius: var(--radius-sm);
  position: relative;
  min-height: 44px;
}

.nav-item:hover {
  background: rgba(145 158 171 / 0.08);
  color: var(--text-primary);
}

.nav-item.active {
  background: rgba(0 167 111 / 0.08);
  color: var(--primary);
  font-weight: 600;
}

.nav-item svg { width: 20px; height: 20px; flex-shrink: 0; }

.nav-item .progress-badge {
  margin-left: auto;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--grey-200);
  color: var(--text-secondary);
  min-width: 32px;
  text-align: center;
}

.nav-item .progress-badge.complete {
  background: var(--success-light);
  color: var(--success);
}

.nav-item.locked { opacity: 0.4; pointer-events: none; }
.nav-item.locked::after {
  content: '🔒';
  margin-left: auto;
  font-size: 0.75rem;
}

.sidebar-footer {
  padding: var(--sp-4) var(--sp-5);
  border-top: 1px solid var(--divider);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-disabled);
}

.sidebar-footer .version {
  background: var(--grey-200);
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 600;
}

/* ============================================
   Main Content
   ============================================ */

.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  display: flex;
  flex-direction: column;
}

.content-header {
  background: rgba(255 255 255 / 0.8);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--divider);
  padding: 0 var(--sp-8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-left { display: flex; align-items: center; gap: var(--sp-4); }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  color: var(--text-disabled);
}

.breadcrumb a { color: var(--text-disabled); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .current { color: var(--text-primary); font-weight: 600; }

.header-right { display: flex; align-items: center; gap: var(--sp-4); }

.mobile-menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--grey-300);
  border-radius: var(--radius-sm);
  padding: var(--sp-2);
  cursor: pointer;
  color: var(--text-secondary);
}

.overall-progress {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.overall-progress-bar {
  width: 120px;
  height: 6px;
  background: var(--grey-300);
  border-radius: 99px;
  overflow: hidden;
}

.overall-progress-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 99px;
  transition: width 0.5s ease;
}

.content-area {
  flex: 1;
  padding: var(--sp-10);
  max-width: calc(var(--max-content) + var(--sp-10) * 2);
}

/* ============================================
   Welcome Banner
   ============================================ */

.welcome-banner {
  background: linear-gradient(135deg, var(--primary-darker), var(--primary));
  border-radius: var(--radius-lg);
  padding: var(--sp-10) var(--sp-12);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.welcome-banner::before {
  content: '';
  position: absolute;
  top: -60%; right: -15%;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(91 228 155 / 0.12);
}

.welcome-banner::after {
  content: '';
  position: absolute;
  bottom: -40%; right: 10%;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(91 228 155 / 0.08);
}

.welcome-banner h1 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: var(--sp-2);
  position: relative;
}

.welcome-banner p {
  font-size: 0.9375rem;
  opacity: 0.85;
  max-width: 520px;
  position: relative;
  line-height: 1.7;
}

/* ============================================
   Dashboard Course Cards
   ============================================ */

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--sp-6);
  margin-top: var(--sp-8);
}

.course-card {
  background: var(--white);
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  transition: all 0.2s;
  cursor: pointer;
  box-shadow: var(--shadow-card);
}

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

.course-card.locked {
  cursor: default;
  opacity: 0.55;
}

.course-card.locked:hover {
  transform: none;
  box-shadow: var(--shadow-card);
}

.course-card-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-4);
  font-size: 1.5rem;
}

.course-card-icon.onboarding { background: var(--primary-lighter); }
.course-card-icon.pro { background: var(--secondary-lighter); }
.course-card-icon.warehouse { background: var(--warning-light); }
.course-card-icon.shipping { background: var(--success-light); }

.course-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--sp-1);
}

.course-card p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-bottom: var(--sp-4);
  line-height: 1.6;
}

.course-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.course-card-progress { flex: 1; margin-right: var(--sp-4); }

.course-card-progress-bar {
  width: 100%;
  height: 6px;
  background: var(--grey-200);
  border-radius: 99px;
  overflow: hidden;
}

.course-card-progress-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 99px;
}

.course-card-progress-text {
  font-size: 0.6875rem;
  color: var(--text-disabled);
  margin-top: 4px;
  font-weight: 500;
}

.status-badge {
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
}

.status-badge.available { background: rgba(0 167 111 / 0.08); color: var(--primary); }
.status-badge.coming-soon { background: var(--grey-200); color: var(--text-disabled); }
.status-badge.completed { background: var(--success-light); color: var(--success); }

/* ============================================
   Module Page
   ============================================ */

.module-hero { margin-bottom: var(--sp-8); }

.module-hero h1 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-2);
}

.module-hero p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.6;
}

.module-progress-summary {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin-top: var(--sp-4);
  padding: var(--sp-4) var(--sp-6);
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-z1);
}

.module-progress-bar {
  flex: 1;
  height: 8px;
  background: var(--grey-200);
  border-radius: 99px;
  overflow: hidden;
}

.module-progress-bar-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 99px;
  transition: width 0.5s ease;
}

.module-progress-text {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-secondary);
  white-space: nowrap;
}

/* ============================================
   Step Cards
   ============================================ */

.steps-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.step-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--sp-5) var(--sp-6);
  transition: all 0.2s;
  cursor: pointer;
  box-shadow: var(--shadow-z1);
}

.step-card:hover { box-shadow: var(--shadow-z4); }

.step-card.completed {
  background: linear-gradient(135deg, var(--white) 0%, rgba(0 167 111 / 0.04) 100%);
  border-left: 3px solid var(--primary);
}

.step-card-header {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
}

.step-checkbox {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 2px solid var(--grey-400);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 2px;
}

.step-checkbox:hover {
  border-color: var(--primary);
  background: rgba(0 167 111 / 0.08);
}

.step-checkbox.checked {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: var(--shadow-primary);
}

.step-checkbox.checked svg { display: block; }
.step-checkbox svg { display: none; width: 14px; height: 14px; color: var(--white); }

.step-info { flex: 1; }

.step-number {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-disabled);
  margin-bottom: 2px;
}

.step-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.step-description {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.step-meta {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-top: var(--sp-2);
  flex-wrap: wrap;
}

.step-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--grey-200);
  color: var(--text-secondary);
}

.step-tag.video { background: var(--secondary-lighter); color: var(--secondary); }
.step-tag.guide { background: var(--info-light); color: var(--info); }
.step-tag.interactive { background: var(--warning-light); color: #B76E00; }

.step-expand-btn {
  background: none;
  border: none;
  color: var(--text-disabled);
  cursor: pointer;
  padding: var(--sp-1);
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.step-expand-btn:hover { background: var(--grey-200); color: var(--text-secondary); }
.step-expand-btn svg { width: 20px; height: 20px; transition: transform 0.2s; }
.step-card.expanded .step-expand-btn svg { transform: rotate(180deg); }

/* Step expanded content */
.step-content {
  display: none;
  margin-top: var(--sp-5);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--divider);
}

.step-card.expanded .step-content {
  display: block;
  animation: fadeSlide 0.3s ease;
}

@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Storylane inline embed */
.storylane-embed { margin-bottom: var(--sp-5); }

.storylane-embed .sl-embed {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: calc(49.22% + 25px);
  transform: scale(1);
}

.storylane-embed .sl-demo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  border: 1px solid rgba(63, 95, 172, 0.35);
  box-shadow: 0 0 18px rgba(26, 19, 72, 0.15);
  border-radius: 10px;
  box-sizing: border-box;
  background: var(--white);
}

.storylane-embed-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-3);
  margin-top: var(--sp-3);
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.storylane-embed-footer a {
  font-weight: 700;
}

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

.storylane-link-inner {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-5);
  background: linear-gradient(135deg, var(--secondary-lighter), var(--info-light));
  border: 1px solid rgba(142 51 255 / 0.16);
  border-radius: var(--radius-md);
  transition: all 0.2s;
}

.storylane-link-inner:hover {
  border-color: var(--secondary-light);
  box-shadow: 0 8px 16px 0 rgba(142 51 255 / 0.16);
  transform: translateY(-1px);
}

.storylane-link-inner svg:first-child { color: var(--secondary); flex-shrink: 0; }

.storylane-link-inner div {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.storylane-link-inner strong { font-size: 0.875rem; color: var(--secondary-dark); }

.storylane-link-inner span { font-size: 0.75rem; color: var(--text-secondary); }

.storylane-link-inner span code {
  font-family: var(--font-mono);
  font-size: 0.8em;
  background: rgba(255 255 255 / 0.6);
  padding: 1px 5px;
  border-radius: 4px;
  color: var(--secondary);
}

.storylane-link-inner svg:last-child { color: var(--text-disabled); flex-shrink: 0; }

/* Video placeholder */
.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--grey-900);
  margin-bottom: var(--sp-4);
}

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

.video-placeholder {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--grey-500);
  gap: var(--sp-2);
}

.video-placeholder svg { width: 48px; height: 48px; opacity: 0.5; }
.video-placeholder span { font-size: 0.8125rem; }

/* Step instructions */
.step-instructions {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.step-instructions h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--sp-2);
}

.step-instructions ol,
.step-instructions ul {
  padding-left: var(--sp-6);
  margin-bottom: var(--sp-4);
}

.step-instructions li { margin-bottom: var(--sp-2); }

.step-instructions code {
  font-family: var(--font-mono);
  font-size: 0.8125em;
  background: var(--grey-200);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--primary-dark);
}

.step-instructions .callout {
  padding: var(--sp-4);
  border-radius: var(--radius-sm);
  margin: var(--sp-4) 0;
  font-size: 0.8125rem;
}

.step-instructions .callout.info {
  background: rgba(0 167 111 / 0.08);
  border-left: 3px solid var(--primary);
  color: var(--primary-darker);
}

.step-instructions .callout.tip {
  background: rgba(34 197 94 / 0.08);
  border-left: 3px solid var(--success);
  color: #065E49;
}

.step-instructions .callout.warning {
  background: rgba(255 171 0 / 0.08);
  border-left: 3px solid var(--warning);
  color: #7A4100;
}

/* Attached lesson content */
.step-resources {
  margin-top: var(--sp-5);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--divider);
}

.step-resources-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-bottom: var(--sp-3);
}

.step-resources-header h4 {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-primary);
}

.step-resources-header span {
  font-size: 0.75rem;
  color: var(--text-disabled);
}

.resource-list {
  display: grid;
  gap: var(--sp-4);
}

.resource-storylane {
  padding: var(--sp-4);
  background: var(--grey-50);
  border: 1px solid rgba(142 51 255 / 0.18);
  border-radius: var(--radius-sm);
}

.resource-storylane-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--sp-4);
  margin-bottom: var(--sp-4);
}

.resource-storylane-header div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.resource-storylane-header strong {
  font-size: 0.9375rem;
  color: var(--text-primary);
}

.resource-storylane-header p {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.resource-storylane-header a {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 700;
}

.storylane-embed.compact {
  margin-bottom: 0;
}

.resource-card {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4);
  background: var(--grey-50);
  border: 1px solid var(--divider);
  border-radius: var(--radius-sm);
  color: inherit;
  text-decoration: none;
  transition: all 0.2s;
}

.resource-card:hover {
  background: var(--white);
  border-color: rgba(0 167 111 / 0.32);
  box-shadow: var(--shadow-z4);
  transform: translateY(-1px);
}

.resource-card.pending {
  background: rgba(145 158 171 / 0.06);
}

.resource-card.pending:hover {
  border-color: var(--divider);
  box-shadow: none;
  transform: none;
}

.resource-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(0 167 111 / 0.08);
  color: var(--primary);
}

.resource-icon svg {
  width: 20px;
  height: 20px;
}

.resource-icon.storylane {
  background: var(--secondary-lighter);
  color: var(--secondary);
}

.resource-icon.checklist {
  background: var(--info-light);
  color: var(--info);
}

.resource-icon.support {
  background: var(--warning-light);
  color: #B76E00;
}

.resource-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.resource-type {
  font-size: 0.625rem;
  font-weight: 700;
  color: var(--text-disabled);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.resource-body strong {
  font-size: 0.875rem;
  color: var(--text-primary);
}

.resource-body p {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.resource-action {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}

.resource-card.pending .resource-action {
  color: var(--text-disabled);
}

/* ============================================
   Mobile Responsive
   ============================================ */

@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); box-shadow: var(--shadow-dropdown); }
  .main-content { margin-left: 0; }
  .mobile-menu-btn { display: flex; }
  .content-area { padding: var(--sp-6); }
  .content-header { padding: 0 var(--sp-4); }
  .welcome-banner { padding: var(--sp-6); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .overall-progress { display: none; }
  .storylane-embed-footer {
    align-items: flex-start;
    flex-direction: column;
  }
  .resource-storylane-header {
    flex-direction: column;
  }
  .resource-card { grid-template-columns: 36px 1fr; }
  .resource-action { grid-column: 2; }
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0 0 0 / 0.3);
  z-index: 99;
}

.sidebar-overlay.visible { display: block; }

/* ============================================
   Next Step Button
   ============================================ */

.next-step-bar {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px dashed var(--gray-300, #DFE3E8);
  display: flex;
  justify-content: flex-end;
}

.next-step-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--primary, #00A76F);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0, 167, 111, 0.25);
}

.next-step-btn:hover {
  background: var(--primary-dark, #007867);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 167, 111, 0.35);
}

.next-step-btn svg {
  flex-shrink: 0;
  transition: transform 0.2s;
}

.next-step-btn:hover svg {
  transform: translateX(3px);
}

.next-step-btn.complete-btn {
  background: linear-gradient(135deg, var(--primary-dark, #007867), var(--primary, #00A76F));
  padding: 12px 24px;
  font-size: 14px;
}

/* Practice Button — Side by Side */
.practice-bar {
  margin-top: 20px;
  padding: 16px 20px;
  background: rgba(0, 167, 111, 0.04);
  border: 1px solid rgba(0, 167, 111, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.practice-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 22px;
  background: #00A76F;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0, 167, 111, 0.3);
}

.practice-btn:hover {
  background: #007867;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 167, 111, 0.4);
}

.practice-btn svg {
  flex-shrink: 0;
}

.practice-hint {
  font-size: 12px;
  color: #637381;
  font-style: italic;
}
