:root {
  --brand: #4d00b2;
  --brand-dark: #3a0080;
  --brand-surface: #ebe4f6;
  --mint: #28b1c2;
  --mint-soft: #e8f8fa;
  --mint-text: #0d6b7a;
  --blue-soft: #edf6ff;
  --blue-ring: #d6f0ff;
  --orange: #ff932e;
  --orange-soft: #fff2e8;
  --orange-text: #cc6e1a;
  --orange-muted: rgba(200, 120, 58, 0.45);
  --red: #e50039;
  --page: #f7fafb;
  --card: #ffffff;
  --ink: #111111;
  --muted: rgba(0, 0, 0, 0.62);
  --copy: rgba(0, 0, 0, 0.66);
  --copy-soft: rgba(0, 0, 0, 0.58);
  --faint: rgba(0, 0, 0, 0.08);
  --line: rgba(0, 0, 0, 0.07);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--page);
  color: var(--ink);
  font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

body.auth-locked {
  overflow: hidden;
}

button,
input {
  font: inherit;
  letter-spacing: 0;
}

button {
  cursor: pointer;
}

.headliner-shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  width: 200px;
  min-width: 200px;
  height: 100vh;
  overflow-y: auto;
  background: var(--brand);
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 50px;
  padding: 15px 16px;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  text-decoration: none;
}

.zinit-mark {
  flex: 0 0 auto;
}

.zinit-wordmark {
  color: rgba(255, 255, 255, 0.92);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.sidebar-nav {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 1px;
  padding: 14px 8px;
}

.side-section {
  padding: 10px 10px 3px;
  color: rgba(255, 255, 255, 0.22);
  font-size: 8px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.side-item {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 32px;
  padding: 8px 10px;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 12px;
  font-weight: 400;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease;
}

.side-item span {
  width: 13px;
  color: inherit;
  font-size: 13px;
  text-align: center;
  opacity: 0.6;
}

.side-item.active {
  background: rgba(40, 177, 194, 0.25);
  color: #fff;
  font-weight: 500;
}

.side-item.active span {
  color: var(--mint);
  opacity: 1;
}

.side-item:hover,
.side-item:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  outline: none;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 55px;
  padding: 13px;
  border-top: 0.5px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
}

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
}

.page-shell {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  background: var(--page);
}

.page-header {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 46px;
  min-height: 46px;
  padding: 0 22px;
  border-bottom: 0.5px solid var(--line);
  background: #fff;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(0, 0, 0, 0.35);
  font-size: 11px;
}

.breadcrumb strong {
  color: rgba(0, 0, 0, 0.75);
  font-weight: 500;
}

.slash {
  color: rgba(0, 0, 0, 0.18);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.auth-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  flex-direction: column;
  background: var(--page);
}

.auth-screen.show {
  display: flex;
}

.auth-top,
.auth-bottom {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  padding: 34px 24px;
}

.auth-top {
  flex: 1;
  background: #fff;
}

.auth-bottom {
  flex: 1;
  background: var(--brand-surface);
}

.auth-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.auth-product-name {
  margin-top: 15px;
  color: var(--brand);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3.5px;
  text-transform: uppercase;
}

.auth-divider {
  width: 1px;
  height: 52px;
  margin-top: 16px;
  background: rgba(77, 0, 178, 0.18);
}

.auth-product-title {
  margin: 16px 0 4px;
  color: #12102a;
  font-size: 42px;
  font-weight: 500;
  line-height: 1.05;
}

.auth-product-sub {
  margin: 0;
  color: var(--brand);
  font-size: 13px;
  font-weight: 400;
}

.auth-card {
  width: min(100%, 370px);
  text-align: center;
}

.auth-step[hidden] {
  display: none;
}

.auth-title {
  margin: 0 0 6px;
  color: #12102a;
  font-size: 15px;
  font-weight: 500;
}

.auth-kicker,
.auth-sub {
  margin: 0;
  color: rgba(18, 16, 42, 0.5);
  font-size: 12px;
  line-height: 1.55;
}

.auth-sub {
  margin-bottom: 16px;
}

.auth-kicker {
  margin-bottom: 6px;
  color: var(--mint-text);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.auth-input,
.auth-code-input {
  width: 100%;
  border: 1px solid rgba(77, 0, 178, 0.18);
  border-radius: 8px;
  background: #fff;
  color: #12102a;
  outline: none;
  box-sizing: border-box;
}

.auth-input {
  min-height: 44px;
  padding: 11px 14px;
  font-size: 14px;
}

.auth-code-input {
  min-height: 50px;
  padding: 10px 0;
  font-size: 24px;
  letter-spacing: 9px;
  text-align: center;
}

.auth-input:focus,
.auth-code-input:focus {
  border-color: rgba(77, 0, 178, 0.45);
  box-shadow: 0 0 0 3px rgba(77, 0, 178, 0.08);
}

.auth-error,
.auth-hint {
  min-height: 18px;
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.35;
}

.auth-error {
  color: var(--red);
}

.auth-hint {
  color: var(--mint-text);
}

.auth-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  transition: background 160ms ease, opacity 160ms ease;
}

.auth-primary:hover,
.auth-primary:focus-visible {
  background: var(--brand-dark);
  outline: none;
}

.auth-primary:disabled {
  cursor: default;
  opacity: 0.42;
}

.auth-domain-badge {
  display: inline-flex;
  margin-top: 14px;
  padding: 6px 12px;
  border: 0.5px solid rgba(40, 177, 194, 0.28);
  border-radius: 8px;
  background: rgba(40, 177, 194, 0.12);
  color: var(--mint-text);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.auth-access-note {
  margin-top: 16px;
  color: rgba(18, 16, 42, 0.36);
  font-size: 11px;
  line-height: 1.5;
}

.auth-link-button {
  width: 100%;
  margin-top: 12px;
  border: 0;
  background: transparent;
  color: rgba(18, 16, 42, 0.48);
  font-size: 11px;
}

.auth-link-button:hover,
.auth-link-button:focus-visible {
  color: var(--brand);
  outline: none;
}

.auth-user-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding: 4px 4px 4px 10px;
  border: 0.5px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.auth-user-badge[hidden] {
  display: none;
}

.auth-user-badge span {
  max-width: 190px;
  overflow: hidden;
  color: rgba(0, 0, 0, 0.58);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-user-badge button {
  min-height: 22px;
  padding: 3px 8px;
  border: 0;
  border-radius: 999px;
  background: var(--brand-surface);
  color: var(--brand);
  font-size: 10px;
  font-weight: 600;
}

.search-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 5px 10px;
  border: 0;
  border-radius: 5px;
  background: var(--page);
  color: rgba(0, 0, 0, 0.38);
  font-size: 11px;
}

kbd {
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.06);
  color: rgba(0, 0, 0, 0.42);
  font-size: 8px;
  font-family: inherit;
}

.quiet-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 0.5px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: rgba(0, 0, 0, 0.5);
  font-size: 11px;
  font-weight: 700;
}

.quiet-action:hover,
.quiet-action:focus-visible,
.search-hint:hover,
.search-hint:focus-visible {
  color: var(--brand);
  outline: 2px solid rgba(77, 0, 178, 0.12);
}

.header-avatar {
  background: var(--brand);
}

.course-root {
  flex: 1;
  min-width: 0;
  padding: 20px 24px 44px;
  outline: none;
}

.course-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 292px;
  gap: 14px;
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
}

.hero-block,
.white-card,
.nav-card,
.practice-card,
.quiz-card {
  border: 0.5px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}

.hero-block {
  position: relative;
  overflow: hidden;
  min-height: 214px;
  padding: 24px 28px;
  border-left: 3px solid var(--orange);
  border-bottom: 2px solid var(--mint);
  border-radius: 12px;
}

.purple-hero {
  background: var(--brand);
  color: #fff;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.label {
  margin: 0 0 9px;
  color: rgba(0, 0, 0, 0.32);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}

.purple-hero .label {
  color: rgba(235, 228, 246, 0.58);
}

.brush-rule {
  width: 26px;
  height: 2px;
  margin-bottom: 11px;
  border-radius: 1px;
  background: rgba(255, 147, 46, 0.8);
}

.title {
  margin: 0;
  font-family: "Noto Serif JP", "Roboto", sans-serif;
  font-size: 30px;
  font-weight: 300;
  line-height: 1.22;
}

.subtitle {
  max-width: 680px;
  margin: 9px 0 0;
  color: var(--copy);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.7;
}

.purple-hero .subtitle {
  color: rgba(235, 228, 246, 0.72);
}

.ring-field {
  position: absolute;
  right: -12px;
  bottom: -50px;
  width: 178px;
  height: 178px;
  pointer-events: none;
}

.ring {
  position: absolute;
  border: 1px solid;
  border-radius: 50%;
  opacity: 0.06;
}

.ring.one {
  inset: 0;
  border-color: var(--orange);
}

.ring.two {
  inset: 30px;
  border-color: var(--mint);
}

.ring.three {
  inset: 62px;
  border-color: var(--blue-ring);
}

.purple-hero .ring {
  border-color: #fff;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 20px;
}

.primary-button,
.secondary-button,
.ghost-button,
.choice-button,
.tab-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.primary-button {
  border: 0;
  background: var(--mint);
  color: #fff;
  padding: 9px 16px;
}

.secondary-button {
  border: 0.5px solid rgba(77, 0, 178, 0.18);
  background: var(--brand-surface);
  color: var(--brand);
  padding: 9px 14px;
}

.ghost-button {
  border: 0.5px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  color: rgba(0, 0, 0, 0.58);
  padding: 9px 14px;
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.choice-button:hover,
.primary-button:focus-visible,
.secondary-button:focus-visible,
.ghost-button:focus-visible,
.choice-button:focus-visible {
  outline: none;
  transform: translateY(-1px);
}

.primary-button:hover,
.primary-button:focus-visible {
  background: #229aa8;
}

.secondary-button:hover,
.secondary-button:focus-visible {
  border-color: rgba(77, 0, 178, 0.28);
}

.ghost-button:hover,
.ghost-button:focus-visible,
.choice-button:hover,
.choice-button:focus-visible {
  border-color: rgba(40, 177, 194, 0.42);
  color: rgba(0, 0, 0, 0.75);
}

.dashboard-stack,
.module-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.side-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.white-card,
.nav-card,
.practice-card,
.quiz-card {
  border-radius: 10px;
}

.white-card {
  padding: 16px;
}

.nav-card {
  padding: 14px 16px;
  border-left: 3px solid var(--brand);
}

.module-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.mission-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  width: 100%;
  min-height: 42px;
  padding: 7px 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  text-align: left;
}

.mission-row:hover,
.mission-row:focus-visible,
.mission-row.active {
  background: var(--brand-surface);
  outline: none;
}

.mission-row.done {
  background: var(--mint-soft);
}

.mission-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
}

.mission-row.done .mission-dot {
  background: var(--mint);
}

.mission-title {
  display: block;
  overflow: hidden;
  color: rgba(0, 0, 0, 0.75);
  font-size: 11px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mission-meta {
  display: block;
  margin-top: 1px;
  color: rgba(0, 0, 0, 0.36);
  font-size: 9px;
}

.tiny-status {
  color: var(--mint-text);
  font-size: 9px;
  font-weight: 700;
}

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

.stat-card {
  padding: 14px 16px;
  border: 0.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.stat-number {
  display: block;
  color: var(--brand);
  font-size: 26px;
  font-weight: 500;
  line-height: 1;
}

.stat-label,
.small-note {
  color: var(--copy-soft);
  font-size: 10px;
  line-height: 1.5;
}

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

.module-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 164px;
  padding: 16px;
  border: 0.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.module-card h3,
.practice-card h3,
.quiz-card h3,
.white-card h3,
.nav-card h3 {
  margin: 0;
  color: rgba(0, 0, 0, 0.78);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
}

.module-card p,
.practice-card p,
.quiz-card p,
.white-card p {
  margin: 0;
  color: var(--copy);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.65;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 3px 9px;
  border-radius: 20px;
  background: var(--brand-surface);
  color: var(--brand);
  font-size: 10px;
  font-weight: 500;
}

.tag.mint {
  background: var(--mint-soft);
  color: var(--mint-text);
}

.tag.blue {
  background: var(--blue-soft);
  color: #005580;
}

.tag.orange {
  background: var(--orange-soft);
  color: var(--orange-text);
}

.tabbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
}

.tab-button {
  min-height: 32px;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.68);
  padding: 7px 12px;
}

.tab-button.active {
  background: #fff;
  color: var(--brand);
}

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

.concept-card {
  padding: 14px 16px;
  border: 0.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.concept-card h3 {
  margin: 0 0 7px;
  color: rgba(0, 0, 0, 0.76);
  font-size: 13px;
  font-weight: 500;
}

.concept-card p,
.concept-card li {
  color: var(--copy);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.65;
}

.concept-card p {
  margin: 0;
}

.concept-card ul,
.practice-card ul,
.result-card ul {
  margin: 8px 0 0;
  padding-left: 16px;
}

.wide {
  grid-column: 1 / -1;
}

.snapshot {
  padding: 14px 16px;
  border: 0.5px solid rgba(0, 130, 200, 0.12);
  border-left: 2px solid rgba(214, 240, 255, 0.8);
  border-radius: 0 9px 9px 0;
  background: var(--blue-soft);
}

.snapshot p {
  margin: 0;
  color: rgba(0, 54, 108, 0.84);
  font-size: 11px;
  font-style: italic;
  font-weight: 400;
  line-height: 1.65;
}

.orange-rule {
  height: 1px;
  margin: 4px 0;
  background: var(--orange-muted);
}

.field-manual {
  display: grid;
  gap: 12px;
}

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

.manual-card {
  padding: 14px 16px;
  border: 0.5px solid var(--line);
  border-left: 3px solid var(--orange);
  border-radius: 10px;
  background: #fff;
}

.manual-card h3 {
  margin: 10px 0 7px;
  color: rgba(0, 0, 0, 0.78);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
}

.manual-card p,
.manual-card li {
  color: var(--copy);
  font-size: 11px;
  line-height: 1.65;
}

.manual-card p {
  margin: 0;
}

.manual-card ul {
  margin: 9px 0 0;
  padding-left: 16px;
}

.practice-card,
.quiz-card {
  padding: 16px;
}

.choice-button {
  justify-content: flex-start;
  width: 100%;
  min-height: 42px;
  border: 0.5px solid rgba(0, 0, 0, 0.09);
  background: #fff;
  color: rgba(0, 0, 0, 0.66);
  padding: 10px 12px;
  text-align: left;
}

.choice-button.selected {
  border-color: rgba(40, 177, 194, 0.46);
  background: var(--mint-soft);
  color: var(--mint-text);
}

.choice-button.correct {
  border-color: rgba(21, 128, 61, 0.28);
  background: rgba(21, 128, 61, 0.08);
  color: #15803d;
}

.choice-button.wrong {
  border-color: rgba(229, 0, 57, 0.26);
  background: rgba(229, 0, 57, 0.07);
  color: var(--red);
}

.result-card {
  margin-top: 12px;
  padding: 14px 16px;
  border: 0.5px solid var(--line);
  border-left: 3px solid var(--orange);
  border-radius: 10px;
  background: #fff;
}

.result-card h3 {
  margin: 0 0 7px;
  color: rgba(0, 0, 0, 0.78);
  font-size: 14px;
  font-weight: 500;
}

.result-card p,
.result-card li {
  color: var(--copy);
  font-size: 11px;
  line-height: 1.65;
}

.range-box {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.range-row {
  display: grid;
  gap: 7px;
}

.range-row label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: rgba(0, 0, 0, 0.66);
  font-size: 11px;
  font-weight: 500;
}

input[type="range"] {
  accent-color: var(--mint);
}

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

.timeline-step {
  min-height: 96px;
  padding: 12px;
  border: 0.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.timeline-step strong {
  display: block;
  margin-bottom: 7px;
  color: rgba(0, 0, 0, 0.72);
  font-size: 12px;
  font-weight: 500;
}

.timeline-step span {
  color: var(--copy-soft);
  font-size: 10px;
  line-height: 1.55;
}

.rfp-visual {
  width: 100%;
  max-height: 500px;
  object-fit: contain;
  border: 0.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

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

.dashboard-visual {
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  border: 0.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.dashboard-visual.tall {
  max-height: 520px;
}

.source-board {
  display: grid;
  gap: 14px;
}

.source-banner,
.source-card {
  position: relative;
  padding: 14px 16px;
  border: 0.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.source-banner {
  border-left: 3px solid var(--mint);
  background: linear-gradient(180deg, #fff 0%, var(--mint-soft) 100%);
}

.source-banner h3,
.source-card h3 {
  margin: 7px 0;
  color: rgba(0, 0, 0, 0.78);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
}

.source-banner p,
.source-card p,
.source-card li,
.source-detail p,
.source-detail li,
.source-detail small,
.definition-row span,
.source-table-row span,
.source-table-row em,
.source-links span {
  color: var(--copy);
  font-size: 11px;
  font-style: normal;
  line-height: 1.65;
}

.source-banner p,
.source-card p {
  margin: 0;
}

.source-card ul,
.source-card ol,
.source-detail ul,
.source-detail ol {
  margin: 9px 0 0;
  padding-left: 17px;
}

.source-path,
.source-note,
.source-quote {
  display: block;
  margin-top: 9px;
  padding-top: 9px;
  border-top: 0.5px solid var(--line);
  color: var(--copy-soft);
  font-size: 10px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.source-quote {
  color: rgba(0, 54, 108, 0.84);
  font-style: italic;
}

.source-section {
  display: grid;
  gap: 10px;
}

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

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

.source-card.quote {
  border-left: 3px solid var(--blue-ring);
  background: var(--blue-soft);
}

.source-detail-list {
  display: grid;
  gap: 8px;
}

.source-detail {
  overflow: hidden;
  border: 0.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.source-detail summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 11px 14px;
  cursor: pointer;
  list-style: none;
}

.source-detail summary::-webkit-details-marker {
  display: none;
}

.source-detail summary::after {
  content: "+";
  color: var(--brand);
  font-size: 15px;
  font-weight: 500;
}

.source-detail[open] summary::after {
  content: "-";
}

.source-detail strong,
.definition-row strong,
.source-table-row strong {
  color: rgba(0, 0, 0, 0.78);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
}

.source-detail p,
.source-detail ul,
.source-detail ol {
  padding: 0 14px 12px;
}

.source-detail ul,
.source-detail ol {
  padding-left: 31px;
}

.source-detail p + ul,
.source-detail p + ol {
  padding-top: 0;
}

.definition-list,
.source-table,
.source-links {
  display: grid;
  gap: 7px;
}

.definition-row,
.source-table-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.9fr) minmax(0, 1.5fr) minmax(64px, auto);
  gap: 10px;
  align-items: start;
  padding: 10px 12px;
  border: 0.5px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.definition-row {
  grid-template-columns: minmax(120px, 0.7fr) minmax(0, 1.8fr);
}

.source-table-row em {
  display: inline-flex;
  justify-content: center;
  min-width: 48px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--brand-surface);
  color: var(--brand);
  font-weight: 500;
  text-align: center;
}

.source-links a {
  display: grid;
  gap: 3px;
  padding: 9px 10px;
  border: 0.5px solid var(--line);
  border-radius: 8px;
  color: var(--brand);
  text-decoration: none;
}

.source-links a:hover,
.source-links a:focus-visible {
  border-color: rgba(77, 0, 178, 0.22);
  outline: none;
}

.source-links span {
  overflow-wrap: anywhere;
}

.example-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  overflow: visible;
}

.example-card img {
  margin: 10px 0;
}

.kommo-board {
  display: grid;
  gap: 12px;
}

.kommo-context-stack {
  display: grid;
  gap: 14px;
}

.kommo-context-section {
  display: grid;
  gap: 10px;
}

.kommo-section-heading {
  padding: 14px 16px;
  border: 0.5px solid var(--line);
  border-left: 3px solid var(--mint);
  border-radius: 10px;
  background: #fff;
}

.kommo-section-heading h3 {
  margin: 7px 0;
  color: rgba(0, 0, 0, 0.78);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
}

.kommo-section-heading p,
.kommo-context-copy p,
.kommo-inline-video p {
  margin: 0;
  color: var(--copy);
  font-size: 11px;
  line-height: 1.65;
}

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

.kommo-context-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(360px, 1.08fr);
  gap: 12px;
  align-items: start;
  padding: 12px;
  border: 0.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.kommo-context-copy {
  display: grid;
  gap: 9px;
  min-width: 0;
  padding: 2px 4px;
}

.kommo-context-copy h3,
.kommo-inline-video h3 {
  margin: 0;
  color: rgba(0, 0, 0, 0.78);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
}

.kommo-context-copy ul {
  margin: 0;
  padding-left: 17px;
}

.kommo-context-copy li {
  color: var(--copy);
  font-size: 11px;
  line-height: 1.65;
}

.flow-steps.inline {
  margin-top: 3px;
  padding-top: 9px;
  border-top: 0.5px solid var(--line);
}

.kommo-media-shelf {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.kommo-inline-video {
  overflow: hidden;
  border: 0.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.kommo-inline-video h3,
.kommo-inline-video p,
.kommo-inline-video .tag-row {
  padding: 0 12px;
}

.kommo-inline-video .course-video {
  margin-bottom: 10px;
}

.screenshot-set.inline {
  background: var(--page);
}

.screenshot-grid.inline {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.kpi-board {
  display: grid;
  gap: 12px;
}

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

.kpi-formula-card {
  padding: 14px 16px;
  border: 0.5px solid var(--line);
  border-left: 3px solid var(--mint);
  border-radius: 10px;
  background: #fff;
}

.kpi-formula-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--brand);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.25;
}

.kpi-formula-card p {
  margin: 0;
  color: var(--copy);
  font-size: 11px;
  line-height: 1.6;
}

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

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

.driver-card,
.pulse-card {
  padding: 14px 16px;
  border: 0.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.metric-list {
  display: grid;
  gap: 8px;
}

.metric-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: start;
  padding-top: 9px;
  border-top: 0.5px solid var(--line);
}

.metric-code,
.metric-weight {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  border-radius: 20px;
  background: var(--brand-surface);
  color: var(--brand);
  font-size: 10px;
  font-weight: 700;
}

.metric-weight {
  min-width: 48px;
  padding: 3px 8px;
  background: var(--orange-soft);
  color: var(--orange-text);
}

.metric-row h3,
.pulse-card h3 {
  margin: 0 0 5px;
  color: rgba(0, 0, 0, 0.76);
  font-size: 12px;
  font-weight: 500;
}

.metric-row p,
.pulse-card p {
  margin: 0;
  color: var(--copy);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.6;
}

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

.playbook-section,
.flow-card,
.video-card {
  border: 0.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.playbook-section {
  padding: 14px 16px;
}

.playbook-list {
  display: grid;
  gap: 9px;
}

.playbook-item {
  padding-top: 9px;
  border-top: 0.5px solid var(--line);
}

.playbook-item h3,
.flow-step h3,
.video-card h3 {
  margin: 0 0 5px;
  color: rgba(0, 0, 0, 0.76);
  font-size: 12px;
  font-weight: 500;
}

.playbook-item p,
.flow-step p,
.video-card p {
  margin: 0;
  color: var(--copy);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.6;
}

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

.flow-card {
  padding: 14px 16px;
}

.flow-steps {
  display: grid;
  gap: 8px;
}

.flow-step {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  min-height: 56px;
}

.flow-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand-surface);
  color: var(--brand);
  font-size: 9px;
  font-weight: 700;
}

.video-card {
  overflow: hidden;
  padding: 0 0 14px;
}

.media-heading {
  display: grid;
  gap: 4px;
  padding-top: 4px;
}

.media-heading p:last-child {
  margin: 0;
  color: var(--copy-soft);
  font-size: 11px;
  line-height: 1.55;
}

.video-card h3,
.video-card p,
.video-card .tag-row {
  padding: 0 14px;
}

.course-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: 12px;
  background: #000;
}

.screenshot-library {
  display: grid;
  gap: 10px;
}

.screenshot-set {
  overflow: visible;
  border: 0.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.screenshot-set summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  padding: 12px 16px;
  cursor: pointer;
  list-style: none;
}

.screenshot-set summary::-webkit-details-marker {
  display: none;
}

.screenshot-set summary::after {
  content: "+";
  color: var(--brand);
  font-size: 16px;
  font-weight: 500;
}

.screenshot-set[open] summary::after {
  content: "-";
}

.screenshot-set strong {
  display: block;
  color: rgba(0, 0, 0, 0.78);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
}

.screenshot-set small {
  display: block;
  margin-top: 2px;
  color: var(--copy-soft);
  font-size: 10px;
  line-height: 1.45;
}

.screenshot-set > p {
  margin: 0;
  padding: 0 16px 12px;
  color: var(--copy);
  font-size: 11px;
  line-height: 1.6;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 0 16px 16px;
  overflow: visible;
}

.screenshot-card {
  position: relative;
  z-index: 0;
  overflow: visible;
  margin: 0;
  border: 0.5px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.screenshot-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: var(--page);
  border-bottom: 0.5px solid var(--line);
}

.screenshot-card figcaption {
  padding: 6px 8px;
  color: var(--copy-soft);
  font-size: 9px;
  line-height: 1;
}

@media (hover: hover) and (pointer: fine) {
  .concept-card,
  .source-card,
  .screenshot-card {
    position: relative;
  }

  .rfp-visual,
  .dashboard-visual,
  .screenshot-card img {
    transform-origin: center top;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  }

  .rfp-visual:hover,
  .dashboard-visual:hover,
  .screenshot-card img:hover {
    cursor: zoom-in;
  }

  .concept-card:has(.dashboard-visual:hover),
  .source-card:has(.dashboard-visual:hover) {
    z-index: 18;
  }

  .dashboard-visual:hover,
  .rfp-visual:hover {
    transform: scale(1.55);
    border-color: rgba(77, 0, 178, 0.25);
    box-shadow: 0 18px 48px rgba(17, 17, 17, 0.22);
    background: #fff;
  }

  .screenshot-card:hover {
    z-index: 24;
  }

  .screenshot-card img:hover {
    transform: scale(2.25);
    border-color: rgba(77, 0, 178, 0.25);
    box-shadow: 0 18px 48px rgba(17, 17, 17, 0.24);
    background: #fff;
  }
}

.review-prompt {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border: 0.5px solid rgba(255, 147, 46, 0.28);
  border-left: 3px solid var(--orange);
  border-radius: 10px;
  background: var(--orange-soft);
}

.review-prompt.done {
  border-color: rgba(40, 177, 194, 0.25);
  border-left-color: var(--mint);
  background: var(--mint-soft);
}

.review-prompt h3,
.review-complete-card h3 {
  margin: 6px 0;
  color: rgba(0, 0, 0, 0.78);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
}

.review-prompt p,
.review-complete-card p,
.review-question p {
  margin: 0;
  color: var(--copy);
  font-size: 11px;
  line-height: 1.65;
}

.review-card-stack,
.review-list {
  display: grid;
  gap: 12px;
}

.review-question,
.review-complete-card {
  padding: 14px 16px;
  border: 0.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.review-question h3 {
  margin: 10px 0;
  color: rgba(0, 0, 0, 0.78);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
}

.review-miss {
  margin-bottom: 10px !important;
  color: var(--copy-soft) !important;
}

.quiz-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quiz-question {
  padding: 14px 16px;
  border: 0.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.quiz-question h3 {
  margin: 0 0 10px;
  color: rgba(0, 0, 0, 0.75);
  font-size: 13px;
  font-weight: 500;
}

.feedback {
  min-height: 20px;
  margin-top: 8px;
  color: var(--copy-soft);
  font-size: 10px;
  line-height: 1.5;
}

.feedback.correct {
  color: #15803d;
}

.feedback.wrong {
  color: var(--red);
}

.completion-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 0.5px solid var(--line);
}

@media (max-width: 1060px) {
  .course-stage {
    grid-template-columns: 1fr;
  }

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

  .module-cards,
  .stats-strip,
  .lesson-grid,
  .two-col,
  .analytics-gallery,
  .source-grid,
  .source-grid.compact,
  .example-grid,
  .kommo-context-card,
  .kpi-formula-grid,
  .kpi-driver-grid,
  .pulse-strip,
  .playbook-grid,
  .flow-stack,
  .video-grid,
  .manual-grid,
  .screenshot-grid {
    grid-template-columns: 1fr;
  }

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

  .definition-row,
  .source-table-row {
    grid-template-columns: 1fr;
  }

  .screenshot-grid.inline {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .headliner-shell {
    display: block;
  }

  .sidebar {
    position: static;
    width: 100%;
    min-width: 0;
    height: auto;
  }

  .sidebar-nav {
    display: none;
  }

  .sidebar-user {
    display: none;
  }

  .brand-link {
    min-height: 44px;
  }

  .page-header {
    top: 0;
    padding: 0 14px;
  }

  .search-hint {
    display: none;
  }

  .course-root {
    padding: 14px 14px 36px;
  }

  .hero-block {
    padding: 20px;
  }

  .title {
    font-size: 24px;
  }

  .choice-grid,
  .timeline {
    grid-template-columns: 1fr;
  }
}
