:root {
  font-family: Inter, Arial, sans-serif;
  color: #243b33;
  background: #f8f8f4;
  font-synthesis: none;
  --green: #285b48;
  --muted: #68766e;
  --line: #dce2db;
  --paper: #fff;
  --soft: #edf2ea;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button,
a {
  touch-action: manipulation;
}
button {
  min-height: 44px;
  cursor: pointer;
  background: var(--green);
  color: white;
  border: 1px solid transparent;
  border-radius: 5px;
  padding: 11px 17px;
  font-size: 13px;
  font-weight: 600;
  transition:
    background 0.15s,
    transform 0.15s;
}
button:hover {
  background: #183e30;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.secondary {
  background: transparent;
  color: var(--green);
  border-color: var(--line);
}
.secondary:hover {
  background: var(--soft);
}
.quiet {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 8px;
}
.danger {
  color: #a14234;
}
a {
  color: var(--green);
  text-underline-offset: 4px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 42px;
  letter-spacing: -1.3px;
  margin-bottom: 14px;
}
h2 {
  font-size: 19px;
  font-weight: 500;
  margin-bottom: 18px;
}
h3 {
  font-size: 15px;
  margin-bottom: 12px;
}
p {
  line-height: 1.65;
  font-size: 14px;
}
small,
.muted {
  color: var(--muted);
}
small {
  font-size: 12px;
  line-height: 1.6;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 1.7px;
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 15px;
}
.shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}
.sidebar {
  padding: 34px 24px;
  border-right: 1px solid var(--line);
  background: #f0f2ec;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand {
  font-family: Georgia, serif;
  font-size: 29px;
  letter-spacing: -1px;
  text-decoration: none;
  color: #234739;
}
.brand i {
  font-style: normal;
  color: #739a74;
}
.sidebar .eyebrow {
  margin-top: 8px;
  font-size: 9px;
}
.project-name {
  font-size: 13px;
  padding: 32px 0 20px;
  margin: 0;
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.nav button {
  text-align: left;
  background: transparent;
  color: #617169;
  font-weight: 400;
  padding: 12px;
  font-size: 13px;
}
.nav button.active {
  background: #dfe8db;
  color: #214834;
  font-weight: 600;
}
.nav button:hover {
  background: #e5eae2;
}
.nav .num {
  opacity: 0.5;
  margin-right: 14px;
  font-size: 10px;
}
.sidebar-footer {
  margin-top: auto;
  padding-top: 28px;
  font-size: 11px;
  line-height: 1.8;
  color: var(--muted);
}
.workspace {
  min-width: 0;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 42px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  background: #fbfbf8;
}
.dot {
  height: 7px;
  width: 7px;
  border-radius: 50%;
  background: #668569;
  display: inline-block;
  margin-right: 8px;
}
.content {
  max-width: 1140px;
  padding: 48px 54px 90px;
  margin: auto;
  animation: arrive 0.22s ease-out;
}
.intro {
  max-width: 640px;
  margin-bottom: 32px;
}
.intro p {
  color: var(--muted);
  max-width: 520px;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 255px;
  gap: 48px;
}
.side-context {
  border-left: 1px solid var(--line);
  padding-left: 26px;
}
.section {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.section:first-child {
  padding-top: 0;
  border-top: 0;
}
.understanding {
  font-family: Georgia, serif;
  font-size: 21px;
  line-height: 1.65;
  color: #355345;
}
.row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.spread {
  justify-content: space-between;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.list {
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.8;
}
.status-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.status-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.5;
}
.status-item strong {
  display: block;
  font-weight: 500;
  margin-bottom: 4px;
}
.status-item span {
  color: var(--muted);
  font-size: 12px;
}
.status-item.done strong:before {
  content: "✓ ";
  color: var(--green);
}
.tag {
  font-size: 10px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  background: #e4eadf;
  color: #3d604b;
  border-radius: 3px;
  padding: 6px 9px;
  display: inline-block;
}
.tag.pending {
  background: #f0e8da;
  color: #80613a;
}
.question {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.question p {
  margin: 0 0 8px;
}
.question small {
  display: block;
  margin-bottom: 12px;
}
.field {
  display: block;
  margin: 0 0 22px;
}
.field > span {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 9px;
}
.field small {
  display: block;
  margin-top: 7px;
}
input:not([type="checkbox"]),
textarea,
select {
  width: 100%;
  border: 1px solid #cfd8ce;
  border-radius: 4px;
  background: #fff;
  color: #283c33;
  padding: 12px;
  font-size: 14px;
  min-height: 46px;
}
textarea {
  resize: vertical;
  min-height: 90px;
  line-height: 1.55;
}
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #8da987;
  border-color: transparent;
}
.fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
}
.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.6;
  margin: 15px 0;
}
.check input {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}
.drop {
  border: 1px dashed #9eaf9b;
  padding: 30px;
  background: #f2f5ee;
  margin-bottom: 28px;
}
.drop h2 {
  font-family: Georgia, serif;
  font-size: 24px;
  font-weight: 400;
}
.drop p {
  color: var(--muted);
}
.drop input[type="file"] {
  background: transparent;
  border: 0;
  padding: 0;
  font-size: 13px;
}
.file-row {
  border-top: 1px solid var(--line);
  padding: 22px 0;
}
.file-row h3 {
  overflow-wrap: anywhere;
}
.file-row small {
  display: block;
}
.file-row .row {
  margin-top: 14px;
}
.progress-track {
  height: 3px;
  background: var(--line);
  margin: 15px 0 6px;
}
.progress-fill {
  height: 100%;
  background: #6a8c5b;
}
.login {
  max-width: 450px;
  margin: 10vh auto;
  padding: 30px;
}
.login h1 {
  font-size: 34px;
  margin-top: 50px;
}
.login .brand {
  font-size: 34px;
}
details {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
summary {
  cursor: pointer;
  font-size: 14px;
  min-height: 32px;
  line-height: 1.8;
}
details[open] > summary {
  margin-bottom: 25px;
}
details details {
  padding-left: 20px;
  border-left: 1px solid var(--line);
  border-bottom: 0;
}
.array-item {
  border-left: 2px solid #b9cbb2;
  padding: 16px 0 16px 20px;
  margin: 14px 0;
}
.savebar {
  position: sticky;
  bottom: 0;
  border-top: 1px solid var(--line);
  padding: 16px 0;
  background: #f8f8f4;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.alert {
  background: #f1ebdf;
  border-left: 3px solid #b7a176;
  padding: 14px 18px;
  font-size: 13px;
  line-height: 1.6;
  margin: 18px 0;
}
.success {
  background: #e7efdf;
  border-left-color: #729760;
}
.empty {
  padding: 35px 0;
  color: var(--muted);
}
.source {
  font-size: 11px;
  color: var(--muted);
  padding-top: 7px;
  overflow-wrap: anywhere;
}
.review-data {
  margin: 0;
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 14px 24px;
  font-size: 13px;
  line-height: 1.65;
}
.review-data dt {
  color: var(--muted);
}
.review-data dd {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.team-row {
  border-top: 1px solid var(--line);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.invite {
  word-break: break-all;
  background: #e6eddc;
  padding: 15px;
  font-size: 12px;
}
.timeline {
  display: flex;
  flex-direction: column;
  gap: 22px;
  border-left: 1px solid var(--line);
  padding-left: 20px;
}
.timeline strong {
  font-weight: 500;
  font-size: 13px;
}
.timeline p {
  font-size: 12px;
  color: var(--muted);
  margin: 4px 0;
}
.prewrap {
  white-space: pre-wrap;
}
#notice {
  position: fixed;
  right: 24px;
  bottom: 24px;
  max-width: min(470px, calc(100vw - 48px));
  background: #233e31;
  color: white;
  padding: 0;
  border-radius: 5px;
  font-size: 13px;
  z-index: 10;
  box-shadow: 0 5px 25px #0002;
}
#notice:not(:empty) {
  padding: 16px 22px;
}
.busy {
  opacity: 0.65;
  pointer-events: none;
}
.count {
  font-size: 30px;
  font-family: Georgia, serif;
  margin-top: 18px;
}
.inline-error {
  color: #944b34;
  font-size: 13px;
}
.mobile-menu {
  display: none;
}
.note-label {
  margin: 8px 0 20px;
}
@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 1050px) {
  .shell {
    grid-template-columns: 205px 1fr;
  }
  .content {
    padding: 36px 32px;
  }
  .split {
    gap: 25px;
    grid-template-columns: 1fr;
  }
  .side-context {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 25px 0;
  }
  .topbar {
    padding: 18px 30px;
  }
  .sidebar {
    padding: 30px 18px;
  }
}
@media (max-width: 650px) {
  .shell {
    display: block;
  }
  .sidebar {
    position: static;
    height: auto;
    padding: 20px 20px 10px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .sidebar .eyebrow,
  .project-name,
  .sidebar-footer {
    display: none;
  }
  .nav {
    flex-direction: row;
    overflow: auto;
    margin-top: 16px;
    padding-bottom: 7px;
    gap: 3px;
  }
  .nav button {
    white-space: nowrap;
    padding: 9px;
    font-size: 11px;
  }
  .nav .num {
    display: none;
  }
  .brand {
    font-size: 27px;
  }
  .topbar {
    padding: 12px 20px;
  }
  .content {
    padding: 30px 22px 70px;
  }
  h1 {
    font-size: 34px;
  }
  .fields-grid {
    grid-template-columns: 1fr;
  }
  .review-data {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  .review-data dd {
    margin-bottom: 15px;
  }
  .drop {
    padding: 22px;
  }
  .login {
    margin: 4vh auto;
  }
  .team-row {
    align-items: flex-start;
  }
  .understanding {
    font-size: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

progress {
  display: block;
  width: 100%;
  height: 3px;
  appearance: none;
  border: 0;
  background: var(--line);
}
progress::-webkit-progress-bar {
  background: var(--line);
}
progress::-webkit-progress-value {
  background: #6a8c5b;
}
progress::-moz-progress-bar {
  background: #6a8c5b;
}
/* Conversation and comparable teaching sketches */
.conversation-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 32px;
  align-items: start;
}
.conversation-guide {
  border-left: 1px solid var(--line);
  padding-left: 24px;
  position: sticky;
  top: 24px;
}
.conversation-guide li {
  margin-bottom: 18px;
  font-size: 13px;
  line-height: 1.5;
}
.conversation-guide ol {
  padding-left: 18px;
}
.conversation-guide button {
  width: 100%;
  margin-bottom: 10px;
}
.conversation-guide p {
  margin-top: 16px;
  font-size: 12px;
}
.chat-log {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.chat-message {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.chat-message.client {
  background: #e9f0e7;
  margin-left: 48px;
  border-color: #d6e0d2;
}
.chat-author {
  font-size: 11px;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.chat-message p:last-child {
  margin-bottom: 0;
}
.captured-answers {
  margin-top: 16px;
  padding: 12px;
  background: #f7f9f5;
  font-size: 12px;
}
.captured-answers p {
  margin: 8px 0;
}
.chat-composer {
  margin-top: 24px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.chat-composer textarea {
  min-height: 90px;
}
.chat-composer small {
  max-width: 280px;
}
.reply-status {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.choice-group h2 {
  margin-bottom: 10px;
}
.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}
button.visual-choice {
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 0;
  border: 1px solid #cdd7d2;
  background: white;
  border-radius: 9px;
  color: #243b33;
  overflow: hidden;
  font-weight: 400;
  transition:
    box-shadow 0.15s,
    border-color 0.15s;
}
button.visual-choice:hover {
  border-color: #537b65;
  box-shadow: 0 3px 12px #243b3310;
}
button.visual-choice.selected {
  border: 2px solid #285b48;
  box-shadow: 0 0 0 2px #285b4818;
}
.choice-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 205px;
  background: #f2f5f6;
  padding: 10px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.choice-preview svg {
  width: 100%;
  height: auto;
  max-height: 100%;
}
.choice-caption {
  padding: 16px;
}
.choice-caption h3 {
  margin: 10px 0;
  font-size: 15px;
}
.choice-caption p {
  font-size: 12px;
  line-height: 1.6;
  margin: 0;
}
.choice-check {
  color: #285b48;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.choice-notes {
  margin-top: 16px;
}
.choice-notes label {
  display: block;
  margin: 16px 0;
  font-size: 13px;
}
.choice-group > small {
  display: block;
  margin-top: 16px;
}
.slide-sample {
  background: #fff;
  border: 1px solid #dce1e4;
  padding: 10px;
  width: 100%;
  min-height: 160px;
  color: #243b46;
}
.sample-kicker {
  font-size: 8px;
  letter-spacing: 0.08em;
  color: #526573;
  margin-bottom: 6px;
}
.slide-sample > strong {
  font-size: 12px;
  display: block;
}
.sample-body {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}
.sample-copy {
  flex: 1;
  min-width: 0;
}
.sample-copy p {
  font-size: 9px;
  line-height: 1.4;
  margin-bottom: 5px;
}
.sample-body svg {
  flex: 0 0 50%;
  width: 50%;
}
.density-visual .sample-body {
  display: block;
}
.density-visual .sample-body svg {
  width: 100%;
  height: 93px;
}
.density-visual .sample-copy p {
  text-align: center;
}
.density-reference .sample-body svg {
  flex-basis: 25%;
  width: 25%;
}
.slide-sample > small {
  font-size: 7px;
  line-height: 1.2;
  display: block;
  margin-top: 5px;
}
.aspect-sample {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}
.aspect-sample > div {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  background: white;
  border: 2px solid #628979;
  border-radius: 4px;
}
.canvas-wide {
  width: 100%;
  aspect-ratio: 16/9;
}
.canvas-portrait {
  height: 100%;
  aspect-ratio: 9/16;
}
.canvas-square {
  height: 95%;
  aspect-ratio: 1;
}
.aspect-sample strong {
  font-size: 10px;
}
.aspect-sample span {
  font-size: 11px;
  color: #526573;
}
.aspect-sample small {
  font-size: 8px;
}
.canvas-dot {
  width: 20px;
  height: 20px;
  background: #ad641f;
  border-radius: 50%;
}
.storyboard {
  width: 100%;
}
.storyboard > small,
.tutor-sample > small,
.audio-sample > small {
  font-size: 8px;
  letter-spacing: 0.1em;
}
.storyboard svg {
  height: 128px;
}
.story-beats {
  display: flex;
  gap: 3px;
}
.story-beats span {
  padding: 5px 3px;
  flex: 1;
  background: white;
  font-size: 8px;
  text-align: center;
  border-bottom: 2px solid #789780;
}
.footage-sketch {
  height: 123px;
  margin: 5px 0;
  background: repeating-linear-gradient(
    90deg,
    #e1e8e9 0 35px,
    #d3dfe0 35px 37px
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 8px solid white;
}
.footage-sketch span {
  font-size: 34px;
  color: #41696c;
  line-height: 1;
}
.footage-sketch strong {
  font-size: 13px;
  margin: 4px;
}
.footage-sketch small {
  font-size: 9px;
}
.tutor-sample {
  width: 100%;
  padding: 3px;
}
.sample-message {
  font-size: 10px;
  line-height: 1.5;
  padding: 9px;
  background: white;
  border-radius: 7px;
  margin-top: 8px;
}
.sample-message.learner {
  margin-left: 20px;
  background: #dfeadd;
}
.sample-controls {
  padding: 10px 5px;
  color: #345a48;
  font-size: 9px;
}
.audio-sample {
  text-align: center;
}
.audio-sample strong {
  display: block;
  font-size: 14px;
  margin: 14px 0;
}
.audio-wave {
  color: #527c70;
  font-size: 23px;
}
.audio-sample p {
  font-size: 10px;
  margin: 12px 0;
}
.presenter-sample {
  width: 100%;
  text-align: center;
}
.presenter-frame {
  height: 145px;
  display: flex;
  justify-content: center;
}
.presenter-sample small {
  font-size: 10px;
}
.person-sketch {
  position: relative;
  width: 130px;
  height: 130px;
  background: #dce7e1;
  overflow: hidden;
  border-radius: 5px;
}
.person-sketch span {
  position: relative;
  z-index: 1;
  font-size: 8px;
  letter-spacing: 0.14em;
}
.person-head {
  width: 40px;
  height: 44px;
  border-radius: 50%;
  background: #779387;
  margin: 12px auto 4px;
}
.person-body {
  width: 90px;
  height: 90px;
  border-radius: 42px 42px 0 0;
  background: #526e61;
  margin: auto;
}
.person-sketch.avatar {
  background: #e4e4f1;
}
.avatar .person-head {
  background: #938bab;
}
.avatar .person-body {
  background: #6c6384;
}
.conversation-layout .choice-grid {
  grid-template-columns: 1fr;
}
.conversation-layout button.visual-choice {
  flex-direction: row;
}
.conversation-layout .choice-preview {
  width: 44%;
  flex: 0 0 44%;
  height: 165px;
  border-right: 1px solid var(--line);
  border-bottom: 0;
}
.conversation-layout .choice-caption {
  align-self: center;
}
@media (min-width: 1550px) {
  .conversation-layout .choice-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .conversation-layout button.visual-choice {
    flex-direction: column;
  }
  .conversation-layout .choice-preview {
    width: 100%;
    flex-basis: auto;
  }
}
@media (max-width: 1100px) {
  .conversation-layout {
    grid-template-columns: 1fr;
  }
  .conversation-guide {
    position: static;
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 24px 0 0;
  }
  .conversation-guide button {
    width: auto;
    margin-right: 8px;
  }
}
@media (max-width: 780px) {
  .choice-grid {
    grid-template-columns: 1fr;
  }
  .choice-preview {
    height: 235px;
  }
  .choice-preview svg {
    max-width: 380px;
  }
  .slide-sample {
    max-width: 390px;
  }
  .sample-copy p {
    font-size: 12px;
  }
  .sample-kicker {
    font-size: 10px;
  }
  .slide-sample > strong {
    font-size: 16px;
  }
  .slide-sample > small {
    font-size: 9px;
  }
  .density-visual .sample-body svg {
    height: 120px;
  }
  .tutor-sample {
    max-width: 340px;
  }
  .sample-message {
    font-size: 13px;
  }
  .chat-message.client {
    margin-left: 16px;
  }
  .chat-message {
    padding: 18px;
  }
  .conversation-layout button.visual-choice {
    flex-direction: column;
  }
  .conversation-layout .choice-preview {
    width: 100%;
    flex-basis: auto;
    height: 210px;
  }
  .conversation-layout .choice-caption {
    align-self: stretch;
  }
}
.visual-checkpoint {
  margin: 22px 0;
  padding: 22px;
  border: 1px solid #b5cbbc;
  border-radius: 12px;
  background: white;
}
.visual-checkpoint img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 620px;
  object-fit: contain;
  border-radius: 6px;
  background: #eef1f1;
}
.visual-checkpoint figcaption {
  font-size: 12px;
  color: var(--muted);
  margin: 12px 0;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.visual-review-note {
  font-size: 11px;
  color: #776331;
  background: #f7f3e8;
  padding: 9px 12px;
  border-radius: 5px;
}
.visual-checkpoint details {
  margin-top: 18px;
}
.visual-feedback {
  border-left: 3px solid #6b947b;
  padding-left: 13px;
  margin: 16px 0;
}
.visual-feedback p {
  font-size: 13px;
}
.visual-offer {
  border-top: 1px solid var(--line);
  margin-top: 16px;
  padding-top: 16px;
}
.visual-offer p {
  font-size: 12px;
  color: var(--muted);
}
.visual-tools {
  margin-top: 14px;
}
.visual-tools small {
  max-width: 340px;
}
.advanced-nav {
  margin: 14px 0 0;
  padding: 10px 0;
  border: 0;
  background: transparent;
}
.advanced-nav summary {
  color: var(--muted);
  font-size: 12px;
  padding: 10px;
}
@media (max-width: 650px) {
  .nav {
    align-items: flex-start;
  }
  .advanced-nav {
    flex-shrink: 0;
    margin: 0;
    padding: 0;
  }
  .advanced-nav summary {
    white-space: nowrap;
    min-height: 44px;
  }
  .advanced-nav button {
    display: block;
  }
}
.method-sample {
  width: 100%;
  text-align: center;
}
.method-sample img {
  width: 100%;
  max-height: 148px;
  object-fit: contain;
  display: block;
}
.method-sample svg {
  max-height: 148px;
}
.method-sample > small {
  display: block;
  font-size: 9px;
  line-height: 1.4;
  margin-top: 7px;
}
.method-empty {
  min-height: 135px;
  padding: 22px;
  background: #e7ece9;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.method-empty strong {
  font-size: 13px;
}
.method-empty p {
  font-size: 11px;
  margin: 8px 0 0;
}
.hybrid-labels {
  display: flex;
  gap: 4px;
  margin-top: 5px;
}
.hybrid-labels span {
  flex: 1;
  background: white;
  border: 1px solid #cad7cf;
  padding: 5px 2px;
  font-size: 8px;
}
.concept-labels {
  display: flex;
  gap: 10px;
  margin: 12px 0;
}
.concept-labels > div {
  flex: 1;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.concept-labels small {
  display: block;
  font-size: 10px;
}
.concept-labels strong {
  display: block;
  font-size: 14px;
  margin-top: 5px;
}
@media (max-width: 650px) {
  .concept-labels {
    flex-wrap: wrap;
  }
  .concept-labels > div {
    flex-basis: 85px;
  }
}

/* Video intake: one decision at a time, with accessible choice buttons. */
.video-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}
.video-options button {
  text-align: left;
  white-space: normal;
  padding: 20px;
  min-height: 96px;
}
.video-options small {
  display: block;
  margin-bottom: 10px;
  opacity: 0.65;
}
.video-options .selected {
  outline: 2px solid #226655;
  outline-offset: 2px;
}
.video-question > button {
  margin: 8px 12px 0 0;
}
@media (max-width: 650px) {
  .video-options {
    grid-template-columns: 1fr;
  }
  .video-options button {
    min-height: 64px;
    padding: 14px;
  }
}

/* Clinical intake: one decision at a time, with accessible choice buttons. */
.clinical-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}
.clinical-options button {
  text-align: left;
  white-space: normal;
  padding: 20px;
  min-height: 96px;
}
.clinical-options small {
  display: block;
  margin-bottom: 10px;
  opacity: 0.65;
}
.clinical-options .selected {
  outline: 2px solid #226655;
  outline-offset: 2px;
}
.clinical-question > button {
  margin: 8px 12px 0 0;
}
@media (max-width: 650px) {
  .clinical-options {
    grid-template-columns: 1fr;
  }
  .clinical-options button {
    min-height: 64px;
    padding: 14px;
  }
}

/* Readable agent replies and reviewable assisted checkpoints. */
.rich-text {
  max-width: 72ch;
  font-size: 15px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.rich-text p {
  margin: 0 0 1em;
}
.rich-text h3 {
  font-size: 1.02em;
  line-height: 1.4;
  margin: 1.4em 0 0.6em;
  color: var(--green);
}
.rich-text > :first-child {
  margin-top: 0;
}
.rich-text > :last-child {
  margin-bottom: 0;
}
.rich-text ul,
.rich-text ol {
  padding-left: 1.5em;
  margin: 1em 0;
}
.rich-text li {
  margin: 0.75em 0;
  padding-left: 0.35em;
}
.rich-text li::marker {
  color: var(--green);
  font-weight: 700;
}
.rich-text strong {
  font-weight: 650;
  color: #203d32;
}
.rich-text code {
  font-size: 0.9em;
  background: #eef2eb;
  border-radius: 3px;
  padding: 0.12em 0.3em;
}
.assisted-panel {
  padding: 26px 0 30px;
  border-top: 2px solid var(--green);
  border-bottom: 1px solid var(--line);
  margin-bottom: 30px;
}
.assisted-panel h2 {
  margin: 6px 0 14px;
}
.assisted-panel > div > p {
  max-width: 72ch;
}
.assisted-progress {
  display: flex;
  gap: 22px;
  padding: 0;
  margin: 6px 0 25px;
  list-style: none;
  flex-wrap: wrap;
}
.assisted-progress li {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}
.assisted-progress span {
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: #e9eee7;
  display: grid;
  place-items: center;
}
.assisted-progress [aria-current="step"],
.assisted-progress .done {
  color: var(--green);
  font-weight: 650;
}
.assisted-progress [aria-current="step"] span {
  background: var(--green);
  color: white;
}
.assisted-status {
  text-transform: uppercase;
  color: var(--green);
  font-size: 11px;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
  font-weight: 700;
}
.assisted-details {
  border-top: 1px solid var(--line);
  margin: 18px 0;
  padding-top: 14px;
  max-width: 80ch;
}
.assisted-details summary {
  cursor: pointer;
  color: var(--green);
  font-weight: 600;
  font-size: 13px;
  padding: 4px 0;
}
.assisted-answer {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.assisted-answer h3,
.assisted-questions h3 {
  font-size: 14px;
  margin: 8px 0;
}
.assisted-answer p,
.assisted-details li p {
  margin: 5px 0;
}
.assisted-note {
  display: block;
  max-width: 76ch;
  margin: 12px 0 0;
  line-height: 1.6;
}
.assisted-panel .field {
  max-width: 76ch;
  margin-top: 22px;
}
.assisted-questions {
  margin: 20px 0;
}
.assisted-questions li {
  margin: 10px 0;
}
.assisted-working {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 14px 0;
}
.assisted-working p {
  margin: 8px 0;
}
.thinking-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
  animation: thought-pulse 1.2s ease-in-out infinite;
}
.assisted-stale {
  background: #fff1d9;
  padding: 12px;
  border-radius: 4px;
}
@keyframes thought-pulse {
  50% {
    opacity: 0.25;
  }
}
@media (prefers-reduced-motion: reduce) {
  .thinking-dot {
    animation: none;
  }
}
@media (max-width: 640px) {
  .rich-text {
    font-size: 14px;
    line-height: 1.65;
  }
  .assisted-progress {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .assisted-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .assisted-actions button {
    width: 100%;
  }
}

/* First lesson: bounded content on a fixed, responsive teaching canvas. */
.lesson-entry {
  margin: 0 0 1.25rem;
  justify-content: space-between;
}
.lesson-intro {
  max-width: 52rem;
  margin-bottom: 1.5rem;
}
.lesson-intro h1 {
  margin: 0.4rem 0 1rem;
}
.lesson-intro p,
.lesson-start p {
  max-width: 65ch;
}
.lesson-start,
.lesson-checkpoint {
  padding: clamp(1.2rem, 3vw, 2.5rem);
  background: #fff;
  border: 1px solid #d9e2dc;
  border-radius: 12px;
  margin: 1.5rem 0;
}
.lesson-objective {
  max-width: 75ch;
  margin: 1.5rem 0;
}
.lesson-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1.25rem;
  margin: 1.5rem 0;
}
.lesson-toolbar fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.lesson-toolbar legend {
  margin-bottom: 0.5rem;
  font-weight: 600;
}
.lesson-toolbar nav {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.lesson-toolbar button {
  padding: 0.55rem 0.8rem;
  min-height: 44px;
}
.lesson-toolbar [aria-pressed="true"],
.lesson-toolbar [aria-current="step"],
.lesson-practice [aria-pressed="true"] {
  color: white;
  background: #285e4d;
  border-color: #285e4d;
}
.lesson-slide {
  padding: clamp(1.25rem, 3vw, 3rem);
  background: #fff;
  border: 1px solid #d9e2dc;
  border-radius: 12px;
  min-width: 0;
}
.lesson-slide header h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.4rem);
  max-width: 28ch;
  line-height: 1.2;
  margin: 0.65rem 0 1.5rem;
}
.lesson-slide-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: center;
}
.lesson-density-visual .lesson-slide-body {
  grid-template-columns: 2fr 1fr;
}
.lesson-density-reference .lesson-slide-body {
  grid-template-columns: 1fr 2fr;
  align-items: start;
}
.lesson-copy,
.lesson-visual {
  min-width: 0;
  overflow-wrap: anywhere;
}
.lesson-takeaway {
  font-size: clamp(1.15rem, 1.6vw, 1.5rem);
  font-weight: 600;
  line-height: 1.4;
}
.lesson-copy ul {
  padding-left: 1.2rem;
}
.lesson-copy li {
  margin: 0.8rem 0;
  line-height: 1.6;
}
.lesson-diagram {
  background: #eef3ef;
  border-radius: 8px;
  padding: clamp(1rem, 2vw, 1.75rem);
  display: grid;
  gap: 1rem;
}
.lesson-entity {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  background: white;
  border-left: 3px solid #426e5f;
}
.lesson-entity > span {
  color: #526c60;
  font-size: 0.8rem;
}
.lesson-entity strong {
  font-size: 1rem;
  font-weight: 600;
}
.lesson-visual img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}
.lesson-visual small {
  display: block;
  margin-top: 0.7rem;
  font-size: 0.8rem;
  line-height: 1.5;
}
.lesson-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0;
}
.lesson-labels span {
  background: #eef3ef;
  padding: 0.4rem 0.6rem;
  font-size: 0.9rem;
}
.lesson-slide footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid #e2e8e3;
  padding-top: 1rem;
  margin-top: 2rem;
  font-size: 0.8rem;
}
.lesson-slide-actions {
  margin: 1rem 0 1.5rem;
  justify-content: space-between;
}
.lesson-details {
  padding: 1rem 0;
  border-bottom: 1px solid #d9e2dc;
}
.lesson-details summary {
  cursor: pointer;
  font-weight: 600;
  min-height: 32px;
}
.lesson-details p,
.lesson-details blockquote {
  max-width: 75ch;
  overflow-wrap: anywhere;
}
.lesson-practice {
  padding: 1.5rem 0;
}
.lesson-practice button {
  display: block;
  text-align: left;
  margin: 0.6rem 0;
  width: 100%;
  white-space: normal;
}
.lesson-export-note {
  display: block;
  margin-top: 0.8rem;
  max-width: 75ch;
}
@media (max-width: 760px) {
  .lesson-slide-body,
  .lesson-density-visual .lesson-slide-body,
  .lesson-density-reference .lesson-slide-body {
    grid-template-columns: 1fr;
  }
  .lesson-slide header h2 {
    max-width: none;
  }
  .lesson-toolbar {
    display: block;
  }
  .lesson-toolbar nav {
    margin-top: 1rem;
  }
  .lesson-checkpoint .row {
    align-items: stretch;
  }
  .lesson-entry {
    align-items: start;
  }
}
