/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #E8725A;
  --primary-dark: #D4593F;
  --secondary: #4A7FD9;
  --secondary-dark: #3968B8;
  --accent: #5CB8A5;
  --bg: #FFFFFF;
  --card: #FFFFFF;
  --text: #14181D;
  --text-light: #2F353D;
  --text-muted: #6C7079;
  --border: #E8E4E0;
  --success: #27AE60;
  --danger: #E74C3C;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(0,0,0,0.06);
  --shadow-hover: 0 8px 30px rgba(0,0,0,0.12);
  --sidebar-w: 280px;
}

html { font-size: 15px; }

body {
  font-family: 'Noto Sans JP', 'Manrope', -apple-system, sans-serif;
  background: #FFFFFF;
  color: var(--text);
  font-weight: 500;
  line-height: 1.75;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ===== App Layout (Sidebar + Main) ===== */
.app-layout {
  display: flex;
  min-height: 100vh;
}

/* ===== Global Sidebar ===== */
.global-sidebar {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  background: #FBF8F4;
  color: #4A4F57;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 200;
  border-right: 1px solid #ECE6DE;
  box-shadow: 1px 0 8px rgba(0,0,0,0.03);
}

.gs-header {
  padding: 20px 20px 12px;
  border-bottom: 1px solid #ECE6DE;
}

.gs-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}

@keyframes gradationHueFlow {
  0%   { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

.header-logo { display: inline-flex; align-items: center; gap: 10px; }
.header-logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #A8C0D6 0%, #C8B6D9 50%, #B8D4C2 100%);
  color: #fff;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  text-shadow: 0 1px 2px rgba(0,0,0,0.15);
  animation: gradationHueFlow 18s linear infinite;
  box-shadow: 0 2px 8px rgba(168,192,214,0.4);
}
.header-logo-text {
  font-family: 'Manrope', 'Noto Sans JP', sans-serif;
  font-weight: 700;
  letter-spacing: 0.03em;
  background: linear-gradient(135deg, #6B8AB5 0%, #9B7DB8 50%, #6BAD8E 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradationHueFlow 18s linear infinite;
}

.gs-logo-icon {
  width: 40px;
  height: 40px;
  background:
    linear-gradient(135deg,
      #1D4ED8 0%,
      #4338CA 18%,
      #7C3AED 36%,
      #C026D3 54%,
      #DB2777 72%,
      #E11D48 86%,
      #F97316 100%);
  color: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  flex-shrink: 0;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
  box-shadow:
    0 4px 16px rgba(124,58,237,0.45),
    inset 0 1px 0 rgba(255,255,255,0.35),
    inset 0 -2px 6px rgba(0,0,0,0.25);
  animation: gradationWarmCycle 14s ease-in-out infinite alternate;
}

.gs-logo-text {
  font-family: 'Manrope', 'Noto Sans JP', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.03em;
  background:
    linear-gradient(135deg,
      #1D4ED8 0%,
      #4338CA 18%,
      #7C3AED 36%,
      #C026D3 54%,
      #DB2777 72%,
      #E11D48 86%,
      #F97316 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradationWarmCycle 14s ease-in-out infinite alternate;
}

/* hue-rotate を -55deg 方向にだけオシレートして緑域を通過させない */
@keyframes gradationWarmCycle {
  0%   { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(-55deg); }
}

/* User section */
.gs-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid #ECE6DE;
}

.gs-user-avatar {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #A8C0D6, #C8B6D9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(168,192,214,0.4);
}

.gs-user-info { flex: 1; min-width: 0; }

.gs-user-name {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text);
  display: block;
  margin-bottom: 4px;
}

.gs-overall {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Navigation */
.gs-nav {
  flex: 1;
  padding: 12px 0;
  overflow-y: auto;
}

.gs-nav-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #5A5260;
  padding: 4px 20px 8px;
}

.gs-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  font-size: 0.86rem;
  font-weight: 700;
  color: #14181D;
  transition: all 0.15s;
  border-left: 3px solid transparent;
}

.gs-nav-item:hover {
  background: rgba(155,125,184,0.08);
  color: var(--text);
}

.gs-nav-active {
  background: linear-gradient(90deg, rgba(155,125,184,0.14) 0%, rgba(155,125,184,0.04) 100%);
  color: var(--text);
  border-left-color: #9B7DB8;
  font-weight: 600;
}

.gs-nav-icon {
  position: relative;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,0.95), rgba(255,255,255,0.55) 60%, rgba(255,255,255,0.3));
  border: 1px solid rgba(155,125,184,0.18);
  box-shadow:
    0 2px 6px rgba(0,0,0,0.06),
    inset 0 1px 0 rgba(255,255,255,0.9);
  transition: transform 0.18s, box-shadow 0.18s;
}
.gs-nav-item:hover .gs-nav-icon {
  transform: translateY(-1px) rotate(-3deg);
  box-shadow:
    0 4px 12px rgba(155,125,184,0.20),
    inset 0 1px 0 rgba(255,255,255,0.95);
}
.gs-nav-active .gs-nav-icon {
  background:
    linear-gradient(135deg, rgba(168,192,214,0.55), rgba(200,182,217,0.65), rgba(184,212,194,0.55));
  border-color: rgba(155,125,184,0.45);
  box-shadow:
    0 3px 10px rgba(155,125,184,0.30),
    inset 0 1px 0 rgba(255,255,255,0.7);
}

.gs-nav-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.3;
}

.gs-nav-pct {
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(255,255,255,0.4);
  flex-shrink: 0;
}

.gs-nav-pct-done { color: var(--accent); }

/* Footer */
.gs-footer {
  padding: 12px 16px;
  border-top: 1px solid #ECE6DE;
}

.gs-footer-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 0.82rem;
  color: #6C7079;
  border-radius: 8px;
  transition: all 0.15s;
}

.gs-footer-link:hover {
  background: rgba(155,125,184,0.1);
  color: var(--text);
}

.gs-logout { color: #C46B5B; }
.gs-logout:hover { background: rgba(196,107,91,0.12); color: #A84F40; }

/* ===== Mobile Header ===== */
.mobile-header {
  display: none;
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 0 16px;
  height: 56px;
  align-items: center;
  gap: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.mobile-menu-btn {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 4px;
}

.mobile-title {
  font-weight: 700;
  font-size: 1rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 199;
}

/* ===== Main Area ===== */
.app-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.app-main-inner {
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  padding: 32px 32px 80px;
}

/* ===== Login ===== */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.login-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #E8725A 100%);
  background-size: 300% 300%;
  animation: bgFlow 12s ease infinite;
}

@keyframes bgFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.login-card {
  position: relative;
  background: var(--card);
  border-radius: 20px;
  padding: 48px 40px;
  width: 420px;
  max-width: 90vw;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.login-logo {
  text-align: center;
  margin-bottom: 32px;
}

.login-logo-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #A8C0D6 0%, #C8B6D9 50%, #B8D4C2 100%);
  color: #fff;
  border-radius: 16px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.18);
  animation: gradationHueFlow 18s linear infinite;
  box-shadow: 0 4px 16px rgba(168,192,214,0.45);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 2rem;
  margin-bottom: 16px;
}

.login-logo h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}

.login-subtitle {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-top: 4px;
}

.login-error {
  background: #FEE;
  color: var(--danger);
  padding: 10px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  border: 1px solid #FCC;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 6px;
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s;
  outline: none;
}

.form-group input:focus { border-color: var(--primary); }

.btn-login {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-login:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(232,114,90,0.4);
}

/* ===== Home Hero ===== */
.home-hero {
  background:
    linear-gradient(135deg,
      #FAFCFF 0%,
      #F8F9FF 18%,
      #FBF8FF 36%,
      #FDF7FE 54%,
      #FEF7FC 72%,
      #FFF7FA 88%,
      #FAFCFF 100%);
  background-size: 280% 280%;
  color: #14181D;
  border-radius: 16px;
  padding: 36px 40px;
  margin-bottom: 32px;
  box-shadow:
    0 8px 24px rgba(99,102,241,0.10),
    inset 0 1px 0 rgba(255,255,255,0.80);
  position: relative;
  overflow: hidden;
  animation: heroDeepFlow 18s ease-in-out infinite;
}
.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(186,230,253,0.30) 0%, transparent 45%),
    radial-gradient(circle at 88% 88%, rgba(244,200,232,0.30) 0%, transparent 50%);
  pointer-events: none;
  animation: heroGlowDrift 22s ease-in-out infinite alternate;
}

@keyframes heroDeepFlow {
  0%   { background-position:   0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position:   0% 50%; }
}
@keyframes heroGlowDrift {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(-3%, 2%); }
}

.home-hero h1 {
  font-size: 1.7rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: #14181D;
  text-shadow: 0 1px 0 rgba(255,255,255,0.6);
  position: relative;
  z-index: 1;
}

.home-hero p {
  opacity: 0.85;
  font-size: 0.97rem;
  font-weight: 600;
  color: #2F353D;
  position: relative;
  z-index: 1;
}

.section-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text);
}

/* ===== Course Grid ===== */
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.course-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

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

.course-card-thumb {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  overflow: hidden;
  padding: 0 20px;
}

.course-card-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(255,255,255,0.45) 0%, transparent 38%),
    radial-gradient(circle at 85% 80%, rgba(255,255,255,0.25) 0%, transparent 45%);
  pointer-events: none;
}
/* When the thumb uses an actual image, suppress the light overlay so the photo shows clean */
.course-card-thumb.has-thumb::after { display: none; }
.course-banner.has-thumb::after { display: none; }

.course-thumb-flow {
  animation: gradationHueFlow 22s linear infinite;
}

.course-card-icon {
  position: relative;
  z-index: 2;
  font-size: 2rem;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* glassmorphism layered look */
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.55) 55%, rgba(255,255,255,0.3) 100%);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow:
    0 8px 24px rgba(0,0,0,0.10),
    0 2px 6px rgba(0,0,0,0.06),
    inset 0 1px 0 rgba(255,255,255,0.9),
    inset 0 -2px 4px rgba(0,0,0,0.04);
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.12));
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.course-card:hover .course-card-icon {
  transform: translateY(-2px) rotate(-3deg) scale(1.05);
  box-shadow:
    0 12px 30px rgba(0,0,0,0.14),
    0 4px 10px rgba(0,0,0,0.08),
    inset 0 1px 0 rgba(255,255,255,0.95);
}
/* subtle aurora-glow ring behind the icon */
.course-card-icon::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 24px;
  background:
    conic-gradient(from 0deg, rgba(168,192,214,0.0), rgba(200,182,217,0.25), rgba(184,212,194,0.20), rgba(245,201,182,0.18), rgba(168,192,214,0.0));
  filter: blur(10px);
  z-index: -1;
  opacity: 0.65;
  animation: gradationHueFlow 18s linear infinite;
}

.course-card-bignum {
  position: absolute;
  top: 50%;
  right: -10px;
  transform: translateY(-50%);
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 6.5rem;
  line-height: 0.8;
  letter-spacing: -0.04em;
  color: rgba(255,255,255,0.55);
  text-shadow: 0 2px 8px rgba(0,0,0,0.08);
  pointer-events: none;
  white-space: nowrap;
  z-index: 1;
}

/* Smaller font for text labels like TOOL/ORDER/STUDY/FAQ so they fit */
.course-card-bignum:not(:empty)[data-len] { }
.course-card-bignum {
  font-size: clamp(2.2rem, 7vw, 6rem);
}

.course-banner-bignum {
  position: absolute;
  top: 50%;
  right: 24px;
  transform: translateY(-50%);
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: clamp(3rem, 9vw, 7.5rem);
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: rgba(255,255,255,0.5);
  text-shadow: 0 3px 14px rgba(0,0,0,0.1);
  pointer-events: none;
  white-space: nowrap;
  z-index: 1;
}

.course-banner {
  position: relative;
  overflow: hidden;
}
.course-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 20%, rgba(255,255,255,0.35) 0%, transparent 38%),
    radial-gradient(circle at 90% 90%, rgba(255,255,255,0.2) 0%, transparent 50%);
  pointer-events: none;
}
.course-banner-content,
.course-banner-progress { position: relative; z-index: 2; }
.course-banner-icon {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 2.2rem;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,0.98), rgba(255,255,255,0.65) 60%, rgba(255,255,255,0.4) 100%);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.75);
  box-shadow:
    0 10px 28px rgba(0,0,0,0.16),
    0 3px 8px rgba(0,0,0,0.08),
    inset 0 1px 0 rgba(255,255,255,0.95),
    inset 0 -2px 4px rgba(0,0,0,0.05);
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}
.course-banner-icon::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 28px;
  background:
    conic-gradient(from 0deg, rgba(168,192,214,0.0), rgba(200,182,217,0.30), rgba(184,212,194,0.25), rgba(245,201,182,0.22), rgba(168,192,214,0.0));
  filter: blur(14px);
  z-index: -1;
  opacity: 0.75;
  animation: gradationHueFlow 22s linear infinite;
}

.course-card-body {
  padding: 16px 18px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.course-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.4;
}

.course-card-desc {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 14px;
  flex: 1;
}

.course-card-progress {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ===== Progress Bar ===== */
.progress-bar {
  flex: 1;
  height: 8px;
  background: #ECEAE7;
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar-lg { height: 10px; border-radius: 5px; }
.progress-bar-sm { height: 6px; border-radius: 3px; }

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
  border-radius: inherit;
  transition: width 0.4s ease;
  min-width: 0;
}

.progress-fill-white {
  background: rgba(255,255,255,0.85);
}

.progress-text {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-light);
  white-space: nowrap;
}

/* ===== Course Banner ===== */
.course-banner {
  border-radius: 16px;
  padding: 28px 32px;
  margin-bottom: 28px;
  color: #fff;
  box-shadow: 0 6px 24px rgba(0,0,0,0.12);
}

.course-banner-content {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.course-banner-icon { font-size: 2.5rem; }

.course-banner .breadcrumb { margin-bottom: 4px; }
.course-banner .breadcrumb,
.course-banner .breadcrumb a,
.course-banner .breadcrumb-sep { color: rgba(255,255,255,0.7); }
.course-banner .breadcrumb a:hover { color: #fff; }

.course-banner-title {
  font-size: 1.4rem;
  font-weight: 700;
}

.course-banner-progress {
  display: flex;
  align-items: center;
  gap: 12px;
}

.course-banner-progress .progress-bar { background: rgba(255,255,255,0.25); }

.course-banner-pct {
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
}

/* ===== Breadcrumb ===== */
.breadcrumb {
  font-size: 0.82rem;
  color: var(--text-light);
}

.breadcrumb a {
  color: var(--secondary);
  transition: color 0.2s;
}

.breadcrumb a:hover { color: var(--secondary-dark); }
.breadcrumb-sep { margin: 0 6px; }

/* ===== Lesson Sections ===== */
.lesson-section { margin-bottom: 28px; }

.lesson-section-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  padding: 10px 16px;
  background: rgba(232,114,90,0.06);
  border-left: 4px solid var(--primary);
  border-radius: 0 8px 8px 0;
  margin-bottom: 4px;
}

.lesson-list {
  background: var(--card);
  border-radius: 0 0 12px 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.lesson-item {
  display: flex;
  align-items: center;
  padding: 13px 20px;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

.lesson-item:last-child { border-bottom: none; }
.lesson-item:hover { background: #FAFAF8; }

.lesson-check {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 0;
  margin-right: 12px;
  display: flex;
  align-items: center;
  transition: color 0.2s;
  flex-shrink: 0;
}

.lesson-check:hover { color: var(--accent); }

.check-mark { opacity: 0; transition: opacity 0.2s; }

.lesson-completed .lesson-check { color: var(--accent); }
.lesson-completed .check-mark { opacity: 1; }
.lesson-completed .lesson-title {
  color: var(--text-light);
  text-decoration: line-through;
  text-decoration-color: var(--text-muted);
}

.lesson-title {
  flex: 1;
  font-size: 0.9rem;
  font-weight: 500;
}

.btn-lesson {
  padding: 6px 18px;
  background: var(--secondary);
  color: #fff;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}

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

.btn-lesson-soon {
  background: var(--text-muted);
  cursor: default;
  pointer-events: none;
}

/* ===== Admin ===== */
.page-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 28px;
}

.admin-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}

.admin-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}

.admin-form-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-input {
  flex: 1;
  min-width: 150px;
  padding: 10px 14px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.admin-input:focus { border-color: var(--primary); }

.admin-input-sm {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.8rem;
  font-family: inherit;
  outline: none;
  width: 120px;
}

.btn-add {
  padding: 10px 24px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-add:hover { background: #4DA08E; }

.admin-table-wrap { overflow-x: auto; }

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.admin-table th {
  text-align: left;
  padding: 10px 12px;
  background: #F8F6F3;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-light);
  border-bottom: 2px solid var(--border);
}

.admin-table td {
  padding: 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.admin-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-light);
}

.admin-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.inline-form {
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-sm {
  padding: 5px 12px;
  border: none;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-reset { background: #EEF2FF; color: var(--secondary); }
.btn-reset:hover { background: #DEE6FF; }
.btn-delete { background: #FEE; color: var(--danger); }
.btn-delete:hover { background: #FDD; }

/* ===== Members Progress ===== */
.member-progress-card { margin-bottom: 16px; }

.member-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.member-header h3 { font-size: 1.05rem; font-weight: 700; }
.member-email { color: var(--text-light); font-size: 0.85rem; }

.member-courses {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 8px;
}

.member-course-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: #F8F6F3;
  border-radius: 8px;
}

.member-course-name {
  flex: 1;
  font-size: 0.85rem;
  font-weight: 500;
}

/* ===== Footer ===== */
.footer {
  text-align: center;
  padding: 24px;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ===== Scrollbar (sidebar) ===== */
.global-sidebar::-webkit-scrollbar { width: 4px; }
.global-sidebar::-webkit-scrollbar-track { background: transparent; }
.global-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 2px; }
.gs-nav::-webkit-scrollbar { width: 4px; }
.gs-nav::-webkit-scrollbar-track { background: transparent; }
.gs-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 2px; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .global-sidebar {
    position: fixed;
    left: -300px;
    top: 0;
    height: 100vh;
    transition: left 0.3s ease;
    box-shadow: none;
  }

  .global-sidebar.open {
    left: 0;
    box-shadow: 4px 0 20px rgba(0,0,0,0.3);
  }

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

  .mobile-header { display: flex; }

  .app-main-inner { padding: 20px 16px 60px; }

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

  .home-hero { padding: 24px 20px; border-radius: 12px; }
  .home-hero h1 { font-size: 1.3rem; }

  .course-banner { padding: 20px; border-radius: 12px; }
  .course-banner-icon { font-size: 2rem; }
  .course-banner-title { font-size: 1.1rem; }
  .course-banner-content { gap: 12px; }

  .lesson-item { padding: 11px 14px; }
  .btn-lesson { padding: 5px 12px; font-size: 0.72rem; }

  .admin-form-row { flex-direction: column; }
  .admin-actions { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .course-card-thumb { height: 110px; }
  .course-card-icon { font-size: 2.2rem; }
}

/* ===== Achievement Badges ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid transparent;
  letter-spacing: 0.02em;
}

.badge-icon { font-size: 0.95rem; line-height: 1; }

.badge-done {
  background: linear-gradient(135deg, #FFE9A8 0%, #F5C24B 100%);
  color: #7A4E0B;
  border-color: #E6B23E;
  box-shadow: 0 2px 6px rgba(245,194,75,0.35);
}

.badge-progress {
  background: linear-gradient(135deg, #DCE9FF 0%, #A9C6FF 100%);
  color: #1F3F86;
  border-color: #8CB1F5;
}

.badge-not-started {
  background: #ECEEF1;
  color: #8A95A1;
  border-color: #DDE2E7;
}

/* Card variant — used inside course-card and course-banner */
.badge-card {
  align-self: flex-start;
  padding: 7px 14px;
  font-size: 0.8rem;
}

.badge-banner {
  background: rgba(255,255,255,0.18);
  color: #fff;
  border-color: rgba(255,255,255,0.35);
  padding: 8px 16px;
  font-size: 0.85rem;
  backdrop-filter: blur(4px);
}
.badge-banner.badge-done {
  background: linear-gradient(135deg, #FFE9A8 0%, #F5C24B 100%);
  color: #7A4E0B;
  border-color: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

/* Sidebar mini badge — replaces the % pill on nav items */
.gs-nav-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}
.gs-nav-badge.badge-done {
  background: linear-gradient(135deg, #FFE9A8 0%, #F5C24B 100%);
  color: #7A4E0B;
  box-shadow: 0 1px 3px rgba(245,194,75,0.4);
}
.gs-nav-badge.badge-progress {
  background: rgba(155,125,184,0.18);
  color: #5E3F82;
  border: 1px solid rgba(155,125,184,0.35);
}
.gs-nav-badge.badge-not-started {
  background: rgba(0,0,0,0.04);
  color: #B0A89E;
}

/* Sidebar overall achievement strip */
.gs-overall-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
  font-weight: 800;
  color: #14181D;
  letter-spacing: 0.01em;
}
.gs-overall-badge.is-done {
  color: #7A4E0B;
  background: linear-gradient(135deg, #FFE9A8 0%, #F5C24B 100%);
  padding: 4px 12px;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(245,194,75,0.45);
}

/* Admin table badge — compact */
.badge-table { padding: 5px 11px; font-size: 0.74rem; }

/* ===== Lesson Detail Page ===== */
.gs-nav-back {
  display: block;
  padding: 12px 20px;
  margin-bottom: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #6C7079;
  border-bottom: 1px solid #ECE6DE;
  transition: color 0.15s, background 0.15s;
}
.gs-nav-back:hover { color: var(--text); background: rgba(155,125,184,0.06); }

.gs-nav-lesson {
  padding: 9px 20px;
  font-size: 0.78rem;
}
.gs-nav-lesson-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 0.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.05);
  color: #B0A89E;
  flex-shrink: 0;
  font-weight: 700;
  line-height: 1;
}
.gs-nav-lesson-dot.is-done {
  background: linear-gradient(135deg, #B8D4C2 0%, #A8C8C0 100%);
  color: #fff;
}

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

.lesson-breadcrumb { margin-bottom: 20px; }

.lesson-article {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 6px 28px rgba(0,0,0,0.06);
  border: 1px solid #F0EBE3;
}

.lesson-article-header {
  padding: 44px 40px 38px;
  color: #fff;
  position: relative;
  overflow: hidden;
  animation: gradationHueFlow 22s linear infinite;
}
.lesson-article-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.18) 100%);
  pointer-events: none;
}
.lesson-article-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(255,255,255,0.35) 0%, transparent 40%),
    radial-gradient(circle at 88% 88%, rgba(255,255,255,0.18) 0%, transparent 50%);
  pointer-events: none;
}
.lesson-article-eyebrow {
  position: relative;
  z-index: 2;
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.85);
  color: #5A4F65;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.lesson-article-title {
  position: relative;
  z-index: 2;
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.01em;
  color: #fff;
  text-shadow:
    0 2px 4px rgba(0,0,0,0.18),
    0 4px 18px rgba(0,0,0,0.12);
}

.lesson-article-body {
  padding: 44px 44px 36px;
  font-size: 1.02rem;
  line-height: 1.95;
  color: #14181D;
  font-weight: 500;
}

.lb-lead {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 1.8em;
  line-height: 1.6;
  color: var(--text);
}

.lb-heading {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 2em 0 0.8em;
  letter-spacing: 0.02em;
  padding-bottom: 0.5em;
  border-bottom: 2px solid #F0EBE3;
}

.lb-subheading {
  font-size: 1.08rem;
  font-weight: 700;
  margin: 2em 0 0.7em;
  color: #4A4F57;
  position: relative;
  padding-left: 14px;
}

/* Numbered subheadings (①〜⑮) — clearer section break with soft background */
.lb-subheading.is-numbered {
  background: linear-gradient(135deg, rgba(168,192,214,0.10) 0%, rgba(200,182,217,0.12) 50%, rgba(184,212,194,0.10) 100%);
  border-left: 5px solid #9B7DB8;
  border-radius: 0 10px 10px 0;
  padding: 0.85em 1.1em 0.85em 1.1em;
  margin: 2.4em 0 1em;
  font-size: 1.15rem;
  color: #3C4148;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
/* Override the default decorative ::before bar for numbered headings */
.lb-subheading.is-numbered::before {
  display: none;
}
.lb-subheading::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4em;
  width: 4px;
  height: 1em;
  background: linear-gradient(180deg, #A8C0D6 0%, #C8B6D9 100%);
  border-radius: 2px;
}

.lb-paragraph {
  margin-bottom: 1.2em;
}

.lb-subheading.is-gradient {
  background: linear-gradient(135deg, #6B8AB5 0%, #9B7DB8 50%, #6BAD8E 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradationHueFlow 18s linear infinite;
  display: inline-block;
}
.lb-subheading.is-gradient::before {
  background: linear-gradient(180deg, #6B8AB5 0%, #9B7DB8 100%);
}

.lb-paragraph.is-gradient {
  background: linear-gradient(135deg, #6B8AB5 0%, #9B7DB8 50%, #6BAD8E 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradationHueFlow 18s linear infinite;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.lb-quote {
  font-family: 'Manrope', 'Noto Sans JP', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  text-align: center;
  margin: 1.8em 0;
  padding: 1.4em 1.6em;
  background: linear-gradient(135deg, #FBF8F4 0%, #F5F0E8 100%);
  border-radius: 12px;
  border: 1px dashed #D8CFC3;
  color: #5A4F40;
  letter-spacing: 0.04em;
}

.lb-verse {
  text-align: center;
  margin: 2em 0;
  padding: 2em 1.6em;
  background:
    linear-gradient(135deg, rgba(168,192,214,0.18) 0%, rgba(200,182,217,0.18) 50%, rgba(184,212,194,0.18) 100%);
  border-radius: 16px;
  border: 1px solid rgba(155,125,184,0.18);
  position: relative;
  overflow: hidden;
}
.lb-verse::before,
.lb-verse::after {
  content: "";
  position: absolute;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  filter: blur(20px);
  opacity: 0.7;
}
.lb-verse::before {
  top: -10px;
  left: -10px;
  background: #C8B6D9;
}
.lb-verse::after {
  bottom: -10px;
  right: -10px;
  background: #B8D4C2;
}
.lb-verse p {
  margin: 0.35em 0;
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.9;
  background: linear-gradient(135deg, #5A6F95 0%, #7B5D98 50%, #4F8D6E 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradationHueFlow 22s linear infinite;
  position: relative;
  z-index: 1;
}

.lb-callout {
  display: block;
  margin: 1.8em 0;
  padding: 1.1em 1.4em;
  background: linear-gradient(135deg, #F5EEF8 0%, #EFE6F5 100%);
  border-left: 3px solid #9B7DB8;
  border-radius: 8px;
  font-size: 0.95rem;
  color: #5A4F65;
  line-height: 1.75;
}

.lb-block {
  margin: 1.4em 0;
  padding: 1.1em 1.4em;
  background: #FBF8F4;
  border-radius: 10px;
  border: 1px solid #F0EBE3;
}
.lb-block-heading {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.5em;
  color: #4A4F57;
}

.lb-copy {
  margin: 1.4em 0;
  padding: 14px 18px;
  background: linear-gradient(135deg, #FBF8F4 0%, #F5F0E8 100%);
  border: 1px solid #E6DFD5;
  border-radius: 12px;
}
.lb-copy-label {
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 8px;
  color: var(--text);
}
.lb-copy-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.lb-copy-value {
  flex: 1;
  min-width: 120px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid #E6DFD5;
  border-radius: 8px;
  font-family: 'Manrope', monospace;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
  user-select: all;
}
.lb-copy-btn {
  padding: 10px 16px;
  background: linear-gradient(135deg, #A8C0D6, #C8B6D9);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.18s;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(155,125,184,0.25);
}
.lb-copy-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(155,125,184,0.35);
  background: linear-gradient(135deg, #98B0C8, #B8A6CC);
}
.lb-copy-btn.is-copied {
  background: linear-gradient(135deg, #B8D4C2, #A8C8C0);
}
.lb-copy-note {
  margin-top: 8px;
  font-size: 0.78rem;
  color: #6C7079;
}

.lb-link-box {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 1.4em 0;
  padding: 14px 20px;
  background: linear-gradient(135deg, #FBF8F4 0%, #F5F0E8 100%);
  border: 1px solid #E6DFD5;
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  transition: all 0.18s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.lb-link-box:hover {
  transform: translateY(-1px);
  border-color: #C8B6D9;
  box-shadow: 0 6px 20px rgba(155,125,184,0.18);
  background: linear-gradient(135deg, #FBF8F4 0%, #F2EBE0 100%);
}
.lb-link-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
.lb-link-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.lb-link-label {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}
.lb-link-note {
  font-size: 0.8rem;
  color: #6C7079;
}
.lb-link-arrow {
  font-size: 1.2rem;
  color: #9B7DB8;
  flex-shrink: 0;
  font-weight: 700;
  transition: transform 0.18s;
}
.lb-link-box:hover .lb-link-arrow { transform: translateX(4px); }

/* primary variant: same look as default (removed special outline) */
.lb-link-box-primary { }

/* Suppress default focus outline that briefly shows when clicked */
.lb-link-box:focus { outline: none; }
.lb-link-box:focus-visible {
  outline: 2px solid rgba(155,125,184,0.35);
  outline-offset: 2px;
}

.lb-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 12px;
  margin: 2em 0 2.8em;
  padding: 2em 1.4em;
  background:
    radial-gradient(circle at 18% 20%, rgba(245,201,182,0.18) 0%, transparent 38%),
    radial-gradient(circle at 82% 80%, rgba(184,212,194,0.20) 0%, transparent 42%),
    linear-gradient(135deg, rgba(168,192,214,0.10) 0%, rgba(200,182,217,0.13) 50%, rgba(184,212,194,0.10) 100%);
  border-radius: 20px;
  border: 1px solid rgba(155,125,184,0.18);
  position: relative;
  overflow: hidden;
  animation: gradationHueFlow 26s linear infinite;
}

.lb-flow-step {
  --step-color: #C8B6D9;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 18px 14px 16px;
  background:
    linear-gradient(180deg, #fff 0%, color-mix(in srgb, var(--step-color) 22%, #fff) 100%);
  border: 1.5px solid color-mix(in srgb, var(--step-color) 60%, #fff);
  border-radius: 16px;
  width: 150px;
  min-height: 150px;
  box-shadow:
    0 4px 14px rgba(0,0,0,0.05),
    0 1px 3px rgba(0,0,0,0.04),
    inset 0 1px 0 rgba(255,255,255,0.9);
  text-align: center;
  transition: transform 0.25s, box-shadow 0.25s;
}
.lb-flow-step::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 1.5px;
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--step-color) 100%, #fff),
    color-mix(in srgb, var(--step-color) 40%, #fff));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.lb-flow-step:hover {
  transform: translateY(-4px);
  box-shadow:
    0 10px 28px rgba(0,0,0,0.10),
    0 4px 10px rgba(0,0,0,0.06),
    inset 0 1px 0 rgba(255,255,255,0.9);
}

.lb-flow-step-badge {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, #fff 0%, color-mix(in srgb, var(--step-color) 70%, #fff) 60%, color-mix(in srgb, var(--step-color) 95%, #000 5%) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 4px 12px color-mix(in srgb, var(--step-color) 40%, transparent),
    inset 0 1px 0 rgba(255,255,255,0.6),
    inset 0 -2px 4px rgba(0,0,0,0.06);
}
.lb-flow-step-icon {
  font-size: 1.6rem;
  line-height: 1;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.15));
}
.lb-flow-step-num {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff, #FBF8F4);
  border: 2px solid color-mix(in srgb, var(--step-color) 75%, #000 5%);
  color: color-mix(in srgb, var(--step-color) 75%, #000 30%);
  font-weight: 800;
  font-size: 0.72rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.lb-flow-step-label {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.35;
  letter-spacing: 0.01em;
}
.lb-flow-step-note {
  font-size: 0.74rem;
  color: #6C7079;
  line-height: 1.5;
  white-space: pre-line;
}

.lb-flow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #9B7DB8;
  font-size: 1.5rem;
  font-weight: 800;
  align-self: center;
}
.lb-flow-arrow span {
  display: inline-flex;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.7);
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(155,125,184,0.18);
  backdrop-filter: blur(4px);
}

@media (max-width: 760px) {
  .lb-flow { flex-direction: column; }
  .lb-flow-step { width: 100%; max-width: 320px; min-height: 0; }
  .lb-flow-arrow { transform: rotate(90deg); margin: 4px 0; }
}

.lb-video {
  margin: 1.8em 0;
  text-align: center;
}
.lb-video video {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid #ECE6DE;
  box-shadow: 0 6px 22px rgba(0,0,0,0.08);
  background: #000;
}
.lb-video figcaption {
  margin-top: 0.7em;
  font-size: 0.85rem;
  color: #6C7079;
  line-height: 1.5;
}

.lb-image {
  margin: 1.8em 0;
  text-align: center;
}
.lb-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid #ECE6DE;
  box-shadow: 0 6px 22px rgba(0,0,0,0.08);
  display: block;
  margin: 0 auto;
}
.lb-image figcaption {
  margin-top: 0.7em;
  font-size: 0.85rem;
  color: #6C7079;
  line-height: 1.5;
}

.lb-bullets {
  list-style: none;
  padding: 0;
  margin: 1.2em 0;
}
.lb-bullets li {
  position: relative;
  padding: 0.5em 0 0.5em 1.6em;
  margin-bottom: 0.2em;
  border-bottom: 1px solid #F4EFE7;
}
.lb-bullets li:last-child { border-bottom: none; }
.lb-bullets li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 1.15em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, #A8C0D6, #C8B6D9);
  box-shadow: 0 0 0 3px rgba(168,192,214,0.15);
}

.lesson-doc-link {
  margin: 2.4em 0 0;
  padding: 14px 18px;
  background: #FBF8F4;
  border: 1px dashed #D8CFC3;
  border-radius: 10px;
  text-align: center;
  font-size: 0.88rem;
}
.lesson-doc-link a {
  color: #6B8AB5;
  font-weight: 600;
  transition: color 0.2s;
}
.lesson-doc-link a:hover { color: #4A6B96; }

.lesson-article-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 32px;
  background: #FBF8F4;
  border-top: 1px solid #F0EBE3;
}

.lesson-nav-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid #E6DFD5;
  background: #fff;
  color: #4A4F57;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.18s;
}
.lesson-nav-btn:hover {
  border-color: #C8B6D9;
  color: var(--text);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(155,125,184,0.15);
}
.lesson-nav-btn.is-disabled {
  opacity: 0.4;
  pointer-events: none;
}

.lesson-nav-done {
  background: linear-gradient(135deg, #B8D4C2 0%, #A8C8C0 100%);
  color: #fff;
  border-color: transparent;
}
.lesson-nav-done:hover {
  background: linear-gradient(135deg, #A8C8C0 0%, #98B8B0 100%);
  color: #fff;
  border-color: transparent;
}
.lesson-nav-done.is-done {
  background: linear-gradient(135deg, #FFE9A8 0%, #F5C24B 100%);
  color: #7A4E0B;
}
.lesson-nav-done.is-done:hover {
  background: linear-gradient(135deg, #FFE9A8 0%, #F5C24B 100%);
  color: #7A4E0B;
}

.lesson-nav-btn .arrow {
  font-size: 1.1em;
  font-weight: 700;
}
.lesson-nav-btn .check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  font-size: 0.85em;
  font-weight: 700;
}
.lesson-nav-done.is-done .check {
  background: rgba(122,78,11,0.18);
}

.btn-lesson-read {
  background: linear-gradient(135deg, #A8C0D6, #C8B6D9);
  color: #fff;
  border: none;
}
.btn-lesson-read:hover {
  background: linear-gradient(135deg, #98B0C8, #B8A6CC);
  box-shadow: 0 4px 12px rgba(155,125,184,0.3);
}

@media (max-width: 700px) {
  .lesson-article-header { padding: 28px 24px 24px; }
  .lesson-article-title { font-size: 1.3rem; }
  .lesson-article-body { padding: 28px 22px; font-size: 0.95rem; }
  .lb-lead { font-size: 1.1rem; }
  .lb-heading { font-size: 1.2rem; }
  .lb-quote { padding: 1.1em 1.2em; font-size: 1rem; }
  .lesson-article-footer { flex-direction: column; padding: 18px; }
  .lesson-nav-btn { width: 100%; }
}

