:root {
  color-scheme: light;
  --bg: #f7f4ef;
  --ink: #171717;
  --muted: #64615c;
  --line: #ded8ce;
  --panel: #fffdf8;
  --accent: #0f6b5f;
  --accent-2: #c84f31;
  --dark: #111b1a;
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(15, 107, 95, 0.08), transparent 280px),
    var(--bg);
  color: var(--ink);
}

.shell {
  width: min(1120px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 8px 0 28px;
}

.topbar.compact {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.brand {
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  font-size: 18px;
}

.session-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
}

.session-meta span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.45);
}

.eyebrow, .kicker {
  margin: 0 0 8px;
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  margin-bottom: 0;
  font-size: clamp(34px, 7vw, 76px);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  font-size: 30px;
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

p {
  color: var(--muted);
  line-height: 1.55;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: var(--radius);
  background: var(--dark);
  color: white;
  text-decoration: none;
  font-weight: 800;
  border: 1px solid var(--dark);
}

.button.secondary, .button.ghost {
  background: transparent;
  color: var(--dark);
}

.hero {
  min-height: 520px;
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 28px;
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hero-copy h2 {
  max-width: 780px;
  font-size: clamp(34px, 6vw, 72px);
  line-height: 0.98;
  margin-bottom: 18px;
}

.hero-copy p {
  max-width: 680px;
  font-size: 18px;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.scoreboard {
  display: grid;
  gap: 10px;
}

.scoreboard div, .tile, .panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.scoreboard div {
  padding: 18px;
}

.scoreboard span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 6px;
}

.scoreboard strong {
  display: block;
  font-size: 22px;
  line-height: 1.1;
}

.section {
  padding-top: 46px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.tile {
  min-height: 150px;
  padding: 18px;
}

.session-shell {
  max-width: 880px;
}

.session-hero {
  padding: 34px 0 18px;
}

.session-hero h1 {
  margin-bottom: 14px;
}

.session-hero p {
  max-width: 650px;
  font-size: 18px;
}

.time-target {
  display: inline-block;
  margin-top: 4px;
  padding: 10px 12px;
  border: 1px solid rgba(15, 107, 95, 0.24);
  border-radius: var(--radius);
  background: rgba(15, 107, 95, 0.08);
  color: var(--dark);
  font-size: 15px;
  font-weight: 800;
}

.panel {
  padding: 20px;
  margin: 14px 0;
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.panel-header h2 {
  margin: 0;
  font-size: 22px;
}

.step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  font-weight: 900;
  font-size: 13px;
}

.checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.checklist label {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbf8f2;
  font-weight: 700;
}

input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.passage {
  font-size: 18px;
  color: var(--ink);
  line-height: 1.7;
}

.questions {
  display: grid;
  gap: 14px;
}

.questions.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.questions label {
  display: grid;
  gap: 8px;
  font-weight: 800;
}

textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  font: inherit;
  line-height: 1.4;
  resize: vertical;
  background: #fbf8f2;
  color: var(--ink);
}

select,
input {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  font: inherit;
  background: #fbf8f2;
  color: var(--ink);
}

.coach-surface {
  display: grid;
  grid-template-columns: 1fr 160px;
  gap: 12px;
  margin-top: 14px;
}

.coach-surface label {
  display: grid;
  gap: 8px;
  font-weight: 800;
}

.coach-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.coach-actions button {
  min-height: 42px;
  border: 1px solid var(--dark);
  border-radius: var(--radius);
  padding: 0 14px;
  background: var(--dark);
  color: white;
  font: inherit;
  font-weight: 800;
}

.coach-actions button + button {
  background: transparent;
  color: var(--dark);
}

.coach-feedback {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(200, 79, 49, 0.24);
  border-radius: var(--radius);
  background: rgba(200, 79, 49, 0.08);
  color: var(--ink);
  font-weight: 700;
}

.coordinate-grid {
  position: relative;
  aspect-ratio: 1;
  max-width: 360px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(to right, transparent calc(50% - 1px), var(--dark) calc(50% - 1px), var(--dark) calc(50% + 1px), transparent calc(50% + 1px)),
    linear-gradient(to bottom, transparent calc(50% - 1px), var(--dark) calc(50% - 1px), var(--dark) calc(50% + 1px), transparent calc(50% + 1px)),
    linear-gradient(to right, rgba(15, 107, 95, 0.14) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 107, 95, 0.14) 1px, transparent 1px),
    #fbf8f2;
  background-size: auto, auto, 20% 20%, 20% 20%, auto;
}

.coordinate-grid button {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 38px;
  height: 38px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  border: 2px solid var(--dark);
  background: white;
  color: var(--dark);
  font: inherit;
  font-weight: 900;
}

.coordinate-grid button.selected {
  background: var(--accent);
  color: white;
}

.method ol {
  margin: 0;
  padding-left: 22px;
  line-height: 1.8;
  color: var(--ink);
}

.next-session-callout,
.prompt-box {
  margin-bottom: 10px;
  padding: 14px;
  border: 1px solid rgba(15, 107, 95, 0.24);
  border-radius: var(--radius);
  background: rgba(15, 107, 95, 0.08);
  color: var(--ink);
  font-weight: 750;
}

.next-session-callout strong {
  color: var(--accent);
}

.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.choice-row button {
  min-height: 44px;
  border: 1px solid var(--dark);
  background: var(--dark);
  color: white;
  border-radius: var(--radius);
  padding: 0 14px;
  font: inherit;
  font-weight: 800;
}

.choice-row button.selected {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--dark);
}

.finish-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.finish-actions button {
  min-height: 44px;
  border: 1px solid var(--dark);
  background: var(--dark);
  color: white;
  border-radius: var(--radius);
  padding: 0 14px;
  font: inherit;
  font-weight: 800;
}

.finish-actions button + button {
  background: transparent;
  color: var(--dark);
}

.first-note {
  margin-top: -4px;
  margin-bottom: 14px;
}

.complete-panel {
  border-color: rgba(15, 107, 95, 0.35);
}

.extension-panel {
  border-color: rgba(200, 79, 49, 0.36);
  background:
    linear-gradient(180deg, rgba(200, 79, 49, 0.08), transparent 130px),
    var(--panel);
}

.extension-panel[hidden] {
  display: none;
}

.complete-panel > p {
  max-width: 680px;
}

button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.submission-card {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(15, 107, 95, 0.28);
  border-radius: var(--radius);
  background: rgba(15, 107, 95, 0.08);
}

.submission-card strong {
  display: block;
  margin-bottom: 4px;
}

.submission-card p {
  margin: 0;
}

.small-note {
  margin: 12px 0 0;
  font-size: 14px;
}

@media (max-width: 760px) {
  .shell {
    width: min(100vw - 22px, 1120px);
    padding-top: 16px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 34px 0;
  }

  .grid, .checklist, .questions.two-col, .coach-surface {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}
