/* [project]/app/inter_bb14b68.module.css [app-client] (css) */
@font-face {
  font-family: inter;
  src: url("../media/inter_latin-s.p.3a6ba036.woff2") format("woff2");
  font-display: swap;
  font-weight: 300 700;
}

@font-face {
  font-family: inter Fallback;
  src: local(Arial);
  ascent-override: 89.79%;
  descent-override: 22.36%;
  line-gap-override: 0.0%;
  size-adjust: 107.89%;
}

.inter_bb14b68-module__V1PrmG__className {
  font-family: inter, inter Fallback;
}

.inter_bb14b68-module__V1PrmG__variable {
  --font-inter: "inter", "inter Fallback";
}

/* [project]/app/dmsans_c4f4d05f.module.css [app-client] (css) */
@font-face {
  font-family: dmSans;
  src: url("../media/dm_sans_latin-s.p.a62025f2.woff2") format("woff2");
  font-display: swap;
  font-weight: 400 800;
}

@font-face {
  font-family: dmSans Fallback;
  src: local(Arial);
  ascent-override: 94.36%;
  descent-override: 29.49%;
  line-gap-override: 0.0%;
  size-adjust: 105.13%;
}

.dmsans_c4f4d05f-module__8FsSXG__className {
  font-family: dmSans, dmSans Fallback;
}

.dmsans_c4f4d05f-module__8FsSXG__variable {
  --font-dm-sans: "dmSans", "dmSans Fallback";
}

/* [project]/app/globals.css [app-client] (css) */
:root {
  --bg: #fafafa;
  --fg: #0f172a;
  --muted: #64748b;
  --accent: #2563eb;
  --accent-2: #3b82f6;
  --accent-3: #1e40af;
  --card-bg: #0f172a08;
  --card-border: #0f172a14;
  --border: #0f172a1f;
  --glass-bg: #ffffffa6;
  --glass-border: #0f172a14;
  --shadow: 0 4px 20px #0f172a14;
  --font: var(--font-inter, "Inter"), system-ui, -apple-system, sans-serif;
  --font-display: var(--font-inter, "Inter"), system-ui, -apple-system, sans-serif;
  --font-hero: var(--font-dm-sans, "DM Sans"), system-ui, -apple-system, sans-serif;
  --font-mono: "SF Mono", "Fira Code", "Cascadia Code", ui-monospace, monospace;
  --gradient: linear-gradient(135deg, #60a5fa, #3b82f6, #1e40af);
  --color-blue: var(--accent);
  --color-gray: var(--muted);
  --primary: var(--accent);
  --color-white: #fff;
  --color-black: var(--fg);
  --color-border: var(--border);
  --bg-color: var(--bg);
  --text-color: var(--fg);
  --card-bg-solid: #fff;
  --surface-1: #fff;
  --surface-2: #f1f5f9;
  --surface-3: #e2e8f0;
  --surface-tint: 15, 23, 42;
  --text-strong: #0f172a;
  --connector-line: #0f172a4d;
  --lesson-node-mix-base: #fff;
  --lesson-node-shade-min: .55;
  --lesson-node-shade-range: .4;
}

[data-theme="dark"] {
  --bg: #050508;
  --fg: #e8e8ed;
  --muted: #7a7a8a;
  --card-bg: rgba(var(--surface-tint), .03);
  --card-border: rgba(var(--surface-tint), .06);
  --border: rgba(var(--surface-tint), .08);
  --glass-bg: rgba(var(--surface-tint), .02);
  --glass-border: rgba(var(--surface-tint), .05);
  --shadow: 0 4px 20px #0000004d;
  --card-bg-solid: #0a0a0f;
  --surface-1: #0a0a0f;
  --surface-2: #111116;
  --surface-3: #1a1a22;
  --surface-tint: 255, 255, 255;
  --text-strong: #fff;
  --connector-line: #ffffff40;
  --lesson-node-mix-base: #0a0a12;
  --lesson-node-shade-min: .25;
  --lesson-node-shade-range: .35;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  letter-spacing: inherit;
}

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

html {
  scroll-behavior: smooth;
  line-height: 1.15;
}

::selection {
  color: #fff;
  background: #2563eb4d;
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: none;
}

::-webkit-scrollbar-thumb {
  background: rgba(var(--surface-tint), .1);
  border-radius: 3px;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
  min-height: 100vh;
  overflow-x: hidden;
}

body:after {
  content: "";
  z-index: 9999;
  pointer-events: none;
  opacity: .025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  position: fixed;
  inset: 0;
}

.app-container:before {
  content: "";
  opacity: .1;
  filter: blur(120px);
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(circle, #2563eb40, #0000 70%);
  border-radius: 50%;
  width: 500px;
  height: 350px;
  position: fixed;
  top: 15%;
  left: 50%;
  transform: translate(-50%);
}

.app-container {
  flex-direction: column;
  gap: 1rem;
  max-width: 1200px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  display: flex;
}

body.lesson-active .app-container {
  gap: .5rem;
  height: 100vh;
  max-height: 100vh;
  padding: .75rem 1.5rem;
  overflow: hidden;
}

header {
  border-bottom: 1px solid var(--border);
  flex-direction: column;
  padding: .5rem 0;
  display: flex;
}

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

.lesson-route-back {
  background: rgba(var(--surface-tint), .04);
  color: var(--fg);
  border: 1px solid var(--border);
  font-family: var(--font);
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 10px;
  align-items: center;
  gap: .45rem;
  margin-left: 1rem;
  padding: .45rem .85rem;
  font-size: .8rem;
  font-weight: 600;
  transition: background .15s, border-color .15s, color .15s;
  display: inline-flex;
}

.lesson-route-back:hover {
  background: rgba(var(--surface-tint), .08);
  border-color: var(--accent);
  color: var(--text-strong);
}

.lesson-route-back svg {
  flex-shrink: 0;
}

.logo {
  font-family: var(--font-display);
  color: var(--fg);
  letter-spacing: -.02em;
  align-items: center;
  gap: .5rem;
  font-size: 1.4rem;
  font-weight: 400;
  text-decoration: none;
  display: flex;
}

.logo .status-dot {
  width: 6px;
  height: 6px;
  margin-left: 2px;
}

.logo-img {
  object-fit: contain;
  opacity: .85;
  width: auto;
  height: 38px;
  transition: opacity .3s, transform .3s;
}

.logo:hover .logo-img {
  opacity: 1;
  transform: scale(1.08);
}

.glass-card {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
  border-radius: 16px;
  padding: 1.5rem;
  transition: background .5s cubic-bezier(.4, 0, .2, 1), border-color .5s cubic-bezier(.4, 0, .2, 1), box-shadow .5s cubic-bezier(.4, 0, .2, 1);
}

.glass-card:hover {
  background: rgba(var(--surface-tint), .05);
  border-color: #2563eb33;
  transform: translateY(-4px);
  box-shadow: 0 20px 60px -15px #2563eb1f, 0 0 0 1px #2563eb1a;
}

.glass-card h3 {
  color: var(--fg);
  font-size: 1rem;
  font-weight: 500;
}

.glass-card label {
  letter-spacing: .1em;
  text-transform: uppercase;
  font-size: .7rem;
  font-weight: 500;
}

.glass-card p {
  color: var(--muted);
  font-size: .85rem;
  line-height: 1.6;
}

.hero {
  text-align: center;
  opacity: 1;
  max-height: 120px;
  padding: .75rem 0 .25rem;
  transition: max-height .4s, opacity .3s, padding .4s;
  overflow: hidden;
}

.hero.hero-collapsed {
  opacity: 0;
  max-height: 0;
  padding: 0;
}

.hero.hero-collapsed.hero-expanded {
  opacity: 1;
  max-height: 120px;
  padding: .75rem 0 .25rem;
}

.hero-toggle {
  color: rgba(var(--surface-tint), .35);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  background: none;
  border: none;
  justify-content: center;
  align-items: center;
  padding: .25rem;
  line-height: 1;
  transition: opacity .2s, color .2s;
  display: flex;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.header-bar:hover .hero-toggle {
  opacity: 1;
  pointer-events: auto;
}

.hero-toggle:hover {
  color: rgba(var(--surface-tint), .7);
}

.hero-toggle .chevron {
  transition: transform .3s;
  display: block;
}

.hero-toggle .chevron.up {
  transform: rotate(180deg);
}

.hero.hero-expanded h1 {
  background: linear-gradient(135deg, #e8e8ed 30%, #2563ebb3);
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}

.hero h1 {
  font-family: var(--font-display);
  letter-spacing: -.02em;
  background: linear-gradient(135deg, #e8e8ed 30%, #2563ebb3);
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  margin-bottom: .4rem;
  padding-bottom: .1em;
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.25;
}

.hero p {
  color: var(--muted);
  max-width: 500px;
  margin: 0 auto;
  font-size: .85rem;
  line-height: 1.5;
}

.btn {
  border: 1px solid rgba(var(--surface-tint), .15);
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 100px;
  justify-content: center;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1.5rem;
  font-family: inherit;
  font-size: .8rem;
  font-weight: 500;
  line-height: 1;
  transition: background .4s cubic-bezier(.4, 0, .2, 1), border-color .4s cubic-bezier(.4, 0, .2, 1), box-shadow .4s cubic-bezier(.4, 0, .2, 1), color .4s cubic-bezier(.4, 0, .2, 1);
  display: inline-flex;
}

#start-btn {
  width: 100%;
}

#start-icon, #stop-icon {
  display: none;
}

.btn-primary {
  color: #fff;
  border: 1px solid rgba(var(--surface-tint), .1);
  background: linear-gradient(135deg, #2563eb, #3b82f6);
}

.btn-primary:hover {
  border-color: rgba(var(--surface-tint), .3);
  transform: scale(1.03);
  box-shadow: 0 0 50px #2563eb4d;
}

.btn-outline {
  border: 1px solid rgba(var(--surface-tint), .15);
  color: var(--fg);
  background: none;
  padding: .5rem 1.2rem;
  font-weight: 400;
}

.btn-outline:hover {
  background: rgba(var(--surface-tint), .06);
  border-color: rgba(var(--surface-tint), .3);
  box-shadow: 0 0 30px #2563eb1f;
}

.btn-icon {
  width: 32px;
  height: 32px;
  color: var(--fg);
  cursor: pointer;
  background: none;
  border: none;
  border-radius: 6px;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  transition: opacity .2s;
  display: flex;
}

.btn-icon:hover {
  background: none;
}

.btn-icon:disabled {
  opacity: .25;
  cursor: not-allowed;
}

.btn-train {
  border: 1px solid rgba(var(--surface-tint), .08);
  background: var(--card-bg);
  color: var(--fg);
  border-radius: 8px;
  padding: .4rem;
  font-size: 1rem;
  transition: background .3s, border-color .3s, color .3s;
}

.btn-train:hover {
  border-color: #2563eb66;
  transform: translateY(-1px);
}

.btn-train:active {
  background: var(--gradient);
  color: #fff;
  border-color: #0000;
}

.status-bar {
  color: var(--muted);
  letter-spacing: .08em;
  text-transform: uppercase;
  align-items: center;
  gap: .5rem;
  font-size: .7rem;
  display: flex;
}

.status-dot {
  background: rgba(var(--surface-tint), .15);
  border-radius: 50%;
  width: 8px;
  height: 8px;
  transition: background .3s, box-shadow .3s;
}

.status-dot.active {
  background: #10b981;
  box-shadow: 0 0 12px #10b981;
}

.header-stats {
  align-items: center;
  gap: .25rem;
  display: flex;
}

.header-stat {
  cursor: default;
  background: none;
  border: none;
  border-radius: 12px;
  align-items: center;
  gap: 0;
  padding: .4rem;
  transition: background .2s, gap .3s cubic-bezier(.4, 0, .2, 1), padding .3s cubic-bezier(.4, 0, .2, 1);
  display: flex;
}

.header-stat:hover {
  background: rgba(var(--surface-tint), .04);
  gap: .35rem;
  padding: .4rem .75rem;
}

.header-stat-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.header-stat-value {
  letter-spacing: .02em;
  white-space: nowrap;
  opacity: 0;
  max-width: 0;
  font-size: .8rem;
  font-weight: 600;
  transition: max-width .3s cubic-bezier(.4, 0, .2, 1), opacity .25s;
  overflow: hidden;
}

.header-stat:hover .header-stat-value {
  opacity: 1;
  max-width: 150px;
}

.header-stat--account .header-stat-value {
  opacity: 1;
  max-width: none;
  overflow: visible;
}

.header-stat--account {
  color: var(--muted);
  background: none;
  border: none;
  order: 99;
  gap: .35rem;
  margin-left: auto;
  padding: .4rem .75rem;
}

.header-stat--account:hover {
  background: none;
  border: none;
}

.header-stat--account .header-stat-icon {
  stroke: var(--muted);
}

.clerk-signin-btn {
  color: inherit;
  font: inherit;
  cursor: pointer;
  background: none;
  border: none;
  align-items: center;
  gap: .35rem;
  padding: 0;
  display: flex;
}

.clerk-signin-btn:hover {
  color: var(--fg);
}

.clerk-signin-btn:hover .header-stat-icon {
  stroke: var(--fg);
}

.clerk-avatar {
  width: 26px !important;
  height: 26px !important;
}

.header-stat--xp, .header-stat--xp .header-stat-icon {
  color: #3b82f6;
}

.header-stat--xp:hover {
  background: #3b82f614;
}

.header-stat--streak, .header-stat--streak .header-stat-icon {
  color: #f97316;
}

.header-stat--streak:hover {
  background: #f9731614;
}

.header-stat--streak {
  gap: .35rem;
  padding: .4rem .75rem;
}

.header-stat--streak .header-stat-value {
  opacity: 1;
  align-items: center;
  max-width: none;
  display: inline-flex;
  overflow: visible;
}

.header-stat--streak .stat-label {
  opacity: 0;
  white-space: nowrap;
  max-width: 0;
  margin-left: 0;
  transition: max-width .3s cubic-bezier(.4, 0, .2, 1), margin-left .3s cubic-bezier(.4, 0, .2, 1), opacity .25s;
  overflow: hidden;
}

.header-stat--streak:hover .stat-label {
  opacity: 1;
  max-width: 80px;
  margin-left: .25em;
}

.header-stat--level {
  color: #22c55e;
  gap: .35rem;
  padding: .4rem .75rem;
}

.header-stat--level .header-stat-icon {
  color: #22c55e;
}

.header-stat--level .header-stat-value {
  opacity: 1;
  align-items: center;
  max-width: none;
  display: inline-flex;
  overflow: visible;
}

.header-stat--level .stat-label {
  opacity: 0;
  white-space: nowrap;
  max-width: 0;
  margin-right: 0;
  transition: max-width .3s cubic-bezier(.4, 0, .2, 1), margin-right .3s cubic-bezier(.4, 0, .2, 1), opacity .25s;
  overflow: hidden;
}

.header-stat--level:hover .stat-label {
  opacity: 1;
  max-width: 80px;
  margin-right: .25em;
}

.header-stat--level:hover {
  background: #22c55e14;
}

.level-stat-content {
  align-items: center;
  gap: 10px;
  display: flex;
}

.level-progress-track {
  background: rgba(var(--surface-tint), .2);
  border-radius: 2px;
  width: 48px;
  height: 4px;
  overflow: hidden;
}

.level-progress-fill {
  background: linear-gradient(90deg, #22c55e, #4ade80);
  border-radius: 2px;
  width: 0%;
  height: 100%;
  transition: width .6s cubic-bezier(.4, 0, .2, 1);
  box-shadow: 0 0 6px #22c55e66;
}

.header-stat--level {
  position: relative;
}

.level-tooltip {
  white-space: nowrap;
  color: #e2e8f0;
  -webkit-backdrop-filter: blur(16px);
  pointer-events: none;
  opacity: 0;
  z-index: 100;
  letter-spacing: .01em;
  background: #0f0f19d9;
  border: 1px solid #22c55e33;
  border-radius: 10px;
  padding: .45rem .85rem;
  font-size: .72rem;
  font-weight: 500;
  transition: opacity .2s, transform .2s;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%)translateY(4px);
  box-shadow: 0 4px 20px #0006;
}

.header-stat--level:hover .level-tooltip {
  opacity: 1;
  transform: translateX(-50%)translateY(0);
}

.header-stat--changelog {
  color: #3b82f6;
  text-decoration: none;
}

.header-stat--changelog .header-stat-icon {
  color: #3b82f6;
}

.header-stat--changelog:hover {
  color: #c4b5fd;
  background: #3b82f61a;
}

.header-stat--changelog:hover .header-stat-icon {
  color: #c4b5fd;
}

.header-stat--quests {
  color: #f59e0b;
  text-decoration: none;
}

.header-stat--quests .header-stat-icon {
  color: #f59e0b;
}

.header-stat--quests:hover {
  color: #fbbf24;
  background: #f59e0b1a;
}

.header-stat--quests:hover .header-stat-icon {
  color: #fbbf24;
}

@media (max-width: 600px) {
  .app-container {
    padding: 1rem .75rem;
  }

  .header-stats {
    gap: .15rem;
    margin-left: auto;
  }

  .header-stat {
    padding: .3rem .4rem;
  }

  .header-stat-value {
    font-size: .7rem;
  }

  .stat-label {
    display: none;
  }

  .level-progress-track {
    width: 28px;
  }

  .header-stat--account .header-stat-value {
    display: none;
  }

  .units-grid {
    justify-content: center;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.animate-fade {
  animation: .5s ease-out forwards fadeIn;
}

@keyframes bounce {
  0%, 100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.2);
  }
}

.success-animation {
  animation: .5s bounce;
  transition: none !important;
}

.video-container {
  background: #000;
  border-radius: 12px;
  justify-content: center;
  align-items: center;
  display: flex;
  position: absolute;
  inset: 0;
  overflow: hidden;
}

#webcam {
  object-fit: cover;
  width: 100%;
  height: 100%;
  transform: rotateY(180deg);
}

#output_canvas {
  object-fit: cover;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  transform: rotateY(180deg);
}

.split-view {
  flex-direction: column;
  flex: 1;
  min-height: 0;
  display: flex;
  overflow: visible;
}

.training-grid {
  grid-template-columns: 1.8fr 1fr;
  align-items: start;
  gap: 2rem;
  display: grid;
}

.camera-pane {
  --surface-tint: 255, 255, 255;
  --lightningcss-light: ;
  --lightningcss-dark: initial;
  color-scheme: dark;
  background: #000;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  display: none !important;
}

.camera-off-indicator {
  color: rgba(var(--surface-tint), .25);
  z-index: 5;
  letter-spacing: .15em;
  text-transform: uppercase;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: .75rem;
  padding-top: 6.7%;
  font-size: .65rem;
  display: flex;
  position: absolute;
  inset: 0;
}

.sp-pixel-loader {
  vertical-align: middle;
  flex-shrink: 0;
  grid-template-columns: repeat(3, .2em);
  grid-auto-rows: .2em;
  gap: .0625em;
  display: inline-grid;
}

.sp-pixel-loader__pixel {
  opacity: .15;
  background: currentColor;
  border-radius: .04em;
  animation: .65s ease-in-out infinite sp-pixel-loader-on;
}

@keyframes sp-pixel-loader-on {
  0%, 100% {
    opacity: .15;
  }

  50% {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sp-pixel-loader__pixel {
    opacity: .3;
    animation: none;
  }

  .sp-pixel-loader__pixel:first-child, .sp-pixel-loader__pixel:nth-child(5), .sp-pixel-loader__pixel:nth-child(7) {
    opacity: 1;
  }
}

.detection-indicator {
  text-align: center;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  column-gap: .4em;
  font-weight: 600;
  display: flex;
}

.detection-indicator--overlay {
  z-index: 10;
  -webkit-backdrop-filter: blur(4px);
  color: #fff;
  background: #0009;
  border-radius: 8px;
  width: max-content;
  max-width: calc(100% - 32px);
  padding: .5rem 1rem;
  transition: background-color .2s;
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
}

.detection-indicator--overlay[data-readout="confirmed"] {
  background: #4ade80cc;
}

.detection-indicator--inline {
  color: var(--primary);
}

.detection-indicator__slot {
  justify-content: center;
  align-items: center;
  min-width: .75em;
  min-height: 1.2em;
  font-size: 1.5rem;
  line-height: 1.2;
  display: inline-flex;
}

.detection-indicator__label {
  display: inline-block;
}

.detection-indicator__confidence {
  opacity: .8;
  font-size: .9rem;
}

.detection-indicator .detection-indicator__loader, .detection-indicator[data-readout="pending"] .detection-indicator__label, .detection-indicator[data-readout="pending"] .detection-indicator__confidence, .detection-indicator[data-readout="confirmed"] .detection-indicator__prefix, .detection-indicator[data-readout="confirmed"] .detection-indicator__confidence {
  display: none;
}

.detection-indicator[data-readout="pending"] .detection-indicator__loader {
  display: inline-grid;
}

@media (prefers-reduced-motion: no-preference) {
  .detection-indicator--overlay {
    animation: .18s cubic-bezier(.2, .8, .2, 1) detection-indicator-in;
  }

  .detection-indicator__label {
    animation: .18s cubic-bezier(.2, .8, .2, 1) detection-indicator-pop;
  }

  .detection-indicator[data-readout="confirmed"] .detection-indicator__label {
    animation: .32s cubic-bezier(.34, 1.56, .64, 1) detection-indicator-check;
  }

  .detection-indicator[data-readout="pending"] .detection-indicator__loader {
    animation: .2s ease-out .12s both fadeIn;
  }
}

@keyframes detection-indicator-in {
  from {
    opacity: 0;
    translate: 0 -4px;
  }

  to {
    opacity: 1;
    translate: 0;
  }
}

@keyframes detection-indicator-pop {
  from {
    opacity: 0;
    scale: .85;
  }

  to {
    opacity: 1;
    scale: 1;
  }
}

@keyframes detection-indicator-check {
  from {
    opacity: 0;
    scale: .5;
  }

  to {
    opacity: 1;
    scale: 1;
  }
}

.letter-panel {
  display: none !important;
}

.sign-prompt {
  text-align: center;
  width: 100%;
  display: none;
}

body.lesson-active .sign-prompt {
  flex: 1;
  justify-content: center;
  align-items: center;
  padding-bottom: 15%;
  display: flex;
}

.sign-prompt-word {
  font-family: var(--font-display);
  letter-spacing: .15em;
  text-indent: .15em;
  background: var(--gradient);
  -webkit-text-fill-color: transparent;
  word-break: break-word;
  text-align: center;
  -webkit-background-clip: text;
  background-clip: text;
  width: 100%;
  font-size: 4rem;
  font-weight: 300;
  line-height: 1.1;
}

.sign-prompt-word span[style*="color"] {
  -webkit-text-fill-color: currentColor;
  background: none;
}

.sign-prompt-label {
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
  font-size: .7rem;
}

.hint-panel {
  display: none !important;
}

.learning-pane {
  background: var(--bg);
  flex: 1;
  min-height: 400px;
  padding: 1.5rem;
  overflow: visible;
}

body.lesson-active .split-view {
  flex: 1;
  grid-template-rows: 1fr auto;
  grid-template-columns: 1fr 1fr;
  height: 100%;
  min-height: 0;
  display: grid;
  overflow: hidden;
}

body.lesson-active .letter-panel {
  display: none !important;
}

.camera-column {
  display: none;
}

body.lesson-active .camera-column {
  flex-direction: column;
  grid-area: 1 / 1;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  min-height: 0;
  padding: 2rem;
  display: flex;
}

.right-hand-note {
  z-index: 20;
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(var(--surface-tint), .1);
  color: rgba(var(--surface-tint), .8);
  letter-spacing: .01em;
  pointer-events: none;
  background: #000000a6;
  border-radius: 10px;
  flex-direction: column;
  gap: .3rem;
  max-width: 260px;
  padding: .55rem .75rem;
  font-size: .7rem;
  font-weight: 400;
  display: none;
  position: absolute;
  bottom: 14px;
  left: 14px;
}

.right-hand-note-row {
  align-items: center;
  gap: .4rem;
  display: flex;
}

.right-hand-note svg {
  color: var(--accent);
  opacity: .9;
  flex-shrink: 0;
}

.right-hand-note strong {
  color: #fff;
  font-weight: 600;
}

.right-hand-note-sub {
  color: rgba(var(--surface-tint), .5);
  font-size: .62rem;
}

.right-hand-note-sub svg {
  color: rgba(var(--surface-tint), .4);
}

body.lesson-active .camera-pane {
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(var(--surface-tint), .08);
  background: #000;
  border-radius: 12px;
  flex-shrink: 0;
  width: 100%;
  max-width: 680px;
  position: relative;
  overflow: hidden;
  display: flex !important;
}

body.lesson-active .hint-panel {
  flex-direction: column;
  grid-area: 1 / 2;
  justify-content: flex-start;
  align-items: stretch;
  gap: 0;
  min-height: 0;
  padding: 2rem 2.5rem;
  overflow-y: auto;
  display: flex !important;
}

.hint-panel-header {
  display: none;
}

body.lesson-active .hint-panel-header {
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  font-size: .7rem;
  font-weight: 500;
  display: block;
}

body.lesson-active .learning-pane {
  flex: none;
  grid-area: 2 / 1 / auto / -1;
  align-self: end;
  min-height: 0;
  padding: 1rem 1.5rem 1.5rem;
  overflow: visible;
}

body.lesson-active #units-view, body.lesson-active footer {
  display: none;
}

.units-grid {
  --planet-row-max: 1120px;
  width: min(100%, var(--planet-row-max));
  flex-flow: wrap;
  place-content: flex-start;
  align-items: center;
  gap: 2.4rem 3rem;
  margin-inline: auto;
  padding-bottom: 4rem;
  display: flex;
  position: relative;
  overflow: visible;
}

.unit-connector-overlay {
  pointer-events: none;
  z-index: 0;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  overflow: visible;
}

.unit-connector-path {
  fill: none;
  stroke-width: 4px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.unit-connector-path.track, .unit-connector-path.fill {
  stroke: #b8beca;
}

.unit-connector-dot-svg, .unit-connector-dot-svg.active {
  fill: #b8beca;
}

.leader-line-line-path {
  stroke-linejoin: round !important;
  stroke-linecap: round !important;
}

.unit-connector {
  flex-shrink: 0;
  align-items: center;
  width: 60px;
  height: 4px;
  display: flex;
  position: relative;
}

.unit-connector-track {
  background: rgba(var(--surface-tint), .14);
  border-radius: 2px;
  width: calc(100% - 8px);
  height: 100%;
  margin: 0 4px;
  position: relative;
  overflow: hidden;
}

.unit-connector-fill {
  background: var(--gradient);
  border-radius: 2px;
  width: 0%;
  height: 100%;
  transition: width .6s cubic-bezier(.4, 0, .2, 1);
  box-shadow: 0 0 8px #2563eb4d;
}

.unit-connector-dot {
  background: rgba(var(--surface-tint), .14);
  border-radius: 50%;
  width: 8px;
  height: 8px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.unit-connector-dot.start {
  left: -4px;
}

.unit-connector-dot.end {
  right: -4px;
}

.unit-connector.completed .unit-connector-fill {
  width: 100%;
}

.unit-connector.completed .unit-connector-dot, .unit-connector.partial .unit-connector-dot.start {
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
}

@media (max-width: 1169px) {
  .leader-line, .leader-line-areaAnchor, #leader-line-defs {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .units-grid {
    gap: 1.6rem;
  }

  .unit-connector {
    width: 40px;
  }
}

.unit-card {
  z-index: 1;
  flex-direction: column;
  align-items: center;
  width: auto;
  padding: 0;
  display: flex;
  position: relative;
  overflow: visible;
  box-shadow: none !important;
  background: none !important;
  border: none !important;
}

@media (max-width: 768px) {
  .unit-card {
    width: 100%;
    max-width: 600px;
  }
}

.unit-card:hover {
  box-shadow: none !important;
  background: none !important;
  transform: none !important;
}

.planet-wrapper {
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  will-change: transform, opacity;
  opacity: 0;
  justify-content: center;
  align-items: center;
  width: 110px;
  height: 110px;
  transition: none;
  animation: none;
  display: flex;
  position: relative;
  transform: scale(0);
}

.planet-orb {
  z-index: 2;
  border-radius: 50%;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 90px;
  height: 90px;
  transition: none;
  animation: none;
  display: flex;
  position: relative;
}

.planet-ring {
  border: 1.5px solid rgba(var(--surface-tint), .15);
  z-index: 1;
  pointer-events: none;
  border-radius: 50%;
  width: 130px;
  height: 130px;
  transition: none;
  animation: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%)rotateX(65deg);
}

.planet-wrapper.active .planet-ring {
  border-width: 2px;
}

.planet-label {
  font-family: var(--font);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fffffff2;
  text-align: center;
  text-shadow: 0 1px 3px #00000080;
  padding: 0 .4rem;
  font-size: .6rem;
  font-weight: 600;
  line-height: 1.2;
}

.planet-badge {
  font-family: var(--font-display);
  color: #fff;
  text-shadow: 0 2px 4px #00000073;
  margin-bottom: .15rem;
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1;
}

.lessons-display {
  z-index: 5;
  display: none;
  position: absolute;
}

.lessons-display.visible {
  display: block;
}

.constellation-map {
  position: relative;
}

.lesson-node {
  cursor: pointer;
  letter-spacing: .05em;
  text-transform: uppercase;
  border: 2px solid rgba(var(--surface-tint), .5);
  background: var(--surface-3);
  color: #fffffff2;
  text-shadow: 0 1px 2px #00000073;
  text-align: center;
  white-space: normal;
  word-break: break-word;
  z-index: 2;
  will-change: transform, opacity;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  padding: .3rem;
  font-size: .6rem;
  font-weight: 700;
  line-height: 1.15;
  transition: border-color .2s, filter .2s;
  display: flex;
}

.lesson-node:hover {
  border-color: rgba(var(--surface-tint), .8);
  filter: brightness(1.3);
}

.lesson-node.completed {
  filter: brightness(1.15);
  border: 2px solid #34d399;
  box-shadow: 0 0 10px #34d3994d;
}

.planet-wrapper.locked {
  cursor: not-allowed;
  filter: saturate(.25) brightness(.7);
}

.planet-wrapper.locked .planet-orb {
  opacity: .5;
}

.planet-wrapper.locked .planet-ring {
  opacity: .3;
  border-style: dashed;
}

.planet-wrapper.locked:after {
  content: "🔒";
  z-index: 20;
  filter: drop-shadow(0 1px 3px #000000b3);
  font-size: 1.1rem;
  line-height: 1;
  position: absolute;
  bottom: 2px;
  right: 2px;
}

.planet-wrapper.locked:hover {
  filter: saturate(.25) brightness(.8);
}

.lesson-node.quiz {
  border-style: solid;
  border-color: #fbbf2499;
  box-shadow: 0 0 12px #fbbf2426;
}

.lesson-node.quiz:after {
  content: "⏱";
  filter: drop-shadow(0 1px 2px #0009);
  font-size: .7rem;
  line-height: 1;
  position: absolute;
  bottom: -6px;
  right: -6px;
}

.lesson-node.quiz:hover {
  border-color: #fbbf24cc;
}

.quiz-timer {
  -webkit-backdrop-filter: blur(8px);
  background: #0006;
  border: 1px solid #fbbf2440;
  border-radius: 12px;
  align-items: center;
  gap: .75rem;
  width: 100%;
  max-width: 500px;
  margin: .5rem auto 0;
  padding: .6rem 1rem;
  display: flex;
}

.quiz-timer-label {
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fbbf24e6;
  white-space: nowrap;
  font-size: .65rem;
  font-weight: 600;
}

.quiz-timer-display {
  font-family: var(--font-display);
  color: #fbbf24;
  text-align: center;
  min-width: 3.5ch;
  font-size: 1.3rem;
  font-weight: 600;
}

.quiz-timer-waiting .quiz-timer-display {
  min-width: auto;
  font-size: .85rem;
  animation: 1.5s ease-in-out infinite quiz-waiting-pulse;
}

@keyframes quiz-waiting-pulse {
  0%, 100% {
    opacity: 1;
  }

  50% {
    opacity: .4;
  }
}

.quiz-timer-bar-track {
  background: rgba(var(--surface-tint), .08);
  border-radius: 3px;
  flex: 1;
  height: 6px;
  overflow: hidden;
}

.quiz-timer-bar-fill {
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
  border-radius: 3px;
  height: 100%;
  transition: width 1s linear;
}

.quiz-timer-bar-fill.quiz-timer-warning {
  background: linear-gradient(90deg, #f59e0b, #ef4444);
}

.quiz-timer-bar-fill.quiz-timer-urgent {
  background: linear-gradient(90deg, #ef4444, #dc2626);
  animation: .5s ease-in-out infinite quiz-timer-pulse;
}

@keyframes quiz-timer-pulse {
  0%, 100% {
    opacity: 1;
  }

  50% {
    opacity: .6;
  }
}

.quiz-timer-shake {
  animation: .3s ease-in-out quiz-shake;
}

@keyframes quiz-shake {
  0%, 100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-4px);
  }

  75% {
    transform: translateX(4px);
  }
}

.locked-lesson-card {
  text-align: center;
}

.locked-icon {
  margin-bottom: .75rem;
  font-size: 3rem;
}

.locked-lesson-message {
  color: rgba(var(--surface-tint), .7);
  margin: .75rem 0 1.5rem;
  font-size: .95rem;
  line-height: 1.5;
}

.quiz-failure-card {
  text-align: center;
  padding: 2rem 2.5rem !important;
}

.quiz-failure-icon {
  margin-bottom: .5rem;
  font-size: 3rem;
}

.quiz-failure-title {
  font-family: var(--font-display);
  color: #ef4444;
  margin: 0 0 .5rem;
  font-size: 1.6rem;
  font-weight: 600;
}

.quiz-failure-message {
  color: rgba(var(--surface-tint), .65);
  margin: 0 0 1.5rem;
  font-size: .9rem;
  line-height: 1.5;
}

.quiz-failure-actions {
  justify-content: center;
  gap: .75rem;
  display: flex;
}

.summary-btn-secondary {
  background: rgba(var(--surface-tint), .08) !important;
  border: 1px solid rgba(var(--surface-tint), .15) !important;
}

.summary-btn-secondary:hover {
  background: rgba(var(--surface-tint), .12) !important;
}

.lessons-container {
  isolation: isolate;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  width: 100%;
  max-width: 600px;
  padding: .5rem 0 1rem;
  display: flex;
  position: relative;
}

.lessons-container.lessons-horizontal {
  flex-flow: wrap;
  justify-content: center;
  gap: 1.5rem;
  max-width: none;
  padding: 1rem 0;
}

.lesson-connector-line {
  background: rgba(var(--surface-tint), .3);
  transform-origin: 0;
  pointer-events: none;
  z-index: 0;
  height: 2px;
  box-shadow: 0 0 8px rgba(var(--surface-tint), .1);
  position: absolute;
}

.lesson-connector-line.completed {
  background: #2563eb80;
  height: 2.5px;
  box-shadow: 0 0 12px #2563eb40;
}

.lesson-btn {
  letter-spacing: .04em;
  text-transform: uppercase;
  border: 1px solid rgba(var(--surface-tint), .08);
  border-bottom: 4px solid rgba(var(--surface-tint), .06);
  background: var(--surface-2);
  width: 80px;
  min-width: 80px;
  height: 80px;
  min-height: 80px;
  color: var(--muted);
  cursor: pointer;
  text-align: center;
  white-space: normal;
  word-break: break-word;
  z-index: 2;
  border-radius: 50%;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  padding: .3rem;
  font-size: .7rem;
  font-weight: 600;
  line-height: 1.15;
  transition: background .4s cubic-bezier(.4, 0, .2, 1), border-color .4s cubic-bezier(.4, 0, .2, 1), box-shadow .4s cubic-bezier(.4, 0, .2, 1), color .4s cubic-bezier(.4, 0, .2, 1), border-bottom-width .4s cubic-bezier(.4, 0, .2, 1);
  display: flex;
  box-shadow: 0 4px 20px #0003;
}

.lesson-btn:hover {
  background: var(--surface-3);
  color: var(--fg);
  border-color: #2563eb4d;
  box-shadow: 0 10px 40px #2563eb26, 0 0 0 1px #2563eb1a;
}

.lesson-btn:active {
  box-shadow: none;
  border-bottom-width: 1px;
}

.lesson-btn.completed {
  color: #fff;
  background: linear-gradient(135deg, #2563eb4d, #3b82f64d);
  border: 1px solid #2563eb4d;
  border-bottom: 4px solid #2563eb66;
  box-shadow: 0 4px 20px #2563eb33;
}

.lessons-container .lesson-btn:after {
  display: none;
}

.unit-card:nth-child(2n) .lesson-btn, .unit-card:nth-child(3n) .lesson-btn, .unit-card:nth-child(4n) .lesson-btn {
  background: var(--surface-2);
  border-bottom-color: rgba(var(--surface-tint), .06);
}

.unit-card:nth-child(n) .lesson-btn.completed {
  color: #fff;
  background: linear-gradient(135deg, #2563eb4d, #3b82f64d);
  border-color: #2563eb4d #2563eb4d #2563eb66;
}

.lesson-header {
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  width: 100%;
  display: grid;
}

.lesson-header > :first-child {
  justify-self: start;
}

.lesson-header > :last-child {
  justify-self: end;
}

.lesson-nav {
  align-items: center;
  gap: .75rem;
  display: flex;
}

.lesson-nav h3 {
  text-align: center;
  min-width: 8ch;
  margin: 0;
}

.lesson-content {
  justify-content: center;
  align-items: center;
  gap: 3rem;
  width: 100%;
  padding: 1rem 0;
  display: flex;
}

.target-word {
  font-family: var(--font-display);
  letter-spacing: .1em;
  background: var(--gradient);
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  margin-bottom: .25rem;
  padding-bottom: .1em;
  font-size: 4rem;
  font-weight: 500;
  line-height: 1.2;
}

.letter-panel p {
  color: var(--muted);
  font-size: .8rem;
}

.hint-btn {
  z-index: 15;
  border: 1px solid rgba(var(--surface-tint), .06);
  cursor: pointer;
  background: #000;
  border-radius: 10px;
  width: 56px;
  height: 56px;
  padding: 0;
  transition: width .3s cubic-bezier(.4, 0, .2, 1), height .3s cubic-bezier(.4, 0, .2, 1), border-color .3s, box-shadow .3s, border-radius .3s;
  position: absolute;
  bottom: 14px;
  right: 14px;
  overflow: visible;
}

.hint-btn:hover {
  border-color: #2563eb4d;
}

.hint-btn.expanded {
  border-color: #2563eb66;
  border-radius: 12px;
  width: 160px;
  height: 160px;
  box-shadow: 0 0 25px #2563eb33;
}

.hint-btn.hint-btn--text.expanded {
  width: 240px;
  height: 190px;
}

.hint-btn img, .hint-btn video {
  object-fit: cover;
  border-radius: inherit;
  width: 100%;
  height: 100%;
}

.hint-btn:after {
  content: "";
  border-radius: inherit;
  background: #000;
  transition: opacity .25s;
  position: absolute;
  inset: 0;
}

.hint-btn.expanded:after {
  opacity: 0;
}

.hint-btn.hint-btn--text:after, .hint-btn.hint-btn--text.expanded:after {
  opacity: .95;
}

.hint-label {
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(var(--surface-tint), .3);
  pointer-events: none;
  z-index: 1;
  text-align: center;
  justify-content: center;
  align-items: center;
  padding: .2rem;
  font-size: .45rem;
  font-weight: 500;
  line-height: 1.2;
  transition: opacity .25s;
  display: flex;
  position: absolute;
  inset: 0;
}

.hint-btn.expanded .hint-label {
  opacity: 0;
}

.hint-btn--watchable .hint-label {
  padding-top: 1.5rem;
}

.hint-btn--video {
  cursor: pointer;
}

.hint-btn--video .hint-label {
  display: none;
}

.hint-btn--video .gesture-video-link {
  border-radius: inherit;
  -webkit-backdrop-filter: none;
  opacity: .85;
  background: none;
  border: none;
  flex-direction: column;
  justify-content: center;
  gap: .2rem;
  padding: .25rem;
  font-size: .44rem;
  inset: 0;
}

.hint-btn--video .gesture-video-link svg {
  width: 18px;
  height: 18px;
}

.hint-btn--video:hover .gesture-video-link {
  opacity: 1;
  background: #2563eb47;
}

.gesture-hint-overlay {
  z-index: 2;
  text-align: left;
  opacity: 0;
  pointer-events: none;
  flex-direction: column;
  justify-content: space-between;
  gap: .6rem;
  padding: .8rem;
  transition: opacity .2s, transform .2s;
  display: none;
  position: absolute;
  inset: 0;
  transform: translateY(6px);
}

.hint-btn.hint-btn--text.expanded .gesture-hint-overlay {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.gesture-hint-text {
  color: rgba(var(--surface-tint), .94);
  margin: 0;
  font-size: .72rem;
  line-height: 1.35;
}

.gesture-video-link {
  z-index: 12;
  color: #fff;
  letter-spacing: .06em;
  text-transform: uppercase;
  -webkit-backdrop-filter: blur(6px);
  pointer-events: auto;
  opacity: .75;
  background: #0000009e;
  border: 1px solid #ffffff29;
  border-radius: 100px;
  align-items: center;
  gap: .28rem;
  padding: .22rem .5rem;
  font-size: .62rem;
  font-weight: 700;
  text-decoration: none;
  transition: opacity .15s, background .15s;
  display: inline-flex;
  position: absolute;
  top: 6px;
  right: 6px;
}

.gesture-video-link:hover {
  opacity: 1;
  background: #2563ebe6;
}

.gesture-video-link svg {
  flex-shrink: 0;
}

.gesture-hint-link {
  color: #a5b4fc;
  text-underline-offset: 2px;
  pointer-events: auto;
  align-self: flex-start;
  font-size: .7rem;
  font-weight: 600;
  text-decoration: underline;
}

.gesture-hint-link:hover {
  color: #c7d2fe;
}

.camera-pane--learn-only .video-container, .camera-pane--learn-only .camera-off-indicator, .camera-pane--learn-only #detection-indicator, .camera-pane--learn-only #hold-progress-container, .camera-pane--learn-only .right-hand-note {
  display: none !important;
}

.camera-pane--learn-only .hint-btn, .camera-pane--learn-only .hint-btn.expanded {
  width: 100%;
  height: 100%;
  box-shadow: none;
  cursor: default;
  border: none;
  border-radius: 12px;
  transition: none;
  position: absolute;
  inset: 0;
}

.camera-pane--learn-only .hint-btn--video, .camera-pane--learn-only .hint-btn--video.expanded {
  cursor: pointer;
}

.camera-pane--learn-only .hint-btn--video .gesture-video-link {
  -webkit-backdrop-filter: blur(6px);
  opacity: .9;
  background: #0000009e;
  border: 1px solid #ffffff29;
  border-radius: 100px;
  flex-direction: row;
  gap: .35rem;
  padding: .35rem .75rem;
  font-size: .7rem;
  inset: 10px 10px auto auto;
}

.camera-pane--learn-only .hint-btn--video .gesture-video-link svg {
  width: 13px;
  height: 13px;
}

.camera-pane--learn-only .hint-btn--video:hover .gesture-video-link {
  opacity: 1;
  background: #2563ebe6;
}

.camera-pane--learn-only .hint-btn img, .camera-pane--learn-only .hint-btn video {
  object-fit: contain;
  background: #fff;
  padding: 1.5rem;
}

.camera-pane--learn-only .hint-label {
  display: none;
}

.camera-pane--learn-only .gesture-hint-overlay {
  justify-content: center;
  gap: 1.2rem;
  padding: 2.5rem;
}

.camera-pane--learn-only .gesture-hint-text {
  text-align: center;
  font-size: 1.15rem;
  line-height: 1.6;
}

.camera-pane--learn-only .gesture-hint-link {
  align-self: center;
  font-size: .9rem;
}

body.lesson-active .camera-pane.camera-pane--learn-only {
  transition: border-color .2s, box-shadow .25s;
}

body.lesson-active .camera-pane--learn-flash {
  box-shadow: 0 0 0 2px #4ade8059, 0 0 30px #4ade8040;
  border-color: #4ade80b3 !important;
}

.learn-mode-note {
  z-index: 20;
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(var(--surface-tint), .1);
  color: rgba(var(--surface-tint), .85);
  letter-spacing: .01em;
  pointer-events: none;
  background: #000000b8;
  border-radius: 10px;
  flex-direction: column;
  gap: .3rem;
  max-width: 280px;
  padding: .55rem .75rem;
  font-size: .7rem;
  font-weight: 400;
  display: none;
  position: absolute;
  top: 14px;
  left: 14px;
}

.learn-mode-note-row {
  align-items: center;
  gap: .4rem;
  display: flex;
}

.learn-mode-note svg {
  color: var(--accent);
  opacity: .9;
  flex-shrink: 0;
}

.learn-mode-note strong {
  color: #fff;
  font-weight: 600;
}

.learn-mode-note-sub {
  color: rgba(var(--surface-tint), .55);
  font-size: .62rem;
}

.learn-mode-controls {
  justify-content: center;
  width: 100%;
  display: none;
}

.learn-confirm-btn {
  white-space: nowrap;
  gap: .55rem;
}

.learn-confirm-btn svg {
  flex-shrink: 0;
}

body.learn-only-mode #camera-controls {
  order: 2;
}

body.learn-only-mode #start-btn {
  background: rgba(var(--surface-tint), .05);
  color: var(--muted);
  border: 1px solid rgba(var(--surface-tint), .12);
  box-shadow: none;
}

body.learn-only-mode #start-btn:hover {
  background: rgba(var(--surface-tint), .09);
  color: var(--fg);
}

.debug-block {
  flex-direction: column;
  flex-shrink: 0;
  align-items: flex-start;
  gap: .4rem;
  width: 100%;
  max-width: 680px;
  display: flex;
}

.debug-toggle {
  letter-spacing: .02em;
  color: var(--muted);
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  align-items: center;
  gap: .45rem;
  font-size: .68rem;
  display: inline-flex;
}

.debug-toggle:hover {
  color: var(--fg);
}

.debug-toggle input {
  appearance: none;
  border: 1px solid rgba(var(--surface-tint), .25);
  background: rgba(var(--surface-tint), .04);
  cursor: pointer;
  border-radius: 4px;
  place-content: center;
  width: 14px;
  height: 14px;
  margin: 0;
  transition: background .12s, border-color .12s;
  display: grid;
}

.debug-toggle input:after {
  content: "";
  background: #fff;
  border-radius: 1px;
  width: 6px;
  height: 6px;
  transition: transform .12s;
  transform: scale(0);
}

.debug-toggle input:checked {
  background: var(--accent);
  border-color: var(--accent);
}

.debug-toggle input:checked:after {
  transform: scale(1);
}

.debug-toggle input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.debug-panel {
  border: 1px solid rgba(var(--surface-tint), .1);
  background: rgba(var(--surface-tint), .04);
  width: 100%;
  max-height: 210px;
  font-family: var(--font-mono);
  color: var(--fg);
  border-radius: 10px;
  flex-direction: column;
  gap: .45rem;
  padding: .6rem .7rem;
  font-size: .63rem;
  line-height: 1.3;
  display: flex;
  overflow-y: auto;
}

.debug-tone-ok {
  color: #22c55e;
}

.debug-tone-warn {
  color: #f59e0b;
}

.debug-tone-bad {
  color: #ef4444;
}

.debug-tone-wait {
  color: var(--muted);
}

.debug-stage {
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  display: flex;
}

.debug-stage-badge {
  background: rgba(var(--surface-tint), .08);
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  border-radius: 999px;
  padding: .1rem .42rem;
  font-size: .57rem;
  font-weight: 700;
}

.debug-stage-detail {
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  overflow: hidden;
}

.debug-grid {
  grid-template-columns: repeat(auto-fill, minmax(94px, 1fr));
  gap: .3rem .6rem;
  display: grid;
}

.debug-metric {
  flex-direction: column;
  min-width: 0;
  display: flex;
}

.debug-metric-name {
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  font-size: .54rem;
}

.debug-metric-value {
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
  overflow: hidden;
}

.debug-lower {
  border-top: 1px solid rgba(var(--surface-tint), .08);
  flex-wrap: wrap;
  gap: .45rem .9rem;
  padding-top: .45rem;
  display: flex;
}

.debug-face {
  flex-wrap: wrap;
  flex: 250px;
  align-content: center;
  align-items: center;
  gap: .3rem .8rem;
  display: flex;
}

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

.debug-dots {
  align-items: center;
  gap: .7rem;
  display: flex;
}

.debug-dot-row {
  color: var(--muted);
  letter-spacing: .08em;
  text-transform: uppercase;
  align-items: center;
  gap: .3rem;
  font-size: .57rem;
  display: inline-flex;
}

.debug-dot {
  background: rgba(var(--surface-tint), .25);
  border-radius: 50%;
  width: 7px;
  height: 7px;
}

.debug-dot-row--on {
  color: #22c55e;
}

.debug-dot-row--on .debug-dot {
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
}

.debug-top {
  flex-direction: column;
  flex: 0 200px;
  justify-content: center;
  gap: .22rem;
  display: flex;
}

.debug-top-row {
  grid-template-columns: 3.6rem 1fr 2.2rem;
  align-items: center;
  gap: .5rem;
  display: grid;
}

.debug-top-label {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.debug-top-track {
  background: rgba(var(--surface-tint), .1);
  border-radius: 999px;
  height: 4px;
  overflow: hidden;
}

.debug-top-fill {
  background: var(--accent);
  border-radius: 999px;
  height: 100%;
  display: block;
}

.debug-top-value {
  text-align: right;
  color: var(--muted);
}

.debug-last {
  border-top: 1px solid rgba(var(--surface-tint), .08);
  flex-direction: column;
  gap: .3rem;
  padding-top: .45rem;
  display: flex;
}

.debug-last-title {
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  font-size: .54rem;
}

.debug-last-summary {
  flex-wrap: wrap;
  gap: .3rem 1.2rem;
  display: flex;
}

.debug-last-row {
  grid-template-columns: minmax(0, 5.5rem) minmax(0, 1fr);
  align-items: baseline;
  gap: .6rem;
  display: grid;
}

.debug-last-target {
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.debug-last-guesses {
  flex-wrap: wrap;
  gap: .15rem .8rem;
  display: flex;
}

.debug-last-pick {
  color: var(--accent);
  font-weight: 700;
}

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

@media (min-width: 901px) {
  body.lesson-active.debug-info-on .camera-pane {
    flex-shrink: 1;
    width: auto;
    height: 100%;
    min-height: 0;
  }
}

.sign-video-panel {
  z-index: 30;
  border-radius: inherit;
  background: var(--surface-1);
  color: var(--fg);
  text-align: left;
  --surface-tint: 15, 23, 42;
  --lightningcss-light: initial;
  --lightningcss-dark: ;
  color-scheme: light;
  flex-direction: column;
  gap: .7rem;
  padding: 1.1rem 1.25rem 1rem;
  display: none;
  position: absolute;
  inset: 0;
}

[data-theme="dark"] .sign-video-panel {
  --surface-tint: 255, 255, 255;
  --lightningcss-light: ;
  --lightningcss-dark: initial;
  color-scheme: dark;
}

.sign-video-head {
  flex-shrink: 0;
}

.sign-video-heading {
  color: var(--text-strong);
  margin: 0;
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.3;
}

.sign-video-note {
  color: var(--muted);
  margin: .3rem 0 0;
  font-size: .75rem;
  line-height: 1.45;
}

.sign-video-stage {
  border: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: 10px;
  flex: 1;
  justify-content: center;
  align-items: center;
  min-height: 0;
  display: flex;
  position: relative;
  overflow: hidden;
}

.sign-video-play {
  background: var(--surface-2);
  cursor: pointer;
  border: none;
  width: 100%;
  height: 100%;
  padding: 0;
  display: block;
  position: relative;
}

.sign-video-thumb {
  object-fit: cover;
  width: 100%;
  height: 100%;
  display: block;
}

.sign-video-play-badge {
  color: #fff;
  -webkit-backdrop-filter: blur(4px);
  background: #0000009e;
  border: 1px solid #ffffff40;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 58px;
  height: 58px;
  transition: background .15s, transform .15s;
  display: flex;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.sign-video-play:hover .sign-video-play-badge {
  background: #2563ebeb;
  transform: translate(-50%, -50%)scale(1.06);
}

.sign-video-frame {
  border: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.sign-video-empty {
  text-align: center;
  color: var(--muted);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: .6rem;
  padding: 1.5rem;
  font-size: .78rem;
  line-height: 1.5;
  display: none;
}

.sign-video-actions {
  flex-shrink: 0;
  justify-content: flex-end;
  align-items: center;
  gap: .7rem;
  display: flex;
}

.sign-video-more {
  color: var(--accent);
  text-underline-offset: 2px;
  align-items: center;
  margin-right: auto;
  font-size: .72rem;
  font-weight: 600;
  text-decoration: underline;
}

.sign-video-more:hover {
  color: var(--accent-3);
}

[data-theme="dark"] .sign-video-more {
  color: #a5b4fc;
}

[data-theme="dark"] .sign-video-more:hover {
  color: #c7d2fe;
}

.sign-video-btn {
  white-space: nowrap;
  align-items: center;
  gap: .4rem;
  display: inline-flex;
}

body.untrained-step .learn-mode-controls {
  display: none !important;
}

.prediction-box {
  text-align: center;
  padding: 1.5rem;
}

.prediction-box h2 {
  font-family: var(--font);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .2em;
  margin-bottom: .75rem;
  font-size: .65rem;
}

#predicted-sign {
  font-family: var(--font-display);
  background: var(--gradient);
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  justify-content: center;
  align-items: center;
  height: 5rem;
  font-size: 4rem;
  font-weight: 400;
  display: flex;
}

.train-controls {
  grid-template-columns: repeat(auto-fill, minmax(55px, 1fr));
  gap: .4rem;
  margin-top: .75rem;
  display: grid;
}

.controls {
  flex-direction: column;
  gap: 1.25rem;
  display: flex;
}

#word-display span {
  padding: 0 .15rem;
  transition: color .2s;
}

#word-display span.current {
  background: var(--gradient);
  -webkit-text-fill-color: transparent;
  border-bottom: 3px solid var(--accent);
  -webkit-background-clip: text;
  background-clip: text;
}

#word-display span.completed {
  color: #10b981;
}

#word-display span.pending {
  color: var(--muted);
}

#handshape-tooltip {
  pointer-events: none;
}

#hold-progress-container {
  background: rgba(var(--surface-tint), .05);
  z-index: 20;
  width: 100%;
  height: 8px;
  position: absolute;
  bottom: 0;
  left: 0;
}

#hold-progress-bar {
  background: var(--gradient);
  width: 0%;
  height: 100%;
  transition: width 50ms linear, background .15s;
  box-shadow: 0 0 15px #2563eb66;
}

.lesson-summary-card {
  --surface-tint: 255, 255, 255;
  --bg: #050508;
  --fg: #e8e8ed;
  --muted: #7a7a8a;
  --text-strong: #fff;
  --border: #ffffff14;
  --card-bg: #ffffff08;
  --card-border: #ffffff0f;
  --glass-bg: #ffffff05;
  --glass-border: #ffffff0d;
  --card-bg-solid: #0a0a0f;
  --surface-1: #0a0a0f;
  --surface-2: #111116;
  --surface-3: #1a1a22;
  --lightningcss-light: ;
  --lightningcss-dark: initial;
  color-scheme: dark;
  color: var(--fg);
}

.lesson-summary-overlay {
  z-index: 300;
  -webkit-backdrop-filter: blur(18px) saturate(110%);
  background: #02060eb8;
  justify-content: center;
  align-items: center;
  display: none;
  position: fixed;
  inset: 0;
}

.lesson-summary-card {
  width: 90%;
  max-width: 440px;
  box-shadow: 0 24px 60px #020814a6, inset 0 1px 0 rgba(var(--surface-tint), .08);
  -webkit-backdrop-filter: blur(28px) saturate(130%);
  background: #0a0e18b3;
  border: 1px solid #94a3b833;
  border-radius: 20px;
  padding: 2.5rem 2.2rem 2rem;
  position: relative;
  overflow: hidden;
}

.lesson-summary-close {
  color: #e2e8f0eb;
  cursor: pointer;
  background: #0f172aa6;
  border: 1px solid #94a3b83d;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 28px;
  height: 28px;
  font-size: .85rem;
  transition: color .15s, background .15s;
  display: flex;
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.lesson-summary-close:hover {
  color: #fff;
  background: #1e293bcc;
}

.summary-stat-card {
  background: rgba(var(--surface-tint), .04);
  border: 1px solid rgba(var(--surface-tint), .06);
  text-align: center;
  border-radius: 14px;
  flex-direction: column;
  padding: 0;
  display: flex;
  overflow: hidden;
}

.summary-stat-card--full {
  grid-column: 1 / -1;
}

.summary-stat-label {
  color: rgba(var(--surface-tint), .5);
  text-transform: uppercase;
  letter-spacing: .1em;
  background: rgba(var(--surface-tint), .03);
  border-bottom: 1px solid rgba(var(--surface-tint), .05);
  padding: .7rem .75rem .55rem;
  font-size: .6rem;
  font-weight: 500;
}

.summary-stat-value {
  color: #fff;
  flex: 1;
  justify-content: center;
  align-items: center;
  padding: .85rem .75rem 1rem;
  font-size: 1.6rem;
  font-weight: 600;
  display: flex;
}

.summary-stat-card--xp {
  background: rgba(var(--surface-tint), .04);
  border-color: rgba(var(--surface-tint), .06);
  overflow: hidden;
}

.summary-stat-card--xp .summary-stat-value {
  color: #3b82f6;
  font-size: 1.6rem;
}

.summary-stat-card--xp .summary-stat-label {
  color: rgba(var(--surface-tint), .5);
  background: rgba(var(--surface-tint), .03);
  border-bottom-color: rgba(var(--surface-tint), .05);
}

#summary-time-to-beat {
  font-size: 1.35rem;
}

.summary-scoring-note {
  color: #e2e8f0b8;
  text-align: center;
  margin: -1.1rem 0 1.3rem;
  font-size: .72rem;
  line-height: 1.45;
}

#lesson-summary h2 {
  color: #fff;
}

.lesson-start-overlay {
  z-index: 300;
  background: color-mix(in srgb, var(--bg) 75%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(110%);
  justify-content: center;
  align-items: center;
  display: none;
  position: fixed;
  inset: 0;
}

.lesson-start-card {
  text-align: left;
  background: color-mix(in srgb, var(--surface-1) 88%, transparent);
  border: 1px solid var(--card-border);
  width: 90%;
  max-width: 420px;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(var(--surface-tint), .08);
  -webkit-backdrop-filter: blur(28px) saturate(130%);
  color: var(--fg);
  border-radius: 24px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}

.lesson-start-close {
  background: rgba(var(--surface-tint), .06);
  border: 1px solid var(--border);
  width: 32px;
  height: 32px;
  color: var(--muted);
  cursor: pointer;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  font-size: .9rem;
  transition: background .2s, color .2s, border-color .2s;
  display: flex;
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
}

.lesson-start-close:hover {
  background: rgba(var(--surface-tint), .12);
  border-color: rgba(var(--surface-tint), .18);
  color: var(--fg);
}

.lesson-start-title {
  font-family: var(--font-hero);
  letter-spacing: -.04em;
  color: var(--text-strong);
  margin-bottom: 1rem;
  padding-right: 2rem;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

#current-lesson-title {
  font-family: var(--font-hero);
  letter-spacing: -.04em;
  font-weight: 700;
  line-height: 1;
}

.lesson-summary-card .btn-primary, .lesson-start-card .btn-primary {
  background: #4f46e5eb;
  border-color: #2563eb80;
}

.lesson-summary-card .btn-primary:hover, .lesson-start-card .btn-primary:hover {
  background: #2563ebf5;
  border-color: #60a5fa8c;
}

.lesson-start-desc {
  color: var(--muted);
  margin-bottom: 2rem;
  font-size: .95rem;
  line-height: 1.7;
}

.lesson-start-btn {
  width: 100%;
  padding: .9rem 1.5rem;
  font-size: .85rem;
  transition: opacity .2s, background .2s;
}

.lesson-start-btn.btn-loading {
  opacity: .5;
  cursor: not-allowed;
  pointer-events: none;
}

.preload-progress-container {
  flex-direction: column;
  gap: .45rem;
  width: 100%;
  margin-bottom: 1.25rem;
  display: flex;
}

.preload-progress-track {
  background: rgba(var(--surface-tint), .08);
  border-radius: 3px;
  width: 100%;
  height: 5px;
  overflow: hidden;
}

.preload-progress-fill {
  background: linear-gradient(90deg, var(--accent, #2563eb), #3b82f6);
  border-radius: 3px;
  width: 0%;
  height: 100%;
  transition: width .35s cubic-bezier(.4, 0, .2, 1);
}

.preload-progress-label {
  letter-spacing: .04em;
  color: rgba(var(--surface-tint), .5);
  text-align: center;
  font-size: .7rem;
  font-weight: 500;
}

.text-lesson-panel {
  --reading-accent: 37, 99, 235;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
  max-width: 640px;
  margin: 1.5rem auto 0;
  padding: 2rem 2.5rem;
  display: none;
}

[data-theme="dark"] .text-lesson-panel {
  --reading-accent: 96, 165, 250;
}

.text-lesson-content {
  width: 100%;
  max-height: 60vh;
  color: var(--fg);
  letter-spacing: .01em;
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--surface-tint), .18) transparent;
  font-size: 1rem;
  line-height: 1.85;
  overflow-y: auto;
}

.text-lesson-content p {
  margin: 0 0 1em;
}

.text-lesson-content p:last-child {
  margin-bottom: 0;
}

.text-lesson-content h2 {
  font-family: var(--font-display);
  color: var(--text-strong);
  letter-spacing: -.01em;
  margin: 1.75rem 0 .75rem;
  font-size: 1.35rem;
  font-weight: 500;
}

.text-lesson-content h2:first-child {
  margin-top: 0;
}

.text-lesson-content h3 {
  color: var(--text-strong);
  margin: 1.25rem 0 .5rem;
  font-size: 1.1rem;
  font-weight: 500;
}

.text-lesson-content strong {
  color: var(--text-strong);
  font-weight: 600;
}

.text-lesson-content em {
  color: rgba(var(--surface-tint), .82);
  font-style: italic;
}

.text-lesson-content ul, .text-lesson-content ol {
  margin: .5em 0 1em;
  padding-left: 1.5rem;
}

.text-lesson-content li {
  margin-bottom: .35em;
}

.text-lesson-content li::marker {
  color: rgba(var(--reading-accent), .85);
}

.text-lesson-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.75rem 0;
}

.text-lesson-content blockquote {
  border-left: 3px solid rgba(var(--reading-accent), .55);
  color: rgba(var(--surface-tint), .78);
  margin: .75rem 0 1rem;
  padding: .4rem 0 .4rem 1rem;
}

.text-lesson-content code {
  background: rgba(var(--surface-tint), .08);
  color: var(--text-strong);
  border-radius: 4px;
  padding: .15em .4em;
  font-size: .9em;
}

.text-lesson-content a {
  color: rgba(var(--reading-accent), 1);
  text-underline-offset: .15em;
  text-decoration: underline;
}

.text-lesson-continue-btn {
  width: 100%;
  max-width: 280px;
  margin-top: .5rem;
  padding: .85rem 1.5rem;
  font-size: .9rem;
}

footer {
  text-align: center;
  border-top: 1px solid var(--border);
  margin-top: auto;
  padding: 2rem 0 1rem;
}

.footer-copy {
  font-family: var(--font);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  font-size: .65rem;
}

.footer-sub {
  color: #7a7a8a80;
  margin-top: .5rem;
  font-size: .65rem;
}

@media (max-width: 968px) {
  .main-content {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 2rem;
  }
}

.bug-report-link {
  color: var(--muted);
  font-family: var(--font);
  cursor: pointer;
  text-decoration: underline;
  -webkit-text-decoration-color: rgba(var(--surface-tint), .15);
  text-decoration-color: rgba(var(--surface-tint), .15);
  text-underline-offset: 3px;
  background: none;
  border: none;
  padding: 0;
  font-size: .8rem;
  transition: color .15s;
}

.bug-report-link:hover {
  color: var(--fg);
  text-decoration-color: currentColor;
}

.bug-report-backdrop {
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  background: #050508bf;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  animation: .18s ease-out bugReportFadeIn;
  display: flex;
  position: fixed;
  inset: 0;
}

@keyframes bugReportFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.bug-report-modal {
  background: var(--surface-1);
  border: 1px solid var(--card-border);
  border-radius: 1rem;
  width: 100%;
  max-width: 480px;
  padding: 1.75rem;
  animation: .2s ease-out bugReportSlideIn;
  position: relative;
  box-shadow: 0 20px 60px #0009;
}

@keyframes bugReportSlideIn {
  from {
    opacity: 0;
    transform: translateY(10px)scale(.98);
  }

  to {
    opacity: 1;
    transform: translateY(0)scale(1);
  }
}

.bug-report-close {
  width: 2rem;
  height: 2rem;
  color: var(--muted);
  cursor: pointer;
  background: none;
  border: none;
  border-radius: .4rem;
  font-size: 1rem;
  transition: background .15s, color .15s;
  position: absolute;
  top: .75rem;
  right: .75rem;
}

.bug-report-close:hover {
  background: rgba(var(--surface-tint), .05);
  color: var(--fg);
}

.bug-report-title {
  font-family: var(--font-display);
  letter-spacing: -.01em;
  margin-bottom: .4rem;
  font-size: 1.5rem;
  font-weight: 500;
}

.bug-report-desc {
  color: var(--muted);
  margin-bottom: 1rem;
  font-size: .9rem;
  line-height: 1.5;
}

.bug-report-textarea {
  background: var(--surface-2);
  border: 1px solid var(--border);
  width: 100%;
  color: var(--fg);
  font-family: var(--font);
  resize: vertical;
  border-radius: .6rem;
  min-height: 120px;
  padding: .75rem .85rem;
  font-size: .95rem;
  line-height: 1.5;
  transition: border-color .15s, box-shadow .15s;
}

.bug-report-textarea:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px #2563eb33;
}

.bug-report-error {
  color: #f87171;
  margin-top: .5rem;
  font-size: .85rem;
}

.bug-report-actions {
  justify-content: flex-end;
  gap: .5rem;
  margin-top: 1rem;
  display: flex;
}

.bug-report-btn {
  background: var(--surface-2);
  color: var(--fg);
  border: 1px solid var(--border);
  font-family: var(--font);
  cursor: pointer;
  border-radius: .55rem;
  padding: .55rem 1rem;
  font-size: .9rem;
  font-weight: 500;
  transition: border-color .15s, background .15s, filter .15s;
}

.bug-report-btn:hover:not(:disabled) {
  border-color: var(--accent);
  background: var(--surface-3);
}

.bug-report-btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  border-color: #0000;
}

.bug-report-btn--primary:hover:not(:disabled) {
  filter: brightness(1.1);
}

.bug-report-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.bug-report-done {
  flex-direction: column;
  align-items: flex-start;
  gap: .5rem;
  display: flex;
}

.bug-report-done .bug-report-btn {
  margin-top: .5rem;
}

.invite-modal-backdrop {
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  background: #0000008c;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  animation: .2s inviteModalBackdropIn;
  display: flex;
  position: fixed;
  inset: 0;
}

@keyframes inviteModalBackdropIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.invite-modal {
  background: var(--bg);
  border: 1px solid rgba(var(--surface-tint), .08);
  text-align: center;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 30px 80px -30px #0009, 0 0 0 1px rgba(var(--surface-tint), .04) inset;
  border-radius: 22px;
  padding: 2.25rem 1.75rem 1.75rem;
  animation: .3s cubic-bezier(.4, 0, .2, 1) inviteModalIn;
  position: relative;
  overflow: hidden;
}

.invite-modal:before {
  content: "";
  opacity: .12;
  filter: blur(80px);
  pointer-events: none;
  background: #22c55e;
  border-radius: 50%;
  width: 220px;
  height: 220px;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

@keyframes inviteModalIn {
  from {
    opacity: 0;
    transform: scale(.94)translateY(10px);
  }

  to {
    opacity: 1;
    transform: scale(1)translateY(0);
  }
}

.invite-modal-close {
  background: rgba(var(--surface-tint), .05);
  width: 28px;
  height: 28px;
  color: var(--muted);
  cursor: pointer;
  z-index: 2;
  border: none;
  border-radius: 50%;
  font-size: .85rem;
  transition: background .2s, color .2s;
  position: absolute;
  top: .75rem;
  right: .75rem;
}

.invite-modal-close:hover {
  background: rgba(var(--surface-tint), .1);
  color: var(--fg);
}

.invite-modal-icon {
  color: #fff;
  width: 56px;
  height: 56px;
  box-shadow: 0 0 0 8px rgba(var(--surface-tint), .03), 0 16px 40px -10px #22c55eb3;
  background: #22c55e;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  margin: 0 auto 1.1rem;
  display: flex;
  position: relative;
}

.invite-modal-eyebrow {
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #22c55e;
  margin-bottom: .5rem;
  font-size: .65rem;
  font-weight: 700;
  position: relative;
}

.invite-modal-title {
  font-family: var(--font-display);
  color: var(--fg);
  letter-spacing: -.015em;
  margin: 0 0 .75rem;
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.25;
  position: relative;
}

.invite-modal-desc {
  color: var(--muted);
  margin: 0 0 1.5rem;
  font-size: .85rem;
  line-height: 1.55;
  position: relative;
}

.invite-modal-error {
  color: #f87171;
  margin-bottom: 1rem;
  font-size: .85rem;
  position: relative;
}

.invite-modal-skeleton {
  background: linear-gradient(90deg, rgba(var(--surface-tint), .04) 25%, rgba(var(--surface-tint), .08) 37%, rgba(var(--surface-tint), .04) 63%);
  background-size: 400% 100%;
  border-radius: 12px;
  height: 44px;
  animation: 1.4s infinite inviteSkeletonPulse;
  position: relative;
}

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

  100% {
    background-position: 0;
  }
}

.invite-modal-bonus {
  color: #f59e0b;
  text-align: left;
  background: #f59e0b1f;
  border: 1px solid #f59e0b40;
  border-radius: 12px;
  margin-bottom: 1.1rem;
  padding: .7rem .9rem;
  font-size: .8rem;
  font-weight: 600;
  line-height: 1.45;
  position: relative;
}

.invite-modal-link-row {
  gap: .5rem;
  margin-bottom: .85rem;
  display: flex;
  position: relative;
}

.invite-modal-link-input {
  background: rgba(var(--surface-tint), .04);
  border: 1px solid rgba(var(--surface-tint), .08);
  min-width: 0;
  color: var(--fg);
  font-family: var(--font-mono);
  border-radius: 10px;
  flex: 1;
  padding: .65rem .8rem;
  font-size: .78rem;
}

.invite-modal-link-input:focus {
  border-color: #22c55e;
  outline: none;
  box-shadow: 0 0 0 3px #22c55e33;
}

.invite-modal-copy {
  color: #fff;
  font-family: var(--font);
  cursor: pointer;
  background: #22c55e;
  border: none;
  border-radius: 10px;
  flex-shrink: 0;
  padding: .65rem 1.1rem;
  font-size: .8rem;
  font-weight: 600;
  transition: filter .2s;
}

.invite-modal-copy:hover {
  filter: brightness(1.08);
}

.invite-modal-share {
  color: #22c55e;
  width: 100%;
  font-family: var(--font);
  cursor: pointer;
  background: #22c55e1a;
  border: 1px solid #22c55e40;
  border-radius: 10px;
  margin-bottom: 1.5rem;
  padding: .7rem 1rem;
  font-size: .82rem;
  font-weight: 600;
  transition: background .2s;
  position: relative;
}

.invite-modal-share:hover {
  background: #22c55e29;
}

.invite-modal-progress {
  text-align: left;
  position: relative;
}

.invite-modal-progress-label {
  color: var(--muted);
  justify-content: space-between;
  margin-bottom: .5rem;
  font-size: .72rem;
  font-weight: 600;
  display: flex;
}

.invite-modal-progress-track {
  background: rgba(var(--surface-tint), .08);
  border-radius: 3px;
  width: 100%;
  height: 6px;
  overflow: hidden;
}

.invite-modal-progress-fill {
  background: linear-gradient(90deg, #22c55e, #4ade80);
  border-radius: 3px;
  height: 100%;
  transition: width .6s cubic-bezier(.4, 0, .2, 1);
}

@media (max-width: 640px) {
  .invite-modal {
    border-radius: 18px;
    padding: 2rem 1.25rem 1.5rem;
  }

  .invite-modal-title {
    font-size: 1.2rem;
  }

  .invite-modal-link-row {
    flex-direction: column;
  }
}

.theme-toggle {
  z-index: 200;
  background: var(--surface-1);
  width: 40px;
  height: 40px;
  color: var(--fg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  cursor: pointer;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  transition: background .2s, border-color .2s, color .2s, transform .15s;
  display: inline-flex;
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
}

.theme-toggle:hover {
  background: var(--surface-2);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.theme-toggle:active {
  transform: translateY(0);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

body.lesson-active .theme-toggle {
  display: none;
}

.lesson-route #units-view, .lesson-route .units-grid, .lesson-route .lessons-display {
  display: none !important;
}

.lesson-route--exiting {
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease-out;
}

.app-with-sidenav {
  --app-sidenav-w: 240px;
  min-height: 100vh;
}

.app-with-sidenav__content {
  padding-left: var(--app-sidenav-w);
  min-height: 100vh;
}

.app-sidenav {
  width: var(--app-sidenav-w, 240px);
  z-index: 50;
  background: rgba(var(--surface-tint), .015);
  border-right: 1px solid var(--border);
  height: 100dvh;
  font-family: var(--font);
  flex-direction: column;
  gap: 1.25rem;
  padding: 1rem .75rem;
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
}

.app-sidenav__logo {
  color: var(--fg);
  font-family: var(--font-display);
  letter-spacing: -.02em;
  align-items: center;
  gap: .65rem;
  padding: .4rem .5rem;
  font-size: 1.25rem;
  font-weight: 500;
  text-decoration: none;
  display: flex;
}

.app-sidenav__logo img {
  object-fit: contain;
  width: auto;
  height: 42px;
}

.app-sidenav__nav {
  flex-direction: column;
  gap: .3rem;
  display: flex;
}

.app-sidenav__item {
  color: var(--muted);
  letter-spacing: 0;
  text-transform: none;
  border: 1px solid #0000;
  border-radius: 6px;
  align-items: center;
  gap: .85rem;
  padding: .55rem .7rem;
  font-size: .92rem;
  font-weight: 500;
  text-decoration: none;
  transition: color .15s, background .15s, border-color .15s;
  display: flex;
}

button.app-sidenav__item {
  cursor: pointer;
  text-align: left;
  width: 100%;
  font-family: var(--font);
  background: none;
}

.app-sidenav__item--gated {
  display: none;
}

[data-nav-classes="1"] .app-sidenav__item--gate-classes, [data-nav-dashboard="1"] .app-sidenav__item--gate-dashboard {
  display: flex;
}

.app-sidenav__item:hover {
  background: rgba(var(--surface-tint), .035);
  color: var(--fg);
}

.app-sidenav__item--active {
  background: rgba(var(--surface-tint), .04);
  color: var(--text-strong);
  border-color: rgba(var(--surface-tint), .08);
}

.app-sidenav__item svg {
  opacity: .85;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.app-sidenav__footer {
  margin-top: auto;
}

.app-sidenav__signin {
  width: 100%;
  color: var(--accent);
  font-size: .92rem;
  font-weight: 500;
  font-family: var(--font);
  cursor: pointer;
  background: none;
  border: none;
  border-radius: 6px;
  align-items: center;
  gap: .65rem;
  padding: .55rem .7rem;
  transition: background .15s;
  display: flex;
}

.app-sidenav__signin:hover {
  background: rgba(var(--surface-tint), .035);
}

.app-sidenav__signin svg {
  opacity: .85;
  width: 18px;
  height: 18px;
}

.app-sidenav__user-chip {
  color: var(--muted);
  align-items: center;
  gap: .7rem;
  padding: .5rem .7rem;
  font-size: .9rem;
  display: flex;
}

.app-sidenav__bug {
  border: 1px solid var(--border);
  background: rgba(var(--surface-tint), .045);
  width: 100%;
  color: var(--text-strong);
  font-family: var(--font);
  text-align: left;
  cursor: pointer;
  border-radius: 8px;
  align-items: center;
  gap: .85rem;
  margin-bottom: .5rem;
  padding: .6rem .7rem;
  font-size: .92rem;
  font-weight: 600;
  transition: background .15s, border-color .15s, transform .15s;
  display: flex;
}

.app-sidenav__bug:hover {
  background: rgba(var(--surface-tint), .085);
  border-color: rgba(var(--surface-tint), .2);
  transform: translateY(-1px);
}

.app-sidenav__bug:active {
  transform: translateY(0);
}

.app-sidenav__bug svg {
  color: #d97706;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

[data-theme="dark"] .app-sidenav__bug svg {
  color: #fbbf24;
}

.app-sidenav__join {
  background: var(--accent);
  color: #fff;
  font-family: var(--font);
  border: 1px solid #2563ebe6;
  border-radius: 8px;
  align-items: center;
  gap: .85rem;
  margin-top: .55rem;
  padding: .6rem .7rem;
  font-size: .92rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s, transform .15s, box-shadow .15s;
  display: flex;
  box-shadow: 0 6px 18px -10px #2563ebf2;
}

.app-sidenav__join:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px -10px #2563eb;
}

.app-sidenav__join:active {
  transform: translateY(0);
}

.app-sidenav__join--active {
  background: #1d4ed8;
  border-color: #1d4ed8;
}

.app-sidenav__join svg {
  opacity: .95;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.app-sidenav__invite {
  color: #fff;
  width: 100%;
  font-family: var(--font);
  cursor: pointer;
  background: #22c55e;
  border: 1px solid #22c55ee6;
  border-radius: 8px;
  align-items: center;
  gap: .85rem;
  margin-top: .5rem;
  padding: .6rem .7rem;
  font-size: .92rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s, transform .15s, box-shadow .15s;
  display: flex;
  box-shadow: 0 6px 18px -10px #22c55ef2;
}

.app-sidenav__invite:hover {
  background: #16a34a;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px -10px #22c55e;
}

.app-sidenav__invite:active {
  transform: translateY(0);
}

.app-sidenav__invite:disabled {
  opacity: .55;
  cursor: default;
  transform: none;
}

.app-sidenav__invite:disabled:hover {
  background: #22c55e;
  transform: none;
}

.app-sidenav__invite svg {
  opacity: .95;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.app-sidenav-toggle {
  z-index: 200;
  background: var(--surface-1);
  width: 44px;
  height: 44px;
  color: var(--fg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  cursor: pointer;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  transition: background .2s, border-color .2s, color .2s;
  display: none;
  position: fixed;
  bottom: 1.25rem;
  left: 1.25rem;
}

.app-sidenav-toggle:hover {
  background: var(--surface-2);
  border-color: var(--accent);
  color: var(--accent);
}

.app-sidenav-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.app-sidenav-backdrop {
  z-index: 49;
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  background: #00000080;
  transition: opacity .24s;
  display: none;
  position: fixed;
  inset: 0;
}

@media (max-width: 1024px) {
  .app-sidenav-toggle {
    display: inline-flex;
  }

  .app-sidenav-backdrop {
    display: block;
  }

  .app-sidenav-backdrop--open {
    opacity: 1;
    pointer-events: auto;
  }

  .app-sidenav {
    visibility: hidden;
    background: var(--surface-1);
    width: min(280px, 82vw);
    padding-bottom: 4.5rem;
    transition: transform .26s cubic-bezier(.4, 0, .2, 1), visibility .26s;
    overflow-y: auto;
    transform: translateX(-100%);
    box-shadow: 0 0 40px #00000080;
  }

  .app-sidenav--open {
    visibility: visible;
    transform: translateX(0);
  }

  .app-with-sidenav__content {
    padding-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-sidenav, .app-sidenav-backdrop {
    transition: none;
  }
}

.lesson-loading-overlay {
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  -webkit-backdrop-filter: blur(14px);
  justify-content: center;
  align-items: center;
  transition: opacity .35s, visibility .35s;
  animation: .18s ease-out lessonLoadingFadeIn;
  display: flex;
  position: fixed;
  inset: 0;
}

.lesson-loading-overlay--done {
  opacity: 0;
  pointer-events: none;
}

@keyframes lessonLoadingFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.lesson-loading-card {
  background: color-mix(in srgb, var(--surface-1) 92%, transparent);
  border: 1px solid var(--card-border);
  width: min(360px, 92vw);
  box-shadow: var(--shadow);
  text-align: center;
  border-radius: 16px;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  padding: 1.75rem 1.5rem 1.5rem;
  animation: .32s cubic-bezier(.2, .8, .2, 1) lessonLoadingCardIn;
  display: flex;
}

@keyframes lessonLoadingCardIn {
  from {
    opacity: 0;
    transform: translateY(8px)scale(.97);
  }

  to {
    opacity: 1;
    transform: translateY(0)scale(1);
  }
}

.lesson-loading-spinner {
  width: 44px;
  height: 44px;
  margin-bottom: .25rem;
}

.lesson-loading-spinner svg {
  width: 100%;
  height: 100%;
  animation: 1s linear infinite lessonLoadingSpin;
}

.lesson-loading-spinner circle {
  fill: none;
  stroke: #3b82f6;
  stroke-width: 4px;
  stroke-linecap: round;
  stroke-dasharray: 90 150;
  stroke-dashoffset: 0;
  transform-origin: center;
}

@keyframes lessonLoadingSpin {
  from {
    transform: rotate(0);
  }

  to {
    transform: rotate(360deg);
  }
}

.lesson-loading-title {
  color: var(--text-strong);
  letter-spacing: -.01em;
  font-size: 1.05rem;
  font-weight: 600;
}

.lesson-loading-sub {
  color: var(--muted);
  min-height: 1.2em;
  font-size: .85rem;
  transition: color .2s;
}

.lesson-loading-track {
  background: rgba(var(--surface-tint), .08);
  border-radius: 999px;
  width: 100%;
  height: 6px;
  margin-top: .4rem;
  overflow: hidden;
}

.lesson-loading-fill {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 999px;
  height: 100%;
  transition: width .35s cubic-bezier(.2, .8, .2, 1);
  box-shadow: 0 0 12px #3b82f673;
}

.lesson-loading-pct {
  color: var(--muted);
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
  font-size: .75rem;
  font-weight: 600;
}

.lesson-limit-route {
  justify-content: center;
  align-items: center;
}

.lesson-limit-card {
  background: var(--surface-1);
  border: 1px solid var(--card-border);
  width: min(500px, 100%);
  box-shadow: var(--shadow);
  text-align: center;
  border-radius: 20px;
  padding: 2.25rem 2rem 1.75rem;
}

.lesson-limit-icon {
  color: #a855f7;
  background: #a855f71f;
  border-radius: 16px;
  justify-content: center;
  align-items: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 1.1rem;
  display: flex;
}

.lesson-limit-icon svg {
  width: 26px;
  height: 26px;
}

.lesson-limit-eyebrow {
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .55rem;
  font-size: .66rem;
  font-weight: 700;
}

.lesson-limit-title {
  font-family: var(--font-display);
  letter-spacing: -.02em;
  color: var(--text-strong);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.3;
}

.lesson-limit-desc {
  color: var(--muted);
  margin-top: .7rem;
  font-size: .88rem;
  line-height: 1.6;
}

.lesson-limit-meter {
  gap: .35rem;
  margin: 1.3rem 0 1rem;
  display: flex;
}

.lesson-limit-slot {
  background: rgba(var(--surface-tint), .09);
  border-radius: 999px;
  flex: 1;
  height: 7px;
}

.lesson-limit-slot--filled {
  background: linear-gradient(90deg, #a855f7, #8b5cf6);
}

.lesson-limit-reset {
  background: rgba(var(--surface-tint), .04);
  border: 1px solid var(--card-border);
  color: var(--muted);
  border-radius: 12px;
  margin-bottom: 1.1rem;
  padding: .75rem;
  font-size: .85rem;
}

.lesson-limit-reset strong {
  color: var(--text-strong);
  font-variant-numeric: tabular-nums;
}

.lesson-limit-actions {
  flex-direction: column;
  gap: .5rem;
  display: flex;
}

.lesson-limit-cta {
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  border-radius: 12px;
  padding: .78rem 1rem;
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  transition: filter .15s, transform .1s;
  display: block;
}

.lesson-limit-cta:hover {
  filter: brightness(1.1);
}

.lesson-limit-cta:active {
  transform: translateY(1px);
}

.lesson-limit-back {
  color: var(--muted);
  cursor: pointer;
  background: none;
  border: none;
  border-radius: 10px;
  padding: .65rem;
  font-size: .83rem;
  font-weight: 500;
  transition: color .15s, background .15s;
}

.lesson-limit-back:hover {
  color: var(--fg);
  background: rgba(var(--surface-tint), .04);
}

.bill-page {
  width: 100%;
  color: var(--fg);
}

.bill-page__header {
  border-bottom: none;
  margin-bottom: 1.25rem;
  padding: 0;
  display: block;
}

.bill-page__title {
  font-family: var(--font-display);
  letter-spacing: -.01em;
  color: var(--text-strong);
  font-size: 1.1rem;
  font-weight: 600;
}

.bill-page__subtitle {
  color: var(--muted);
  margin-top: .2rem;
  font-size: .8rem;
}

.bill-panel {
  flex-direction: column;
  gap: .9rem;
  display: flex;
}

.bill-card, .bill-plan {
  border: 1px solid var(--card-border);
  background: rgba(var(--surface-tint), .02);
  border-radius: 14px;
  padding: 1.1rem 1.15rem;
}

.bill-plan {
  position: relative;
  overflow: hidden;
}

.bill-plan:before {
  content: "";
  background: rgba(var(--surface-tint), .1);
  height: 2px;
  position: absolute;
  inset: 0 0 auto;
}

.bill-plan--plus:before {
  background: linear-gradient(90deg, #2563eb, #60a5fa);
}

.bill-plan--pro:before {
  background: linear-gradient(90deg, #7c3aed, #a855f7, #ec4899);
}

.bill-plan__head {
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  display: flex;
}

.bill-plan__eyebrow, .bill-card__title {
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
  font-size: .64rem;
  font-weight: 700;
}

.bill-plan__name {
  font-family: var(--font-display);
  letter-spacing: -.02em;
  color: var(--text-strong);
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  margin-top: .3rem;
  font-size: 1.15rem;
  font-weight: 600;
  display: flex;
}

.bill-plan__meta {
  color: var(--muted);
  margin-top: .25rem;
  font-size: .8rem;
}

.bill-plan__amount {
  text-align: right;
  flex-shrink: 0;
}

.bill-plan__amount-value {
  color: var(--text-strong);
  font-variant-numeric: tabular-nums;
  font-size: 1.15rem;
  font-weight: 600;
  display: block;
}

.bill-plan__amount-label {
  color: var(--muted);
  letter-spacing: .04em;
  font-size: .68rem;
}

.bill-status {
  letter-spacing: .08em;
  text-transform: uppercase;
  background: rgba(var(--surface-tint), .08);
  color: var(--muted);
  border-radius: 999px;
  padding: .15rem .5rem;
  font-size: .6rem;
  font-weight: 700;
}

.bill-status--active, .bill-status--trialing {
  color: #16a34a;
  background: #22c55e24;
}

[data-theme="dark"] .bill-status--active, [data-theme="dark"] .bill-status--trialing {
  color: #4ade80;
}

.bill-status--past_due, .bill-status--unpaid, .bill-status--incomplete {
  color: #dc2626;
  background: #ef444424;
}

[data-theme="dark"] .bill-status--past_due, [data-theme="dark"] .bill-status--unpaid, [data-theme="dark"] .bill-status--incomplete {
  color: #f87171;
}

.bill-status--bonus {
  color: #a855f7;
  background: #a855f724;
}

.bill-plan__rows {
  border-top: 1px solid var(--card-border);
  flex-direction: column;
  gap: .45rem;
  margin-top: .95rem;
  padding-top: .85rem;
  display: flex;
}

.bill-row {
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: .82rem;
  display: flex;
}

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

.bill-row__value {
  color: var(--fg);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

.bill-plan__actions {
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1rem;
  display: flex;
}

.bill-btn {
  border: 1px solid var(--border);
  background: rgba(var(--surface-tint), .04);
  color: var(--fg);
  cursor: pointer;
  border-radius: 10px;
  justify-content: center;
  align-items: center;
  padding: .5rem .9rem;
  font-size: .8rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s, border-color .15s, filter .15s;
  display: inline-flex;
}

.bill-btn:hover:not(:disabled) {
  background: rgba(var(--surface-tint), .08);
}

.bill-btn:disabled {
  opacity: .6;
  cursor: not-allowed;
}

.bill-btn--primary {
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  border-color: #0000;
}

.bill-btn--primary:hover:not(:disabled) {
  filter: brightness(1.1);
  background: linear-gradient(135deg, #2563eb, #3b82f6);
}

.bill-inline-error {
  color: #ef4444;
  margin-top: .6rem;
  font-size: .78rem;
}

.bill-card__head {
  justify-content: space-between;
  align-items: baseline;
  gap: .75rem;
  margin-bottom: .8rem;
  display: flex;
}

.bill-card__hint {
  color: var(--muted);
  font-size: .7rem;
}

.bill-usage__figures {
  flex-wrap: wrap;
  align-items: baseline;
  gap: .5rem;
  display: flex;
}

.bill-usage__count {
  letter-spacing: -.02em;
  color: var(--text-strong);
  font-variant-numeric: tabular-nums;
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 1;
}

.bill-usage__total {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 500;
}

.bill-usage__label {
  color: var(--muted);
  font-size: .78rem;
}

.bill-usage__meter {
  gap: .35rem;
  margin: .85rem 0 .7rem;
  display: flex;
}

.bill-usage__slot {
  background: rgba(var(--surface-tint), .09);
  border-radius: 999px;
  flex: 1;
  height: 7px;
}

.bill-usage__slot--filled {
  background: linear-gradient(90deg, #a855f7, #8b5cf6);
}

.bill-usage__note {
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.55;
}

.bill-usage__cta {
  color: var(--accent);
  align-items: center;
  gap: .35rem;
  margin-top: .75rem;
  font-size: .8rem;
  font-weight: 600;
  text-decoration: none;
  transition: gap .15s, color .15s;
  display: inline-flex;
}

.bill-usage__cta:hover {
  color: var(--accent-2);
  gap: .55rem;
}

.bill-usage__unlimited {
  align-items: center;
  gap: .75rem;
  display: flex;
}

.bill-usage__unlimited-glyph {
  color: #22c55e;
  background: #22c55e1f;
  border-radius: 11px;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 38px;
  height: 38px;
  display: flex;
}

.bill-usage__unlimited-glyph svg {
  width: 20px;
  height: 20px;
}

.bill-usage__unlimited-title {
  color: var(--text-strong);
  font-size: .92rem;
  font-weight: 600;
}

.bill-usage__unlimited-sub {
  color: var(--muted);
  margin-top: .1rem;
  font-size: .78rem;
}

.bill-method {
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem;
  font-size: .85rem;
  display: flex;
}

.bill-method__brand {
  border: 1px solid var(--border);
  background: rgba(var(--surface-tint), .05);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--fg);
  border-radius: 6px;
  padding: .25rem .55rem;
  font-size: .7rem;
  font-weight: 700;
}

.bill-method__digits {
  color: var(--fg);
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
}

.bill-method__exp {
  color: var(--muted);
  font-size: .78rem;
}

.bill-method__update {
  color: var(--accent);
  cursor: pointer;
  background: none;
  border: none;
  margin-left: auto;
  padding: 0;
  font-size: .78rem;
  font-weight: 600;
}

.bill-method__update:hover:not(:disabled) {
  color: var(--accent-2);
}

.bill-method__update:disabled {
  opacity: .6;
  cursor: not-allowed;
}

.bill-txns {
  flex-direction: column;
  list-style: none;
  display: flex;
}

.bill-txn {
  border-top: 1px solid var(--card-border);
  grid-template-columns: minmax(0, 1fr) auto auto 20px;
  align-items: center;
  gap: .6rem;
  padding: .6rem 0;
  display: grid;
}

.bill-txn:first-child {
  border-top: none;
  padding-top: 0;
}

.bill-txn__main {
  flex-direction: column;
  gap: .1rem;
  min-width: 0;
  display: flex;
}

.bill-txn__desc {
  color: var(--fg);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .83rem;
  overflow: hidden;
}

.bill-txn__date {
  color: var(--muted);
  font-size: .72rem;
}

.bill-txn__status {
  letter-spacing: .06em;
  text-transform: uppercase;
  background: rgba(var(--surface-tint), .08);
  color: var(--muted);
  border-radius: 999px;
  padding: .12rem .45rem;
  font-size: .6rem;
  font-weight: 700;
}

.bill-txn__status--paid {
  color: #16a34a;
  background: #22c55e24;
}

[data-theme="dark"] .bill-txn__status--paid {
  color: #4ade80;
}

.bill-txn__status--open {
  color: #d97706;
  background: #fbbf2429;
}

[data-theme="dark"] .bill-txn__status--open {
  color: #fbbf24;
}

.bill-txn__status--uncollectible {
  color: #dc2626;
  background: #ef444424;
}

[data-theme="dark"] .bill-txn__status--uncollectible {
  color: #f87171;
}

.bill-txn__amount {
  color: var(--text-strong);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  font-size: .83rem;
  font-weight: 600;
}

.bill-txn__link {
  width: 20px;
  height: 20px;
  color: var(--muted);
  justify-content: center;
  align-items: center;
  transition: color .15s;
  display: inline-flex;
}

.bill-txn__link:hover {
  color: var(--accent);
}

.bill-txn__link--empty {
  pointer-events: none;
}

.bill-empty {
  border: 1px solid var(--card-border);
  background: rgba(var(--surface-tint), .02);
  color: var(--muted);
  border-radius: 14px;
  flex-direction: column;
  align-items: flex-start;
  gap: .7rem;
  padding: 1.1rem 1.15rem;
  font-size: .83rem;
  display: flex;
}

.bill-empty--error {
  border-color: #ef444440;
}

.bill-empty__text {
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.55;
}

.bill-skeleton {
  background: linear-gradient(90deg, rgba(var(--surface-tint), .04), rgba(var(--surface-tint), .09), rgba(var(--surface-tint), .04));
  background-size: 200% 100%;
  border-radius: 14px;
  animation: 1.4s ease-in-out infinite billShimmer;
}

.bill-skeleton--card {
  height: 132px;
}

.bill-skeleton--rows {
  height: 190px;
}

@keyframes billShimmer {
  from {
    background-position: 200% 0;
  }

  to {
    background-position: -200% 0;
  }
}

@media (max-width: 520px) {
  .bill-txn {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "main amount"
                         "status link";
  }

  .bill-txn__main {
    grid-area: main;
  }

  .bill-txn__amount {
    text-align: right;
    grid-area: amount;
  }

  .bill-txn__status {
    grid-area: status;
    justify-self: start;
  }

  .bill-txn__link {
    grid-area: link;
    justify-self: end;
  }
}

.billing-page-shell {
  max-width: 720px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 2rem 2rem 4rem;
  position: relative;
}

.billing-page-glow {
  opacity: .1;
  filter: blur(130px);
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(circle, #2563eb4d, #3b82f626, #0000 70%);
  border-radius: 50%;
  width: 620px;
  height: 400px;
  position: fixed;
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
}

.billing-page-bar {
  border-bottom: 1px solid rgba(var(--surface-tint), .06);
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: 1.5rem 0 1rem;
  display: flex;
}

.billing-page-back {
  color: var(--muted);
  letter-spacing: .06em;
  text-transform: uppercase;
  align-items: center;
  gap: .4rem;
  padding: .5rem 0;
  font-size: .75rem;
  font-weight: 500;
  text-decoration: none;
  transition: color .2s;
  display: inline-flex;
}

.billing-page-back:hover {
  color: var(--fg);
}

.billing-page-title {
  letter-spacing: -.02em;
  font-size: 1.9rem;
  font-weight: 400;
}

@media (max-width: 900px) {
  body.lesson-active .app-container {
    gap: .35rem;
    height: 100dvh;
    max-height: 100dvh;
    padding: .5rem .75rem;
  }

  body.lesson-active .split-view {
    --lesson-chrome: 14rem;
    grid-template-rows: auto minmax(0, 1fr) auto;
    grid-template-columns: minmax(0, 1fr);
  }

  body.lesson-active .hint-panel {
    grid-area: 1 / 1;
    padding: .15rem .5rem 0;
    overflow: visible;
  }

  body.lesson-active .sign-prompt {
    padding-bottom: 0;
  }

  .sign-prompt-word {
    font-size: 2.4rem;
  }

  body.lesson-active .camera-column {
    grid-area: 2 / 1;
    gap: .6rem;
    padding: .4rem 0;
  }

  body.lesson-active .camera-pane {
    aspect-ratio: 3 / 4;
    max-width: min(100%, calc((100dvh - var(--lesson-chrome)) * 3 / 4));
  }

  body.lesson-active .learning-pane {
    grid-area: 3 / 1;
    padding: .25rem 0 .4rem;
  }

  body.lesson-active.learn-only-mode .split-view {
    --lesson-chrome: 22rem;
  }

  body.lesson-active.debug-info-on .split-view {
    --lesson-chrome: 25rem;
  }

  .debug-panel {
    max-height: 150px;
  }

  .learn-confirm-btn, body.learn-only-mode #start-btn {
    padding: .6rem 1.1rem;
    font-size: .72rem;
  }

  .sign-video-panel {
    gap: .55rem;
    padding: .8rem .85rem .75rem;
  }

  .sign-video-actions {
    flex-wrap: wrap;
    gap: .5rem;
  }

  .sign-video-btn {
    padding: .55rem .9rem;
    font-size: .7rem;
  }

  .lesson-summary-card {
    width: calc(100% - 1.5rem);
    max-height: calc(100dvh - 2rem);
    padding: 1.75rem 1.25rem 1.5rem;
    overflow-y: auto;
  }

  body.lesson-active .header-stat--account .header-stat-value, .lesson-route .header-stat--account .header-stat-value {
    display: none;
  }

  .lesson-route .lesson-route-back {
    white-space: nowrap;
    margin-left: .5rem;
    padding: .35rem .6rem;
    font-size: .7rem;
  }

  .lesson-route .header-stat {
    padding: .3rem;
  }

  .lesson-route .header-stat--account {
    padding: .3rem .4rem;
  }

  .lesson-route .lesson-header {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: .4rem;
  }

  .lesson-route .lesson-nav {
    gap: .15rem;
    min-width: 0;
  }

  .lesson-route .lesson-nav h3 {
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    font-size: .85rem;
    overflow: hidden;
  }

  .lesson-header .btn-outline {
    padding: .5rem .8rem;
    font-size: .68rem;
  }

  #lesson-progress {
    font-size: .8rem;
  }
}

@media (max-width: 560px) {
  .lesson-route .lesson-route-header .logo {
    display: none;
  }

  .lesson-route .lesson-route-back {
    margin-left: 0;
  }

  .sign-prompt-word {
    font-size: 2rem;
  }

  .lesson-route .level-progress-track {
    display: none;
  }

  .lesson-header .btn-outline {
    padding: .45rem .65rem;
  }

  .lesson-route .lesson-nav .btn-icon {
    width: 36px;
    height: 36px;
    font-size: 1.05rem;
  }

  .lesson-route #prev-unit-lesson-btn, .lesson-route #next-unit-lesson-btn {
    display: none;
  }
}

@media (max-width: 900px) and (orientation: landscape) and (max-height: 500px) {
  body.lesson-active .split-view {
    --lesson-chrome: 7rem;
    grid-template-rows: minmax(0, 1fr) auto;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  }

  body.lesson-active .hint-panel {
    grid-area: 1 / 2;
    padding: .5rem .75rem;
  }

  body.lesson-active .camera-column {
    grid-area: 1 / 1;
  }

  body.lesson-active .camera-pane {
    aspect-ratio: 4 / 3;
    max-width: min(100%, calc((100dvh - var(--lesson-chrome)) * 4 / 3));
  }

  body.lesson-active .learning-pane {
    grid-area: 2 / 1 / auto / -1;
  }
}

.sp-skeleton {
  background: rgba(var(--surface-tint), .06);
  border-radius: 8px;
  flex-shrink: 0;
  display: block;
  position: relative;
  overflow: hidden;
}

.sp-skeleton:after {
  content: "";
  background: linear-gradient(90deg, transparent, rgba(var(--surface-tint), .09), transparent);
  animation: 1.5s ease-in-out infinite sp-skeleton-sheen;
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
}

@keyframes sp-skeleton-sheen {
  100% {
    transform: translateX(100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sp-skeleton:after {
    animation: none;
  }
}

.sp-sr-only {
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  position: absolute;
  overflow: hidden;
}

.sp-skeleton-text {
  flex-direction: column;
  width: 100%;
  display: flex;
}

.sp-skeleton-stack {
  flex-direction: column;
  align-items: stretch;
  gap: .5rem;
  min-width: 0;
  display: flex;
}

.sp-skeleton-stack--head {
  gap: .7rem;
  padding: 1.5rem 0 0;
}

.sp-skeleton-stack--group {
  gap: 1rem;
  margin-top: 2rem;
}

.sp-skeleton-row {
  align-items: center;
  gap: .5rem;
  padding-top: .5rem;
  display: flex;
}

.sp-skeleton-chips {
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
  margin-top: 1.5rem;
  display: flex;
}

.sp-skeleton-chips--start {
  justify-content: flex-start;
  margin-top: 0;
}

.sp-skeleton-grid {
  grid-template-columns: repeat(auto-fill, minmax(var(--sp-skeleton-card-min, 260px), 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
  display: grid;
}

.sp-skeleton-grid--tight {
  --sp-skeleton-card-min: 170px;
  gap: .6rem;
  margin-top: 0;
}

.sp-skeleton-card {
  background: rgba(var(--surface-tint), .03);
  border: 1px solid rgba(var(--surface-tint), .06);
  border-radius: 16px;
  flex-direction: column;
  gap: .6rem;
  padding: 1.25rem 1.35rem;
  display: flex;
}

.sp-skeleton-card-foot {
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: .9rem;
  display: flex;
}

.sp-skeleton-classes-card {
  gap: 0;
}

.sp-skeleton-statbar {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  padding: 2rem 0;
  display: grid;
}

.sp-skeleton-stat {
  flex-direction: column;
  align-items: center;
  gap: .55rem;
  display: flex;
}

.sp-skeleton-panel {
  background: rgba(var(--surface-tint), .03);
  border: 1px solid rgba(var(--surface-tint), .06);
  border-radius: 16px;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 1.25rem 1.35rem;
  display: flex;
}

.sp-skeleton-rows {
  flex-direction: column;
  gap: .6rem;
  display: flex;
}

.sp-skeleton-split {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 1.25rem;
  display: grid;
}

.sp-skeleton-timeline {
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
  display: flex;
}

.sp-skeleton-timeline-entry {
  flex-direction: column;
  gap: .9rem;
  display: flex;
}

.sp-skeleton-center {
  text-align: center;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  min-height: 100vh;
  padding: 2rem;
  display: flex;
}

@media (max-width: 900px) {
  .sp-skeleton-split {
    grid-template-columns: minmax(0, 1fr);
  }

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

.app-sidenav__head {
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  display: flex;
}

.app-sidenav__logo {
  min-width: 0;
  overflow: hidden;
}

.app-sidenav__logo img.app-sidenav__logo-mark {
  border-radius: 8px;
  width: 32px;
  height: 32px;
  display: none;
}

.app-sidenav__collapse {
  width: 30px;
  height: 30px;
  color: var(--muted);
  cursor: pointer;
  background: none;
  border: 1px solid #0000;
  border-radius: 7px;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  transition: color .15s, background .15s, border-color .15s;
  display: none;
}

.app-sidenav__collapse:hover {
  background: rgba(var(--surface-tint), .05);
  color: var(--fg);
}

.app-sidenav__collapse:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.app-sidenav__collapse-chevron {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform .26s cubic-bezier(.16, 1, .3, 1);
}

.app-sidenav__item > span, .app-sidenav__join > span, .app-sidenav__invite > span, .app-sidenav__bug > span, .app-sidenav__signin > span, .app-sidenav__user-chip > span {
  white-space: nowrap;
  max-width: 12rem;
  transition: max-width .26s cubic-bezier(.16, 1, .3, 1), opacity .16s;
  display: block;
  overflow: hidden;
}

@media (min-width: 1025px) {
  .app-sidenav {
    transition: width .26s cubic-bezier(.16, 1, .3, 1);
  }

  .app-with-sidenav__content {
    transition: padding-left .26s cubic-bezier(.16, 1, .3, 1);
  }

  .app-sidenav__collapse {
    display: inline-flex;
  }

  [data-sidenav-collapsed="1"] .app-with-sidenav {
    --app-sidenav-w: 76px;
  }

  [data-sidenav-collapsed="1"] .app-sidenav__head {
    flex-direction: column;
    gap: .35rem;
  }

  [data-sidenav-collapsed="1"] .app-sidenav__logo {
    justify-content: center;
    padding-inline: 0;
  }

  [data-sidenav-collapsed="1"] .app-sidenav__logo-full {
    display: none;
  }

  [data-sidenav-collapsed="1"] .app-sidenav__logo img.app-sidenav__logo-mark {
    display: block;
  }

  [data-sidenav-collapsed="1"] .app-sidenav__collapse-chevron {
    transform: scaleX(-1);
  }

  [data-sidenav-collapsed="1"] .app-sidenav__item, [data-sidenav-collapsed="1"] .app-sidenav__join, [data-sidenav-collapsed="1"] .app-sidenav__invite, [data-sidenav-collapsed="1"] .app-sidenav__bug, [data-sidenav-collapsed="1"] .app-sidenav__signin, [data-sidenav-collapsed="1"] .app-sidenav__user-chip {
    justify-content: center;
    gap: 0;
    padding-inline: 0;
  }

  [data-sidenav-collapsed="1"] .app-sidenav__item > span, [data-sidenav-collapsed="1"] .app-sidenav__join > span, [data-sidenav-collapsed="1"] .app-sidenav__invite > span, [data-sidenav-collapsed="1"] .app-sidenav__bug > span, [data-sidenav-collapsed="1"] .app-sidenav__signin > span, [data-sidenav-collapsed="1"] .app-sidenav__user-chip > span {
    opacity: 0;
    max-width: 0;
  }

  [data-sidenav-collapsed="1"] .app-sidenav [data-nav-label] {
    position: relative;
  }

  [data-sidenav-collapsed="1"] .app-sidenav [data-nav-label]:after {
    content: attr(data-nav-label);
    z-index: 60;
    background: var(--surface-3);
    color: var(--text-strong);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    font-family: var(--font);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    border-radius: 7px;
    padding: .35rem .6rem;
    font-size: .78rem;
    font-weight: 500;
    transition: opacity .14s, transform .14s;
    position: absolute;
    top: 50%;
    left: calc(100% + 12px);
    transform: translateY(-50%)translateX(-4px);
  }

  [data-sidenav-collapsed="1"] .app-sidenav [data-nav-label]:hover:after, [data-sidenav-collapsed="1"] .app-sidenav [data-nav-label]:focus-visible:after {
    opacity: 1;
    transform: translateY(-50%)translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-sidenav, .app-with-sidenav__content, .app-sidenav__collapse-chevron, .app-sidenav__item > span, .app-sidenav__join > span, .app-sidenav__invite > span, .app-sidenav__bug > span, .app-sidenav__signin > span, .app-sidenav__user-chip > span {
    transition: none;
  }
}

/*# sourceMappingURL=app_9eb7c69e._.css.map*/