:root {
  color-scheme: light;
  --ink: #16201f;
  --muted: #5b6763;
  --line: #d9dfda;
  --paper: #f7f8f4;
  --panel: #ffffff;
  --soft: #edf2ed;
  --green: #1f6f58;
  --green-dark: #164c40;
  --teal: #2e7b84;
  --gold: #b1812c;
  --red: #9a4d42;
  --shadow: 0 18px 50px rgba(22, 32, 31, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
textarea,
select {
  font: inherit;
}

h1,
h2,
h3,
p,
strong,
span,
button,
a {
  overflow-wrap: anywhere;
}

body.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 22px;
}

.login-shell {
  width: min(100%, 440px);
  min-height: auto;
}

.login-panel {
  display: grid;
  gap: 22px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.login-panel h1,
.login-panel p {
  margin: 0;
}

.login-panel h1 {
  font-size: clamp(30px, 8vw, 42px);
  line-height: 1;
}

.login-panel form {
  display: grid;
  gap: 12px;
}

.login-panel label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.login-panel input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 17px;
}

.login-panel button {
  min-height: 48px;
  border: 1px solid var(--green);
  border-radius: 6px;
  background: var(--green);
  color: #fff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.login-error {
  color: var(--red);
  font-weight: 800;
}

a {
  color: inherit;
}

.directory-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 74px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.directory-row:first-child {
  border-top: 1px solid var(--line);
}

.directory-row span {
  font-size: 23px;
  font-weight: 800;
}

.directory-row small {
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
  white-space: nowrap;
}

.directory-row:hover span {
  color: var(--green);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 4vw, 56px);
  background: rgba(247, 248, 244, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.topbar h1,
.topbar p {
  margin: 0;
}

.topbar h1 {
  font-size: 20px;
  line-height: 1.1;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

nav a {
  min-height: 36px;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

nav a:hover {
  border-color: var(--line);
  color: var(--ink);
  background: var(--panel);
}

nav a[aria-current="page"] {
  border-color: rgba(31, 111, 88, 0.22);
  color: var(--green-dark);
  background: rgba(31, 111, 88, 0.08);
  font-weight: 800;
}

.transcript-reader {
  max-height: 520px;
  overflow: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  scroll-behavior: smooth;
}

.auto-mobile-lesson-picker {
  display: none;
}

.training-transcript-panel {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.training-transcript-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.training-transcript-header strong {
  font-size: 18px;
}

.training-transcript-header span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  text-align: right;
}

.training-transcript-follow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.training-transcript-panel > [data-training-transcript-status] {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.training-transcript-panel pre {
  max-height: 320px;
  overflow: auto;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  color: var(--ink);
  font: inherit;
  line-height: 1.58;
  white-space: pre-wrap;
}

.transcript-line {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 9px;
  width: 100%;
  padding: 8px 9px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.transcript-line:hover {
  background: var(--soft);
}

.transcript-line.active {
  background: rgba(31, 111, 88, 0.14);
  box-shadow: inset 3px 0 0 var(--green);
}

.transcript-time {
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 900;
}

.transcript-text {
  line-height: 1.5;
}

.transcript-paragraph,
.transcript-empty {
  margin: 0;
  padding: 8px 10px;
  color: var(--muted);
  line-height: 1.55;
}

.sync-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.sync-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.sync-toggle input {
  accent-color: var(--green);
}

main {
  min-height: 100vh;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 74px);
  padding: clamp(42px, 7vw, 96px) clamp(20px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  max-width: 860px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h2 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(42px, 6vw, 82px);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero p:not(.eyebrow) {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

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

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

.button.primary {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.button.secondary {
  background: var(--panel);
  color: var(--green-dark);
}

.status-panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.status-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.status-copy {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(31, 111, 88, 0.12);
}

.directory-list {
  max-width: 900px;
  border-top: 1px solid var(--line);
}

.directory-list a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 86px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.directory-list a:hover span {
  color: var(--green);
}

.directory-list span {
  font-size: 24px;
  font-weight: 850;
  line-height: 1.15;
}

.directory-list p {
  grid-column: 1;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.35;
}

.directory-list small {
  grid-column: 2;
  grid-row: 1 / span 2;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

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

.portal-section {
  scroll-margin-top: 110px;
  min-height: 150px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 12px 34px rgba(22, 32, 31, 0.06);
  text-decoration: none;
  transition: border-color 120ms ease, transform 120ms ease;
}

.portal-section:hover {
  border-color: rgba(31, 111, 88, 0.45);
  transform: translateY(-1px);
}

.portal-section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.portal-section-heading h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.1;
}

.section-count {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.asset-list {
  display: grid;
  gap: 10px;
}

.empty-state {
  min-height: 54px;
  display: flex;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.empty-state span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.asset-card {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  text-decoration: none;
}

.asset-card span {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.asset-card strong {
  font-size: 18px;
}

.asset-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.shelf-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(42px, 7vw, 96px) clamp(20px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
}

.shelf-hero h2 {
  margin: 0;
  font-size: clamp(42px, 6vw, 74px);
  line-height: 0.96;
}

.shelf-description {
  max-width: 680px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.45;
}

.shelf-content {
  min-height: 45vh;
}

.shelf-empty {
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
  font-weight: 800;
}

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

.stat {
  min-height: 132px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.stat dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.stat dd {
  margin: 12px 0 6px;
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
}

.stat p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.section {
  padding: clamp(48px, 7vw, 92px) clamp(20px, 4vw, 56px);
}

.band {
  background: #e9eee8;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 28px;
}

.section-heading.split {
  display: flex;
  max-width: none;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow) {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
}

.starter-grid,
.available-grid,
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.starter-grid article,
.available-card,
.training-card,
.source-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.available-card {
  display: flex;
  min-height: 230px;
  flex-direction: column;
  padding: 20px;
  text-decoration: none;
  box-shadow: 0 12px 34px rgba(22, 32, 31, 0.08);
}

.available-card:hover {
  border-color: rgba(31, 111, 88, 0.45);
  transform: translateY(-1px);
}

.available-card h3 {
  margin: 4px 0 0;
  font-size: 23px;
  line-height: 1.1;
}

.available-card p {
  color: var(--muted);
  line-height: 1.5;
}

.open-label {
  margin-top: auto;
  color: var(--green);
  font-weight: 900;
}

.starter-grid article {
  min-height: 210px;
  padding: 22px;
}

.starter-grid span {
  display: block;
  margin-bottom: 34px;
  color: var(--gold);
  font-weight: 900;
}

.starter-grid h3,
.training-card h3,
.source-item h3,
.call-panel h3 {
  margin: 0;
  font-size: 21px;
  line-height: 1.15;
}

.workspace-dock {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  display: grid;
  justify-items: end;
  gap: 12px;
  pointer-events: none;
}

.workspace-dock button,
.workspace-dock a,
.workspace-dock input,
.workspace-dock [contenteditable="true"] {
  pointer-events: auto;
}

.workspace-fab {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 10px 14px 10px 10px;
  border: 1px solid rgba(22, 32, 31, 0.16);
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  box-shadow: 0 18px 45px rgba(22, 32, 31, 0.22);
  cursor: pointer;
}

.workspace-fab span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  font-size: 22px;
  line-height: 1;
}

.workspace-fab strong {
  font-size: 14px;
}

.workspace-panel {
  width: min(760px, calc(100vw - 36px));
  max-height: min(680px, calc(100vh - 100px));
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 24px 70px rgba(22, 32, 31, 0.26);
  pointer-events: auto;
}

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

.workspace-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.workspace-panel-header span {
  display: block;
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.workspace-panel-header strong {
  display: block;
  margin-top: 3px;
  font-size: 22px;
}

.workspace-close {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--muted);
  font-size: 20px;
  cursor: pointer;
}

.workspace-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}

.workspace-view {
  display: none;
}

.workspace-view:not(.active) {
  display: none !important;
}

.workspace-view.active {
  display: grid;
}

.workspace-tabs button,
.workspace-tabs a {
  min-height: 36px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--green-dark);
  font: inherit;
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}

.workspace-tabs button.active {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.workspace-notes {
  min-height: 0;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
}

.notes-sidebar {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  border-right: 1px solid var(--line);
  background: #f8faf7;
}

.new-note-button {
  min-height: 40px;
  border: 1px solid var(--green);
  border-radius: 6px;
  background: var(--green);
  color: #fff;
  font-weight: 850;
  cursor: pointer;
}

.notes-list {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 8px;
  overflow: auto;
}

.notes-list button {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.notes-list button.active {
  border-color: var(--green);
  background: var(--soft);
}

.notes-list strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notes-list span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.note-editor-shell {
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto minmax(180px, 1fr) auto;
}

.note-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  padding: 0 12px 0 0;
  border-bottom: 1px solid var(--line);
}

.note-title-input {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border: 0;
  color: var(--ink);
  font: inherit;
  font-size: 20px;
  font-weight: 850;
  outline: none;
}

.note-title-time {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.note-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
}

.note-toolbar button {
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.note-editor {
  min-height: 220px;
  padding: 16px;
  overflow: auto;
  outline: none;
  line-height: 1.55;
}

.note-editor:empty::before {
  content: attr(data-placeholder);
  color: #98a19d;
}

.note-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  border-top: 1px solid var(--line);
}

.note-save-state {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.delete-note-button {
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--red);
  font-weight: 850;
  cursor: pointer;
}

.workspace-jasmine {
  min-height: 0;
  grid-template-rows: minmax(260px, 1fr) auto;
}

.jasmine-thread {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 16px;
  overflow: auto;
  background: #f8faf7;
}

.jasmine-message {
  max-width: 88%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.jasmine-message.user {
  justify-self: end;
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.jasmine-message strong {
  display: block;
  margin-bottom: 5px;
  font-size: 13px;
}

.jasmine-message p {
  margin: 0;
  color: inherit;
  line-height: 1.5;
}

.jasmine-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid var(--line);
  background: var(--panel);
}

.jasmine-input {
  width: 100%;
  min-height: 48px;
  max-height: 130px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  font: inherit;
  resize: vertical;
}

.jasmine-form button {
  align-self: end;
  min-height: 42px;
  padding: 9px 13px;
  border: 1px solid var(--green);
  border-radius: 6px;
  background: var(--green);
  color: #fff;
  font-weight: 850;
  cursor: pointer;
}

.starter-grid p,
.training-card p,
.source-item p {
  color: var(--muted);
  line-height: 1.5;
}

.search-box {
  display: grid;
  gap: 6px;
  min-width: min(360px, 100%);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.search-box input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 14px;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
}

.card-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.training-card {
  min-height: 340px;
  padding: 18px;
  display: flex;
  flex-direction: column;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.pill,
.status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.pill {
  background: var(--soft);
  color: var(--muted);
}

.status.available {
  background: rgba(31, 111, 88, 0.14);
  color: var(--green);
}

.status.blueprint {
  background: rgba(46, 123, 132, 0.14);
  color: var(--teal);
}

.status.ready {
  background: rgba(31, 111, 88, 0.14);
  color: var(--green);
}

.status.queued,
.status.planned {
  background: rgba(177, 129, 44, 0.16);
  color: var(--gold);
}

.status.later {
  background: rgba(154, 77, 66, 0.12);
  color: var(--red);
}

.sources {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 16px;
}

.sources span {
  padding: 5px 8px;
  border-radius: 5px;
  background: var(--soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.next-step {
  margin-bottom: 0;
  font-size: 14px;
}

.call-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
}

.call-panel > div {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  min-height: 30px;
  padding-left: 34px;
  color: var(--muted);
  line-height: 1.4;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--green);
}

.check-list li::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  width: 7px;
  height: 11px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.topic-bars {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.topic-label {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 14px;
}

.topic-label strong {
  color: var(--ink);
}

.bar-track {
  height: 11px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--soft);
}

.bar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--teal));
}

.source-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.source-item {
  padding: 18px;
}

.source-item > div {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.source-item span {
  color: var(--green);
  font-weight: 900;
  white-space: nowrap;
}

.roadmap {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: roadmap;
}

.roadmap li {
  position: relative;
  min-height: 210px;
  padding: 64px 18px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  counter-increment: roadmap;
}

.roadmap li::before {
  content: counter(roadmap, decimal-leading-zero);
  position: absolute;
  top: 18px;
  left: 18px;
  color: var(--gold);
  font-weight: 900;
}

.roadmap strong,
.roadmap span {
  display: block;
}

.roadmap strong {
  font-size: 17px;
  line-height: 1.2;
}

.roadmap span {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.45;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px clamp(20px, 4vw, 56px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

@media (max-width: 1180px) {
  .card-grid,
  .source-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .roadmap {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .topbar,
  .section-heading.split,
  .call-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar {
    position: static;
    gap: 10px;
    padding: 12px 14px;
  }

  .topbar .eyebrow {
    display: none;
  }

  nav {
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  nav::-webkit-scrollbar {
    display: none;
  }

  nav a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    padding: 8px 12px;
    font-size: 13px;
    white-space: nowrap;
  }

  .shelf-hero {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
    padding: 24px 16px 18px;
  }

  .shelf-hero h2 {
    font-size: 34px;
    line-height: 1.04;
  }

  .shelf-description {
    margin-top: 8px;
    font-size: 15px;
    line-height: 1.4;
  }

  .shelf-hero .section-count {
    align-self: flex-start;
  }

  .section {
    padding: 26px 16px;
  }

  .asset-list {
    gap: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .asset-card {
    position: relative;
    gap: 4px;
    padding: 16px 38px 16px 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
  }

  .asset-card:last-child {
    border-bottom: 0;
  }

  .asset-card::after {
    content: ">";
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 22px;
    font-weight: 400;
  }

  .asset-card span {
    font-size: 11px;
  }

  .asset-card strong {
    font-size: 18px;
    line-height: 1.2;
  }

  .asset-card p {
    font-size: 14px;
    line-height: 1.35;
  }

  .directory-list a {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .directory-list small {
    grid-column: 1;
    grid-row: auto;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .starter-grid,
  .available-grid,
  .card-grid,
  .portal-grid,
  .source-list,
  .roadmap {
    grid-template-columns: 1fr;
  }

  .call-panel {
    display: grid;
    grid-template-columns: 1fr;
  }

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

@media (max-width: 520px) {
  .topbar {
    gap: 14px;
  }

  nav {
    width: 100%;
  }

  nav a {
    text-align: center;
  }

  .has-auto-mobile-picker .lesson-nav {
    display: none;
  }

  .auto-mobile-lesson-picker {
    display: grid;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
  }

  .auto-mobile-lesson-picker label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 850;
  }

  .auto-mobile-lesson-picker select {
    width: 100%;
    min-height: 44px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-weight: 800;
  }

  .transcript-reader {
    max-height: 48vh;
    padding: 6px;
  }

  .transcript-line {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 10px 8px;
  }

  .transcript-time {
    font-size: 11px;
  }

  .transcript-text {
    font-size: 14px;
  }

  .hero h2 {
    font-size: 38px;
  }

  .button {
    width: 100%;
  }

  footer {
    flex-direction: column;
  }

  .workspace-dock {
    right: 12px;
    bottom: 12px;
  }

  .workspace-panel {
    width: calc(100vw - 24px);
    max-height: calc(100vh - 84px);
  }

  .workspace-notes {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .notes-sidebar {
    max-height: 170px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .workspace-fab strong {
    display: none;
  }

  .workspace-fab {
    padding: 9px;
  }
}

@media (pointer: coarse) {
  button,
  a.button,
  a.small-button,
  .copy-button,
  .backlink {
    min-height: 44px !important;
  }

  .backlink {
    align-items: center;
  }

  input[type="checkbox"],
  input[type="radio"] {
    width: 22px;
    height: 22px;
    min-width: 22px;
  }

  label:has(> input[type="checkbox"]),
  label:has(> input[type="radio"]) {
    min-height: 44px;
    align-items: center;
  }
}
