:root {
  --canvas: #f3f2ed;
  --bg: #f3f2ed;
  --paper: #fffefa;
  --ink: #17171b;
  --soft: #5b5666;
  --muted: #68686f;
  --line: #d7d6cf;
  --line-dark: #b7b6ae;
  --card: #fffefa;
  --violet: #5b4cf0;
  --violet-dark: #4036bd;
  --violet-soft: #ece9ff;
  --violet-2: #7a6cff;
  --amber: #ffd68d;
  --amber-soft: #fff0cd;
  --lime: #dffc7a;
  --white: #ffffff;
  --dark: #17181c;
  --dark-muted: #9a9aa3;
  --shadow: 0 24px 60px rgba(24, 24, 28, 0.12);
  --radius: 28px;
  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --ease: cubic-bezier(0.2, 0.75, 0.25, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(900px 600px at 0% 0%, #e6e1ff 0%, transparent 55%),
    radial-gradient(800px 500px at 100% 0%, #f7ecd8 0%, transparent 50%),
    var(--bg);
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-optical-sizing: auto;
}
a { color: var(--violet); text-decoration: none; }
button, input, textarea { font: inherit; }
h1, h2, h3, p { margin: 0; }

.admin-shell { min-height: 100vh; }
.admin-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.admin-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--violet), var(--violet-2));
  display: inline-block;
  flex: 0 0 auto;
}
.admin-nav { display: flex; gap: 8px; flex-wrap: wrap; }
.admin-nav a, .btn, .chip-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  transition: 0.15s ease;
  white-space: nowrap;
}
.admin-nav a.active, .btn.primary {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.btn.lime {
  background: var(--lime);
  border-color: transparent;
  font-weight: 700;
}
.btn.locked {
  background: #efefef;
  color: var(--muted);
  border-color: transparent;
  cursor: default;
}
.btn:hover, .admin-nav a:hover, .chip-btn:hover { transform: translateY(-1px); }
.admin-main { padding: 28px; max-width: 1200px; margin: 0 auto; }
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.panel + .panel { margin-top: 18px; }
.grid-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
}
.stat .label { color: var(--muted); font-size: 13px; font-weight: 600; }
.stat .value { font-size: 34px; font-weight: 800; margin-top: 8px; }
.form-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: end;
}
label { display: block; font-size: 13px; color: var(--soft); font-weight: 600; margin-bottom: 6px; }
input[type="text"], input[type="password"], textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  background: #fff;
  color: var(--ink);
  font-size: 16px; /* prevents iOS zoom */
}
textarea { min-height: 140px; resize: vertical; }
textarea.is-example {
  color: var(--muted);
  min-height: 180px;
}
textarea.is-example:focus {
  color: var(--ink);
}
.table-wrap { overflow: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; }
th, td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  font-size: 14px;
}
th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.muted { color: var(--muted); }
.company-link-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 620;
  word-break: break-all;
}
.company-link-input:focus {
  outline: 2px solid color-mix(in srgb, var(--violet) 35%, transparent);
  outline-offset: 1px;
}
.flash {
  margin-bottom: 16px;
  padding: 12px 16px;
  border-radius: 16px;
  background: #eef8d8;
  color: #35500f;
  font-weight: 600;
}
.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.login-card { width: min(420px, 100%); }

.catalog {
  max-width: 980px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}
.catalog-head { margin-bottom: 28px; text-align: center; }
.catalog-head .lead { margin-left: auto; margin-right: auto; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--soft);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.catalog h1 {
  font-size: clamp(30px, 6vw, 56px);
  line-height: 1.05;
  margin: 12px 0;
  letter-spacing: -0.03em;
}
body.no-copy {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
body.no-copy input,
body.no-copy textarea {
  -webkit-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}
.catalog-subtitle {
  display: block;
  margin-top: 0.12em;
  color: var(--violet);
  font-weight: 780;
}
.catalog .lead { color: var(--soft); font-size: clamp(16px, 2.4vw, 18px); max-width: 40rem; }
.section-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 8px 0 10px;
}
.course-section {
  margin-top: 24px;
  padding: 0;
  scroll-margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 254, 250, 0.72);
  box-shadow: 0 16px 40px rgba(24, 24, 28, 0.05);
  overflow: hidden;
}
.course-section.is-unlocked[open] {
  background: rgba(255, 254, 250, 0.92);
}
.section-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
  list-style: none;
  cursor: pointer;
}
.course-section.is-unlocked > .section-summary::-webkit-details-marker { display: none; }
.section-summary-copy { min-width: 0; }
.section-summary h2 {
  font-size: clamp(24px, 4vw, 34px);
  letter-spacing: -0.03em;
  margin: 8px 0;
}
.section-summary .lead {
  margin: 0;
  max-width: 36rem;
  color: var(--soft);
  font-size: 16px;
}
.section-chevron {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  position: relative;
}
.section-chevron::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 160ms ease;
}
.course-section.is-unlocked[open] .section-chevron::before {
  transform: rotate(225deg) translate(-2px, -2px);
}
.course-section .lesson-list {
  padding: 0 18px 18px;
  margin-top: 0;
}
.lesson-groups {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 16px 16px;
}
.lesson-group {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  scroll-margin-top: 18px;
}
.lesson-group-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  list-style: none;
  cursor: pointer;
}
.lesson-group-summary::-webkit-details-marker { display: none; }
.lesson-group-summary h3 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.lesson-group-summary p {
  margin: 4px 0 0;
  color: var(--soft);
  font-size: 14px;
}
.lesson-group-count {
  flex: 0 0 auto;
  min-width: 32px;
  height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f4f1ea;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.lesson-group .lesson-list {
  padding: 0 12px 12px;
}
.course-section.is-locked-section {
  opacity: 0.78;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: none;
}
.section-lock-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  max-width: 36rem;
}
.chip-btn.is-locked {
  opacity: 0.55;
}
.company-access-card + .company-access-card { margin-top: 18px; }
.company-access-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.company-access-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.section-access-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}
.section-access-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.section-access-item input {
  margin-top: 2px;
  flex: 0 0 auto;
}
.topic-access-section + .topic-access-section {
  margin-top: 16px;
}
.topic-access-section-title {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.topic-access-count {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 560;
}
.drip-access-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
}
.drip-access-row .drip-toggle {
  flex: 1 1 240px;
  min-width: 220px;
}
.drip-date-field {
  display: grid;
  gap: 6px;
  min-width: 180px;
}
.drip-date-field label {
  font-size: 12px;
  font-weight: 760;
  color: var(--muted);
}
.drip-date-field input[type="date"] {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  font: inherit;
}
.lesson-card.is-drip-locked .lesson-status {
  max-width: 9.5rem;
  white-space: normal;
  line-height: 1.2;
  text-align: right;
}
.lesson-group.is-locked-group {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 254, 250, 0.72);
}
.lesson-group.is-locked-group .lesson-group-summary {
  cursor: default;
}
.lesson-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 10px;
  margin-top: 0;
}
.lesson-card {
  display: flex;
  flex-direction: column;
  min-height: 148px;
  aspect-ratio: 1 / 1;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px;
  box-shadow: 0 8px 22px rgba(24, 24, 28, 0.05);
  color: inherit;
  transition: border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}
.lesson-card:hover {
  border-color: rgba(91, 77, 255, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(24, 24, 28, 0.1);
}
.lesson-card.is-locked {
  opacity: 0.68;
  box-shadow: none;
  background: rgba(255, 255, 255, 0.72);
}
.lesson-card.is-locked:hover {
  border-color: var(--line);
  transform: none;
  box-shadow: none;
}
.lesson-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 10px;
}
.lesson-num {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #ece8ff, #f7f3ff);
  color: var(--violet);
  font-weight: 850;
  font-size: 13px;
  letter-spacing: -0.03em;
}
.lesson-num.muted-num {
  background: #f0f0f0;
  color: var(--muted);
}
.lesson-status {
  display: inline-flex;
  align-items: center;
  padding: 4px 7px;
  border-radius: 999px;
  background: #efefef;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.lesson-status.is-open {
  background: var(--lime);
  color: var(--ink);
}
.lesson-card h2 {
  font-size: 14px;
  font-weight: 820;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.lesson-card p {
  color: var(--soft);
  margin-top: auto;
  padding-top: 8px;
  font-size: 11px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.deck-page {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--canvas);
}
.topbar {
  position: fixed;
  z-index: 100;
  inset: max(18px, env(safe-area-inset-top)) clamp(20px, 3vw, 48px) auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  pointer-events: none;
}
.lesson-label {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  pointer-events: auto;
}
.lesson-label::before {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 0 6px rgba(91, 76, 240, 0.1);
  content: "";
}
.lesson-label span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: min(48vw, 460px);
}
.deck-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  pointer-events: auto;
}
.chrome-button,
.nav-button {
  border: 1px solid var(--line);
  cursor: pointer;
  transition: transform 150ms, border-color 150ms, background 150ms, color 150ms, opacity 150ms;
}
.chrome-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 254, 250, 0.84);
  box-shadow: 0 7px 28px rgba(24, 24, 28, 0.06);
  backdrop-filter: blur(12px);
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
}
.chrome-button:hover,
.nav-button:hover {
  border-color: var(--line-dark);
  background-color: var(--paper);
  color: var(--ink);
}
.deck {
  position: relative;
  width: 100%;
  min-height: 100%;
  height: 100dvh;
  isolation: isolate;
  overflow: hidden;
  margin: 0;
  background:
    radial-gradient(circle at 7% 95%, rgba(91, 76, 240, 0.12), transparent 28%),
    radial-gradient(circle at 96% 2%, rgba(255, 214, 141, 0.35), transparent 26%),
    var(--canvas);
}
.stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(24px, 0, 0);
  transition: opacity 280ms ease, transform 420ms var(--ease);
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.slide.is-on {
  z-index: 2;
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, 0, 0);
}
.slide-shell {
  width: min(1500px, 100%);
  min-height: 100%;
  margin: 0 auto;
  padding:
    clamp(90px, 11vh, 128px)
    clamp(36px, 6vw, 100px)
    clamp(110px, 13vh, 138px);
}
.cover-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.92fr);
  align-items: center;
  gap: clamp(48px, 6vw, 100px);
}
.collaboration-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(46px, 5.5vw, 90px);
}
.voice-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(610px, 1.18fr);
  align-items: center;
  gap: clamp(46px, 5.5vw, 90px);
}
.prompt-layout,
.homework-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.76fr) minmax(0, 1.24fr);
  align-items: center;
  gap: clamp(42px, 5vw, 80px);
}
.homework-layout {
  align-items: stretch;
}
.homework-layout > .collaboration-copy {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  min-width: 0;
}
.homework-layout > .collaboration-copy h2 {
  margin-top: 36px;
}
.homework-layout .homework-brief {
  margin-top: auto;
}
.homework-layout .hw-card {
  align-self: end;
  width: 100%;
  min-width: 0;
  height: fit-content;
}
.cover-copy,
.collaboration-copy,
.voice-copy { position: relative; z-index: 2; min-width: 0; }
.collaboration-copy .lead,
.voice-copy .lead { max-width: 650px; }
.collaboration-copy h2,
.voice-copy h2 {
  max-width: 100%;
  font-size: clamp(42px, 4.55vw, 72px);
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}
.slide .eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  color: var(--violet-dark);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  justify-content: flex-start;
}
.slide .eyebrow::before {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--violet);
  content: "";
}
.slide h1 {
  max-width: 1100px;
  margin-bottom: 28px;
  font-size: clamp(56px, 6.8vw, 108px);
  font-weight: 850;
  line-height: 0.98;
  letter-spacing: -0.045em;
}
.slide h2 {
  max-width: 980px;
  margin-bottom: 22px;
  font-size: clamp(40px, 4.8vw, 76px);
  font-weight: 830;
  line-height: 1.02;
  letter-spacing: -0.04em;
}
.slide h1 em, .slide h2 em,
.slide h1 span, .slide h2 span {
  font-style: normal;
  color: var(--violet);
}
.slide .lead {
  max-width: 850px;
  color: var(--muted);
  font-size: clamp(18px, 1.55vw, 26px);
  line-height: 1.4;
  font-weight: 500;
}
.control-note {
  margin-top: 24px;
  padding: 18px 20px;
  border: 1px solid rgb(232, 199, 133);
  border-radius: 22px;
  background: var(--amber-soft);
  color: rgb(93, 69, 29);
  font-size: 15px;
  line-height: 1.45;
  max-width: 610px;
}
.control-note strong {
  display: block;
  margin-bottom: 5px;
  color: var(--ink);
  font-size: 17px;
}
.collaboration-path,
.compare-stack {
  display: grid;
  gap: 14px;
}
.role-card {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  min-height: 142px;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 254, 250, 0.88);
  box-shadow: 0 16px 44px rgba(24, 24, 28, 0.06);
}
.role-card.ai {
  border-color: rgba(91, 76, 240, 0.35);
  background: var(--violet-soft);
  transform: translateX(26px);
}
.role-number {
  display: grid;
  width: 66px;
  height: 66px;
  place-items: center;
  border-radius: 20px;
  color: var(--violet-dark);
  background: var(--paper);
  font-size: 18px;
  font-weight: 850;
  text-align: center;
  line-height: 1.05;
  padding: 4px;
  overflow: hidden;
  word-break: break-word;
}
.role-card.ai .role-number {
  color: var(--white);
  background: var(--violet);
}
.role-copy strong {
  display: block;
  margin-bottom: 5px;
  font-size: 24px;
  letter-spacing: -0.025em;
  font-weight: 820;
}
.role-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.38;
  font-weight: 500;
}
.role-owner {
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.reflection-card {
  margin-top: 26px;
  padding: 19px 20px;
  border: 1px solid rgba(91, 76, 240, 0.24);
  border-radius: 22px;
  background: rgba(236, 233, 255, 0.72);
  max-width: 610px;
}
.reflection-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}
.reflection-card-head strong {
  font-size: 15px;
  font-weight: 820;
}
.reflection-text {
  margin: 0;
  color: rgb(75, 71, 95);
  font-size: 14px;
  line-height: 1.45;
}
.reflection-questions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.reflection-questions li {
  padding: 10px 11px;
  border-radius: 13px;
  color: rgb(75, 71, 95);
  background: rgba(255, 254, 250, 0.8);
  font-size: 12px;
  line-height: 1.35;
}
.voice-workflow {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255, 254, 250, 0.92);
  box-shadow: var(--shadow);
}
.voice-recorder {
  padding: 24px 26px 22px;
  color: var(--white);
  background:
    radial-gradient(circle at 88% 18%, rgba(223, 252, 122, 0.18), transparent 30%),
    var(--dark);
}
.recorder-top,
.recorder-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.recorder-top {
  color: var(--dark-muted);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.recording-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  border-radius: 999px;
  color: rgb(255, 217, 217);
  background: rgba(255, 96, 96, 0.13);
  letter-spacing: 0;
  text-transform: none;
  font-size: 11px;
  font-weight: 700;
}
.recording-badge::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgb(255, 104, 104);
  content: "";
}
.waveform {
  height: 86px;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 16px 0 13px;
}
.waveform span {
  width: 100%;
  height: var(--wave-height);
  min-height: 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--lime), #95cfff);
  opacity: 0.92;
}
.recorder-meta {
  color: var(--dark-muted);
  font-size: 13px;
  font-weight: 560;
}
.voice-route {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}
.voice-route.stacked {
  grid-template-columns: 1fr;
}
.voice-route li {
  min-height: 142px;
  padding: 20px 18px;
  border-right: 1px solid var(--line);
}
.voice-route.stacked li {
  min-height: auto;
  border-right: 0;
  border-bottom: 1px solid var(--line);
}
.voice-route li:last-child,
.voice-route.stacked li:last-child {
  border-right: 0;
  border-bottom: 0;
}
.voice-route b {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 12px;
  background: var(--violet-soft);
  color: var(--violet-dark);
  font-size: 13px;
  font-weight: 850;
}
.voice-route strong {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.voice-route p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}
.compare-card,
.hw-card {
  background: rgba(255, 254, 250, 0.96);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 22px 24px;
  box-shadow: var(--shadow);
}
.compare-card.accent {
  background: var(--violet-soft);
  border-color: rgba(91, 76, 240, 0.28);
}
.badge {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--violet-soft);
  color: var(--violet-dark);
  font-size: 12px;
  font-weight: 820;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.quote {
  white-space: pre-wrap;
  font-size: clamp(18px, 1.65vw, 26px);
  line-height: 1.4;
  color: var(--ink);
  margin-top: 14px;
}
.bad-prompt {
  margin-top: 22px;
  padding: 16px 18px;
  border-left: 4px solid var(--line-dark);
  border-radius: 0 15px 15px 0;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.48);
  font-size: 15px;
  max-width: 610px;
}
.prompt-card {
  overflow: hidden;
  border: 1px solid rgba(91, 76, 240, 0.32);
  border-radius: 30px;
  background: var(--paper);
  box-shadow: var(--shadow);
  padding: 0;
}
.prompt-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  color: var(--violet-dark);
  background: var(--violet-soft);
  font-size: 13px;
  font-weight: 830;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.prompt-text {
  margin: 0;
  padding: 28px 30px 26px;
  white-space: pre-wrap;
  font-size: clamp(15px, 1.12vw, 18px);
  line-height: 1.58;
}
.checklist {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.checklist li {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(236, 233, 255, 0.7);
  color: var(--soft);
  font-size: clamp(15px, 1.15vw, 18px);
}
.homework-brief,
.answer-example {
  margin-top: 18px;
  width: 100%;
  max-width: 520px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 254, 250, 0.92);
  box-sizing: border-box;
  box-shadow: 0 10px 28px rgba(24, 24, 28, 0.04);
}
.homework-brief > strong,
.answer-example > strong {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.homework-brief .checklist {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.homework-brief .checklist li {
  width: auto;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
}
.answer-example {
  border-color: rgba(215, 214, 207, 0.95);
  background: rgba(255, 252, 245, 0.9);
}
.answer-example > strong {
  color: var(--muted);
}
.answer-example p {
  margin: 0;
  white-space: pre-wrap;
  color: var(--soft);
  font-size: 15px;
  line-height: 1.45;
}
.term-visual {
  position: relative;
  min-width: 0;
  min-height: 420px;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 18px;
  padding: 36px 34px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background:
    radial-gradient(circle at 88% 12%, rgba(223, 252, 122, 0.55), transparent 42%),
    rgba(255, 254, 250, 0.94);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.term-badge {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--violet-soft);
  color: var(--violet-dark);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.term-word {
  max-width: 100%;
  width: 100%;
  font-size: clamp(28px, 3.4vw, 56px);
  font-weight: 850;
  letter-spacing: -0.04em;
  line-height: 1.08;
  color: var(--ink);
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}
.term-aside {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  font-weight: 600;
}
.definition-card,
.story-card {
  position: relative;
  z-index: 1;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255, 254, 250, 0.96);
  box-shadow: var(--shadow);
}
.definition-card-head,
.story-card-head {
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  background: var(--violet-soft);
  color: var(--violet-dark);
  font-size: 13px;
  font-weight: 830;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.definition-text,
.story-text {
  margin: 0;
  padding: 26px 28px;
  white-space: pre-wrap;
  font-size: clamp(18px, 1.45vw, 24px);
  line-height: 1.45;
  font-weight: 560;
}
.definition-term {
  display: inline;
  margin: 0 0.06em 0 0;
  padding: 0.06em 0.28em 0.1em;
  color: var(--ink);
  font-weight: 850;
  letter-spacing: -0.03em;
  /* заливка как на первом слайде: мягкий lime */
  background: color-mix(in srgb, var(--lime) 82%, #fff);
  border-radius: 0.45em 0.7em 0.55em 0.35em;
  box-shadow: inset 0 -0.12em 0 color-mix(in srgb, var(--lime) 65%, #c6e04a);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.definition-examples {
  margin: 0 22px 18px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.definition-examples li {
  position: relative;
  padding: 11px 14px 11px 36px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(215, 214, 207, 0.8);
  color: var(--ink);
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.35;
  font-weight: 600;
}
.definition-examples li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--violet);
  transform: translateY(-50%);
}
.milestone-map {
  position: relative;
  list-style: none;
  margin: 8px 22px 4px;
  padding: 6px 0 2px;
}
.milestone-map::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 18px;
  bottom: 18px;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--violet) 0%, var(--lime) 100%);
}
.milestone-map li {
  position: relative;
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 8px 12px;
  align-items: center;
  padding: 9px 0 9px 30px;
}
.milestone-map li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--violet);
  box-shadow: 0 0 0 4px var(--violet-soft);
}
.milestone-map li:last-child::before {
  background: var(--lime);
  border-color: var(--violet-dark);
}
.milestone-year {
  font-size: 18px;
  font-weight: 850;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.milestone-label {
  font-size: 16px;
  font-weight: 620;
  line-height: 1.3;
  color: var(--soft);
}
.voice-layout:has(.milestone-map) {
  grid-template-columns: minmax(0, 0.72fr) minmax(320px, 1fr);
  align-items: center;
}
.milestone-map.is-compact {
  margin: 0;
  padding: 2px 0;
}
.milestone-map.is-compact::before {
  top: 14px;
  bottom: 14px;
}
.milestone-map.is-compact li {
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 6px 12px;
  padding: 7px 0 7px 26px;
}
.milestone-map.is-compact li::before {
  width: 10px;
  height: 10px;
  margin-top: -5px;
  box-shadow: 0 0 0 3px var(--violet-soft);
}
.milestone-map.is-compact .milestone-year {
  font-size: 15px;
}
.milestone-map.is-compact .milestone-label {
  font-size: 14px;
  line-height: 1.35;
}
.level-stack {
  list-style: none;
  margin: 16px 18px 18px;
  padding: 0;
  display: grid;
  gap: 10px;
}
.level-card {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}
.level-card.is-now {
  border-color: color-mix(in srgb, #c6e04a 55%, var(--line));
  background: linear-gradient(180deg, color-mix(in srgb, var(--lime) 34%, #fff) 0%, #fff 72%);
}
.level-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--violet-soft);
  color: var(--violet-dark);
}
.level-step b {
  font-size: 15px;
  font-weight: 850;
  letter-spacing: -0.04em;
  line-height: 1;
}
.level-card.is-now .level-step {
  background: var(--lime);
  color: #24360a;
}
.level-meter {
  display: flex;
  gap: 3px;
}
.level-meter i {
  width: 8px;
  height: 4px;
  border-radius: 99px;
  background: rgba(64, 54, 189, 0.22);
}
.level-meter i.is-on { background: var(--violet-dark); }
.level-card.is-now .level-meter i { background: rgba(36, 54, 10, 0.22); }
.level-card.is-now .level-meter i.is-on { background: #24360a; }
.level-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.level-head strong {
  font-size: 16px;
  letter-spacing: -0.03em;
}
.level-status {
  flex: 0 0 auto;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(243, 242, 237, 0.95);
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.01em;
}
.level-card.is-now .level-status {
  background: #24360a;
  color: var(--lime);
}
.level-body p {
  margin: 4px 0 0;
  color: var(--soft);
  font-size: 14px;
  line-height: 1.35;
  font-weight: 560;
}
.definition-card .checklist {
  margin: 0 22px 22px;
}
.definition-card .definition-text {
  padding-bottom: 18px;
}
.definition-card .checklist li {
  background: rgba(243, 242, 237, 0.9);
  color: var(--soft);
  font-size: 14px;
}
.definition-card .checklist li.has-fold {
  padding: 0;
  background: transparent;
}
.term-fold {
  border-radius: 14px;
  background: rgba(243, 242, 237, 0.9);
}
.term-fold summary {
  position: relative;
  padding: 12px 36px 12px 14px;
  cursor: pointer;
  list-style: none;
  color: var(--soft);
  font-size: 14px;
}
.term-fold summary::-webkit-details-marker { display: none; }
.term-fold summary::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 18px;
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(45deg);
}
.term-fold[open] summary::after {
  transform: translateY(3px) rotate(225deg);
}
.term-fold p {
  margin: 0;
  padding: 0 14px 12px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.4;
  font-weight: 560;
}
.contrast-stack {
  display: grid;
  gap: 12px;
}
.contrast-stack.has-images {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}
.contrast-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 254, 250, 0.96);
  box-shadow: 0 12px 32px rgba(24, 24, 28, 0.05);
}
.contrast-card.has-image {
  display: flex;
  flex-direction: column;
  border: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}
.contrast-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px 0;
}
.contrast-mark {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 850;
  line-height: 1;
}
.contrast-card.is-bad .contrast-mark {
  color: #fff;
  background: #d4553d;
}
.contrast-card.is-bad .contrast-mark::before { content: "✕"; }
.contrast-card.is-good .contrast-mark {
  color: #24360a;
  background: var(--lime);
}
.contrast-card.is-good .contrast-mark::before { content: "✓"; }
.contrast-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  border-radius: 22px;
  background: #efece4;
  box-shadow: 0 14px 34px rgba(24, 24, 28, 0.1);
}
.contrast-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.contrast-card.has-image .contrast-mark {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 34px;
  height: 34px;
  font-size: 15px;
  box-shadow: 0 8px 18px rgba(24, 24, 28, 0.18);
}
.contrast-text {
  margin: 0;
  padding: 12px 20px 20px;
  white-space: pre-wrap;
  color: var(--ink);
  font-size: clamp(16px, 1.25vw, 20px);
  line-height: 1.45;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.contrast-card.has-image .contrast-text {
  padding: 12px 4px 0;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.4;
  font-weight: 560;
  letter-spacing: -0.01em;
}
.ai-types-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.ai-type-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 254, 250, 0.96);
  box-shadow: 0 10px 28px rgba(24, 24, 28, 0.05);
}
.ai-type-num {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--violet-soft);
  color: var(--violet-dark);
  font-size: 14px;
  font-weight: 850;
}
.ai-type-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 17px;
  letter-spacing: -0.02em;
}
.ai-type-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}
.ai-logo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.ai-logo-card {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 64px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 254, 250, 0.96);
  box-shadow: 0 10px 28px rgba(24, 24, 28, 0.05);
}
.ai-logo-card.needs-vpn {
  border-color: color-mix(in srgb, #e35b3b 28%, var(--line));
  background:
    linear-gradient(135deg, color-mix(in srgb, #ffe4dc 70%, #fff) 0%, rgba(255, 254, 250, 0.96) 48%);
}
.ai-logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: block;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(24, 24, 28, 0.08);
}
.ai-logo-card strong {
  font-size: 15px;
  letter-spacing: -0.02em;
  line-height: 1.2;
  padding-right: 42px;
}
.ai-vpn-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: #e35b3b;
  color: #fff;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.06em;
}
.ai-chat-stack {
  display: grid;
  gap: 12px;
  min-width: 0;
}
.ai-chat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 12px 12px 14px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(236, 233, 255, 0.45), rgba(255, 254, 250, 0.96) 42px);
  box-shadow: 0 14px 36px rgba(24, 24, 28, 0.06);
}
.ai-chat.is-warn {
  background:
    linear-gradient(180deg, rgba(255, 240, 205, 0.7), rgba(255, 254, 250, 0.96) 42px);
}
.ai-chat-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding: 0 4px 4px;
  color: var(--violet-dark);
  font-size: 12px;
  font-weight: 780;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.ai-chat.is-warn .ai-chat-bar { color: rgb(110, 84, 40); }
.ai-chat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7bc144;
  box-shadow: 0 0 0 3px rgba(123, 193, 68, 0.2);
}
.ai-chat-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-width: 92%;
}
.ai-chat-row.is-user {
  align-self: flex-end;
  align-items: flex-end;
}
.ai-chat-row.is-ai {
  align-self: flex-start;
  align-items: flex-start;
}
.ai-chat-who {
  padding: 0 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.ai-chat-row p {
  margin: 0;
  padding: 9px 12px;
  border-radius: 16px;
  white-space: pre-wrap;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 560;
}
.ai-chat-row.is-user p {
  background: var(--violet);
  color: #fff;
  border-bottom-right-radius: 5px;
}
.ai-chat-row.is-ai p {
  background: #fff;
  color: var(--ink);
  border: 1px solid rgba(215, 214, 207, 0.9);
  border-bottom-left-radius: 5px;
}
.story-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}
.story-col {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 254, 250, 0.96);
  box-shadow: 0 14px 36px rgba(24, 24, 28, 0.06);
}
.story-col.is-warn {
  border-color: rgba(215, 214, 207, 0.95);
  background: rgba(255, 252, 245, 0.92);
}
.story-col-head {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(236, 233, 255, 0.55);
  color: var(--violet-dark);
  font-size: 13px;
  font-weight: 830;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.story-col.is-warn .story-col-head {
  background: rgba(255, 248, 232, 0.8);
  color: rgb(110, 84, 40);
}
.story-col ul {
  margin: 0;
  padding: 16px 18px 18px;
  list-style: none;
  display: grid;
  gap: 10px;
}
.story-col li {
  position: relative;
  padding: 10px 12px 10px 34px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--soft);
  font-size: 15px;
  line-height: 1.35;
  font-weight: 560;
}
.story-col li::before {
  content: "+";
  position: absolute;
  left: 12px;
  top: 10px;
  width: 16px;
  color: var(--violet);
  font-weight: 850;
}
.story-col.is-warn li::before {
  content: "–";
  color: rgb(160, 110, 40);
}
.story-takeaway {
  margin-top: 22px;
  max-width: 610px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 254, 250, 0.88);
  color: var(--soft);
  font-size: 15px;
  line-height: 1.45;
}
.story-takeaway strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 16px;
}
.hw-card h3 { font-size: clamp(24px, 2.1vw, 32px); font-weight: 830; letter-spacing: -0.03em; }
.hw-card .muted { margin-top: 8px; font-size: 16px; }
.hw-form { display: grid; gap: 12px; margin-top: 18px; }
.hw-form textarea {
  min-height: 180px;
  line-height: 1.45;
}
.next-lesson-chip {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 254, 250, 0.9);
  color: var(--violet-dark);
  box-shadow: 0 7px 28px rgba(24, 24, 28, 0.06);
  backdrop-filter: blur(12px);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.next-lesson-chip[hidden] { display: none !important; }
.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}
.hw-ok {
  display: none;
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #eef8d8;
  color: #35500f;
  font-weight: 700;
}
.hw-ok.show { display: block; }
.hw-done {
  display: grid;
  justify-items: start;
  gap: 10px;
  padding: 8px 2px 4px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 280ms var(--ease), transform 360ms var(--ease);
}
.hw-done[hidden] { display: none !important; }
.hw-done.is-in {
  opacity: 1;
  transform: translateY(0);
}
.hw-done-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: var(--lime);
  color: #24360a;
  font-size: 24px;
  font-weight: 850;
  box-shadow: 0 10px 28px rgba(24, 24, 28, 0.08);
}
.hw-done-kicker {
  margin: 4px 0 0;
  color: var(--violet-dark);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hw-done h3 {
  margin: 0;
  font-size: clamp(26px, 2.4vw, 34px);
  letter-spacing: -0.04em;
  line-height: 1.1;
}
.hw-done-lead {
  margin: 0 0 8px;
  max-width: 34ch;
  color: var(--soft);
  font-size: 15px;
  line-height: 1.45;
  font-weight: 560;
}
.hw-done .btn {
  margin-top: 4px;
}

.writer-visual {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
}
.writer-halo {
  position: absolute;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(223, 252, 122, 0.55), transparent 68%);
  filter: blur(8px);
}
.editor-window {
  position: relative;
  z-index: 2;
  width: min(560px, 96%);
  min-height: 400px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255, 254, 250, 0.96);
  box-shadow: var(--shadow);
  transform: rotate(1.5deg);
}
.editor-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.window-dots { display: inline-flex; gap: 6px; }
.window-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ddd;
  display: block;
}
.window-dots i:nth-child(1) { background: #ff7b72; }
.window-dots i:nth-child(2) { background: #ffd36b; }
.window-dots i:nth-child(3) { background: #74d67e; }
.draft-body { padding: 22px 24px 28px; }
.draft-kicker {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--violet-soft);
  color: var(--violet-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.draft-title {
  font-size: clamp(24px, 2.3vw, 34px);
  font-weight: 830;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
  line-height: 1.12;
}
.draft-line {
  height: 10px;
  border-radius: 999px;
  background: #ebe9e2;
  margin-bottom: 10px;
}
.draft-line.medium { width: 78%; }
.draft-line.short { width: 52%; }
.draft-signature {
  margin-top: 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}
.notes-badge {
  position: absolute;
  z-index: 3;
  right: -10px;
  bottom: 36px;
  width: 178px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 20px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 18px 46px rgba(24, 24, 28, 0.16);
  transform: rotate(-8deg);
  text-align: center;
}
.notes-badge strong {
  display: block;
  font-size: 26px;
  font-weight: 850;
  letter-spacing: -0.05em;
  line-height: 1;
}
.notes-badge span {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 720;
  line-height: 1.25;
}

.bottom-nav {
  position: fixed;
  z-index: 100;
  right: clamp(20px, 3vw, 48px);
  bottom: max(18px, env(safe-area-inset-bottom));
  left: clamp(20px, 3vw, 48px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  pointer-events: none;
}
.nav-side {
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: auto;
}
.nav-side-end { justify-content: flex-end; }
.nav-button {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255, 254, 250, 0.86);
  box-shadow: 0 9px 30px rgba(24, 24, 28, 0.08);
  backdrop-filter: blur(12px);
  font-size: 24px;
  line-height: 1;
  padding: 0;
}
.nav-button:disabled { cursor: default; opacity: 0.32; }
.nav-button[hidden] { display: none !important; }
.slide-counter,
.keyboard-hint {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}
.dots {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 254, 250, 0.84);
  box-shadow: 0 12px 36px rgba(24, 24, 28, 0.08);
  backdrop-filter: blur(14px);
  pointer-events: auto;
}
.dots button {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  background: rgb(184, 183, 176);
  padding: 0;
  cursor: pointer;
  transition: width 150ms, background 150ms;
}
.dots button.active {
  width: 28px;
  background: var(--violet);
}

body.is-fs .deck {
  position: fixed;
  inset: 0;
  margin: 0;
  border-radius: 0;
  z-index: 50;
}

@media (max-width: 1180px) {
  .cover-layout,
  .collaboration-layout,
  .prompt-layout,
  .voice-layout,
  .homework-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 36px;
  }
  .role-card.ai { transform: none; }
}

@media (max-width: 900px) {
  .grid-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lesson-list {
    grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
    gap: 8px;
  }
  .lesson-card {
    min-height: 0;
    padding: 10px;
    border-radius: 16px;
  }
  .lesson-num {
    width: 32px;
    height: 32px;
    font-size: 12px;
    border-radius: 10px;
  }
  .lesson-card h2 { font-size: 13px; }
  .lesson-card p { font-size: 10px; }
  .catalog {
    width: 86%;
    max-width: 86%;
    margin-inline: auto;
    padding: 28px 0 72px;
  }
  .catalog-head { text-align: left; }
  .catalog-head .lead { margin-left: 0; }
  .course-section { margin-top: 18px; }
  .course-section .lesson-list { padding: 0 12px 14px; }
  .section-summary {
    padding: 18px 16px;
    align-items: flex-start;
  }
  .section-summary h2 { font-size: clamp(22px, 7vw, 28px); }
  .section-nav { justify-content: flex-start; }
  .term-visual {
    min-height: auto;
    padding: 24px 20px;
    margin-top: 8px;
  }
  .definition-text,
  .story-text {
    padding: 20px 18px;
    font-size: 16px;
  }
  .story-compare {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .contrast-stack.has-images {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .contrast-media {
    border-radius: 18px;
  }
  .ai-logo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .ai-logo-card {
    min-height: 58px;
    padding: 10px 12px;
    border-radius: 16px;
  }
  .ai-logo-card strong {
    font-size: 13px;
    padding-right: 36px;
  }
  .ai-vpn-badge {
    top: 8px;
    right: 8px;
    min-width: 34px;
    height: 20px;
    font-size: 9px;
  }
  .slide-shell,
  .cover-layout,
  .collaboration-layout,
  .prompt-layout,
  .voice-layout,
  .homework-layout { display: block; }
  .slide-shell {
    width: 86%;
    margin-inline: auto;
    padding: 105px 0 118px;
  }
  .topbar {
    inset: max(16px, env(safe-area-inset-top)) 7% auto;
  }
  .bottom-nav {
    left: 7%;
    right: 7%;
  }
  .cover-copy,
  .collaboration-copy,
  .voice-copy,
  .prompt-layout > div:first-child,
  .homework-layout > div:first-child { margin-bottom: 34px; }
  .slide h1 { font-size: clamp(48px, 11vw, 78px); margin-bottom: 18px; }
  .slide h2,
  .collaboration-copy h2,
  .voice-copy h2 { font-size: clamp(36px, 9vw, 58px); margin-bottom: 16px; }
  .slide .lead { font-size: 18px; }
  .writer-visual { min-height: 390px; }
  .editor-window {
    width: calc(100% - 12px);
    min-height: 320px;
    border-radius: 22px;
    transform: rotate(0.8deg);
  }
  .notes-badge {
    right: -2px;
    bottom: 16px;
    width: 132px;
  }
  .notes-badge strong { font-size: 20px; }
  .role-card {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 14px;
    min-height: auto;
    padding: 18px;
    border-radius: 20px;
  }
  .role-owner { display: none; }
  .role-number { width: 48px; height: 48px; border-radius: 15px; font-size: 14px; }
  .role-copy strong { font-size: 20px; }
  .role-copy p { font-size: 14px; }
  .voice-route,
  .reflection-questions { grid-template-columns: 1fr; }
  .voice-route li {
    min-height: auto;
    padding: 16px 18px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .voice-route li:last-child { border-bottom: 0; }
  .hide-mobile { display: none !important; }
  .topbar { flex-wrap: wrap; }
  .deck-actions { width: 100%; }
  .bottom-nav {
    bottom: max(14px, env(safe-area-inset-bottom));
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px;
  }
  .slide-counter,
  .keyboard-hint { display: none; }
  .nav-side {
    gap: 0;
    min-width: 0;
  }
  .nav-side-end { justify-content: flex-end; }
  .admin-top { padding: 14px 16px; flex-direction: column; align-items: flex-start; }
  .admin-main {
    width: 86%;
    max-width: 86%;
    margin-inline: auto;
    padding: 16px 0;
  }
}

@media (max-width: 560px) {
  .grid-stats { grid-template-columns: 1fr; }
  .lesson-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .catalog,
  .slide-shell,
  .admin-main {
    width: 86%;
    max-width: 86%;
  }
  .slide-shell { padding: 92px 0 116px; }
  .slide h1 { font-size: clamp(42px, 13vw, 64px); }
  .slide h2,
  .collaboration-copy h2,
  .voice-copy h2 { font-size: clamp(32px, 10vw, 48px); }
  .nav-button { width: 44px; height: 44px; font-size: 20px; }
  .dots { gap: 10px; padding: 12px 14px; justify-self: center; }
  .dots button.active { width: 22px; }
  .waveform { gap: 4px; }
}

@media (max-height: 720px) and (min-width: 901px) {
  .slide-shell { padding-top: 82px; padding-bottom: 88px; }
  .slide h1 { font-size: clamp(52px, 5.8vw, 88px); }
  .slide h2 { font-size: clamp(36px, 4.2vw, 64px); }
  .writer-visual { min-height: 420px; }
}

@media (hover: none) {
  .btn:hover, .admin-nav a:hover, .chip-btn:hover,
  .chrome-button:hover, .nav-button:hover { transform: none; }
}

@media (min-width: 901px) {
  .cover-copy h1 {
    max-width: 100%;
    font-size: clamp(40px, 4.6vw, 64px);
    line-height: 1.04;
    overflow-wrap: anywhere;
  }
}
