﻿/* Product Design & UI/UX. Teaching Viewer (CourseOS-inspired) */

/* Fonts load via <link> in HTML (preconnect + stylesheet). Do not @import Google Fonts here. */
@import url("tokens.css");

*, *::before, *::after { box-sizing: border-box; }

/* Thin modern scrollbars � site-wide (portal, hubs, tables, drawers) */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) transparent;
}

*::-webkit-scrollbar {
  width: var(--scrollbar-size);
  height: var(--scrollbar-size);
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  background-color: var(--scrollbar-thumb);
  border-radius: 999px;
  border: 1px solid transparent;
  background-clip: padding-box;
}

*::-webkit-scrollbar-thumb:hover {
  background-color: var(--scrollbar-thumb-hover);
}

*::-webkit-scrollbar-corner {
  background: transparent;
}

*::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-deep);
  color: var(--text);
  overscroll-behavior: none;
  /* Keep in-page anchors and scrolled sections clear of the sticky header */
  scroll-padding-top: calc(var(--header-height) + 0.85rem);
  overflow-x: clip;
  max-width: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  background-color: var(--bg-deep);
  color: var(--text);
  line-height: var(--line);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overscroll-behavior: none;
  overflow-x: clip;
  max-width: 100%;
}

a {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

/* Serif headings, sans body */
h1, h2, .week-hero h1, .section h2, .part-divider h2,
.hub-hero h1, .hub-section-head h2, .hub h1 {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -0.02em;
}

h3, .section h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* ── Ambient background (hub + week viewer) ── */

.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-orb {
  position: absolute;
  width: min(55vw, 520px);
  height: min(55vw, 520px);
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
}

.ambient-orb--left {
  left: -12%;
  top: 18%;
  background: radial-gradient(circle, var(--glow-purple) 0%, transparent 70%);
}

.ambient-orb--right {
  right: -12%;
  top: 35%;
  background: radial-gradient(circle, var(--glow-blue) 0%, transparent 65%);
}

[data-theme="dark"] .ambient-orb {
  opacity: 0.7;
}

/* ── Week viewer layout (grid + fixed sidebar) ── */

.app {
  display: grid;
  grid-template-columns: var(--sidebar-offset) minmax(0, 1fr);
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  z-index: 1;
  transition: grid-template-columns 0.25s ease;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-width);
  height: 100vh;
  height: 100dvh;
  background: var(--sidebar-surface);
  border-right: 1px solid var(--border-strong);
  display: flex;
  flex-direction: column;
  z-index: 100;
  overflow: hidden;
  transition: transform 0.25s ease;
}

.sidebar-header {
  flex-shrink: 0;
  padding: 0.85rem 0.8rem 0.65rem;
}

.sidebar-header a {
  text-decoration: none;
  color: var(--text);
}

.sidebar-header .program {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  margin-bottom: 0.3rem;
  font-weight: 600;
}

.sidebar-header .week-label {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.sidebar-search {
  flex-shrink: 0;
  padding: 0 0.75rem 0.55rem;
}

.sidebar-search-field {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.25rem;
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  background: var(--surface-inset);
  border: 1px solid var(--border);
}

.sidebar-search-icon {
  flex-shrink: 0;
  width: 0.9rem;
  height: 0.9rem;
  color: var(--text-faint);
}

.sidebar-search-field input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 0.8125rem;
  color: var(--text);
  outline: none;
}

.sidebar-search-field input::placeholder {
  color: var(--text-faint);
}

.sidebar-search-kbd {
  flex-shrink: 0;
  font-family: var(--font-sans);
  font-size: 0.625rem;
  font-weight: 500;
  line-height: 1;
  padding: 0.28rem 0.4rem;
  border-radius: 4px;
  color: var(--text-faint);
  background: rgba(128, 128, 128, 0.12);
  border: 1px solid var(--border);
}

.sidebar-nav {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.35rem 0 0.75rem;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.nav-part {
  padding: 0.95rem 0.85rem 0.35rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.app .sidebar-nav > .nav-part:first-of-type {
  color: var(--text-faint);
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: none;
}

.app .sidebar-nav > .nav-part:nth-of-type(2) {
  color: var(--part-1);
}

.app .sidebar-nav > .nav-part:nth-of-type(3) {
  color: var(--part-2);
}

.app .sidebar-nav > .nav-part:nth-of-type(4) {
  color: var(--part-3);
}

.nav-part.is-filtered-out,
.nav-link.is-filtered-out {
  display: none;
}

.nav-link {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0.12rem 0.65rem;
  padding: 0.55rem 0.7rem;
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.35;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 8px;
  border-left: 2px solid transparent;
  transition:
    background var(--duration-fast) var(--ease-out),
    color var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out),
    transform var(--duration-fast) var(--ease-out);
}

.nav-link:has(.nav-link-icon)::before {
  display: none;
}

.nav-link-icon {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  margin-top: 0.1rem;
  color: inherit;
  opacity: 0.88;
}

.nav-link-label {
  flex: 1;
  min-width: 0;
}

.nav-link::before {
  content: "";
  flex-shrink: 0;
  width: 0.875rem;
  height: 1rem;
  margin-top: 0.05rem;
  opacity: 0.45;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 16' fill='none'%3E%3Cpath d='M3 1.5h8a1.5 1.5 0 0 1 1.5 1.5v10A1.5 1.5 0 0 1 11 14.5H3A1.5 1.5 0 0 1 1.5 13V3A1.5 1.5 0 0 1 3 1.5Z' stroke='black' stroke-width='1.25'/%3E%3Cpath d='M4.5 5h5M4.5 7.25h5M4.5 9.5h3.25' stroke='black' stroke-width='1.25' stroke-linecap='round'/%3E%3C/svg%3E")
    center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 16' fill='none'%3E%3Cpath d='M3 1.5h8a1.5 1.5 0 0 1 1.5 1.5v10A1.5 1.5 0 0 1 11 14.5H3A1.5 1.5 0 0 1 1.5 13V3A1.5 1.5 0 0 1 3 1.5Z' stroke='black' stroke-width='1.25'/%3E%3Cpath d='M4.5 5h5M4.5 7.25h5M4.5 9.5h3.25' stroke='black' stroke-width='1.25' stroke-linecap='round'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.nav-link:hover {
  color: var(--text);
  background: var(--sidebar-item-hover);
}

.nav-link:hover::before {
  opacity: 0.7;
}

.nav-link.active {
  color: var(--text);
  background: var(--sidebar-item-active);
  border-left-color: var(--brand);
  font-weight: 500;
}

.nav-link.active::before {
  opacity: 0.85;
}

.sidebar-footer {
  flex-shrink: 0;
  padding: 0.85rem 0.75rem 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.sidebar-footer-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}

.sidebar-footer-nav:has(.sidebar-footer-week:only-child) {
  grid-template-columns: 1fr;
}

.sidebar-footer-week {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
  padding: 0.5rem 0.6rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(128, 128, 128, 0.04);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.sidebar-footer-week:hover {
  border-color: var(--border-strong);
  background: var(--sidebar-item-hover);
}

.sidebar-footer-week-eyebrow {
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-faint);
  line-height: 1.2;
}

.sidebar-footer-week-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-footer-week--prev {
  align-items: flex-start;
  text-align: left;
}

.sidebar-footer-week--next {
  align-items: flex-end;
  text-align: right;
  border-color: rgba(110, 81, 224, 0.2);
  background: var(--accent-soft);
}

.sidebar-footer-week--next:hover {
  border-color: rgba(110, 81, 224, 0.32);
}

.sidebar-footer-week--next .sidebar-footer-week-eyebrow {
  color: var(--accent-hover);
}

[data-theme="dark"] .sidebar-footer-week--next {
  border-color: rgba(139, 118, 232, 0.26);
  background: rgba(139, 118, 232, 0.1);
}

[data-theme="dark"] .sidebar-footer-week--next .sidebar-footer-week-eyebrow {
  color: var(--note-accent);
}

.sidebar-footer-dashboard {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  padding: 0.45rem 0.7rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-raised);
  color: var(--text);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.sidebar-footer-dashboard:hover {
  border-color: var(--border-strong);
  background: var(--sidebar-item-hover);
  color: var(--text);
}

.sidebar-footer-meta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding-top: 0.1rem;
}

.sidebar-footer-meta {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--text-faint);
  text-decoration: none;
  padding: 0.15rem 0.25rem;
  border-radius: 4px;
  transition: color 0.15s ease;
}

.sidebar-footer-meta:hover {
  color: var(--text-muted);
}

.sidebar-footer-meta-sep {
  color: var(--text-faint);
  opacity: 0.45;
  font-size: 0.625rem;
  line-height: 1;
  user-select: none;
}

body.sidebar-collapsed {
  --sidebar-offset: 0px;
}

body.sidebar-collapsed .sidebar {
  transform: translateX(-100%);
}

/* Main column sits in grid track 2; lesson card centered with auto margins */
.main {
  grid-column: 2;
  grid-row: 1;
  margin-left: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: block;
  background: transparent;
  box-sizing: border-box;
  transition: none;
}

.main .topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
}

.main > .content {
  display: block;
  width: calc(100% - 2 * var(--content-gutter));
  max-width: 100%;
  margin: 0.75rem auto 2.5rem;
  box-sizing: border-box;
}

/* Sidebar collapse toggle (injected by JS) */
.sidebar-collapse-btn,
.menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.125rem;
  min-height: 2.125rem;
  padding: 0.4rem;
  line-height: 0;
}

.sidebar-panel-icon {
  display: block;
  width: 1rem;
  height: 1rem;
  transition: transform 0.2s ease, opacity 0.15s ease;
}

body.sidebar-collapsed .sidebar-collapse-btn .sidebar-panel-icon {
  transform: scaleX(-1);
}

.lucide-icon {
  display: block;
  flex-shrink: 0;
  color: currentColor;
}

.lucide-icon--card {
  width: 1.25rem;
  height: 1.25rem;
}

.lucide-icon--studio-thumb {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--text-muted);
}

.studio-card-thumb--icon {
  align-items: center;
  justify-content: center;
}

.studio-card-thumb--icon .lucide-icon--studio-thumb {
  opacity: 0.85;
}

.pd-lesson-card-icon .lucide-icon--card {
  color: var(--text);
}

.pd-platform-panel-icon .lucide-icon,
.pd-platform-tabs .tab-btn .lucide-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.pd-icon-meaning-glyph .lucide-icon,
.pd-icon-meaning-svg {
  display: block;
}

.pd-method-icon .lucide-icon,
.pd-tool-card-icon .lucide-icon {
  width: 1.25rem;
  height: 1.25rem;
}

.pd-lesson-rule-icon .lucide-icon {
  width: 1.35rem;
  height: 1.35rem;
}

.sidebar-collapse-btn {
  display: none;
}

/* Mobile drawer backdrop */
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.25s ease;
  border: none;
  padding: 0;
  cursor: pointer;
}

.sidebar-backdrop.visible {
  display: block;
  opacity: 1;
}

/* ── Top bar ── */

.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0.55rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-sizing: border-box;
}

[data-theme="dark"] .topbar {
  background: var(--bg-deep);
}

/* Week viewer: topbar + lesson card as one reading surface */
.app .main .topbar {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  margin: 0.75rem auto 0;
  width: calc(100% - 2 * var(--content-gutter));
  box-shadow: none;
}

[data-theme="dark"] .app .main .topbar {
  background: var(--surface-raised);
}

.app .main > .content {
  margin-top: 0;
  border-top: none;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

.app #present-btn:not(.btn-primary) {
  background: transparent;
  border-color: var(--border);
  color: var(--text-muted);
}

.app #present-btn:not(.btn-primary):hover {
  color: var(--text);
  background: var(--sidebar-item-hover);
  border-color: var(--border-strong);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.menu-btn {
  display: none;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  color: var(--text-muted);
}

.menu-btn:hover,
.sidebar-collapse-btn:hover {
  color: var(--text);
  background: var(--sidebar-item-hover);
  border-color: var(--border);
}

.progress-wrap {
  flex: 1;
  max-width: min(320px, 42vw);
  height: 4px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: var(--brand);
  width: 0%;
  transition: width 0.2s;
  border-radius: 99px;
  opacity: 0.85;
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-shrink: 0;
}

.app .main .topbar .topbar-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.4rem 0.9rem;
  line-height: 1;
}

.app .main .topbar .topbar-actions .btn.theme-toggle {
  width: 2.25rem;
  height: 2.25rem;
  min-width: 2.25rem;
  min-height: 2.25rem;
  padding: 0;
  border-radius: 999px;
}

.app .main .topbar .topbar-actions .btn.theme-toggle .theme-icon {
  display: block;
  width: 1.15rem;
  height: 1.15rem;
  min-width: 1.15rem;
  min-height: 1.15rem;
  flex-shrink: 0;
}

.app .main .topbar .topbar-actions .btn.theme-toggle .theme-icon[hidden] {
  display: none;
}

.btn {
  padding: 0.45rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface-raised);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--font-sans);
  text-decoration: none;
  transition:
    background var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out),
    color var(--duration-fast) var(--ease-out),
    transform var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out);
}

.btn:hover {
  border-color: var(--text-muted);
  background: rgba(128, 128, 128, 0.08);
}

.btn:active {
  transform: scale(0.98);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
}

.btn-primary {
  background: var(--text);
  color: var(--bg-deep);
  border-color: var(--text);
}

[data-theme="dark"] .btn-primary {
  background: #f5f5f5;
  color: #0a0a0a;
}

.btn-primary:hover {
  background: var(--text-muted);
  border-color: var(--text-muted);
  color: var(--bg-deep);
}

[data-theme="dark"] .btn-primary:hover {
  background: #fff;
  color: #0a0a0a;
}

/* ── Content panel. single unified lesson card ── */

.content {
  padding: 0;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

/* Direct blocks inside the panel. no nested cards */
.content > .week-hero,
.content > .section,
.content > section.section,
.content > .part-divider {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.content > .week-hero,
.content > header.week-hero {
  padding: var(--lesson-pad-hero-y) var(--lesson-pad-x) var(--lesson-pad-hero-bottom);
  border-bottom: 1px solid var(--border);
}

.content > .section,
.content > section.section {
  padding: var(--lesson-pad-y) var(--lesson-pad-x);
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}

.content > .section:last-child,
.content > section.section:last-child {
  border-bottom: none;
}

/* Teaching note. own band, separated from hero + lesson body */
.content > .section--teaching-note {
  padding: var(--space-6) var(--lesson-pad-x);
  background: var(--surface-inset);
  border-bottom: 1px solid var(--border);
}

.content > .section--teaching-note > h2 {
  margin-bottom: 1rem;
}

.content > .section--phase-table {
  padding: var(--lesson-pad-y-lg) var(--lesson-pad-x);
}

.content > .week-glance,
.content > section.week-glance {
  padding: var(--lesson-pad-y) var(--lesson-pad-x);
}

/* Card-style teaching weeks: lesson chapters after teaching note */
.content--teaching .pd-lesson {
  display: block;
  border-top: 1px solid var(--border);
}

.teaching-note {
  width: 100%;
  max-width: none;
}

.teaching-note-panel {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-card);
  background: var(--surface-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  box-sizing: border-box;
}

.teaching-note-row {
  display: grid;
  grid-template-columns: 5.75rem minmax(0, 1fr);
  gap: 0.45rem 1.25rem;
  padding: 1.15rem 1.35rem;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.teaching-note-row:last-child {
  border-bottom: none;
}

.teaching-note-label {
  margin: 0.12rem 0 0;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-label);
}

.teaching-note-body {
  min-width: 0;
}

.teaching-note-body p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: none;
}

.teaching-note-body strong {
  color: var(--text);
  font-weight: 600;
}

@media (max-width: 520px) {
  .teaching-note-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
    padding: 1.1rem 1.25rem;
  }
}

.content > .part-divider {
  padding: var(--space-5) var(--lesson-pad-x);
  margin: 0;
  border-bottom: 1px solid var(--border);
  border-left: 3px solid var(--part-1);
  background: var(--accent-soft);
}

[data-theme="dark"] .content > .part-divider {
  background: rgba(139, 118, 232, 0.08);
}

.content > .part-divider.part-2 {
  border-left-color: var(--part-2);
  background: rgba(133, 112, 232, 0.1);
}

[data-theme="dark"] .content > .part-divider.part-2 {
  background: rgba(133, 112, 232, 0.12);
}

.content > .part-divider.part-3 {
  border-left-color: var(--part-3);
  background: rgba(85, 64, 200, 0.08);
}

[data-theme="dark"] .content > .part-divider.part-3 {
  background: rgba(85, 64, 200, 0.14);
}

.week-hero .badge {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-hover);
  background: none;
  border: none;
  padding: 0;
  border-radius: 0;
  margin-bottom: 0.85rem;
}

[data-theme="dark"] .week-hero .badge {
  color: var(--note-accent);
}

.week-hero h1 {
  font-size: clamp(1.85rem, 3.2vw, 2.5rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  max-width: none;
  width: 100%;
}

.week-hero .lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

.lesson-back {
  margin: 0 0 0.85rem;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
}

.lesson-back a {
  color: var(--text-muted);
  text-decoration: none;
}

.lesson-back a:hover {
  color: var(--text);
}

.week-hero {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.week-hero .badge,
.week-hero .lead,
.week-hero-lead {
  max-width: none;
  width: 100%;
}

.week-hero .highlight,
.week-hero .highlight-hero {
  margin-top: 1.5rem;
  margin-bottom: 0;
  width: 100%;
  max-width: none;
  align-self: stretch;
  box-sizing: border-box;
}

.week-hero .highlight-hero {
  padding: 1.5rem 2rem;
  font-size: 1.05rem;
  line-height: 1.55;
  font-weight: 500;
  border-left-width: 4px;
  background: linear-gradient(135deg, var(--accent-soft) 0%, rgba(110, 81, 224, 0.03) 100%);
}

[data-theme="dark"] .week-hero .highlight-hero {
  background: linear-gradient(135deg, rgba(139, 118, 232, 0.14) 0%, rgba(139, 118, 232, 0.04) 100%);
  border-color: rgba(167, 139, 250, 0.32);
}

.week-hero .card-grid {
  width: 100%;
  max-width: none;
  margin-top: 1.5rem;
  align-self: stretch;
}

.highlight-next {
  margin-top: 1.5rem;
}

/* ── Week at a glance ── */

.week-glance h2 {
  margin-top: 0;
  font-size: 1.15rem;
  color: var(--text);
}

.week-glance-note {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0 0 1rem;
}

.week-glance-grid {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 560px) {
  .week-glance-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.week-glance-item {
  padding: var(--space-4) var(--space-5);
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-card);
  box-sizing: border-box;
  transition:
    border-color var(--duration-normal) var(--ease-out),
    box-shadow var(--duration-normal) var(--ease-out),
    transform var(--duration-normal) var(--ease-out);
}

.week-glance-item:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.week-glance-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-label);
  margin-bottom: 0.25rem;
}

.week-glance-value {
  font-size: 0.9rem;
  font-weight: 500;
}

.quiz-lead {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
}

.flow-task-hint {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.table-wrap-flush {
  margin: 0;
  border: none;
  box-shadow: none;
}

.code-block-tight {
  margin: 0.75rem 0;
}

/* ── Sections (inside unified panel) ── */

.section,
section.section {
  scroll-margin-top: calc(var(--header-height) + 1.5rem);
}

.part-divider h2 {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: var(--font-sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-label);
}

.section h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.45rem);
  font-weight: 600;
  margin: 0 0 var(--space-5);
  letter-spacing: -0.02em;
  line-height: var(--line-tight);
  max-width: none;
  width: 100%;
}

.section h2 + p,
.section h2 + .outcomes-lede,
.section h2 + .outcomes {
  margin-top: 0;
}

.section h2:has(+ .outcomes),
.section h2:has(+ .outcomes-lede) {
  margin-bottom: 1rem;
}

.section h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: var(--space-6) 0 var(--space-3);
  color: var(--text);
  letter-spacing: -0.01em;
}

.section p {
  margin: 0 0 var(--space-4);
  color: var(--text-secondary);
  max-width: none;
  width: 100%;
  line-height: var(--line);
}

.section p:last-child {
  margin-bottom: 0;
}

.week-hero p {
  max-width: none;
  width: 100%;
}

.section ul,
.section ol {
  margin: 0 0 var(--space-4);
  padding-left: 1.35rem;
  max-width: none;
  width: 100%;
  color: var(--text-secondary);
}

.section li {
  margin-bottom: var(--space-2);
  padding-left: var(--space-1);
}

.section li:last-child {
  margin-bottom: 0;
}

.section a:not(.btn) {
  color: var(--accent-hover);
  font-weight: 500;
}

.section a:not(.btn):hover {
  color: var(--brand);
}

.section strong { font-weight: 600; }

/* Key terms students should notice when presenting */
.note {
  color: var(--note-accent);
  font-weight: 600;
}

.section .note,
.highlight .note,
blockquote .note,
table .note {
  color: var(--note-accent);
}

.highlight {
  display: block;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  background: var(--note-accent-soft);
  border: 1px solid rgba(124, 58, 237, 0.18);
  border-left: 3px solid var(--note-accent);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-lg);
  margin: var(--space-5) 0;
  font-weight: 500;
  font-size: 0.9375rem;
  line-height: var(--line-snug);
  color: var(--text);
}

[data-theme="dark"] .highlight {
  background: var(--note-accent-soft);
  border-color: rgba(167, 139, 250, 0.28);
  border-left-color: var(--note-accent);
}

body.present-mode .note {
  font-weight: 700;
}

blockquote {
  margin: var(--space-5) 0;
  padding: var(--space-4) var(--space-5);
  background: var(--quote-bg);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  font-style: italic;
  color: var(--text-secondary);
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

pre, .code-block {
  background: var(--code-bg);
  color: var(--code-text);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-card);
  overflow-x: auto;
  margin: var(--space-5) 0;
  line-height: 1.55;
  white-space: pre-wrap;
  width: 100%;
  box-sizing: border-box;
}

/* Full-width pathway rows (Problem → Insight → …) */
.flow-path {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.35rem;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  background: var(--code-bg);
  color: var(--code-text);
  font-family: var(--font-sans);
  font-size: clamp(0.72rem, 1.1vw, 0.88rem);
  font-weight: 600;
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-card);
  margin: var(--space-5) 0;
  line-height: 1.35;
}

.flow-path-step {
  flex: 1 1 0;
  min-width: min-content;
  text-align: center;
  color: var(--code-text);
}

.flow-path-arrow {
  flex: 0 0 auto;
  color: var(--text-tertiary);
  font-weight: 500;
  opacity: 0.75;
  padding: 0 0.1rem;
}

[data-theme="dark"] .flow-path-step {
  color: #e8eaef;
}

@media (max-width: 720px) {
  .flow-path {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .flow-path-step {
    flex: 0 0 auto;
    text-align: left;
  }
}

/* ── Tables ── */

.table-wrap {
  overflow-x: auto;
  margin: var(--space-5) 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-card);
  background: var(--surface-card);
  width: 100%;
  box-sizing: border-box;
}

.content > .section--phase-table {
  padding-top: 2rem;
}

.content > .section--phase-table .table-wrap--phase {
  margin: 0;
  border: none;
  box-shadow: none;
  background: transparent;
  border-radius: 0;
}

.content > .section--phase-table .table-wrap--phase table {
  border-top: 1px solid var(--border);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  background: transparent;
}

th, td {
  padding: var(--space-3) var(--space-5);
  text-align: left;
  border-bottom: 1px solid var(--border);
  transition: background var(--duration-fast) var(--ease-out);
}

tbody tr:hover td {
  background: rgba(128, 128, 128, 0.04);
}

[data-theme="dark"] tbody tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

th {
  background: var(--surface-inset);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-label);
}

td {
  color: var(--text-secondary);
}

tr:last-child td { border-bottom: none; }

/* ── Content panels · full-width structural blocks in lessons ── */

.content :is(
  .highlight,
  .highlight-next,
  .example-box,
  .table-wrap,
  pre,
  .code-block,
  .flow-path,
  .pd-double-diamond,
  .checklist,
  .outcomes,
  .card-grid,
  .pd-lesson-card-grid,
  .pd-lesson-stack,
  .pd-lesson-callout-group,
  .pd-lesson-block,
  .pd-brief-stack,
  .pd-formula-box,
  .pd-step-list,
  .pd-lesson-steps,
  .pd-spacing-scale,
  .pd-rule-list,
  .pd-process-rail,
  .pd-phase-grid,
  .pd-research-table-wrap,
  .pd-platform-panel,
  .pd-tool-card-stack,
  .pd-route-card-stack,
  .lesson-callout,
  .week-glance-grid,
  .pd-type-scale,
  .pd-prd-definition,
  .pd-role-stack,
  .pd-situation-card,
  .pd-method-stack,
  .pd-ux-law-card,
  .pd-heuristic-card,
  .pd-annotation-card,
  .pd-capstone-ref-card,
  .pd-hmw-pair-card,
  .pd-persona-card,
  .pd-client-vs-card,
  .pd-alignment-card,
  .pd-platform-block
) {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

.content blockquote {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

.content :is(
  .highlight,
  .example-box,
  .table-wrap,
  pre,
  .code-block,
  .pd-double-diamond
) {
  margin-block: var(--space-5);
}

.content blockquote:not(.pd-lesson-callout) {
  margin-block: var(--space-5);
}

.content .card-grid:has(.card:only-child) {
  grid-template-columns: 1fr;
  justify-content: stretch;
}

.example-box > .table-wrap {
  margin: 0;
  border: none;
  box-shadow: none;
  background: transparent;
  border-radius: 0;
}

/* Panel innards · copy and lists fill the card (not prose column width) */
.content :is(
  .highlight,
  .highlight-next,
  .example-box,
  .table-wrap,
  pre,
  .code-block,
  .flow-path,
  .pd-double-diamond,
  .card,
  .outcome-item,
  .week-glance-item,
  .pd-lesson-card,
  .pd-compare-card,
  .pd-role-card,
  .pd-situation-card,
  .pd-phase-card,
  .pd-tool-card,
  .pd-route-card,
  .pd-brief-field-card,
  .pd-persona-card,
  .pd-client-vs-card,
  .pd-alignment-card,
  .pd-capstone-ref-card,
  .pd-hmw-pair-card,
  .pd-ux-law-card,
  .pd-heuristic-card,
  .pd-annotation-card,
  .pd-platform-block,
  .pd-prd-definition,
  .pd-formula-box,
  .pd-type-scale,
  .pd-lesson-block,
  .pd-lesson-callout-group,
  blockquote,
  blockquote.pd-lesson-callout
) :where(
  p,
  ul,
  ol,
  blockquote,
  h3,
  h4,
  h5,
  h6,
  figcaption,
  .pd-lesson-prose,
  .pd-lesson-card-body,
  .pd-lesson-card-foot,
  .pd-lesson-kicker,
  .example-label
) {
  max-width: none;
  width: 100%;
  box-sizing: border-box;
}

/* p.highlight is both panel + paragraph.section p must not narrow it */
.content .section p.highlight,
.content .section p.highlight-next,
.content p.highlight,
.content p.highlight-next {
  max-width: none;
  width: 100%;
}

.content :is(.example-box, .pd-prd-definition, .pd-role-card, .pd-situation-card) > p {
  margin: 0;
  color: var(--text-secondary);
  line-height: var(--line);
}

.content :is(.example-box, .pd-prd-definition) > p + p {
  margin-top: var(--space-3);
}

.content .example-box > .example-label + p {
  margin-top: 0;
}

.content :is(.pd-lesson-card, .pd-compare-card, .pd-role-card) :where(p, ul, ol) {
  margin-block: 0;
}

.content :is(.pd-lesson-card, .pd-compare-card) :where(p + p, ul + p, p + ul) {
  margin-top: var(--space-3);
}

.content .table-wrap :where(p, ul, ol) {
  max-width: none;
  width: auto;
}

/* ── Cards (hero, sections, lessons) ── */

.card-grid {
  display: grid;
  width: 100%;
  gap: 1.25rem;
  margin: 1.5rem 0;
  grid-template-columns: 1fr;
}

@media (min-width: 520px) {
  .card-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 11.5rem), 1fr));
  }
}

.week-hero .card-grid {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .week-hero .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 640px) and (max-width: 900px) {
  .week-hero .card-grid:has(.card:nth-child(2):last-child) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .week-hero .card-grid:has(.card:only-child) {
    grid-template-columns: minmax(0, 20rem);
    justify-content: center;
  }
}

.card-grid:has(.card:only-child) {
  grid-template-columns: minmax(0, 22rem);
  justify-content: center;
}

.card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 5.25rem;
  padding: var(--space-5) var(--space-5);
  background: var(--surface-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  box-sizing: border-box;
  transition:
    border-color var(--duration-normal) var(--ease-out),
    box-shadow var(--duration-normal) var(--ease-out),
    transform var(--duration-normal) var(--ease-out);
}

.card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.card .label {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-label);
  margin: 0 0 0.5rem;
}

.card .value {
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.35;
  color: var(--text);
}

/* Lesson cards. override week-specific faint dark fills */
[data-theme="dark"] .content .pd-lesson-card,
[data-theme="dark"] .content .pd-compare-card,
[data-theme="dark"] .content .pd-brief-field-card,
[data-theme="dark"] .content .pd-phase-card,
[data-theme="dark"] .content .pd-hmw-pair-card,
[data-theme="dark"] .content .pd-persona-card,
[data-theme="dark"] .content .pd-client-vs-card,
[data-theme="dark"] .content .pd-alignment-card,
[data-theme="dark"] .content .pd-platform-block,
[data-theme="dark"] .content .pd-capstone-ref-card,
[data-theme="dark"] .content .pd-ux-law-card,
[data-theme="dark"] .content .pd-heuristic-card,
[data-theme="dark"] .content .pd-annotation-card,
[data-theme="dark"] .content .pd-presentation-part,
[data-theme="dark"] .content .pd-info-list-box,
[data-theme="dark"] .content .pd-tool-card,
[data-theme="dark"] .content .pd-route-card,
[data-theme="dark"] .content .pd-ia-example,
[data-theme="dark"] .content .pd-formula-box {
  background: var(--surface-card);
  border-color: var(--border-card);
}

.content--teaching blockquote.pd-lesson-callout {
  color: var(--text-secondary);
}

/* ── Checklist ── */

.checklist {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  line-height: var(--line-snug);
}

.checklist li:last-child { border-bottom: none; }

.check-box {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ── Example box ── */

.example-box {
  background: var(--surface-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin: var(--space-5) 0;
  box-shadow: var(--shadow-card);
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

.example-box .example-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-hover);
  font-weight: 600;
  margin: 0 0 var(--space-3);
}

[data-theme="dark"] .example-box .example-label {
  color: var(--note-accent);
}

/* ── Outcomes list ── */

.outcomes-lede {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0 0 0.75rem;
  max-width: none;
  width: 100%;
}

.content > .section#outcomes,
.content > section.section#outcomes {
  padding-top: var(--space-6);
  padding-bottom: var(--space-6);
}

.outcomes {
  display: grid;
  width: 100%;
  gap: 0.85rem;
  margin: 0;
  grid-template-columns: 1fr;
  align-items: stretch;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
}

@media (min-width: 640px) {
  .outcomes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Avoid a lonely half-width card when the count is odd */
  .outcomes > .outcome-item:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

.outcome-item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  height: 100%;
  min-height: 0;
  padding: 1rem 1.15rem;
  background: var(--surface-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-secondary);
  box-sizing: border-box;
}

.outcome-item::before {
  content: "";
  width: 0.5rem;
  height: 0.85rem;
  margin-top: 0.2rem;
  margin-right: 0.05rem;
  border: solid var(--success);
  border-width: 0 2.25px 2.25px 0;
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* ── Present mode ── */

body.present-mode {
  --sidebar-offset: 0px;
}

body.present-mode .app {
  grid-template-columns: 0 minmax(0, 1fr);
}

body.present-mode .sidebar { transform: translateX(-100%); }

body.present-mode .main {
  grid-column: 1 / -1;
  width: 100%;
}
body.present-mode .menu-btn { display: block; }
body.present-mode .sidebar-collapse-btn { display: none; }
body.present-mode .app .main .topbar {
  width: calc(100% - 2 * var(--content-gutter));
  max-width: 80rem;
}

body.present-mode .main > .content {
  width: calc(100% - 2 * var(--content-gutter));
  max-width: 80rem;
}
body.present-mode .content > .week-hero { padding: 2.5rem 3rem 2rem; }
body.present-mode .content > .section,
body.present-mode .content > section.section { padding: 2rem 3rem; }
body.present-mode .week-hero h1 { font-size: 2.5rem; }
body.present-mode .section h2 { font-size: 1.6rem; }

/* ── Ambient on week viewer (no extra HTML) ── */

body:has(.app) {
  background: var(--bg-deep);
}

.app::before,
.app::after {
  content: "";
  position: fixed;
  width: min(50vw, 480px);
  height: min(50vw, 480px);
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

.app::before {
  left: -10%;
  top: 20%;
  background: radial-gradient(circle, var(--glow-purple) 0%, transparent 70%);
}

.app::after {
  right: -8%;
  top: 40%;
  background: radial-gradient(circle, var(--glow-blue) 0%, transparent 65%);
}

[data-theme="dark"] .app::before,
[data-theme="dark"] .app::after {
  opacity: 0.42;
}

.app .main {
  position: relative;
  z-index: 1;
}

/* ── Hub page (CourseOS-style) ── */

.hub-page {
  min-height: 100vh;
  position: relative;
  overflow-x: clip;
}

.hub-page .ambient {
  z-index: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  border-bottom: none;
  /* Blur lives on ::before so fixed mobile drawer is not trapped in a header containing block */
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  overflow: visible;
  /* Reserve space so sticky bar never collapses shorter than chrome controls */
  min-height: var(--header-height);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: var(--surface-overlay);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

[data-theme="dark"] .site-header::before {
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
}

.site-header-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: var(--header-height);
  height: auto;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0.65rem 1.5rem;
  overflow: visible;
}

@media (min-width: 1100px) {
  .site-header-inner {
    padding: 0 2rem;
  }
}

.site-header-nav-wrap {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex: 1;
  justify-content: flex-end;
  min-width: 0;
  overflow: visible;
}

@media (min-width: 961px) {
  .site-header-nav-wrap {
    gap: 2rem;
  }
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  overflow: visible;
}

.site-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.8rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text-muted);
  text-decoration: none;
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: var(--font-sans);
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease;
}

.site-nav-link:hover,
.site-nav-trigger:hover {
  color: var(--text);
  background: rgba(128, 128, 128, 0.08);
}

.site-nav-link--active,
.site-nav-trigger.site-nav-link--active {
  color: var(--accent);
}

.site-nav-chevron {
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform 0.15s;
}

.site-nav-dropdown.is-open .site-nav-chevron {
  transform: rotate(-135deg) translateY(1px);
}

.site-nav-dropdown {
  position: relative;
  overflow: visible;
}

.site-nav-dropdown--active > .site-nav-trigger,
.site-nav-dropdown.is-open > .site-nav-trigger {
  color: var(--text);
  background: rgba(128, 128, 128, 0.08);
}

[data-theme="dark"] .site-nav-dropdown--active > .site-nav-trigger,
[data-theme="dark"] .site-nav-dropdown.is-open > .site-nav-trigger {
  background: rgba(255, 255, 255, 0.06);
}

.site-nav-dropdown-panel {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  min-width: 17.5rem;
  padding: 0.5rem;
  background: var(--surface-raised);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 16px 40px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(20px) saturate(1.12);
  -webkit-backdrop-filter: blur(20px) saturate(1.12);
  z-index: 60;
}

[data-theme="dark"] .site-nav-dropdown-panel {
  background: rgba(18, 18, 20, 0.92);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 24px 56px rgba(0, 0, 0, 0.55);
}

.site-nav-dropdown--align-end .site-nav-dropdown-panel {
  left: auto;
  right: 0;
}

.site-nav-dropdown-panel[hidden] {
  display: none;
}

.site-nav-dropdown-toolbar {
  display: none;
}

.site-nav-dropdown.is-open .site-nav-dropdown-panel:not([hidden]) {
  animation: site-nav-dropdown-in 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes site-nav-dropdown-in {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.site-nav-dropdown-panel--list {
  min-width: 19rem;
  max-width: 22rem;
}

.site-nav-dropdown-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.75rem;
  text-decoration: none;
  color: var(--text);
  border-radius: calc(var(--radius-sm) + 2px);
  border: 1px solid transparent;
  transition:
    background 0.16s ease,
    border-color 0.16s ease,
    transform 0.12s ease;
}

.site-nav-dropdown-link:hover,
.site-nav-dropdown-link:focus-visible {
  background: var(--nav-dropdown-item-hover);
  border-color: var(--border-strong);
}

.site-nav-dropdown-link--active {
  background: var(--nav-dropdown-item-active);
  border-color: rgba(110, 81, 224, 0.28);
}

[data-theme="dark"] .site-nav-dropdown-link--active {
  border-color: rgba(139, 118, 232, 0.35);
}

.site-nav-dropdown-link-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}

.site-nav-dropdown-label {
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
  transition: color 0.15s ease;
}

.site-nav-dropdown-link:hover .site-nav-dropdown-label,
.site-nav-dropdown-link--active .site-nav-dropdown-label,
.site-nav-dropdown-link:focus-visible .site-nav-dropdown-label {
  color: var(--accent);
}

.site-nav-dropdown-desc {
  font-size: 0.78125rem;
  color: var(--nav-dropdown-desc);
  line-height: 1.5;
  transition: color 0.15s ease;
}

.site-nav-dropdown-link:hover .site-nav-dropdown-desc,
.site-nav-dropdown-link:focus-visible .site-nav-dropdown-desc {
  color: var(--nav-dropdown-desc-emphasis);
}

.site-nav-dropdown-link--active .site-nav-dropdown-desc {
  color: var(--nav-dropdown-desc-emphasis);
}

.site-nav-dropdown-arrow {
  flex-shrink: 0;
  width: 0.45rem;
  height: 0.45rem;
  margin-right: 0.15rem;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  color: var(--accent);
  opacity: 0;
  transform: rotate(45deg) translateX(-3px);
  transition:
    opacity 0.16s ease,
    transform 0.16s ease;
}

.site-nav-dropdown-link:hover .site-nav-dropdown-arrow,
.site-nav-dropdown-link--active .site-nav-dropdown-arrow,
.site-nav-dropdown-link:focus-visible .site-nav-dropdown-arrow {
  opacity: 0.85;
  transform: rotate(45deg) translateX(0);
}

/* Studio mega-menu. 2×2 groups */
.site-nav-dropdown-panel--grouped {
  min-width: min(40rem, calc(100vw - 2.5rem));
  max-width: 42rem;
  padding: 0.65rem 0.7rem 0.7rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem 0;
}

.site-nav-dropdown-group {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
  padding: 0.35rem 0.5rem;
}

@media (min-width: 961px) {
  .site-nav-dropdown-panel--grouped .site-nav-dropdown-group:nth-child(odd) {
    padding-right: 0.85rem;
    border-right: 1px solid var(--border);
  }

  .site-nav-dropdown-panel--grouped .site-nav-dropdown-group:nth-child(even) {
    padding-left: 0.85rem;
  }
}

.site-nav-dropdown-group-title {
  margin: 0 0 0.15rem;
  padding: 0.35rem 0.75rem 0.3rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nav-dropdown-group-label);
}

/* Practice menu. single column, short descriptions */
.site-nav-dropdown-panel--practice {
  min-width: 15.5rem;
  max-width: 17.5rem;
  padding: 0.45rem 0.5rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.site-nav-dropdown-panel--practice .site-nav-dropdown-group {
  padding: 0.2rem 0.35rem;
}

.site-nav-dropdown-panel--practice .site-nav-dropdown-group + .site-nav-dropdown-group {
  margin-top: 0.15rem;
  padding-top: 0.35rem;
  border-top: 1px solid var(--border);
}

.site-nav-dropdown-panel--practice .site-nav-dropdown-group:nth-child(odd),
.site-nav-dropdown-panel--practice .site-nav-dropdown-group:nth-child(even) {
  padding-left: 0.35rem;
  padding-right: 0.35rem;
  border-right: none;
}

.site-nav-dropdown-panel--practice .site-nav-dropdown-group-title {
  padding: 0.25rem 0.55rem 0.2rem;
  margin-bottom: 0;
}

.site-nav-dropdown-panel--practice .site-nav-dropdown-link {
  padding: 0.45rem 0.55rem;
}

/* Courses menu · browse + featured */
.site-nav-dropdown-panel--courses {
  min-width: min(34rem, calc(100vw - 2rem));
}

/* More menu · compact 2-column, label-first (design system density) */
.site-nav-dropdown-panel--more {
  min-width: min(28rem, calc(100vw - 2rem));
  max-width: 30rem;
  padding: 0.45rem 0.5rem 0.55rem;
  gap: 0;
}

.site-nav-dropdown-panel--more .site-nav-dropdown-group {
  gap: 0.05rem;
  padding: 0.25rem 0.35rem;
}

@media (min-width: 961px) {
  .site-nav-dropdown-panel--more .site-nav-dropdown-group:nth-child(odd) {
    padding-right: 0.65rem;
  }

  .site-nav-dropdown-panel--more .site-nav-dropdown-group:nth-child(even) {
    padding-left: 0.65rem;
  }
}

.site-nav-dropdown-panel--more .site-nav-dropdown-group-title {
  padding: 0.2rem 0.55rem 0.25rem;
  margin-bottom: 0.05rem;
  font-size: 0.625rem;
  letter-spacing: 0.1em;
}

.site-nav-dropdown-panel--more .site-nav-dropdown-link {
  padding: 0.4rem 0.55rem;
  gap: 0.4rem;
}

.site-nav-dropdown-panel--more .site-nav-dropdown-label {
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.25;
}

.site-nav-dropdown-panel--more .site-nav-dropdown-desc {
  font-size: 0.6875rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-nav-dropdown-panel--more .site-nav-dropdown-arrow {
  display: none;
}

.site-nav-dropdown-panel--practice .site-nav-dropdown-desc {
  font-size: 0.6875rem;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-header-actions {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-shrink: 0;
}

@media (min-width: 961px) {
  .site-header-actions {
    gap: 0.75rem;
    margin-left: 0.15rem;
    padding-left: 1.35rem;
    border-left: 1px solid var(--border);
  }
}

.site-header-actions .btn,
.site-header-bar-end .btn,
.site-mm-topbar-end .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.375rem;
  padding: 0.5rem 1.15rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.12s ease;
}

.site-header-actions .btn:active,
.site-header-bar-end .btn:active,
.site-mm-topbar-end .btn:active {
  transform: scale(0.98);
}

.site-header-signin {
  color: var(--text);
  border-color: var(--border-strong);
  background: rgba(128, 128, 128, 0.04);
}

[data-theme="dark"] .site-header-signin {
  background: rgba(255, 255, 255, 0.04);
}

.site-header-signin:hover {
  color: var(--text);
  border-color: rgba(128, 128, 128, 0.35);
  background: rgba(128, 128, 128, 0.08);
}

[data-theme="dark"] .site-header-signin:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.07);
}

.site-header-signin--active {
  color: var(--accent);
  border-color: rgba(110, 81, 224, 0.35);
  background: var(--accent-soft);
}

.site-header-cta {
  color: #fff;
  background: var(--accent);
  border-color: transparent;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(110, 81, 224, 0.18);
}

[data-theme="dark"] .site-header-cta {
  color: #fff;
  background: var(--accent);
  border-color: transparent;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(139, 118, 232, 0.25);
}

.site-header-cta:hover {
  color: #fff;
  background: var(--accent-hover);
  border-color: transparent;
  box-shadow:
    0 4px 18px var(--accent-glow),
    0 0 0 1px rgba(110, 81, 224, 0.28);
}

.site-header-cta--active {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.22),
    0 0 0 2px var(--accent-soft),
    0 4px 18px var(--accent-glow);
}

.site-header-actions .theme-toggle,
.topbar-actions .theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.375rem;
  height: 2.375rem;
  min-height: 2.375rem;
  padding: 0;
  flex-shrink: 0;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(128, 128, 128, 0.04);
  color: var(--text-muted);
}

[data-theme="dark"] .site-header-actions .theme-toggle,
[data-theme="dark"] .topbar-actions .theme-toggle {
  background: rgba(255, 255, 255, 0.04);
}

.site-header-actions .theme-toggle:hover,
.topbar-actions .theme-toggle:hover {
  color: var(--text);
  border-color: rgba(128, 128, 128, 0.35);
  background: rgba(128, 128, 128, 0.1);
}

[data-theme="dark"] .site-header-actions .theme-toggle:hover,
[data-theme="dark"] .topbar-actions .theme-toggle:hover {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  padding: 0;
  flex-shrink: 0;
}

.theme-toggle .theme-icon {
  display: block;
}

.theme-toggle .theme-icon[hidden] {
  display: none;
}

.site-nav-toggle {
  display: none;
  padding: 0.45rem 0.65rem;
}

.site-nav-toggle-icon {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: currentColor;
  box-shadow: 0 5px 0 currentColor, 0 -5px 0 currentColor;
}

html.nav-open,
body.nav-open {
  overflow: hidden;
  overscroll-behavior: none;
}

body.nav-open {
  touch-action: none;
}

/* Promo cards must never cover the open mobile menu or header chrome */
html.nav-open .mkt-pops-root,
body.nav-open .mkt-pops-root {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.site-nav-backdrop {
  display: none;
}

@media (max-width: 960px) {
  /* Fixed chrome: overflow-x: clip on ancestors breaks position:sticky */
  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 100;
  }

  body:not(.splash-page) {
    padding-top: var(--header-height);
  }

  .site-nav-backdrop:not([hidden]) {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 98;
    background: rgba(0, 0, 0, 0.45);
    border: 0;
    padding: 0;
    cursor: pointer;
  }

  .site-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    min-width: 2.75rem;
    min-height: 2.75rem;
    padding: 0.5rem;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: rgba(128, 128, 128, 0.06);
    color: var(--text);
    cursor: pointer;
  }

  [data-theme="dark"] .site-nav-toggle {
    background: rgba(255, 255, 255, 0.06);
  }

  .site-nav-toggle.is-open .site-nav-toggle-icon,
  .site-nav-toggle[aria-expanded='true'] .site-nav-toggle-icon {
    height: 0;
    background: transparent;
    box-shadow: none;
  }

  .site-nav-toggle.is-open .site-nav-toggle-icon::before,
  .site-nav-toggle.is-open .site-nav-toggle-icon::after,
  .site-nav-toggle[aria-expanded='true'] .site-nav-toggle-icon::before,
  .site-nav-toggle[aria-expanded='true'] .site-nav-toggle-icon::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 1.1rem;
    height: 2px;
    background: currentColor;
  }

  .site-nav-toggle.is-open .site-nav-toggle-icon::before,
  .site-nav-toggle[aria-expanded='true'] .site-nav-toggle-icon::before {
    transform: translate(-50%, -50%) rotate(45deg);
  }

  .site-nav-toggle.is-open .site-nav-toggle-icon::after,
  .site-nav-toggle[aria-expanded='true'] .site-nav-toggle-icon::after {
    transform: translate(-50%, -50%) rotate(-45deg);
  }

  .site-nav-toggle-icon {
    position: relative;
  }

  .site-header-inner {
    padding-inline: max(1rem, env(safe-area-inset-left)) max(1rem, env(safe-area-inset-right));
  }

  /* Closed drawer must not widen the document (translateX alone still expands scrollWidth). */
  .site-header-nav-wrap:not(.is-open) {
    position: fixed;
    inset: auto;
    top: 0;
    left: 0;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
    transform: none;
    visibility: hidden;
    pointer-events: none;
    opacity: 0;
  }

  /*
   * Open drawer: full viewport under the fixed header.
   * One scroll container: actions sit at the bottom when short (margin-top:auto),
   * and scroll with links when More expands (no overlap).
   */
  .site-header-nav-wrap.is-open {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    height: auto;
    max-height: none;
    margin: 0;
    clip: auto;
    clip-path: none;
    white-space: normal;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    background: #ffffff;
    background-color: #ffffff;
    border-top: 1px solid var(--border);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    transform: none;
    visibility: visible;
    pointer-events: auto;
    opacity: 1;
    z-index: 99;
    touch-action: pan-y;
  }

  [data-theme="dark"] .site-header-nav-wrap.is-open {
    background: #1c1c20;
    background-color: #1c1c20;
  }

  .home-page .site-header-nav-wrap.is-open {
    background: var(--home-surface, #ffffff);
    background-color: var(--home-surface, #ffffff);
    border-top-color: var(--home-border, var(--border));
    color: var(--home-ink, var(--text));
  }

  [data-theme="dark"] .home-page .site-header-nav-wrap.is-open {
    background: var(--home-surface, #141414);
    background-color: var(--home-surface, #141414);
  }

  .site-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    flex: 0 0 auto;
    min-height: 0;
    height: auto;
    overflow: visible;
    padding: 0.65rem max(1rem, env(safe-area-inset-left)) 0.35rem max(1rem, env(safe-area-inset-right));
  }

  .site-nav-link,
  .site-nav-trigger {
    justify-content: space-between;
    width: 100%;
    padding: 0.7rem 0.75rem;
    min-height: 2.75rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
  }

  .home-page .site-nav-link,
  .home-page .site-nav-trigger {
    font-family: var(--home-font-body, var(--font-sans));
    color: var(--home-muted, var(--text-muted));
  }

  .home-page .site-nav-link:hover,
  .home-page .site-nav-trigger:hover,
  .home-page .site-nav-link--active,
  .home-page .site-nav-trigger.site-nav-link--active {
    color: var(--home-ink, var(--text));
  }

  .site-nav-dropdown-panel {
    position: static;
    min-width: 0;
    max-width: none;
    max-height: none;
    margin: 0.15rem 0 0.5rem 0;
    padding: 0.35rem;
    box-shadow: none;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(128, 128, 128, 0.05);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    animation: none;
    overflow: visible;
  }

  .site-nav-dropdown-toolbar {
    display: flex;
    justify-content: flex-end;
    margin: 0 0 0.35rem;
    padding: 0.15rem 0.15rem 0.45rem;
    border-bottom: 1px solid var(--border);
  }

  .site-nav-dropdown-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.5rem;
    padding: 0.45rem 0.9rem;
    border: 1px solid var(--border-strong, var(--border));
    border-radius: 999px;
    background: transparent;
    color: var(--text);
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
  }

  .site-nav-dropdown-close:hover,
  .site-nav-dropdown-close:focus-visible {
    background: rgba(128, 128, 128, 0.1);
  }

  .site-nav-dropdown.is-open > .site-nav-trigger {
    position: sticky;
    top: 0;
    z-index: 3;
    background: var(--surface-raised, #fff);
  }

  [data-theme="dark"] .site-nav-dropdown.is-open > .site-nav-trigger {
    background: #1c1c20;
  }

  .home-page .site-nav-dropdown.is-open > .site-nav-trigger {
    background: var(--home-surface, #fff);
  }

  [data-theme="dark"] .home-page .site-nav-dropdown.is-open > .site-nav-trigger {
    background: var(--home-surface, #141414);
  }

  [data-theme="dark"] .site-nav-dropdown-panel {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border);
    box-shadow: none;
  }

  .home-page .site-nav-dropdown-panel {
    background: rgba(0, 0, 0, 0.04);
    border-color: var(--home-border, var(--border));
  }

  [data-theme="dark"] .home-page .site-nav-dropdown-panel {
    background: rgba(255, 255, 255, 0.04);
  }

  .site-nav-dropdown--align-end .site-nav-dropdown-panel {
    left: auto;
    right: auto;
  }

  .site-nav-dropdown-panel--grouped {
    grid-template-columns: 1fr;
    gap: 0.35rem;
    padding: 0.4rem;
    margin-left: 0;
  }

  .site-nav-dropdown-panel--grouped .site-nav-dropdown-group {
    padding: 0.25rem 0;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .site-nav-dropdown-panel--grouped .site-nav-dropdown-group:last-child {
    border-bottom: none;
  }

  .site-nav-dropdown-panel--grouped .site-nav-dropdown-item {
    padding: 0.65rem 0.55rem;
    min-height: 2.75rem;
  }

  .site-nav-dropdown-panel--more .site-nav-dropdown-desc {
    white-space: normal;
  }

  .site-nav-dropdown-arrow {
    opacity: 0.45;
    transform: rotate(45deg) translateX(0);
  }

  .site-header-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex: 0 0 auto;
    margin-top: auto;
    margin-left: 0;
    padding: 0.85rem max(1rem, env(safe-area-inset-left)) max(1.15rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-right));
    border-top: 1px solid var(--border);
    border-left: none;
    gap: 0.55rem;
    background: inherit;
    z-index: 1;
  }

  .home-page .site-header-actions {
    background: var(--home-surface, var(--surface-raised));
    border-top-color: var(--home-border, var(--border));
  }

  .site-header-actions .btn,
  .site-header-actions .site-header-signin,
  .site-header-actions .theme-toggle {
    width: 100%;
    text-align: center;
    justify-content: center;
    min-height: 2.85rem;
  }

  .site-header-actions .theme-toggle {
    width: 100%;
    max-width: none;
  }
}

.site-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  color: var(--text);
}

.site-brand-logo {
  display: block;
  width: 128px;
  height: 32px;
  max-width: min(128px, 38vw);
  background-color: currentColor;
  mask: url('../images/talodabi-logo.svg') no-repeat center / contain;
  -webkit-mask: url('../images/talodabi-logo.svg') no-repeat center / contain;
}

@media (max-width: 480px) {
  .site-brand-logo {
    width: 120px;
    height: 26px;
  }
}

.site-brand-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--surface-raised);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--accent);
}

.site-brand-name {
  display: block;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
}

.site-brand-tag {
  display: block;
  font-size: 0.7rem;
  color: var(--text-faint);
  letter-spacing: 0.04em;
}

.hub-shell {
  position: relative;
  z-index: 1;
  padding: 2rem 1.25rem 4rem;
  display: flex;
  justify-content: center;
}

.hub-shell--wide .hub-panel {
  max-width: 840px;
}

.hub-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hub-breadcrumb a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.hub-breadcrumb a:hover {
  text-decoration: underline;
}

.hub-breadcrumb span:last-child {
  color: var(--text);
  font-weight: 500;
}

/* ── Course catalog cards ── */

.course-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.course-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 1.25rem;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(128, 128, 128, 0.04);
  transition: background 0.15s, border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}

[data-theme="dark"] .course-card {
  background: rgba(255, 255, 255, 0.03);
}

.course-card:hover {
  border-color: var(--border-strong);
  background: rgba(128, 128, 128, 0.08);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

[data-theme="dark"] .course-card:hover {
  background: rgba(255, 255, 255, 0.06);
}

.course-card-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}

.course-card--product .course-card-icon,
.course-card--graphic .course-card-icon,
.course-card--figma .course-card-icon,
.course-card--studio .course-card-icon {
  color: var(--brand);
  background: var(--accent-soft);
  border-color: rgba(110, 81, 224, 0.22);
}

.course-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.course-card-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.3;
}

.course-card-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.course-card-status {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
}

.course-card-status--live {
  color: var(--success);
}

.course-card-cta {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  border-radius: 99px;
  background: var(--text);
  color: var(--bg-deep);
}

[data-theme="dark"] .course-card-cta {
  background: #f0f0f0;
  color: #0a0a0a;
}

.course-card:hover .course-card-cta {
  background: var(--accent);
  color: #fff;
}

.hub-panel {
  width: 100%;
  max-width: var(--hub-max);
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: var(--space-8) var(--space-6);
}

.hub-hero {
  text-align: center;
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.hub-eyebrow {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-faint);
  margin: 0 0 0.75rem;
}

.hub-hero h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  line-height: var(--line-tight);
  margin: 0 0 1rem;
}

.hub-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin: 0 auto 1.25rem;
  max-width: 42ch;
  line-height: var(--line);
}

.hub-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hub-stats strong {
  color: var(--text);
  font-weight: 600;
}

.hub-stats-dot {
  color: var(--text-faint);
}

.hub-section-head {
  margin-bottom: 1.25rem;
}

.hub-section-head h2 {
  font-size: 1.35rem;
  margin: 0 0 0.35rem;
}

.hub-section-desc {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hub-curriculum {
  margin-bottom: 1.5rem;
}

.hub-curriculum .studio-catalog-grid {
  margin-bottom: 0;
}

.studio-course-block .hub-section-head h2 a {
  color: inherit;
  text-decoration: none;
}

.studio-course-block .hub-section-head h2 a:hover {
  color: var(--accent);
}

.week-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.week-row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-4);
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(128, 128, 128, 0.04);
  transition:
    background var(--duration-normal) var(--ease-out),
    border-color var(--duration-normal) var(--ease-out),
    transform var(--duration-normal) var(--ease-out),
    box-shadow var(--duration-normal) var(--ease-out);
}

[data-theme="dark"] .week-row {
  background: rgba(255, 255, 255, 0.03);
}

.week-row:hover {
  border-color: var(--border-strong);
  background: rgba(128, 128, 128, 0.08);
  transform: translateX(2px);
  box-shadow: var(--shadow);
}

[data-theme="dark"] .week-row:hover {
  background: rgba(255, 255, 255, 0.06);
}

.week-row-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.week-row-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.week-row-title {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
}

.week-row-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.week-row-cta {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: 99px;
  background: var(--text);
  color: var(--bg-deep);
}

[data-theme="dark"] .week-row-cta {
  background: #f0f0f0;
  color: #0a0a0a;
}

.week-row:hover .week-row-cta {
  background: var(--accent);
  color: #fff;
}

[data-theme="dark"] .week-row:hover .week-row-cta {
  color: #fff;
}

.week-row.locked {
  opacity: 0.45;
  pointer-events: none;
}

.hub-note {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  background: rgba(128, 128, 128, 0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: var(--line);
}

[data-theme="dark"] .hub-note {
  background: rgba(255, 255, 255, 0.04);
}

.hub-note p {
  margin: 0 0 0.75rem;
}

.hub-note p:last-child {
  margin-bottom: 0;
}

.hub-note code {
  font-family: var(--font-mono);
  font-size: 0.8em;
  padding: 0.15em 0.4em;
  background: rgba(128, 128, 128, 0.12);
  border-radius: 4px;
}

/* Legacy hub classes (fallback) */
.hub { max-width: var(--hub-max); margin: 0 auto; padding: 2rem; }
.week-grid { display: grid; gap: 1rem; }
.week-card { text-decoration: none; color: var(--text); }

/* ── Responsive ── */

@media (min-width: 769px) {
  .sidebar-collapse-btn {
    display: inline-flex;
  }

  .menu-btn {
    display: none !important;
  }
}

@media (max-width: 768px) {
  body {
    --sidebar-offset: 0px;
  }

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

  .sidebar {
    transform: translateX(-100%);
    box-shadow: var(--shadow-lg);
  }

  body.sidebar-collapsed .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .main {
    grid-column: 1;
    width: 100%;
  }

  .menu-btn { display: inline-flex; }

  .sidebar-collapse-btn { display: none !important; }

  .app .main .topbar {
    width: calc(100% - 1rem);
    margin-top: 0.5rem;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }

  .main > .content {
    width: calc(100% - 1rem);
    max-width: none;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  }

  .content > .part-divider {
    padding: 1.1rem var(--lesson-pad-x);
  }

  .week-hero h1 {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .week-hero .lead {
    font-size: 1rem;
  }

  .section h2 {
    font-size: 1.2rem;
  }

  .topbar { padding: 0.65rem 1rem; }

  .progress-wrap { display: none; }

  .hub-shell {
    padding: 1.25rem max(1rem, env(safe-area-inset-left)) 2.75rem max(1rem, env(safe-area-inset-right));
  }

  .hub-panel {
    padding: 1.5rem 1.1rem;
    border-radius: var(--radius-lg);
    max-width: 100%;
  }

  .week-row,
  .course-card {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .week-row-cta,
  .course-card-cta {
    width: 100%;
    text-align: center;
  }

  .site-brand-tag { display: none; }
}

@media (max-width: 480px) {
  .hub-shell {
    padding: 1rem 0.65rem 2.5rem;
  }

  .hub-panel {
    padding: 1.25rem 0.95rem;
  }

  .hub-breadcrumb {
    margin-bottom: 1.15rem;
    gap: 0.35rem;
    font-size: 0.75rem;
  }

  .site-header-bar-end {
    gap: 0.45rem;
  }
}


/* ── Print ── */

@media print {
  .sidebar, .topbar, .app::before, .app::after, .sidebar-backdrop { display: none; }
  .app {
    grid-template-columns: minmax(0, 1fr);
  }
  .main {
    grid-column: 1;
    width: 100%;
  }
  .main > .content {
    width: 100%;
    max-width: 100%;
    margin: 0;
    border: none;
    box-shadow: none;
    border-radius: 0;
  }
  .content > .section,
  .content > section.section { break-inside: avoid; }
  .note { color: var(--note-accent) !important; }
}

/* ── Protected lesson notes (students) ── */

body.lesson-notes-protected,
body.lesson-notes-protected .content,
body.lesson-notes-protected .pd-lesson,
body.lesson-notes-protected .section,
body.lesson-notes-protected .main,
html.lesson-notes-protected body *:not(input):not(textarea) {
  -webkit-user-select: none !important;
  user-select: none !important;
  -webkit-touch-callout: none !important;
}

body.lesson-notes-protected .notes-protect-banner a,
body.lesson-notes-protected .sidebar a,
body.lesson-notes-protected .topbar a,
body.lesson-notes-protected .btn {
  -webkit-user-select: none !important;
  user-select: none !important;
}

html.lesson-notes-protected ::selection,
html.lesson-notes-protected *::selection {
  background: transparent !important;
  color: inherit !important;
}

.notes-protect-banner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
  margin: 0 0 1.25rem;
  padding: 0.85rem 0.65rem 0.85rem 1rem;
  border-radius: var(--radius, 0.75rem);
  border: 1px solid color-mix(in srgb, var(--accent, #6e51e0) 28%, var(--border));
  background: color-mix(in srgb, var(--accent, #6e51e0) 8%, var(--surface, transparent));
  color: var(--text-secondary, var(--muted));
  font-size: 0.88rem;
  line-height: 1.5;
}

.notes-protect-banner[hidden] {
  display: none !important;
}

.notes-protect-banner p {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
}

.notes-protect-banner-close {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  min-width: 2rem;
  min-height: 2rem;
  padding: 0;
  border: 0;
  border-radius: calc(var(--radius, 0.75rem) - 2px);
  background: transparent;
  color: var(--text-secondary, var(--muted));
  cursor: pointer;
}

.notes-protect-banner-close:hover {
  color: var(--text, #111);
  background: color-mix(in srgb, var(--accent, #6e51e0) 12%, transparent);
}

.notes-protect-banner-close:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent, #6e51e0) 55%, transparent);
  outline-offset: 2px;
}

.notes-protect-banner a {
  color: var(--accent, #6e51e0);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.notes-licence-stamp {
  pointer-events: none;
  position: fixed;
  right: 1rem;
  bottom: 0.65rem;
  z-index: 40;
  max-width: min(16rem, 42vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--text, #111);
  opacity: 0.28;
}

[data-theme="dark"] .notes-licence-stamp {
  opacity: 0.32;
}

html.lesson-embed .notes-licence-stamp,
html.lesson-embed .notes-protect-banner {
  display: none !important;
}

.portal-notes-licence {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
  margin: 0.85rem 0 0;
  padding: 0.85rem 0.65rem 0.85rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.12));
  background: color-mix(in srgb, var(--surface, #16161a) 70%, transparent);
  max-width: 42rem;
}

.portal-notes-licence p {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-secondary, var(--muted));
}

.portal-notes-licence-close {
  flex-shrink: 0;
  min-width: 2rem;
  min-height: 2rem;
  padding: 0;
}

.portal-notes-licence[hidden] {
  display: none !important;
}

.legal-doc {
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 0 3rem;
}

.legal-doc-head {
  margin-bottom: 2rem;
}

.legal-doc-title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.6rem, 3vw, 2rem);
}

.legal-doc-lead,
.legal-doc-meta,
.legal-doc-section p,
.legal-doc-list {
  color: var(--text-secondary, var(--muted));
  line-height: 1.65;
}

.legal-doc-meta {
  font-size: 0.85rem;
}

.legal-doc-section {
  margin-top: 1.75rem;
}

.legal-doc-h2 {
  margin: 0 0 0.65rem;
  font-size: 1.1rem;
}

.legal-doc-list {
  margin: 0.75rem 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.45rem;
}

/* ── Illustrations (nested in sections) ── */

.illustration {
  margin: 1.5rem 0;
  padding: 1.25rem;
  background: rgba(128, 128, 128, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: none;
  text-align: center;
  overflow-x: auto;
}

[data-theme="dark"] .illustration {
  background: rgba(255, 255, 255, 0.03);
}

.illustration svg,
.illustration img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

.illustration img.figma-screenshot {
  border: 1px solid var(--border);
}

.illustration-caption {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── Flow ladder (vertical build order) ── */

.flow-ladder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  max-width: 22rem;
  margin: 1.75rem auto;
  padding: 1.5rem 1.25rem;
  text-align: center;
}

.flow-ladder-step {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.75rem 1.1rem;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.flow-ladder-step--start {
  border-color: rgba(255, 130, 50, 0.45);
  box-shadow: 0 0 0 1px rgba(255, 130, 50, 0.12);
}

.flow-ladder-step--end {
  border-color: rgba(5, 150, 105, 0.45);
}

.flow-ladder-step--think {
  border-left: 3px solid var(--part-1);
}

.flow-ladder-step--structure {
  border-left: 3px solid var(--part-2);
}

.flow-ladder-step--interface {
  border-left: 3px solid var(--part-3);
}

.flow-ladder-num {
  flex-shrink: 0;
  width: 1.65rem;
  height: 1.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(128, 128, 128, 0.12);
  border-radius: 999px;
}

.flow-ladder-step--start .flow-ladder-num {
  color: var(--note-accent);
  background: var(--note-accent-soft);
}

.flow-ladder-label {
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.3;
  color: var(--text);
}

.flow-ladder-step--start .flow-ladder-label {
  color: var(--note-accent);
}

.flow-ladder-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 1.35rem;
  width: 2px;
  margin: 0.15rem 0;
  background: linear-gradient(to bottom, var(--border-strong), var(--border));
  position: relative;
}

.flow-ladder-chevron {
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--text-faint);
}

.flow-ladder-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  width: 100%;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--border);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.flow-ladder-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.flow-ladder-legend i {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 2px;
  font-style: normal;
}

.flow-ladder-legend i.think { background: var(--part-1); }
.flow-ladder-legend i.structure { background: var(--part-2); }
.flow-ladder-legend i.interface { background: var(--part-3); }

/* ── Flow rows (label → value maps) ── */

.flow-rows {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 28rem;
  margin: 1.5rem auto;
  padding: 0.25rem 0;
  text-align: left;
}

.flow-row {
  display: grid;
  grid-template-columns: minmax(5.5rem, 7rem) auto 1fr;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 1rem;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.flow-row-key {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--note-accent);
}

.flow-row-arrow {
  color: var(--text-faint);
  font-size: 0.9rem;
}

.flow-row-val {
  font-size: 0.9rem;
  color: var(--text-muted);
}

body.present-mode .flow-ladder {
  max-width: 26rem;
  padding: 2rem 1.5rem;
}

body.present-mode .flow-ladder-label {
  font-size: 1.15rem;
}

body.present-mode .flow-ladder-num {
  width: 2rem;
  height: 2rem;
  font-size: 0.9rem;
}

body.present-mode .flow-row {
  padding: 0.9rem 1.15rem;
}

body.present-mode .flow-row-key,
body.present-mode .flow-row-val {
  font-size: 1.05rem;
}

@media (max-width: 480px) {
  .flow-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
    text-align: center;
  }

  .flow-row-arrow {
    display: none;
  }
}

/* ── Mobile screen showcase ── */

.mobile-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 1.5rem 1.25rem;
  align-items: start;
  max-width: 36rem;
  margin: 1.75rem auto;
  padding: 0.5rem 0;
  text-align: center;
}

.mobile-showcase-item {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

.mobile-frame {
  position: relative;
  width: min(100%, 11.5rem);
  padding: 0.45rem;
  background: linear-gradient(145deg, rgba(128, 128, 128, 0.15), rgba(128, 128, 128, 0.05));
  border: 2px solid var(--border-strong);
  border-radius: 1.75rem;
  box-shadow: var(--shadow-md);
}

.mobile-frame-notch {
  display: block;
  width: 32%;
  height: 0.35rem;
  margin: 0.15rem auto 0.4rem;
  background: rgba(128, 128, 128, 0.35);
  border-radius: 999px;
}

.mobile-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1.35rem;
  border: 1px solid var(--border);
}

.mobile-showcase-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--note-accent);
  margin: 0.25rem 0 0;
}

.mobile-showcase-desc {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--text-muted);
  max-width: 14rem;
}

body.present-mode .mobile-showcase {
  max-width: 44rem;
  gap: 2rem;
}

body.present-mode .mobile-frame {
  width: min(100%, 14rem);
}

body.present-mode .mobile-showcase-desc {
  font-size: 0.95rem;
  max-width: 16rem;
}

/* ── Desktop / web app screen showcase ── */

.desktop-showcase {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 52rem;
  margin: 1.75rem auto;
  padding: 0.5rem 0;
}

.desktop-showcase-item {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.desktop-frame {
  border: 2px solid var(--border-strong);
  border-radius: 0.65rem;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--surface);
}

.desktop-frame-bar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.65rem;
  background: var(--surface-raised, var(--surface));
  border-bottom: 1px solid var(--border);
}

.desktop-frame-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: rgba(128, 128, 128, 0.35);
}

.desktop-frame img {
  display: block;
  width: 100%;
  height: auto;
  border: none;
  border-radius: 0;
}

.desktop-showcase-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--note-accent);
  margin: 0.25rem 0 0;
}

.desktop-showcase-desc {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-muted);
}

body.present-mode .desktop-showcase {
  max-width: 58rem;
  gap: 2.5rem;
}

body.present-mode .desktop-showcase-desc {
  font-size: 1rem;
}

.illustration img.figma-screenshot {
  border: none;
}

/* ── Interactive label ── */

.interactive-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.interactive-box {
  margin: 1.25rem 0;
  padding: 1.25rem 1.5rem;
  background: rgba(59, 108, 244, 0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: none;
}

[data-theme="dark"] .interactive-box {
  background: rgba(107, 142, 248, 0.08);
}

.interactive-box:hover {
  border-color: var(--border-strong);
}

/* ── Tabs ── */

.tabs {
  margin: 1rem 0;
}

.tab-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.tab-btn {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.15s;
}

.tab-btn:hover { border-color: var(--accent); color: var(--accent); }

.tab-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.tab-panel {
  display: none;
  padding: 1rem 1.25rem;
  background: rgba(128, 128, 128, 0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

@media (prefers-reduced-motion: no-preference) {
  .tab-panel.active {
    animation: fadeIn 0.18s ease;
  }
}

[data-theme="dark"] .tab-panel {
  background: rgba(255, 255, 255, 0.04);
}

.tab-panel.active { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Quiz ── */

.quiz-options {
  display: grid;
  gap: 0.5rem;
  margin: 0.75rem 0;
}

.quiz-option {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
  font-size: 0.9rem;
  text-align: left;
  font-family: var(--font);
  color: var(--text);
  transition: all 0.15s;
}

.quiz-option:hover { border-color: var(--accent); }

.quiz-option.correct {
  background: #ecfdf5;
  border-color: #059669;
  color: #065f46;
}

.quiz-option.wrong {
  background: #fef2f2;
  border-color: #dc2626;
  color: #991b1b;
}

[data-theme="dark"] .quiz-option.correct {
  background: #064e3b;
  color: #a7f3d0;
}

[data-theme="dark"] .quiz-option.wrong {
  background: #450a0a;
  color: #fecaca;
}

.quiz-feedback {
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 0.5rem;
  display: none;
}

.quiz-feedback.show { display: block; }
.quiz-feedback.success { color: #059669; }
.quiz-feedback.error { color: #dc2626; }

/* ── Classifier ── */

.classifier-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.classifier-item:last-child { border-bottom: none; }

.classifier-label {
  font-size: 0.9rem;
  font-weight: 500;
  flex: 1;
  min-width: 140px;
}

.classifier-actions {
  display: flex;
  gap: 0.4rem;
}

.classifier-btn {
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  font-size: 0.8rem;
  cursor: pointer;
  font-family: var(--font);
  color: var(--text);
  transition: all 0.15s;
}

.classifier-btn:hover:not(:disabled) { border-color: var(--accent); }

.classifier-btn.correct:not(.wrong) {
  background: #059669;
  color: #fff;
  border-color: #059669;
}

.classifier-btn.wrong {
  background: #dc2626;
  color: #fff;
  border-color: #dc2626;
}

.classifier-btn:disabled { cursor: default; opacity: 0.9; }

.classifier-score {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}

/* ── Interactive checklist ── */

.checklist-interactive {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.checklist-interactive li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.65rem 0.85rem;
  margin-bottom: 0.35rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
}

.checklist-interactive li:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.checklist-interactive li.checked {
  background: #ecfdf5;
  border-color: #059669;
}

[data-theme="dark"] .checklist-interactive li.checked {
  background: #064e3b;
}

.checklist-interactive li.checked .check-box {
  background: #059669;
  border-color: #059669;
  position: relative;
}

.checklist-interactive li.checked .check-box::after {
  content: "";
  width: 0.3rem;
  height: 0.55rem;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  position: absolute;
  top: 42%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
}

.checklist-progress {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

/* ── Sorter (output vs outcome) ── */

.sorter-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.sorter-card {
  padding: 0.5rem 0.85rem;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: 8px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.15s;
}

.sorter-card:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.sorter-card.placed { cursor: default; opacity: 0.85; }
.sorter-card.right { border-color: #059669; background: #ecfdf5; }
.sorter-card.wrong { border-color: #dc2626; background: #fef2f2; }

.sorter-bins {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.sorter-bin {
  min-height: 80px;
  padding: 0.75rem;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
}

.sorter-bin-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.sorter-result {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  display: none;
}

.sorter-result.show { display: block; color: var(--accent); }

@media (max-width: 480px) {
  .sorter-bins { grid-template-columns: 1fr; }
}

/* ── Flow builder ── */

.flow-step-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0;
}

.flow-step-btn {
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  font-size: 0.85rem;
  cursor: pointer;
  font-family: var(--font);
  color: var(--text);
  transition: all 0.15s;
}

.flow-step-btn:hover:not(.used) { border-color: var(--accent); }

.flow-step-btn.used {
  background: var(--accent-soft);
  border-color: var(--accent);
  opacity: 0.6;
  cursor: default;
}

.flow-build-output {
  padding: 0.75rem 1rem;
  background: var(--code-bg);
  color: var(--code-text);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  min-height: 2.5rem;
  margin: 0.5rem 0;
}

.flow-build-result {
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 0.5rem;
}

.flow-correct .flow-build-result { color: #059669; }
.flow-wrong .flow-build-result { color: #dc2626; }

.flow-build-reset {
  margin-top: 0.5rem;
}

/* ── Accessibility & motion ── */

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.tab-btn:focus-visible,
.quiz-option:focus-visible,
.classifier-btn:focus-visible,
.flow-step-btn:focus-visible,
.btn:focus-visible,
.nav-link:focus-visible,
.checklist-interactive li:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Graphic Design program (lesson pages) ── */

body.program-graphic {
  --part-2: #8570e8;
  --part-3: #5540c8;
}

/* ── Graphic Design for Teens (orange accent, matches teaching dashboard) ── */

body.program-graphic-teens {
  --part-1: #f97316;
  --part-2: #ea580c;
  --part-3: #c2410c;
}

.teen-hub {
  max-width: 60rem;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}

.teen-hub-head {
  margin-bottom: 2rem;
}

.teen-week-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
  gap: 0.85rem;
}

.teen-week-card {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--border);
  border-left: 3px solid #f97316;
  border-radius: 0.9rem;
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.teen-week-card:hover {
  border-color: #f97316;
  transform: translateY(-2px);
}

.teen-week-card:focus-visible {
  outline: 2px solid #f97316;
  outline-offset: 2px;
}

.teen-week-num {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #f97316;
}

.teen-week-title {
  font-size: 1.02rem;
  font-weight: 650;
  line-height: 1.3;
}

.teen-week-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.teen-week-count {
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: var(--text-faint, var(--text-muted));
}

.hub-page--course.hub-page--graphic .hub-eyebrow {
  color: var(--brand);
}

[data-theme="dark"] .hub-page--course.hub-page--graphic .hub-eyebrow {
  color: var(--accent);
}

.hub-page--course.hub-page--figma .hub-eyebrow {
  color: #a855f7;
}

[data-theme="dark"] .hub-page--course.hub-page--figma .hub-eyebrow {
  color: #c084fc;
}

.hub-outcomes-list {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.hub-outcomes-list li {
  margin-bottom: 0.35rem;
}

body.program-figma .badge {
  background: none;
  color: var(--accent-hover);
}

[data-theme="dark"] body.program-figma .badge {
  background: none;
  color: var(--note-accent);
}

/* ── Splash page (geometric split) ── */

.splash-page {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg-deep);
}

.splash-page .site-header--splash {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  border-bottom: none;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: none;
}

.splash-page .site-header--splash::before {
  opacity: 0;
  background: transparent;
  border-bottom-color: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: opacity 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.splash-page .site-header--splash.site-header--scrolled::before {
  opacity: 1;
  background: var(--surface-overlay);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* Compact bar · logo left, Sign in pill, menu icon */
.splash-page .site-header--compact.site-header--splash {
  background: transparent;
  border-bottom: none;
  box-shadow: none;
}

/* ── Academy homepage (Sylven-inspired · light type-led school) ── */
.home-page {
  --home-bg: #ebebeb;
  --home-surface: #ffffff;
  --home-ink: #0a0a0a;
  --home-muted: #5c5c5c;
  --home-border: rgba(0, 0, 0, 0.1);
  --home-glow-a: #9fd6d4;
  --home-glow-b: #d4e86a;
  --home-font-display: "Outfit", var(--font-sans);
  --home-font-body: "Work Sans", var(--font-sans);
  --home-font-mono: "IBM Plex Mono", ui-monospace, monospace;
  /* One rail for header + hero + sections. Changing --home-max also moves the header. */
  --home-gutter: max(clamp(1.25rem, 5vw, 4rem), env(safe-area-inset-left), env(safe-area-inset-right));
  --home-max: 72rem;
  --home-rail: calc(var(--home-max) + var(--home-gutter) * 2);
  background-color: var(--home-bg);
  background-image:
    radial-gradient(ellipse 55% 45% at 0% 0%, color-mix(in srgb, var(--home-glow-a) 55%, transparent), transparent 60%),
    radial-gradient(ellipse 50% 40% at 100% 0%, color-mix(in srgb, var(--home-glow-b) 50%, transparent), transparent 55%),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 2px,
      rgba(0, 0, 0, 0.015) 2px,
      rgba(0, 0, 0, 0.015) 3px
    );
  color: var(--home-ink);
  font-family: var(--home-font-body);
  overflow-x: clip;
  max-width: 100%;
}

[data-theme="dark"] .home-page {
  --home-bg: #0a0a0a;
  --home-surface: #141414;
  --home-ink: #f4f4f5;
  --home-muted: #a1a1aa;
  --home-border: rgba(255, 255, 255, 0.1);
  --home-glow-a: #3d7a78;
  --home-glow-b: #6a7a28;
  background-image:
    radial-gradient(ellipse 55% 45% at 0% 0%, color-mix(in srgb, var(--home-glow-a) 28%, transparent), transparent 62%),
    radial-gradient(ellipse 50% 40% at 100% 0%, color-mix(in srgb, var(--home-glow-b) 22%, transparent), transparent 58%),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 2px,
      rgba(255, 255, 255, 0.022) 2px,
      rgba(255, 255, 255, 0.022) 3px
    );
}

.home-page .site-header--splash:not(.site-header--scrolled) {
  background: transparent;
}

.home-page .site-header--splash:not(.site-header--scrolled)::before {
  opacity: 0;
}

.home-page .site-header--splash.site-header--scrolled::before {
  opacity: 1;
  background: color-mix(in srgb, var(--home-surface) 90%, transparent);
  border-bottom: 1px solid var(--home-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* Overrides the global header width so the logo sits on the hero copy edge.
   Scoped to splash-page: hub pages also carry .home-page but keep the wider header. */
.home-page.splash-page .site-header-inner {
  max-width: var(--home-rail);
  padding-inline: var(--home-gutter);
}

.home-main {
  display: block;
  width: 100%;
  overflow-x: clip;
}

.home-hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding:
    calc(var(--header-height) + 2rem)
    var(--home-gutter, clamp(1.25rem, 5vw, 4rem))
    clamp(2.5rem, 7vh, 4rem);
  overflow: hidden;
  max-width: 100%;
}

.home-hero-plane {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.home-hero-gallery {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.home-hero-tile {
  position: absolute;
  left: 0;
  top: 0;
  border-radius: 0.35rem;
  overflow: hidden;
  background-color: var(--home-surface, #fff);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
  cursor: default;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
  contain: layout paint;
}

.home-hero-gallery.is-static .home-hero-tile {
  cursor: default;
  opacity: 0.88;
}

.home-hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      105deg,
      color-mix(in srgb, var(--home-bg, #ebebeb) 92%, transparent) 0%,
      color-mix(in srgb, var(--home-bg, #ebebeb) 78%, transparent) 38%,
      color-mix(in srgb, var(--home-bg, #ebebeb) 35%, transparent) 62%,
      transparent 82%
    ),
    linear-gradient(
      to top,
      color-mix(in srgb, var(--home-bg, #ebebeb) 55%, transparent) 0%,
      transparent 28%
    );
}

[data-theme="dark"] .home-hero-scrim {
  background:
    linear-gradient(
      105deg,
      color-mix(in srgb, var(--home-bg, #0a0a0a) 94%, transparent) 0%,
      color-mix(in srgb, var(--home-bg, #0a0a0a) 80%, transparent) 40%,
      color-mix(in srgb, var(--home-bg, #0a0a0a) 40%, transparent) 64%,
      transparent 84%
    ),
    linear-gradient(
      to top,
      color-mix(in srgb, var(--home-bg, #0a0a0a) 60%, transparent) 0%,
      transparent 30%
    );
}

.home-hero-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 0;
  width: min(100%, var(--home-max, 72rem));
  margin: 0 auto;
  pointer-events: none;
}

.home-hero-inner {
  width: min(100%, 36rem);
  animation: home-hero-rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
  pointer-events: auto;
}

@keyframes home-hero-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.home-hero-stage {
  position: relative;
  height: min(58vh, 460px);
  min-height: 340px;
  margin-inline: auto;
  width: min(100%, 32rem);
  max-width: 100%;
  overflow: hidden;
  animation: home-hero-rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.12s both;
  perspective: 1200px;
}

.home-stage-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
}

.home-stage-orb--a {
  width: 55%;
  height: 55%;
  top: 8%;
  right: 5%;
  background: color-mix(in srgb, var(--home-glow-a) 70%, transparent);
  animation: home-orb-drift 10s ease-in-out infinite;
}

.home-stage-orb--b {
  width: 45%;
  height: 45%;
  bottom: 5%;
  left: 0;
  background: color-mix(in srgb, var(--home-glow-b) 65%, transparent);
  animation: home-orb-drift 12s ease-in-out infinite reverse;
}

@keyframes home-orb-drift {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(12px, -16px) scale(1.06);
  }
}

.home-stage-scene {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}

.home-stage-panel {
  position: absolute;
  background: var(--home-surface);
  border: 1px solid var(--home-border);
  border-radius: 1.1rem;
  box-shadow:
    0 22px 50px rgba(0, 0, 0, 0.1),
    0 2px 0 rgba(255, 255, 255, 0.55) inset;
  overflow: hidden;
}

[data-theme="dark"] .home-stage-panel {
  box-shadow:
    0 26px 60px rgba(0, 0, 0, 0.55),
    0 1px 0 rgba(255, 255, 255, 0.06) inset;
}

.home-stage-panel--lanes {
  width: 58%;
  top: 4%;
  left: 0;
  z-index: 2;
  padding: 0.85rem 0.9rem 1rem;
  transform: rotate(-8deg) rotateY(8deg) translateZ(0);
  animation: home-float-a 7.5s ease-in-out infinite;
}

.home-stage-panel--levels {
  width: 52%;
  top: 10%;
  right: 0;
  z-index: 1;
  padding: 1rem 1rem 0.9rem;
  transform: rotate(7deg) rotateY(-10deg) translateZ(-20px);
  animation: home-float-b 8.5s ease-in-out infinite;
}

.home-stage-panel--course {
  width: 62%;
  left: 18%;
  bottom: 2%;
  z-index: 3;
  padding: 0.85rem;
  transform: rotate(-2deg) rotateY(4deg) translateZ(40px);
  animation: home-float-c 6.5s ease-in-out infinite;
}

.home-stage-tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--home-border);
}

.home-stage-tabs span {
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--home-muted);
  background: transparent;
}

.home-stage-tabs span.is-active {
  color: var(--home-ink);
  background: color-mix(in srgb, var(--home-ink) 8%, var(--home-surface));
}

.home-stage-toggles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.home-stage-toggles li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.home-stage-toggle-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--home-ink);
}

.home-stage-switch {
  position: relative;
  width: 2.15rem;
  height: 1.2rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--home-ink) 14%, var(--home-surface));
  flex: 0 0 auto;
}

.home-stage-switch i {
  position: absolute;
  top: 0.15rem;
  left: 0.15rem;
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.home-stage-switch.is-on i {
  transform: translateX(0.95rem);
}

.home-stage-switch--mint.is-on {
  background: #5bb8b4;
}

.home-stage-switch--lime.is-on {
  background: #b8d44a;
}

.home-stage-switch--ink.is-on {
  background: var(--home-ink);
}

.home-stage-switch--ink.is-on i {
  background: var(--home-surface);
}

.home-stage-switch--soft.is-on {
  background: #c4b5fd;
}

.home-stage-panel-kicker {
  margin: 0 0 0.25rem;
  font-family: var(--home-font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--home-muted);
}

.home-stage-panel-title {
  margin: 0 0 0.85rem;
  font-family: var(--home-font-display);
  font-size: 1rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--home-ink);
}

.home-stage-level-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  margin-bottom: 0.65rem;
}

.home-stage-level {
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--home-ink) 22%, transparent);
  background: transparent;
}

.home-stage-level.is-on {
  border-color: var(--home-ink);
  background: var(--home-ink);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--home-glow-a) 45%, transparent);
}

.home-stage-level[data-size="xs"] { width: 0.55rem; height: 0.55rem; }
.home-stage-level[data-size="sm"] { width: 0.7rem; height: 0.7rem; }
.home-stage-level[data-size="md"] { width: 0.85rem; height: 0.85rem; }
.home-stage-level[data-size="lg"] { width: 1rem; height: 1rem; }
.home-stage-level[data-size="xl"] { width: 1.15rem; height: 1.15rem; }

.home-stage-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.3rem;
  border: 1.5px solid color-mix(in srgb, var(--home-ink) 22%, transparent);
  background: transparent;
  color: transparent;
}

.home-stage-check.is-on {
  background: var(--home-ink);
  border-color: var(--home-ink);
  color: var(--home-surface);
}

.home-stage-check.is-on::after {
  content: "";
  width: 35%;
  height: 55%;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg) translate(-10%, -10%);
}

.home-stage-check[data-size="xs"] { width: 0.7rem; height: 0.7rem; }
.home-stage-check[data-size="sm"] { width: 0.85rem; height: 0.85rem; }
.home-stage-check[data-size="md"] { width: 1rem; height: 1rem; }
.home-stage-check[data-size="lg"] { width: 1.15rem; height: 1.15rem; }
.home-stage-check[data-size="xl"] { width: 1.3rem; height: 1.3rem; }

.home-stage-level-labels {
  display: flex;
  justify-content: space-between;
  font-family: var(--home-font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--home-muted);
}

.home-stage-course-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.home-stage-course-badge {
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: color-mix(in srgb, var(--home-glow-a) 45%, var(--home-surface));
  color: var(--home-ink);
}

.home-stage-course-meta {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--home-muted);
}

.home-stage-course-media {
  position: relative;
  height: 5.5rem;
  border-radius: 0.75rem;
  margin-bottom: 0.7rem;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--home-glow-a) 55%, #1a1a1a), color-mix(in srgb, var(--home-glow-b) 45%, #111));
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-stage-play {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  position: relative;
}

.home-stage-play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 0.35rem 0 0.35rem 0.55rem;
  border-color: transparent transparent transparent #111;
}

.home-stage-course-title {
  margin: 0 0 0.55rem;
  font-family: var(--home-font-display);
  font-size: 0.95rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--home-ink);
}

.home-stage-progress {
  height: 0.35rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--home-ink) 10%, var(--home-surface));
  overflow: hidden;
  margin-bottom: 0.7rem;
}

.home-stage-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--home-glow-a), var(--home-glow-b));
}

.home-stage-course-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.home-stage-price {
  font-family: var(--home-font-display);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--home-ink);
}

.home-stage-cta-chip {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 750;
  background: var(--home-ink);
  color: var(--home-surface);
}

@keyframes home-float-a {
  0%,
  100% {
    transform: rotate(-8deg) rotateY(8deg) translateY(0);
  }
  50% {
    transform: rotate(-5deg) rotateY(8deg) translateY(-10px);
  }
}

@keyframes home-float-b {
  0%,
  100% {
    transform: rotate(7deg) rotateY(-10deg) translateZ(-20px) translateY(0);
  }
  50% {
    transform: rotate(4deg) rotateY(-10deg) translateZ(-20px) translateY(-12px);
  }
}

@keyframes home-float-c {
  0%,
  100% {
    transform: rotate(-2deg) rotateY(4deg) translateZ(40px) translateY(0);
  }
  50% {
    transform: rotate(0deg) rotateY(4deg) translateZ(40px) translateY(-10px);
  }
}

.home-hero-eyebrow {
  margin: 0 0 0.65rem;
  font-family: var(--home-font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--home-muted);
}

.home-hero-title {
  margin: 0 0 1.1rem;
  font-family: var(--home-font-display);
  font-size: clamp(2.15rem, 5.5vw, 3.65rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  max-width: 18ch;
  color: var(--home-ink);
}

.home-hero-lead {
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--home-muted);
  max-width: 38ch;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 0;
}

.home-hero-actions .home-btn--primary {
  flex: 0 0 auto;
}

.home-hero-actions .home-btn--ghost {
  flex: 0 0 auto;
}

@media (max-width: 640px) {
  .home-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .home-hero-actions .home-btn {
    width: 100%;
  }

  .home-proof-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .home-proof-actions .home-btn {
    width: 100%;
  }
}

.home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.65rem 1.35rem;
  font-family: var(--home-font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.home-btn:hover {
  transform: translateY(-1px);
}

.home-btn:focus-visible {
  outline: 2px solid var(--home-ink);
  outline-offset: 3px;
}

.home-btn--primary {
  color: var(--home-bg);
  background: var(--home-ink);
  border-color: var(--home-ink);
}

.home-btn--primary:hover {
  background: color-mix(in srgb, var(--home-ink) 88%, #000);
  border-color: color-mix(in srgb, var(--home-ink) 88%, #000);
}

[data-theme="dark"] .home-btn--primary:hover {
  background: color-mix(in srgb, var(--home-ink) 90%, #fff);
  border-color: color-mix(in srgb, var(--home-ink) 90%, #fff);
}

.home-btn--ghost {
  color: var(--home-ink);
  background: transparent;
  border-color: var(--home-border);
}

.home-btn--ghost:hover {
  border-color: var(--home-ink);
  background: var(--home-surface);
}

[data-theme="dark"] .home-btn--ghost {
  border-color: rgba(255, 255, 255, 0.22);
}

[data-theme="dark"] .home-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.4);
}

.home-hero-proof-text {
  margin: 0;
  font-family: var(--home-font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--home-muted);
}

.home-hero-proof-text--top {
  margin: 0 0 0.85rem;
}

.home-hero-proof-text strong {
  color: var(--home-ink);
  font-weight: 600;
}

.home-ticker {
  background: var(--home-ink);
  color: var(--home-bg);
  overflow: hidden;
  padding: 0.85rem 0;
}

.home-ticker-track {
  display: flex;
  width: max-content;
  animation: home-ticker 36s linear infinite;
}

.home-ticker-group {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-right: 1.5rem;
  font-family: var(--home-font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.home-ticker-sep {
  opacity: 0.35;
}

@keyframes home-ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.home-section {
  padding: clamp(2.75rem, 7vh, 4.75rem) var(--home-gutter, clamp(1.25rem, 5vw, 4rem));
}

.home-section-inner {
  width: min(100%, var(--home-max, 72rem));
  margin: 0 auto;
}

.home-section-meta {
  margin: 0 0 0.85rem;
  font-family: var(--home-font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--home-muted);
}

.home-section-meta--stack {
  margin-bottom: 0.85rem;
}

.home-section-head {
  margin-bottom: 1.75rem;
}

.home-section-head--split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 1.25rem 2rem;
  align-items: end;
}

.home-section-head h2,
.home-closing-inner h2 {
  margin: 0;
  font-family: var(--home-font-display);
  font-size: clamp(2.25rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--home-ink);
}

.home-section-lead {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--home-muted);
  max-width: 36ch;
}

.home-eyebrow {
  margin: 0 0 0.5rem;
  font-family: var(--home-font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--home-muted);
}

.home-pathway-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.home-pathway {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.35rem 1.25rem;
  text-decoration: none;
  color: inherit;
  background: var(--home-surface);
  border: 1px solid var(--home-border);
  border-radius: 18px;
  transition: transform 0.2s ease, border-color 0.2s ease;
  min-height: 11.5rem;
}

.home-pathway:hover {
  transform: translateY(-2px);
  border-color: var(--home-ink);
}

.home-pathway-num {
  font-family: var(--home-font-mono);
  font-size: 0.72rem;
  color: var(--home-muted);
}

.home-pathway-label {
  font-family: var(--home-font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--home-ink);
}

.home-pathway-meta {
  font-size: 0.9rem;
  color: var(--home-muted);
  line-height: 1.45;
  flex: 1;
}

.home-pathway-cta {
  margin-top: 0.55rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--home-ink);
}

.home-section-foot {
  margin: 1.5rem 0 0;
  font-size: 0.92rem;
  color: var(--home-muted);
}

.home-section-foot--actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1.75rem;
}

.home-section-foot--actions .home-btn {
  flex: 0 0 auto;
}

@media (max-width: 640px) {
  .home-section-foot--actions {
    flex-direction: column;
    align-items: stretch;
  }

  .home-section-foot--actions .home-btn {
    width: 100%;
  }
}

.home-inline-link {
  color: var(--home-ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.home-shop-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.home-shop-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.35rem 1.3rem 1.45rem;
  background: var(--home-surface);
  border: 1px solid var(--home-border);
  border-radius: 20px;
}

.home-shop-card-top {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
}

.home-shop-kicker,
.home-shop-meta {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--home-muted);
}

.home-shop-title {
  margin: 0;
  font-family: var(--home-font-display);
  font-size: 1.35rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.home-shop-desc {
  margin: 0;
  color: var(--home-muted);
  font-size: 0.92rem;
  line-height: 1.5;
  flex: 1;
}

.home-shop-price {
  margin: 0.35rem 0 0.15rem;
  font-family: var(--home-font-display);
  font-size: clamp(2rem, 3.5vw, 2.65rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--home-ink);
}

.home-shop-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.35rem;
}

.home-btn--compact {
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
}

.home-people-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.home-instructor-grid {
  max-width: 28rem;
}

.home-person-card {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr);
  gap: 1.15rem;
  align-items: stretch;
  padding: 1rem;
  background: var(--home-surface);
  border: 1px solid var(--home-border);
  border-radius: 20px;
}

.home-person-photo-wrap {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: color-mix(in srgb, var(--home-ink) 8%, transparent);
  aspect-ratio: 4 / 5;
}

.home-person-photo-wrap--sm {
  width: 5.5rem;
  aspect-ratio: 4 / 5;
  flex-shrink: 0;
  border-radius: 12px;
}

.home-person-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-person-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--home-font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--home-ink);
  background: color-mix(in srgb, var(--home-ink) 8%, var(--home-surface));
}

.home-person-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.35rem 0.25rem 0.35rem 0;
}

.home-person-role {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--home-muted);
}

.home-person-name {
  margin: 0;
  font-family: var(--home-font-display);
  font-size: 1.35rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.home-person-focus {
  margin: 0;
  color: var(--home-muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.home-tutor-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.home-tutor-card {
  padding: 1.25rem;
  background: var(--home-surface);
  border: 1px solid var(--home-border);
  border-radius: 20px;
}

.home-tutor-head {
  display: flex;
  gap: 1.15rem;
  align-items: flex-start;
  margin-bottom: 1.15rem;
}

.home-tutor-offers {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.home-tutor-offer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 0.85rem 1rem;
  align-items: center;
  padding: 0.95rem 1rem;
  border: 1px solid var(--home-border);
  border-radius: 14px;
}

.home-tutor-offer-kind {
  margin: 0 0 0.2rem;
  font-size: 0.68rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--home-muted);
}

.home-tutor-offer-title {
  margin: 0;
  font-weight: 600;
  font-size: 0.98rem;
}

.home-tutor-offer-price {
  margin: 0;
  font-family: var(--home-font-display);
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.home-process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.home-process-card {
  padding: 1.2rem 1.15rem 1.35rem;
  background: var(--home-surface);
  border: 1px solid var(--home-border);
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.home-process-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.home-process-dots {
  display: flex;
  gap: 0.3rem;
}

.home-process-dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--home-ink) 22%, transparent);
}

.home-process-dot.is-active {
  background: var(--home-ink);
}

[data-theme="dark"] .home-process-card {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.home-process-week {
  font-family: var(--home-font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--home-muted);
}

.home-process-title {
  margin: 0 0 0.55rem;
  font-family: var(--home-font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--home-ink);
}

.home-process-body {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--home-muted);
}

.home-program-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.home-program {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto;
  gap: 0.35rem 0.85rem;
  align-items: baseline;
  padding: 1.15rem 1.2rem;
  text-decoration: none;
  background: var(--home-surface);
  border: 1px solid var(--home-border);
  border-radius: 16px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.home-program:hover {
  transform: translateY(-2px);
  border-color: var(--home-ink);
}

.home-program-num {
  grid-row: 1 / 3;
  font-family: var(--home-font-mono);
  font-size: 0.72rem;
  color: var(--home-muted);
}

.home-program-label {
  font-family: var(--home-font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--home-ink);
  line-height: 1.25;
}

.home-program-tag {
  font-family: var(--home-font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--home-muted);
  justify-self: end;
}

.home-program-meta {
  grid-column: 2 / 4;
  font-size: 0.82rem;
  color: var(--home-muted);
}

.home-proof-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 1.25rem;
  align-items: start;
}

.home-proof-main {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.home-proof-featured,
.home-proof-card {
  margin: 0;
  padding: 1.5rem 1.35rem;
  background: var(--home-surface);
  border: 1px solid var(--home-border);
  border-radius: 18px;
}

.home-proof-featured {
  position: relative;
  padding-left: 1.65rem;
  border-left: 3px solid var(--accent);
  box-shadow: 0 18px 40px rgba(15, 15, 15, 0.04);
}

[data-theme="dark"] .home-proof-featured {
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.home-proof-track {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.85rem;
  padding: 0.28rem 0.55rem;
  font-family: var(--home-font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
}

.home-proof-quote {
  margin: 0 0 1.1rem;
  font-family: var(--home-font-display);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: -0.02em;
  color: var(--home-ink);
}

.home-proof-card .home-proof-quote {
  margin-bottom: 0.9rem;
  font-size: 0.98rem;
  line-height: 1.5;
}

.home-proof-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.84rem;
  color: var(--home-muted);
}

.home-proof-meta cite {
  font-style: normal;
  font-weight: 600;
  color: var(--home-ink);
}

.home-proof-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.home-proof-side {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.home-proof-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--home-surface);
  border: 1px solid var(--home-border);
  border-radius: 18px;
  overflow: hidden;
}

.home-proof-stats--wide {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 1.25rem;
}

.home-proof-stats--wide .home-proof-stat {
  border-right: 1px solid var(--home-border);
  border-bottom: none;
}

.home-proof-stats--wide .home-proof-stat:nth-child(2n) {
  border-right: 1px solid var(--home-border);
}

.home-proof-stats--wide .home-proof-stat:last-child {
  border-right: none;
}

.home-proof-note {
  margin: 0 0 1.25rem;
  max-width: 42ch;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--home-muted);
}

.home-story-rail {
  margin: 0 0 1.5rem;
  max-width: 100%;
  overflow: hidden;
}

.home-story-rail-viewport {
  overflow: hidden;
  max-width: 100%;
  mask-image: linear-gradient(
    90deg,
    transparent 0,
    #000 2.5rem,
    #000 calc(100% - 2.5rem),
    transparent 100%
  );
}

.home-story-rail-track {
  display: flex;
  width: max-content;
  gap: 1rem;
  animation: home-story-scroll 72s linear infinite;
}

.home-story-rail:hover .home-story-rail-track,
.home-story-rail:focus-within .home-story-rail-track {
  animation-play-state: paused;
}

.home-story-rail-group {
  display: flex;
  gap: 1rem;
}

.home-story-card {
  flex: 0 0 min(19.5rem, calc(100vw - 2.75rem));
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-height: 14.5rem;
  padding: 1.15rem 1.2rem 1.2rem;
  background: var(--home-surface);
  border: 1px solid var(--home-border);
  border-radius: 18px;
  max-width: 100%;
  box-sizing: border-box;
}

.home-story-card--tone1 .home-story-avatar {
  background: color-mix(in srgb, var(--accent, #6e51e0) 18%, var(--home-surface));
  color: var(--accent, #6e51e0);
}

.home-story-card--tone2 .home-story-avatar {
  background: color-mix(in srgb, #0f766e 16%, var(--home-surface));
  color: #0f766e;
}

.home-story-card--tone3 .home-story-avatar {
  background: color-mix(in srgb, #b45309 16%, var(--home-surface));
  color: #9a3412;
}

.home-story-avatar {
  position: relative;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.home-story-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-story-photo[src=""],
.home-story-photo:not([src]) {
  display: none;
}

.home-story-initials {
  font-family: var(--home-font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.home-story-quote {
  margin: 0;
  flex: 1;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--home-ink);
}

.home-story-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.home-story-name {
  font-style: normal;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--home-ink);
}

.home-story-role {
  font-size: 0.78rem;
  color: var(--home-muted);
  line-height: 1.35;
}

@keyframes home-story-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-story-rail-track {
    animation: none;
  }

  .home-story-rail-viewport {
    overflow-x: auto;
    mask-image: none;
    -webkit-overflow-scrolling: touch;
  }

  .home-story-rail-track {
    width: max-content;
  }

  .home-story-rail-group[aria-hidden="true"] {
    display: none;
  }
}

.home-proof-stat {
  padding: 1rem 1.1rem;
  border-right: 1px solid var(--home-border);
  border-bottom: 1px solid var(--home-border);
}

.home-proof-stat:nth-child(2n) {
  border-right: none;
}

.home-proof-stat:nth-last-child(-n + 2) {
  border-bottom: none;
}

.home-proof-stat dt {
  margin: 0 0 0.15rem;
  font-family: var(--home-font-display);
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--home-ink);
}

.home-proof-stat dd {
  margin: 0;
  font-family: var(--home-font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--home-muted);
}

.home-proof-cards {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.home-proof-card {
  transition: border-color 0.2s ease;
}

.home-proof-card:hover {
  border-color: color-mix(in srgb, var(--home-ink) 22%, var(--home-border));
}

.home-partners {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--home-border);
}

.home-practice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.home-practice-link {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  gap: 0.2rem 0.85rem;
  padding: 1.15rem 1.2rem;
  text-decoration: none;
  background: var(--home-surface);
  border: 1px solid var(--home-border);
  border-radius: 16px;
  transition: border-color 0.2s ease;
}

.home-practice-link:hover {
  border-color: var(--home-ink);
}

.home-practice-num {
  grid-row: 1 / 3;
  font-family: var(--home-font-mono);
  font-size: 0.72rem;
  color: var(--home-muted);
  padding-top: 0.15rem;
}

.home-practice-label {
  font-family: var(--home-font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--home-ink);
}

.home-practice-meta {
  font-size: 0.85rem;
  color: var(--home-muted);
}

.home-faq-inner {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  max-width: 52rem;
  margin-inline: auto;
}

.home-faq-head {
  max-width: 36rem;
}

.home-faq-head h2 {
  margin: 0;
  font-family: var(--home-font-display);
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--home-ink);
}

.home-faq-lead {
  margin-top: 0.85rem;
  max-width: 42ch;
}

.home-faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--home-border);
}

.home-faq-item {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--home-border);
  border-radius: 0;
  padding: 0;
}

.home-faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  cursor: pointer;
  list-style: none;
  padding: 1.35rem 0.15rem;
  font-family: var(--home-font-display);
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--home-ink);
}

.home-faq-q::-webkit-details-marker {
  display: none;
}

.home-faq-q-text {
  flex: 1 1 auto;
  min-width: 0;
}

.home-faq-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 999px;
  background: color-mix(in srgb, #8b7cf6 28%, var(--home-surface));
  color: #6e51e0;
  transition: transform 0.2s ease, background 0.15s ease;
}

html[data-theme="dark"] .home-faq-icon {
  background: color-mix(in srgb, #8b7cf6 22%, #1a1824);
  color: #c4b5fd;
}

.home-faq-icon-plus {
  position: relative;
  display: block;
  width: 0.7rem;
  height: 0.7rem;
}

.home-faq-icon-plus::before,
.home-faq-icon-plus::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  background: currentColor;
  border-radius: 1px;
  transform: translate(-50%, -50%);
}

.home-faq-icon-plus::before {
  width: 100%;
  height: 1.5px;
}

.home-faq-icon-plus::after {
  width: 1.5px;
  height: 100%;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.home-faq-item[open] .home-faq-icon-plus::after {
  transform: translate(-50%, -50%) scaleY(0);
  opacity: 0;
}

.home-faq-item[open] .home-faq-icon {
  transform: rotate(0deg);
}

.home-faq-a {
  margin: 0;
  padding: 0 3.5rem 1.35rem 0.15rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--home-muted);
  max-width: 46rem;
}

.home-closing {
  padding: clamp(3.5rem, 8vh, 5rem) var(--home-gutter, clamp(1.25rem, 5vw, 4rem));
  text-align: center;
}

.home-closing-inner {
  max-width: 36rem;
  margin: 0 auto;
}

.home-closing .home-section-lead {
  margin: 0.85rem auto 1.5rem;
}

.home-closing .home-hero-actions {
  justify-content: center;
  margin-bottom: 0;
}

.home-closing .home-btn--ghost {
  background: var(--home-surface);
}

.home-foot {
  --home-font-display: "Outfit", var(--font-sans, system-ui, sans-serif);
  --home-font-body: "Work Sans", var(--font-sans, system-ui, sans-serif);
  --home-font-mono: "IBM Plex Mono", ui-monospace, monospace;
  background: #0a0a0a;
  color: #f4f4f5;
  padding: clamp(3rem, 8vh, 5rem) var(--home-gutter, clamp(1.25rem, 5vw, 4rem)) 2rem;
  position: relative;
  overflow: hidden;
}

.home-foot::after {
  content: "";
  position: absolute;
  left: 20%;
  right: 20%;
  bottom: -40%;
  height: 60%;
  background: radial-gradient(ellipse, rgba(100, 200, 200, 0.25), transparent 70%);
  pointer-events: none;
}

.home-foot-top {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2rem;
  width: min(100%, var(--home-max, 72rem));
  margin: 0 auto 3rem;
}

.home-foot-label {
  margin: 0 0 0.65rem;
  font-family: var(--home-font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.home-foot-email {
  font-family: var(--home-font-display);
  font-size: clamp(1.35rem, 3.5vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  word-break: break-word;
}

.home-foot-email:hover {
  opacity: 0.85;
}

.home-foot-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.home-foot-cols a {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

.home-foot-cols a:hover {
  color: #fff;
}

.home-foot-brand {
  position: relative;
  z-index: 1;
  margin: 0 0 1rem;
  font-family: var(--home-font-display);
  font-size: clamp(1.85rem, 9vw, 6.5rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.9;
  text-align: center;
  text-transform: uppercase;
  color: #fff;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
  padding-inline: 0.5rem;
}

.home-foot-copy {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
}

@media (max-width: 960px) {
  .home-section-head--split,
  .home-pathway-grid,
  .home-process-grid,
  .home-program-grid,
  .home-shop-grid,
  .home-people-grid,
  .home-foot-top,
  .home-hero-layout {
    grid-template-columns: 1fr;
  }

  .home-hero-scrim {
    background:
      linear-gradient(
        to bottom,
        color-mix(in srgb, var(--home-bg, #ebebeb) 88%, transparent) 0%,
        color-mix(in srgb, var(--home-bg, #ebebeb) 72%, transparent) 42%,
        color-mix(in srgb, var(--home-bg, #ebebeb) 40%, transparent) 70%,
        transparent 100%
      );
  }

  [data-theme="dark"] .home-hero-scrim {
    background:
      linear-gradient(
        to bottom,
        color-mix(in srgb, var(--home-bg, #0a0a0a) 90%, transparent) 0%,
        color-mix(in srgb, var(--home-bg, #0a0a0a) 75%, transparent) 45%,
        color-mix(in srgb, var(--home-bg, #0a0a0a) 42%, transparent) 72%,
        transparent 100%
      );
  }

  .home-hero-stage {
    width: min(100%, 24rem);
    height: 320px;
    min-height: 300px;
  }

  .home-proof-layout {
    grid-template-columns: 1fr;
  }

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

  .home-proof-stat {
    border-right: 1px solid var(--home-border);
    border-bottom: none;
  }

  .home-proof-stat:nth-child(2n) {
    border-right: 1px solid var(--home-border);
  }

  .home-proof-stat:last-child {
    border-right: none;
  }

  .home-process-grid,
  .home-shop-grid,
  .home-pathway-grid {
    grid-template-columns: 1fr 1fr;
  }

  .home-person-card {
    grid-template-columns: 7.5rem minmax(0, 1fr);
  }

  .home-tutor-offer {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-tutor-offer-price {
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .home-hero {
    align-items: center;
    padding-top: calc(var(--header-height) + 1.25rem);
  }

  .home-hero-stage {
    height: 260px;
    min-height: 240px;
  }

  .home-pathway-grid,
  .home-process-grid,
  .home-program-grid,
  .home-practice-grid,
  .home-shop-grid,
  .home-proof-stats,
  .home-proof-stats--wide,
  .home-foot-cols {
    grid-template-columns: 1fr;
  }

  .home-proof-stats--wide .home-proof-stat {
    border-right: none;
    border-bottom: 1px solid var(--home-border);
  }

  .home-proof-stats--wide .home-proof-stat:last-child {
    border-bottom: none;
  }

  .home-person-card {
    grid-template-columns: 1fr;
  }

  .home-person-photo-wrap {
    max-width: 12rem;
  }

  .home-inline-link {
    display: inline-flex;
    align-items: center;
    min-height: 2.5rem;
  }

  .home-shop .home-section-inner > p + div,
  .home-shop .home-section-inner > div:has(.home-inline-link) {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .home-stage-panel--lanes,
  .home-stage-panel--levels,
  .home-stage-panel--course {
    transform: none !important;
    animation: none;
  }

  .home-stage-panel--lanes {
    width: 56%;
    top: 2%;
    left: 2%;
  }

  .home-stage-panel--levels {
    width: 50%;
    top: 8%;
    right: 2%;
  }

  .home-stage-panel--course {
    width: 70%;
    left: 15%;
    bottom: 2%;
  }

  .home-foot-email {
    font-size: clamp(1.1rem, 6vw, 2rem);
    overflow-wrap: anywhere;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero-inner,
  .home-hero-stage {
    animation: none;
  }

  .home-stage-orb--a,
  .home-stage-orb--b,
  .home-stage-panel--lanes,
  .home-stage-panel--levels,
  .home-stage-panel--course {
    animation: none;
  }

  .home-ticker-track {
    animation: none;
  }

  .home-btn:hover,
  .home-pathway:hover,
  .home-program:hover {
    transform: none;
  }

  .mkt-pop,
  .mkt-pop--in,
  .mkt-pop--out {
    transition: none;
  }
}

/* Scroll marketing pops (Afternow-style floating promo) */
.mkt-pops-root {
  position: fixed;
  z-index: 60;
  top: calc(var(--header-height, 4.5rem) + 1rem);
  right: 1rem;
  width: min(22.5rem, calc(100vw - 1.5rem));
  pointer-events: none;
}

.mkt-pop {
  pointer-events: auto;
  position: relative;
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  gap: 0.85rem;
  align-items: start;
  padding: 0.95rem 2.1rem 1rem 0.95rem;
  background: color-mix(in srgb, var(--home-surface, #f7f6f3) 92%, #fff);
  border: 1px solid var(--home-border, rgba(18, 18, 18, 0.12));
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(15, 15, 15, 0.12);
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

[data-theme="dark"] .mkt-pop {
  background: color-mix(in srgb, var(--home-surface, #161616) 94%, #000);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
}

.mkt-pop--in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.mkt-pop--out {
  opacity: 0;
  transform: translateY(8px) scale(0.98);
}

.mkt-pop-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 10px;
  background: #121212;
  color: #fff;
  font-family: var(--home-font-mono, ui-monospace, monospace);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

[data-theme="dark"] .mkt-pop-thumb {
  background: #2a2a2a;
}

.mkt-pop-title {
  margin: 0 0 0.28rem;
  font-family: var(--home-font-body, inherit);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--home-ink, #121212);
}

.mkt-pop-text {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--home-muted, #5c5c5c);
}

.mkt-pop-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-family: var(--home-font-mono, ui-monospace, monospace);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--home-ink, #121212);
}

.mkt-pop-cta:hover {
  color: var(--accent, #6e51e0);
}

.mkt-pop-close {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--home-muted, #5c5c5c);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}

.mkt-pop-close:hover {
  background: color-mix(in srgb, var(--home-ink, #121212) 8%, transparent);
  color: var(--home-ink, #121212);
}

.mkt-pop-close:focus-visible {
  outline: 2px solid var(--accent, #6e51e0);
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .mkt-pops-root {
    top: auto;
    bottom: 1rem;
    right: 0.75rem;
    left: 0.75rem;
    width: auto;
  }
}

.site-header-inner--compact {
  justify-content: space-between;
  gap: 1rem;
  max-width: 1440px;
  min-height: var(--header-height);
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}

.site-header-bar-end {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.site-header-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.55rem 1.35rem;
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  background: #121212;
  border: 1px solid #121212;
  border-radius: 999px;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    transform 0.12s ease;
}

button.site-header-pill {
  appearance: none;
}

[data-theme="dark"] .site-header-pill {
  color: #121212;
  background: #f5f5f5;
  border-color: #f5f5f5;
}

.site-header-pill:hover {
  background: #2a2a2a;
  border-color: #2a2a2a;
}

[data-theme="dark"] .site-header-pill:hover {
  background: #fff;
  border-color: #fff;
}

.site-header-pill--active {
  box-shadow: 0 0 0 2px var(--accent-soft);
}

.site-header--compact .site-nav-toggle--round {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  min-height: 2.75rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #121212;
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.18s ease, transform 0.12s ease;
}

[data-theme="dark"] .site-header--compact .site-nav-toggle--round {
  background: #f5f5f5;
  color: #121212;
}

.site-header--compact .site-nav-toggle--round:hover {
  background: #2a2a2a;
}

[data-theme="dark"] .site-header--compact .site-nav-toggle--round:hover {
  background: #fff;
}

.site-header--compact .site-nav-toggle--round:active {
  transform: scale(0.96);
}

.site-nav-toggle-icon--mm {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 1rem;
  height: 1rem;
  background: none;
  box-shadow: none;
}

.site-nav-toggle-icon--mm span {
  display: block;
  width: 1rem;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}

.site-nav-toggle-icon--close {
  display: none;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  background: none;
  box-shadow: none;
}

.site-nav-toggle--round.is-open {
  background: #ececec;
  color: #121212;
}

[data-theme="dark"] .site-nav-toggle--round.is-open {
  background: #2a2a2a;
  color: #f5f5f5;
}

.site-nav-toggle--round.is-open .site-nav-toggle-icon--mm {
  display: none;
}

.site-nav-toggle--round.is-open .site-nav-toggle-icon--close {
  display: flex;
}

.site-header--compact .site-brand-logo {
  width: 112px;
  height: 28px;
}

/* Sylven full-screen menu overlay */
.site-mm-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  align-items: stretch;
  justify-content: center;
  padding: 0.75rem;
  background: var(--home-bg, #ebe8e2);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

[data-theme="dark"] .site-mm-overlay {
  background: #0a0a0a;
}

.site-mm-overlay.is-open {
  display: flex;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.site-mm-overlay[hidden] {
  display: none !important;
}

.site-mm-backdrop {
  position: absolute;
  inset: 0;
  border: none;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: default;
}

.site-mm-shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  min-height: 0;
  width: 100%;
}

.site-mm-panel {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  background: var(--home-surface, #fff);
  border: 1px solid var(--home-border, rgba(0, 0, 0, 0.1));
  border-radius: 18px;
  overflow: hidden;
  box-shadow: none;
  transform: translateY(10px);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] .site-mm-panel {
  background: #141416;
  border-color: rgba(255, 255, 255, 0.1);
}

.site-mm-overlay.is-open .site-mm-panel {
  transform: translateY(0);
}

.site-mm-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-shrink: 0;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--home-border, rgba(0, 0, 0, 0.1));
}

[data-theme="dark"] .site-mm-topbar {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.site-mm-topbar-start {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-width: 0;
  flex: 1;
}

.site-mm-topbar-end {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

.site-mm-topbar-end .theme-toggle {
  width: 2.25rem;
  height: 2.25rem;
  min-height: 2.25rem;
}

.site-mm-topnav {
  display: none;
  align-items: center;
  gap: 0.15rem;
}

.site-mm-topnav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.45rem 0.65rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--home-ink, #0a0a0a);
  text-decoration: none;
  border: none;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--home-font-body, var(--font-sans));
  white-space: nowrap;
  transition: background 0.15s ease;
}

[data-theme="dark"] .site-mm-topnav-link {
  color: #f5f5f5;
}

.site-mm-topnav-link:hover,
.site-mm-topnav-dropdown.is-open > .site-mm-topnav-link {
  background: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .site-mm-topnav-link:hover,
[data-theme="dark"] .site-mm-topnav-dropdown.is-open > .site-mm-topnav-link {
  background: rgba(255, 255, 255, 0.06);
}

.site-mm-topnav-link--active {
  color: var(--brand, #6e51e0);
}

.site-mm-topnav-dropdown {
  position: relative;
}

.site-mm-topnav-dropdown-panel {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  min-width: 15rem;
  padding: 0.4rem;
  background: var(--home-surface, #fff);
  border: 1px solid var(--home-border, rgba(0, 0, 0, 0.1));
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  z-index: 10;
}

[data-theme="dark"] .site-mm-topnav-dropdown-panel {
  background: #1c1c1f;
  border-color: rgba(255, 255, 255, 0.1);
}

.site-mm-topnav-dropdown-panel[hidden] {
  display: none;
}

.site-mm-topnav-dropdown-link {
  display: block;
  padding: 0.55rem 0.65rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--home-ink, #0a0a0a);
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.15s ease;
}

[data-theme="dark"] .site-mm-topnav-dropdown-link {
  color: #f5f5f5;
}

.site-mm-topnav-dropdown-link:hover {
  background: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .site-mm-topnav-dropdown-link:hover {
  background: rgba(255, 255, 255, 0.08);
}

.site-mm-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--home-border, rgba(0, 0, 0, 0.12));
  border-radius: 50%;
  background: transparent;
  color: var(--home-ink, #0a0a0a);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.18s ease, border-color 0.18s ease;
}

[data-theme="dark"] .site-mm-close {
  border-color: rgba(255, 255, 255, 0.14);
  color: #f5f5f5;
}

.site-mm-close:hover {
  background: rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .site-mm-close:hover {
  background: rgba(255, 255, 255, 0.08);
}

.site-mm-body {
  display: grid;
  grid-template-columns: 1fr;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.site-mm-main {
  min-height: 0;
  overflow-y: auto;
  padding: 1.25rem 1.35rem 1.75rem;
}

.site-mm-section-meta {
  margin-bottom: 1.15rem;
}

.site-mm-cards {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.site-mm-card {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) auto;
  gap: 0.85rem 1rem;
  align-items: baseline;
  min-height: 0;
  padding: 1.15rem 0;
  border-radius: 0;
  border-top: 1px solid var(--home-border, rgba(0, 0, 0, 0.1));
  text-decoration: none;
  color: inherit;
  background: transparent;
  transition: opacity 0.15s ease;
}

.site-mm-card:last-child {
  border-bottom: 1px solid var(--home-border, rgba(0, 0, 0, 0.1));
}

.site-mm-card:hover {
  opacity: 0.72;
  transform: none;
  box-shadow: none;
}

.site-mm-card--active {
  box-shadow: none;
}

.site-mm-card--active .site-mm-card-title {
  color: var(--brand, #6e51e0);
}

.site-mm-card-num {
  font-family: var(--home-font-mono, ui-monospace, monospace);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--home-muted, #5c5c5c);
}

.site-mm-card-copy {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.site-mm-card-title {
  margin: 0;
  font-family: var(--home-font-display, var(--font-sans));
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--home-ink, #0a0a0a);
}

.site-mm-card-sub {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.45;
  color: var(--home-muted, #5c5c5c);
  max-width: 36ch;
  opacity: 1;
}

.site-mm-card-meta {
  font-family: var(--home-font-mono, ui-monospace, monospace);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--home-muted, #5c5c5c);
  text-align: right;
  white-space: nowrap;
}

.site-mm-sidebar {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 1.25rem 1.35rem 1.5rem;
  border-top: 1px solid var(--home-border, rgba(0, 0, 0, 0.1));
  overflow-y: auto;
}

[data-theme="dark"] .site-mm-sidebar {
  border-top-color: rgba(255, 255, 255, 0.08);
}

.site-mm-sidebar-section {
  margin-bottom: 0;
}

.site-mm-sidebar-section--explore {
  margin-bottom: 2.25rem;
}

.site-mm-sidebar-section--about {
  margin-bottom: 1.75rem;
}

.site-mm-sidebar-section--follow {
  margin-top: auto;
  padding-top: 0.25rem;
}

.site-mm-sidebar-title {
  margin: 0 0 0.9rem;
  font-family: var(--home-font-mono, ui-monospace, monospace);
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--home-muted, #5c5c5c);
}

.site-mm-sidebar-links {
  display: flex;
  flex-direction: column;
}

.site-mm-sidebar-links--primary {
  gap: 0.75rem;
}

.site-mm-sidebar-links--secondary {
  gap: 0.5rem;
}

.site-mm-sidebar-link {
  display: block;
  text-decoration: none;
  transition: color 0.15s ease, opacity 0.15s ease;
}

.site-mm-sidebar-link--primary {
  font-family: var(--home-font-display, var(--font-sans));
  font-size: clamp(1rem, 1.35vw, 1.125rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--home-ink, #0a0a0a);
}

[data-theme="dark"] .site-mm-sidebar-link--primary {
  color: #f5f5f5;
}

.site-mm-sidebar-link--primary:hover {
  opacity: 0.7;
}

.site-mm-sidebar-link--secondary {
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.35;
  color: var(--home-muted, #5c5c5c);
}

[data-theme="dark"] .site-mm-sidebar-link--secondary {
  color: #b8b8b8;
}

.site-mm-sidebar-link--secondary:hover {
  color: var(--home-ink, #0a0a0a);
}

[data-theme="dark"] .site-mm-sidebar-link--secondary:hover {
  color: #fff;
}

.site-mm-sidebar-link--active {
  color: var(--brand, #6e51e0);
}

.site-mm-sidebar-link--secondary.site-mm-sidebar-link--active {
  font-weight: 600;
}

.site-mm-follow-icons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.site-mm-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 1px solid var(--home-border, rgba(0, 0, 0, 0.12));
  background: var(--home-ink, #0a0a0a);
  color: var(--home-bg, #ebebeb);
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
}

[data-theme="dark"] .site-mm-social {
  background: var(--home-ink, #f4f4f5);
  color: var(--home-bg, #0a0a0a);
}

@media (max-width: 719px) {
  .site-mm-card {
    grid-template-columns: 2.5rem minmax(0, 1fr);
  }

  .site-mm-card-meta {
    grid-column: 2;
    text-align: left;
    margin-top: -0.25rem;
  }
}

@media (min-width: 960px) {
  .site-mm-overlay {
    padding: 0.85rem 1rem;
  }

  .site-mm-topnav {
    display: flex;
  }

  .site-mm-body {
    grid-template-columns: minmax(0, 1fr) minmax(15rem, 19rem);
  }

  .site-mm-main {
    padding: 1.5rem 1.75rem 2rem;
    border-right: 1px solid var(--home-border, rgba(0, 0, 0, 0.1));
  }

  [data-theme="dark"] .site-mm-main {
    border-right-color: rgba(255, 255, 255, 0.08);
  }

  .site-mm-sidebar {
    border-top: none;
    padding: 1.65rem 1.5rem 1.85rem;
  }

  .site-mm-sidebar-section--explore {
    margin-bottom: 2.5rem;
  }

  .site-mm-sidebar-link--primary {
    font-size: 1.125rem;
  }
}

@media (max-width: 480px) {
  .site-mm-overlay {
    padding: 0.5rem;
  }

  .site-mm-panel {
    border-radius: 22px;
  }

  .site-mm-topbar {
    padding: 0.75rem 0.85rem;
  }

  .site-mm-main {
    padding: 0.75rem;
  }

  .site-mm-sidebar {
    padding: 1rem 1rem 1.25rem;
  }
}

@media (max-width: 480px) {
  .site-header-pill {
    min-height: 2.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.625rem;
  }

  .site-header--compact .site-nav-toggle--round {
    width: 2.5rem;
    height: 2.5rem;
    min-height: 2.5rem;
  }
}

.splash-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-height) + 1.5rem) 1.25rem 2rem;
}

.splash-frame {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  width: min(100%, 1080px);
  min-height: min(720px, calc(100dvh - var(--header-height) - 3rem));
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  background: var(--surface-raised);
}

.splash-art {
  position: relative;
  min-height: 100%;
  background: #f0efec;
}

[data-theme="dark"] .splash-art {
  background: #0a0a0c;
}

.splash-blocks {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(8, 1fr);
  gap: 0;
  width: 100%;
  height: 100%;
  min-height: 100%;
}

.splash-block {
  display: block;
}

.splash-block--blue { grid-area: 1 / 1 / 4 / 3; background: #6e51e0; }
.splash-block--green { grid-area: 1 / 3 / 3 / 5; background: #8570e8; }
.splash-block--yellow { grid-area: 1 / 5 / 2 / 7; background: #9b88ef; }
.splash-block--orange { grid-area: 2 / 5 / 4 / 7; background: #5540c8; }
.splash-block--red { grid-area: 3 / 3 / 5 / 5; background: #b19fee; }
.splash-block--purple { grid-area: 4 / 1 / 6 / 3; background: #4a38b5; }
.splash-block--cyan { grid-area: 4 / 5 / 6 / 7; background: #c4b5f5; }
.splash-block--blue-dark { grid-area: 5 / 3 / 7 / 5; background: #5a44c4; }
.splash-block--green-dark { grid-area: 6 / 1 / 9 / 3; background: #3d2f9e; }
.splash-block--yellow-dark { grid-area: 6 / 5 / 8 / 7; background: #d8ccf8; }
.splash-block--orange-dark { grid-area: 7 / 3 / 9 / 5; background: #6e51e0; }
.splash-block--red-dark { grid-area: 8 / 5 / 9 / 7; background: #2e2478; }

.splash-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
  padding: clamp(2rem, 4vw, 3rem);
  background: var(--surface-raised);
}

.splash-profile {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.splash-photo-wrap {
  flex-shrink: 0;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
}

.splash-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.splash-photo[hidden] {
  display: none;
}

.splash-photo-fallback {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-muted);
}

.splash-photo-fallback[hidden] {
  display: none;
}

.splash-about {
  min-width: 0;
}

.splash-eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-faint);
}

.splash-name {
  margin: 0 0 0.5rem;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
}

.splash-nickname {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

.splash-bio {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.splash-bio strong {
  color: var(--text);
  font-weight: 600;
}

.splash-link {
  margin: 0.65rem 0 0;
  font-size: 0.8rem;
}

.splash-link a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.splash-link a:hover {
  text-decoration: underline;
}

.splash-bio code {
  font-size: 0.78rem;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: var(--quote-bg);
}

.splash-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.2vw, 2.65rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0;
}

.splash-lead {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 38ch;
}

.splash-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.splash-stat {
  text-align: center;
}

.splash-stat-value {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
}

.splash-stat-label {
  margin: 0.2rem 0 0;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  line-height: 1.3;
}

.splash-section-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
}

/* ── Splash testimonials ── */

.splash-testimonials {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.splash-testimonials-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.splash-testimonials-head h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
}

.splash-testimonials-more {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.splash-testimonials-more:hover {
  text-decoration: underline;
}

.splash-testimonials-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.testimonial-card {
  margin: 0;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(128, 128, 128, 0.04);
}

[data-theme="dark"] .testimonial-card {
  background: rgba(255, 255, 255, 0.03);
}

.testimonial-card--compact {
  padding: 0.75rem 0.9rem;
}

.testimonial-quote {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text);
}

.testimonial-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.testimonial-name {
  font-style: normal;
  font-weight: 600;
  color: var(--text);
}

.testimonial-cohort {
  color: var(--text-faint);
}

.testimonial-cohort::before {
  content: "·";
  margin-right: 0.35rem;
}

.testimonials-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Testimonials page · Sylven-style stories */
.hub-page--stories .hub-panel--contact {
  max-width: 72rem;
}

.stories-featured {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr);
  gap: 1rem;
  margin-bottom: 3rem;
}

.stories-card {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.35rem 1.3rem 1.45rem;
  background: var(--home-surface, #fff);
  border: 1px solid var(--home-border, rgba(0, 0, 0, 0.1));
  border-radius: 18px;
}

.stories-card--featured {
  min-height: 100%;
  padding: 1.75rem 1.6rem;
}

.stories-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.stories-card-num {
  font-family: var(--home-font-mono, ui-monospace, monospace);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--home-muted, #5c5c5c);
}

.stories-card-track {
  font-family: var(--home-font-mono, ui-monospace, monospace);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--home-ink, #0a0a0a);
  padding: 0.25rem 0.55rem;
  border: 1px solid var(--home-border, rgba(0, 0, 0, 0.12));
  border-radius: 999px;
}

.stories-card-quote {
  margin: 0;
  flex: 1;
  font-family: var(--home-font-display, var(--font-sans));
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.4;
  color: var(--home-ink, #0a0a0a);
}

.stories-card--featured .stories-card-quote {
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  line-height: 1.35;
}

.stories-card-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.85rem;
  color: var(--home-muted, #5c5c5c);
}

.stories-card-name {
  font-style: normal;
  font-weight: 700;
  color: var(--home-ink, #0a0a0a);
}

.stories-card-role,
.stories-card-cohort {
  font-size: 0.8rem;
}

.stories-featured-aside {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.65rem;
  padding: 1.5rem 1.35rem;
  background: var(--home-surface, #fff);
  border: 1px solid var(--home-border, rgba(0, 0, 0, 0.1));
  border-radius: 18px;
}

.stories-stat-value {
  margin: 0;
  font-family: var(--home-font-display, var(--font-sans));
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--home-ink, #0a0a0a);
}

.stories-stat-label {
  margin: 0;
  font-family: var(--home-font-mono, ui-monospace, monospace);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--home-muted, #5c5c5c);
}

.stories-featured-note {
  margin: 0.35rem 0 0.75rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--home-muted, #5c5c5c);
}

.stories-list-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.15rem;
}

.stories-list-title {
  margin: 0;
  font-family: var(--home-font-display, var(--font-sans));
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--home-ink, #0a0a0a);
}

.stories-list-count {
  margin: 0;
  font-family: var(--home-font-mono, ui-monospace, monospace);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--home-muted, #5c5c5c);
}

.stories-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
}

.stories-filter {
  appearance: none;
  cursor: pointer;
  min-height: 2.25rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--home-border, rgba(0, 0, 0, 0.12));
  background: transparent;
  font-family: var(--home-font-body, var(--font-sans));
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--home-muted, #5c5c5c);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.stories-filter:hover {
  border-color: var(--home-ink, #0a0a0a);
  color: var(--home-ink, #0a0a0a);
}

.stories-filter.is-active {
  background: var(--home-ink, #0a0a0a);
  border-color: var(--home-ink, #0a0a0a);
  color: var(--home-bg, #ebebeb);
}

.stories-filter:focus-visible {
  outline: 2px solid var(--home-ink, #0a0a0a);
  outline-offset: 2px;
}

.stories-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.stories-empty {
  margin: 1.5rem 0 0;
  font-size: 0.95rem;
  color: var(--home-muted, #5c5c5c);
}

.stories-closing {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--home-border, rgba(0, 0, 0, 0.1));
  text-align: center;
}

.stories-closing h2 {
  margin: 0 0 0.65rem;
  font-family: var(--home-font-display, var(--font-sans));
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--home-ink, #0a0a0a);
}

.stories-closing .contact-hero-lead {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.35rem;
}

.stories-closing .home-hero-actions {
  justify-content: center;
  margin-bottom: 0;
}

@media (max-width: 960px) {
  .stories-featured {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .stories-grid {
    grid-template-columns: 1fr;
  }
}

.placeholder-grid {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .placeholder-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .placeholder-grid--case-studies {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .placeholder-grid--case-studies {
    grid-template-columns: repeat(3, 1fr);
  }
}

.placeholder-badge--soon {
  color: var(--text-muted);
  background: rgba(128, 128, 128, 0.12);
}

[data-theme="dark"] .placeholder-badge--soon {
  background: rgba(255, 255, 255, 0.08);
}

.placeholder-card {
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(128, 128, 128, 0.04);
}

.placeholder-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.placeholder-card p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.placeholder-badge {
  display: inline-block;
  margin-bottom: 0.5rem;
  padding: 0.2rem 0.5rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b45309;
  background: rgba(180, 83, 9, 0.12);
  border-radius: 999px;
}

.practice-track-list {
  margin: 0;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--text-muted);
}

.practice-track-list li {
  line-height: 1.5;
}

.about-prose {
  max-width: 52ch;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.hub-page--about .about-prose p {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--home-muted, #5c5c5c);
}

.about-section-title {
  margin: 0 0 0.75rem;
  font-family: var(--home-font-display, var(--font-sans));
  font-size: clamp(1.85rem, 4.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  text-transform: none;
  color: var(--home-ink, #0a0a0a);
}

.about-section-lead {
  margin: 0 0 1.5rem;
  max-width: 40ch;
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--home-muted, #5c5c5c);
}

.about-mission {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
  margin-bottom: 3.5rem;
}

.about-mission .contact-section-meta {
  margin-bottom: 1rem;
}

.about-proof {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about-proof .home-proof-stats {
  margin: 0;
}

.about-proof-item + .about-proof-item {
  padding-top: 1rem;
  border-top: 1px solid var(--home-border, rgba(0, 0, 0, 0.08));
}

.about-proof-value {
  margin: 0;
  font-family: var(--home-font-display, var(--font-sans));
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--home-ink, #0a0a0a);
}

.about-proof-label {
  margin: 0.35rem 0 0;
  font-family: var(--home-font-mono, ui-monospace, monospace);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--home-muted, #5c5c5c);
}

.about-proof-note {
  margin: 0.25rem 0 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--home-muted, #5c5c5c);
}

.about-how,
.about-offer,
.about-faculty {
  margin-bottom: 3.5rem;
}

.about-steps {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.about-step {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  padding: 1.25rem 0;
  border-top: 1px solid var(--home-border, rgba(0, 0, 0, 0.1));
}

.about-step:last-child {
  border-bottom: 1px solid var(--home-border, rgba(0, 0, 0, 0.1));
}

.about-step-num {
  font-family: var(--home-font-mono, ui-monospace, monospace);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--home-muted, #5c5c5c);
  padding-top: 0.2rem;
}

.about-step-title {
  margin: 0 0 0.35rem;
  font-family: var(--home-font-display, var(--font-sans));
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--home-ink, #0a0a0a);
}

.about-step-body p {
  margin: 0;
  max-width: 48ch;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--home-muted, #5c5c5c);
}

.about-offer-list {
  display: flex;
  flex-direction: column;
}

.about-offer-row {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: baseline;
  padding: 1.1rem 0;
  border-top: 1px solid var(--home-border, rgba(0, 0, 0, 0.1));
  text-decoration: none;
  color: inherit;
  transition: opacity 0.15s ease;
}

.about-offer-row:last-child {
  border-bottom: 1px solid var(--home-border, rgba(0, 0, 0, 0.1));
}

.about-offer-row:hover {
  opacity: 0.72;
}

.about-offer-row:focus-visible {
  outline: 2px solid var(--home-ink, #0a0a0a);
  outline-offset: 4px;
}

.about-offer-num {
  font-family: var(--home-font-mono, ui-monospace, monospace);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--home-muted, #5c5c5c);
}

.about-offer-label {
  font-family: var(--home-font-display, var(--font-sans));
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--home-ink, #0a0a0a);
}

.about-offer-meta {
  font-size: 0.88rem;
  color: var(--home-muted, #5c5c5c);
  text-align: right;
}

.about-faculty-panel {
  display: grid;
  grid-template-columns: 10rem minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: start;
  margin-top: 1.25rem;
}

.about-faculty-photo-wrap {
  position: relative;
  width: 10rem;
  aspect-ratio: 4 / 5;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--home-border, rgba(0, 0, 0, 0.1));
  background: #d4d4d4;
}

.about-faculty-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-faculty-photo[hidden] {
  display: none;
}

.about-faculty-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--home-font-display, var(--font-sans));
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--home-muted, #5c5c5c);
}

.about-faculty-fallback[hidden] {
  display: none;
}

.about-faculty-role {
  margin: -0.35rem 0 0.85rem;
  font-family: var(--home-font-mono, ui-monospace, monospace);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--home-muted, #5c5c5c);
}

.about-faculty-bio {
  margin: 0 0 1rem;
  max-width: 42ch;
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--home-muted, #5c5c5c);
}

.about-faculty-link {
  margin: 0;
  font-size: 0.95rem;
}

.about-faculty-link a {
  color: var(--home-ink, #0a0a0a);
  font-weight: 700;
  text-decoration: none;
}

.about-faculty-link a:hover {
  text-decoration: underline;
}

.about-closing {
  margin-top: 1rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--home-border, rgba(0, 0, 0, 0.1));
  max-width: 36rem;
}

.about-closing .home-section-meta {
  margin-bottom: 0.85rem;
}

.about-closing h2 {
  margin: 0 0 0.65rem;
  font-family: var(--home-font-display, var(--font-sans));
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: none;
  color: var(--home-ink, #0a0a0a);
}

.about-closing .contact-hero-lead {
  margin-bottom: 1.35rem;
  max-width: 34ch;
}

.about-closing .home-hero-actions {
  margin-bottom: 0;
  gap: 0.65rem;
}

.about-closing-note {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--home-muted, #5c5c5c);
}

.about-closing-note a {
  color: var(--home-ink, #0a0a0a);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.about-closing-note a:hover {
  color: var(--brand, #6e51e0);
}

.about-pathway-grid {
  margin-top: 0.25rem;
}

.hub-page--about .about-faculty .home-section-foot {
  margin-top: 1.25rem;
}

.hub-page--about .about-hero .contact-hero-lead,
.hub-page--contact-page .contact-hero .contact-hero-lead {
  margin-bottom: 2.5rem;
}

@media (max-width: 860px) {
  .about-mission {
    grid-template-columns: 1fr;
  }

  .about-offer-row {
    grid-template-columns: 3rem minmax(0, 1fr);
  }

  .about-offer-meta {
    grid-column: 2;
    text-align: left;
    margin-top: -0.35rem;
  }

  .about-faculty-panel {
    grid-template-columns: 1fr;
  }

  .about-faculty-photo-wrap {
    width: 8.5rem;
  }
}

.about-pillars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.about-pillars li {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
}

.about-pillars li:last-child {
  border-bottom: 1px solid var(--border);
}

.about-pillars strong {
  font-size: 1rem;
}

.about-pillars span {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
  max-width: 52ch;
}

.about-actions {
  margin-top: 0.5rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.contact-card {
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-raised, transparent);
}

.contact-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.contact-card p {
  margin: 0 0 0.65rem;
}

.contact-card .hub-section-desc {
  margin: 0;
}

@media (max-width: 860px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}


.contact-channels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 0 0 clamp(2.5rem, 6vh, 3.75rem);
}

.contact-channel {
  padding: 1.25rem 1.2rem;
  background: var(--home-surface, #f7f6f3);
  border: 1px solid var(--home-border, rgba(0, 0, 0, 0.1));
  border-radius: 18px;
  min-height: 8.5rem;
}

.contact-channel-label {
  margin: 0 0 0.55rem;
  font-family: var(--home-font-mono, ui-monospace, monospace);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--home-muted, #5c5c5c);
}

.contact-channel-value {
  display: inline-block;
  margin: 0 0 0.55rem;
  font-family: var(--home-font-display, var(--font-sans));
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--home-ink, #0a0a0a);
  text-decoration: none;
  word-break: break-word;
}

.contact-channel-value:hover,
.contact-channel-value:focus-visible {
  text-decoration: underline;
}

.contact-channel-note {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--home-muted, #5c5c5c);
}

@media (max-width: 800px) {
  .contact-channels {
    grid-template-columns: 1fr;
  }

  .about-pathway-grid.home-pathway-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .about-pathway-grid.home-pathway-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Sylven-style contact page (shares .home-page tokens) */
.hub-page--contact .ambient {
  opacity: 0.2;
}

.hub-page--contact .hub-panel--contact {
  max-width: 72rem;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: clamp(1.25rem, 4vw, 2.5rem) clamp(1.25rem, 5vw, 3rem) 3rem;
}

.hub-page--contact .hub-breadcrumb {
  margin-bottom: 2rem;
}

.contact-section-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  font-family: var(--home-font-mono, ui-monospace, monospace);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--home-muted, #5c5c5c);
  max-width: 100%;
}

.contact-section-meta > * {
  min-width: 0;
  overflow-wrap: anywhere;
}

.contact-hero-title {
  margin: 0 0 1rem;
  font-family: var(--home-font-display, var(--font-sans));
  font-size: clamp(2.4rem, 8vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.98;
  text-transform: none;
  color: var(--home-ink, #0a0a0a);
}

.contact-hero-lead {
  margin: 0 0 2.75rem;
  max-width: 36ch;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--home-muted, #5c5c5c);
}

.contact-split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.contact-aside-lead {
  margin: 0 0 1.5rem;
  font-family: var(--home-font-display, var(--font-sans));
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--home-ink, #0a0a0a);
  max-width: 28ch;
}

.contact-person {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.contact-person-photo-wrap {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--home-border, rgba(0, 0, 0, 0.1));
  background: #d4d4d4;
  flex-shrink: 0;
}

.contact-person-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.contact-person-photo[hidden] {
  display: none;
}

.contact-person-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--home-font-display, var(--font-sans));
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--home-muted, #5c5c5c);
}

.contact-person-fallback[hidden] {
  display: none;
}

.contact-person-name {
  margin: 0;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--home-ink, #0a0a0a);
}

.contact-person-role {
  margin: 0.15rem 0 0;
  font-size: 0.82rem;
  color: var(--home-muted, #5c5c5c);
}

.contact-direct {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  color: var(--home-muted, #5c5c5c);
}

.contact-direct a {
  color: var(--home-ink, #0a0a0a);
  font-weight: 600;
  text-decoration: none;
}

.contact-direct a:hover {
  text-decoration: underline;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  padding: 1.5rem 1.35rem;
  background: var(--home-surface, #f7f6f3);
  border: 1px solid var(--home-border, rgba(0, 0, 0, 0.1));
  border-radius: 18px;
}

.hub-page--contact-page .contact-aside .about-section-title {
  margin-bottom: 0.85rem;
}

.hub-page--contact-page .contact-aside-lead {
  font-family: var(--home-font-body, var(--font-sans));
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0;
  max-width: 36ch;
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.contact-label {
  font-family: var(--home-font-display, var(--font-sans));
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--home-ink, #0a0a0a);
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  border: 1px solid var(--home-border, rgba(0, 0, 0, 0.12));
  border-radius: 12px;
  background: var(--home-bg, #ebebeb);
  padding: 0.75rem 0.9rem;
  font-family: var(--home-font-body, var(--font-sans));
  font-size: 1rem;
  color: var(--home-ink, #0a0a0a);
  outline: none;
  resize: vertical;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: #a3a3a3;
}

.contact-field input:focus,
.contact-field textarea:focus {
  border-color: var(--home-ink, #0a0a0a);
  background: var(--home-surface, #fff);
}

.contact-field input:focus-visible,
.contact-field textarea:focus-visible {
  outline: 2px solid var(--home-ink, #0a0a0a);
  outline-offset: 4px;
}

.contact-submit {
  align-self: flex-start;
  margin-top: 0.35rem;
  min-width: 11rem;
}

.hub-page--contact .home-btn--primary {
  color: var(--home-bg, #ebebeb);
  background: var(--home-ink, #0a0a0a);
  border-color: var(--home-ink, #0a0a0a);
}

.hub-page--contact .home-btn--primary:hover {
  background: color-mix(in srgb, var(--home-ink, #0a0a0a) 88%, #000);
  border-color: color-mix(in srgb, var(--home-ink, #0a0a0a) 88%, #000);
}

[data-theme="dark"] .hub-page--contact .home-btn--primary:hover {
  background: color-mix(in srgb, var(--home-ink, #f4f4f5) 90%, #fff);
  border-color: color-mix(in srgb, var(--home-ink, #f4f4f5) 90%, #fff);
}

.contact-form-note {
  margin: 0;
  font-size: 0.85rem;
  color: var(--home-muted, #5c5c5c);
}

@media (max-width: 800px) {
  .contact-split {
    grid-template-columns: 1fr;
  }

  .contact-section-meta {
    flex-wrap: wrap;
  }
}

/* Tuition & pricing · Sylven-style */
.hub-page--pricing .pricing-how,
.hub-page--pricing .pricing-programs,
.hub-page--pricing .pricing-include,
.hub-page--pricing .pricing-faq {
  margin-bottom: 3.5rem;
}

.pricing-table {
  display: flex;
  flex-direction: column;
  margin-top: 0.25rem;
}

.pricing-row {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: baseline;
  padding: 1.15rem 0;
  border-top: 1px solid var(--home-border, rgba(0, 0, 0, 0.1));
  text-decoration: none;
  color: inherit;
  transition: opacity 0.15s ease;
}

.pricing-row:last-child {
  border-bottom: 1px solid var(--home-border, rgba(0, 0, 0, 0.1));
}

.pricing-row:hover {
  opacity: 0.72;
}

.pricing-row:focus-visible {
  outline: 2px solid var(--home-ink, #0a0a0a);
  outline-offset: 4px;
}

.pricing-row-num {
  font-family: var(--home-font-mono, ui-monospace, monospace);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--home-muted, #5c5c5c);
}

.pricing-row-main {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.pricing-row-title {
  font-family: var(--home-font-display, var(--font-sans));
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--home-ink, #0a0a0a);
}

.pricing-row-meta {
  font-size: 0.88rem;
  color: var(--home-muted, #5c5c5c);
}

.pricing-row-note {
  font-family: var(--home-font-mono, ui-monospace, monospace);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--home-muted, #5c5c5c);
  white-space: nowrap;
}

.pricing-include-list {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.pricing-include-list li {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1.15rem 0;
  border-top: 1px solid var(--home-border, rgba(0, 0, 0, 0.1));
}

.pricing-include-list li:last-child {
  border-bottom: 1px solid var(--home-border, rgba(0, 0, 0, 0.1));
}

.pricing-include-list strong {
  font-family: var(--home-font-display, var(--font-sans));
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--home-ink, #0a0a0a);
}

.pricing-include-list span {
  max-width: 48ch;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--home-muted, #5c5c5c);
}

.pricing-faq-list {
  display: flex;
  flex-direction: column;
  margin-top: 0.5rem;
}

.pricing-faq-item {
  border-top: 1px solid var(--home-border, rgba(0, 0, 0, 0.1));
  padding: 0.15rem 0;
}

.pricing-faq-item:last-child {
  border-bottom: 1px solid var(--home-border, rgba(0, 0, 0, 0.1));
}

.pricing-faq-q {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 0;
  font-family: var(--home-font-display, var(--font-sans));
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--home-ink, #0a0a0a);
}

.pricing-faq-q::-webkit-details-marker {
  display: none;
}

.pricing-faq-a {
  margin: 0 0 1.15rem;
  max-width: 52ch;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--home-muted, #5c5c5c);
}

.pricing-closing {
  margin-top: 1rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--home-border, rgba(0, 0, 0, 0.1));
  text-align: center;
}

.pricing-closing h2 {
  margin: 0 0 0.65rem;
  font-family: var(--home-font-display, var(--font-sans));
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--home-ink, #0a0a0a);
}

.pricing-closing .contact-hero-lead {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.35rem;
}

.pricing-closing .home-hero-actions {
  justify-content: center;
  margin-bottom: 0;
}

.pricing-direct {
  margin: 1.25rem 0 0;
  font-size: 0.92rem;
  color: var(--home-muted, #5c5c5c);
}

.pricing-direct a {
  color: var(--home-ink, #0a0a0a);
  font-weight: 700;
  text-decoration: none;
}

.pricing-direct a:hover {
  text-decoration: underline;
}

@media (max-width: 720px) {
  .pricing-row {
    grid-template-columns: 3rem minmax(0, 1fr);
  }

  .pricing-row-note {
    grid-column: 2;
    margin-top: -0.25rem;
  }
}

/* Practical exam hub · Sylven multi-exam catalog */
.hub-page--exams .exam-how,
.hub-page--exams .exam-catalog,
.hub-page--exams .exam-rubrics {
  margin-bottom: 3.5rem;
}

.exam-detail-back {
  margin: 0 0 0.85rem;
  font-size: 0.9rem;
}

.exam-detail-back a {
  color: var(--home-muted, #5c5c5c);
  font-weight: 600;
  text-decoration: none;
}

.exam-detail-back a:hover {
  color: var(--home-ink, #0a0a0a);
  text-decoration: underline;
}

.exam-table {
  display: flex;
  flex-direction: column;
  margin-top: 0.35rem;
}

.exam-row {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: start;
  padding: 1.25rem 0;
  border-top: 1px solid var(--home-border, rgba(0, 0, 0, 0.1));
  text-decoration: none;
  color: inherit;
  transition: opacity 0.15s ease;
}

.exam-row:last-child {
  border-bottom: 1px solid var(--home-border, rgba(0, 0, 0, 0.1));
}

a.exam-row:hover {
  opacity: 0.72;
}

a.exam-row:focus-visible {
  outline: 2px solid var(--home-ink, #0a0a0a);
  outline-offset: 4px;
}

.exam-row--static {
  cursor: default;
}

.exam-row-num {
  font-family: var(--home-font-mono, ui-monospace, monospace);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--home-muted, #5c5c5c);
  padding-top: 0.2rem;
}

.exam-row-main {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}

.exam-row-track {
  font-family: var(--home-font-mono, ui-monospace, monospace);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--home-muted, #5c5c5c);
}

.exam-row-title {
  font-family: var(--home-font-display, var(--font-sans));
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--home-ink, #0a0a0a);
}

.exam-row-blurb {
  max-width: 48ch;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--home-muted, #5c5c5c);
}

.exam-row-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.45rem;
  text-align: right;
}

.exam-row-meta {
  font-family: var(--home-font-mono, ui-monospace, monospace);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--home-muted, #5c5c5c);
}

.exam-row-status {
  font-family: var(--home-font-mono, ui-monospace, monospace);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--home-border, rgba(0, 0, 0, 0.12));
}

.exam-row-status--live {
  color: var(--home-ink, #0a0a0a);
  background: rgba(0, 0, 0, 0.04);
}

.exam-row-status--day {
  color: var(--home-muted, #5c5c5c);
}

.exam-rubric-label {
  margin: 1.5rem 0 0.65rem;
  font-family: var(--home-font-mono, ui-monospace, monospace);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--home-muted, #5c5c5c);
}

.hub-page--exams .exam-table-wrap {
  margin-bottom: 0.5rem;
}

.hub-page--exams .hub-section {
  margin-bottom: 2.25rem;
}

.hub-page--exams .hub-section-head h2 {
  font-family: var(--home-font-display, var(--font-sans));
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--home-ink, #0a0a0a);
}

.hub-page--exams .hub-section-desc,
.hub-page--exams .practice-track-list {
  color: var(--home-muted, #5c5c5c);
}

.exam-closing {
  margin-top: 1rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--home-border, rgba(0, 0, 0, 0.1));
  text-align: center;
}

.exam-closing h2 {
  margin: 0 0 0.65rem;
  font-family: var(--home-font-display, var(--font-sans));
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--home-ink, #0a0a0a);
}

.exam-closing .contact-hero-lead {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.35rem;
}

.exam-closing .home-hero-actions {
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 0;
}

@media (max-width: 720px) {
  .exam-row {
    grid-template-columns: 2.75rem minmax(0, 1fr);
  }

  .exam-row-aside {
    grid-column: 2;
    align-items: flex-start;
    text-align: left;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem 0.85rem;
  }
}

/* ── Design prompts (Practice / in-person Cursor reps) ── */

.hub-page--prompts .hub-lead--note {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.hub-panel--narrow {
  max-width: 42rem;
}

.prompt-runbook {
  margin: 2rem 0;
  padding: 1.25rem 1.35rem;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.prompt-runbook h2 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
}

.prompt-runbook-list {
  margin: 0;
  padding-left: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.prompt-meta-row {
  margin: 1rem 0 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.prompt-command {
  margin: 2rem 0;
}

.prompt-command-pre {
  margin: 0;
  padding: 1rem 1.15rem;
  overflow-x: auto;
  font-size: 0.8rem;
  line-height: 1.55;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
}

.prompt-command-pre code {
  font-family: var(--font-mono, ui-monospace, monospace);
}

.prompt-back {
  margin: 2rem 0 0;
  font-size: 0.875rem;
}

.prompt-back a {
  color: var(--accent);
  text-decoration: none;
}

.prompt-back a:hover {
  text-decoration: underline;
}

.splash-pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 720px) {
  .splash-pillars {
    grid-template-columns: 1fr;
  }
}

.splash-pillar {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.85rem 1rem;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(110, 81, 224, 0.06);
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

[data-theme="dark"] .splash-pillar {
  background: rgba(110, 81, 224, 0.12);
}

.splash-pillar:hover {
  border-color: rgba(110, 81, 224, 0.55);
  background: var(--accent-soft);
  transform: translateY(-2px);
}

.splash-pillar-label {
  font-weight: 700;
  font-size: 1rem;
}

.splash-pillar-meta {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
}

.splash-courses,
.splash-faq {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.splash-courses-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.splash-course {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(128, 128, 128, 0.04);
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

[data-theme="dark"] .splash-course {
  background: rgba(255, 255, 255, 0.03);
}

.splash-course:hover {
  border-color: rgba(110, 81, 224, 0.45);
  background: var(--accent-soft);
  transform: translateX(3px);
}

[data-theme="dark"] .splash-course:hover {
  background: rgba(110, 81, 224, 0.1);
}

.splash-course-body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.splash-course-label {
  font-weight: 600;
  font-size: 0.95rem;
}

.splash-course-outcome {
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.splash-course-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  flex-shrink: 0;
}

.splash-course-meta {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
}

.splash-course-cta {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
}

.splash-course:hover .splash-course-cta {
  text-decoration: underline;
}

.splash-faq .capstone-faq-item a {
  color: var(--accent);
  font-weight: 600;
}

.splash-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.72rem;
  color: var(--text-faint);
}

.splash-footer p {
  margin: 0;
}

.splash-footer-note {
  margin-top: 0.35rem !important;
  font-size: 0.68rem;
  color: var(--text-faint);
}

@media (max-width: 860px) {
  .splash-frame {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .splash-art {
    min-height: 220px;
  }

  .splash-blocks {
    min-height: 220px;
  }

  .splash-content {
    padding: 1.75rem 1.25rem 2rem;
  }

  .splash-title {
    font-size: clamp(1.6rem, 6vw, 2rem);
  }
}

@media (max-width: 480px) {
  .splash-stats {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .splash-stat {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    text-align: left;
  }

  .splash-stat-label {
    margin: 0;
    text-align: right;
    max-width: 12ch;
  }

  .splash-course {
    flex-direction: column;
    align-items: stretch;
  }

  .splash-course-aside {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .splash-profile {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .splash-lead {
    max-width: none;
  }
}

/* ── AI Studio catalog ── */

.hub-page--ai-studio {
  --studio-accent: var(--brand);
  --studio-accent-soft: var(--accent-soft);
}

[data-theme="dark"] .hub-page--ai-studio {
  --studio-accent: var(--accent);
  --studio-accent-soft: var(--accent-soft);
}

.hub-page--ai-studio .hub-eyebrow,
.hub-page--ai-studio .site-brand-icon {
  color: var(--studio-accent);
}

/* ── Computer Vision catalog ── */

.hub-page--computer-vision {
  --studio-accent: #0f766e;
  --studio-accent-soft: rgba(15, 118, 110, 0.12);
}

[data-theme="dark"] .hub-page--computer-vision {
  --studio-accent: #2dd4bf;
  --studio-accent-soft: rgba(45, 212, 191, 0.14);
}

.hub-page--computer-vision .hub-eyebrow,
.hub-page--computer-vision .site-brand-icon {
  color: var(--studio-accent);
}

.hub-section-desc--tight {
  margin-top: 0.75rem;
  max-width: 42rem;
}

.hub-panel--studio {
  max-width: 960px;
}

.hub-hero--left {
  text-align: left;
}

.hub-hero--left .hub-lead,
.hub-hero--left .hub-lead--note,
.hub-hero--left .hub-lead--subtitle,
.hub-hero--left .hub-lead--wide {
  margin-left: 0;
  margin-right: 0;
  max-width: min(65ch, 100%);
}

.hub-hero--left .hub-lead--wide {
  max-width: none;
}

.hub-hero--left .hub-stats {
  justify-content: flex-start;
}

.studio-jump {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.65rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  max-width: 100%;
}

.studio-jump-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  flex: 0 0 100%;
}

@media (min-width: 640px) {
  .studio-jump-label {
    flex: 0 0 auto;
  }
}

.studio-jump-link {
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  min-height: 2.25rem;
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.studio-jump-link:hover {
  border-color: var(--studio-accent);
  color: var(--studio-accent);
  background: var(--studio-accent-soft);
}

.studio-track {
  margin-bottom: 2.5rem;
}

.studio-track-head {
  margin-bottom: 1rem;
}

.studio-track-head h2 {
  font-size: 1.25rem;
  margin: 0 0 0.35rem;
}

.studio-track-head p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Studio hub · Sylven catalog */
.hub-page--studio-hub.home-page .studio-hub-catalog,
.hub-page--studio-hub.home-page .studio-hub-paths {
  margin-bottom: 3.5rem;
}

.hub-page--studio-hub.home-page .studio-hub-closing {
  margin-top: 1rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--home-border, rgba(0, 0, 0, 0.1));
  text-align: center;
}

.hub-page--studio-hub.home-page .studio-hub-closing h2 {
  margin: 0 0 0.65rem;
  font-family: var(--home-font-display, var(--font-sans));
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--home-ink, #0a0a0a);
}

.hub-page--studio-hub.home-page .studio-hub-closing .contact-hero-lead {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.35rem;
}

.hub-page--studio-hub.home-page .studio-hub-closing .home-hero-actions {
  justify-content: center;
  margin-bottom: 0;
}

/* Case studies hub · Sylven */
.hub-page--case-studies .case-how,
.hub-page--case-studies .case-catalog,
.hub-page--case-studies .case-related {
  margin-bottom: 3.5rem;
}

.hub-page--case-studies .case-closing {
  margin-top: 1rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--home-border, rgba(0, 0, 0, 0.1));
  text-align: center;
}

.hub-page--case-studies .case-closing h2 {
  margin: 0 0 0.65rem;
  font-family: var(--home-font-display, var(--font-sans));
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--home-ink, #0a0a0a);
}

.hub-page--case-studies .case-closing .contact-hero-lead {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.35rem;
}

.hub-page--case-studies .case-closing .home-hero-actions {
  justify-content: center;
  margin-bottom: 0;
}

/* Course hubs · Sylven (Product Design, Graphic, AI Studio, …) */
.hub-page--course-sylven .hub-panel--contact {
  max-width: 72rem;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: clamp(1.25rem, 4vw, 2.5rem) clamp(1.25rem, 5vw, 3rem) 3rem;
}

.hub-page--course-sylven .ambient {
  opacity: 0.2;
}

.hub-page--course-sylven .hub-breadcrumb {
  margin-bottom: 2rem;
}

.course-hub-hero {
  margin-bottom: 2.75rem;
}

.course-hub-hero .contact-hero-lead {
  margin-bottom: 1rem;
  max-width: 48ch;
}

.course-hub-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  margin: 0 0 0.5rem;
  font-family: var(--home-font-mono, ui-monospace, monospace);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--home-muted, #5c5c5c);
}

.course-hub-stats-sep {
  opacity: 0.55;
}

.course-hub-note {
  margin: -1.5rem 0 2.5rem;
  max-width: 52ch;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--home-muted, #5c5c5c);
}

.course-hub-note a {
  color: var(--home-ink, #0a0a0a);
  font-weight: 600;
}

.hub-page--course-sylven .hub-curriculum,
.hub-page--course-sylven .hub-section {
  margin-bottom: 3rem;
}

.hub-page--course-sylven .course-hub-curriculum-head {
  margin-bottom: 0.35rem;
}

.hub-page--course-sylven .course-hub-curriculum-head .about-section-title {
  margin-bottom: 0.5rem;
}

.hub-page--course-sylven .hub-section-desc.about-section-lead {
  margin-bottom: 1.25rem;
}

.hub-page--course-sylven .hub-outcomes-list {
  margin-top: 0.75rem;
}

.hub-page--course-sylven .studio-jump {
  margin: 0 0 2.5rem;
}

.hub-page--course-sylven .studio-track-head h2 {
  font-family: var(--home-font-display, var(--font-sans));
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--home-ink, #0a0a0a);
}

.hub-page--course-sylven .studio-track-head p {
  color: var(--home-muted, #5c5c5c);
}

.hub-page--course-sylven.hub-page--course-landing .course-landing-grid {
  margin-top: 0.5rem;
}

.hub-page--course-sylven .studio-course-format-note.course-hub-note {
  margin-top: -1.75rem;
}

/* Studio catalog cards. accent defaults on all hub pages */
.hub-page {
  --studio-accent: var(--brand);
  --studio-accent-soft: var(--accent-soft);
  --studio-cta-hover: var(--accent-hover);
}

[data-theme="dark"] .hub-page {
  --studio-accent: var(--brand);
  --studio-accent-soft: var(--accent-soft);
  --studio-cta-hover: var(--accent-hover);
}

.studio-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16.5rem), 1fr));
  gap: 1.25rem;
  width: 100%;
}

.studio-catalog-grid .home-course-card,
.studio-card.home-course-card {
  flex: none;
  width: 100%;
  max-width: none;
  min-height: 100%;
  scroll-snap-align: unset;
  background: var(--surface-raised, var(--home-surface, #fff));
  border-color: var(--border, rgba(0, 0, 0, 0.1));
}

.studio-catalog-grid .home-course-card-mark--icon,
.home-course-card-mark--icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  left: 1rem;
  bottom: 0.85rem;
}

.studio-catalog-grid .home-course-card-mark--icon svg,
.home-course-card-mark--icon svg {
  width: 2rem;
  height: 2rem;
  stroke: currentColor;
}

/* Legacy list-row styles kept only when card is not marketplace tile */
.studio-card:not(.home-course-card) {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: stretch;
  text-decoration: none;
  color: inherit;
  padding: 1.15rem 1.2rem 1.2rem;
  border: 1px solid var(--home-border, var(--border));
  border-radius: 1rem;
  background: var(--surface-raised, var(--home-surface, #fff));
  overflow: hidden;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  scroll-margin-top: calc(var(--header-height) + 0.85rem);
  min-height: 100%;
}

.studio-card:not(.home-course-card):last-child {
  border-bottom: 1px solid var(--home-border, var(--border));
}

.studio-card:not(.home-course-card):hover {
  opacity: 1;
  border-color: color-mix(in srgb, var(--brand, #6e51e0) 32%, var(--home-border, var(--border)));
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
}

.studio-card:focus-visible {
  outline: 2px solid var(--home-ink, var(--text));
  outline-offset: 3px;
}

.studio-card:not(.home-course-card) .studio-card-num {
  font-family: var(--home-font-mono, ui-monospace, monospace);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--home-muted, var(--text-muted));
  padding-top: 0;
}

.studio-card-num--icon {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  color: var(--home-ink, var(--text));
}

.studio-card-num--icon svg {
  width: 1.15rem;
  height: 1.15rem;
}

.studio-card-num--label {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.3;
  max-width: 3.5rem;
}

/* Legacy thumb kept for any hand-authored HTML */
.studio-card-thumb {
  display: none;
}

.studio-card-thumb-label {
  display: none;
}

.studio-card:not(.home-course-card) .studio-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
  padding: 0;
  flex: 1;
}

.studio-card-level {
  align-self: flex-start;
  font-family: var(--home-font-mono, ui-monospace, monospace);
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--home-border, var(--border));
  color: var(--home-ink, var(--text));
  background: transparent;
}

.studio-card-level--beginner,
.studio-card-level--cohort,
.studio-card-level--studio,
.studio-card-level--lessons,
.studio-card-level--advanced,
.studio-card-level--build,
.studio-card-level--for-all,
.studio-card-level--free,
.studio-card-level--paid,
.studio-card-level--bundle,
.studio-card-level--intermediate {
  color: var(--home-ink, var(--text));
  background: transparent;
  border-color: var(--home-border, var(--border));
}

.studio-card-level--soon {
  color: var(--home-muted, var(--text-muted));
  background: transparent;
  border-color: var(--home-border, var(--border));
}

/* Store catalog status badges (reuse studio-card grid) */
.studio-card-level--free {
  color: var(--home-ink, var(--text));
}

.studio-card-level--paid {
  color: var(--home-ink, var(--text));
}

.studio-card-level--bundle {
  color: var(--home-ink, var(--text));
}

.store-catalog-note {
  margin: 0 0 1rem;
  max-width: 42rem;
}

.store-catalog-stats {
  margin-bottom: 1.25rem;
}

.store-catalog-jump {
  margin-bottom: 1.75rem;
}

.store-catalog-section + .store-catalog-section {
  margin-top: 2.5rem;
}

.store-catalog-grid {
  /* holder hook for future filters / empty states */
}

.studio-card--soon,
.home-course-card--soon {
  cursor: default;
  opacity: 0.72;
}

.studio-card--soon:hover,
.home-course-card--soon:hover {
  opacity: 0.72;
  transform: none;
  box-shadow: none;
}

.studio-card:not(.home-course-card) .studio-card-title {
  font-family: var(--home-font-display, var(--font-sans));
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--home-ink, var(--text));
}

.studio-card:not(.home-course-card) .studio-card-desc {
  font-size: 0.9rem;
  color: var(--home-muted, var(--text-muted));
  line-height: 1.5;
  max-width: none;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.studio-card:not(.home-course-card) .studio-card-aside {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  text-align: left;
  padding-top: 0.35rem;
  margin-top: auto;
  border-top: 1px solid var(--home-border, var(--border));
}

.studio-card:not(.home-course-card) .studio-card-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.35rem;
  font-family: var(--home-font-mono, ui-monospace, monospace);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--home-muted, var(--text-muted));
  margin-top: 0;
  padding-top: 0;
}

.studio-card:not(.home-course-card) .studio-card-cta {
  display: inline-block;
  text-align: right;
  padding: 0;
  font-family: var(--home-font-body, var(--font-sans));
  font-size: 0.82rem;
  font-weight: 700;
  border-top: none;
  color: var(--brand, #6e51e0);
  background: transparent;
  text-decoration: none;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
  white-space: nowrap;
}

[data-theme="dark"] .studio-card:not(.home-course-card) .studio-card-cta {
  color: var(--brand, #8b76e8);
  background: transparent;
}

.studio-card:not(.home-course-card):hover .studio-card-cta,
.studio-card:not(.home-course-card):focus-visible .studio-card-cta {
  color: var(--accent-hover, #5a44c4);
  background: transparent;
  border-top-color: transparent;
  text-decoration: underline;
  text-decoration-color: var(--accent-hover, #5a44c4);
}

.studio-card--soon .studio-card-cta {
  color: var(--home-muted, var(--text-muted));
  background: transparent;
}

.studio-card--soon:hover .studio-card-cta {
  color: var(--home-muted, var(--text-muted));
  background: transparent;
  text-decoration: none;
}

@media (max-width: 640px) {
  .studio-catalog-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* ── AI Studio course landing (lesson hub) ── */

/* Dreamax-style course landing · Talodabi (open layout + sticky overview) */
.hub-page--course-landing .course-landing-hero {
  margin: 0 0 1.75rem;
  max-width: 46rem;
}

.hub-page--course-landing .course-landing-hero h1 {
  margin: 0.35rem 0 0.75rem;
  font-size: clamp(1.85rem, 4.2vw, 2.65rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.course-landing-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(16rem, 0.7fr);
  gap: 2rem 2.5rem;
  align-items: start;
}

.course-landing-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.course-tabs {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.course-tablist {
  display: flex;
  gap: 0.25rem;
  border-bottom: 1px solid var(--border);
}

.course-tab {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0.75rem 1rem;
  margin-bottom: -1px;
  font: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
}

.course-tab.is-active {
  color: var(--text);
  border-bottom-color: var(--accent, #6e51e0);
}

.course-tabpanel[hidden] {
  display: none;
}

.course-block {
  margin: 0 0 2rem;
  padding: 0;
  border: 0;
  background: transparent;
}

.course-block h2 {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.course-about {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-width: 62ch;
}

.course-about p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.65;
}

.course-gains,
.course-skills-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.course-gain,
.course-skill {
  display: grid;
  grid-template-columns: 1.5rem 1fr;
  gap: 0.75rem;
  align-items: start;
}

.course-gain-icon,
.course-skill-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  margin-top: 0.1rem;
  border-radius: 999px;
  color: var(--accent, #6e51e0);
  background: var(--accent-soft, rgba(110, 81, 224, 0.12));
}

.course-gain strong {
  display: block;
  margin-bottom: 0.2rem;
}

.course-gain p,
.course-skill span {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.5;
}

.course-instructor {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.course-instructor-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
  background: var(--accent, #6e51e0);
}

.course-instructor strong {
  display: block;
}

.course-instructor p {
  margin: 0.15rem 0 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.course-cert-preview {
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--border);
  max-width: 40rem;
}

.course-cert-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.course-cert-title {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 700;
}

.course-cert-desc {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.55;
}

.course-faq {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}

.course-faq-item {
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 0;
}

.course-faq-item summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.course-faq-item summary::-webkit-details-marker {
  display: none;
}

.course-faq-item p {
  margin: 0.65rem 0 0;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 58ch;
}

.course-overview {
  position: sticky;
  top: 5.5rem;
}

.course-overview-panel {
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--border);
}

.course-overview-panel h2 {
  margin: 0 0 1rem;
  font-size: 1.05rem;
}

.course-overview-list {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.course-overview-row {
  display: grid;
  grid-template-columns: 1.25rem 1fr auto;
  gap: 0.65rem;
  align-items: center;
  font-size: 0.9rem;
}

.course-overview-icon {
  color: var(--text-muted);
  display: inline-flex;
}

.course-overview-label {
  color: var(--text-muted);
}

.course-overview-value {
  font-weight: 600;
  text-align: right;
}

.course-overview-price {
  margin: 0 0 0.35rem;
  font-family: "Outfit", var(--font-sans, system-ui, sans-serif);
  font-size: clamp(1.85rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text);
}

.course-overview-price-note {
  margin: 0 0 1rem;
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.course-overview-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
}

/* Fallback when actions are not wrapped (older HTML) */
.course-overview-panel > .course-overview-cta {
  display: flex;
  width: 100%;
}

.course-overview-panel > .course-overview-secondary {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 0.15rem;
}

.course-overview-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2.85rem;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  box-sizing: border-box;
}

.course-overview-secondary {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.35rem 0.5rem;
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.course-overview-secondary:hover {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

[data-theme="dark"] .course-overview-secondary {
  color: var(--text-faint);
}

[data-theme="dark"] .course-overview-secondary:hover {
  color: var(--text);
}

.course-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.course-related-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: transform var(--duration-normal) var(--ease-out);
}

.course-related-card:hover {
  transform: translateY(-2px);
}

.course-related-level {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.course-related-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
}

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

  .course-overview {
    position: static;
    order: -1;
  }

  .course-related-grid {
    grid-template-columns: 1fr;
  }
}

.studio-course-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem 2.5rem;
  align-items: start;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.studio-course-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  margin: 0 0 0.75rem;
  line-height: 1.15;
}

.studio-course-byline {
  margin: -0.35rem 0 0.85rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.studio-course-byline strong {
  color: var(--text);
  font-weight: 600;
}

.studio-course-hero .hub-lead {
  margin: 0 0 1rem;
  max-width: 52ch;
}

.studio-course-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

.studio-course-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.studio-course-badge--time svg,
.studio-course-badge--live svg {
  opacity: 0.7;
}

.studio-course-badge--live {
  color: var(--studio-accent);
  font-weight: 500;
}

.studio-course-badge--cert {
  font-weight: 600;
  color: var(--text);
}

.studio-course-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  max-width: 56ch;
}

.studio-course-skills li {
  margin: 0;
  padding: 0.28rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-raised, transparent);
}

.studio-course-format-note {
  margin: 0 0 1rem;
  max-width: 52ch;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.studio-bring-list {
  margin: 0;
  padding: 0 0 0 1.15rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.studio-bring-list li {
  margin-bottom: 0.35rem;
}

.lesson-block {
  margin: 1.5rem 0;
  padding: 1rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(128, 128, 128, 0.04);
}

[data-theme="dark"] .lesson-block {
  background: rgba(255, 255, 255, 0.03);
}

.lesson-block-title {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
}

.lesson-block--in {
  border-color: var(--studio-accent);
  background: var(--studio-accent-soft);
}

.lesson-block--in .lesson-block-title {
  color: var(--studio-accent);
}

.lesson-block-list {
  margin: 0;
  padding: 0 0 0 1.1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.lesson-block-list li {
  margin-bottom: 0.4rem;
}

.studio-course-hero-cta {
  padding-top: 0.25rem;
}

.studio-course-start {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.studio-course-start-arrow {
  font-size: 1.1em;
  line-height: 1;
}

.studio-course-section {
  margin-bottom: 2.5rem;
}

.studio-course-section-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  margin: 0 0 1rem;
}

.studio-course-section-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.studio-course-section-bar .studio-course-section-label {
  margin: 0;
}

.studio-course-collapse-all {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.studio-course-collapse-all:hover {
  color: var(--studio-accent);
}

.studio-outcomes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 2rem;
}

.studio-outcome {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
}

.studio-outcome-icon {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--studio-accent-soft);
  color: var(--studio-accent);
}

.studio-outcome p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.studio-outcome strong {
  color: var(--text);
  font-weight: 600;
}

.studio-course-module {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-raised);
}

.studio-course-module-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.15rem;
  text-align: left;
  background: rgba(128, 128, 128, 0.04);
  border: none;
  cursor: pointer;
  color: var(--text);
  font: inherit;
}

[data-theme="dark"] .studio-course-module-trigger {
  background: rgba(255, 255, 255, 0.03);
}

.studio-course-module-trigger:hover {
  background: rgba(128, 128, 128, 0.08);
}

.studio-course-module-icon {
  flex-shrink: 0;
  color: var(--text-muted);
}

.studio-course-module-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.studio-course-module-title {
  font-weight: 600;
  font-size: 0.95rem;
}

.studio-course-module-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.studio-course-module-chevron {
  flex-shrink: 0;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
  transition: transform 0.15s;
  margin-right: 0.15rem;
}

.studio-course-module:not([open]) .studio-course-module-chevron {
  transform: rotate(-135deg);
  margin-top: 0.2rem;
}

.studio-course-module-panel {
  border-top: 1px solid var(--border);
}

.studio-course-module:not([open]) .studio-course-module-panel {
  display: none;
}

.week-list--lessons {
  gap: 0;
}

.week-list--lessons .week-row--lesson {
  border: none;
  border-radius: 0;
  border-bottom: 1px solid var(--border);
  background: transparent;
  transform: none;
  padding: 1rem 1.15rem;
}

.week-list--lessons .week-row--lesson:last-of-type {
  border-bottom: none;
}

.week-list--lessons .week-row--lesson:hover {
  background: rgba(128, 128, 128, 0.06);
  transform: none;
}

.week-list--lessons .week-row-num {
  width: auto;
  height: auto;
  min-width: 1.25rem;
  background: none;
  border: none;
  font-size: 0.85rem;
  color: var(--text-faint);
  justify-content: flex-start;
}

.week-row-duration {
  flex-shrink: 0;
  font-size: 0.78rem;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
}

.studio-cert-row {
  display: flex;
  gap: 0.95rem;
  align-items: flex-start;
  margin-top: 1.5rem;
  padding: 1.15rem 1.25rem;
  background: var(--studio-accent-soft);
  border: 1px solid color-mix(in srgb, var(--studio-accent) 22%, var(--border));
  border-radius: var(--radius-lg);
}

.studio-cert-icon {
  flex-shrink: 0;
  color: var(--studio-accent);
}

.studio-cert-copy {
  flex: 1;
  min-width: 0;
}

.studio-cert-title {
  margin: 0 0 0.25rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.studio-cert-badge {
  display: inline-block;
  margin-left: 0.35rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.15rem 0.45rem;
  border-radius: 99px;
  border: 1px solid var(--studio-accent);
  color: var(--studio-accent);
  vertical-align: middle;
}

.studio-cert-desc {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 62ch;
}

.studio-course-kit-note {
  margin-top: 1.35rem;
}

.studio-course-kit-note code {
  font-size: 0.85em;
}

.hub-panel--narrow {
  max-width: 720px;
}

.hub-prose p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.hub-prose--prd h2,
.hub-prose--prd h3 {
  color: var(--text);
  font-weight: 600;
  margin: 1.75rem 0 0.65rem;
}

.hub-prose--prd h2 {
  font-size: 1.05rem;
}

.hub-prose--prd h3 {
  font-size: 0.98rem;
}

.hub-prose--prd ul,
.hub-prose--prd ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  color: var(--text-muted);
}

.hub-prose--prd li {
  margin-bottom: 0.35rem;
  line-height: 1.55;
}

.hub-prose--prd blockquote {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--accent);
  color: var(--text-muted);
  font-size: 0.92rem;
}

.hub-panel--wide {
  max-width: 52rem;
}

.hub-lead--subtitle {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.capstone-faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.capstone-faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md, 8px);
  padding: 0.75rem 1rem;
  background: var(--surface, transparent);
}

.capstone-faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
}

.capstone-faq-item p {
  margin: 0.65rem 0 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.capstone-toc {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.capstone-toc th,
.capstone-toc td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.capstone-toc th {
  font-weight: 600;
  color: var(--text);
}

.capstone-toc td:first-child {
  width: 2.5rem;
  color: var(--text-muted);
}

.capstone-brief .table-wrap {
  margin: 1rem 0 1.5rem;
}

.studio-track--tier {
  margin-top: 2.5rem;
}

.studio-track--tier:first-of-type {
  margin-top: 1.5rem;
}

/* Real Nigerian Problems: one alignment (left) on hub + capstone briefs */
.hub-page--nigerian-problems .hub-hero {
  text-align: left;
}

.hub-page--nigerian-problems .hub-lead,
.hub-page--nigerian-problems .hub-lead--note,
.hub-page--nigerian-problems .hub-lead--subtitle {
  margin-left: 0;
  margin-right: 0;
  max-width: min(65ch, 100%);
}

.hub-page--nigerian-problems .hub-stats {
  justify-content: flex-start;
}

.hub-download-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle, rgba(0, 0, 0, 0.08));
}

html[data-theme='dark'] .hub-download-bar {
  border-top-color: var(--border-subtle, rgba(255, 255, 255, 0.12));
}

.hub-download-bar__label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-right: 0.25rem;
}

/* Capstone brief docs (Talodabi · documentation) */
.hub-page--capstone-detail,
.capstone-brief,
.teach-dash-docs {
  --capstone-accent: var(--brand, #6e51e0);
  --capstone-accent-soft: color-mix(in srgb, var(--brand, #6e51e0) 12%, transparent);
  --capstone-surface: color-mix(in srgb, var(--bg, #eceae6) 70%, #fff);
  --capstone-border: color-mix(in srgb, var(--text, #1a1a1a) 10%, transparent);
  --capstone-muted: var(--text-muted, #5c5c5c);
  --capstone-text: var(--text, #1a1a1a);
}

[data-theme='dark'] .hub-page--capstone-detail,
[data-theme='dark'] .capstone-brief,
[data-theme='dark'] .teach-dash-docs {
  --capstone-accent: color-mix(in srgb, var(--brand, #6e51e0) 75%, #fff);
  --capstone-accent-soft: color-mix(in srgb, var(--brand, #6e51e0) 18%, transparent);
  --capstone-surface: rgba(255, 255, 255, 0.04);
  --capstone-border: rgba(255, 255, 255, 0.12);
  --capstone-muted: #a3a3a3;
  --capstone-text: #f5f5f5;
}

.hub-page--capstone-detail .ambient {
  opacity: 0.28;
  pointer-events: none;
}

.hub-page--capstone-detail .hub-panel--capstone {
  position: relative;
  z-index: 1;
  max-width: 48rem;
  padding: clamp(1.35rem, 3.5vw, 2.25rem);
}

.capstone-brief-hero {
  padding-bottom: 1.35rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--capstone-border);
}

.capstone-brief-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  letter-spacing: -0.025em;
  line-height: 1.12;
  max-width: 18ch;
  color: var(--capstone-text);
}

.capstone-brief-hero .hub-lead {
  max-width: 42ch;
  margin-top: 0.65rem;
}

.capstone-brief-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.capstone-brief-meta li {
  display: inline-flex;
  align-items: center;
  min-height: 1.75rem;
  padding: 0.25rem 0.7rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--capstone-muted);
  background: transparent;
  border: 1px solid var(--capstone-border);
  border-radius: 999px;
}

.hub-page--capstone-detail .hub-download-bar {
  margin-top: 1.15rem;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
}

.hub-page--capstone-detail .hub-download-bar .btn {
  border-radius: 8px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.6875rem;
  min-height: 2.25rem;
  padding: 0.4rem 0.95rem;
}

.hub-page--capstone-detail .hub-download-bar .btn-secondary {
  color: var(--capstone-text);
  border-color: var(--capstone-border);
  background: var(--capstone-surface);
}

.hub-page--capstone-detail .hub-download-bar .btn-secondary:hover {
  color: #fff;
  background: var(--capstone-accent);
  border-color: var(--capstone-accent);
}

/* Docs TOC · vertical "On this page" list */
.capstone-brief-toc {
  position: static;
  z-index: auto;
  margin: 0 0 2rem;
  padding: 0 0 1.25rem;
  border: none;
  border-bottom: 1px solid var(--capstone-border);
  border-radius: 0;
  background: transparent;
}

.capstone-brief-toc__title {
  margin: 0 0 0.75rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--capstone-muted);
}

.capstone-brief-toc__list {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.capstone-brief-toc__list > li {
  margin: 0;
  padding: 0;
}

.capstone-brief-toc__link {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  max-width: 100%;
  padding: 0.4rem 0.55rem;
  margin: 0 -0.55rem;
  border-radius: 8px;
  border: none;
  background: transparent;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--capstone-muted);
  white-space: normal;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}

.capstone-brief-toc__link:hover {
  color: var(--capstone-text);
  background: var(--capstone-accent-soft);
}

.capstone-brief-toc__link:focus-visible {
  outline: 2px solid var(--capstone-accent);
  outline-offset: 2px;
}

.capstone-brief-toc__num {
  flex-shrink: 0;
  min-width: 1.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--capstone-accent);
}

.capstone-brief-toc__label {
  min-width: 0;
}

.capstone-brief {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.capstone-brief-section {
  border: none;
  border-top: 1px solid var(--capstone-border);
  border-radius: 0;
  background: transparent;
  overflow: visible;
  scroll-margin-top: calc(var(--header-height, 4rem) + 1.25rem);
  padding: 1.75rem 0 0.5rem;
}

.capstone-brief-section:first-child {
  border-top: none;
  padding-top: 0.15rem;
}

.capstone-brief-section__num {
  display: inline-block;
  margin-right: 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: var(--capstone-accent);
  line-height: inherit;
}

.capstone-brief-section__title {
  margin: 0 0 0.85rem;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--capstone-text);
  line-height: 1.3;
}

.capstone-brief-section__body {
  padding: 0;
}

.capstone-brief-section__body > :first-child {
  margin-top: 0;
}

.capstone-brief-section__body > :last-child {
  margin-bottom: 0;
}

.capstone-brief-section__body h3 {
  margin: 1.15rem 0 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--capstone-text);
}

.capstone-brief-section__body p {
  margin: 0 0 0.9rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.capstone-brief-section__body strong {
  color: var(--capstone-text);
  font-weight: 600;
}

.capstone-brief-section__body ul,
.capstone-brief-section__body ol {
  margin: 0 0 1rem;
  padding-left: 1.15rem;
  color: var(--text-muted);
}

.capstone-brief-section__body li {
  margin-bottom: 0.4rem;
  line-height: 1.55;
}

.capstone-brief-section__body blockquote {
  margin: 0 0 1rem;
  padding: 0.75rem 0 0.75rem 1rem;
  border-left: 2px solid var(--capstone-accent);
  border-radius: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.capstone-brief .table-wrap {
  margin: 0.85rem 0 1.1rem;
  border: 1px solid var(--capstone-border);
  border-radius: 10px;
  box-shadow: none;
  background: var(--surface-raised);
  overflow-x: auto;
}

.capstone-brief .table-wrap table {
  margin: 0;
}

.capstone-brief .table-wrap th,
.capstone-brief .table-wrap td {
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--capstone-border);
  vertical-align: top;
}

.capstone-brief .table-wrap tr:last-child th,
.capstone-brief .table-wrap tr:last-child td {
  border-bottom: none;
}

.capstone-brief .table-wrap th {
  width: 32%;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--capstone-muted);
  background: var(--capstone-surface);
  white-space: nowrap;
}

.capstone-brief .table-wrap td {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--capstone-text);
  line-height: 1.45;
}

.capstone-brief .table-wrap tbody tr:hover td {
  background: transparent;
}

.capstone-brief .flow-path {
  margin: 1rem 0;
}

.capstone-brief-back {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--capstone-border);
}

.capstone-brief-back a {
  font-weight: 600;
  color: var(--capstone-accent);
  text-decoration: none;
}

.capstone-brief-back a:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .hub-page--capstone-detail .hub-panel--capstone {
    padding: 1.1rem 1rem 1.5rem;
  }

  .capstone-brief-toc__link {
    white-space: normal;
  }

  .capstone-brief .table-wrap th {
    width: 38%;
    white-space: normal;
  }
}

/* Also style docs-kv on public capstone pages */
.hub-page--capstone-detail .docs-kv {
  margin: 0.85rem 0 1.15rem;
  border: 1px solid var(--capstone-border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface-raised, #fff);
}

.hub-page--capstone-detail .docs-kv dl {
  margin: 0;
}

.hub-page--capstone-detail .docs-kv__row {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr);
  gap: 0.75rem 1rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--capstone-border);
}

.hub-page--capstone-detail .docs-kv__row:first-child {
  border-top: none;
}

.hub-page--capstone-detail .docs-kv__row dt {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--capstone-muted);
  line-height: 1.45;
}

.hub-page--capstone-detail .docs-kv__row dd {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--capstone-text);
  line-height: 1.5;
}

@media (max-width: 640px) {
  .hub-page--capstone-detail .docs-kv__row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}

.hub-prose--prd h2 + blockquote,
.hub-prose--prd h2 + p > strong {
  display: block;
}

.capstone-toc td:nth-child(4) {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.lesson-steps {
  margin: 1.5rem 0;
  padding: 0;
  list-style: none;
  counter-reset: lesson-step;
}

.lesson-steps li {
  counter-increment: lesson-step;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
}

.lesson-steps li:first-child {
  border-top: none;
  padding-top: 0;
}

.lesson-steps h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 600;
}

.lesson-steps p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.lesson-pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.lesson-callout {
  margin-top: 1.5rem;
}

@media (max-width: 768px) {
  .studio-course-hero {
    grid-template-columns: 1fr;
    gap: 1.35rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
  }

  .studio-course-hero-cta {
    width: 100%;
  }

  .studio-course-start {
    width: 100%;
    justify-content: center;
  }

  .studio-outcomes {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .studio-cert-row {
    flex-direction: column;
    gap: 0.65rem;
    margin-top: 1.25rem;
    padding: 1rem 1.05rem;
  }

  .hub-curriculum .hub-section-head {
    margin-bottom: 1rem;
  }
}

/* ── Partners & affiliations ── */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.splash-partners,
.hub-partners {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.hub-partners {
  margin-bottom: 1.5rem;
  padding: 1.25rem 0;
}

.partners-group {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.partners-label {
  margin: 0;
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-faint);
}

.partners-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 1.75rem;
}

.partners-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--text-muted);
  transition: color 0.15s, opacity 0.15s;
}

.partners-logo:hover {
  color: var(--text);
}

.partners-logo-img {
  display: block;
  height: 28px;
  width: auto;
  max-width: 32px;
  object-fit: contain;
}

.partners-logo:hover .partners-logo-img {
  opacity: 0.92;
}

.partners-logo-text {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: inherit;
}

.partners-logo--figma .partners-logo-text {
  font-weight: 700;
}

/* ── Week 2 teaching lesson (card layout) ── */

body.course-week-02 .sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding-bottom: 0.5rem;
}

body.course-week-02 .sidebar-nav .nav-link {
  margin: 0.1rem 0.75rem;
  padding: 0.6rem 0.95rem;
  line-height: 1.45;
}

body.course-week-02 .nav-part {
  padding: 0.85rem 1rem 0.5rem;
  margin-top: 0.25rem;
}

.content--teaching.content--week02-lesson {
  max-width: none;
}

.main > .content.content--week02-lesson {
  margin-top: 1rem;
}

.content--week02-lesson .week-hero--lesson h1 {
  font-family: var(--font-sans);
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 1.125rem;
  max-width: none;
  width: 100%;
}

.content--week02-lesson .week-hero--lesson .badge {
  margin-bottom: 1rem;
}

.week-hero-lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: var(--line);
  margin: 0;
  max-width: none;
  width: 100%;
}

.pd-lesson {
  display: block;
  padding: 0;
}

.pd-lesson-section {
  scroll-margin-top: 5.5rem;
  padding: var(--lesson-pad-y-lg) var(--lesson-pad-x);
  border-bottom: 1px solid var(--border);
}

.pd-lesson-section:last-of-type {
  border-bottom: none;
}

.pd-lesson-section--hub {
  padding-top: var(--lesson-pad-y);
  padding-bottom: var(--lesson-pad-y-lg);
}

.pd-lesson-section-title {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0 0 var(--space-3);
}

.pd-lesson-section-lead,
.pd-lesson-prose {
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0 0 var(--lesson-block-gap);
  max-width: none;
  width: 100%;
  font-size: 0.9875rem;
}

.pd-lesson-section-lead:last-child,
.pd-lesson-prose:last-child {
  margin-bottom: 0;
}

.pd-lesson-subhead {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-label);
  margin: 2rem 0 1rem;
}

.pd-lesson-kicker {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-label);
  margin: 2rem 0 0.75rem;
}

.pd-lesson-section-lead + .pd-lesson-kicker,
.pd-lesson-section-lead + .pd-lesson-card-grid,
.pd-lesson-section-lead + .pd-lesson-stack {
  margin-top: 0;
}

.pd-lesson-stack {
  display: flex;
  flex-direction: column;
  gap: var(--lesson-block-gap);
  margin-top: 0;
}

.pd-lesson-card-grid {
  display: grid;
  width: 100%;
  gap: 1.25rem;
  margin: 0 0 var(--lesson-block-gap);
  grid-template-columns: minmax(0, 1fr);
}

.pd-lesson-section > .pd-lesson-card-grid:last-child,
.pd-lesson-section > .pd-lesson-stack:last-child,
.pd-lesson-section > .pd-lesson-prose:last-child {
  margin-bottom: 0;
}

.pd-lesson-section .pd-lesson-card-grid + blockquote.pd-lesson-callout,
.pd-lesson-section .pd-lesson-card-grid + .pd-lesson-callout-group,
.pd-lesson-section .pd-lesson-stack + blockquote.pd-lesson-callout,
.pd-lesson-section .pd-lesson-stack + .pd-lesson-prose {
  margin-top: var(--lesson-block-gap);
}

.pd-lesson-section .pd-role-grid,
.pd-lesson-section .pd-process-rail {
  margin-top: 0.25rem;
  margin-bottom: var(--lesson-block-gap);
}

.pd-lesson-card-grid--2 {
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 640px) {
  .pd-lesson-card-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

@media (min-width: 560px) {
  .pd-lesson-card-grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .pd-lesson-card-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 640px) {
  .pd-lesson-card-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.pd-lesson-card-grid--2:has(.pd-lesson-card:only-child),
.pd-lesson-card-grid--3:has(.pd-lesson-card:only-child) {
  grid-template-columns: minmax(0, 22rem);
  justify-content: center;
}

.pd-lesson-card {
  padding: var(--space-5) var(--space-5);
  background: var(--surface-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  height: auto;
  min-height: 0;
  box-sizing: border-box;
  transition:
    border-color var(--duration-normal) var(--ease-out),
    box-shadow var(--duration-normal) var(--ease-out),
    transform var(--duration-normal) var(--ease-out);
}

.pd-lesson-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.pd-lesson-card--flush {
  margin-top: 0.5rem;
}

.pd-lesson-card-icon {
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 1.1rem;
  margin-bottom: 0.65rem;
  background: rgba(128, 128, 128, 0.1);
}

.pd-lesson-card--blue .pd-lesson-card-icon {
  background: rgba(59, 130, 246, 0.15);
}

.pd-lesson-card--teal .pd-lesson-card-icon {
  background: rgba(20, 184, 166, 0.15);
}

.pd-lesson-card--green .pd-lesson-card-icon {
  background: rgba(34, 197, 94, 0.15);
}

.pd-lesson-card--red .pd-lesson-card-icon {
  background: rgba(239, 68, 68, 0.12);
}

.pd-lesson-card--cyan .pd-lesson-card-icon {
  background: rgba(6, 182, 212, 0.15);
}

.pd-lesson-card--green .pd-lesson-card-title {
  color: #22c55e;
}

.pd-lesson-card--red .pd-lesson-card-title {
  color: #f87171;
}

.pd-lesson-card-title {
  font-size: 1.02rem;
  margin: 0 0 0.65rem;
  line-height: 1.3;
  color: var(--text);
}

.pd-lesson-card-body {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}

.pd-lesson-card-foot {
  margin: 1.1rem 0 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* Lesson pages: card grids fill the content column */
.content--teaching .pd-lesson-chapter-body {
  width: 100%;
  max-width: none;
}

.content--teaching .pd-lesson-block,
.content--teaching .pd-lesson-card-grid,
.content--teaching .pd-tool-card-stack,
.content--teaching .pd-route-card-stack,
.content--teaching .pd-lesson-callout-group {
  width: 100%;
}

.content--teaching .pd-lesson-section-lead,
.content--teaching .pd-lesson-chapter-title {
  max-width: none;
  width: 100%;
}

.content--teaching .pd-tool-card,
.content--teaching .pd-route-card {
  padding: 1.5rem 1.65rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-card);
  background: var(--surface-card);
  box-shadow: var(--shadow-card);
  box-sizing: border-box;
}

.content--teaching .pd-compare-card:hover,
.content--teaching .pd-tool-card:hover,
.content--teaching .pd-route-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.pd-analogy-pill,
.pd-formula-pill {
  display: block;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  background: var(--surface-inset);
  border: 1px solid var(--border-card);
  color: var(--text-secondary);
  line-height: 1.55;
}

.pd-lesson-steps {
  margin: 0;
  padding-left: 1.35rem;
  display: grid;
  gap: var(--space-3);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: none;
  width: 100%;
}

.pd-process-rail {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin: 0.25rem 0 1.5rem;
}

@media (min-width: 720px) {
  .pd-process-rail {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 960px) {
  .pd-process-rail {
    grid-template-columns: repeat(6, 1fr);
  }
}

.pd-process-step {
  padding: 1rem 0.75rem;
  text-align: center;
  background: var(--surface-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  box-sizing: border-box;
}

.pd-process-num {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.2rem;
}

.pd-process-title {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
}

.pd-process-roles {
  display: block;
  font-size: 0.68rem;
  color: var(--text-secondary);
  margin-top: 0.15rem;
}

/* Double Diamond · Week 1 orientation */
.pd-double-diamond {
  margin: var(--space-5) 0 var(--space-6);
  width: 100%;
  max-width: none;
}

.pd-double-diamond__inner {
  width: 100%;
  padding: var(--space-5);
  background: var(--surface-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  box-sizing: border-box;
}

.pd-double-diamond__stages {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: var(--space-2);
}

.pd-double-diamond__stage {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: var(--space-3) var(--space-2);
  border-radius: var(--radius);
  border: 1px solid var(--border-card);
  background: var(--surface-raised);
  box-sizing: border-box;
}

.pd-double-diamond__stage--problem {
  border-color: color-mix(in srgb, var(--accent) 28%, var(--border-card));
  background: color-mix(in srgb, var(--accent-soft) 55%, var(--surface-raised));
}

.pd-double-diamond__stage--solution {
  border-color: color-mix(in srgb, var(--success) 22%, var(--border-card));
  background: color-mix(in srgb, var(--success-soft) 70%, var(--surface-raised));
}

.pd-double-diamond__stage-name {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-align: center;
  line-height: var(--line-tight);
  color: var(--text);
}

.pd-double-diamond__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1;
  user-select: none;
}

.pd-double-diamond__bands {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
}

.pd-double-diamond__band {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius);
  box-sizing: border-box;
}

.pd-double-diamond__band--problem {
  background: color-mix(in srgb, var(--accent-soft) 80%, transparent);
  border: 1px dashed color-mix(in srgb, var(--accent) 35%, var(--border));
}

.pd-double-diamond__band--solution {
  background: color-mix(in srgb, var(--success-soft) 85%, transparent);
  border: 1px dashed color-mix(in srgb, var(--success) 35%, var(--border));
}

.pd-double-diamond__band-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.pd-double-diamond__caption {
  margin-top: var(--space-3);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: left;
  line-height: var(--line-snug);
}

@media (min-width: 720px) {
  .pd-double-diamond__inner {
    padding: var(--space-6);
  }

  .pd-double-diamond__stages {
    gap: var(--space-3);
  }

  .pd-double-diamond__stage {
    min-height: 3.25rem;
    padding: var(--space-4) var(--space-3);
  }

  .pd-double-diamond__stage-name {
    font-size: 0.9375rem;
  }

  .pd-double-diamond__arrow {
    font-size: 1rem;
    padding: 0 var(--space-1);
  }

  .pd-double-diamond__bands {
    gap: var(--space-4);
    margin-top: var(--space-5);
    padding-top: var(--space-5);
  }

  .pd-double-diamond__band {
    min-height: 2.5rem;
  }

  .pd-double-diamond__band-label {
    font-size: 0.75rem;
  }
}

@media (max-width: 559px) {
  .pd-double-diamond__inner {
    padding: var(--space-4);
  }

  .pd-double-diamond__stages {
    grid-template-columns: 1fr var(--space-2) 1fr;
    row-gap: var(--space-2);
  }

  .pd-double-diamond__stage:nth-child(1) { grid-column: 1; grid-row: 1; }
  .pd-double-diamond__arrow:nth-child(2) { grid-column: 2; grid-row: 1; }
  .pd-double-diamond__stage:nth-child(3) { grid-column: 3; grid-row: 1; }
  .pd-double-diamond__arrow:nth-child(4) { display: none; }
  .pd-double-diamond__stage:nth-child(5) { grid-column: 1; grid-row: 2; }
  .pd-double-diamond__arrow:nth-child(6) { grid-column: 2; grid-row: 2; }
  .pd-double-diamond__stage:nth-child(7) { grid-column: 3; grid-row: 2; }

  .pd-double-diamond__bands {
    grid-template-columns: 1fr;
    gap: var(--space-2);
    margin-top: var(--space-3);
    padding-top: var(--space-3);
  }
}

[data-theme="dark"] .pd-double-diamond__stage--problem {
  background: color-mix(in srgb, var(--accent-soft) 40%, var(--surface-inset));
}

[data-theme="dark"] .pd-double-diamond__stage--solution {
  background: color-mix(in srgb, var(--success-soft) 35%, var(--surface-inset));
}

[data-theme="dark"] .pd-double-diamond__band--problem {
  background: color-mix(in srgb, var(--accent-soft) 50%, transparent);
}

[data-theme="dark"] .pd-double-diamond__band--solution {
  background: color-mix(in srgb, var(--success-soft) 45%, transparent);
}

.content--teaching blockquote.pd-lesson-callout {
  margin: 0;
  padding: 1.35rem 1.5rem;
  border-left: none;
  border-radius: var(--radius-lg);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-style: normal;
  line-height: 1.65;
  max-width: none;
  width: 100%;
  box-sizing: border-box;
  box-shadow: var(--shadow);
}

.content--week02-lesson blockquote.pd-lesson-callout em {
  font-style: italic;
}

.pd-lesson-callout--accent {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: var(--text);
}

.pd-lesson-callout--lavender {
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.28);
  color: var(--text);
}

.pd-lesson-callout--green {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.32);
  color: var(--text);
}

[data-theme="dark"] .pd-lesson-callout--accent,
[data-theme="dark"] .pd-lesson-callout--lavender,
[data-theme="dark"] .pd-lesson-callout--green {
  color: var(--text);
}

.pd-lesson-callout--tan {
  background: rgba(180, 140, 90, 0.12);
  border: 1px solid rgba(140, 105, 60, 0.35);
  color: var(--text);
}

[data-theme="dark"] .pd-lesson-callout--tan {
  background: rgba(180, 140, 90, 0.2);
  border-color: rgba(210, 175, 120, 0.45);
  color: #faf8f4;
}

.pd-lesson-prose--after-stack {
  margin-top: 1.75rem;
}

.pd-role-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  margin-top: 0.25rem;
}

@media (min-width: 560px) {
  .pd-role-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .pd-role-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pd-role-card {
  padding: 1rem 1.15rem;
  background: var(--surface-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.pd-role-card h3 {
  font-size: 0.9rem;
  margin: 0 0 0.35rem;
  color: var(--text);
}

.pd-role-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.45;
}

#platforms .pd-lesson-section-lead {
  margin-bottom: 1.75rem;
}

.pd-platform-tabs {
  margin-top: 0.25rem;
  min-width: 0;
  max-width: 100%;
}

.pd-platform-tabs .pd-tab-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 719px) {
  .pd-platform-tabs .pd-tab-buttons {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.55rem;
    margin-bottom: 1.15rem;
    padding-bottom: 0.25rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .pd-platform-tabs .tab-btn {
    flex: 0 0 auto;
    width: min(11.5rem, 72vw);
    min-height: 3.65rem;
    height: auto;
    scroll-snap-align: start;
  }
}

@media (min-width: 720px) {
  .pd-platform-tabs .pd-tab-buttons {
    grid-template-columns: repeat(4, 1fr);
  }
}

.pd-platform-tabs .tab-btn {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  text-align: left;
  padding: 0.95rem 1rem;
  min-height: 4.5rem;
  height: 100%;
  box-sizing: border-box;
  background: var(--surface-raised);
  color: var(--text);
  border-color: var(--border-strong);
  min-width: 0;
}

.pd-tab-text {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.75rem;
  line-height: 1.35;
  padding-top: 0.1rem;
  min-width: 0;
}

.pd-tab-text strong {
  font-size: 0.875rem;
  line-height: 1.25;
  font-weight: 600;
  color: var(--text);
}

/* Subtitle: higher contrast than body muted (WCAG AA on raised surface) */
.pd-platform-tabs .tab-btn .pd-tab-text span {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.72rem;
  line-height: 1.35;
}

[data-theme="dark"] .pd-platform-tabs .tab-btn .pd-tab-text span {
  color: var(--text-secondary);
}

.pd-platform-tabs .tab-btn:hover {
  border-color: var(--accent);
}

.pd-platform-tabs .tab-btn:hover:not(.active) .pd-tab-text strong {
  color: var(--accent);
}

.pd-platform-tabs .tab-btn:hover:not(.active) .pd-tab-text span {
  color: var(--text);
}

[data-theme="dark"] .pd-platform-tabs .tab-btn:hover:not(.active) .pd-tab-text span {
  color: #f0f0f0;
}

/* Active tab: white title + high-contrast subtitle on brand fill */
.pd-platform-tabs .tab-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.pd-platform-tabs .tab-btn.active .pd-tab-text strong {
  color: #ffffff;
}

.pd-platform-tabs .tab-btn.active .pd-tab-text span {
  color: rgba(255, 255, 255, 0.92);
}

.pd-platform-tabs .tab-btn.active:hover .pd-tab-text strong,
.pd-platform-tabs .tab-btn.active:hover .pd-tab-text span {
  color: #ffffff;
}

.pd-platform-tabs .tab-btn.active:hover .pd-tab-text span {
  color: rgba(255, 255, 255, 0.92);
}

.pd-platform-tabs .tab-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.pd-platform-panel-head {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.pd-platform-panel-head h3 {
  margin: 0;
  font-size: 1.1rem;
}

.pd-platform-panel-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.pd-platform-panel-lead {
  margin: 0.15rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.pd-lesson-rule-card {
  padding: 1.5rem 1.65rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  height: 100%;
  box-sizing: border-box;
}

.pd-lesson-rule-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 1.15rem;
  margin-bottom: 1rem;
  background: rgba(128, 128, 128, 0.12);
}

.pd-lesson-rule-card--structural .pd-lesson-rule-icon {
  background: rgba(59, 130, 246, 0.18);
}

.pd-lesson-rule-card--visual .pd-lesson-rule-icon {
  background: rgba(245, 158, 11, 0.18);
}

.pd-lesson-rule-card .pd-lesson-kicker {
  margin: 1.35rem 0 0.45rem;
}

.pd-lesson-rule-card .pd-lesson-kicker:first-of-type {
  margin-top: 0.9rem;
}

.pd-lesson-rule-card .pd-lesson-card-body {
  line-height: 1.6;
}

.pd-lesson-rule-card .pd-lesson-analogy {
  margin-top: 0.15rem;
  line-height: 1.55;
}

.pd-lesson-rule-card--structural {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.25);
}

.pd-lesson-rule-card--visual {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.25);
}

.pd-lesson-rule-title {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  line-height: 1.3;
}

.pd-lesson-rule-card--structural .pd-lesson-rule-title {
  color: #60a5fa;
}

.pd-lesson-rule-card--visual .pd-lesson-rule-title {
  color: #fbbf24;
}

.pd-lesson-analogy {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
  font-style: italic;
  line-height: 1.45;
}

.pd-lesson-mini-card {
  padding: 1.35rem 1.5rem;
  background: rgba(128, 128, 128, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  height: 100%;
  box-sizing: border-box;
}

.pd-lesson-mini-card h4 {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  line-height: 1.3;
}

.pd-lesson-mini-card ul {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
  display: grid;
  gap: 0.6rem;
}

.pd-lesson-mini-card--wide {
  width: 100%;
  max-width: none;
}

.pd-lesson-mini-card--wide h4 {
  margin-bottom: 1rem;
}

.pd-lesson-mini-card--wide .pd-tag-row {
  margin-top: 0;
}

.pd-lesson-spec-grid {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: 1fr;
}

@media (min-width: 560px) {
  .pd-lesson-spec-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.pd-lesson-spec-card {
  padding: 0.75rem 0.9rem;
  background: rgba(128, 128, 128, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.pd-lesson-spec-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 0.35rem;
}

.pd-lesson-spec-card p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.pd-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 0.75rem;
  margin: 0;
}

.pd-tag {
  font-size: 0.8rem;
  padding: 0.45rem 0.8rem;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: rgba(128, 128, 128, 0.08);
  line-height: 1.3;
}

.pd-tag--alert {
  border-color: rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
}

[data-theme="light"] .pd-tag--alert {
  color: #b91c1c;
}

.pd-lesson-footer {
  padding: var(--lesson-pad-y-lg) var(--lesson-pad-x);
  border-top: 1px solid var(--border);
  background: var(--surface-inset);
}

[data-theme="dark"] .pd-lesson-footer {
  background: rgba(255, 255, 255, 0.02);
}

.pd-lesson-next {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.pd-lesson-next a {
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
}

.pd-lesson-next a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  :root {
    --lesson-pad-x: 1.25rem;
    --lesson-pad-y: 2rem;
    --lesson-pad-y-lg: 2.5rem;
    --lesson-pad-hero-y: 2rem;
    --lesson-pad-hero-bottom: 1.75rem;
    --lesson-block-gap: 1.75rem;
  }
}

.pd-platform-deep {
  padding: 0;
  min-width: 0;
}

.pd-platform-tabs--deep .tab-panel {
  padding: 2rem 1.75rem 2.5rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.pd-platform-intro {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 0.5rem;
}

.pd-featured-example {
  margin: 0.35rem 0 0.5rem;
  padding: 1.15rem 1.25rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface-card, rgba(255, 255, 255, 0.03));
}

.pd-featured-example-label {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.pd-featured-example-title {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

.pd-featured-example-job {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.pd-layer-stack {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  margin: 2rem 0 1.5rem;
}

.pd-layer-block {
  padding: 1.35rem 1.4rem 1.5rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface-card, rgba(255, 255, 255, 0.02));
}

.pd-layer-block--structural {
  border-left: 3px solid var(--part-2, #6ea8fe);
}

.pd-layer-block--visual {
  border-left: 3px solid var(--part-3, #c4a5f5);
}

.pd-layer-block-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 0.85rem;
}

.pd-layer-block-eyebrow {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

.pd-layer-block-side {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.pd-layer-block-meaning,
.pd-layer-block-artifact,
.pd-layer-block-why {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.pd-layer-example {
  margin: 0 0 1rem;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid var(--border);
}

[data-theme="light"] .pd-layer-example {
  background: rgba(0, 0, 0, 0.04);
}

.pd-layer-example-label {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
}

.pd-layer-example-body {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.pd-layer-block-checklist-title {
  margin: 1.15rem 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.pd-lesson-stack--spacious {
  gap: 1.75rem;
}

.pd-lesson-stack--spacious > * + * {
  margin-top: 0.25rem;
}

.content--week02-lesson .pd-lesson-section {
  padding-top: 2.25rem;
  padding-bottom: 2.25rem;
}

.content--week02-lesson .pd-platform-tabs--deep .tab-panel .pd-lesson-kicker {
  margin-top: 1.85rem;
}

.content--week02-lesson .pd-anatomy {
  margin: 1.75rem 0 0.5rem;
}

@media (max-width: 1100px) and (min-width: 769px) {
  .content--week02-lesson .pd-platform-tabs .pd-tab-buttons {
    grid-template-columns: repeat(2, 1fr);
  }

  .content--week02-lesson .pd-platform-tabs .tab-btn {
    min-height: 4rem;
  }

  .pd-anatomy-sketch--zones {
    max-width: 100%;
  }
}

@media (max-width: 900px) {
  .pd-platform-tabs--deep .tab-panel {
    padding: 1.35rem 1.15rem;
  }

  .pd-platform-deep-title {
    font-size: 1.05rem;
  }

  .pd-anatomy-table table {
    font-size: 0.8rem;
  }

  .pd-anatomy-table th,
  .pd-anatomy-table td {
    padding: 0.65rem 0.75rem;
  }
}

@media (max-width: 640px) {
  .pd-platform-tabs--deep .tab-panel {
    padding: 1.1rem 0.9rem;
  }

  .pd-platform-deep-head {
    gap: 0.65rem;
  }

  .pd-lesson-section {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .content--week02-lesson .week-hero--lesson {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .pd-anatomy-pair {
    font-size: 0.84rem;
    padding: 0.7rem 0.85rem;
  }

  .pd-rule-spec-grid {
    grid-template-columns: 1fr;
  }

  .pd-tag {
    font-size: 0.75rem;
    padding: 0.4rem 0.7rem;
  }
}

.pd-platform-tabs--deep .tab-panel .pd-lesson-kicker {
  margin-top: 1.5rem;
}

.pd-platform-tabs--deep .tab-panel .pd-lesson-kicker:first-of-type {
  margin-top: 1rem;
}

.pd-platform-tabs--deep .tab-panel .pd-lesson-prose {
  margin-bottom: 0.5rem;
}

.pd-platform-tabs--deep .tab-panel .pd-lesson-subhead {
  margin-top: 1.75rem;
}

.pd-platform-tabs--deep .tab-panel .pd-tag-row {
  margin-bottom: 0.25rem;
}

.pd-platform-tabs--deep .tab-panel .pd-tag-row + .pd-lesson-kicker {
  margin-top: 1.75rem;
}

.pd-platform-deep-head {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.pd-platform-deep-title {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
}

.pd-platform-deep-purpose {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.pd-lesson-subhead--structural {
  color: #4ade80;
}

.pd-lesson-subhead--visual {
  color: #fbbf24;
}

.pd-rule-spec-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  margin: 0 0 1rem;
}

@media (min-width: 560px) {
  .pd-rule-spec-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.pd-rule-spec-card {
  padding: 1rem 1.1rem;
  background: rgba(128, 128, 128, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.pd-rule-spec-card--structural {
  border-color: rgba(74, 222, 128, 0.25);
}

.pd-rule-spec-card--visual {
  border-color: rgba(251, 191, 36, 0.25);
}

.pd-rule-spec-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 0.35rem;
}

.pd-rule-spec-card--structural .pd-rule-spec-label {
  color: #4ade80;
}

.pd-rule-spec-card--visual .pd-rule-spec-label {
  color: #fbbf24;
}

[data-theme="light"] .pd-rule-spec-card--structural .pd-rule-spec-label {
  color: #15803d;
}

[data-theme="light"] .pd-rule-spec-card--visual .pd-rule-spec-label {
  color: #b45309;
}

.pd-rule-spec-card p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--text-muted);
}

/* Website structure anatomy (Week 2 · Website tab) */
.pd-anatomy {
  margin: 1.75rem 0 0.5rem;
  padding: 1.25rem 0 0.25rem;
  border-top: 1px solid var(--border);
}

.pd-anatomy > .pd-lesson-subhead {
  margin-top: 0;
}

.pd-anatomy-tree {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  counter-reset: anatomy-level;
}

.pd-anatomy-tree-level {
  counter-increment: anatomy-level;
  display: grid;
  gap: 0.25rem 0.85rem;
  padding: 0.85rem 1rem 0.85rem 2.75rem;
  position: relative;
  background: rgba(74, 222, 128, 0.06);
  border: 1px solid rgba(74, 222, 128, 0.22);
  border-radius: var(--radius-sm);
}

.pd-anatomy-tree-level::before {
  content: counter(anatomy-level);
  position: absolute;
  left: 0.85rem;
  top: 0.85rem;
  width: 1.4rem;
  height: 1.4rem;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #15803d;
  background: rgba(74, 222, 128, 0.2);
  border-radius: 999px;
}

[data-theme="dark"] .pd-anatomy-tree-level::before {
  color: #4ade80;
}

.pd-anatomy-tree-label {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
}

.pd-anatomy-tree-meta {
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.pd-anatomy-table {
  margin: 0 0 1rem;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}

.pd-anatomy-table table {
  min-width: 32rem;
}

.pd-anatomy {
  min-width: 0;
  max-width: 100%;
}

.pd-anatomy-hierarchy {
  margin-bottom: 1rem;
}

.pd-layout-reminder {
  margin: 0.75rem 0 1.25rem;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  line-height: 1.45;
  background: rgba(128, 128, 128, 0.06);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
}

.pd-anatomy .pd-lesson-callout {
  margin-top: 1.25rem;
  margin-bottom: 0;
}

.pd-anatomy .pd-lesson-callout code {
  font-size: 0.82em;
}

.pd-anatomy-pair {
  margin: 0.75rem 0 1rem;
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--text);
  background: rgba(128, 128, 128, 0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.pd-anatomy-sketch {
  margin: 0 0 1.15rem;
  max-width: 22rem;
  width: 100%;
  min-width: 0;
}

.pd-anatomy-sketch--zones {
  max-width: min(100%, 36rem);
}

.pd-anatomy-sketch-frame {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.65rem;
  border: 1px dashed rgba(74, 222, 128, 0.45);
  border-radius: var(--radius-sm);
  background: rgba(74, 222, 128, 0.04);
  overflow: hidden;
  min-width: 0;
  box-sizing: border-box;
}

.pd-anatomy-sketch-band,
.pd-anatomy-sketch-zone {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.2rem;
  padding: 0.5rem 0.65rem;
  min-height: 2.25rem;
  min-width: 0;
  background: rgba(128, 128, 128, 0.08);
  border: 1px solid var(--border);
  border-radius: 4px;
  box-sizing: border-box;
}

.pd-anatomy-sketch-band {
  width: 100%;
}

.pd-anatomy-sketch-band--tall {
  min-height: 4.25rem;
  padding-top: 0.65rem;
}

.pd-anatomy-sketch-label,
.pd-anatomy-sketch-hint {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.pd-anatomy-sketch-label {
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}

.pd-anatomy-sketch-hint {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.3;
  color: #15803d;
}

[data-theme="dark"] .pd-anatomy-sketch-hint {
  color: #4ade80;
}

.pd-anatomy-sketch-cap {
  margin: 0.4rem 0 0;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.pd-anatomy-sketch-zones-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 0.4rem;
  min-height: 5.75rem;
  min-width: 0;
  width: 100%;
}

.pd-anatomy-sketch-zone {
  width: auto;
  height: 100%;
}

.pd-anatomy-sketch-zone--grow {
  /* grow handled by grid middle column */
}

@media (max-width: 560px) {
  .pd-anatomy-sketch,
  .pd-anatomy-sketch--zones {
    max-width: none;
  }

  .pd-anatomy-sketch-zones-row {
    grid-template-columns: 1fr;
    min-height: 0;
  }
}

/* ── Week 3 visual structure lesson ── */

body.course-week-03 .sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding-bottom: 0.5rem;
}

body.course-week-03 .sidebar-nav .nav-link {
  margin: 0.1rem 0.75rem;
  padding: 0.6rem 0.95rem;
  line-height: 1.45;
}

body.course-week-03 .nav-part,
body.course-week-04 .nav-part,
body.course-week-05 .nav-part {
  padding: 0.85rem 1rem 0.5rem;
  margin-top: 0.25rem;
}

.content--week03-lesson > .section {
  padding: 2.75rem clamp(1.5rem, 5vw, 3.25rem);
}

.content--week03-lesson > .week-hero {
  padding: 2.75rem clamp(1.5rem, 5vw, 3.25rem) 2.5rem;
}

.content--week03-lesson .pd-lesson-section-title {
  margin-bottom: 0.85rem;
}

.content--week03-lesson .pd-lesson-chapter-label {
  margin-bottom: 0.65rem;
}

.content--week03-lesson .pd-lesson-chapter-title {
  margin-bottom: 1.25rem;
}

.content--week03-lesson .pd-lesson-section-lead {
  margin-bottom: 2.25rem;
}

.content--week03-lesson .pd-lesson-section-lead + .pd-lesson-kicker,
.content--week03-lesson .pd-lesson-section-lead + .pd-lesson-chapter-body > .pd-lesson-kicker:first-child {
  margin-top: 0;
}

.content--week03-lesson .pd-lesson-kicker {
  margin: 2.5rem 0 1rem;
}

.content--week03-lesson .pd-lesson-card-grid + .pd-lesson-kicker {
  margin-top: 2.75rem;
}

.content--week03-lesson .pd-lesson-card-grid {
  gap: 1.5rem;
}

@media (min-width: 720px) {
  .content--week03-lesson .pd-lesson-card-grid {
    gap: 1.75rem;
  }
}

.content--week03-lesson .pd-lesson-card {
  padding: 1.6rem 1.75rem;
}

.content--week03-lesson .pd-lesson-card-icon {
  margin-bottom: 1rem;
}

.content--week03-lesson .pd-lesson-card-title {
  margin: 0 0 0.85rem;
  line-height: 1.35;
}

.content--week03-lesson .pd-lesson-card-body {
  line-height: 1.65;
}

.content--week03-lesson .pd-lesson-stack {
  gap: 2.25rem;
  margin-top: 0.5rem;
}

.content--week03-lesson .pd-lesson-stack > .pd-lesson-block {
  margin: 0;
}

.content--week03-lesson .pd-lesson-block {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.content--week03-lesson .pd-lesson-block .pd-lesson-kicker {
  margin: 0;
}

.content--week03-lesson .pd-lesson-chapter-body {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

.content--week03-lesson .pd-lesson-chapter-body > .pd-lesson-block {
  gap: 1rem;
}

.content--week03-lesson .pd-lesson-callout-group {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 0.25rem;
}

.content--week03-lesson blockquote.pd-lesson-callout {
  padding: 1.5rem 1.75rem;
  margin: 0;
}

.content--week03-lesson .pd-lesson-card-grid + blockquote.pd-lesson-callout,
.content--week03-lesson .pd-lesson-card-grid + .pd-lesson-callout-group {
  margin-top: 2.25rem;
}

.content--week03-lesson .pd-step-list + blockquote.pd-lesson-callout {
  margin-top: 2.25rem;
}

.content--week03-lesson .pd-lesson-prose {
  margin-top: 2rem;
  margin-bottom: 0;
}

.pd-lesson-chapter-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.5rem;
}

.pd-lesson-chapter-title {
  font-family: var(--font-sans);
  font-size: clamp(1.35rem, 2.8vw, 1.75rem);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.pd-chapter-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.pd-chapter-nav--path {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.65rem;
}

.pd-chapter-nav-label {
  margin: 0.35rem 0 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-label);
}

.pd-chapter-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.pd-chapter-chip--stretch {
  border-style: dashed;
  color: var(--text-secondary);
}

.pd-chapter-chip--frame {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border-strong));
}

.pd-chapter-chip--annotate {
  border-style: dashed;
  color: var(--text-secondary);
}

.pd-chapter-chip--know {
  border-style: dotted;
  color: var(--text-label);
}

.pd-lesson-tier {
  margin: 0.2rem 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pd-lesson-tier--frame {
  color: var(--accent);
}

.pd-lesson-tier--annotate {
  color: var(--text-secondary);
}

.pd-lesson-tier--know {
  color: var(--text-label);
}

.content--week03-lesson .pd-chapter-nav--path .pd-chapter-nav-label {
  margin-top: 0.85rem;
}

.content--week03-lesson .pd-chapter-nav--path .pd-chapter-nav-label:first-child {
  margin-top: 0.35rem;
}

.pd-chapter-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1rem;
  border-radius: 99px;
  border: 1px solid var(--border-strong);
  background: var(--surface-raised);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  line-height: 1.3;
  transition: border-color 0.15s, background 0.15s;
}

.pd-chapter-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.pd-chapter-chip--figma {
  border-style: dashed;
  color: var(--text-secondary);
}

[data-theme="dark"] .pd-chapter-chip {
  background: rgba(255, 255, 255, 0.04);
}

.content--week03-lesson .pd-lesson-card-body,
.content--week03-lesson .pd-compare-card li,
.content--week03-lesson .pd-compare-card--prose p,
.content--week03-lesson .pd-step-body p,
.content--week03-lesson .pd-spacing-label,
.content--week03-lesson .pd-type-spec,
.content--week04-lesson .pd-lesson-card-body,
.content--week04-lesson .pd-compare-card li,
.content--week04-lesson .pd-compare-card--prose p,
.content--week04-lesson .pd-step-body p,
.content--week04-lesson .pd-method-desc,
.content--week04-lesson .pd-method-how,
.content--week04-lesson .pd-strength-limit li,
.content--week04-lesson .pd-lesson-prose,
.content--week04-lesson .pd-research-table {
  color: var(--text-secondary);
}

[data-theme="dark"] .content--week03-lesson .pd-lesson-card-body,
[data-theme="dark"] .content--week03-lesson .pd-compare-card li,
[data-theme="dark"] .content--week03-lesson .pd-compare-card--prose p,
[data-theme="dark"] .content--week03-lesson .pd-step-body p,
[data-theme="dark"] .content--week03-lesson .pd-spacing-label,
[data-theme="dark"] .content--week03-lesson .pd-type-spec,
[data-theme="dark"] .content--week04-lesson .pd-lesson-card-body,
[data-theme="dark"] .content--week04-lesson .pd-compare-card li,
[data-theme="dark"] .content--week04-lesson .pd-compare-card--prose p,
[data-theme="dark"] .content--week04-lesson .pd-step-body p,
[data-theme="dark"] .content--week04-lesson .pd-method-desc,
[data-theme="dark"] .content--week04-lesson .pd-method-how,
[data-theme="dark"] .content--week04-lesson .pd-strength-limit li,
[data-theme="dark"] .content--week04-lesson .pd-lesson-prose,
[data-theme="dark"] .content--week04-lesson .pd-research-table {
  color: var(--text-secondary);
}

.pd-compare-card {
  padding: 1.5rem 1.65rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  height: auto;
  min-height: 0;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.content--week03-lesson .pd-compare-card {
  padding: 1.6rem 1.75rem;
}

.pd-compare-card h4 {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
}

.content--week03-lesson .pd-compare-card h4 {
  margin-bottom: 1rem;
}

.pd-compare-card ul {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.55rem;
  font-size: 0.875rem;
  line-height: 1.55;
}

.content--week03-lesson .pd-compare-card ul {
  gap: 0.65rem;
  padding-left: 1.35rem;
}

.pd-compare-card--good {
  background: rgba(34, 197, 94, 0.06);
  border: 1px solid rgba(34, 197, 94, 0.35);
}

.pd-compare-card--good h4 {
  color: #16a34a;
}

[data-theme="dark"] .pd-compare-card--good h4 {
  color: #4ade80;
}

.pd-compare-card--bad {
  background: rgba(239, 68, 68, 0.06);
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.pd-compare-card--bad h4 {
  color: #dc2626;
}

[data-theme="dark"] .pd-compare-card--bad h4 {
  color: #f87171;
}

.pd-step-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-4);
  max-width: none;
  width: 100%;
}

.content--week03-lesson .pd-step-list {
  gap: var(--space-5);
  max-width: none;
}

.pd-step-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.content--week03-lesson .pd-step-item {
  gap: 1.15rem;
}

.pd-step-num {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}

.pd-step-body strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
  color: var(--text);
}

.pd-step-body p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
}

.pd-spacing-scale {
  display: grid;
  gap: var(--space-3);
  margin: var(--space-2) 0 0;
  max-width: none;
  width: 100%;
}

.content--week03-lesson .pd-spacing-scale {
  gap: 0.85rem;
  margin: 0;
  padding: 1.35rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

[data-theme="dark"] .content--week03-lesson .pd-spacing-scale {
  background: rgba(255, 255, 255, 0.03);
}

.pd-spacing-row {
  display: grid;
  grid-template-columns: 2.5rem 1fr minmax(0, 12rem);
  gap: 0.85rem;
  align-items: center;
}

.pd-spacing-val {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  text-align: right;
}

.pd-spacing-bar {
  display: block;
  height: 0.65rem;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.7), rgba(34, 197, 94, 0.7));
  width: var(--pd-bar, 50%);
  min-width: 1.5rem;
}

.pd-spacing-label {
  font-size: 0.8rem;
  line-height: 1.4;
}

.pd-type-scale {
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: none;
  width: 100%;
  box-shadow: var(--shadow-card);
}

.content--week03-lesson .pd-type-scale {
  max-width: none;
  width: 100%;
}

.pd-type-row {
  display: grid;
  grid-template-columns: 5.5rem 1fr minmax(0, 10rem);
  gap: 1rem;
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}

.content--week03-lesson .pd-type-row {
  padding: 1.1rem 1.5rem;
  gap: 1.15rem;
}

.pd-type-row:last-child {
  border-bottom: none;
}

.pd-type-role {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.pd-type-example {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  text-align: right;
}

.pd-type-spec {
  font-size: 0.8rem;
}

@media (max-width: 640px) {
  .pd-spacing-row {
    grid-template-columns: 2rem 1fr;
  }

  .pd-spacing-label {
    grid-column: 1 / -1;
    padding-left: 3.35rem;
  }

  .pd-type-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .content--week03-lesson .pd-type-row {
    padding: 1rem 1.25rem;
    gap: 0.4rem;
  }

  .pd-type-example {
    text-align: left;
  }
}

/* Week 3 card title contrast (coloured headings) */
.content--week03-lesson .pd-lesson-card--blue .pd-lesson-card-title {
  color: #2563eb;
}

.content--week03-lesson .pd-lesson-card--teal .pd-lesson-card-title {
  color: #0d9488;
}

.content--week03-lesson .pd-lesson-card--green .pd-lesson-card-title {
  color: #16a34a;
}

.content--week03-lesson .pd-lesson-card--orange .pd-lesson-card-title {
  color: #ea580c;
}

.content--week03-lesson .pd-lesson-card--purple .pd-lesson-card-title {
  color: #7c3aed;
}

.content--week03-lesson .pd-lesson-card--red .pd-lesson-card-title {
  color: #dc2626;
}

[data-theme="dark"] .content--week03-lesson .pd-lesson-card--blue .pd-lesson-card-title {
  color: #60a5fa;
}

[data-theme="dark"] .content--week03-lesson .pd-lesson-card--teal .pd-lesson-card-title {
  color: #2dd4bf;
}

[data-theme="dark"] .content--week03-lesson .pd-lesson-card--green .pd-lesson-card-title {
  color: #4ade80;
}

[data-theme="dark"] .content--week03-lesson .pd-lesson-card--orange .pd-lesson-card-title {
  color: #fb923c;
}

[data-theme="dark"] .content--week03-lesson .pd-lesson-card--purple .pd-lesson-card-title {
  color: #a78bfa;
}

[data-theme="dark"] .content--week03-lesson .pd-lesson-card--red .pd-lesson-card-title {
  color: #f87171;
}

.content--week03-lesson .pd-lesson-card-body code {
  font-family: var(--font-mono);
  font-size: 0.8em;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: rgba(128, 128, 128, 0.12);
}

.pd-rule-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-5);
  max-width: none;
  width: 100%;
}

.pd-rule-item {
  display: flex;
  gap: 1.15rem;
  align-items: flex-start;
}

.pd-rule-num {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}

.pd-rule-body strong {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
  color: var(--text);
}

.pd-rule-body p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

[data-theme="dark"] .pd-rule-body p {
  color: var(--text-secondary);
}

/* Week 3. elevation ladder (Chapter 6) */
.pd-elevation-ladder {
  width: 100%;
  margin: 0;
  padding: 1.5rem 1.25rem 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-card);
  background: var(--surface-inset);
  box-sizing: border-box;
}

.pd-elevation-ladder__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .pd-elevation-ladder__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
  }
}

.pd-elevation-ladder__cell {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.65rem;
  text-align: center;
}

.pd-elevation-ladder__canvas {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 5.5rem;
  padding: 1rem 0.75rem;
  border-radius: var(--radius);
  background: #e8e6e1;
  box-sizing: border-box;
}

[data-theme="dark"] .pd-elevation-ladder__canvas {
  background: #1a1a1e;
}

.pd-elevation-ladder__canvas--scrim {
  position: relative;
  background: #3a3a42;
}

[data-theme="dark"] .pd-elevation-ladder__canvas--scrim {
  background: #0a0a0c;
}

.pd-elevation-ladder__panel {
  width: 72%;
  max-width: 7.5rem;
  height: 2.75rem;
  border-radius: var(--radius-sm);
  background: var(--surface-raised);
  box-sizing: border-box;
}

.pd-elevation-ladder__panel--0 {
  width: 88%;
  max-width: none;
  border: 1px solid var(--border-strong);
  box-shadow: none;
}

.pd-elevation-ladder__panel--1 {
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.pd-elevation-ladder__panel--2 {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.pd-elevation-ladder__panel--3 {
  position: relative;
  z-index: 1;
  width: 64%;
  height: 3rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .pd-elevation-ladder__panel--1 {
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

[data-theme="dark"] .pd-elevation-ladder__panel--2 {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.55);
}

[data-theme="dark"] .pd-elevation-ladder__panel--3 {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.65);
}

.pd-elevation-ladder__level {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-label);
}

.pd-elevation-ladder__hint {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--text-secondary);
}

.pd-elevation-ladder__caption {
  margin: 1.25rem 0 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-secondary);
  text-align: left;
}

.pd-elevation-ladder__caption code {
  font-size: 0.8em;
}

.pd-figma-ds {
  display: grid;
  gap: 1.25rem;
  width: 100%;
}

.pd-figma-ds__menu {
  margin: 0;
  padding: 1rem 1.1rem 1.1rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-card);
  background: #1e1e1e;
  color: #f5f5f5;
  box-sizing: border-box;
}

.pd-figma-ds__menu-kicker {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #b3b3b3;
}

.pd-figma-ds__menu-list {
  list-style: none;
  margin: 0;
  padding: 0.15rem;
  border-radius: 8px;
  background: #2c2c2c;
}

.pd-figma-ds__menu-list li {
  margin: 0;
  padding: 0.45rem 0.7rem;
  font-size: 0.875rem;
  line-height: 1.3;
  color: #e6e6e6;
  border-radius: 6px;
}

.pd-figma-ds__menu-list-active {
  background: #0d99ff;
  color: #fff;
  font-weight: 600;
}

.pd-figma-ds__menu-note {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #c8c8c8;
}

.pd-figma-ds__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .pd-figma-ds__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1040px) {
  .pd-figma-ds__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.pd-figma-ds__card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}

.pd-figma-ds__preview {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 4.75rem;
  padding: 1rem 0.75rem;
  border-radius: var(--radius);
  background: #e8e6e1;
  box-sizing: border-box;
}

[data-theme="dark"] .pd-figma-ds__preview {
  background: #1a1a1e;
}

.pd-figma-ds__preview--scrim {
  background: #3a3a42;
}

[data-theme="dark"] .pd-figma-ds__preview--scrim {
  background: #0a0a0c;
}

.pd-figma-ds__tile {
  width: 72%;
  max-width: 7.5rem;
}

.pd-figma-ds__level {
  margin: 0.15rem 0 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-label);
}

.pd-figma-ds__hint {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--text-secondary);
}

.pd-figma-ds__inspector {
  margin-top: 0.15rem;
  padding: 0.75rem 0.8rem 0.85rem;
  border-radius: 10px;
  background: #2c2c2c;
  color: #f3f3f3;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  box-sizing: border-box;
}

.pd-figma-ds__title {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
}

.pd-figma-ds__fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
}

.pd-figma-ds__field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  background: #1e1e1e;
}

.pd-figma-ds__key {
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  color: #b3b3b3;
}

.pd-figma-ds__val {
  font-size: 0.8rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #fff;
}

.pd-figma-ds__color {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.45rem;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  background: #1e1e1e;
}

.pd-figma-ds__swatch {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 3px;
  background: #000;
  border: 1px solid #555;
  flex-shrink: 0;
}

.pd-figma-ds__color code {
  flex: 1;
  font-size: 0.75rem;
  color: #e8e8e8;
}

.pd-figma-ds__pct {
  font-size: 0.8rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.pd-figma-ds__style {
  margin: 0.55rem 0 0;
  font-size: 0.72rem;
  line-height: 1.4;
  color: #c8c8c8;
}

.pd-figma-ds__style code {
  font-size: 0.7rem;
  color: #9cdcfe;
}

.pd-figma-ds__empty {
  margin: 0;
  padding: 0.4rem 0.5rem;
  border-radius: 6px;
  background: #1e1e1e;
  font-size: 0.8rem;
  font-weight: 600;
}

.pd-figma-ds__empty-hint {
  margin: 0.45rem 0 0;
  font-size: 0.72rem;
  line-height: 1.4;
  color: #c8c8c8;
}

.pd-token-grid {
  display: grid;
  width: 100%;
  gap: 1.25rem;
  max-width: none;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 640px) {
  .pd-token-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.pd-token-group {
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
  box-sizing: border-box;
}

[data-theme="dark"] .pd-token-group {
  background: rgba(255, 255, 255, 0.03);
}

.pd-token-group-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.65rem;
}

.pd-token-group--success .pd-token-group-label {
  color: #16a34a;
}

.pd-token-group--error .pd-token-group-label {
  color: #dc2626;
}

.pd-token-group--warning .pd-token-group-label {
  color: #ea580c;
}

.pd-token-group--info .pd-token-group-label {
  color: #2563eb;
}

[data-theme="dark"] .pd-token-group--success .pd-token-group-label {
  color: #4ade80;
}

[data-theme="dark"] .pd-token-group--error .pd-token-group-label {
  color: #f87171;
}

[data-theme="dark"] .pd-token-group--warning .pd-token-group-label {
  color: #fb923c;
}

[data-theme="dark"] .pd-token-group--info .pd-token-group-label {
  color: #60a5fa;
}

.pd-token-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pd-token-pill {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.4rem 0.65rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface-raised);
  color: var(--text);
  line-height: 1.3;
}

.pd-token-group--success .pd-token-pill {
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.1);
}

.pd-token-group--error .pd-token-pill {
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.1);
}

.pd-token-group--warning .pd-token-pill {
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.1);
}

.pd-token-group--info .pd-token-pill {
  border-color: rgba(59, 130, 246, 0.35);
  background: rgba(59, 130, 246, 0.1);
}

.pd-icon-meaning-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  max-width: none;
  width: 100%;
}

@media (min-width: 640px) {
  .pd-icon-meaning-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 900px) {
  .pd-icon-meaning-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.pd-icon-meaning-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.1rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(128, 128, 128, 0.05);
  text-align: center;
}

[data-theme="dark"] .pd-icon-meaning-cell {
  background: rgba(255, 255, 255, 0.03);
}

.pd-icon-meaning-glyph {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 1.35rem;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--text);
}

.pd-icon-meaning-svg {
  display: block;
  width: 1.35rem;
  height: 1.35rem;
  color: var(--text);
}

.pd-icon-meaning-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.25;
}

.pd-platform-rules {
  padding-top: 0.25rem;
}

.pd-platform-rules + .pd-platform-rules {
  margin-top: 0.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.pd-platform-rules-title {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 1.25rem;
}

.content--week03-lesson .pd-platform-rules .pd-rule-list {
  max-width: none;
}

/* Week 4. user research (spacing aligned with week 3 visual structure lesson) */
.content--week04-lesson > .section,
.content--week04-lesson > .week-hero {
  padding: 2.75rem clamp(1.5rem, 5vw, 3.25rem);
}

.content--week04-lesson .pd-lesson-section-title {
  margin-bottom: 0.85rem;
}

.content--week04-lesson .pd-lesson-chapter-label {
  margin-bottom: 0.5rem;
}

.content--week04-lesson .pd-lesson-chapter-title {
  margin-bottom: 0.75rem;
}

.content--week04-lesson .pd-lesson-section-lead {
  margin-bottom: 1.75rem;
}

.content--week04-lesson .pd-lesson-kicker {
  margin: 0 0 1rem;
}

.content--week04-lesson .pd-lesson-block {
  margin-bottom: 2rem;
}

.content--week04-lesson .pd-lesson-block .pd-lesson-kicker {
  margin-bottom: 1.1rem;
}

.content--week04-lesson .pd-lesson-chapter-body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.content--week04-lesson .pd-lesson-chapter-body > .pd-lesson-block {
  margin-bottom: 2.25rem;
}

.content--week04-lesson .pd-lesson-callout-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.5rem;
}

.content--week04-lesson blockquote.pd-lesson-callout {
  max-width: none;
  margin: 1.25rem 0 0;
}

.content--week04-lesson .pd-lesson-card-grid {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 0.25rem;
}

@media (min-width: 720px) {
  .content--week04-lesson .pd-lesson-card-grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .content--week04-lesson .pd-lesson-card-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.content--week04-lesson .pd-lesson-card {
  padding: 1.5rem 1.65rem;
  height: 100%;
  box-sizing: border-box;
}

.content--week04-lesson .pd-lesson-stack--compare {
  display: grid;
  gap: var(--space-4);
  max-width: none;
  width: 100%;
}

.content--week04-lesson .pd-compare-card--prose p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
}

.content--week04-lesson .pd-compare-card {
  padding: 1.6rem 1.75rem;
}

.content--week04-lesson .pd-compare-card h4 {
  margin-bottom: 0.85rem;
}

.content--week04-lesson .pd-method-stack {
  display: grid;
  gap: 1.35rem;
}

.content--week04-lesson .pd-method-card {
  padding: 1.65rem 1.85rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}

[data-theme="dark"] .content--week04-lesson .pd-method-card {
  background: rgba(255, 255, 255, 0.03);
}

.content--week04-lesson .pd-method-card-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.content--week04-lesson .pd-method-icon {
  font-size: 1.15rem;
  line-height: 1;
}

.content--week04-lesson .pd-method-title {
  margin: 0;
  font-size: 1.05rem;
}

.content--week04-lesson .pd-tag-row--methods {
  margin-bottom: 1rem;
}

.content--week04-lesson .pd-tag--qualitative {
  background: rgba(147, 51, 234, 0.15);
  color: #7c3aed;
  border: 1px solid rgba(147, 51, 234, 0.35);
}

.content--week04-lesson .pd-tag--quantitative {
  background: rgba(59, 130, 246, 0.15);
  color: #2563eb;
  border: 1px solid rgba(59, 130, 246, 0.35);
}

.content--week04-lesson .pd-tag--attitudinal {
  background: rgba(249, 115, 22, 0.15);
  color: #c2410c;
  border: 1px solid rgba(249, 115, 22, 0.35);
}

.content--week04-lesson .pd-tag--behavioural {
  background: rgba(20, 184, 166, 0.15);
  color: #0f766e;
  border: 1px solid rgba(20, 184, 166, 0.35);
}

.content--week04-lesson .pd-tag--generative {
  background: rgba(34, 197, 94, 0.15);
  color: #15803d;
  border: 1px solid rgba(34, 197, 94, 0.35);
}

.content--week04-lesson .pd-tag--evaluative {
  background: rgba(244, 63, 94, 0.12);
  color: #be123c;
  border: 1px solid rgba(244, 63, 94, 0.35);
}

[data-theme="dark"] .content--week04-lesson .pd-tag--qualitative {
  color: #c4b5fd;
}

[data-theme="dark"] .content--week04-lesson .pd-tag--quantitative {
  color: #93c5fd;
}

[data-theme="dark"] .content--week04-lesson .pd-tag--attitudinal {
  color: #fdba74;
}

[data-theme="dark"] .content--week04-lesson .pd-tag--behavioural {
  color: #5eead4;
}

[data-theme="dark"] .content--week04-lesson .pd-tag--generative {
  color: #86efac;
}

[data-theme="dark"] .content--week04-lesson .pd-tag--evaluative {
  color: #fda4af;
}

.content--week04-lesson .pd-method-desc {
  margin: 0 0 1.35rem;
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: none;
  width: 100%;
}

.content--week04-lesson .pd-method-kicker {
  margin: 0 0 0.65rem;
  padding-top: 0.35rem;
  border-top: 1px solid var(--border);
}

.content--week04-lesson .pd-method-how {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.6;
  max-width: none;
  width: 100%;
}

.content--week04-lesson .pd-method-card .pd-lesson-block {
  margin: 1.5rem 0 0;
}

.content--week04-lesson .pd-method-card--ref {
  padding: 1.35rem 1.65rem;
}

.content--week04-lesson .pd-method-card--ref .pd-method-desc {
  margin-bottom: 0;
}

.content--week04-lesson .pd-strength-limit-grid {
  display: grid;
  gap: 1rem;
  margin-top: 0.25rem;
}

@media (min-width: 640px) {
  .content--week04-lesson .pd-strength-limit-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.content--week04-lesson .pd-strength-limit {
  padding: 1.35rem 1.5rem;
  border-radius: var(--radius);
}

.content--week04-lesson .pd-strength-limit h4 {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
}

.content--week04-lesson .pd-strength-limit ul {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.55;
}

.content--week04-lesson .pd-strength-limit--strength {
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.35);
}

.content--week04-lesson .pd-strength-limit--strength h4 {
  color: #16a34a;
}

[data-theme="dark"] .content--week04-lesson .pd-strength-limit--strength h4 {
  color: #4ade80;
}

.content--week04-lesson .pd-strength-limit--limit {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.content--week04-lesson .pd-strength-limit--limit h4 {
  color: #dc2626;
}

[data-theme="dark"] .content--week04-lesson .pd-strength-limit--limit h4 {
  color: #f87171;
}

.content--week04-lesson .pd-research-table-wrap {
  overflow-x: auto;
  margin-top: 0.25rem;
}

.content--week04-lesson .pd-research-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  line-height: 1.5;
}

.content--week04-lesson .pd-research-table th,
.content--week04-lesson .pd-research-table td {
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  text-align: left;
}

.content--week04-lesson .pd-research-table th {
  background: var(--surface);
  font-weight: 600;
  color: var(--text);
}

.content--week04-lesson .pd-research-table--form td:first-child {
  width: 2.25rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.content--week04-lesson .pd-research-table--form td:nth-child(3) {
  white-space: nowrap;
  font-weight: 600;
  font-size: 0.8rem;
}

.content--week04-lesson .pd-research-notes {
  margin: 0.85rem 0 1.25rem;
}

.content--week04-lesson .pd-research-notes .pd-role-card {
  margin: 0;
}

.content--week04-lesson .pd-research-notes .pd-role-body + .pd-role-body {
  margin-top: 0.55rem;
  color: var(--muted);
}

@media (min-width: 900px) {
  .content--week04-lesson .pd-research-notes {
    grid-template-columns: repeat(3, 1fr);
  }
}

.content--week04-lesson .pd-step-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  gap: 0.85rem;
  max-width: none;
  width: 100%;
}

.content--week04-lesson .pd-step-item {
  gap: 1rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

[data-theme="dark"] .content--week04-lesson .pd-step-item {
  background: rgba(255, 255, 255, 0.03);
}

.content--week04-lesson .pd-lesson-prose {
  margin: 0 0 0.85rem;
  padding-left: 1.25rem;
  max-width: none;
  width: 100%;
  line-height: 1.65;
  font-size: 0.9rem;
}

.content--week04-lesson .pd-lesson-prose li + li {
  margin-top: 0.55rem;
}

.content--week04-lesson .pd-role-stack,
.content--week04-lesson .pd-situation-card {
  display: grid;
  gap: 1.15rem;
}

.content--week04-lesson .pd-role-card,
.content--week04-lesson .pd-situation-card {
  padding: 1.35rem 1.65rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}

[data-theme="dark"] .content--week04-lesson .pd-role-card,
[data-theme="dark"] .content--week04-lesson .pd-situation-card {
  background: rgba(255, 255, 255, 0.03);
}

.content--week04-lesson .pd-role-card-head,
.content--week04-lesson .pd-situation-card .pd-method-card-head {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}

.content--week04-lesson .pd-role-icon {
  font-size: 1.1rem;
  line-height: 1.4;
}

.content--week04-lesson .pd-role-title {
  margin: 0;
  font-size: 1rem;
}

.content--week04-lesson .pd-role-body {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: none;
  width: 100%;
}

.content--week04-lesson .pd-research-timeline {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.25rem;
}

@media (min-width: 720px) {
  .content--week04-lesson .pd-research-timeline {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .content--week04-lesson .pd-research-timeline {
    grid-template-columns: repeat(6, 1fr);
  }
}

.content--week04-lesson .pd-research-timeline-phase {
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}

[data-theme="dark"] .content--week04-lesson .pd-research-timeline-phase {
  background: rgba(255, 255, 255, 0.03);
}

.content--week04-lesson .pd-research-timeline-num {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.content--week04-lesson .pd-research-timeline-title {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.content--week04-lesson .pd-research-timeline-job {
  display: inline-block;
  margin: 0 0 0.45rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.content--week04-lesson .pd-research-timeline-job--generative {
  background: rgba(34, 197, 94, 0.15);
  color: #15803d;
}

.content--week04-lesson .pd-research-timeline-job--evaluative {
  background: rgba(244, 63, 94, 0.12);
  color: #be123c;
}

.content--week04-lesson .pd-research-timeline-job--mix {
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
}

.content--week04-lesson .pd-research-timeline-methods {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.pd-geneval {
  display: grid;
  gap: 1rem;
  width: 100%;
}

@media (min-width: 720px) {
  .pd-geneval {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    align-items: stretch;
  }
}

.pd-geneval__col {
  margin: 0;
  padding: 1.25rem 1.3rem 1.35rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-card);
  background: var(--surface);
  box-sizing: border-box;
}

.pd-geneval__col--gen {
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.06);
}

.pd-geneval__col--eval {
  border-color: rgba(244, 63, 94, 0.28);
  background: rgba(244, 63, 94, 0.05);
}

[data-theme="dark"] .pd-geneval__col--gen {
  background: rgba(34, 197, 94, 0.1);
}

[data-theme="dark"] .pd-geneval__col--eval {
  background: rgba(244, 63, 94, 0.08);
}

.pd-geneval__kicker {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pd-geneval__col--gen .pd-geneval__kicker {
  color: #15803d;
}

.pd-geneval__col--eval .pd-geneval__kicker {
  color: #be123c;
}

.pd-geneval__title {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
}

.pd-geneval__job {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
}

.pd-geneval__when {
  margin: 0 0 0.85rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.pd-geneval__list {
  margin: 0;
  padding: 0 0 0 1.1rem;
  display: grid;
  gap: 0.4rem;
  font-size: 0.9rem;
  line-height: 1.4;
}

.pd-geneval__caption {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.pd-landscape {
  display: grid;
  gap: 1rem;
  width: 100%;
}

.pd-landscape__rule,
.pd-landscape__caption {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.pd-landscape__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

@media (min-width: 720px) {
  .pd-landscape__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.pd-landscape__cell {
  margin: 0;
  padding: 1.15rem 1.2rem 1.2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-card);
  background: var(--surface);
  box-sizing: border-box;
}

[data-theme="dark"] .pd-landscape__cell {
  background: rgba(255, 255, 255, 0.03);
}

.pd-landscape__axes {
  margin: 0 0 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-label);
}

.pd-landscape__cell-title {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
}

.pd-landscape__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.pd-landscape__list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.4;
}

.pd-landscape__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.65rem;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.pd-landscape__mark--G {
  background: rgba(34, 197, 94, 0.18);
  color: #15803d;
}

.pd-landscape__mark--E {
  background: rgba(244, 63, 94, 0.14);
  color: #be123c;
}

.pd-landscape__mark--B {
  background: rgba(59, 130, 246, 0.14);
  color: #1d4ed8;
}

.pd-landscape__caption .pd-landscape__mark {
  margin-right: 0.2rem;
  vertical-align: middle;
}

[data-theme="dark"] .content--week04-lesson .pd-role-body,
[data-theme="dark"] .content--week04-lesson .pd-situation-card .pd-method-desc {
  color: var(--text-secondary);
}

/* Week 5. design process */
.content--week05-lesson .pd-lesson-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 0.65rem;
}

.content--week05-lesson .pd-lesson-section-title {
  margin-bottom: 0.85rem;
}

.content--week05-lesson .pd-lesson-chapter-label {
  margin-bottom: 0.5rem;
}

.content--week05-lesson .pd-lesson-chapter-title {
  margin-bottom: 0.75rem;
}

.content--week05-lesson .pd-lesson-section-lead {
  margin-bottom: 1.75rem;
}

.content--week05-lesson .pd-lesson-kicker {
  margin: 0 0 1rem;
}

.content--week05-lesson .pd-lesson-block {
  margin-bottom: 2rem;
}

.content--week05-lesson .pd-lesson-chapter-body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.content--week05-lesson .pd-lesson-chapter-body > .pd-lesson-block {
  margin-bottom: 2.25rem;
}

.content--week05-lesson blockquote.pd-lesson-callout {
  max-width: none;
  margin: 1.25rem 0 0;
}

.content--week05-lesson .pd-chapter-nav--dense {
  gap: 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.content--week05-lesson .pd-chapter-nav--dense .pd-lesson-kicker {
  margin: 0.35rem 0 0.15rem;
}

.content--week05-lesson .pd-chapter-nav--dense .pd-lesson-kicker:first-child {
  margin-top: 0;
}

.content--week05-lesson .pd-chapter-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.content--week05-lesson .pd-chapter-nav--dense .pd-chapter-chip {
  font-size: 0.78rem;
  padding: 0.45rem 0.75rem;
}

.content--week05-lesson .pd-lesson-card-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .content--week05-lesson .pd-lesson-card-grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .content--week05-lesson .pd-lesson-card-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.content--week05-lesson .pd-lesson-card {
  padding: 1.5rem 1.65rem;
  height: 100%;
  box-sizing: border-box;
}

.content--week05-lesson .pd-lesson-card-body,
.content--week05-lesson .pd-phase-body,
.content--week05-lesson .pd-step-body p,
.content--week05-lesson .pd-lesson-prose {
  color: var(--text-secondary);
}

[data-theme="dark"] .content--week05-lesson .pd-lesson-card-body,
[data-theme="dark"] .content--week05-lesson .pd-phase-body,
[data-theme="dark"] .content--week05-lesson .pd-step-body p,
[data-theme="dark"] .content--week05-lesson .pd-lesson-prose {
  color: var(--text-secondary);
}

.content--week05-lesson .pd-phase-grid {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.25rem;
}

@media (min-width: 640px) {
  .content--week05-lesson .pd-phase-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .content--week05-lesson .pd-phase-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.content--week05-lesson .pd-phase-card {
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}

[data-theme="dark"] .content--week05-lesson .pd-phase-card {
  background: rgba(255, 255, 255, 0.03);
}

.content--week05-lesson .pd-phase-num {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.content--week05-lesson .pd-phase-title {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
}

.content--week05-lesson .pd-phase-body {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.55;
}

/* Bridge note · research → design pipeline (two-row, no awkward wrap) */
.content--week05-lesson .pd-synth-pipeline {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: 100%;
  margin: var(--space-4) 0 var(--space-5);
  padding: var(--space-4) var(--space-4);
  background: var(--code-bg);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  box-sizing: border-box;
}

.content--week05-lesson .pd-synth-pipeline-label {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.content--week05-lesson .pd-synth-pipeline-row {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.content--week05-lesson .pd-synth-pipeline-track {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-width: min-content;
  padding: 0.15rem 0;
}

.content--week05-lesson .pd-synth-pipeline-step {
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 0.45rem 0.7rem;
  border-radius: var(--radius-md);
  background: var(--surface-card);
  border: 1px solid var(--border-card);
  color: var(--code-text);
  font-size: clamp(0.72rem, 1.05vw, 0.82rem);
  font-weight: 600;
  line-height: 1.25;
}

.content--week05-lesson .pd-synth-pipeline-arrow {
  flex: 0 0 auto;
  color: var(--text-tertiary);
  font-weight: 500;
  opacity: 0.8;
  font-size: 0.9rem;
}

.content--week05-lesson .pd-synth-pipeline-connector {
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-tertiary);
  font-size: 1rem;
  line-height: 1;
  opacity: 0.75;
  padding: 0.1rem 0;
}

[data-theme="dark"] .content--week05-lesson .pd-synth-pipeline-step {
  color: #e8eaef;
}

@media (max-width: 720px) {
  .content--week05-lesson .pd-synth-pipeline-track {
    justify-content: flex-start;
  }
}

/* Bridge note · readable spacing (steps, callouts, prompts) */
.content--week05-lesson .pd-lesson-section--bridge > .pd-lesson-section-lead {
  margin-bottom: 1.75rem;
  line-height: 1.72;
}

.content--week05-lesson .pd-lesson-section--bridge .pd-lesson-chapter-title {
  margin-bottom: 1rem;
}

.content--week05-lesson .pd-lesson-section--bridge .pd-lesson-chapter-body {
  gap: 2rem;
}

.content--week05-lesson .pd-lesson-section--bridge .pd-lesson-block {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-bottom: 0;
}

.content--week05-lesson .pd-lesson-section--bridge .pd-lesson-block .pd-lesson-kicker {
  margin: 0;
}

.content--week05-lesson .pd-lesson-section--bridge .pd-lesson-prose {
  margin: 0;
  line-height: 1.72;
  font-size: 0.9375rem;
}

.content--week05-lesson .pd-lesson-section--bridge .pd-judgment-list {
  margin: 0;
  padding-left: 1.35rem;
}

.content--week05-lesson .pd-lesson-section--bridge .pd-judgment-list li + li {
  margin-top: 0.7rem;
}

.content--week05-lesson .pd-lesson-section--bridge .pd-lesson-prose--compact {
  line-height: 1.65;
}

.content--week05-lesson .pd-lesson-section--bridge .pd-lesson-prose--compact li {
  margin-bottom: 0;
}

.content--week05-lesson .pd-lesson-section--bridge blockquote.pd-lesson-callout {
  margin: 0;
  padding: 1.5rem 1.75rem;
}

.content--week05-lesson .pd-lesson-section--bridge blockquote.pd-lesson-callout p {
  margin: 0;
  line-height: 1.72;
}

.content--week05-lesson .pd-lesson-section--bridge .pd-synth-pipeline {
  margin: 0.35rem 0 0;
  padding: 1.35rem 1.5rem;
  gap: 0.9rem;
}

.content--week05-lesson .pd-lesson-section--bridge .pd-formula-box {
  margin: 0;
  padding: 1.15rem 1.35rem;
  line-height: 1.65;
}

.content--week05-lesson .pd-lesson-section--bridge .pd-research-table-wrap {
  margin: 0.25rem 0 0;
}

.content--week05-lesson .pd-lesson-section--bridge .pd-hmw-pair-grid {
  margin-top: 0.35rem;
}

.content--week05-lesson .pd-lesson-section--bridge .pd-alignment-grid {
  margin-top: 0.35rem;
}

.content--week05-lesson .pd-lesson-section--bridge .pd-step-list {
  gap: 1.5rem;
  margin-top: 0.25rem;
}

.content--week05-lesson .pd-lesson-section--bridge .pd-step-body p {
  margin: 0.45rem 0 0;
  line-height: 1.65;
}

.content--week05-lesson .pd-prompt-box {
  margin: 0.35rem 0 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(22, 163, 74, 0.35);
  background: rgba(22, 163, 74, 0.08);
}

.content--week05-lesson .pd-prompt-box-label {
  margin: 0;
  padding: 0.75rem 1.1rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(22, 163, 74, 0.12);
  color: #166534;
}

[data-theme="dark"] .content--week05-lesson .pd-prompt-box-label {
  color: #86efac;
}

.content--week05-lesson .pd-prompt-box-code {
  margin: 0;
  padding: 1.15rem 1.25rem;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.8125rem;
  line-height: 1.65;
  white-space: pre-wrap;
  color: #1a1a1a;
  background: rgba(255, 255, 255, 0.5);
}

[data-theme="dark"] .content--week05-lesson .pd-prompt-box-code {
  color: #f0f0f0;
  background: rgba(0, 0, 0, 0.25);
}

.content--week05-lesson .pd-step-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.35rem;
  max-width: none;
  width: 100%;
}

.content--week05-lesson .pd-step-list--questions .pd-step-body strong {
  display: block;
  margin-bottom: 0.35rem;
}

.content--week05-lesson .pd-research-table-wrap {
  overflow-x: auto;
}

.content--week05-lesson .pd-research-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.content--week05-lesson .pd-research-table th,
.content--week05-lesson .pd-research-table td {
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  text-align: left;
}

.content--week05-lesson .pd-research-table th {
  background: var(--surface);
  font-weight: 600;
}

.content--week05-lesson .pd-lesson-prose {
  margin: 0;
  padding-left: 1.25rem;
  max-width: none;
  width: 100%;
  line-height: 1.6;
  font-size: 0.9rem;
}

.content--week05-lesson .pd-lesson-prose--flush {
  padding-left: 0;
  margin-bottom: 1.25rem;
}

.content--week05-lesson .pd-brief-stack {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1rem;
}

.content--week05-lesson .pd-brief-field-card {
  padding: 1.15rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}

[data-theme="dark"] .content--week05-lesson .pd-brief-field-card {
  background: rgba(255, 255, 255, 0.04);
}

.content--week05-lesson .pd-brief-field-title {
  margin: 0 0 0.45rem;
  font-size: 0.92rem;
  font-weight: 600;
}

.content--week05-lesson .pd-brief-field-body {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

[data-theme="dark"] .content--week05-lesson .pd-brief-field-body {
  color: var(--text-secondary);
}

.content--week05-lesson .pd-formula-box {
  margin: 0.75rem 0 1rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.9rem;
  line-height: 1.5;
}

[data-theme="dark"] .content--week05-lesson .pd-formula-box {
  background: rgba(255, 255, 255, 0.04);
}

.content--week05-lesson .pd-hmw-pair-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1rem;
}

.content--week05-lesson .pd-hmw-pair {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 720px) {
  .content--week05-lesson .pd-hmw-pair {
    grid-template-columns: 1fr 1fr;
  }
}

.content--week05-lesson .pd-hmw-pair-card {
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}

[data-theme="dark"] .content--week05-lesson .pd-hmw-pair-card {
  background: rgba(255, 255, 255, 0.04);
}

.content--week05-lesson .pd-hmw-pair-card p {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

[data-theme="dark"] .content--week05-lesson .pd-hmw-pair-card p {
  color: var(--text-secondary);
}

.content--week05-lesson .pd-hmw-pair-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.content--week05-lesson .pd-hmw-pair-card--problem .pd-hmw-pair-label {
  color: #2563eb;
}

.content--week05-lesson .pd-hmw-pair-card--hmw .pd-hmw-pair-label {
  color: #059669;
}

.content--week05-lesson .pd-define-output-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.content--week05-lesson .pd-define-output-list li {
  position: relative;
  padding-left: 1.65rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

[data-theme="dark"] .content--week05-lesson .pd-define-output-list li {
  color: var(--text-secondary);
}

.content--week05-lesson .pd-define-output-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  color: #059669;
}

.content--week05-lesson .pd-ia-example {
  margin-top: 1rem;
  padding: 1.25rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}

[data-theme="dark"] .content--week05-lesson .pd-ia-example {
  background: rgba(255, 255, 255, 0.04);
}

.content--week05-lesson .pd-ia-example-title {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.content--week05-lesson .pd-ia-example-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.content--week05-lesson .pd-ia-example-list li {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

[data-theme="dark"] .content--week05-lesson .pd-ia-example-list li {
  color: var(--text-secondary);
}

.content--week05-lesson .pd-step-body code {
  font-size: 0.85em;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .content--week05-lesson .pd-step-body code {
  background: rgba(255, 255, 255, 0.08);
}

.content--week05-lesson .pd-lesson-stack--compare {
  display: grid;
  gap: 1rem;
  max-width: none;
  width: 100%;
}

@media (min-width: 640px) {
  .content--week05-lesson .pd-lesson-stack--compare {
    grid-template-columns: 1fr 1fr;
  }
}

.content--week05-lesson .pd-compare-card--prose p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

[data-theme="dark"] .content--week05-lesson .pd-compare-card--prose p {
  color: var(--text-secondary);
}

.content--week05-lesson .pd-prd-definition {
  margin-top: 0.75rem;
  padding: 1.15rem 1.35rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-card);
  background: var(--surface-card);
  box-shadow: var(--shadow-card);
  max-width: none;
  width: 100%;
  box-sizing: border-box;
}

.content--week05-lesson .pd-prd-definition p {
  margin: 0 0 0.65rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.content--week05-lesson .pd-prd-definition p:last-child {
  margin-bottom: 0;
}

[data-theme="dark"] .content--week05-lesson .pd-prd-definition {
  background: rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] .content--week05-lesson .pd-prd-definition p {
  color: var(--text-secondary);
}

.content--week05-lesson .pd-persona-card {
  margin-top: 1rem;
  padding: 1.35rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  max-width: none;
  width: 100%;
}

[data-theme="dark"] .content--week05-lesson .pd-persona-card {
  background: rgba(255, 255, 255, 0.04);
}

.content--week05-lesson .pd-persona-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.content--week05-lesson .pd-persona-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}

.content--week05-lesson .pd-persona-name {
  margin: 0 0 0.2rem;
  font-size: 1.05rem;
}

.content--week05-lesson .pd-persona-subtitle {
  margin: 0;
  font-size: 0.85rem;
  color: #666;
}

[data-theme="dark"] .content--week05-lesson .pd-persona-subtitle {
  color: #aaa;
}

.content--week05-lesson .pd-persona-card-body {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .content--week05-lesson .pd-persona-card-body {
    grid-template-columns: 1fr 1fr;
  }
}

.content--week05-lesson .pd-persona-section-label {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #666;
}

[data-theme="dark"] .content--week05-lesson .pd-persona-section-label {
  color: #999;
}

.content--week05-lesson .pd-persona-section-body {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

[data-theme="dark"] .content--week05-lesson .pd-persona-section-body {
  color: var(--text-secondary);
}

.content--week05-lesson .pd-client-vs-grid {
  display: grid;
  gap: 1rem;
  margin-top: 0.75rem;
}

@media (min-width: 640px) {
  .content--week05-lesson .pd-client-vs-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.content--week05-lesson .pd-client-vs-card {
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}

.content--week05-lesson .pd-client-vs-card--action {
  border-color: rgba(37, 99, 235, 0.35);
  background: rgba(37, 99, 235, 0.06);
}

[data-theme="dark"] .content--week05-lesson .pd-client-vs-card {
  background: rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] .content--week05-lesson .pd-client-vs-card--action {
  background: rgba(37, 99, 235, 0.12);
}

.content--week05-lesson .pd-client-vs-label {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.content--week05-lesson .pd-client-vs-card p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

[data-theme="dark"] .content--week05-lesson .pd-client-vs-card p {
  color: var(--text-secondary);
}

.content--week05-lesson blockquote.pd-lesson-callout--warning {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-left-width: 4px;
  border-left-color: #dc2626;
}

[data-theme="dark"] .content--week05-lesson blockquote.pd-lesson-callout--warning {
  color: #fecaca;
}

.content--week05-lesson .pd-step-num--business {
  background: #b45309;
  font-size: 0.68rem;
}

.content--week05-lesson .pd-alignment-grid {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.75rem;
}

@media (min-width: 720px) {
  .content--week05-lesson .pd-alignment-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .content--week05-lesson .pd-alignment-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.content--week05-lesson .pd-alignment-card {
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}

[data-theme="dark"] .content--week05-lesson .pd-alignment-card {
  background: rgba(255, 255, 255, 0.04);
}

.content--week05-lesson .pd-alignment-label {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.content--week05-lesson .pd-alignment-card--blue .pd-alignment-label {
  color: #2563eb;
}

.content--week05-lesson .pd-alignment-card--green .pd-alignment-label {
  color: #059669;
}

.content--week05-lesson .pd-alignment-card--purple .pd-alignment-label {
  color: #7c3aed;
}

.content--week05-lesson .pd-alignment-card--orange .pd-alignment-label {
  color: #ea580c;
}

.content--week05-lesson .pd-alignment-body {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

[data-theme="dark"] .content--week05-lesson .pd-alignment-body {
  color: var(--text-secondary);
}

.content--week05-lesson .pd-platform-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 0.75rem;
}

.content--week05-lesson .pd-platform-block {
  padding: 1.25rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}

[data-theme="dark"] .content--week05-lesson .pd-platform-block {
  background: rgba(255, 255, 255, 0.04);
}

.content--week05-lesson .pd-platform-block-title {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.content--week05-lesson .pd-platform-section {
  margin-bottom: 1rem;
}

.content--week05-lesson .pd-platform-section:last-child {
  margin-bottom: 0;
}

.content--week05-lesson .pd-platform-section-heading {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #555;
}

[data-theme="dark"] .content--week05-lesson .pd-platform-section-heading {
  color: #aaa;
}

.content--week05-lesson .pd-platform-section-body {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

[data-theme="dark"] .content--week05-lesson .pd-platform-section-body {
  color: var(--text-secondary);
}

.content--week05-lesson .pd-capstone-ref-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 1rem;
}

@media (min-width: 900px) {
  .content--week05-lesson .pd-capstone-ref-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.content--week05-lesson .pd-capstone-ref-card {
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}

[data-theme="dark"] .content--week05-lesson .pd-capstone-ref-card {
  background: rgba(255, 255, 255, 0.04);
}

.content--week05-lesson .pd-capstone-ref-title {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  font-weight: 600;
}

.content--week05-lesson .pd-capstone-ref-phases {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.content--week05-lesson .pd-capstone-ref-phase {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.65rem 1rem;
  align-items: start;
}

@media (max-width: 480px) {
  .content--week05-lesson .pd-capstone-ref-phase {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}

.content--week05-lesson .pd-capstone-ref-phase-name {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #2563eb;
}

[data-theme="dark"] .content--week05-lesson .pd-capstone-ref-phase-name {
  color: #60a5fa;
}

.content--week05-lesson .pd-capstone-ref-phase-body {
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

[data-theme="dark"] .content--week05-lesson .pd-capstone-ref-phase-body {
  color: var(--text-secondary);
}

.content--week05-lesson .pd-lesson-prose--compact {
  padding-left: 0;
  max-width: none;
  width: 100%;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #555;
}

.content--week05-lesson .pd-lesson-prose--compact li {
  margin-bottom: 0.35rem;
}

[data-theme="dark"] .content--week05-lesson .pd-lesson-prose--compact {
  color: #aaa;
}

/* Week 06. laws, heuristics, handoff lesson */
body.course-week-06 .nav-part {
  padding: 0.85rem 1rem 0.5rem;
  margin-top: 0.25rem;
}

.content--week06-lesson .pd-lesson-chapter-label {
  margin-bottom: 0.5rem;
}

.content--week06-lesson .pd-lesson-chapter-title {
  margin-bottom: 0.75rem;
}

.content--week06-lesson .pd-lesson-section-lead {
  margin-bottom: 1.75rem;
}

.content--week06-lesson .pd-lesson-block {
  margin-bottom: 2.25rem;
}

.content--week06-lesson blockquote.pd-lesson-callout {
  max-width: none;
  margin: 1.25rem 0 0;
}

.content--week06-lesson .pd-chapter-nav--dense {
  gap: 0.5rem;
}

.content--week06-lesson .pd-chapter-nav--dense .pd-chapter-chip {
  font-size: 0.78rem;
  padding: 0.45rem 0.75rem;
}

.content--week06-lesson .pd-lesson-card-grid {
  display: grid;
  gap: 1.25rem;
}

.content--week06-lesson .pd-lesson-card-grid--2 {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .content--week06-lesson .pd-lesson-card-grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.content--week06-lesson .pd-lesson-card {
  padding: 1.5rem 1.65rem;
  height: 100%;
}

.content--week06-lesson .pd-lesson-card-body,
.content--week06-lesson .pd-lesson-prose {
  color: var(--text-secondary);
}

[data-theme="dark"] .content--week06-lesson .pd-lesson-card-body,
[data-theme="dark"] .content--week06-lesson .pd-lesson-prose {
  color: var(--text-secondary);
}

.content--week06-lesson .pd-lesson-prose--flush {
  padding-left: 0;
  margin-bottom: 1.25rem;
  max-width: none;
  width: 100%;
  line-height: 1.6;
  font-size: 0.9rem;
}

.content--week06-lesson .pd-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.85rem;
}

.content--week06-lesson .pd-tag {
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: #555;
}

[data-theme="dark"] .content--week06-lesson .pd-tag {
  color: #aaa;
}

.content--week06-lesson .pd-ux-law-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 0.75rem;
}

@media (min-width: 900px) {
  .content--week06-lesson .pd-ux-law-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.content--week06-lesson .pd-ux-law-card {
  padding: 1.35rem 1.45rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}

[data-theme="dark"] .content--week06-lesson .pd-ux-law-card {
  background: rgba(255, 255, 255, 0.04);
}

.content--week06-lesson .pd-ux-law-card-head {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.content--week06-lesson .pd-ux-law-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.content--week06-lesson .pd-ux-law-title {
  margin: 0 0 0.2rem;
  font-size: 0.95rem;
}

.content--week06-lesson .pd-ux-law-subtitle {
  margin: 0;
  font-size: 0.82rem;
  color: #666;
  font-weight: 500;
}

[data-theme="dark"] .content--week06-lesson .pd-ux-law-subtitle {
  color: #999;
}

.content--week06-lesson .pd-ux-law-body {
  margin: 0 0 0.85rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

[data-theme="dark"] .content--week06-lesson .pd-ux-law-body {
  color: var(--text-secondary);
}

.content--week06-lesson .pd-ux-law-apply-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #b45309;
  margin-bottom: 0.35rem;
}

.content--week06-lesson .pd-ux-law-apply p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

[data-theme="dark"] .content--week06-lesson .pd-ux-law-apply p {
  color: var(--text-secondary);
}

.content--week06-lesson .pd-heuristic-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.75rem;
}

.content--week06-lesson .pd-heuristic-card {
  padding: 1.15rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}

[data-theme="dark"] .content--week06-lesson .pd-heuristic-card {
  background: rgba(255, 255, 255, 0.04);
}

.content--week06-lesson .pd-heuristic-card-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
}

.content--week06-lesson .pd-heuristic-id {
  font-size: 0.72rem;
  font-weight: 700;
  color: #2563eb;
  flex-shrink: 0;
}

.content--week06-lesson .pd-heuristic-title {
  margin: 0;
  font-size: 0.92rem;
}

.content--week06-lesson .pd-heuristic-principle {
  margin: 0 0 0.65rem;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

[data-theme="dark"] .content--week06-lesson .pd-heuristic-principle {
  color: var(--text-secondary);
}

.content--week06-lesson .pd-heuristic-check-label {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #666;
}

.content--week06-lesson .pd-heuristic-checks {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

[data-theme="dark"] .content--week06-lesson .pd-heuristic-checks {
  color: var(--text-secondary);
}

.content--week06-lesson .pd-handoff-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.content--week06-lesson .pd-handoff-item {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.75rem;
  align-items: start;
}

.content--week06-lesson .pd-handoff-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.12);
  color: #2563eb;
  font-size: 0.8rem;
  font-weight: 700;
}

.content--week06-lesson .pd-handoff-body {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

[data-theme="dark"] .content--week06-lesson .pd-handoff-body {
  color: var(--text-secondary);
}

.content--week06-lesson .pd-step-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.content--week06-lesson .pd-step-item {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.content--week06-lesson .pd-step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}

.content--week06-lesson .pd-step-body p {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

[data-theme="dark"] .content--week06-lesson .pd-step-body p {
  color: var(--text-secondary);
}

.content--week06-lesson blockquote.pd-lesson-callout--warning {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-left-width: 4px;
  border-left-color: #dc2626;
}

.content--week06-lesson .pd-info-list-box {
  padding: 1.25rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.04);
  margin-bottom: 1.5rem;
}

[data-theme="dark"] .content--week06-lesson .pd-info-list-box {
  background: rgba(255, 255, 255, 0.05);
}

.content--week06-lesson .pd-info-list-box-title {
  margin: 0 0 0.65rem;
  font-size: 0.88rem;
}

.content--week06-lesson .pd-info-list-box ul {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.88rem;
  line-height: 1.55;
}

.content--week06-lesson .pd-annotation-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .content--week06-lesson .pd-annotation-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.content--week06-lesson .pd-annotation-card {
  padding: 1.15rem 1.3rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}

.content--week06-lesson .pd-annotation-card-icon {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.content--week06-lesson .pd-annotation-card-title {
  margin: 0 0 0.25rem;
  font-size: 0.9rem;
}

.content--week06-lesson .pd-annotation-card-desc {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
  color: #666;
}

.content--week06-lesson .pd-annotation-card-example {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-secondary);
}

[data-theme="dark"] .content--week06-lesson .pd-annotation-card-desc {
  color: #999;
}

[data-theme="dark"] .content--week06-lesson .pd-annotation-card-example {
  color: var(--text-secondary);
}

.content--week06-lesson .pd-presentation-parts {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.content--week06-lesson .pd-presentation-part {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 0.75rem;
  padding: 1rem 1.2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.content--week06-lesson .pd-presentation-part-id {
  font-size: 0.75rem;
  font-weight: 700;
  color: #2563eb;
}

.content--week06-lesson .pd-presentation-part-title {
  margin: 0 0 0.35rem;
  font-size: 0.9rem;
}

.content--week06-lesson .pd-presentation-part-body {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

[data-theme="dark"] .content--week06-lesson .pd-presentation-part-body {
  color: var(--text-secondary);
}

.content--week06-lesson .pd-compare-card--prose ul {
  margin: 0.5rem 0 0;
  padding-left: 1.15rem;
  font-size: 0.86rem;
  line-height: 1.5;
}

.content--week06-lesson .pd-feedback-scenarios {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.content--week06-lesson .pd-feedback-scenario {
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}

.content--week06-lesson .pd-feedback-quote {
  margin: 0 0 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.content--week06-lesson .pd-feedback-response {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

[data-theme="dark"] .content--week06-lesson .pd-feedback-response {
  color: var(--text-secondary);
}

.content--week06-lesson .pd-slide-deck {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.content--week06-lesson .pd-slide-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}

.content--week06-lesson .pd-slide-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  background: rgba(37, 99, 235, 0.15);
  color: #2563eb;
  white-space: nowrap;
}

.content--week06-lesson .pd-slide-title {
  margin: 0 0 0.25rem;
  font-size: 0.9rem;
}

.content--week06-lesson .pd-slide-body p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

[data-theme="dark"] .content--week06-lesson .pd-slide-body p {
  color: var(--text-secondary);
}

.content--week06-lesson .pd-lesson-prose--compact {
  padding-left: 0;
  max-width: none;
  width: 100%;
  font-size: 0.88rem;
  line-height: 1.55;
}

.content--week06-lesson .pd-lesson-prose--compact li {
  margin-bottom: 0.35rem;
}

.week-hero--empty .week-hero-empty-note {
  max-width: none;
  width: 100%;
  color: #666;
  font-size: 0.95rem;
}

[data-theme="dark"] .week-hero--empty .week-hero-empty-note {
  color: #aaa;
}

/* Week 7. Using AI in product design */
body.course-week-07-ai .sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding-bottom: 0.5rem;
}

body.course-week-07-ai .sidebar-nav .nav-link {
  margin: 0.1rem 0.75rem;
  padding: 0.6rem 0.95rem;
  line-height: 1.45;
}

body.course-week-07-ai .nav-part {
  padding: 0.85rem 1rem 0.5rem;
  margin-top: 0.25rem;
}

body.course-week-07-ai .sidebar-footer {
  padding: 0.85rem 1rem 1rem;
  gap: 0.55rem;
}

.content--week07-ai .pd-lesson-chapter-label {
  margin: 0 0 0.65rem;
}

.content--week07-ai .pd-lesson-chapter-title {
  margin: 0 0 1.25rem;
  line-height: 1.25;
  max-width: none;
  width: 100%;
}

.content--week07-ai .pd-lesson-section-lead {
  margin: 0 0 2.25rem;
  max-width: none;
  width: 100%;
}

.content--week07-ai .pd-lesson-chapter-body {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  width: 100%;
  max-width: none;
}

.content--week07-ai .pd-lesson-block {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 0;
}

.content--week07-ai .pd-lesson-block .pd-lesson-kicker {
  margin: 0;
}

.content--week07-ai .pd-lesson-kicker {
  margin: 0 0 0.15rem;
}

.content--week07-ai .pd-lesson-prose {
  margin: 0;
  max-width: none;
  width: 100%;
}

.content--week07-ai blockquote.pd-lesson-callout {
  max-width: none;
  margin: 0;
  padding: 1.5rem 1.75rem;
}

.content--week07-ai .pd-lesson-card-grid {
  display: grid;
  gap: 1.5rem;
  width: 100%;
  min-width: 0;
}

@media (min-width: 720px) {
  .content--week07-ai .pd-lesson-card-grid {
    gap: 1.75rem;
  }
}

.content--week07-ai .pd-lesson-card-grid + .pd-lesson-card-grid,
.content--week07-ai .pd-lesson-card-grid + .pd-tool-card-stack,
.content--week07-ai .pd-tool-card-stack + .pd-lesson-prose {
  margin-top: 0.25rem;
}

.content--week07-ai .pd-lesson-card-grid--2,
.content--week07-ai .pd-lesson-card-grid--3,
.content--week07-ai .pd-lesson-card-grid--4 {
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 640px) {
  .content--week07-ai .pd-lesson-card-grid--2,
  .content--week07-ai .pd-lesson-card-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .content--week07-ai .pd-lesson-card-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.content--week07-ai .pd-tool-card-stack,
.content--week07-ai .pd-route-card-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
  min-width: 0;
}

[data-theme="dark"] .content--week07-ai .pd-tool-card,
[data-theme="dark"] .content--week07-ai .pd-route-card {
  background: rgba(255, 255, 255, 0.04);
}

.content--week07-ai .pd-tool-card-head,
.content--week07-ai .pd-route-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.75rem;
}

.content--week07-ai .pd-tool-card-icon {
  font-size: 1.1rem;
}

.content--week07-ai .pd-tool-card-title,
.content--week07-ai .pd-route-card-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  flex: 1 1 auto;
}

.content--week07-ai .pd-tool-card-badge,
.content--week07-ai .pd-route-card-badge {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
}

.content--week07-ai .pd-tool-card--purple .pd-tool-card-badge {
  background: rgba(147, 51, 234, 0.15);
  color: #6b21a8;
}

.content--week07-ai .pd-tool-card--cyan .pd-tool-card-badge {
  background: rgba(8, 145, 178, 0.15);
  color: #0e7490;
}

.content--week07-ai .pd-tool-card--green .pd-tool-card-badge {
  background: rgba(22, 163, 74, 0.15);
  color: #15803d;
}

.content--week07-ai .pd-tool-card--orange .pd-tool-card-badge {
  background: rgba(234, 88, 12, 0.15);
  color: #c2410c;
}

.content--week07-ai .pd-route-card--blue .pd-route-card-badge {
  background: rgba(37, 99, 235, 0.15);
  color: #1d4ed8;
}

.content--week07-ai .pd-route-card--green .pd-route-card-badge {
  background: rgba(22, 163, 74, 0.15);
  color: #15803d;
}

.content--week07-ai .pd-route-card--purple .pd-route-card-badge {
  background: rgba(147, 51, 234, 0.15);
  color: #6b21a8;
}

[data-theme="dark"] .content--week07-ai .pd-tool-card-badge,
[data-theme="dark"] .content--week07-ai .pd-route-card-badge {
  filter: brightness(1.15);
}

.content--week07-ai .pd-tool-card-body,
.content--week07-ai .pd-route-card-body {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

[data-theme="dark"] .content--week07-ai .pd-tool-card-body,
[data-theme="dark"] .content--week07-ai .pd-route-card-body {
  color: var(--text-secondary);
}

.content--week07-ai .pd-tool-card-use,
.content--week07-ai .pd-route-card-best {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: #666;
}

[data-theme="dark"] .content--week07-ai .pd-tool-card-use,
[data-theme="dark"] .content--week07-ai .pd-route-card-best {
  color: #aaa;
}

.content--week07-ai .pd-tool-card-use-label,
.content--week07-ai .pd-route-card-best-label {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-right: 0.35rem;
}

.content--week07-ai .pd-route-card-num {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-tertiary);
  width: 100%;
}

.content--week07-ai .pd-lesson-card-icon {
  margin-bottom: 1rem;
}

.content--week07-ai .pd-lesson-card-title {
  margin: 0 0 0.85rem;
  line-height: 1.35;
}

.content--week07-ai .pd-lesson-card-body {
  line-height: 1.65;
}

.content--week07-ai .pd-lesson-card-body,
.content--week07-ai .pd-lesson-prose {
  color: var(--text-secondary);
}

[data-theme="dark"] .content--week07-ai .pd-lesson-card-body,
[data-theme="dark"] .content--week07-ai .pd-lesson-prose {
  color: var(--text-secondary);
}

.content--week07-ai .pd-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.85rem;
}

.content--week07-ai .pd-compare-card {
  height: auto;
}

.content--week07-ai .pd-compare-card--bad {
  border-color: rgba(220, 38, 38, 0.35);
  background: rgba(220, 38, 38, 0.06);
}

.content--week07-ai .pd-compare-card--good {
  border-color: rgba(22, 163, 74, 0.35);
  background: rgba(22, 163, 74, 0.06);
}

.content--week07-ai .pd-compare-card h4 {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.content--week07-ai .pd-compare-card ul {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.88rem;
  line-height: 1.55;
}

.content--week07-ai .pd-prompt-box {
  margin: 0.5rem 0 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(22, 163, 74, 0.35);
  background: rgba(22, 163, 74, 0.08);
}

.content--week07-ai .pd-prompt-box-label {
  margin: 0;
  padding: 0.65rem 1rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(22, 163, 74, 0.12);
  color: #166534;
}

[data-theme="dark"] .content--week07-ai .pd-prompt-box-label {
  color: #86efac;
}

.content--week07-ai .pd-prompt-box-code {
  margin: 0;
  padding: 1rem 1.15rem;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.8rem;
  line-height: 1.55;
  white-space: pre-wrap;
  color: #1a1a1a;
  background: rgba(255, 255, 255, 0.5);
}

[data-theme="dark"] .content--week07-ai .pd-prompt-box-code {
  color: #f0f0f0;
  background: rgba(0, 0, 0, 0.25);
}

.content--week07-ai .pd-step-list {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

.content--week07-ai .pd-step-item {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  gap: 0.85rem 1.15rem;
  align-items: start;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

.content--week07-ai .pd-step-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.content--week07-ai .pd-step-num {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.85rem;
  background: #2563eb;
  color: #fff;
  margin-top: 0.1rem;
}

.content--week07-ai .pd-step-body strong {
  display: block;
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
  line-height: 1.35;
}

.content--week07-ai .pd-step-body p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

.content--week07-ai .pd-step-body code {
  font-size: 0.84em;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: rgba(128, 128, 128, 0.12);
}

[data-theme="dark"] .content--week07-ai .pd-step-body p {
  color: var(--text-secondary);
}

[data-theme="dark"] .content--week07-ai .pd-step-body code {
  background: rgba(255, 255, 255, 0.08);
}

.content--week07-ai .pd-chapter-nav {
  margin-top: 0.5rem;
}

.content--week07-ai blockquote.pd-lesson-callout--warning {
  border-color: rgba(220, 38, 38, 0.4);
  background: rgba(220, 38, 38, 0.08);
}

[data-theme="dark"] .content--week07-ai blockquote.pd-lesson-callout--warning {
  background: rgba(220, 38, 38, 0.12);
}

/* ── Certificates hub (academy marketing · matches About / Stories) ── */

.hub-page--certificates .cert-actions,
.hub-page--certificates .cert-details,
.hub-page--certificates .cert-programs {
  margin-bottom: 3.5rem;
}

.hub-page--certificates .cert-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
  margin-top: 0.5rem;
}

.hub-page--certificates .cert-action-kicker {
  margin: 0 0 0.5rem;
  font-family: var(--home-font-mono, ui-monospace, monospace);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--home-muted, #5c5c5c);
}

.hub-page--certificates .cert-action-title {
  margin: 0 0 0.65rem;
  font-family: var(--home-font-display, var(--font-sans));
  font-size: clamp(1.25rem, 2.5vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--home-ink, #0a0a0a);
}

.hub-page--certificates .cert-action-lead {
  margin: 0 0 1.15rem;
  max-width: 36ch;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--home-muted, #5c5c5c);
}

.hub-page--certificates .cert-checklist {
  margin: 0 0 1.15rem;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.hub-page--certificates .cert-checklist li {
  position: relative;
  padding-left: 1.15rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--home-muted, #5c5c5c);
}

.hub-page--certificates .cert-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--home-ink, #0a0a0a);
  opacity: 0.35;
}

.hub-page--certificates .cert-action-note {
  margin: 0 0 1.25rem;
  max-width: 40ch;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--home-muted, #5c5c5c);
}

.hub-page--certificates .cert-action-note a {
  color: var(--home-ink, #0a0a0a);
  font-weight: 600;
  text-decoration: none;
}

.hub-page--certificates .cert-action-note a:hover {
  text-decoration: underline;
}

.hub-page--certificates .cert-verify-form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  margin-bottom: 1.15rem;
}

.hub-page--certificates .cert-verify-submit {
  align-self: flex-start;
  min-width: 9rem;
}

.hub-page--certificates .cert-verify-status {
  margin: 0;
  padding: 0.75rem 0;
  font-size: 0.88rem;
  line-height: 1.45;
  border-top: 1px solid var(--home-border, rgba(0, 0, 0, 0.1));
}

.hub-page--certificates .cert-verify-status--warn {
  color: #92400e;
}

.hub-page--certificates .cert-verify-status--info {
  color: var(--home-muted, #5c5c5c);
}

.hub-page--certificates .cert-verify-status--ok {
  color: #067647;
}

.hub-page--certificates .cert-verify-status--bad {
  color: #b42318;
}

[data-theme="dark"] .hub-page--certificates .cert-verify-status--warn {
  color: #fbbf24;
}

.hub-page--certificates .cert-action + .cert-action {
  padding-top: 0;
  border-top: none;
}

@media (max-width: 860px) {
  .hub-page--certificates .cert-actions-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hub-page--certificates .cert-action + .cert-action {
    padding-top: 2.5rem;
    border-top: 1px solid var(--home-border, rgba(0, 0, 0, 0.1));
  }
}

/* ── Sign in & Get started (split shell) ── */

.hub-page--auth-split .hub-shell--split-auth {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100dvh - 5.5rem);
  padding-top: 1rem;
  padding-bottom: 2rem;
}

.hub-page--auth-split .hub-panel--split-auth {
  max-width: 68rem;
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

.hub-page--auth-split .auth-split-shell {
  width: 100%;
}

.hub-page--auth-split .auth-split {
  display: grid;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-raised);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

@media (min-width: 900px) {
  .hub-page--auth-split .auth-split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: 32rem;
  }
}

.hub-page--auth-split .auth-split__col--form {
  padding: 2rem 1.75rem 1.75rem;
}

@media (min-width: 900px) {
  .hub-page--auth-split .auth-split__col--form {
    padding: 2.25rem 2.25rem 2rem;
  }
}

.hub-page--auth-split .auth-split__col--scroll {
  max-height: none;
}

@media (min-width: 900px) {
  .hub-page--auth-split .auth-split__col--scroll {
    max-height: 32rem;
    overflow-y: auto;
  }
}

.hub-page--auth-split .auth-split__col--promo {
  position: relative;
  padding: 2rem 1.75rem;
  border-top: 1px solid var(--border);
  background: linear-gradient(
    165deg,
    rgba(110, 81, 224, 0.08) 0%,
    rgba(110, 81, 224, 0.02) 45%,
    var(--surface) 100%
  );
}

@media (min-width: 900px) {
  .hub-page--auth-split .auth-split__col--promo {
    border-top: none;
    border-left: 1px solid var(--border);
    padding: 2.25rem 2rem;
  }
}

[data-theme="dark"] .hub-page--auth-split .auth-split__col--promo {
  background: linear-gradient(
    165deg,
    rgba(110, 81, 224, 0.14) 0%,
    rgba(110, 81, 224, 0.04) 40%,
    var(--surface) 100%
  );
}

.hub-page--auth-split .auth-split-promo-glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 55%;
  height: 55%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(110, 81, 224, 0.2), transparent 70%);
  pointer-events: none;
}

.hub-page--auth-split .auth-split-promo-inner {
  position: relative;
  z-index: 1;
}

.hub-page--auth-split .auth-split-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
  text-decoration: none;
  color: inherit;
}

.hub-page--auth-split .auth-split-brand-logo {
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  background-color: var(--accent, #6e51e0);
  mask: url('../images/talodabi-logo.svg') center / contain no-repeat;
  -webkit-mask: url('../images/talodabi-logo.svg') center / contain no-repeat;
}

.hub-page--auth-split .auth-split-brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  line-height: 1.2;
}

.hub-page--auth-split .auth-split-brand-name {
  font-family: var(--font-display, Georgia, serif);
  font-size: 1.05rem;
  font-weight: 600;
}

.hub-page--auth-split .auth-split-brand-tag {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.hub-page--auth-split .auth-split-profile {
  margin-bottom: 1rem;
}

.hub-page--auth-split .auth-split-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  border: 2px solid var(--border);
}

.hub-page--auth-split .auth-split-avatar--initials {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--accent, #6e51e0);
  background: rgba(110, 81, 224, 0.12);
}

.hub-page--auth-split .auth-split-title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.hub-page--auth-split .auth-split-lead {
  margin: 0 0 1.35rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 28rem;
}

.hub-page--auth-split .auth-split-promo-title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display, Georgia, serif);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.hub-page--auth-split .auth-split-promo-lead {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.hub-page--auth-split .auth-split-promo-note {
  margin: 1.25rem 0 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-faint);
}

.hub-page--auth-split .auth-split-promo-note a {
  color: var(--accent, #6e51e0);
}

.hub-page--auth-split .auth-split-foot {
  margin: 1.35rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hub-page--auth-split .auth-split-foot a {
  color: var(--accent, #6e51e0);
  font-weight: 600;
  text-decoration: none;
}

.hub-page--auth-split .auth-split-foot a:hover {
  text-decoration: underline;
}

.hub-page--auth-split .auth-split-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.hub-page--auth-split .auth-split-steps {
  margin: 0;
  padding-left: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.hub-page--auth-split .auth-split-steps strong {
  color: var(--text);
}

.hub-page--auth-split .auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-width: 24rem;
}

.hub-page--auth-split .auth-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.hub-page--auth-split .auth-field-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hub-page--auth-split .auth-field-input {
  width: 100%;
  padding: 0.65rem 0.75rem;
  font: inherit;
  font-size: 0.92rem;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.hub-page--auth-split .auth-field-password-wrap {
  position: relative;
  display: flex;
}

.hub-page--auth-split .auth-field-input--password {
  padding-right: 3.25rem;
}

.hub-page--auth-split .auth-password-toggle {
  position: absolute;
  right: 0.35rem;
  top: 50%;
  transform: translateY(-50%);
  padding: 0.35rem 0.5rem;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
}

.hub-page--auth-split .auth-password-toggle:hover {
  color: var(--accent, #6e51e0);
}

.hub-page--auth-split .auth-password-toggle:focus-visible {
  outline: 2px solid var(--accent, #6e51e0);
  outline-offset: 2px;
}

.hub-page--auth-split .auth-field-input:focus-visible {
  outline: 2px solid var(--accent, #6e51e0);
  outline-offset: 2px;
}

.hub-page--auth-split .auth-form-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  font-size: 0.88rem;
}

.hub-page--auth-split .auth-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text-muted);
  cursor: pointer;
}

.hub-page--auth-split .auth-checkbox input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--accent, #6e51e0);
}

.hub-page--auth-split .auth-link {
  color: var(--accent, #6e51e0);
  text-decoration: none;
}

.hub-page--auth-split .auth-link:hover {
  text-decoration: underline;
}

.hub-page--auth-split .auth-submit--full {
  width: 100%;
  max-width: 24rem;
  justify-content: center;
}

.hub-page--auth-split .auth-status {
  margin: 0;
  padding: 0.65rem 0.75rem;
  font-size: 0.85rem;
  line-height: 1.45;
  border-radius: var(--radius);
  max-width: 24rem;
}

.hub-page--auth-split .auth-status--info {
  color: var(--text-muted);
  background: rgba(128, 128, 128, 0.1);
}

.hub-page--auth-split .auth-shortcuts {
  display: grid;
  gap: 0.5rem;
}

.hub-page--auth-split .auth-shortcuts--stack {
  margin-bottom: 0.25rem;
}

.hub-page--auth-split .auth-shortcut {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.75rem 0.85rem;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.hub-page--auth-split .auth-shortcut:hover {
  border-color: var(--accent, #6e51e0);
  background: rgba(110, 81, 224, 0.06);
}

.hub-page--auth-split .auth-shortcut-label {
  font-size: 0.9rem;
  font-weight: 600;
}

.hub-page--auth-split .auth-shortcut-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ── Talodabi Academy load splash ── */

.pd-preloader {
  align-items: center;
  justify-content: flex-start;
  padding: clamp(2rem, 8vh, 4rem) clamp(1.5rem, 6vw, 4rem);
  background: #000;
  color: #fff;
}

.pd-preloader-stage {
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 10vh, 5rem);
  width: min(100%, 42rem);
}

.pd-preloader-col {
  display: flex;
  align-items: stretch;
  gap: clamp(1rem, 3vw, 1.75rem);
}

.pd-preloader-rail {
  width: 2px;
  flex-shrink: 0;
  background: #6e51e0;
  opacity: 0;
  transform: scaleY(0);
  transform-origin: top center;
}

.pd-preloader-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.pd-preloader-percent {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(4.5rem, 18vw, 9rem);
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  opacity: 0;
  transform: translateY(12px);
}

.pd-preloader-progress {
  position: relative;
  width: 100%;
  height: 2px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.pd-preloader-progress-fill {
  width: 0;
  height: 100%;
  background: #6e51e0;
  transform-origin: left center;
  transition: width 80ms linear;
}

html.pd-loading body > :not(#pd-preloader) {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.pd-preloader--active .pd-preloader-rail {
  animation: pd-rail-in 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.pd-preloader--active .pd-preloader-percent {
  animation: pd-label-in 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.08s forwards;
}

.pd-preloader--exit {
  pointer-events: none;
  animation: pd-preloader-fade-out 0.7s ease forwards;
}

html.pd-revealing body > :not(#pd-preloader):not(#site-mm-menu) {
  visibility: visible;
  pointer-events: auto;
  animation: pd-page-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes pd-rail-in {
  from {
    opacity: 0;
    transform: scaleY(0);
  }

  to {
    opacity: 1;
    transform: scaleY(1);
  }
}

@keyframes pd-label-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pd-preloader-fade-out {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

@keyframes pd-page-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pd-preloader--active .pd-preloader-rail,
  .pd-preloader--active .pd-preloader-percent,
  .pd-preloader--exit,
  html.pd-revealing body > :not(#pd-preloader):not(#site-mm-menu) {
    animation: none !important;
  }

  .pd-preloader-rail,
  .pd-preloader-percent {
    opacity: 1;
    transform: none;
  }
}

/* ── Talodabi design system · motion & lesson polish ── */

@keyframes page-enter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes auth-card-enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

html.motion-ready body.page-enter .hub-panel,
html.motion-ready body.page-enter .hub-shell > .hub-panel {
  animation: page-enter var(--duration-normal) var(--ease-out) both;
}

html.motion-ready body.auth-gate-enter .auth-gate-panel,
html.motion-ready body.auth-gate-enter .auth-gate-card {
  animation: auth-card-enter var(--duration-normal) var(--ease-out) both;
}

html.motion-ready body.auth-gate-enter .auth-gate-top-home,
html.motion-ready body.auth-gate-enter .auth-gate-brand,
html.motion-ready body.auth-gate-enter .auth-gate-home {
  animation: page-enter var(--duration-fast) var(--ease-out) both;
}

.reveal-on-scroll,
.motion-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.55s var(--ease-out),
    transform 0.55s var(--ease-out);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed,
.motion-reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
  will-change: auto;
}

.motion-stagger-item {
  opacity: 1;
  transform: none;
}

.motion-stagger.is-revealed .motion-stagger-item {
  opacity: 1;
  transform: translateY(0);
  will-change: auto;
}

/* Soft interactive lift across catalogs and CTAs */
html.motion-ready .studio-card,
html.motion-ready .home-program,
html.motion-ready .home-pathway,
html.motion-ready .splash-course,
html.motion-ready .splash-pillar,
html.motion-ready .contact-card {
  transition:
    transform var(--duration-normal) var(--ease-out),
    border-color var(--duration-normal) var(--ease-out),
    box-shadow var(--duration-normal) var(--ease-out),
    background-color var(--duration-normal) var(--ease-out);
}

html.motion-ready .studio-card:hover,
html.motion-ready .home-program:hover,
html.motion-ready .home-pathway:hover,
html.motion-ready .splash-course:hover,
html.motion-ready .splash-pillar:hover,
html.motion-ready .contact-card:hover {
  transform: translateY(-3px);
}

html.motion-ready .btn,
html.motion-ready .home-btn,
html.motion-ready .studio-course-start,
html.motion-ready .site-header-pill,
html.motion-ready .auth-gate-submit {
  transition:
    transform var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out),
    background-color var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out),
    color var(--duration-fast) var(--ease-out),
    opacity var(--duration-fast) var(--ease-out);
}

html.motion-ready .btn.is-pressed,
html.motion-ready .home-btn.is-pressed,
html.motion-ready .studio-course-start.is-pressed,
html.motion-ready .site-header-pill.is-pressed,
html.motion-ready .auth-gate-submit.is-pressed {
  transform: scale(0.97);
}

html.motion-ready .site-mm-feature-card {
  transition:
    transform var(--duration-normal) var(--ease-out),
    box-shadow var(--duration-normal) var(--ease-out);
}

html.motion-ready .site-mm-feature-card:hover {
  transform: translateY(-2px);
}

.content > .week-hero,
.content > header.week-hero {
  max-width: none;
}

.week-hero .badge + .badge {
  margin-left: var(--space-2);
}

.week-hero .badge {
  margin-right: var(--space-2);
}

.content > .section + .section,
.content > section.section + section.section {
  /* consistent rhythm between sections */
}

.outcome-item {
  transition:
    border-color var(--duration-normal) var(--ease-out),
    box-shadow var(--duration-normal) var(--ease-out),
    transform var(--duration-normal) var(--ease-out);
}

.outcome-item:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.course-card {
  transition:
    border-color var(--duration-normal) var(--ease-out),
    box-shadow var(--duration-normal) var(--ease-out),
    transform var(--duration-normal) var(--ease-out);
}

.course-card:hover {
  transform: translateY(-2px);
}

.hub-note {
  border-radius: var(--radius-lg);
  transition: border-color var(--duration-normal) var(--ease-out);
}

.teaching-note-panel {
  transition: box-shadow var(--duration-normal) var(--ease-out);
}

.teaching-note-panel:hover {
  box-shadow: var(--shadow-md);
}

.sidebar-footer-week {
  transition:
    border-color var(--duration-normal) var(--ease-out),
    background var(--duration-normal) var(--ease-out),
    transform var(--duration-fast) var(--ease-out);
}

.sidebar-footer-week:active {
  transform: scale(0.98);
}

.pd-lesson-card-title {
  letter-spacing: -0.015em;
}

.pd-lesson-card-grid {
  gap: var(--space-4);
}

.pd-process-step,
.pd-role-card,
.pd-tool-card,
.pd-route-card {
  transition:
    border-color var(--duration-normal) var(--ease-out),
    box-shadow var(--duration-normal) var(--ease-out),
    transform var(--duration-normal) var(--ease-out);
}

.pd-process-step:hover,
.pd-role-card:hover,
.pd-tool-card:hover,
.pd-route-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

@media (prefers-reduced-motion: reduce) {
  .app .content,
  .reveal-on-scroll,
  .motion-reveal,
  .motion-stagger-item,
  html.motion-ready body.page-enter .hub-panel,
  html.motion-ready body.page-enter .hub-shell > .hub-panel,
  html.motion-ready body.page-enter .app .content,
  html.motion-ready body.auth-gate-enter .auth-gate-panel,
  html.motion-ready body.auth-gate-enter .auth-gate-card,
  html.motion-ready body.auth-gate-enter .auth-gate-brand,
  html.motion-ready body.auth-gate-enter .auth-gate-home {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .card:hover,
  .pd-lesson-card:hover,
  .outcome-item:hover,
  .week-row:hover,
  .course-card:hover,
  .pd-process-step:hover,
  .pd-role-card:hover,
  .pd-tool-card:hover,
  html.motion-ready .studio-card:hover,
  html.motion-ready .home-program:hover,
  html.motion-ready .home-pathway:hover,
  html.motion-ready .splash-course:hover,
  html.motion-ready .splash-pillar:hover,
  html.motion-ready .contact-card:hover,
  html.motion-ready .site-mm-feature-card:hover,
  html.motion-ready .btn.is-pressed,
  html.motion-ready .home-btn.is-pressed,
  html.motion-ready .studio-course-start.is-pressed,
  html.motion-ready .site-header-pill.is-pressed,
  html.motion-ready .auth-gate-submit.is-pressed {
    transform: none !important;
  }
  .pd-route-card:hover {
    transform: none;
  }

  .btn:active {
    transform: none;
  }
}

/* Touch / coarse pointers: skip hover lifts that feel sticky on mobile */
@media (hover: none), (pointer: coarse) {
  .card:hover,
  .pd-lesson-card:hover,
  .outcome-item:hover,
  .week-row:hover,
  .course-card:hover,
  .pd-process-step:hover,
  .pd-role-card:hover,
  .pd-tool-card:hover,
  .pd-route-card:hover {
    transform: none;
  }
}

/* Heavy Week 2 lesson: keep layout stable and avoid paint thrash */
.content--week02-lesson .pd-lesson-section,
.content--week02-lesson .pd-platform-tabs--deep,
.content--week02-lesson .pd-anatomy {
  contain: layout style;
}

.content--week02-lesson .pd-lesson-card:hover,
.content--week02-lesson .pd-process-step:hover,
.content--week02-lesson .pd-role-card:hover {
  transform: none;
}

/* ── Premium sign-in (design tokens: src/lib/design-tokens.ts) ── */

.hub-page--auth-premium {
  margin: 0;
  min-height: 100dvh;
  background: var(--auth-canvas);
  color: var(--auth-input-text);
  overflow-x: hidden;
}

.hub-page--auth-premium .ambient,
.hub-page--auth-premium .site-header,
.hub-page--auth-premium .hub-footer,
.hub-page--auth-premium .home-foot,
.hub-page--auth-premium .hub-shell,
.hub-page--auth-premium .hub-panel {
  display: none;
}

.auth-premium {
  display: grid;
  grid-template-columns: var(--auth-rail-width) minmax(0, 1fr);
  min-height: 100dvh;
  background: var(--auth-canvas);
}

.auth-premium-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) 0 var(--space-5);
  border-right: 1px solid var(--auth-rail-border);
  background: var(--auth-rail-bg);
}

.auth-premium-rail-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  text-decoration: none;
}

.auth-premium-rail-logo-mark {
  width: 1.65rem;
  height: 1.65rem;
  background-color: var(--auth-logo-mark);
  mask: url('../images/talodabi-logo.svg') center / contain no-repeat;
  -webkit-mask: url('../images/talodabi-logo.svg') center / contain no-repeat;
}

.auth-premium-rail-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.auth-premium-rail-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-sm);
  color: var(--auth-rail-icon);
  text-decoration: none;
  transition:
    color var(--duration-fast) var(--ease-out),
    background var(--duration-fast) var(--ease-out);
}

.auth-premium-rail-link:hover {
  color: var(--auth-rail-icon-hover);
  background: var(--auth-rail-icon-hover-bg);
}

.auth-premium-rail-profile {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--auth-rail-profile-border);
  background: var(--auth-rail-profile-bg);
  text-decoration: none;
}

.auth-premium-rail-initials {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--auth-heading);
}

.auth-premium-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  padding: var(--space-7) var(--space-5) var(--space-6);
}

.auth-premium-glow {
  position: absolute;
  top: 0;
  left: 50%;
  width: var(--auth-glow-width);
  height: var(--auth-glow-height);
  transform: translateX(-50%);
  background: radial-gradient(
    ellipse 80% 100% at 50% 0%,
    var(--auth-glow-inner) 0%,
    var(--auth-glow-mid) 35%,
    transparent 72%
  );
  pointer-events: none;
}

.auth-premium-form-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--auth-form-max);
  text-align: center;
}

.auth-premium-title {
  margin: 0 0 var(--space-3);
  font-family: var(--font-sans);
  font-size: clamp(1.65rem, 4.5vw, 2.35rem);
  font-weight: 600;
  line-height: var(--line-tight);
  letter-spacing: -0.03em;
  color: var(--auth-heading);
}

.auth-premium-legal {
  margin: 0 0 var(--space-6);
  font-size: 0.8125rem;
  line-height: var(--line-snug);
  color: var(--auth-muted);
}

.auth-premium-legal a {
  color: var(--auth-link);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.auth-premium-legal a:hover {
  color: var(--auth-link-hover);
}

.auth-premium-oauth-group {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.35rem;
}

.auth-premium-oauth {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  width: 100%;
  min-height: var(--auth-control-height);
  padding: var(--space-3) var(--space-4);
  border: none;
  border-radius: var(--radius-pill);
  background: var(--auth-oauth-bg);
  color: var(--auth-oauth-fg);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out),
    opacity var(--duration-fast) var(--ease-out);
}

.auth-premium-oauth:hover {
  box-shadow: var(--auth-oauth-hover-shadow);
  transform: translateY(-1px);
}

.auth-premium-oauth:active {
  transform: scale(0.99);
}

.auth-premium-form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  text-align: left;
}

.auth-premium-field {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-premium-field-icon {
  position: absolute;
  left: var(--space-4);
  display: flex;
  color: var(--auth-input-icon);
  pointer-events: none;
}

.auth-premium-field--password .auth-premium-password-toggle {
  position: absolute;
  right: var(--space-3);
  padding: var(--space-1) var(--space-2);
  border: none;
  background: transparent;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--auth-muted);
  cursor: pointer;
}

.auth-premium-field--password .auth-premium-password-toggle:hover {
  color: var(--auth-link-hover);
}

.auth-premium-input {
  width: 100%;
  min-height: var(--auth-control-height);
  padding: var(--space-3) var(--space-4) var(--space-3) 2.65rem;
  border: 1px solid var(--auth-input-border);
  border-radius: var(--radius);
  background: var(--auth-input-bg);
  color: var(--auth-input-text);
  font: inherit;
  font-size: 0.9375rem;
  outline: none;
  transition:
    border-color var(--duration-fast) var(--ease-out),
    background var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out);
}

.auth-premium-field--password .auth-premium-input {
  padding-right: 3.5rem;
}

.auth-premium-input::placeholder {
  color: var(--auth-placeholder);
  text-transform: lowercase;
}

.auth-premium-input:focus {
  border-color: var(--auth-input-border-focus);
  background: var(--auth-input-bg-focus);
  box-shadow: 0 0 0 3px var(--auth-input-focus-ring);
}

.auth-premium-submit {
  width: 100%;
  min-height: var(--auth-control-height);
  margin-top: var(--space-1);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--auth-submit-border);
  border-radius: var(--radius);
  background: var(--auth-submit-bg);
  color: var(--auth-submit-text);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: not-allowed;
  transition:
    background var(--duration-fast) var(--ease-out),
    color var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out),
    transform var(--duration-fast) var(--ease-out);
}

.auth-premium-submit:not(:disabled) {
  background: var(--auth-submit-bg-enabled);
  border-color: var(--auth-submit-border-enabled);
  color: var(--auth-submit-text-enabled);
  cursor: pointer;
}

.auth-premium-submit:not(:disabled):hover {
  background: var(--surface-raised);
  color: var(--auth-heading);
}

.auth-premium-submit:not(:disabled):active {
  transform: scale(0.99);
}

.auth-premium-status {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  text-align: center;
}

.auth-premium-status--info {
  color: var(--auth-status-info);
}

.auth-premium-status--warn {
  color: var(--auth-status-warn);
}

.auth-premium-alt {
  margin: var(--space-5) 0 0;
  font-size: 0.875rem;
  color: var(--auth-muted);
}

.auth-premium-alt a {
  color: var(--auth-link);
  font-weight: 600;
  text-decoration: none;
}

.auth-premium-alt a:hover {
  color: var(--auth-link-hover);
  text-decoration: underline;
}

.auth-premium-close {
  position: relative;
  z-index: 1;
  margin-top: var(--space-7);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--auth-muted-strong);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

.auth-premium-close:hover {
  color: var(--auth-link-hover);
}

@media (max-width: 640px) {
  .auth-premium {
    grid-template-columns: var(--auth-rail-width-sm) minmax(0, 1fr);
  }

  .auth-premium-rail-link {
    width: 2.25rem;
    height: 2.25rem;
  }

  .auth-premium-stage {
    padding: 2rem 1rem 1.5rem;
  }

  .auth-premium-title {
    font-size: 1.55rem;
  }
}

/* ── Auth gate · homepage design system (Outfit / Work Sans / home glows) ── */

html:has(body.hub-page--auth-gate) {
  height: 100%;
  overflow: hidden;
}

body.hub-page.hub-page--auth-gate.home-page {
  margin: 0;
  min-height: 100%;
  height: 100%;
  overflow: hidden;
}

.hub-page--auth-gate.home-page {
  /* Re-assert homepage canvas (bootstrap body inherit can mute it) */
  background-color: var(--home-bg, #ebebeb);
  background-image:
    radial-gradient(ellipse 55% 45% at 0% 0%, color-mix(in srgb, var(--home-glow-a, #9fd6d4) 55%, transparent), transparent 60%),
    radial-gradient(ellipse 50% 40% at 100% 0%, color-mix(in srgb, var(--home-glow-b, #d4e86a) 50%, transparent), transparent 55%),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 2px,
      rgba(0, 0, 0, 0.015) 2px,
      rgba(0, 0, 0, 0.015) 3px
    );
  color: var(--home-ink, #0a0a0a);
  font-family: var(--home-font-body, inherit);
}

[data-theme='dark'] .hub-page--auth-gate.home-page {
  background-image:
    radial-gradient(ellipse 55% 45% at 0% 0%, color-mix(in srgb, var(--home-glow-a, #3d7a78) 28%, transparent), transparent 62%),
    radial-gradient(ellipse 50% 40% at 100% 0%, color-mix(in srgb, var(--home-glow-b, #6a7a28) 22%, transparent), transparent 58%),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 2px,
      rgba(255, 255, 255, 0.022) 2px,
      rgba(255, 255, 255, 0.022) 3px
    );
}

.hub-page--auth-gate .auth-gate-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100dvh;
  max-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.hub-page--auth-gate .auth-gate-top {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem clamp(1.25rem, 4vw, 2rem);
}

.hub-page--auth-gate .auth-gate-top-home {
  font-family: var(--home-font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--home-ink);
  text-decoration: none;
  transition: opacity 0.18s ease;
}

.hub-page--auth-gate .auth-gate-top-home:hover {
  opacity: 0.72;
}

.hub-page--auth-gate .auth-gate-top-home:focus-visible {
  outline: 2px solid var(--home-ink);
  outline-offset: 4px;
  border-radius: 4px;
}

.hub-page--auth-gate .auth-gate-atmosphere {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hub-page--auth-gate .auth-gate-atmosphere-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(56px);
  opacity: 0.85;
  animation: home-orb-drift 11s ease-in-out infinite;
}

.hub-page--auth-gate .auth-gate-atmosphere-orb--a {
  top: -4%;
  left: -4%;
  width: min(26rem, 68vw);
  height: min(26rem, 68vw);
  background: color-mix(in srgb, var(--home-glow-a) 70%, transparent);
}

.hub-page--auth-gate .auth-gate-atmosphere-orb--b {
  top: 8%;
  right: -8%;
  width: min(24rem, 62vw);
  height: min(24rem, 62vw);
  background: color-mix(in srgb, var(--home-glow-b) 65%, transparent);
  animation-direction: reverse;
  animation-duration: 13s;
}

.hub-page--auth-gate .auth-gate-theme-wrap {
  position: static;
}

.hub-page--auth-gate .auth-gate-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  min-height: 2.75rem;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--home-border);
  background: color-mix(in srgb, var(--home-surface) 80%, transparent);
  color: var(--home-muted);
  cursor: pointer;
  backdrop-filter: blur(10px);
  box-shadow: none;
  transition:
    color 0.18s ease,
    border-color 0.18s ease,
    background-color 0.18s ease;
}

.hub-page--auth-gate .auth-gate-theme-toggle:hover {
  color: var(--home-ink);
  background: var(--home-surface);
}

.hub-page--auth-gate .auth-gate-theme-toggle:focus-visible {
  outline: 2px solid var(--home-ink);
  outline-offset: 3px;
}

.hub-page--auth-gate .auth-gate-copyright {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  margin: 0;
  padding: 0.75rem clamp(1.25rem, 4vw, 2rem) 1.5rem;
  text-align: center;
  font-family: var(--home-font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--home-muted);
}

.hub-page--auth-gate .auth-gate {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 0 auto;
  padding: clamp(0.5rem, 1.5vh, 0.85rem) clamp(1.25rem, 4vw, 2rem) clamp(1.25rem, 3vh, 1.75rem);
  box-sizing: border-box;
}

.hub-page--auth-gate .auth-gate-panel,
.hub-page--auth-gate .auth-gate-card {
  width: min(100%, 24rem);
  margin-inline: auto;
  padding: 2.15rem 1.75rem 1.85rem;
  background: var(--home-surface, #ffffff);
  border: 1px solid var(--home-border, rgba(0, 0, 0, 0.1));
  border-radius: 1.25rem;
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.07),
    0 2px 0 rgba(255, 255, 255, 0.55) inset;
  box-sizing: border-box;
  animation: home-hero-rise 0.75s cubic-bezier(0.16, 1, 0.3, 1) both;
}

[data-theme='dark'] .hub-page--auth-gate .auth-gate-panel,
[data-theme='dark'] .hub-page--auth-gate .auth-gate-card {
  box-shadow:
    0 22px 56px rgba(0, 0, 0, 0.45),
    0 1px 0 rgba(255, 255, 255, 0.06) inset;
}

.hub-page--auth-gate .auth-gate-header {
  text-align: left;
  margin-bottom: 1rem;
}

.hub-page--auth-gate .auth-gate-local-note {
  display: none;
  margin: 0 0 0.85rem;
  padding: 0.5rem 0.65rem;
  font-family: var(--home-font-body);
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--home-muted);
  background: color-mix(in srgb, var(--accent, #6e51e0) 8%, var(--home-surface));
  border: 1px solid color-mix(in srgb, var(--accent, #6e51e0) 18%, transparent);
  border-radius: 0.65rem;
}

html[data-local-dev] .hub-page--auth-gate .auth-gate-local-note {
  display: block;
}

.hub-page--auth-gate .auth-gate-local-note strong {
  color: var(--home-ink);
  font-weight: 600;
}

.hub-page--auth-gate .auth-gate-eyebrow {
  margin: 0 0 0.65rem;
  font-family: var(--home-font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--home-muted);
}

.hub-page--auth-gate .auth-gate-title {
  margin: 0 0 0.55rem;
  font-family: var(--home-font-display);
  font-size: clamp(2.15rem, 6vw, 2.75rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--home-ink);
}

.hub-page--auth-gate .auth-gate-subtitle {
  margin: 0;
  max-width: none;
  font-family: var(--home-font-body);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--home-muted);
}

.hub-page--auth-gate .auth-gate-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.hub-page--auth-gate .auth-gate-fields {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hub-page--auth-gate .auth-gate-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-align: left;
}

.hub-page--auth-gate .auth-gate-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.hub-page--auth-gate .auth-gate-label {
  position: static;
  width: auto;
  height: auto;
  padding: 0;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  border: 0;
  font-family: var(--home-font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--home-ink);
}

.hub-page--auth-gate .auth-gate-forgot {
  font-family: var(--home-font-body);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--home-muted);
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: color 0.18s ease;
}

.hub-page--auth-gate .auth-gate-forgot:hover {
  color: var(--accent, #6e51e0);
}

.hub-page--auth-gate .auth-gate-forgot:focus-visible {
  outline: 2px solid var(--home-ink);
  outline-offset: 2px;
  border-radius: 2px;
}

.hub-page--auth-gate .auth-gate-forgot-panel {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.25rem;
}

.hub-page--auth-gate .auth-gate-forgot-panel[hidden] {
  display: none;
}

.hub-page--auth-gate .auth-gate-forgot-title {
  margin: 0;
  font-family: var(--home-font-display, var(--home-font-body));
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--home-ink);
}

.hub-page--auth-gate .auth-gate-forgot-lead {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--home-muted);
}

.hub-page--auth-gate .auth-gate-forgot-back {
  font-family: var(--home-font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--home-muted);
  background: none;
  border: none;
  padding: 0.35rem 0 0;
  cursor: pointer;
  text-align: center;
}

.hub-page--auth-gate .auth-gate-forgot-back:hover {
  color: var(--accent, #6e51e0);
}

.hub-page--auth-gate .auth-gate-input {
  display: block;
  width: 100%;
  height: 3rem;
  min-height: 3rem;
  padding: 0 1rem;
  font-family: var(--home-font-body);
  font-size: 0.95rem;
  color: var(--home-ink);
  background: var(--home-bg);
  border: 1px solid var(--home-border);
  border-radius: 0.85rem;
  box-sizing: border-box;
  transition:
    border-color 0.18s ease,
    background-color 0.18s ease,
    box-shadow 0.18s ease;
}

.hub-page--auth-gate .auth-gate-password-wrap {
  position: relative;
  display: block;
}

.hub-page--auth-gate .auth-gate-input--password {
  padding-right: 3.1rem;
}

.hub-page--auth-gate .auth-gate-input--password::-ms-reveal {
  display: none;
}

.hub-page--auth-gate .auth-gate-password-toggle {
  position: absolute;
  top: 50%;
  right: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0.55rem;
  background: transparent;
  color: var(--home-muted);
  transform: translateY(-50%);
  cursor: pointer;
  transition:
    color 0.18s ease,
    background-color 0.18s ease;
}

.hub-page--auth-gate .auth-gate-password-toggle:hover:not(:disabled) {
  color: var(--home-ink);
  background: color-mix(in srgb, var(--home-border) 45%, transparent);
}

.hub-page--auth-gate .auth-gate-password-toggle:focus-visible {
  outline: 2px solid var(--accent, #6e51e0);
  outline-offset: 2px;
}

.hub-page--auth-gate .auth-gate-password-toggle:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.hub-page--auth-gate .auth-gate-password-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.125rem;
  height: 1.125rem;
  line-height: 0;
  pointer-events: none;
}

.hub-page--auth-gate .auth-gate-password-toggle-icon .lucide-icon {
  display: block;
  width: 1.125rem;
  height: 1.125rem;
}

.hub-page--auth-gate .auth-gate-input::placeholder {
  color: color-mix(in srgb, var(--home-muted) 80%, transparent);
}

.hub-page--auth-gate .auth-gate-input:hover {
  border-color: color-mix(in srgb, var(--home-ink) 28%, transparent);
}

.hub-page--auth-gate .auth-gate-input:focus,
.hub-page--auth-gate .auth-gate-input:focus-visible {
  outline: none;
  border-color: var(--home-ink);
  background: var(--home-surface);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--home-ink) 10%, transparent);
}

/* Autofill: keep fields on-brand (Chrome paints yellow/blue otherwise) */
.hub-page--auth-gate .auth-gate-input:-webkit-autofill,
.hub-page--auth-gate .auth-gate-input:-webkit-autofill:hover,
.hub-page--auth-gate .auth-gate-input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--home-ink);
  caret-color: var(--home-ink);
  box-shadow: 0 0 0 1000px var(--home-bg) inset;
  transition: background-color 99999s ease-out;
}

/* Primary CTA · matches homepage Start learning (black pill) */
.hub-page--auth-gate button.auth-gate-submit {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3.1rem;
  height: 3.1rem;
  margin-top: 0.35rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--home-font-body, inherit);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
  text-decoration: none;
  color: #ffffff;
  background: #0a0a0a;
  border: 1px solid #0a0a0a;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: none;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.15s ease,
    opacity 0.2s ease;
}

[data-theme='dark'] .hub-page--auth-gate button.auth-gate-submit {
  color: #0a0a0a;
  background: #f4f4f5;
  border-color: #f4f4f5;
}

.hub-page--auth-gate button.auth-gate-submit:hover:not(:disabled) {
  background: #2a2a2a;
  border-color: #2a2a2a;
  transform: translateY(-1px);
}

[data-theme='dark'] .hub-page--auth-gate button.auth-gate-submit:hover:not(:disabled) {
  background: #ffffff;
  border-color: #ffffff;
}

.hub-page--auth-gate button.auth-gate-submit:active:not(:disabled) {
  transform: translateY(0);
}

.hub-page--auth-gate button.auth-gate-submit:focus-visible {
  outline: 2px solid var(--home-ink, #0a0a0a);
  outline-offset: 3px;
}

.hub-page--auth-gate button.auth-gate-submit:disabled {
  color: rgba(255, 255, 255, 0.72);
  background: #0a0a0a;
  border-color: #0a0a0a;
  opacity: 0.38;
  cursor: not-allowed;
  transform: none;
}

[data-theme='dark'] .hub-page--auth-gate button.auth-gate-submit:disabled {
  color: rgba(10, 10, 10, 0.55);
  background: #f4f4f5;
  border-color: #f4f4f5;
  opacity: 0.4;
}

.hub-page--auth-gate .auth-gate-status {
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  font-family: var(--home-font-body);
  font-size: 0.85rem;
  line-height: 1.45;
  text-align: left;
  border-radius: 0.85rem;
  border: 1px solid transparent;
}

.hub-page--auth-gate .auth-gate-status[hidden] {
  display: none !important;
  margin: 0;
  padding: 0;
  border: 0;
}

.hub-page--auth-gate .auth-gate-status--info {
  color: var(--home-ink);
  background: color-mix(in srgb, var(--accent, #6e51e0) 12%, var(--home-surface));
  border-color: color-mix(in srgb, var(--accent, #6e51e0) 22%, transparent);
}

.hub-page--auth-gate .auth-gate-status--warn {
  color: #7a4a00;
  background: color-mix(in srgb, #fbbf24 18%, var(--home-surface));
  border-color: color-mix(in srgb, #fbbf24 40%, transparent);
}

[data-theme='dark'] .hub-page--auth-gate .auth-gate-status--warn {
  color: #fde68a;
  background: color-mix(in srgb, #fbbf24 12%, var(--home-surface));
}

.hub-page--auth-gate .auth-gate-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.35rem;
  margin-top: 1.35rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--home-border);
  text-align: left;
  font-family: var(--home-font-body);
  font-size: 0.9rem;
  line-height: 1.45;
}

.hub-page--auth-gate .auth-gate-footer-prompt {
  color: var(--home-muted);
}

.hub-page--auth-gate .auth-gate-footer-sep,
.hub-page--auth-gate .auth-gate-note {
  display: none;
}

.hub-page--auth-gate .auth-gate-link {
  font-size: inherit;
  font-weight: 700;
  color: var(--accent, #6e51e0);
  text-decoration: none;
  transition: color 0.18s ease;
}

.hub-page--auth-gate .auth-gate-link:hover {
  color: var(--accent-hover, #5a44c4);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.hub-page--auth-gate .auth-gate-link:focus-visible {
  outline: 2px solid var(--home-ink);
  outline-offset: 3px;
  border-radius: 2px;
}

@media (max-height: 760px) {
  .hub-page--auth-gate .auth-gate-title {
    font-size: clamp(1.65rem, 5vw, 2rem);
    margin-bottom: 0.35rem;
  }

  .hub-page--auth-gate .auth-gate-panel,
  .hub-page--auth-gate .auth-gate-card {
    padding: 1.35rem 1.25rem 1.15rem;
  }

  .hub-page--auth-gate .auth-gate-header {
    margin-bottom: 0.75rem;
  }

  .hub-page--auth-gate .auth-gate-form {
    gap: 0.85rem;
  }
}

@media (max-width: 480px) {
  .hub-page--auth-gate .auth-gate-panel,
  .hub-page--auth-gate .auth-gate-card {
    padding: 1.5rem 1.15rem 1.35rem;
    border-radius: 1rem;
  }

  .hub-page--auth-gate .auth-gate-title {
    font-size: 2rem;
  }
}

.checkout-panel,
.studio-apply {
  max-width: 36rem;
}

.checkout-sku {
  margin: var(--space-6) 0;
  padding: var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-raised);
}

.checkout-sku-kind {
  margin: 0 0 var(--space-2);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.checkout-sku-title {
  margin: 0 0 var(--space-2);
  font-size: 1.25rem;
}

.checkout-sku-desc {
  margin: 0 0 var(--space-3);
  color: var(--text-muted);
}

.checkout-sku-price {
  margin: 0;
  font-weight: 600;
  font-size: 1.125rem;
}

.checkout-actions,
.studio-apply-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.studio-apply-form .auth-gate-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.hub-shell--narrow {
  max-width: 40rem;
  margin-inline: auto;
}

/* Founders Studio · Production Stack Playbook (teachable layout) */
.hub-panel--playbook {
  max-width: 52rem;
}

.hub-page--founders-playbook .hub-section {
  margin-top: 2.75rem;
  padding-top: 0.25rem;
}

.hub-page--founders-playbook .hub-section + .hub-section {
  border-top: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  padding-top: 2.5rem;
  margin-top: 2.5rem;
}

.hub-page--founders-playbook .founders-part {
  border-top: none;
  margin-top: 3.25rem;
  padding: 1.25rem 1.35rem;
  background: color-mix(in srgb, var(--surface, transparent) 80%, var(--bg));
  border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  border-radius: var(--radius-md, 10px);
}

.hub-page--founders-playbook .founders-part .hub-section-head {
  margin-bottom: 0.65rem;
}

.hub-page--founders-playbook .founders-part .hub-section-head h2 {
  font-size: 1.15rem;
}

.hub-page--founders-playbook .founders-layer {
  scroll-margin-top: 5.5rem;
}

.hub-page--founders-playbook .founders-layer .hub-section-head h2 {
  font-size: 1.28rem;
  letter-spacing: -0.01em;
}

.hub-prose--founders-playbook {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.hub-prose--founders-playbook > p {
  margin: 0;
  max-width: 62ch;
}

.hub-prose--founders-playbook ul,
.hub-prose--founders-playbook ol {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--text-muted);
  max-width: 62ch;
}

.hub-prose--founders-playbook li {
  margin-bottom: 0.45rem;
  line-height: 1.55;
  font-size: 0.95rem;
}

.hub-prose--founders-playbook li:last-child {
  margin-bottom: 0;
}

.hub-prose--founders-playbook .table-wrap {
  margin: 0.25rem 0 0;
}

.founders-teach-block {
  margin: 0;
  padding: 0.95rem 1.05rem;
  border-radius: var(--radius-md, 10px);
  border: 1px solid color-mix(in srgb, var(--border) 75%, transparent);
  background: color-mix(in srgb, var(--bg) 55%, transparent);
}

.founders-teach-block + .founders-teach-block {
  margin-top: 0.15rem;
}

.founders-teach-label,
.founders-teach-h3 {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
}

.founders-teach-h3 {
  font-size: 0.72rem;
}

.founders-teach-block > p {
  margin: 0;
  max-width: 60ch;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.founders-teach-block > ul,
.founders-teach-block > ol {
  margin: 0.15rem 0 0;
  padding-left: 1.15rem;
  max-width: 60ch;
}

.founders-teach-block > ul li,
.founders-teach-block > ol li {
  margin-bottom: 0.4rem;
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.founders-teach-block > ul li:last-child,
.founders-teach-block > ol li:last-child {
  margin-bottom: 0;
}

.founders-teach-block--definition {
  border-left: 3px solid var(--text);
}

.founders-teach-block--why {
  border-left: 3px solid color-mix(in srgb, var(--accent, #c45c26) 85%, var(--text));
}

.founders-teach-block--how {
  border-left: 3px solid color-mix(in srgb, var(--text) 35%, transparent);
  background: color-mix(in srgb, var(--surface, transparent) 70%, var(--bg));
}

.founders-teach-block--ai {
  border-left: 3px solid color-mix(in srgb, var(--brand, var(--accent)) 70%, transparent);
  background: color-mix(in srgb, var(--brand, var(--accent)) 6%, var(--bg));
}

.founders-toc {
  margin-top: 2.75rem;
  padding-top: 2.25rem;
  border-top: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  scroll-margin-top: 5.5rem;
}

.founders-toc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem 0.55rem;
}

.founders-toc-link {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  background: color-mix(in srgb, var(--bg) 40%, transparent);
  transition: border-color 120ms ease, background 120ms ease;
}

.founders-toc-link:hover {
  border-color: color-mix(in srgb, var(--accent, var(--brand)) 45%, var(--border));
  background: color-mix(in srgb, var(--surface, transparent) 80%, var(--bg));
}

.founders-toc-num {
  flex: 0 0 auto;
  min-width: 1.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.founders-toc-name {
  font-size: 0.86rem;
  line-height: 1.35;
  color: var(--text);
}

@media (min-width: 720px) {
  .founders-toc-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 720px) and (max-width: 1024px) {
  .hub-shell {
    padding: 1.5rem 1rem 3.25rem;
  }

  .hub-panel {
    padding: 1.75rem 1.35rem;
  }

  .studio-course-hero {
    gap: 1.5rem 1.75rem;
  }

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

@media (max-width: 560px) {
  .founders-toc-grid {
    grid-template-columns: 1fr;
  }

  .founders-teach-block {
    padding: 0.85rem 0.9rem;
  }

  .hub-page--founders-playbook .founders-part {
    padding: 1rem 1.05rem;
  }
}


/* -- Student portal (Framer-clean shell) -- */
html:has(body.portal-page:not(.tutor-dash-page)) {
  height: 100%;
  overflow: hidden;
}

.portal-page {
  --portal-bg: #f3f2ef;
  --portal-bg-elevated: #ffffff;
  --portal-surface: #ffffff;
  --portal-surface-2: #ebeae6;
  --portal-border: rgba(0, 0, 0, 0.07);
  --portal-text: #111111;
  --portal-muted: #6b6b6b;
  --portal-faint: #8a8a8a;
  --portal-hover: rgba(0, 0, 0, 0.04);
  --portal-active: rgba(0, 0, 0, 0.07);
  --portal-radius: 16px;
  --portal-radius-sm: 12px;
  --portal-radius-pill: 999px;
  --portal-sidebar-w: 15.5rem;
  --portal-cta-bg: #111111;
  --portal-cta-fg: #ffffff;
  --portal-urgent: #dc2626;
  --portal-urgent-text: #b91c1c;
  --portal-ring-track: #e6e6e6;
  --portal-ring-fill: #111111;
  --portal-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.04);

  margin: 0;
  min-height: 100vh;
  background: var(--portal-bg);
  color: var(--portal-text);
  font-family: var(--font-sans);
  color-scheme: light;
}

body.portal-page:not(.tutor-dash-page) {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

html[data-theme="dark"] .portal-page {
  --portal-bg: #0a0a0a;
  --portal-bg-elevated: #121212;
  --portal-surface: #141414;
  --portal-surface-2: #1c1c1c;
  --portal-border: rgba(255, 255, 255, 0.07);
  --portal-text: #f5f5f5;
  --portal-muted: #9a9a9a;
  --portal-faint: #6e6e6e;
  --portal-hover: rgba(255, 255, 255, 0.06);
  --portal-active: rgba(255, 255, 255, 0.1);
  --portal-cta-bg: #f5f5f5;
  --portal-cta-fg: #111111;
  --portal-urgent: #dc2626;
  --portal-urgent-text: #fecaca;
  --portal-ring-track: #2a2a2a;
  --portal-ring-fill: #f5f5f5;
  --portal-shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 12px 28px rgba(0, 0, 0, 0.28);
  color-scheme: dark;
}

.portal-shell {
  display: grid;
  grid-template-columns: var(--portal-sidebar-w) minmax(0, 1fr);
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.portal-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1rem 0.85rem 1.25rem;
  background: var(--portal-bg);
  border-right: 1px solid var(--portal-border);
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.portal-sidebar-top {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 0.15rem 0.35rem 0;
}

.portal-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--portal-text);
  padding: 0.25rem 0.2rem;
}

.portal-brand-copy {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 0;
}

.portal-brand-kicker {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--portal-muted);
}

.portal-role-note {
  margin: 0 0.35rem;
  padding: 0.55rem 0.65rem;
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--portal-muted);
  background: var(--portal-surface-2);
  border-radius: 0.55rem;
}

.portal-brand-mark {
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--portal-text);
  color: var(--portal-bg);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 0;
}

.portal-brand-name {
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: -0.01em;
}

.portal-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  background: var(--portal-surface-2);
  border: 1px solid transparent;
  color: var(--portal-muted);
}

.portal-search:focus-within {
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--portal-text);
}

.portal-search-icon {
  display: inline-flex;
  flex-shrink: 0;
  opacity: 0.75;
}

.portal-search-input {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--portal-text);
  font: inherit;
  font-size: 0.88rem;
  width: 100%;
  outline: none;
  padding: 0;
}

.portal-search-input::placeholder {
  color: var(--portal-faint);
}

.portal-nav-group {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.portal-nav-heading {
  margin: 0.35rem 0.55rem 0.4rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--portal-faint);
}

.portal-nav-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  color: var(--portal-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.14s ease, color 0.14s ease;
}

.portal-nav-link:hover {
  background: var(--portal-hover);
  color: var(--portal-text);
}

.portal-nav-link--active {
  background: var(--portal-active);
  color: var(--portal-text);
}

.portal-nav-icon {
  display: inline-flex;
  opacity: 0.9;
}

.portal-sidebar-foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.5rem 0.35rem 0;
  border-top: 1px solid var(--portal-border);
  padding-top: 0.85rem;
}

.portal-foot-label {
  margin: 0 0 0.15rem;
  padding: 0 0.7rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--portal-faint);
}

.portal-foot-note {
  margin: 0 0 0.35rem;
  padding: 0 0.7rem;
  font-size: 0.78rem;
  color: var(--portal-muted);
}

.portal-academy-link {
  font-size: 0.78rem;
  color: var(--portal-faint);
  text-decoration: none;
  padding: 0.25rem 0.7rem;
}

.portal-academy-link:hover {
  color: var(--portal-muted);
}

.portal-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background: var(--portal-bg);
}

.portal-topbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--portal-border);
  background: var(--portal-bg);
  position: sticky;
  top: 0;
  z-index: 5;
  flex-shrink: 0;
}

.portal-menu-btn {
  display: none;
  appearance: none;
  border: 0;
  background: var(--portal-surface-2);
  border-radius: 10px;
  width: 2.15rem;
  height: 2.15rem;
  place-items: center;
  cursor: pointer;
  color: var(--portal-text);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.portal-top-tabs {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.portal-top-tabs::-webkit-scrollbar {
  display: none;
}

.portal-top-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.8rem;
  border-radius: var(--portal-radius-pill);
  color: var(--portal-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.14s ease, color 0.14s ease;
}

.portal-top-tab:hover {
  color: var(--portal-text);
  background: var(--portal-hover);
}

.portal-top-tab--active {
  background: var(--portal-surface-2);
  color: var(--portal-text);
}

.portal-top-tab-count {
  color: var(--portal-faint);
  font-size: 0.78rem;
  font-weight: 500;
}

.portal-topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-left: auto;
}

.portal-theme-toggle,
.portal-notify-btn,
.portal-avatar-btn,
.portal-talo-btn,
.portal-msg-btn {
  box-sizing: border-box;
  min-height: 2.25rem;
  margin: 0;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.portal-theme-toggle,
.portal-notify-btn,
.portal-avatar-btn {
  width: 2.25rem;
  height: 2.25rem;
  min-width: 2.25rem;
  padding: 0;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.portal-theme-toggle {
  border: 1px solid var(--portal-border);
  background: var(--portal-surface-2);
  border-radius: 10px;
  color: var(--portal-text);
  cursor: pointer;
}

.portal-theme-toggle:hover {
  background: var(--portal-active);
}

.portal-topbar-meta {
  margin: 0;
  font-size: 0.8rem;
  color: var(--portal-faint);
  white-space: nowrap;
}

.portal-notify {
  position: relative;
  display: flex;
  align-items: center;
}

.portal-notify-btn {
  appearance: none;
  border: 1px solid var(--portal-border);
  background: var(--portal-surface-2);
  border-radius: 10px;
  color: var(--portal-text);
  cursor: pointer;
  position: relative;
}

.portal-notify-btn:hover,
.portal-notify.is-open .portal-notify-btn {
  background: var(--portal-active);
}

.portal-notify-btn:focus-visible {
  outline: 2px solid var(--portal-text);
  outline-offset: 2px;
}

.portal-notify-dot {
  position: absolute;
  top: 0.28rem;
  right: 0.28rem;
  min-width: 0.95rem;
  height: 0.95rem;
  padding: 0 0.2rem;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 0.58rem;
  font-weight: 700;
  line-height: 0.95rem;
  text-align: center;
  box-shadow: 0 0 0 2px var(--portal-bg);
}

.portal-notify-dot[hidden] {
  display: none !important;
}

.portal-notify-panel {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  z-index: 40;
  width: min(22rem, calc(100vw - 1.5rem));
  padding: 0.4rem;
  border-radius: 14px;
  border: 1px solid var(--portal-border);
  background: var(--portal-surface);
  box-shadow: 0 12px 32px color-mix(in srgb, #000 28%, transparent);
}

.portal-notify-panel[hidden] {
  display: none !important;
}

.portal-notify.is-open .portal-notify-panel:not([hidden]) {
  animation: portal-account-in 0.16s ease-out;
}

.portal-notify-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.7rem 0.65rem;
  border-bottom: 1px solid var(--portal-border);
  margin-bottom: 0.25rem;
}

.portal-notify-head-title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--portal-text);
}

.portal-notify-mark {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--portal-muted);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0.2rem 0.35rem;
  border-radius: 6px;
}

.portal-notify-mark:hover {
  color: var(--portal-text);
  background: var(--portal-hover);
}

.portal-notify-list {
  display: flex;
  flex-direction: column;
  max-height: 18rem;
  overflow-y: auto;
}

.portal-notify-item {
  padding: 0.7rem 0.7rem;
  border-radius: 10px;
  border-left: 2px solid transparent;
}

.portal-notify-item:not(.is-read) {
  background: var(--portal-hover);
  border-left-color: var(--portal-text);
}

.portal-notify-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.portal-notify-date {
  font-size: 0.7rem;
  color: var(--portal-faint);
  white-space: nowrap;
}

.portal-notify-title {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--portal-text);
}

.portal-notify-body {
  margin: 0.25rem 0 0;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--portal-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.portal-notify-footer {
  display: block;
  margin-top: 0.25rem;
  padding: 0.65rem 0.7rem;
  border-top: 1px solid var(--portal-border);
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--portal-text);
  text-decoration: none;
}

.portal-notify-footer:hover {
  background: var(--portal-hover);
  border-radius: 0 0 10px 10px;
}

/* Ask Talo */
.portal-talo-btn {
  appearance: none;
  border: 1px solid var(--portal-border);
  background: var(--portal-surface-2);
  border-radius: 10px;
  color: var(--portal-text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0 0.7rem 0 0.5rem;
  height: 2.25rem;
  min-width: 2.25rem;
}

.portal-talo-btn:hover,
.portal-talo-btn[aria-expanded='true'] {
  background: var(--portal-active);
  border-color: color-mix(in srgb, var(--brand, #6e51e0) 35%, var(--portal-border));
  color: var(--brand, #6e51e0);
}

.portal-talo-btn:focus-visible {
  outline: 2px solid var(--portal-text);
  outline-offset: 2px;
}

.portal-talo-btn .talo-mark {
  display: block;
  flex-shrink: 0;
}

.portal-talo-btn-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .portal-talo-btn-label,
  .portal-msg-btn-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .portal-talo-btn,
  .portal-msg-btn {
    padding: 0;
    width: 2.25rem;
  }
}

.talo-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: color-mix(in srgb, #0c0c0e 42%, transparent);
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
}

.talo-backdrop[hidden] {
  display: none !important;
}

.talo-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  width: min(26rem, 100vw);
  height: 100dvh;
  background: var(--portal-surface, var(--portal-bg));
  color: var(--portal-text);
  border-left: 1px solid var(--portal-border);
  box-shadow: -12px 0 40px color-mix(in srgb, #0c0c0e 18%, transparent);
  transform: translateX(0);
}

.talo-panel[hidden] {
  display: none !important;
}

.talo-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.1rem 1.1rem 0.9rem;
  border-bottom: 1px solid var(--portal-border);
}

.talo-panel-brand {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  min-width: 0;
}

.talo-panel-brand .talo-mark {
  flex-shrink: 0;
  margin-top: 0.1rem;
  color: var(--brand, #6e51e0);
}

.talo-panel-title {
  margin: 0;
  font-family: Outfit, system-ui, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.talo-panel-lead {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--portal-faint);
}

.talo-panel-close {
  appearance: none;
  border: 1px solid var(--portal-border);
  background: var(--portal-surface-2);
  color: var(--portal-text);
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.talo-panel-close:hover {
  background: var(--portal-active);
}

.talo-panel-body {
  flex: 1;
  overflow: auto;
  padding: 1rem 1.1rem;
}

.talo-empty-title {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--portal-faint);
}

.talo-chip-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.talo-chip {
  appearance: none;
  text-align: left;
  border: 1px solid var(--portal-border);
  background: var(--portal-surface-2);
  color: var(--portal-text);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.35;
  cursor: pointer;
}

.talo-chip:hover {
  border-color: color-mix(in srgb, var(--brand, #6e51e0) 40%, var(--portal-border));
  background: var(--portal-active);
}

.talo-composer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.55rem 0.65rem;
  padding: 0.9rem 1.1rem 1.15rem;
  border-top: 1px solid var(--portal-border);
  background: var(--portal-bg);
}

.talo-input {
  grid-column: 1 / -1;
  width: 100%;
  resize: none;
  border: 1px solid var(--portal-border);
  border-radius: 12px;
  background: var(--portal-surface-2);
  color: var(--portal-text);
  padding: 0.7rem 0.8rem;
  font: inherit;
  font-size: 0.92rem;
  line-height: 1.4;
}

.talo-input:focus-visible {
  outline: 2px solid var(--brand, #6e51e0);
  outline-offset: 1px;
}

.talo-send {
  justify-self: end;
  min-height: 2.35rem;
  padding-inline: 1rem;
}

.talo-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.talo-composer-note {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--portal-faint);
}

body.talo-open {
  overflow: hidden;
}

/* Message Talodabi (human support · email) */
.portal-msg-btn {
  appearance: none;
  border: 1px solid var(--portal-border);
  background: var(--portal-surface-2);
  border-radius: 10px;
  color: var(--portal-text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0 0.7rem 0 0.5rem;
  height: 2.25rem;
  min-width: 2.25rem;
}

.portal-msg-btn:hover,
.portal-msg-btn[aria-expanded='true'] {
  background: var(--portal-active);
  border-color: color-mix(in srgb, var(--brand, #6e51e0) 35%, var(--portal-border));
  color: var(--brand, #6e51e0);
}

.portal-msg-btn:focus-visible {
  outline: 2px solid var(--portal-text);
  outline-offset: 2px;
}

.portal-msg-btn-icon {
  display: block;
  flex-shrink: 0;
}

.portal-msg-btn-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.portal-msg-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: color-mix(in srgb, #0c0c0e 42%, transparent);
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
}

.portal-msg-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  width: min(26rem, 100vw);
  height: 100dvh;
  background: var(--portal-surface, var(--portal-bg));
  color: var(--portal-text);
  border-left: 1px solid var(--portal-border);
  box-shadow: -12px 0 40px color-mix(in srgb, #0c0c0e 18%, transparent);
}

.portal-msg-panel[hidden],
.portal-msg-backdrop[hidden] {
  display: none !important;
}

.portal-msg-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.1rem 1.1rem 0.9rem;
  border-bottom: 1px solid var(--portal-border);
}

.portal-msg-brand {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  min-width: 0;
}

.portal-msg-brand .portal-msg-mark {
  flex-shrink: 0;
  margin-top: 0.1rem;
  color: var(--brand, #6e51e0);
}

.portal-msg-title {
  margin: 0;
  font-family: Outfit, system-ui, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.portal-msg-lead {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--portal-faint);
}

.portal-msg-close {
  appearance: none;
  border: 1px solid var(--portal-border);
  background: var(--portal-surface-2);
  color: var(--portal-text);
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.portal-msg-close:hover {
  background: var(--portal-active);
}

.portal-msg-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.1rem;
  flex: 1;
  overflow: auto;
}

.portal-msg-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.portal-msg-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--portal-muted);
}

.portal-msg-select,
.portal-msg-textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--portal-border);
  border-radius: 10px;
  background: var(--portal-surface-2);
  color: var(--portal-text);
  font: inherit;
  padding: 0.65rem 0.75rem;
}

.portal-msg-select:focus,
.portal-msg-textarea:focus {
  outline: 2px solid var(--portal-text);
  outline-offset: 2px;
}

.portal-msg-textarea {
  min-height: 8.5rem;
  resize: vertical;
  line-height: 1.45;
}

.portal-msg-actions {
  display: flex;
  justify-content: flex-end;
}

.portal-msg-actions .btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.portal-msg-status {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--portal-faint);
}

.portal-msg-status.is-error {
  color: #b42318;
}

body.portal-msg-open {
  overflow: hidden;
}

.portal-account {
  position: relative;
  display: flex;
  align-items: center;
}

.portal-avatar-btn {
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 999px;
  line-height: 0;
  color: var(--portal-text);
  overflow: hidden;
}

.portal-avatar-btn:hover,
.portal-account.is-open .portal-avatar-btn {
  background: transparent;
}

.portal-avatar-btn:focus-visible {
  outline: 2px solid var(--portal-text);
  outline-offset: 2px;
}

.portal-avatar-btn .portal-avatar,
.portal-avatar {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  background: var(--portal-surface-2);
  color: var(--portal-text);
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 0.8rem;
  border: 1px solid var(--portal-border);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  box-sizing: border-box;
}

.portal-avatar-btn:hover .portal-avatar,
.portal-account.is-open .portal-avatar-btn .portal-avatar {
  border-color: color-mix(in srgb, var(--portal-text) 28%, var(--portal-border));
  box-shadow: 0 0 0 2px var(--portal-hover);
}

.portal-account-menu {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  z-index: 40;
  min-width: 13.5rem;
  padding: 0.4rem;
  border-radius: 12px;
  border: 1px solid var(--portal-border);
  background: var(--portal-surface);
  box-shadow: 0 12px 32px color-mix(in srgb, #000 28%, transparent);
}

.portal-account-menu[hidden] {
  display: none !important;
}

.portal-account.is-open .portal-account-menu:not([hidden]) {
  animation: portal-account-in 0.16s ease-out;
}

@keyframes portal-account-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.portal-account-menu-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0.7rem 0.75rem;
  border-bottom: 1px solid var(--portal-border);
  margin-bottom: 0.3rem;
}

.portal-account-menu-avatar {
  width: 2.25rem;
  height: 2.25rem;
  font-size: 0.82rem;
}

.portal-account-menu-copy {
  min-width: 0;
}

.portal-account-menu-name {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--portal-text);
  line-height: 1.3;
}

.portal-account-menu-email {
  margin: 0.15rem 0 0;
  font-size: 0.75rem;
  color: var(--portal-faint);
  line-height: 1.35;
  word-break: break-all;
}

.portal-account-menu-item {
  display: block;
  width: 100%;
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--portal-text);
  text-decoration: none;
  text-align: left;
  border-radius: 8px;
  padding: 0.55rem 0.7rem;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
}

.portal-account-menu-item:hover,
.portal-account-menu-item:focus-visible {
  background: var(--portal-hover);
  outline: none;
}

.portal-account-sign-out {
  color: var(--portal-muted);
}

.portal-account-sign-out:hover,
.portal-account-sign-out:focus-visible {
  background: color-mix(in srgb, #ef4444 12%, transparent);
  color: #ef4444;
}

.portal-content {
  padding: 1rem clamp(1rem, 2.5vw, 1.75rem) 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
  max-width: 76rem;
  margin-inline: auto;
  box-sizing: border-box;
  flex: 1 0 auto;
  min-width: 0;
  overflow: visible;
}

.portal-topbar-title {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--portal-text);
}

.portal-topbar--dashboard {
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

.portal-topbar-context {
  flex: 1;
  min-width: 0;
}

.portal-topbar-kicker {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--portal-faint);
}

.portal-page--dashboard .portal-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 1rem;
  padding-bottom: 2rem;
}

.portal-dash-hero {
  padding: 0.15rem 0.1rem 0.25rem;
}

.portal-dash-hero--compact {
  padding: 0;
  margin: 0;
}

.portal-dash-hero-copy {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  max-width: 36rem;
}

.portal-dash-kicker {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--portal-faint);
}

.portal-dash-title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(1.15rem, 2.1vw, 1.35rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
  font-weight: 650;
  color: var(--portal-text);
}

.portal-dash-title[data-portal-greeting-pending] [data-portal-first-name]:empty::after {
  content: '…';
  opacity: 0.45;
}

.portal-dash-lead {
  margin: 0;
  max-width: 32rem;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--portal-muted);
}

.portal-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

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

.portal-resume {
  margin-bottom: 0.15rem;
}

.portal-page--dashboard .portal-resume-card {
  padding: 1.2rem 1.25rem;
  border-width: 1px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

.portal-page--dashboard .portal-resume-title {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  font-weight: 600;
}

.portal-page--dashboard .portal-resume-progress-track {
  max-width: 16rem;
  height: 7px;
}

.portal-resume-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-radius: var(--portal-radius);
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--portal-accent, var(--accent)) 12%, var(--portal-surface)),
    var(--portal-surface)
  );
  border: 1px solid var(--portal-border);
  box-shadow: var(--portal-shadow);
}

.portal-resume-copy {
  flex: 1;
  min-width: 0;
}

.portal-resume-kicker {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--portal-faint);
}

.portal-resume-title {
  margin: 0 0 0.55rem;
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.3;
  color: var(--portal-text);
}

.portal-resume-progress {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.portal-resume-progress-track {
  flex: 1;
  max-width: 14rem;
  height: 6px;
  border-radius: 999px;
  background: var(--portal-surface-2);
  overflow: hidden;
}

.portal-resume-progress-bar {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--portal-accent, var(--accent));
  transition: width 0.25s ease;
}

.portal-resume-progress-label {
  flex-shrink: 0;
  font-size: 0.78rem;
  color: var(--portal-muted);
}

.portal-resume-cta {
  flex-shrink: 0;
}

.portal-continue-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1rem;
  border-radius: var(--portal-radius-sm);
  background: var(--portal-surface);
  border: 1px solid var(--portal-border);
}

.portal-continue-row-copy {
  flex: 1;
  min-width: 0;
}

.portal-continue-row-title {
  margin: 0 0 0.2rem;
  font-size: 0.95rem;
  line-height: 1.35;
}

.portal-continue-row-title a {
  color: inherit;
  text-decoration: none;
}

.portal-continue-row-title a:hover {
  text-decoration: underline;
}

.portal-continue-row-meta {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  color: var(--portal-muted);
}

.portal-continue-row-progress {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.portal-continue-row-progress-track {
  flex: 1;
  max-width: 12rem;
  height: 5px;
  border-radius: 999px;
  background: var(--portal-surface-2);
  overflow: hidden;
}

.portal-continue-row-progress-bar {
  height: 100%;
  border-radius: inherit;
  background: var(--portal-accent, var(--accent));
}

.portal-continue-row-progress-label {
  font-size: 0.72rem;
  color: var(--portal-faint);
}

.portal-continue-list .portal-continue-row + .portal-continue-row {
  margin-top: 0.55rem;
}

.portal-work-stack {
  margin: 0.75rem 0 0.85rem;
}

.portal-work-stack-track {
  display: flex;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--portal-surface-2);
}

.portal-work-stack-seg {
  flex: 0 0 0;
  min-width: 0;
  transition: flex-basis 0.25s ease;
}

.portal-work-stack-seg--graded {
  background: color-mix(in srgb, #22c55e 78%, var(--portal-surface));
}

.portal-work-stack-seg--submitted {
  background: color-mix(in srgb, var(--portal-accent, var(--accent)) 72%, var(--portal-surface));
}

.portal-work-stack-seg--pending {
  background: color-mix(in srgb, var(--portal-border) 85%, var(--portal-surface-2));
}

.portal-work-due-clear {
  margin: 0.75rem 0 0;
  font-size: 0.84rem;
  color: var(--portal-muted);
}

.portal-list-eyebrow--tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.portal-explore--collapsible.portal-explore--collapsed [data-portal-explore-body] {
  display: none;
}

.portal-explore-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.65rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--portal-border);
  border-radius: 999px;
  background: var(--portal-surface);
  color: var(--portal-muted);
  font-size: 0.82rem;
  cursor: pointer;
}

.portal-explore-toggle:hover {
  color: var(--portal-text);
  border-color: color-mix(in srgb, var(--portal-accent, var(--accent)) 35%, var(--portal-border));
}

.portal-status-row--work {
  margin-top: 0.35rem;
}

.talodabi-lang {
  position: relative;
}

.talodabi-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.15rem;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--portal-border, var(--border));
  background: var(--portal-surface, var(--surface));
  color: var(--portal-text, var(--text));
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
}

.talodabi-lang-btn:hover {
  border-color: color-mix(in srgb, var(--portal-border, var(--border)) 55%, var(--portal-text, var(--text)));
}

.talodabi-lang-icon,
.talodabi-lang-chevron {
  flex-shrink: 0;
  opacity: 0.85;
}

.talodabi-lang-label {
  max-width: 6.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.talodabi-lang-menu {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  z-index: 40;
  min-width: 10.5rem;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  border-radius: 10px;
  border: 1px solid var(--portal-border, var(--border));
  background: var(--portal-surface, var(--surface));
  box-shadow: var(--portal-shadow, 0 8px 24px rgba(0, 0, 0, 0.12));
}

.talodabi-lang-option {
  display: block;
  width: 100%;
  padding: 0.45rem 0.55rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.82rem;
  text-align: left;
  cursor: pointer;
}

.talodabi-lang-option:hover,
.talodabi-lang-option.is-active {
  background: var(--portal-surface-2, var(--surface-2));
}

.talodabi-lang-soon {
  font-size: 0.72rem;
  color: var(--portal-faint, var(--muted));
}

.portal-topbar-actions .talodabi-lang,
.teach-dash-topbar-end .talodabi-lang,
.tutor-dash-topbar-end .talodabi-lang {
  margin-right: 0.15rem;
}

.portal-locale-banner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
  margin: 0 0 0.85rem;
  padding: 0.55rem 0.55rem 0.55rem 0.75rem;
  border-radius: var(--portal-radius-sm, 8px);
  background: color-mix(in srgb, var(--portal-accent, var(--accent)) 8%, var(--portal-surface, #fff));
  border: 1px solid color-mix(in srgb, var(--portal-border, #ddd) 80%, var(--portal-accent, var(--accent)));
  color: var(--portal-muted, var(--muted));
  font-size: 0.82rem;
  line-height: 1.45;
}

.portal-locale-banner p {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
}

.portal-locale-banner-close {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  min-width: 2rem;
  min-height: 2rem;
  padding: 0;
  border-radius: var(--portal-radius-sm, 8px);
  color: var(--portal-muted, var(--muted));
}

.portal-locale-banner-close:hover {
  color: var(--portal-text, var(--text));
  background: color-mix(in srgb, var(--portal-border, #ddd) 35%, transparent);
}

.portal-locale-banner[hidden] {
  display: none !important;
}

.portal-work-due-section {
  margin-bottom: 1.25rem;
}

.portal-profile-lang {
  margin: 0.35rem 0 0.75rem;
}

.portal-profile-lang .talodabi-lang {
  display: inline-block;
}

.portal-locale-note {
  margin-top: 0.65rem;
}

.portal-stat-card {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.85rem 0.95rem 0.9rem;
  border-radius: var(--portal-radius-sm);
  background: var(--portal-surface);
  border: 1px solid var(--portal-border);
  box-shadow: var(--portal-shadow);
  text-decoration: none;
  color: inherit;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.portal-stat-card:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--portal-border) 55%, var(--portal-text));
  background: var(--portal-surface-2);
}

.portal-stat-card:focus-visible {
  outline: 2px solid var(--portal-accent, var(--accent));
  outline-offset: 2px;
}

.portal-page--dashboard .portal-stat-value {
  font-size: clamp(1.25rem, 2vw, 1.45rem);
  font-weight: 650;
}

.portal-page--dashboard .portal-stat-label {
  font-size: 0.72rem;
}

.portal-page--dashboard .portal-stat-hint {
  font-size: 0.72rem;
}

.portal-empty-panel--dashboard,
.portal-empty-panel--compact {
  width: 100%;
  max-width: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.25rem;
  padding: 1rem 1.15rem;
  border-radius: var(--portal-radius-sm);
}

.portal-empty-panel--dashboard .portal-empty-panel-icon,
.portal-empty-panel--compact .portal-empty-panel-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  flex-shrink: 0;
}

.portal-empty-panel--dashboard .portal-empty-panel-copy,
.portal-empty-panel--compact .portal-empty-panel-copy {
  flex: 1 1 12rem;
  min-width: 0;
}

.portal-empty-panel--dashboard .portal-empty-panel-title,
.portal-empty-panel--compact .portal-empty-panel-title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 600;
}

.portal-empty-panel--dashboard .portal-empty-panel-body,
.portal-empty-panel--compact .portal-empty-panel-body {
  margin: 0.2rem 0 0;
  font-size: 0.84rem;
  line-height: 1.45;
  max-width: none;
}

.portal-empty-panel--dashboard .portal-empty-panel-actions,
.portal-empty-panel--compact .portal-empty-panel-actions {
  margin: 0;
  flex: 0 0 auto;
}

.portal-explore-grid > .portal-empty-panel--compact,
.portal-list > .portal-empty-panel--compact,
[data-portal-my-courses] > .portal-empty-panel--compact,
[data-portal-my-studio] > .portal-empty-panel--compact,
[data-portal-my-library] > .portal-empty-panel--compact {
  grid-column: 1 / -1;
}

.portal-page--dashboard .portal-dash-section {
  gap: 0.65rem;
}

.portal-access-panel {
  margin: 0 0 1rem;
}

.portal-access-panel[hidden] {
  display: none !important;
}

.portal-empty-panel--access {
  width: 100%;
  max-width: none;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.75rem 1rem;
  padding: 1rem 1.15rem;
  border-radius: var(--portal-radius-sm);
}

.portal-access-meta {
  margin: 0.15rem 0 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--portal-faint);
}

.portal-empty-panel--access .portal-empty-panel-title {
  margin: 0;
  font-size: 0.98rem;
}

.portal-empty-panel--access .portal-access-meta {
  margin: 0 0 0.15rem;
  width: auto;
}

.portal-empty-panel--access .portal-empty-panel-body {
  margin: 0.15rem 0 0;
  font-size: 0.84rem;
  max-width: none;
}

.portal-empty-panel--access .portal-empty-panel-actions {
  margin: 0;
  flex: 0 0 auto;
  width: auto;
}

.portal-stat-card.is-zero .portal-stat-value {
  color: var(--portal-muted);
  font-weight: 650;
}

.portal-stat-card.is-zero .portal-stat-hint {
  color: var(--portal-faint);
}

[data-portal-learning-empty][hidden] {
  display: none !important;
}

.portal-live-panel {
  margin: 0 0 1.5rem;
}

.portal-live-status {
  padding: 1.35rem 1.4rem;
  border-radius: var(--portal-radius);
  background: var(--portal-surface);
  border: 1px solid var(--portal-border);
  box-shadow: var(--portal-shadow);
}

.portal-live-status-title {
  margin: 0.35rem 0 0.45rem;
  font-size: 1.2rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.portal-live-status-body {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--portal-muted);
  max-width: 36rem;
}

.portal-live-status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.portal-stat-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--portal-faint);
}

.portal-stat-value {
  font-size: clamp(1.65rem, 2.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--portal-text);
  font-variant-numeric: tabular-nums;
}

.portal-stat-hint {
  margin-top: 0.15rem;
  font-size: 0.78rem;
  color: var(--portal-muted);
}

.portal-dash-section {
  display: grid;
  gap: 0.85rem;
}

.portal-dash-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0 0.1rem;
}

.portal-dash-section-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--portal-text);
}

.portal-explore-lead {
  margin: 0.3rem 0 0;
  font-size: 0.88rem;
  color: var(--portal-muted);
  max-width: 36rem;
}

.portal-explore-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.portal-list.portal-explore-grid {
  display: grid;
  flex-direction: unset;
}

.portal-explore-grid .home-course-card {
  flex: none;
  width: 100%;
  min-width: 0;
  background: var(--portal-surface);
  border-color: var(--portal-border);
  box-shadow: var(--portal-shadow);
  border-radius: var(--portal-radius);
}

.portal-explore-grid .home-course-card-title a {
  color: var(--portal-text);
}

.portal-explore-grid .home-course-card-instructor,
.portal-explore-grid .home-course-card-meta {
  color: var(--portal-muted);
}

.portal-explore-grid .home-course-card-price {
  color: var(--portal-text);
}

.portal-explore-grid .home-course-card-buy {
  background: var(--portal-cta-bg);
  color: var(--portal-cta-fg);
}

.portal-explore-grid .home-course-card--owned .home-course-card-price {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--portal-muted);
}

.portal-continue-list.portal-list {
  display: grid;
}

.portal-explore-grid[hidden],
.portal-explore-empty[hidden],
[data-explore-slug][hidden],
[data-portal-continue][hidden] {
  display: none !important;
}

.portal-continue-list .portal-list-card {
  background: var(--portal-surface);
  border: 1px solid var(--portal-border);
  box-shadow: var(--portal-shadow);
}

.portal-explore-empty {
  margin: 0;
  padding: 1rem 1.15rem;
  border-radius: var(--portal-radius);
  background: var(--portal-surface);
  border: 1px solid var(--portal-border);
  color: var(--portal-muted);
  font-size: 0.9rem;
}

.portal-dash-lanes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.portal-lane-card {
  padding: 1.1rem 1.15rem 1.2rem;
  border-radius: var(--portal-radius);
  background: var(--portal-surface);
  border: 1px solid var(--portal-border);
  box-shadow: var(--portal-shadow);
  min-height: 11.5rem;
  display: flex;
  flex-direction: column;
}

.portal-lane-card .portal-list {
  flex: 1;
}

.portal-lane-card .portal-list-card {
  padding: 0.75rem 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  border-bottom: 1px solid var(--portal-border);
}

.portal-lane-card .portal-list-card:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.portal-empty {
  display: grid;
  gap: 0.75rem;
  justify-items: start;
  padding: 0.35rem 0 0.15rem;
  align-content: center;
  min-height: 6.5rem;
}

.portal-empty-note {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--portal-muted);
}

.portal-empty-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: var(--portal-surface-2);
  color: var(--portal-text);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  transition: background 0.14s ease;
}

.portal-empty-cta:hover {
  background: var(--portal-active);
}

.portal-empty-panel {
  display: grid;
  justify-items: start;
  gap: 0.85rem;
  padding: 2rem 1.75rem;
  border-radius: var(--portal-radius);
  background: var(--portal-surface);
  border: 1px solid var(--portal-border);
  box-shadow: var(--portal-shadow);
  max-width: 36rem;
}

.portal-empty-panel-icon {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--portal-surface-2);
  border: 1px solid var(--portal-border);
  color: var(--portal-text);
}

.portal-empty-panel-lucide {
  display: block;
}

.portal-empty-panel-title {
  margin: 0.15rem 0 0;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--portal-text);
  font-family: var(--font-sans);
}

.portal-empty-panel-body {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--portal-muted);
  max-width: 28rem;
}

.portal-empty-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.35rem;
}

.portal-empty-panel--inline {
  max-width: none;
  width: 100%;
  grid-column: 1 / -1;
}

.portal-store-card .home-course-card-meta {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

button.home-course-card-buy {
  appearance: none;
  border: 0;
  font: inherit;
  cursor: pointer;
}

.portal-store-download-status {
  margin: 0.75rem 0 0;
  font-size: 0.88rem;
  color: var(--portal-muted);
}

.portal-store-download-status[hidden],
[data-portal-store-browse][hidden],
[data-portal-store-browse-empty][hidden],
[data-store-product-id][hidden],
[data-portal-live-browse][hidden],
[data-portal-live-browse-empty][hidden],
[data-live-course-id][hidden] {
  display: none !important;
}

.portal-live-card .home-course-card-meta {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.portal-welcome {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding: 1.2rem 1.3rem;
  border-radius: var(--portal-radius);
  background: var(--portal-surface);
  border: 1px solid var(--portal-border);
  box-shadow: var(--portal-shadow);
}

.portal-welcome-eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--portal-faint);
}

.portal-welcome-title {
  margin: 0;
  font-size: clamp(1.3rem, 2.3vw, 1.65rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--portal-text);
}

.portal-welcome-lead {
  margin: 0.4rem 0 0;
  color: var(--portal-muted);
  max-width: 36rem;
  font-size: 0.92rem;
}

.portal-welcome-stat {
  min-width: 6rem;
  text-align: right;
}

.portal-welcome-stat-value {
  margin: 0;
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--portal-text);
  line-height: 1;
}

.portal-welcome-stat-label {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  color: var(--portal-faint);
}

.portal-next-class {
  padding: 1.25rem 1.35rem;
  border-radius: var(--portal-radius);
  background: var(--portal-surface);
  border: 1px solid var(--portal-border);
  box-shadow: var(--portal-shadow);
}

.portal-next-class-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
}

.portal-section-eyebrow {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--portal-faint);
}

.portal-countdown {
  margin: 0;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--portal-text);
}

.portal-next-class-title {
  margin: 0.55rem 0 0.3rem;
  font-size: 1.15rem;
  line-height: 1.25;
  color: var(--portal-text);
}

.portal-next-class-meta,
.portal-next-class-loc {
  margin: 0.2rem 0 0;
  color: var(--portal-muted);
  font-size: 0.88rem;
}

.portal-join-btn {
  margin-top: 1rem;
  display: inline-flex;
  background: var(--portal-cta-bg) !important;
  color: var(--portal-cta-fg) !important;
  border: 0 !important;
  border-radius: 10px !important;
  font-weight: 600;
}

.portal-join-btn:hover {
  background: var(--portal-cta-bg) !important;
}

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

.portal-metrics[hidden],
.portal-live-panel[hidden],
.portal-live-empty[hidden],
.portal-live-content[hidden],
[data-portal-live-panel][hidden],
[data-portal-live-empty][hidden],
[data-portal-live-content][hidden],
[data-portal-live-profile][hidden],
[data-portal-live-nav][hidden],
[data-portal-live-nav-group][hidden],
[data-portal-work-nav][hidden],
[data-portal-work-nav-group][hidden],
[data-portal-capstone][hidden],
[data-portal-notes-loading][hidden] {
  display: none !important;
}

.portal-lane-cta {
  margin: 1.25rem 0 0;
}

.portal-topbar-title {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.portal-notes-course {
  display: grid;
  gap: 0.85rem;
  margin: 0 0 1.75rem;
}

.portal-notes-course:last-child {
  margin-bottom: 0;
}

.portal-notes-course[hidden] {
  display: none !important;
}

.portal-live-empty {
  display: grid;
  gap: 0.65rem;
  justify-items: stretch;
  padding: 0.15rem 0 0.75rem;
}

.portal-live-empty--fill {
  min-height: 0;
  place-content: start;
  justify-items: stretch;
  padding: 0.15rem 0 1rem;
}

.portal-live-empty--fill .portal-empty-panel--compact {
  width: 100%;
}

.portal-notes-detail-bar {
  display: grid;
  gap: 0.85rem;
  margin: 0 0 1rem;
}

.portal-notes-detail-bar .btn {
  justify-self: start;
}

.portal-notes-class-list {
  margin-top: 0.25rem;
}

.portal-live-program {
  margin: 0.35rem 0 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--portal-text);
}

.portal-live-empty .portal-page-title {
  margin: 0;
}

.portal-list-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: flex-end;
}

.portal-classroom {
  display: grid;
  gap: 1.25rem;
  min-height: min(70vh, 52rem);
}

.portal-classroom-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.portal-classroom-copy {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
  flex: 1;
}

.portal-classroom-copy .portal-page-title,
.portal-classroom-copy .portal-page-lead {
  margin: 0;
}

.portal-classroom-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.portal-classroom-lobby {
  display: grid;
  gap: 0.75rem;
  justify-items: start;
  padding: 1.35rem 1.4rem;
  border-radius: var(--portal-radius);
  background: var(--portal-surface);
  border: 1px solid var(--portal-border);
  box-shadow: var(--portal-shadow);
  max-width: 36rem;
}

.portal-classroom-lobby-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--portal-text);
}

.portal-classroom-lobby-body,
.portal-classroom-note {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--portal-muted);
}

.portal-classroom-room {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--portal-text);
  font-variant-numeric: tabular-nums;
}

.portal-classroom-stage {
  position: relative;
  min-height: min(68vh, 48rem);
  border-radius: var(--portal-radius);
  overflow: hidden;
  border: 1px solid var(--portal-border);
  background: #0c0c0e;
}

.portal-classroom-frame {
  display: block;
  width: 100%;
  height: min(68vh, 48rem);
  border: 0;
  background: #0c0c0e;
}

.portal-page--classroom .portal-content {
  display: flex;
  flex-direction: column;
}

body.portal-classroom-active .portal-classroom-stage {
  min-height: min(78vh, 56rem);
}

body.portal-classroom-active .portal-classroom-frame {
  height: min(78vh, 56rem);
}

@media (max-width: 720px) {
  .portal-classroom-stage,
  .portal-classroom-frame,
  body.portal-classroom-active .portal-classroom-stage,
  body.portal-classroom-active .portal-classroom-frame {
    min-height: 70vh;
    height: 70vh;
  }

  .portal-list-actions {
    justify-content: flex-start;
    width: 100%;
  }
}

.portal-brief {
  display: grid;
  gap: 1rem;
  min-height: min(72vh, 44rem);
}

.portal-brief-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.portal-brief-copy {
  min-width: 0;
  flex: 1;
}

.portal-brief-copy .portal-page-title,
.portal-brief-copy .portal-page-lead {
  margin: 0.2rem 0 0;
}

.portal-brief-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.portal-brief-stage {
  position: relative;
  min-height: min(68vh, 40rem);
  border-radius: var(--portal-radius);
  border: 1px solid var(--portal-border);
  background: var(--portal-surface);
  overflow: hidden;
}

.portal-brief-frame {
  display: block;
  width: 100%;
  height: min(72vh, 42rem);
  border: 0;
  background: transparent;
}

body.portal-brief-active .portal-brief-stage {
  min-height: min(78vh, 48rem);
}

body.portal-brief-active .portal-brief-frame {
  height: min(78vh, 48rem);
}

.portal-brief-stage [data-portal-brief-loading] {
  position: absolute;
  inset: 1rem auto auto 1rem;
  z-index: 1;
}

@media (max-width: 720px) {
  .portal-brief-stage,
  .portal-brief-frame,
  body.portal-brief-active .portal-brief-stage,
  body.portal-brief-active .portal-brief-frame {
    min-height: 70vh;
    height: 70vh;
  }
}

/* Capstone / marketing briefs inside portal iframe: hide public site chrome */
html.lesson-embed body.hub-page {
  height: auto;
  min-height: 100%;
  overflow: auto;
}

html.lesson-embed body.hub-page .site-header,
html.lesson-embed body.hub-page [data-site-header],
html.lesson-embed body.hub-page .home-foot,
html.lesson-embed body.hub-page .hub-footer,
html.lesson-embed body.hub-page .ambient,
html.lesson-embed body.hub-page .hub-breadcrumb,
html.lesson-embed body.hub-page .capstone-brief-back,
html.lesson-embed body.hub-page .prompt-back {
  display: none !important;
}

html.lesson-embed body.hub-page .hub-shell {
  padding-top: 1rem;
  padding-bottom: 2rem;
  max-width: none;
}

html.lesson-embed body.hub-page .hub-panel--capstone {
  box-shadow: none;
}

.portal-submit {
  display: grid;
  gap: 1rem;
  margin-top: 0.5rem;
  padding: 1.25rem 1.35rem 1.5rem;
  border-radius: var(--portal-radius);
  border: 1px solid var(--portal-border);
  background: var(--portal-surface);
}

.portal-submit-head .portal-page-lead {
  margin: 0.35rem 0 0;
  max-width: 40rem;
}

.portal-submit-form {
  display: grid;
  gap: 1rem;
  max-width: 36rem;
}

.portal-field-input--area {
  min-height: 5.5rem;
  resize: vertical;
}

.portal-field-input--file {
  padding: 0.55rem 0.65rem;
}

.portal-field-hint {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.82rem;
  color: var(--portal-muted, #a1a1aa);
}

.portal-submit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.portal-submit-status {
  margin: 0;
  font-size: 0.9rem;
  color: var(--portal-muted, #a1a1aa);
}

.portal-submit-done {
  display: grid;
  gap: 0.5rem;
  justify-items: start;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--portal-border);
  background: var(--portal-surface-2, rgba(255, 255, 255, 0.03));
}

.portal-submit-done-title {
  margin: 0;
  font-weight: 600;
}

.portal-submit-done-meta,
.portal-submit-locked,
.portal-submit-missing {
  margin: 0;
  font-size: 0.9rem;
  color: var(--portal-muted, #a1a1aa);
}



.portal-live-panel {
  display: grid;
  gap: 1rem;
  margin-top: 0.25rem;
}

.portal-card {
  padding: 1.15rem 1.25rem;
  border-radius: var(--portal-radius);
  background: var(--portal-surface);
  border: 1px solid var(--portal-border);
  box-shadow: var(--portal-shadow);
}

.portal-card--wide {
  max-width: 28rem;
}

.portal-card-title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--portal-text);
}

.portal-card-head-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.portal-card-link {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--portal-muted);
  text-decoration: none;
}

.portal-card-link:hover {
  color: var(--portal-text);
}

.portal-metric-value {
  margin: 0.55rem 0 0;
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1;
  color: var(--portal-text);
}

.portal-metric-target {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  color: var(--portal-faint);
}

.portal-metric-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin-top: 0.85rem;
}

.portal-metric-split > div {
  padding: 0.6rem 0.65rem;
  border-radius: 10px;
  background: var(--portal-surface-2);
}

.portal-metric-k {
  display: block;
  font-size: 0.7rem;
  color: var(--portal-faint);
  margin-bottom: 0.2rem;
}

.portal-ring {
  --portal-ring: 0;
  width: 5.25rem;
  height: 5.25rem;
  margin: 0.75rem auto 0.5rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(closest-side, var(--portal-surface) 78%, transparent 79% 100%),
    conic-gradient(var(--portal-ring-fill) calc(var(--portal-ring) * 1%), var(--portal-ring-track) 0);
}

.portal-ring-value {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--portal-text);
}

.portal-progress-breakdown {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.8rem;
  color: var(--portal-muted);
}

.portal-status-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.portal-status-pill {
  padding: 0.65rem 0.55rem;
  border-radius: 10px;
  background: var(--portal-surface-2);
  text-align: center;
}

.portal-status-pill span {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--portal-faint);
  margin-bottom: 0.25rem;
}

.portal-status-pill strong {
  font-size: 1.1rem;
  color: var(--portal-text);
}

.portal-rail {
  padding: 1.05rem 1.15rem;
  border-radius: var(--portal-radius);
  background: var(--portal-surface);
  border: 1px solid var(--portal-border);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.portal-announcement {
  padding-top: 0.75rem;
  border-top: 1px solid var(--portal-border);
}

.portal-announcement:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.portal-announcement-head {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.3rem;
}

.portal-announcement-date {
  font-size: 0.7rem;
  color: var(--portal-faint);
}

.portal-announcement-title {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.35;
  color: var(--portal-text);
}

.portal-announcement-body {
  margin: 0.3rem 0 0;
  font-size: 0.84rem;
  color: var(--portal-muted);
}

.portal-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.45rem;
  border-radius: var(--portal-radius-pill);
  font-size: 0.66rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--portal-surface-2);
  color: var(--portal-muted);
}

.portal-tag--urgent {
  background: rgba(248, 113, 113, 0.14);
  color: #fca5a5;
}

.portal-tag--class {
  background: rgba(255, 255, 255, 0.08);
  color: var(--portal-text);
}

.portal-tag--general {
  background: var(--portal-surface-2);
  color: var(--portal-muted);
}

.portal-tag--pending {
  background: rgba(251, 191, 36, 0.14);
  color: #fbbf24;
}

.portal-tag--submitted {
  background: rgba(255, 255, 255, 0.08);
  color: var(--portal-text);
}

.portal-tag--graded {
  background: rgba(74, 222, 128, 0.14);
  color: #86efac;
}

.portal-page-head {
  margin-bottom: 0;
}

.portal-page-head--lead {
  margin-bottom: 0.15rem;
}

.portal-page-head--lead .portal-page-lead {
  margin: 0;
}

.portal-page-title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(1.15rem, 2.1vw, 1.35rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
  font-weight: 650;
  color: var(--portal-text);
}

.portal-page-lead {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--portal-muted);
  max-width: 40rem;
}

.portal-settings-head {
  margin-bottom: 0.35rem;
}

.portal-settings-title {
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  letter-spacing: -0.035em;
  font-weight: 700;
}

.portal-settings {
  display: grid;
  gap: 1rem;
  width: 100%;
  max-width: none;
}

.portal-settings-card {
  padding: 1.25rem 1.35rem 1.4rem;
  border-radius: var(--portal-radius);
  background: var(--portal-surface);
  border: 1px solid var(--portal-border);
  box-shadow: var(--portal-shadow);
}

.portal-settings-card-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.15rem;
}

.portal-settings-card-icon {
  color: var(--portal-muted);
  flex-shrink: 0;
}

.portal-settings-card-title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--portal-text);
}

.portal-settings-card-lead {
  margin: -0.45rem 0 1rem;
  font-size: 0.88rem;
  color: var(--portal-muted);
}

.portal-device-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.portal-device-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--portal-border);
  border-radius: calc(var(--portal-radius) - 2px);
  background: color-mix(in srgb, var(--portal-bg) 55%, var(--portal-surface));
}

.portal-device-row--current {
  border-color: color-mix(in srgb, var(--brand, #6e51e0) 28%, var(--portal-border));
}

.portal-device-copy {
  min-width: 0;
}

.portal-device-title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--portal-text);
}

.portal-device-current {
  margin-left: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand, #6e51e0);
}

.portal-device-meta {
  margin: 0.2rem 0 0;
  font-size: 0.8rem;
  color: var(--portal-muted);
}

.portal-device-empty {
  margin: 0;
  padding: 0.5rem 0;
  font-size: 0.88rem;
  color: var(--portal-muted);
}

.portal-device-revoke {
  flex-shrink: 0;
}

.portal-photo-row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 1.25rem;
  width: 100%;
}

.portal-photo {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 999px;
  background: var(--portal-surface-2);
  border: 1px solid var(--portal-border);
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: 0 0 4.5rem;
}

.portal-photo-initial,
.portal-photo .portal-avatar--photo {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--portal-text);
  background-size: cover;
  background-position: center;
  border-radius: 999px;
}

.portal-photo-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.portal-photo-line {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.25rem;
  width: 100%;
}

.portal-photo-text {
  min-width: 0;
}

.portal-photo-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--portal-text);
}

.portal-photo-hint {
  margin: 0.25rem 0 0;
  font-size: 0.82rem;
  color: var(--portal-faint);
  line-height: 1.4;
}

.portal-photo-status {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  color: var(--portal-muted);
}

.portal-photo-status[hidden] {
  display: none !important;
}

.portal-photo-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.portal-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  border-radius: 10px;
  background: var(--portal-surface-2);
  border: 1px solid var(--portal-border);
  color: var(--portal-text);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.14s ease;
  white-space: nowrap;
}

.portal-upload-btn:hover {
  background: var(--portal-active);
}

.portal-upload-icon {
  opacity: 0.8;
}

.portal-photo-clear {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--portal-muted);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  white-space: nowrap;
}

.portal-photo-clear:hover {
  color: #ef4444;
  background: color-mix(in srgb, #ef4444 10%, transparent);
}

@media (max-width: 640px) {
  .portal-photo-row {
    align-items: flex-start;
  }

  .portal-photo-line {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

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

.portal-settings-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-top: 1.2rem;
  padding-top: 1.05rem;
  border-top: 1px solid var(--portal-border);
}

.portal-settings-save {
  background: var(--portal-cta-bg) !important;
  color: var(--portal-cta-fg) !important;
  border: 0 !important;
  border-radius: 10px !important;
  font-weight: 600;
}

.portal-theme-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.portal-theme-option {
  appearance: none;
  border: 1px solid var(--portal-border);
  background: var(--portal-bg);
  border-radius: 14px;
  padding: 0.65rem;
  cursor: pointer;
  text-align: left;
  color: var(--portal-text);
  transition: border-color 0.14s ease, box-shadow 0.14s ease;
}

.portal-theme-option:hover {
  border-color: color-mix(in srgb, var(--portal-text) 18%, var(--portal-border));
}

.portal-theme-option.is-active {
  border-color: var(--portal-text);
  box-shadow: 0 0 0 1px var(--portal-text);
}

.portal-theme-preview {
  display: block;
  height: 4.25rem;
  border-radius: 10px;
  border: 1px solid var(--portal-border);
  margin-bottom: 0.65rem;
}

.portal-theme-preview--light {
  background:
    linear-gradient(#ececec 0 28%, transparent 28%),
    linear-gradient(90deg, #e8e8e8 0 28%, #f7f7f7 28%);
  background-color: #ffffff;
}

.portal-theme-preview--dark {
  background:
    linear-gradient(#2a2a2a 0 28%, transparent 28%),
    linear-gradient(90deg, #242424 0 28%, #151515 28%);
  background-color: #0f0f0f;
  border-color: rgba(255, 255, 255, 0.08);
}

.portal-theme-preview--system {
  background:
    linear-gradient(90deg, #ffffff 0 50%, #111111 50%),
    linear-gradient(#ececec 0 28%, transparent 28%);
}

.portal-theme-option-label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 0 0.15rem 0.15rem;
}

.portal-avatar--photo {
  background-size: cover !important;
  background-position: center !important;
  color: transparent !important;
}

.portal-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.portal-list-card {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.85rem 1rem;
  align-items: center;
  padding: 1rem 1.1rem;
  border-radius: var(--portal-radius);
  background: var(--portal-surface);
  border: 1px solid var(--portal-border);
}

.portal-password-gate {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: color-mix(in srgb, #000 62%, transparent);
  backdrop-filter: blur(6px);
}

html.portal-password-gate-open,
html.portal-password-gate-open body {
  overflow: hidden;
}

.portal-password-gate[hidden] {
  display: none !important;
}

.portal-password-gate-card {
  width: min(100%, 27rem);
  padding: 1.5rem 1.45rem 1.55rem;
  border-radius: calc(var(--portal-radius, 12px) + 4px);
  background: var(--portal-surface, var(--surface));
  border: 1px solid var(--portal-border, var(--border));
  box-shadow:
    0 24px 48px color-mix(in srgb, #000 22%, transparent),
    0 1px 0 color-mix(in srgb, var(--portal-text) 6%, transparent) inset;
}

.portal-password-gate-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.65rem;
  height: 2.65rem;
  margin-bottom: 0.85rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--portal-text) 8%, var(--portal-surface));
  color: var(--portal-text);
}

.portal-password-gate-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--portal-muted);
}

.portal-password-gate-title {
  margin: 0;
  font-family: var(--font-sans, inherit);
  font-size: clamp(1.35rem, 2.4vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--portal-text);
}

.portal-password-gate-lead {
  margin: 0.45rem 0 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--portal-muted);
}

.portal-password-gate-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}

.portal-field--gate .portal-field-label {
  color: var(--portal-text);
  font-size: 0.82rem;
  font-weight: 600;
}

.portal-field--gate .portal-field-hint {
  margin: 0;
  font-size: 0.78rem;
  color: var(--portal-muted);
}

.portal-field-shell--password {
  position: relative;
}

.portal-field-input--password {
  padding-right: 2.75rem !important;
}

.portal-password-toggle {
  position: absolute;
  top: 50%;
  right: 0.45rem;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--portal-muted);
  cursor: pointer;
}

.portal-password-toggle:hover {
  color: var(--portal-text);
  background: color-mix(in srgb, var(--portal-text) 6%, transparent);
}

.portal-password-toggle:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--portal-text) 35%, transparent);
  outline-offset: 1px;
}

.portal-password-toggle-icon {
  display: block;
}

.portal-password-gate-status {
  margin: 0;
}

.portal-password-gate-actions {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.15rem;
}

.portal-password-gate-submit {
  appearance: none;
  width: 100%;
  margin: 0;
  padding: 0.78rem 1rem;
  border: 0;
  border-radius: 10px;
  background: var(--portal-cta-bg);
  color: var(--portal-cta-fg);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 650;
  cursor: pointer;
  transition:
    transform var(--duration-fast, 0.15s) var(--ease-out, ease),
    opacity var(--duration-fast, 0.15s) var(--ease-out, ease);
}

.portal-password-gate-submit:hover:not(:disabled) {
  opacity: 0.92;
}

.portal-password-gate-submit:active:not(:disabled) {
  transform: scale(0.99);
}

.portal-password-gate-submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

.portal-password-gate-secondary {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--portal-muted);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.portal-password-gate-secondary:hover {
  color: var(--portal-text);
  background: color-mix(in srgb, var(--portal-text) 5%, transparent);
}

.portal-password-gate-actions [hidden] {
  display: none !important;
}

.portal-password-gate-step {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--portal-muted);
}

.portal-password-gate-card .portal-settings {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
}

.portal-field-error {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--portal-urgent-text, var(--portal-urgent));
}

.portal-field-error[hidden] {
  display: none;
}

.portal-field-input.is-invalid {
  border-color: var(--portal-urgent);
}

.portal-field-input.is-invalid:focus {
  outline-color: color-mix(in srgb, var(--portal-urgent) 45%, transparent);
  border-color: var(--portal-urgent);
}

.portal-form-status {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--portal-muted);
}

.portal-form-status[hidden] {
  display: none;
}

.portal-form-status.is-error {
  padding: 0.55rem 0.7rem;
  border-radius: 0.65rem;
  color: var(--portal-urgent-text, var(--portal-urgent));
  border: 1px solid color-mix(in srgb, var(--portal-urgent) 28%, var(--portal-border));
  background: color-mix(in srgb, var(--portal-urgent) 8%, var(--portal-surface));
}

.portal-form-status.is-ok {
  color: #16a34a;
}

.portal-toast {
  position: fixed;
  z-index: 13000;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  max-width: min(22rem, calc(100vw - 2rem));
  padding: 0.7rem 1rem;
  border-radius: 0.75rem;
  background: var(--portal-text);
  color: var(--portal-bg);
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: var(--portal-shadow);
}

.portal-degraded {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.85rem;
  margin: 0 0 1.1rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--portal-radius-sm, 12px);
  border: 1px solid color-mix(in srgb, var(--portal-urgent) 28%, var(--portal-border));
  background: color-mix(in srgb, var(--portal-urgent) 8%, var(--portal-surface));
}

.portal-degraded[hidden] {
  display: none;
}

.portal-degraded-copy {
  margin: 0;
  flex: 1;
  min-width: 12rem;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--portal-urgent-text, var(--portal-urgent));
}

.portal-inline-status {
  margin: 0;
  padding: 0.85rem 0.2rem;
  font-size: 0.9rem;
  color: var(--portal-muted);
}

.portal-section-error {
  margin: 0;
  padding: 0.85rem 0.2rem;
}

.portal-section-error p {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--portal-urgent-text, var(--portal-urgent));
}

/* Owned-lane / page-boot skeletons — match home-course-card footprint (#3, layout stability) */
.portal-lane-skel {
  pointer-events: none;
  min-height: 0;
}

.portal-lane-skel-media {
  display: block;
  aspect-ratio: 16 / 10;
  border-radius: var(--portal-radius-sm, 12px) var(--portal-radius-sm, 12px) 0 0;
  background: color-mix(in srgb, var(--portal-muted) 18%, var(--portal-surface));
}

.portal-lane-skel-body {
  display: grid;
  gap: 0.55rem;
  padding: 0.95rem 1rem 1.1rem;
}

.portal-lane-skel-line {
  display: block;
  height: 0.72rem;
  border-radius: 0.4rem;
  background: color-mix(in srgb, var(--portal-muted) 16%, var(--portal-surface));
}

.portal-lane-skel-line--title {
  width: 68%;
  height: 0.9rem;
}

.portal-lane-skel-line--meta {
  width: 42%;
}

.portal-lane-skel-line--desc {
  width: 88%;
}

.portal-lane-skel-line--foot {
  width: 34%;
  margin-top: 0.35rem;
}

.portal-page-boot-skel {
  display: grid;
  gap: 0.75rem;
  margin: 0 0 1.1rem;
}

.portal-page-boot-skel[hidden] {
  display: none !important;
}

.portal-page-boot-skel-card {
  display: grid;
  gap: 0.5rem;
  padding: 1rem 1.1rem;
  border-radius: var(--portal-radius, 14px);
  border: 1px solid var(--portal-border);
  background: var(--portal-surface);
}

@media (prefers-reduced-motion: no-preference) {
  .portal-lane-skel-media,
  .portal-lane-skel-line {
    background-image: linear-gradient(
      90deg,
      color-mix(in srgb, var(--portal-muted) 14%, var(--portal-surface)) 0%,
      color-mix(in srgb, var(--portal-muted) 24%, var(--portal-surface)) 50%,
      color-mix(in srgb, var(--portal-muted) 14%, var(--portal-surface)) 100%
    );
    background-size: 200% 100%;
    animation: portal-skel-shimmer 1.35s ease-in-out infinite;
  }
}

@keyframes portal-skel-shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .portal-lane-skel-media,
  .portal-lane-skel-line {
    animation: none !important;
  }
}

.lesson-access-gate {
  position: fixed;
  inset: 0;
  z-index: 13000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: color-mix(in srgb, #000 48%, transparent);
}

.lesson-access-gate[hidden] {
  display: none !important;
}

.lesson-access-gate-card {
  width: min(100%, 24rem);
  padding: 1.35rem 1.4rem 1.45rem;
  border-radius: var(--portal-radius, 14px);
  background: var(--portal-surface, var(--surface));
  border: 1px solid var(--portal-border, var(--border));
  box-shadow: var(--shadow-lg);
}

.lesson-access-gate-card h1 {
  margin: 0 0 0.45rem;
  font-size: 1.15rem;
  line-height: 1.25;
}

.lesson-access-gate-card p {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--portal-muted, var(--muted));
}

.lesson-access-gate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.portal-list-eyebrow {
  margin: 0 0 0.3rem;
  font-size: 0.76rem;
  color: var(--portal-faint);
}

.portal-list-title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.25;
  color: var(--portal-text);
}

.portal-list-meta {
  margin: 0.3rem 0 0;
  font-size: 0.86rem;
  color: var(--portal-muted);
}

.portal-resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 0.65rem;
}

.portal-resource-card {
  display: block;
  padding: 1rem 1.05rem;
  border-radius: var(--portal-radius);
  background: var(--portal-surface);
  border: 1px solid var(--portal-border);
  text-decoration: none;
  color: inherit;
  transition: background 0.14s ease, border-color 0.14s ease;
}

.portal-resource-card:hover {
  background: var(--portal-surface-2);
  border-color: rgba(255, 255, 255, 0.1);
}

.portal-announcement-stack {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.portal-announcement-stack .portal-announcement {
  padding: 1rem 1.1rem;
  border: 1px solid var(--portal-border);
  border-radius: var(--portal-radius);
  background: var(--portal-surface);
}

.portal-profile-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-width: 26rem;
}

.portal-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.portal-field-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--portal-muted);
}

.portal-field-shell {
  position: relative;
  display: block;
}

.portal-field-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--portal-faint);
  pointer-events: none;
}

.portal-field-input {
  appearance: none;
  border: 1px solid var(--portal-border);
  border-radius: 10px;
  background: var(--portal-bg);
  color: var(--portal-text);
  padding: 0.7rem 0.85rem 0.7rem 2.45rem;
  font: inherit;
  width: 100%;
  box-sizing: border-box;
}

.portal-field > .portal-field-input {
  padding-left: 0.85rem;
}

.portal-field-input:focus {
  outline: 2px solid color-mix(in srgb, var(--portal-text) 35%, transparent);
  outline-offset: 1px;
  border-color: transparent;
}

.portal-field-input[readonly] {
  color: var(--portal-muted);
  cursor: default;
}

.portal-field-static {
  margin: 0;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  background: var(--portal-bg);
  border: 1px solid var(--portal-border);
  font-size: 0.92rem;
  color: var(--portal-text);
}

.portal-profile-status {
  margin: 0;
  font-size: 0.84rem;
  color: var(--portal-muted);
}

.portal-profile-form .btn-primary {
  background: var(--portal-cta-bg) !important;
  color: var(--portal-cta-fg) !important;
  border: 0 !important;
  border-radius: 10px !important;
  font-weight: 600;
}

@media (max-width: 720px) {
  .portal-settings-grid,
  .portal-theme-grid {
    grid-template-columns: 1fr;
  }
}

.portal-list-card .btn-ghost {
  background: var(--portal-surface-2);
  color: var(--portal-text);
  border: 1px solid var(--portal-border);
  border-radius: 10px;
}

.portal-backdrop {
  display: none;
}

@media (min-width: 1100px) {
  .portal-page--dashboard .portal-content {
    gap: 1.1rem;
  }
}

@media (min-width: 641px) and (max-width: 1100px) {
  .portal-explore-grid,
  .portal-stat-grid,
  .portal-dash-lanes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 640px) {
  .portal-explore-grid,
  .portal-stat-grid,
  .portal-dash-lanes {
    grid-template-columns: 1fr;
  }

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

  .portal-resume-card,
  .portal-continue-row {
    flex-direction: column;
    align-items: stretch;
  }

  .portal-page--dashboard .portal-resume-card {
    padding: 1.35rem 1.15rem;
    gap: 1.1rem;
  }

  .portal-page--dashboard .portal-resume-title {
    font-size: 1.2rem;
  }

  .portal-page--dashboard .portal-resume-progress-track {
    max-width: none;
    height: 8px;
  }

  .portal-resume-cta,
  .portal-continue-row .btn {
    width: 100%;
    justify-content: center;
  }

  .portal-resume-progress-track,
  .portal-continue-row-progress-track {
    max-width: none;
  }

  .portal-dash-section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .portal-list-card {
    flex-direction: column;
    align-items: stretch;
  }

  .portal-list-actions {
    width: 100%;
    justify-content: stretch;
  }

  .portal-list-actions .btn {
    flex: 1 1 auto;
    justify-content: center;
  }

  .portal-degraded {
    flex-direction: column;
    align-items: stretch;
  }

  .portal-degraded .btn {
    width: 100%;
    justify-content: center;
  }

  .portal-locale-banner {
    font-size: 0.78rem;
    padding: 0.5rem 0.65rem;
  }

  .portal-lane-card {
    min-height: 0;
  }

  .portal-notify-panel {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: none;
    border-radius: 16px 16px 0 0;
    padding-bottom: calc(0.4rem + env(safe-area-inset-bottom, 0px));
  }

  .portal-account-menu {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    min-width: 0;
    border-radius: 16px 16px 0 0;
    padding-bottom: calc(0.4rem + env(safe-area-inset-bottom, 0px));
  }

  .portal-account-menu-item {
    min-height: 2.75rem;
    display: flex;
    align-items: center;
  }

  .portal-password-gate {
    padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right))
      max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  }
}

@media (max-width: 400px) {
  .portal-stat-grid--momentum {
    grid-template-columns: 1fr;
  }

  .portal-content {
    padding-inline: max(0.85rem, env(safe-area-inset-left)) max(0.85rem, env(safe-area-inset-right));
  }
}

@media (max-width: 960px) {
  .portal-empty-panel--dashboard,
  .portal-empty-panel--compact {
    flex-direction: column;
    align-items: flex-start;
  }

  .portal-empty-panel--dashboard .portal-empty-panel-actions,
  .portal-empty-panel--compact .portal-empty-panel-actions {
    width: 100%;
  }
}

@media (max-width: 900px) {
  .portal-shell {
    grid-template-columns: 1fr;
  }

  body.portal-nav-open {
    overflow: hidden;
  }

  body.portal-nav-open .portal-main {
    overflow: hidden;
  }

  .portal-content {
    padding: 0.85rem max(1rem, env(safe-area-inset-right)) calc(2rem + env(safe-area-inset-bottom, 0px))
      max(1rem, env(safe-area-inset-left));
    gap: 1rem;
  }

  .portal-topbar {
    padding: max(0.65rem, env(safe-area-inset-top)) max(0.85rem, env(safe-area-inset-right))
      0.65rem max(0.85rem, env(safe-area-inset-left));
    gap: 0.5rem;
  }

  .portal-topbar-actions {
    gap: 0.35rem;
    flex-shrink: 0;
  }

  .portal-topbar-title,
  .portal-topbar-kicker,
  .portal-topbar-context {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .portal-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(17rem, 88vw);
    z-index: 40;
    transform: translateX(-105%);
    transition: transform 0.22s ease;
    border-right: 1px solid var(--portal-border);
    background: var(--portal-bg);
    padding-top: max(1rem, env(safe-area-inset-top));
    padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
    box-shadow: none;
  }

  body.portal-nav-open .portal-sidebar {
    transform: translateX(0);
    box-shadow: 8px 0 28px color-mix(in srgb, #000 22%, transparent);
  }

  .portal-menu-btn {
    display: grid;
    width: 2.75rem;
    height: 2.75rem;
    flex-shrink: 0;
  }

  .portal-nav-link {
    min-height: 2.75rem;
    padding-top: 0.62rem;
    padding-bottom: 0.62rem;
  }

  .portal-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 30;
  }

  .portal-backdrop[hidden] {
    display: none;
  }

  .portal-metrics {
    grid-template-columns: 1fr;
  }

  .portal-topbar-meta {
    display: none;
  }
}

@media (max-width: 560px) {
  .portal-status-row {
    grid-template-columns: 1fr;
  }

  .portal-welcome-stat {
    text-align: left;
  }

  .portal-top-tab-count {
    display: none;
  }
}


/* -- Lesson viewer · clean product workspace (all .app teaching notes) -- */
body:has(.app),
body.lesson-chrome--framer {
  --lesson-chrome-bg: #f0f0f2;
  --lesson-chrome-surface: #f7f7f8;
  --lesson-chrome-elevated: #ffffff;
  --lesson-chrome-input: #ececee;
  --lesson-chrome-border: rgba(15, 15, 20, 0.08);
  --lesson-chrome-text: #111113;
  --lesson-chrome-muted: #63636e;
  --lesson-chrome-faint: #8b8b96;
  --lesson-chrome-hover: rgba(15, 15, 20, 0.045);
  --lesson-chrome-active: rgba(15, 15, 20, 0.075);
  --lesson-chrome-progress: #111113;
  --lesson-chrome-cta-bg: #111113;
  --lesson-chrome-cta-fg: #ffffff;
  --lesson-chrome-focus-border: rgba(15, 15, 20, 0.16);
  --lesson-chrome-radius: 16px;

  --bg: var(--lesson-chrome-bg);
  --bg-deep: #e8e8ec;
  --surface: var(--lesson-chrome-elevated);
  --surface-raised: var(--lesson-chrome-elevated);
  --surface-card: var(--lesson-chrome-elevated);
  --surface-inset: var(--lesson-chrome-input);
  --sidebar-surface: transparent;
  --sidebar-item-hover: var(--lesson-chrome-hover);
  --sidebar-item-active: var(--lesson-chrome-active);
  --text: var(--lesson-chrome-text);
  --text-muted: var(--lesson-chrome-muted);
  --text-faint: var(--lesson-chrome-faint);
  --text-secondary: #2c2c34;
  --text-tertiary: #4c4c56;
  --text-label: var(--lesson-chrome-muted);
  --border: var(--lesson-chrome-border);
  --border-strong: rgba(15, 15, 20, 0.12);
  --border-card: rgba(15, 15, 20, 0.08);
  --shadow-card: none;
  --shadow-lg: none;
  --quote-bg: rgba(15, 15, 20, 0.03);
  --part-1: var(--lesson-chrome-faint);
  --part-2: var(--lesson-chrome-faint);
  --part-3: var(--lesson-chrome-faint);
  color-scheme: light;
  background: var(--lesson-chrome-bg);
  color: var(--lesson-chrome-text);
  overflow: hidden;
  height: 100dvh;
}

html[data-theme="dark"] body:has(.app),
html[data-theme="dark"] body.lesson-chrome--framer {
  --lesson-chrome-bg: #0c0c0e;
  --lesson-chrome-surface: #121214;
  --lesson-chrome-elevated: #161618;
  --lesson-chrome-input: #1c1c20;
  --lesson-chrome-border: rgba(255, 255, 255, 0.08);
  --lesson-chrome-text: #f4f4f5;
  --lesson-chrome-muted: #a1a1aa;
  --lesson-chrome-faint: #71717a;
  --lesson-chrome-hover: rgba(255, 255, 255, 0.05);
  --lesson-chrome-active: rgba(255, 255, 255, 0.09);
  --lesson-chrome-progress: #f4f4f5;
  --lesson-chrome-cta-bg: #f4f4f5;
  --lesson-chrome-cta-fg: #111113;
  --lesson-chrome-focus-border: rgba(255, 255, 255, 0.14);
  --bg-deep: #08080a;
  --text-secondary: #e4e4e8;
  --text-tertiary: #c4c4cc;
  --border-strong: rgba(255, 255, 255, 0.12);
  --border-card: rgba(255, 255, 255, 0.08);
  --quote-bg: rgba(255, 255, 255, 0.04);
  color-scheme: dark;
}

body:has(.app) .app {
  background: var(--lesson-chrome-bg);
  padding: 0.65rem;
  box-sizing: border-box;
  min-height: 100dvh;
  --sidebar-offset: calc(var(--sidebar-width) + 0.5rem);
}

body:has(.app).sidebar-collapsed .app,
body.sidebar-collapsed:has(.app) .app {
  --sidebar-offset: 0px;
}

body:has(.app) .sidebar {
  background: transparent;
  border-right: none;
  left: 0.65rem;
  top: 0.65rem;
  bottom: 0.65rem;
  height: auto;
  border-radius: var(--lesson-chrome-radius);
}

body:has(.app) .sidebar-header {
  padding: 0.85rem 0.9rem 0.45rem;
}

body:has(.app) .sidebar-header .program {
  color: var(--lesson-chrome-faint);
  letter-spacing: 0.08em;
  font-size: 0.625rem;
}

body:has(.app) .sidebar-header .week-label {
  color: var(--lesson-chrome-text);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 0.95rem;
}

body:has(.app) .sidebar-search {
  padding: 0 0.75rem 0.65rem;
}

body:has(.app) .sidebar-search-field {
  min-height: 2.2rem;
  padding: 0.4rem 0.65rem;
  border-radius: 10px;
  background: var(--lesson-chrome-elevated);
  border: 1px solid var(--lesson-chrome-border);
  color: var(--lesson-chrome-muted);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset;
}

html[data-theme="dark"] body:has(.app) .sidebar-search-field {
  background: var(--lesson-chrome-input);
  box-shadow: none;
}

body:has(.app) .sidebar-search-field:focus-within {
  border-color: var(--lesson-chrome-focus-border);
  color: var(--lesson-chrome-text);
}

body:has(.app) .sidebar-search-kbd {
  background: var(--lesson-chrome-hover);
  border-color: transparent;
  color: var(--lesson-chrome-faint);
}

body:has(.app) .nav-part {
  color: var(--lesson-chrome-faint);
  padding: 0.95rem 0.95rem 0.3rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

body:has(.app) .app .sidebar-nav > .nav-part:first-of-type,
body:has(.app) .app .sidebar-nav > .nav-part:nth-of-type(2),
body:has(.app) .app .sidebar-nav > .nav-part:nth-of-type(3),
body:has(.app) .app .sidebar-nav > .nav-part:nth-of-type(4) {
  color: var(--lesson-chrome-faint);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body:has(.app) .nav-link {
  margin: 0.1rem 0.55rem;
  padding: 0.48rem 0.65rem;
  border-radius: 9px;
  border-left: none;
  color: var(--lesson-chrome-muted);
  gap: 0.55rem;
  font-size: 0.8rem;
}

body:has(.app) .nav-link::before {
  display: none;
}

body:has(.app) .nav-link-icon {
  opacity: 0.62;
  width: 0.95rem;
  height: 0.95rem;
}

body:has(.app) .nav-link:hover {
  background: var(--lesson-chrome-hover);
  color: var(--lesson-chrome-text);
}

body:has(.app) .nav-link:hover .nav-link-icon {
  opacity: 0.9;
}

body:has(.app) .nav-link.active {
  background: var(--lesson-chrome-elevated);
  color: var(--lesson-chrome-text);
  font-weight: 560;
  border-left: none;
  box-shadow: 0 0 0 1px var(--lesson-chrome-border);
}

html[data-theme="dark"] body:has(.app) .nav-link.active {
  background: var(--lesson-chrome-active);
  box-shadow: none;
}

body:has(.app) .nav-link.active .nav-link-icon {
  opacity: 1;
}

body:has(.app) .sidebar-footer {
  border-top: 1px solid var(--lesson-chrome-border);
  background: transparent;
  padding: 0.65rem 0.75rem 0.75rem;
}

body:has(.app) .sidebar-footer-week {
  background: var(--lesson-chrome-elevated);
  border: 1px solid var(--lesson-chrome-border);
  border-radius: 10px;
}

body:has(.app) .sidebar-footer-week:hover {
  background: var(--lesson-chrome-hover);
  border-color: var(--lesson-chrome-focus-border);
}

body:has(.app) .sidebar-footer-week--next {
  border-color: color-mix(in srgb, var(--accent, #6e51e0) 24%, var(--lesson-chrome-border));
  background: color-mix(in srgb, var(--accent, #6e51e0) 7%, var(--lesson-chrome-elevated));
}

body:has(.app) .sidebar-footer-week--next:hover {
  background: var(--lesson-chrome-hover);
  border-color: var(--lesson-chrome-focus-border);
}

body:has(.app) .sidebar-footer-week--next .sidebar-footer-week-eyebrow,
html[data-theme="dark"] body:has(.app) .sidebar-footer-week--next .sidebar-footer-week-eyebrow {
  color: var(--accent-hover, var(--lesson-chrome-muted));
}

body:has(.app) .sidebar-footer-week-eyebrow {
  color: var(--lesson-chrome-faint);
}

body:has(.app) .sidebar-footer-week-label {
  color: var(--lesson-chrome-text);
}

body:has(.app) .sidebar-footer-dashboard {
  background: var(--lesson-chrome-elevated);
  border-color: var(--lesson-chrome-border);
  color: var(--lesson-chrome-text);
}

body:has(.app) .sidebar-footer-dashboard:hover {
  background: var(--lesson-chrome-hover);
  border-color: var(--lesson-chrome-focus-border);
  color: var(--lesson-chrome-text);
}

body:has(.app) .sidebar-footer-meta {
  color: var(--lesson-chrome-faint);
}

body:has(.app) .sidebar-footer-meta:hover {
  color: var(--lesson-chrome-muted);
}

/* One continuous white stage · reference workspace pattern */
body:has(.app) .main {
  background: var(--lesson-chrome-elevated);
  border: 1px solid var(--lesson-chrome-border);
  border-radius: var(--lesson-chrome-radius);
  margin: 0;
  height: calc(100dvh - 1.3rem);
  max-height: calc(100dvh - 1.3rem);
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 2px rgba(15, 15, 20, 0.03);
}

html[data-theme="dark"] body:has(.app) .main {
  box-shadow: none;
}

body:has(.app) .app .main .topbar {
  position: relative;
  top: auto;
  z-index: 5;
  width: 100%;
  margin: 0;
  border: 0;
  border-bottom: 1px solid var(--lesson-chrome-border);
  border-radius: 0;
  background: var(--lesson-chrome-elevated);
  padding: 0.7rem 1.25rem;
  box-shadow: none;
  flex-shrink: 0;
}

body:has(.app) .app .main > .content {
  width: 100%;
  max-width: none;
  margin: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scroll-padding-top: 1.25rem;
  animation: none;
}

body:has(.app) .progress-wrap {
  background: var(--lesson-chrome-input);
  border-radius: 999px;
  overflow: hidden;
}

body:has(.app) .progress-bar {
  background: var(--lesson-chrome-progress);
  opacity: 1;
}

body:has(.app) .menu-btn,
body:has(.app) .sidebar-collapse-btn {
  color: var(--lesson-chrome-muted);
  border-radius: 10px;
}

body:has(.app) .menu-btn:hover,
body:has(.app) .sidebar-collapse-btn:hover {
  color: var(--lesson-chrome-text);
  background: var(--lesson-chrome-hover);
  border-color: transparent;
}

body:has(.app) .topbar-actions .theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  min-width: 2.25rem;
  min-height: 2.25rem;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--lesson-chrome-border);
  background: transparent;
  color: var(--lesson-chrome-text);
}

body:has(.app) .topbar-actions .theme-toggle .theme-icon {
  width: 1.15rem;
  height: 1.15rem;
  min-width: 1.15rem;
  min-height: 1.15rem;
  flex-shrink: 0;
}

body:has(.app) .topbar-actions .theme-toggle .theme-icon[hidden] {
  display: none;
}

body:has(.app) .topbar-actions .theme-toggle:hover {
  background: var(--lesson-chrome-hover);
}

body:has(.app) #present-btn:not(.btn-primary) {
  background: transparent;
  border: 1px solid var(--lesson-chrome-border);
  color: var(--lesson-chrome-text);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  font-weight: 560;
  font-size: 0.8rem;
}

body:has(.app) #present-btn:not(.btn-primary):hover {
  background: var(--lesson-chrome-hover);
  color: var(--lesson-chrome-text);
  border-color: var(--lesson-chrome-focus-border);
}

body:has(.app) #present-btn.btn-primary {
  background: var(--lesson-chrome-cta-bg);
  color: var(--lesson-chrome-cta-fg);
  border: 0;
  border-radius: 999px;
}

body:has(.app) .week-hero .badge,
body:has(.app) .badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: 0.28rem 0.55rem;
  border-radius: 7px;
  background: var(--lesson-chrome-input);
  color: var(--lesson-chrome-muted);
  border: 0;
  letter-spacing: 0.08em;
  font-size: 0.625rem;
  font-weight: 600;
}

body:has(.app) .card,
body:has(.app) .pd-lesson-card,
body:has(.app) .outcome-item,
body:has(.app) .week-glance-grid > * {
  background: var(--lesson-chrome-surface);
  border: 1px solid var(--lesson-chrome-border);
  border-radius: 12px;
  box-shadow: none;
}

body:has(.app) .outcomes {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

body:has(.app) .highlight,
body:has(.app) .highlight-hero,
body:has(.app) .highlight-next {
  background: var(--lesson-chrome-surface);
  border: 1px solid var(--lesson-chrome-border);
  border-left-width: 1px;
  border-radius: 12px;
}

body:has(.app) .week-hero .highlight-hero {
  background: var(--lesson-chrome-surface);
  border: 1px solid var(--lesson-chrome-border);
  border-left-width: 1px;
  padding: 1.1rem 1.25rem;
  font-size: 1rem;
}

body:has(.app) .part-divider {
  border-color: var(--lesson-chrome-border);
}

body:has(.app) .sidebar-backdrop.visible {
  background: rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] body:has(.app) .sidebar-backdrop.visible {
  background: rgba(0, 0, 0, 0.5);
}

@media (max-width: 900px) {
  body:has(.app) .app {
    padding: 0;
  }

  body:has(.app) .sidebar {
    top: 0;
    bottom: 0;
    left: 0;
    border-radius: 0;
    background: var(--lesson-chrome-bg);
  }

  body:has(.app) .main {
    border-radius: 0;
    border: none;
    height: 100dvh;
    max-height: 100dvh;
    box-shadow: none;
  }
}

@media (max-width: 768px) {
  body:has(.app) .app .main .topbar {
    padding: 0.65rem 0.9rem;
  }
}

/* ── Instructor Teaching dashboard ── */

html:has(body.teach-dash-page) {
  height: 100%;
  overflow: hidden;
}

.teach-dash-page {
  --td-bg: #ebebeb;
  --td-sidebar: color-mix(in srgb, #ebebeb 72%, #ffffff);
  --td-stage: #ffffff;
  --td-text: #0a0a0a;
  --td-muted: #5c5c5c;
  --td-faint: #8a8a8a;
  --td-border: rgba(10, 10, 10, 0.1);
  --td-hover: rgba(10, 10, 10, 0.05);
  --td-active: rgba(10, 10, 10, 0.08);
  --td-pill: #0a0a0a;
  --td-pill-fg: #fafafa;
  --td-link: #0a0a0a;
  --td-urgent: #dc2626;
  --td-warn: #ca8a04;
  --td-green: #16a34a;
  --td-blue: #2563eb;
  --td-glow-a: #9fd6d4;
  --td-glow-b: #d4e86a;
  --td-sidebar-w: 15rem;
  --td-sidebar-collapsed: 4rem;
  --td-topbar-h: 3.25rem;
  --td-font: "Outfit", var(--font-sans);
  --td-body: "Work Sans", var(--font-sans);
  --td-space-1: 0.3rem;
  --td-space-2: 0.55rem;
  --td-space-3: 0.85rem;
  --td-space-4: 1.15rem;
  --td-space-5: 1.5rem;
  --td-space-6: 2rem;
  --td-radius: 0.85rem;

  margin: 0;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background-color: var(--td-bg);
  background-image:
    radial-gradient(ellipse 50% 40% at 0% 0%, color-mix(in srgb, var(--td-glow-a) 42%, transparent), transparent 58%),
    radial-gradient(ellipse 45% 35% at 100% 0%, color-mix(in srgb, var(--td-glow-b) 36%, transparent), transparent 55%);
  color: var(--td-text);
  font-family: var(--td-body);
  color-scheme: light;
}

html[data-theme="dark"] .teach-dash-page {
  --td-bg: #0a0a0a;
  --td-sidebar: #111111;
  --td-stage: #141414;
  --td-text: #f4f4f5;
  --td-muted: #b0b0b8;
  --td-faint: #8b8b96;
  --td-border: rgba(255, 255, 255, 0.11);
  --td-hover: rgba(255, 255, 255, 0.07);
  --td-active: rgba(255, 255, 255, 0.11);
  --td-pill: #f4f4f5;
  --td-pill-fg: #0a0a0a;
  --td-link: #f4f4f5;
  --td-glow-a: #3d7a78;
  --td-glow-b: #6a7a28;
  color-scheme: dark;
}

.teach-dash-shell {
  display: grid;
  grid-template-columns: var(--td-sidebar-w) minmax(0, 1fr);
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  transition: grid-template-columns 0.2s ease;
}

html.teach-dash-collapsed .teach-dash-shell {
  grid-template-columns: var(--td-sidebar-collapsed) minmax(0, 1fr);
}

.teach-dash-sidebar {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  padding: 0.65rem 0.55rem 0.75rem;
  background: color-mix(in srgb, var(--td-sidebar) 88%, transparent);
  border-right: 1px solid var(--td-border);
  overflow: hidden;
}

.teach-dash-sidebar-top {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
  margin-bottom: 0.55rem;
  padding: 0 0.15rem;
}

.teach-dash-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  flex: 1;
  margin: 0;
  padding: 0.4rem 0.45rem;
  border-radius: 0.65rem;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
}

.teach-dash-brand:hover {
  background: var(--td-hover);
}

.teach-dash-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 0.5rem;
  background: var(--td-pill);
  color: var(--td-pill-fg);
  flex-shrink: 0;
}

.teach-dash-brand-copy {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 0;
}

.teach-dash-brand-kicker {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--td-faint);
  line-height: 1.1;
}

.teach-dash-brand-name {
  font-family: var(--td-font);
  font-size: 0.98rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.teach-dash-collapse {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0.5rem;
  background: transparent;
  color: var(--td-muted);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease, color 0.15s ease;
}

.teach-dash-collapse:hover {
  background: var(--td-hover);
  color: var(--td-text);
}

.teach-dash-collapse--rail {
  display: none;
}

html.teach-dash-collapsed .teach-dash-collapse--rail {
  display: inline-flex;
}

html.teach-dash-collapsed .teach-dash-sidebar .teach-dash-collapse:not(.teach-dash-collapse--rail) {
  display: none;
}

.teach-dash-sidebar-scroll {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-height: 0;
  flex: 1;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 0.15rem 0.35rem;
}

.teach-dash-nav-group {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}

.teach-dash-nav-heading {
  margin: 0.15rem 0 0.28rem 0.65rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--td-faint);
}

.teach-dash-nav-tree {
  display: flex;
  flex-direction: column;
  gap: 0.14rem;
  margin-top: 0.45rem;
}

.teach-dash-nav-parent {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  min-height: 2.25rem;
  margin: 0;
  padding: 0.5rem 0.65rem;
  border: 0;
  border-radius: 0.65rem;
  background: transparent;
  color: var(--td-text);
  font-family: var(--td-body);
  font-size: 0.86rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease;
}

.teach-dash-nav-parent:hover {
  background: var(--td-hover);
}

.teach-dash-nav-parent.is-active {
  background: var(--td-active);
}

.teach-dash-nav-parent .teach-dash-nav-icon {
  color: var(--td-muted);
}

.teach-dash-nav-parent.is-active .teach-dash-nav-icon {
  color: var(--td-text);
}

.teach-dash-nav-chevron {
  display: inline-flex;
  margin-left: auto;
  color: var(--td-faint);
  transition: transform 0.18s ease;
}

.teach-dash-nav-tree.is-open .teach-dash-nav-chevron {
  transform: rotate(180deg);
}

.teach-dash-nav-children {
  display: none;
  flex-direction: column;
  gap: 0.12rem;
  margin: 0.1rem 0 0.2rem;
  padding: 0.15rem 0 0.15rem 0.55rem;
  border-left: 1px solid var(--td-border);
  margin-left: 1.1rem;
}

.teach-dash-nav-tree.is-open .teach-dash-nav-children {
  display: flex;
}

.teach-dash-nav-link--child {
  font-size: 0.83rem;
  font-weight: 500;
  min-height: 2.1rem;
  padding: 0.45rem 0.6rem;
}

.teach-dash-nav-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 2.25rem;
  padding: 0.5rem 0.65rem;
  border-radius: 0.65rem;
  color: var(--td-text);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 500;
  transition: background 0.15s ease;
}

.teach-dash-nav-link:hover {
  background: var(--td-hover);
}

.teach-dash-nav-link.is-active {
  background: var(--td-active);
  font-weight: 600;
  color: var(--td-text);
}

.teach-dash-nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  color: var(--td-muted);
  flex-shrink: 0;
}

.teach-dash-nav-link.is-active .teach-dash-nav-icon {
  color: var(--td-text);
}

.teach-dash-nav-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.teach-dash-course-dot {
  width: 0.5rem;
  height: 0.5rem;
  margin-left: 0.3rem;
  border-radius: 999px;
  background: var(--dot, #22c55e);
  flex-shrink: 0;
}

html.teach-dash-collapsed .teach-dash-brand {
  justify-content: center;
  padding: 0.4rem;
}

html.teach-dash-collapsed .teach-dash-brand-copy,
html.teach-dash-collapsed .teach-dash-nav-heading,
html.teach-dash-collapsed .teach-dash-nav-label,
html.teach-dash-collapsed .teach-dash-nav-chevron,
html.teach-dash-collapsed .teach-dash-nav-children {
  display: none;
}

html.teach-dash-collapsed .teach-dash-nav-link,
html.teach-dash-collapsed .teach-dash-nav-parent {
  justify-content: center;
  padding: 0.55rem 0.35rem;
}

html.teach-dash-collapsed .teach-dash-course-dot {
  margin: 0;
}

html.teach-dash-collapsed .teach-dash-sidebar-top {
  justify-content: center;
}

.teach-dash-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  padding: 0.65rem 0.75rem 0.75rem 0.55rem;
}

.teach-dash-topbar {
  position: relative;
  z-index: 6;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  height: var(--td-topbar-h);
  min-height: var(--td-topbar-h);
  margin-bottom: 0.55rem;
  padding: 0 0.85rem;
  background: color-mix(in srgb, var(--td-stage) 92%, transparent);
  border: 1px solid var(--td-border);
  border-radius: var(--td-radius);
  backdrop-filter: blur(10px);
}

.teach-dash-topbar-start {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.teach-dash-topbar-brand {
  display: none;
  font-family: var(--td-font);
  font-size: 0.98rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  color: var(--td-text);
  text-decoration: none;
}

.teach-dash-topbar-divider {
  display: inline-block;
  width: 1px;
  height: 1rem;
  background: var(--td-border);
}

.teach-dash-topbar-section {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--td-faint);
}

.teach-dash-breadcrumb {
  min-width: 0;
  flex: 1;
}

.teach-dash-breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
  min-width: 0;
}

.teach-dash-breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--td-muted);
}

.teach-dash-breadcrumb-item:not(:last-child)::after {
  content: "/";
  color: var(--td-faint);
  font-weight: 400;
}

.teach-dash-breadcrumb-link {
  color: var(--td-muted);
  text-decoration: none;
  white-space: nowrap;
}

.teach-dash-breadcrumb-link:hover {
  color: var(--td-text);
  text-decoration: underline;
}

.teach-dash-breadcrumb-current {
  color: var(--td-text);
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: min(16rem, 42vw);
}

.teach-dash-workspace-switch,
.teach-dash-workspace-pill {
  display: none;
}

.teach-dash-stage {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--td-stage);
  border: 1px solid var(--td-border);
  border-radius: var(--td-radius);
  padding: 1.15rem 1.4rem 1.65rem;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}

.teach-dash-backdrop {
  display: none;
}

.teach-dash-topbar-badge {
  margin: 0;
  margin-right: auto;
  padding: 0.28rem 0.6rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--td-muted);
  background: var(--td-stage);
  border: 1px solid var(--td-border);
  border-radius: 999px;
}

.teach-dash-menu {
  display: none;
  appearance: none;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 0;
  background: transparent;
  color: var(--td-text);
  padding: 0;
  border-radius: 0.5rem;
  cursor: pointer;
}

.teach-dash-menu:hover {
  background: var(--td-hover);
}

.teach-dash-topbar-end {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.teach-dash-topbar-end .theme-toggle {
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--td-muted);
}

.teach-dash-topbar-end .theme-toggle:hover {
  background: var(--td-hover);
  color: var(--td-text);
}

.teach-dash-notify {
  position: relative;
}

.teach-dash-notify-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--td-muted);
  cursor: pointer;
}

.teach-dash-notify-btn:hover,
.teach-dash-notify.is-open .teach-dash-notify-btn {
  background: var(--td-hover);
  color: var(--td-text);
}

.teach-dash-notify-btn:focus-visible {
  outline: 2px solid var(--td-text);
  outline-offset: 2px;
}

.teach-dash-notify-dot {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: #f59e0b;
  box-shadow: 0 0 0 2px var(--td-stage, #0a0a0b);
}

.teach-dash-notify-dot[hidden] {
  display: none;
}

.teach-dash-notify-panel {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  z-index: 60;
  width: min(22rem, calc(100vw - 1.5rem));
  padding: 0;
  border: 1px solid var(--td-border);
  border-radius: 0.9rem;
  background: var(--td-stage);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.teach-dash-notify-panel[hidden] {
  display: none;
}

.teach-dash-notify-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--td-border);
}

.teach-dash-notify-head-title {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.teach-dash-notify-mark {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--td-muted);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.teach-dash-notify-mark:hover {
  color: var(--td-text);
}

.teach-dash-notify-list {
  max-height: 18rem;
  overflow-y: auto;
}

.teach-dash-notify-item {
  display: block;
  padding: 0.8rem 0.9rem;
  border-bottom: 1px solid var(--td-border);
  color: inherit;
  text-decoration: none;
}

.teach-dash-notify-item:last-child {
  border-bottom: 0;
}

.teach-dash-notify-item:hover {
  background: var(--td-hover);
}

.teach-dash-notify-item:not(.is-read) {
  background: color-mix(in srgb, var(--brand, #6e51e0) 6%, transparent);
}

.teach-dash-notify-item-top {
  margin-bottom: 0.3rem;
}

.teach-dash-notify-tag {
  display: inline-flex;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.teach-dash-notify-tag--prep {
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.16);
}

.teach-dash-notify-tag--system {
  color: var(--td-muted);
  background: color-mix(in srgb, var(--td-text) 8%, transparent);
}

.teach-dash-notify-title {
  margin: 0 0 0.2rem;
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1.3;
}

.teach-dash-notify-body {
  margin: 0;
  font-size: 0.8rem;
  color: var(--td-muted);
  line-height: 1.4;
}

.teach-dash-notify-empty {
  margin: 0;
  padding: 1.1rem 0.9rem;
  font-size: 0.86rem;
  color: var(--td-muted);
}

.teach-dash-toast-host {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  width: min(22rem, calc(100vw - 2rem));
  pointer-events: none;
}

.teach-dash-toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--td-border);
  border-radius: 0.85rem;
  background: var(--td-stage);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  color: var(--td-text);
  animation: teach-dash-toast-in 0.22s ease;
}

.teach-dash-toast.is-out {
  animation: teach-dash-toast-out 0.18s ease forwards;
}

.teach-dash-assign {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.teach-dash-assign[hidden] {
  display: none !important;
}

.teach-dash-assign-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  background: color-mix(in srgb, #000 48%, transparent);
  cursor: pointer;
}

.teach-dash-assign-card {
  position: relative;
  z-index: 1;
  width: min(100%, 30rem);
  max-height: min(92vh, 40rem);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.25rem 1.3rem 1rem;
  border-radius: 0.95rem;
  background: var(--td-stage);
  border: 1px solid var(--td-border);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.teach-dash-assign-scroll {
  display: grid;
  gap: 0.85rem;
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding-bottom: 0.35rem;
}

.teach-dash-assign-heading {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--td-text);
}

.teach-dash-assign-brief {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--td-muted);
}

.teach-dash-assign-current {
  display: grid;
  gap: 0.45rem;
}

.teach-dash-assign-current[hidden] {
  display: none !important;
}

.teach-dash-assign-current-list {
  display: grid;
  gap: 0.35rem;
}

.teach-dash-assign-current-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.55rem 0.5rem 0.6rem;
  border: 1px solid var(--td-border);
  border-radius: 0.75rem;
  background: color-mix(in srgb, var(--td-bg) 35%, var(--td-stage));
}

.teach-dash-assign-current-copy {
  min-width: 0;
  display: grid;
  gap: 0.1rem;
}

.teach-dash-assign-current-name {
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--td-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.teach-dash-assign-current-meta {
  font-size: 0.76rem;
  color: var(--td-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.teach-dash-assign-current-row .teach-dash-btn {
  margin-left: auto;
  flex-shrink: 0;
}

.teach-dash-assign-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
  flex-shrink: 0;
  margin: 0 -0.15rem -0.15rem;
  padding: 0.85rem 0.15rem 0.35rem;
  border-top: 1px solid var(--td-border);
  background: var(--td-stage);
}

.teach-dash-assign-actions .teach-dash-btn--cta {
  min-width: 6.5rem;
}

.teach-dash-assign-brief-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.teach-dash-assign-scope {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  padding: 0.28rem;
  border-radius: 0.85rem;
  background: color-mix(in srgb, var(--td-bg) 55%, var(--td-stage));
  border: 1px solid var(--td-border);
}

.teach-dash-assign-who {
  display: grid;
  gap: 0.55rem;
}

.teach-dash-assign-search {
  display: block;
}

.teach-dash-assign-roster {
  display: grid;
  gap: 0.35rem;
  max-height: 16.5rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.35rem;
  border: 1px solid var(--td-border);
  border-radius: 0.85rem;
  background: color-mix(in srgb, var(--td-bg) 35%, var(--td-stage));
}

.teach-dash-assign-empty {
  margin: 0;
  padding: 0.85rem 0.7rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--td-muted);
}

.teach-dash-assign-person {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 1px solid transparent;
  border-radius: 0.7rem;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease;
}

.teach-dash-assign-person:hover,
.teach-dash-assign-person:focus-visible {
  outline: none;
  background: var(--td-hover);
}

.teach-dash-assign-person.is-selected {
  border-color: color-mix(in srgb, var(--td-text) 18%, var(--td-border));
  background: color-mix(in srgb, var(--td-text) 8%, transparent);
}

.teach-dash-assign-avatar {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--td-text) 10%, transparent);
  color: var(--td-text);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.teach-dash-assign-person-copy {
  min-width: 0;
  display: grid;
  gap: 0.12rem;
}

.teach-dash-assign-person-name {
  font-size: 0.92rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--td-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.teach-dash-assign-person-meta {
  font-size: 0.78rem;
  color: var(--td-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.teach-dash-toast--ok {
  border-color: color-mix(in srgb, #22c55e 35%, var(--td-border));
}

.teach-dash-toast--warn {
  border-color: color-mix(in srgb, #f59e0b 40%, var(--td-border));
}

.teach-dash-toast--err {
  border-color: color-mix(in srgb, #ef4444 40%, var(--td-border));
}

.teach-dash-toast-msg {
  margin: 0;
  flex: 1;
  font-size: 0.88rem;
  line-height: 1.4;
  font-weight: 550;
}

.teach-dash-toast-close {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--td-muted);
  cursor: pointer;
  line-height: 1;
}

.teach-dash-toast-close:hover {
  color: var(--td-text);
}

@keyframes teach-dash-toast-in {
  from {
    opacity: 0;
    transform: translateY(0.4rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes teach-dash-toast-out {
  to {
    opacity: 0;
    transform: translateY(0.35rem);
  }
}

.teach-dash-account {
  position: relative;
}

.teach-dash-account-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.teach-dash-account-btn:hover {
  box-shadow: 0 0 0 3px var(--td-hover);
}

.teach-dash-account-btn[aria-expanded='true'] {
  box-shadow: 0 0 0 3px var(--td-active);
}

.teach-dash-account-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--td-pill);
  color: var(--td-pill-fg);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.teach-dash-account-menu {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  z-index: 30;
  min-width: 14.5rem;
  padding: 0.45rem;
  background: var(--td-stage);
  border: 1px solid var(--td-border);
  border-radius: 0.85rem;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12);
}

.teach-dash-account-menu-label {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin: 0 0 0.2rem;
  padding: 0.45rem 0.65rem 0.65rem;
  border-bottom: 1px solid var(--td-border);
}

.teach-dash-account-menu-role {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--td-faint);
}

.teach-dash-account-menu-email {
  font-size: 0.78rem;
  font-weight: 550;
  color: var(--td-muted);
  word-break: break-all;
  text-transform: none;
  letter-spacing: 0;
}

.teach-dash-account-menu-item {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.55rem 0.65rem;
  border: 0;
  border-radius: 0.55rem;
  background: transparent;
  color: var(--td-text);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 550;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.teach-dash-account-menu-item:hover {
  background: var(--td-hover);
}

.teach-dash-account-menu-item--danger {
  color: #b91c1c;
}

html[data-theme='dark'] .teach-dash-account-menu-item--danger {
  color: #fca5a5;
}

.teach-dash-eyebrow {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--td-faint);
}

.teach-dash-lead {
  margin: 0 0 var(--td-space-4);
  max-width: 34rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--td-muted);
}

.teach-dash-lead--tight {
  margin: 0;
  max-width: 36rem;
  font-size: 0.9rem;
}

.teach-dash-actions {
  margin-bottom: var(--td-space-5);
}

.teach-dash-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.teach-dash-action-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--td-border);
  border-radius: 0.85rem;
  background: color-mix(in srgb, var(--td-bg) 45%, var(--td-stage));
  color: inherit;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.teach-dash-action-card:hover {
  background: var(--td-stage);
  border-color: color-mix(in srgb, var(--td-text) 20%, var(--td-border));
}

.teach-dash-action-icon {
  display: inline-flex;
  color: var(--td-muted);
}

.teach-dash-action-copy {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.teach-dash-action-label {
  font-family: var(--td-font);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.teach-dash-action-hint {
  font-size: 0.8rem;
  color: var(--td-muted);
}

.teach-dash-action-go {
  color: var(--td-faint);
}

@media (max-width: 900px) {
  .teach-dash-action-grid {
    grid-template-columns: 1fr;
  }
}

.teach-dash-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: var(--td-space-5);
}

.teach-dash-stats--ops {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.teach-dash-stats--overview {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 1.75rem;
}

.teach-dash-stats--overview .teach-dash-stat {
  padding: 0.9rem 1rem;
}

.teach-dash-stats--overview .teach-dash-stat-value {
  font-size: 1.55rem;
}

.teach-dash-overview-empty {
  margin: 0;
  padding: 0.95rem 1.05rem;
  border: 1px solid var(--td-border);
  border-radius: var(--td-radius);
  background: color-mix(in srgb, var(--td-bg) 40%, var(--td-stage));
  font-size: 0.9rem;
  color: var(--td-muted);
}

.teach-dash-stat {
  padding: 1rem 1.05rem;
  border: 1px solid var(--td-border);
  border-radius: 0.9rem;
  background: color-mix(in srgb, var(--td-bg) 55%, var(--td-stage));
}

a.teach-dash-stat--link {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

a.teach-dash-stat--link:hover {
  border-color: color-mix(in srgb, var(--td-text) 20%, var(--td-border));
  background: var(--td-stage);
}

a.teach-dash-stat--link:focus-visible {
  outline: 2px solid var(--td-text);
  outline-offset: 2px;
}

.teach-dash-stat-label {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--td-faint);
}

.teach-dash-stat-value {
  margin: 0;
  font-family: var(--td-font);
  font-size: 1.75rem;
  font-weight: 750;
  letter-spacing: -0.04em;
  line-height: 1;
}

.teach-dash-stat-note {
  margin: 0.45rem 0 0;
  font-size: 0.78rem;
  color: var(--td-muted);
}

.teach-dash-section-head {
  margin: 0 0 var(--td-space-3);
}

.teach-dash-section-head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.teach-dash-section-link {
  flex-shrink: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--td-link);
  text-decoration: none;
  white-space: nowrap;
}

.teach-dash-section-link:hover {
  text-decoration: underline;
}

.teach-dash-section-title {
  margin: 0 0 0.35rem;
  font-family: var(--td-font);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.teach-dash-section-lead {
  margin: 0;
  font-size: 0.9rem;
  color: var(--td-muted);
  line-height: 1.45;
}

.teach-dash-attention {
  margin-bottom: var(--td-space-5);
}

.teach-dash-attention-primary {
  padding: 1.15rem 1.25rem;
  margin-bottom: var(--td-space-3);
  border: 1px solid color-mix(in srgb, var(--td-urgent) 28%, var(--td-border));
  border-radius: var(--td-radius);
  background: color-mix(in srgb, var(--td-urgent) 5%, var(--td-stage));
}

.teach-dash-attention-primary--empty {
  border-color: var(--td-border);
  background: color-mix(in srgb, var(--td-bg) 45%, var(--td-stage));
}

.teach-dash-attention-primary-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
}

.teach-dash-attention-kicker {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--td-faint);
}

.teach-dash-attention-title {
  margin: 0 0 0.4rem;
  font-family: var(--td-font);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.teach-dash-attention-body {
  margin: 0;
  font-size: 0.9rem;
  color: var(--td-muted);
  line-height: 1.55;
}

.teach-dash-attention-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.95rem;
  padding-top: 0.8rem;
  border-top: 1px solid color-mix(in srgb, var(--td-urgent) 18%, var(--td-border));
  font-size: 0.8rem;
  color: var(--td-faint);
}

.teach-dash-attention-primary--empty .teach-dash-attention-foot {
  border-top-color: var(--td-border);
}

.teach-dash-attention-cta {
  color: var(--td-link);
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.teach-dash-attention-cta:hover {
  text-decoration: underline;
}

.teach-dash-attention-cta:focus-visible {
  outline: 2px solid var(--td-text);
  outline-offset: 2px;
}

.teach-dash-status {
  display: inline-flex;
  align-items: center;
  min-height: 1.4rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
  color: var(--td-muted);
  background: var(--td-hover);
}

.teach-dash-status--needs-prep {
  color: #9a3412;
  background: rgba(234, 88, 12, 0.14);
}

.teach-dash-status--ready {
  color: #166534;
  background: rgba(22, 163, 74, 0.12);
}

.teach-dash-status--teaching {
  color: #1d4ed8;
  background: rgba(37, 99, 235, 0.12);
}

.teach-dash-status--done {
  color: var(--td-faint);
  background: var(--td-hover);
}

html[data-theme="dark"] .teach-dash-status--needs-prep {
  color: #fdba74;
  background: rgba(234, 88, 12, 0.22);
}

html[data-theme="dark"] .teach-dash-status--ready {
  color: #86efac;
  background: rgba(22, 163, 74, 0.2);
}

html[data-theme="dark"] .teach-dash-status--teaching {
  color: #93c5fd;
  background: rgba(37, 99, 235, 0.22);
}

.teach-dash-prep-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--td-border);
  border-radius: var(--td-radius);
  overflow: hidden;
  background: color-mix(in srgb, var(--td-bg) 40%, var(--td-stage));
}

.teach-dash-prep-item + .teach-dash-prep-item {
  border-top: 1px solid var(--td-border);
}

.teach-dash-prep-link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: inherit;
  text-decoration: none;
}

.teach-dash-prep-link:hover {
  background: var(--td-hover);
}

.teach-dash-prep-link:focus-visible {
  outline: 2px solid var(--td-text);
  outline-offset: -2px;
}

.teach-dash-prep-id {
  font-family: var(--td-font);
  font-size: 0.8rem;
  font-weight: 650;
  color: var(--td-faint);
  min-width: 4.25rem;
}

.teach-dash-prep-title {
  font-family: var(--td-font);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.teach-dash-prep-go {
  color: var(--td-faint);
  display: inline-flex;
}

.teach-dash-empty--compact {
  padding: 1rem 1.1rem;
  border: 1px dashed var(--td-border);
  border-radius: var(--td-radius);
  background: transparent;
}

.teach-dash-empty-title {
  margin: 0 0 0.25rem;
  font-family: var(--td-font);
  font-size: 0.95rem;
  font-weight: 650;
}

.teach-dash-empty-body {
  margin: 0;
  font-size: 0.85rem;
  color: var(--td-muted);
  line-height: 1.45;
}

.teach-dash-primary-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  flex-wrap: wrap;
  margin-bottom: var(--td-space-5);
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--td-border);
  border-radius: var(--td-radius);
  background: color-mix(in srgb, var(--td-bg) 50%, var(--td-stage));
}

.teach-dash-primary-cta-copy {
  min-width: min(100%, 18rem);
  flex: 1;
}

.teach-dash-primary-cta .teach-dash-section-title {
  margin-bottom: 0.3rem;
}

.teach-dash-programs-compact {
  margin-bottom: var(--td-space-4);
}

.teach-dash-program-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--td-border);
  border-radius: var(--td-radius);
  overflow: hidden;
}

.teach-dash-program-list > li + li {
  border-top: 1px solid var(--td-border);
}

.teach-dash-program-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1rem;
  color: inherit;
  text-decoration: none;
  background: color-mix(in srgb, var(--td-bg) 35%, var(--td-stage));
}

.teach-dash-program-row:hover {
  background: var(--td-stage);
}

.teach-dash-program-row:focus-visible {
  outline: 2px solid var(--td-text);
  outline-offset: -2px;
}

.teach-dash-program-row .teach-dash-course-dot {
  width: 0.5rem;
  height: 0.5rem;
  margin: 0;
}

.teach-dash-program-row-title {
  font-family: var(--td-font);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.teach-dash-program-row-meta {
  font-size: 0.8rem;
  color: var(--td-muted);
  white-space: nowrap;
}

.teach-dash-program-row-go {
  display: inline-flex;
  color: var(--td-faint);
}

.teach-dash-weeks-block {
  margin-top: var(--td-space-5);
}

.teach-dash-program-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0.35rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--td-text);
  background: var(--td-hover);
  border-radius: 999px;
}

.teach-dash-course-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1rem;
}

.teach-dash-list-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem 1rem;
  margin: 0 0 var(--td-space-3);
}

.teach-dash-field--toolbar-search {
  flex: 1 1 14rem;
  max-width: 20rem;
  margin: 0;
}

.teach-dash-list-meta {
  margin: 0 0 0.55rem;
  min-height: 1.1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--td-faint);
}

.teach-dash-list-footnote {
  margin-top: var(--td-space-4);
}

.teach-dash-roster {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--td-border);
  border-radius: var(--td-radius);
  overflow: hidden;
  background: color-mix(in srgb, var(--td-bg) 35%, var(--td-stage));
}

.teach-dash-roster-item + .teach-dash-roster-item {
  border-top: 1px solid var(--td-border);
}

.teach-dash-roster-skel {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1rem;
  border-top: 1px solid var(--td-border);
}

.teach-dash-roster-skel:first-child {
  border-top: 0;
}

.teach-dash-skel {
  display: block;
  background: color-mix(in srgb, var(--td-muted) 16%, var(--td-stage));
  border-radius: 0.45rem;
}

.teach-dash-skel--avatar {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  flex-shrink: 0;
}

.teach-dash-skel-copy {
  display: grid;
  gap: 0.4rem;
  flex: 1;
  min-width: 0;
}

.teach-dash-skel--title {
  height: 0.85rem;
  width: 42%;
}

.teach-dash-skel--meta {
  height: 0.7rem;
  width: 58%;
}

.teach-dash-skel--input {
  height: 2.6rem;
  width: 100%;
  margin-top: 0.65rem;
}

.teach-dash-form-skel {
  max-width: 28rem;
  padding: 0.25rem 0 1rem;
}

.teach-dash-enroll-empty-action {
  margin-left: 0.2rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--td-text);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.teach-dash-roster-empty {
  padding: 0.85rem;
}

.teach-dash-roster-empty .teach-dash-empty {
  max-width: none;
  width: 100%;
  border: none;
  background: transparent;
  padding: 1.1rem 0.85rem;
}

.teach-dash-roster-empty .teach-dash-empty--students {
  align-items: center;
  text-align: center;
  padding: 2.25rem 1.35rem 2rem;
  border: 1px dashed var(--td-border);
  border-radius: calc(var(--td-radius) + 4px);
  background: color-mix(in srgb, var(--td-bg) 42%, var(--td-stage));
}

.teach-dash-roster-empty .teach-dash-empty--students.teach-dash-empty--compact {
  padding: 1.65rem 1.2rem;
}

.teach-dash-students-stage {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.teach-dash-students-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin: 0 0 var(--td-space-3);
}

.teach-dash-student-status-filters {
  flex: 1 1 12rem;
  min-width: 0;
}

.teach-dash-students-stage.is-empty .teach-dash-students-toolbar {
  display: none;
}

.teach-dash-students-empty-num {
  flex-shrink: 0;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  background: var(--td-hover);
  color: var(--td-text);
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.teach-dash-students-empty-steps {
  list-style: none;
  margin: 0.35rem 0 0.15rem;
  padding: 0;
  display: grid;
  gap: 0.45rem;
  max-width: 20rem;
  text-align: left;
}

.teach-dash-students-empty-steps li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.88rem;
  color: var(--td-muted);
}

.teach-dash-empty--students .teach-dash-empty-icon {
  margin-bottom: 0.15rem;
}

.teach-dash-roster--students:has(.teach-dash-roster-empty) {
  border-style: dashed;
  background: transparent;
}

.teach-dash-roster-link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 0.75rem 0.85rem;
  padding: 0.85rem 1rem;
  color: inherit;
  text-decoration: none;
}

.teach-dash-roster-link:hover {
  background: var(--td-hover);
}

.teach-dash-roster-link:focus-visible {
  outline: 2px solid var(--td-text);
  outline-offset: -2px;
}

.teach-dash-roster-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--td-pill) 88%, var(--td-stage));
  color: var(--td-pill-fg);
  font-family: var(--td-font);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.teach-dash-roster-copy {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}

.teach-dash-roster-name {
  font-family: var(--td-font);
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.teach-dash-roster-email {
  font-size: 0.8rem;
  color: var(--td-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.teach-dash-roster-enrollments {
  font-size: 0.8rem;
  color: var(--td-muted);
  white-space: nowrap;
  text-align: right;
}

.teach-dash-roster-go {
  display: inline-flex;
  color: var(--td-faint);
}

@media (max-width: 720px) {
  .teach-dash-list-toolbar,
  .teach-dash-students-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .teach-dash-student-status-filters {
    flex: 1 1 auto;
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .teach-dash-field--toolbar-search {
    max-width: none;
  }

  .teach-dash-roster-link {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
      "avatar copy go"
      "avatar meta go"
      "avatar status go";
  }

  .teach-dash-roster-avatar { grid-area: avatar; align-self: start; }
  .teach-dash-roster-copy { grid-area: copy; }
  .teach-dash-roster-enrollments {
    grid-area: meta;
    text-align: left;
  }
  .teach-dash-roster-link .teach-dash-status { grid-area: status; justify-self: start; }
  .teach-dash-roster-go { grid-area: go; }
}

.teach-dash-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--td-body);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.teach-dash-btn--ghost {
  color: var(--td-text);
  background: transparent;
  border-color: var(--td-border);
}

.teach-dash-btn--ghost:hover {
  background: var(--td-hover);
  border-color: color-mix(in srgb, var(--td-text) 18%, var(--td-border));
}

.teach-dash-btn--soft {
  color: var(--td-pill-fg);
  background: var(--td-pill);
  border-color: var(--td-pill);
}

.teach-dash-btn--soft:hover {
  filter: brightness(1.08);
}

.teach-dash-back {
  margin: -0.65rem 0 1.1rem;
  font-size: 0.85rem;
}

.teach-dash-back a {
  color: var(--td-muted);
  text-decoration: none;
  font-weight: 550;
}

.teach-dash-back a:hover {
  color: var(--td-text);
}

.teach-dash-course-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.teach-dash-course-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.85rem;
  min-height: 7.25rem;
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--td-border);
  border-radius: 1rem;
  background: color-mix(in srgb, var(--td-bg) 35%, var(--td-stage));
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.teach-dash-course-card:hover {
  border-color: color-mix(in srgb, var(--card-accent, var(--td-text)) 40%, var(--td-border));
  background: var(--td-stage);
  transform: translateY(-1px);
}

.teach-dash-course-card:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--td-pill) 55%, transparent);
  outline-offset: 2px;
}

.teach-dash-course-card-main {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.teach-dash-course-card-top {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.teach-dash-course-card .teach-dash-course-dot {
  margin: 0;
  width: 0.5rem;
  height: 0.5rem;
  flex-shrink: 0;
}

.teach-dash-course-card-title {
  font-family: var(--td-font);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  min-width: 0;
}

.teach-dash-course-card-meta {
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--td-faint);
}

.teach-dash-course-card-blurb {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--td-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.teach-dash-course-card-go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  color: var(--td-faint);
  background: color-mix(in srgb, var(--td-hover) 80%, transparent);
  transition: color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.teach-dash-course-card:hover .teach-dash-course-card-go {
  color: var(--td-text);
  background: var(--td-active);
  transform: translateX(2px);
}

.teach-dash-unit-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--td-border);
}

.teach-dash-unit-link {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr) auto;
  gap: 0.85rem;
  align-items: center;
  padding: 0.85rem 0.35rem;
  border-bottom: 1px solid var(--td-border);
  color: inherit;
  text-decoration: none;
  transition: background 0.15s ease;
}

.teach-dash-unit-link:hover {
  background: linear-gradient(90deg, transparent, var(--td-hover) 8%, var(--td-hover) 92%, transparent);
}

.teach-dash-unit-id {
  font-family: var(--td-font);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--td-faint);
}

.teach-dash-unit-title {
  font-family: var(--td-font);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.teach-dash-unit-cta {
  flex-shrink: 0;
  pointer-events: none;
}

.teach-dash-unit-link:hover .teach-dash-unit-cta {
  filter: brightness(1.08);
}

.teach-dash-week-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  width: 100%;
}

.teach-dash-week-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: center;
  min-width: 0;
  min-height: 4.35rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--td-border);
  border-radius: 0.9rem;
  background: color-mix(in srgb, var(--td-bg) 30%, var(--td-stage));
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.teach-dash-week-card:hover {
  border-color: color-mix(in srgb, var(--week-accent, var(--td-text)) 35%, var(--td-border));
  background: var(--td-stage);
  transform: translateY(-1px);
}

.teach-dash-week-card:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--td-pill) 55%, transparent);
  outline-offset: 2px;
}

.teach-dash-week-folder {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.7rem;
  background: color-mix(in srgb, var(--week-accent, var(--td-text)) 14%, transparent);
  color: color-mix(in srgb, var(--week-accent, var(--td-text)) 75%, var(--td-text));
  flex-shrink: 0;
}

.teach-dash-week-body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.teach-dash-week-id {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--td-faint);
}

.teach-dash-week-title {
  font-family: var(--td-font);
  font-size: 0.92rem;
  font-weight: 650;
  letter-spacing: -0.015em;
  line-height: 1.35;
  color: var(--td-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.teach-dash-week-meta {
  display: none;
}

.teach-dash-week-go {
  display: inline-flex;
  color: var(--td-faint);
  transition: color 0.15s ease, transform 0.15s ease;
}

.teach-dash-week-card:hover .teach-dash-week-go {
  color: var(--td-text);
  transform: translateX(2px);
}

html.lesson-embed .topbar-actions .theme-toggle,
html.lesson-embed #theme-btn,
html.lesson-embed #theme-btn.theme-toggle,
html.lesson-embed body:has(.app) .topbar-actions .theme-toggle,
body.lesson-embed .topbar-actions .theme-toggle,
body.lesson-embed #theme-btn,
body.lesson-embed #theme-btn.theme-toggle,
body.lesson-embed:has(.app) .topbar-actions .theme-toggle {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  width: 0 !important;
  min-width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
}

html.lesson-embed .sidebar-footer-meta-row,
body.lesson-embed .sidebar-footer-meta-row,
html.lesson-embed .sidebar-footer-dashboard,
body.lesson-embed .sidebar-footer-dashboard,
html.lesson-embed .lesson-dashboard-link,
body.lesson-embed .lesson-dashboard-link,
html.lesson-embed .lesson-back,
body.lesson-embed .lesson-back {
  display: none !important;
}

/* Week prev/next in embed are handled by main.js (parent Teaching notes URL). */

html.lesson-embed,
html.lesson-embed body,
body.lesson-embed {
  height: 100%;
  overflow: hidden;
}

html.lesson-embed .app,
body.lesson-embed .app {
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
}

html.lesson-embed .app .main,
body.lesson-embed .app .main {
  min-height: 0;
}

.teach-dash-page--embed .teach-dash-main {
  padding: 0.35rem 0.45rem 0.4rem 0.35rem;
}

.teach-dash-page--embed .teach-dash-topbar {
  margin-bottom: 0.3rem;
  min-height: 2.65rem;
  height: 2.65rem;
  gap: 0.5rem;
}

.teach-dash-page--embed .teach-dash-topbar-section,
.teach-dash-page--embed .teach-dash-topbar-divider,
.teach-dash-page--embed .teach-dash-topbar-brand {
  display: none;
}

.teach-dash-topbar--embed .teach-dash-topbar-start {
  flex: 1;
  min-width: 0;
  gap: 0.35rem;
}

.teach-dash-topbar--embed .teach-dash-embed-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  max-width: 12rem;
  min-height: 2rem;
  padding: 0.25rem 0.55rem;
  white-space: nowrap;
}

.teach-dash-topbar--embed .teach-dash-embed-back-label {
  overflow: hidden;
  text-overflow: ellipsis;
}

.teach-dash-topbar--embed .teach-dash-embed-title {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin: 0;
  flex: 1;
  min-width: 0;
  font-family: var(--td-font);
  font-size: 0.9rem;
  font-weight: 650;
  letter-spacing: -0.015em;
  color: var(--td-text);
  white-space: nowrap;
  overflow: hidden;
}

.teach-dash-topbar--embed .teach-dash-embed-title-text {
  overflow: hidden;
  text-overflow: ellipsis;
}

.teach-dash-topbar--embed .teach-dash-embed-kicker {
  flex-shrink: 0;
  margin-right: 0;
  color: var(--td-faint);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.teach-dash-embed-search {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.teach-dash-embed-search-btn {
  appearance: none;
  display: inline-grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  margin: 0;
  padding: 0;
  border: 1px solid var(--td-border);
  border-radius: 0.55rem;
  background: var(--td-surface-2, transparent);
  color: var(--td-text);
  cursor: pointer;
}

.teach-dash-embed-search-btn:hover,
.teach-dash-embed-search-btn[aria-expanded='true'] {
  background: var(--td-hover, color-mix(in srgb, var(--td-text) 8%, transparent));
}

.teach-dash-embed-search-panel {
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  z-index: 30;
  width: min(20rem, calc(100vw - 1.5rem));
  padding: 0.55rem;
  border: 1px solid var(--td-border);
  border-radius: 0.7rem;
  background: var(--td-stage);
  box-shadow: 0 12px 32px color-mix(in srgb, #0c0c0e 18%, transparent);
}

.teach-dash-embed-search-panel[hidden] {
  display: none !important;
}

.teach-dash-embed-search-field {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.25rem;
  padding: 0 0.55rem;
  border: 1px solid var(--td-border);
  border-radius: 0.55rem;
  background: color-mix(in srgb, var(--td-bg) 55%, var(--td-stage));
}

.teach-dash-embed-search-input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--td-text);
  font: inherit;
  font-size: 0.88rem;
  outline: none;
}

.teach-dash-embed-search-kbd {
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--td-faint);
  letter-spacing: 0.02em;
}

.teach-dash-stage--embed {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 0.75rem;
  height: auto;
}

.teach-dash-page--embed .teach-dash-stage--embed,
.teach-dash-page--embed .teach-dash-stage--note {
  min-height: calc(100dvh - 4.1rem);
}

.teach-dash-embed-bar {
  display: none !important;
}

.teach-dash-embed-frame {
  flex: 1;
  width: 100%;
  min-height: 0;
  height: 100%;
  border: 0;
  background: var(--td-stage);
}

@media (max-width: 1100px) {
  .teach-dash-topbar--embed .teach-dash-embed-back {
    max-width: 9.5rem;
  }

  .teach-dash-topbar--embed .teach-dash-embed-title {
    font-size: 0.84rem;
  }
}

@media (max-width: 860px) {
  .teach-dash-page--embed .teach-dash-main {
    padding: 0.3rem 0.35rem 0.35rem;
  }

  .teach-dash-page--embed .teach-dash-topbar {
    height: auto;
    min-height: 2.55rem;
    padding: 0.35rem 0.5rem;
    flex-wrap: nowrap;
  }

  .teach-dash-topbar--embed .teach-dash-embed-back-label {
    display: none;
  }

  .teach-dash-topbar--embed .teach-dash-embed-back {
    max-width: none;
    width: 2.15rem;
    height: 2.15rem;
    padding: 0;
    justify-content: center;
  }

  .teach-dash-topbar--embed .teach-dash-embed-kicker {
    display: none;
  }

  .teach-dash-topbar--embed .teach-dash-embed-title {
    font-size: 0.8rem;
  }

  .teach-dash-embed-search-kbd {
    display: none;
  }

  .teach-dash-page--embed .teach-dash-stage--embed,
  .teach-dash-page--embed .teach-dash-stage--note {
    min-height: calc(100dvh - 3.7rem);
    border-radius: 0.65rem;
  }
}

@media (max-width: 560px) {
  .teach-dash-page--embed .teach-dash-main {
    padding: 0.2rem;
  }

  .teach-dash-page--embed .teach-dash-topbar {
    margin-bottom: 0.2rem;
    border-radius: 0.55rem;
    gap: 0.35rem;
  }

  .teach-dash-topbar--embed .teach-dash-embed-title {
    font-size: 0.76rem;
  }

  .teach-dash-embed-search-panel {
    position: fixed;
    left: 0.5rem;
    right: 0.5rem;
    top: 3.4rem;
    width: auto;
  }

  .teach-dash-page--embed .teach-dash-stage--embed,
  .teach-dash-page--embed .teach-dash-stage--note {
    min-height: calc(100dvh - 3.35rem);
    border-radius: 0.5rem;
  }
}

/* Long-form instructor notes: match teach-dash docs system (Outfit / Work Sans), not public PRD serif */
.teach-dash-stage--note {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.teach-dash-note-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1.25rem clamp(1.1rem, 2.5vw, 2rem) 2.75rem;
}

.teach-dash-note h2.is-search-miss,
.teach-dash-note h3.is-search-miss,
.teach-dash-note h4.is-search-miss {
  opacity: 0.35;
}

.teach-dash-note {
  max-width: 44rem;
  margin: 0;
  font-family: var(--td-body);
  color: var(--td-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.teach-dash-note h2,
.teach-dash-note h3,
.teach-dash-note h4 {
  font-family: var(--td-font);
  color: var(--td-text);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.teach-dash-note h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  line-height: 1.2;
}

.teach-dash-note h3 {
  margin: 1.65rem 0 0.55rem;
  font-size: 1.02rem;
}

.teach-dash-note h4 {
  margin: 1.25rem 0 0.4rem;
  font-size: 0.92rem;
}

.teach-dash-note p {
  margin: 0 0 0.85rem;
  color: var(--td-muted);
}

.teach-dash-note strong {
  color: var(--td-text);
  font-weight: 650;
}

.teach-dash-note ul,
.teach-dash-note ol {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.teach-dash-note li {
  margin-bottom: 0.3rem;
}

.teach-dash-note a {
  color: var(--td-accent, var(--td-green));
  font-weight: 600;
}

.teach-dash-note .docs-kv {
  margin: 0.75rem 0 1.15rem;
  border: 1px solid var(--td-border);
  border-radius: var(--td-radius);
  overflow: hidden;
  background: color-mix(in srgb, var(--td-bg) 35%, var(--td-stage));
}

.teach-dash-note .docs-kv__row {
  grid-template-columns: 8.5rem minmax(0, 1fr);
  padding: 0.7rem 0.95rem;
  border-top-color: var(--td-border);
}

.teach-dash-note .docs-kv__row dt {
  font-family: var(--td-font);
  color: var(--td-faint);
}

.teach-dash-note .docs-kv__row dd {
  font-family: var(--td-body);
  font-weight: 500;
  color: var(--td-text);
}

.teach-dash-note .table-wrap {
  margin: 0.85rem 0 1.15rem;
  overflow-x: auto;
  border: 1px solid var(--td-border);
  border-radius: var(--td-radius);
  background: color-mix(in srgb, var(--td-bg) 35%, var(--td-stage));
}

.teach-dash-note table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.teach-dash-note th,
.teach-dash-note td {
  border-bottom: 1px solid var(--td-border);
  padding: 0.55rem 0.7rem;
  text-align: left;
  vertical-align: top;
}

.teach-dash-note tr:last-child th,
.teach-dash-note tr:last-child td {
  border-bottom: none;
}

.teach-dash-note th {
  font-family: var(--td-font);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--td-faint);
  background: color-mix(in srgb, var(--td-bg) 55%, var(--td-stage));
}

.teach-dash-note td {
  color: var(--td-text);
}

.teach-dash-note blockquote {
  margin: 0.75rem 0 1rem;
  padding: 0.75rem 0.95rem;
  border-left: 3px solid var(--td-accent, var(--td-green));
  border-radius: 0 var(--td-radius) var(--td-radius) 0;
  background: color-mix(in srgb, var(--td-accent, var(--td-green)) 8%, var(--td-stage));
  color: var(--td-text);
  font-style: normal;
}

/* Legacy class kept for older builds */
.teach-dash-full-note {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 1.25rem 1.35rem 2.5rem;
  max-width: 52rem;
}

@media (max-width: 900px) {
  .teach-dash-course-grid,
  .teach-dash-week-grid {
    grid-template-columns: 1fr;
  }

  .teach-dash-unit-link {
    grid-template-columns: 4.5rem minmax(0, 1fr);
    grid-template-areas:
      "id title"
      "id cta";
  }

  .teach-dash-unit-id { grid-area: id; }
  .teach-dash-unit-title { grid-area: title; }
  .teach-dash-unit-cta { grid-area: cta; }
}

.teach-dash-notes {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.teach-dash-note-card {
  scroll-margin-top: 1.25rem;
  padding: 1.15rem 1.25rem 1.25rem;
  border: 1px solid var(--td-border);
  border-radius: 1rem;
  background: color-mix(in srgb, var(--td-bg) 40%, var(--td-stage));
}

.teach-dash-note-head {
  display: grid;
  gap: 0.25rem;
  margin-bottom: 0.9rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--td-border);
}

.teach-dash-note-id {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--td-faint);
}

.teach-dash-note-title {
  margin: 0;
  font-family: var(--td-font);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.teach-dash-note-status {
  margin: 0.15rem 0 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--td-muted);
}

.teach-dash-note-row + .teach-dash-note-row {
  margin-top: 0.75rem;
}

.teach-dash-note-label {
  margin: 0 0 0.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--td-faint);
}

.teach-dash-note-body {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--td-text);
}

.teach-dash-note-body strong {
  font-weight: 700;
}

.teach-dash-note-empty {
  margin: 0;
  font-size: 0.9rem;
  color: var(--td-muted);
}

/* Settings · type ladder + row structure
   Page title > page lead > tabs > section title > section lead
   > row title > row value/control > row meta > status */
.teach-dash-page[data-teach-dash="settings"] {
  --set-page-lead: 0.875rem;
  --set-tab: 0.875rem;
  --set-section: 1rem;
  --set-section-lead: 0.8125rem;
  --set-row: 0.875rem;
  --set-meta: 0.75rem;
  --set-status: 0.8125rem;
  --set-label-col: minmax(12rem, 18rem);
  --set-value-col: minmax(0, 1fr);
}

.teach-dash-settings-shell {
  width: 100%;
  max-width: none;
  padding-bottom: 1.75rem;
}

.teach-dash-page[data-teach-dash="settings"] .teach-dash-head {
  gap: 0.35rem;
  margin: 0 0 1.35rem;
}

.teach-dash-page[data-teach-dash="settings"] .teach-dash-title {
  font-size: clamp(1.5rem, 2.2vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.teach-dash-page[data-teach-dash="settings"] .teach-dash-lead {
  max-width: 36rem;
  font-size: var(--set-page-lead, 0.875rem);
  font-weight: 400;
  line-height: 1.5;
  color: var(--td-faint);
}

.teach-dash-page[data-teach-dash="settings"] .teach-dash-stage {
  padding-bottom: 2.5rem;
}

.teach-dash-settings-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.25rem;
  margin: 0 0 1.85rem;
  padding: 0;
  border-bottom: 1px solid var(--td-border);
  overflow: hidden;
}

.teach-dash-settings-tab {
  position: relative;
  flex: 0 0 auto;
  margin: 0 0 -1px;
  padding: 0.55rem 0.05rem 1rem;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--td-faint);
  font-family: var(--td-body);
  font-size: var(--set-tab);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
}

.teach-dash-settings-tab:hover {
  color: var(--td-muted);
}

.teach-dash-settings-tab.is-active {
  color: var(--td-text);
  border-bottom-color: var(--td-text);
  font-weight: 600;
}

.teach-dash-settings-tab:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--td-text) 35%, transparent);
  outline-offset: 2px;
  border-radius: 0.25rem;
}

.teach-dash-settings-panels {
  width: 100%;
}

.teach-dash-settings-panel {
  width: 100%;
  min-width: 0;
}

.teach-dash-settings-section-head {
  margin: 0 0 1.35rem;
  max-width: 36rem;
}

.teach-dash-settings-section-title {
  margin: 0 0 0.3rem;
  font-family: var(--td-font);
  font-size: var(--set-section);
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.25;
  color: var(--td-text);
}

.teach-dash-settings-section-lead {
  margin: 0;
  font-size: var(--set-section-lead);
  font-weight: 400;
  line-height: 1.5;
  color: var(--td-faint);
}

.teach-dash-settings-form {
  width: 100%;
  max-width: none;
}

.teach-dash-settings-rows {
  display: flex;
  flex-direction: column;
  width: 100%;
  border-top: 1px solid var(--td-border);
}

.teach-dash-settings-row {
  display: grid;
  grid-template-columns: var(--set-label-col) var(--set-value-col);
  gap: 0.85rem 1.75rem;
  align-items: center;
  margin: 0;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--td-border);
}

.teach-dash-settings-row--stack {
  grid-template-columns: 1fr;
  align-items: start;
  gap: 0.85rem;
}

.teach-dash-settings-row-label {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  min-width: 0;
  max-width: 22rem;
}

.teach-dash-settings-row-title {
  margin: 0;
  font-family: var(--td-body);
  font-size: var(--set-row);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: var(--td-text);
}

.teach-dash-settings-row-meta {
  margin: 0;
  font-size: var(--set-meta);
  font-weight: 400;
  line-height: 1.45;
  color: var(--td-faint);
  overflow-wrap: anywhere;
}

.teach-dash-settings-row-control {
  min-width: 0;
  width: 100%;
}

.teach-dash-settings-row-control--end {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.5rem;
}

.teach-dash-settings-row-control--full {
  width: 100%;
}

.teach-dash-settings-row-control--inline {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.55rem;
  align-items: stretch;
  justify-content: flex-end;
}

.teach-dash-settings-row-control--inline .teach-dash-input {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 18rem;
}

.teach-dash-settings-row-control--inline .teach-dash-btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

.teach-dash-settings-row-value {
  margin: 0;
  font-size: var(--set-row);
  font-weight: 500;
  line-height: 1.35;
  color: var(--td-muted);
  overflow-wrap: anywhere;
  text-align: right;
}

.teach-dash-settings-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  margin-top: 1.35rem;
}

.teach-dash-settings-shell .teach-dash-catalog-status,
.teach-dash-settings-status {
  margin: 0;
  min-height: 1.15rem;
  font-size: var(--set-status);
  font-weight: 500;
  line-height: 1.4;
  color: var(--td-faint);
}

.teach-dash-settings-chips {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  min-height: 1.25rem;
  width: 100%;
}

.teach-dash-settings-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: 100%;
  padding: 0.3rem 0.35rem 0.3rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--td-border);
  background: transparent;
  font-size: var(--set-meta);
  font-weight: 500;
  color: var(--td-muted);
  overflow-wrap: anywhere;
}

.teach-dash-settings-chip span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.teach-dash-settings-chip button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.35rem;
  height: 1.35rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--td-faint);
  cursor: pointer;
}

.teach-dash-settings-chip button:hover {
  background: var(--td-hover);
  color: var(--td-text);
}

.teach-dash-settings-empty {
  margin: 0;
  font-size: var(--set-meta);
  font-weight: 400;
  color: var(--td-faint);
}

.teach-dash-check {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: var(--set-row);
  font-weight: 500;
  line-height: 1.35;
  color: var(--td-muted);
  cursor: pointer;
}

.teach-dash-check--compact {
  align-items: center;
  margin: 0;
}

.teach-dash-check input {
  width: 1rem;
  height: 1rem;
  margin-top: 0.12rem;
  flex-shrink: 0;
  accent-color: var(--td-pill);
}

.teach-dash-check--compact input {
  margin-top: 0;
}

.teach-dash-theme-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  width: 100%;
  margin-top: 0;
}

.teach-dash-theme-option {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  align-items: stretch;
  min-width: 0;
  padding: 0.5rem;
  border: 1px solid var(--td-border);
  border-radius: 0.75rem;
  background: transparent;
  color: var(--td-muted);
  cursor: pointer;
  text-align: left;
  font-family: var(--td-body);
  font-size: var(--set-meta);
  font-weight: 550;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.teach-dash-theme-option:hover {
  background: var(--td-hover);
  color: var(--td-text);
}

.teach-dash-theme-option[aria-checked="true"] {
  border-color: color-mix(in srgb, var(--td-text) 22%, var(--td-border));
  background: var(--td-hover);
  color: var(--td-text);
  font-weight: 600;
}

.teach-dash-theme-option-label {
  overflow-wrap: anywhere;
}

.teach-dash-theme-preview {
  display: block;
  height: 2.35rem;
  border-radius: 0.45rem;
  border: 1px solid var(--td-border);
}

.teach-dash-theme-preview--light {
  background: linear-gradient(135deg, #f4f4f5 40%, #e4e4e7 100%);
}

.teach-dash-theme-preview--dark {
  background: linear-gradient(135deg, #18181b 40%, #09090b 100%);
}

.teach-dash-theme-preview--system {
  background: linear-gradient(90deg, #f4f4f5 50%, #18181b 50%);
}

.teach-dash-security-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin: 0 0 1.15rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--td-border);
  border-radius: 0.75rem;
  background: color-mix(in srgb, var(--td-text) 2.5%, var(--td-stage));
}

.teach-dash-security-banner-icon {
  display: inline-flex;
  flex-shrink: 0;
  margin-top: 0.05rem;
  color: var(--td-green);
}

.teach-dash-security-banner-copy {
  min-width: 0;
}

.teach-dash-security-banner-title {
  margin: 0 0 0.15rem;
  font-size: var(--set-row);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: var(--td-text);
}

.teach-dash-security-banner-text {
  margin: 0;
  font-size: var(--set-meta);
  font-weight: 400;
  line-height: 1.45;
  color: var(--td-faint);
}

.teach-dash-security-pill {
  flex-shrink: 0;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--td-border);
  background: transparent;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  color: var(--td-faint);
  white-space: nowrap;
}

.teach-dash-security-pill--ok {
  border-color: color-mix(in srgb, var(--td-green) 30%, var(--td-border));
  background: color-mix(in srgb, var(--td-green) 8%, transparent);
  color: var(--td-green);
}

.teach-dash-security-devices {
  margin: 1.85rem 0 0;
  padding-top: 0.15rem;
}

.teach-dash-security-devices-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.teach-dash-security-devices-title {
  margin: 0 0 0.25rem;
  font-family: var(--td-font);
  font-size: var(--set-section);
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.25;
  color: var(--td-text);
}

.teach-dash-security-devices-lead {
  margin: 0;
  max-width: 28rem;
  font-size: var(--set-section-lead);
  font-weight: 400;
  line-height: 1.5;
  color: var(--td-faint);
}

.teach-dash-device-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--td-border);
}

.teach-dash-device-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--td-border);
  background: transparent;
}

.teach-dash-device-row--current {
  background: transparent;
}

.teach-dash-device-copy {
  min-width: 0;
}

.teach-dash-device-title {
  margin: 0 0 0.15rem;
  font-size: var(--set-row);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: var(--td-text);
}

.teach-dash-device-current {
  margin-left: 0.35rem;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  border: 1px solid var(--td-border);
  font-size: 0.6875rem;
  font-weight: 550;
  color: var(--td-faint);
  vertical-align: middle;
}

.teach-dash-device-meta {
  margin: 0;
  font-size: var(--set-meta);
  font-weight: 400;
  line-height: 1.45;
  color: var(--td-faint);
  overflow-wrap: anywhere;
}

.teach-dash-device-empty {
  margin: 0;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--td-border);
  font-size: var(--set-section-lead);
  font-weight: 400;
  line-height: 1.5;
  color: var(--td-faint);
}

.teach-dash-device-revoke {
  flex-shrink: 0;
}

.teach-dash-settings-shell .teach-dash-input {
  min-width: 0;
  min-height: 2.35rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.65rem;
  font-size: var(--set-row);
  font-weight: 450;
  overflow-wrap: anywhere;
}

.teach-dash-settings-shell .teach-dash-btn {
  min-height: 2.1rem;
  padding: 0.4rem 0.8rem;
  border-radius: 0.55rem;
  font-size: var(--set-meta);
  font-weight: 600;
}

.teach-dash-settings-shell .teach-dash-btn--ghost {
  color: var(--td-muted);
}

.teach-dash-settings-shell .teach-dash-btn--ghost:hover {
  color: var(--td-text);
}

.teach-dash-settings-shell .teach-dash-currency {
  width: 100%;
  max-width: 17rem;
  margin-left: auto;
}

.teach-dash-settings-shell .teach-dash-currency-trigger {
  width: 100%;
  min-height: 2.35rem;
  border-radius: 0.65rem;
  font-size: var(--set-row);
}

.teach-dash-settings-shell .teach-dash-currency-value {
  font-weight: 500;
}

@media (max-width: 720px) {
  .teach-dash-settings-row {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 0.65rem;
    padding: 1.05rem 0;
  }

  .teach-dash-settings-row-label {
    max-width: none;
  }

  .teach-dash-settings-row-value,
  .teach-dash-settings-row-control--end {
    justify-content: flex-start;
    text-align: left;
  }

  .teach-dash-settings-row-control--inline {
    justify-content: stretch;
    flex-wrap: wrap;
  }

  .teach-dash-settings-row-control--inline .teach-dash-input {
    max-width: none;
  }

  .teach-dash-settings-row-control--inline .teach-dash-btn {
    width: 100%;
  }

  .teach-dash-settings-shell .teach-dash-currency {
    max-width: none;
    margin-left: 0;
  }

  .teach-dash-security-devices-head,
  .teach-dash-device-row {
    flex-direction: column;
    align-items: stretch;
  }

  .teach-dash-security-pill,
  .teach-dash-device-revoke {
    align-self: flex-start;
  }

  .teach-dash-theme-grid {
    grid-template-columns: 1fr;
  }
}

.teach-dash-catalog-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.teach-dash-analytics-block {
  margin: 0 0 var(--td-space-5);
}

.teach-dash-analytics-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem 1.25rem;
  margin: 0 0 var(--td-space-4);
  padding: 1rem 1.15rem;
  border: 1px solid color-mix(in srgb, var(--td-warn, #ca8a04) 28%, var(--td-border));
  border-radius: var(--td-radius, 0.85rem);
  background: color-mix(in srgb, var(--td-warn, #ca8a04) 8%, var(--td-stage));
}

.teach-dash-analytics-banner-copy {
  min-width: min(100%, 16rem);
  flex: 1;
}

.teach-dash-analytics-banner-title {
  margin: 0 0 0.3rem;
  font-family: var(--td-font);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.teach-dash-analytics-banner-body {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--td-muted);
}

.teach-dash-analytics-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.teach-dash-analytics-period {
  margin: 0 0 var(--td-space-5);
}

.teach-dash-analytics-period .teach-dash-toolbar {
  margin-bottom: 0.45rem;
}

.teach-dash-analytics-period-hint {
  margin: 0;
}

.teach-dash-stats--empty .teach-dash-stat-value {
  color: var(--td-muted);
  font-weight: 650;
}

.teach-dash-section-head--analytics {
  margin-bottom: 0.85rem;
}

.teach-dash-chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.teach-dash-chart-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-width: 0;
  padding: 1rem 1.05rem 1.1rem;
  border: 1px solid var(--td-border);
  border-radius: 0.85rem;
  background: color-mix(in srgb, var(--td-stage) 88%, var(--td-hover));
}

.teach-dash-chart-card--empty {
  background: color-mix(in srgb, var(--td-bg) 40%, var(--td-stage));
}

.teach-dash-chart-card--empty .teach-dash-hbar-track,
.teach-dash-chart-card--empty .teach-dash-capbar-track,
.teach-dash-chart-card--empty .teach-dash-gbar-pair,
.teach-dash-chart-card--empty .teach-dash-line {
  opacity: 0.45;
}

.teach-dash-chart-card--empty .teach-dash-hbar-value,
.teach-dash-chart-card--empty .teach-dash-gbar-sub,
.teach-dash-chart-card--empty .teach-dash-capbar-values {
  color: var(--td-faint);
}

.teach-dash-chart-card--wide {
  grid-column: 1 / -1;
}

.teach-dash-chart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.teach-dash-chart-title {
  margin: 0;
  font-family: var(--td-font);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.teach-dash-chart-lead {
  margin: 0.2rem 0 0;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--td-muted);
}

.teach-dash-chart-empty-tag {
  flex-shrink: 0;
  padding: 0.18rem 0.45rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--td-muted);
  background: var(--td-hover);
}

.teach-dash-chart-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.85rem;
  margin: 0;
  font-size: 0.75rem;
  color: var(--td-muted);
}

.teach-dash-chart-body {
  min-width: 0;
}

.teach-dash-swatch {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  margin-right: 0.28rem;
  border-radius: 999px;
  vertical-align: 0.05em;
}

.teach-dash-swatch--a { background: #3b82f6; }
.teach-dash-swatch--b { background: #10b981; }
.teach-dash-swatch--c { background: #f59e0b; }
.teach-dash-swatch--d { background: #64748b; }
.teach-dash-swatch--ok { background: #22c55e; }

.teach-dash-hbar {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.teach-dash-hbar-row {
  display: grid;
  grid-template-columns: minmax(5.5rem, 7.5rem) minmax(0, 1fr) auto;
  gap: 0.55rem 0.65rem;
  align-items: center;
}

.teach-dash-hbar-label {
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--td-text);
}

.teach-dash-hbar-track {
  height: 0.55rem;
  border-radius: 999px;
  background: var(--td-hover);
  overflow: hidden;
}

.teach-dash-hbar-fill {
  display: block;
  height: 100%;
  min-width: 0;
  border-radius: inherit;
  background: #3b82f6;
}

.teach-dash-hbar-fill--a { background: #3b82f6; }
.teach-dash-hbar-fill--b { background: #10b981; }
.teach-dash-hbar-fill--c { background: #f59e0b; }
.teach-dash-hbar-fill--d { background: #64748b; }
.teach-dash-hbar-fill--ok { background: #22c55e; }
.teach-dash-hbar-fill--warn { background: #f59e0b; }
.teach-dash-hbar-fill--danger { background: #ef4444; }

.teach-dash-hbar-value {
  font-size: 0.78rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--td-muted);
  white-space: nowrap;
}

.teach-dash-gbar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(5.5rem, 1fr));
  gap: 0.75rem;
  align-items: end;
  min-height: 9.5rem;
  padding-top: 0.35rem;
}

.teach-dash-gbar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

.teach-dash-gbar-pair {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.28rem;
  width: 100%;
  height: 6.5rem;
  padding: 0 0.2rem;
  border-bottom: 1px solid var(--td-border);
}

.teach-dash-gbar-bar {
  display: block;
  width: 0.85rem;
  min-height: 2px;
  border-radius: 0.28rem 0.28rem 0.1rem 0.1rem;
}

.teach-dash-gbar-bar--a { background: #3b82f6; }
.teach-dash-gbar-bar--b { background: #22c55e; }

.teach-dash-gbar-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
  color: var(--td-text);
}

.teach-dash-gbar-sub {
  font-size: 0.68rem;
  text-align: center;
  color: var(--td-muted);
}

.teach-dash-capbar {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.teach-dash-capbar-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.28rem;
}

.teach-dash-capbar-label {
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--td-text);
}

.teach-dash-capbar-values {
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  color: var(--td-muted);
  white-space: nowrap;
}

.teach-dash-capbar-track {
  height: 0.65rem;
  border-radius: 999px;
  background: var(--td-hover);
  overflow: hidden;
}

.teach-dash-capbar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #10b981;
}

.teach-dash-line {
  display: block;
  width: 100%;
  height: auto;
  max-height: 8rem;
}

.teach-dash-line-grid line {
  stroke: var(--td-border);
  stroke-width: 1;
}

.teach-dash-line-path {
  fill: none;
  stroke: #3b82f6;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.teach-dash-line-dot {
  fill: #3b82f6;
}

.teach-dash-line-axis {
  display: flex;
  justify-content: space-between;
  margin-top: 0.35rem;
  font-size: 0.7rem;
  color: var(--td-muted);
}

.teach-dash-dualkpi {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.teach-dash-dualkpi-item {
  padding: 0.85rem 0.9rem;
  border-radius: 0.7rem;
  background: var(--td-hover);
}

.teach-dash-dualkpi-item--warn {
  box-shadow: inset 3px 0 0 #f59e0b;
}

.teach-dash-dualkpi-item--danger {
  box-shadow: inset 3px 0 0 #ef4444;
}

.teach-dash-dualkpi-label {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 650;
  color: var(--td-muted);
}

.teach-dash-dualkpi-value {
  margin: 0.25rem 0 0;
  font-family: var(--td-font);
  font-size: 1.55rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.teach-dash-dualkpi-note {
  margin: 0.2rem 0 0;
  font-size: 0.72rem;
  color: var(--td-muted);
}

.teach-dash-risk {
  text-align: center;
  padding: 0.35rem 0.25rem 0.15rem;
}

.teach-dash-risk-count {
  margin: 0;
  font-family: var(--td-font);
  font-size: 2.4rem;
  font-weight: 750;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.teach-dash-risk-note {
  margin: 0.35rem 0 0.85rem;
  font-size: 0.8rem;
  color: var(--td-muted);
}

.teach-dash-risk-rules {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-align: left;
}

.teach-dash-risk-rules li {
  padding: 0.45rem 0.6rem;
  border-radius: 0.55rem;
  font-size: 0.78rem;
  color: var(--td-text);
  background: var(--td-hover);
}

.teach-dash-funnel {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  align-items: center;
}

.teach-dash-funnel-step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: var(--funnel-w, 100%);
  padding: 0.55rem 0.75rem;
  border-radius: 0.55rem;
  background: color-mix(in srgb, #3b82f6 18%, var(--td-hover));
}

.teach-dash-funnel-label {
  font-size: 0.8rem;
  font-weight: 650;
}

.teach-dash-funnel-value {
  font-size: 0.85rem;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.teach-dash-analytics-note {
  margin: 0.25rem 0 0;
  padding: 0.9rem 0 0;
  border-top: 1px solid var(--td-border);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.86rem;
  color: var(--td-muted);
}

.teach-dash-analytics-note p {
  margin: 0;
}

.teach-dash-tab:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

@media (max-width: 900px) {
  .teach-dash-chart-grid {
    grid-template-columns: 1fr;
  }

  .teach-dash-chart-card--wide {
    grid-column: auto;
  }

  .teach-dash-hbar-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .teach-dash-hbar-label {
    grid-column: 1 / -1;
  }

  .teach-dash-dualkpi {
    grid-template-columns: 1fr;
  }
}

.teach-dash-toolbar--catalog {
  margin: 0 0 0.85rem;
}

.teach-dash-catalog-empty-filter {
  margin: 0 0 1rem;
  color: var(--td-muted);
  font-size: 0.92rem;
}

.teach-dash-catalog-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.95rem;
  align-items: center;
  padding: 1rem 0.25rem;
  border-bottom: 1px solid var(--td-border);
}

.teach-dash-catalog-row[hidden] {
  display: none !important;
}

.teach-dash-catalog-row[data-price-status="needs-price"] .teach-dash-catalog-status-pill {
  color: #9a3412;
  background: color-mix(in srgb, #fdba74 35%, transparent);
}

html[data-theme="dark"] .teach-dash-catalog-row[data-price-status="needs-price"] .teach-dash-catalog-status-pill {
  color: #fdba74;
  background: color-mix(in srgb, #9a3412 45%, transparent);
}

.teach-dash-catalog-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.35rem;
  height: 3.35rem;
  padding: 0.35rem;
  border-radius: 0.85rem;
  background: color-mix(in srgb, var(--td-pill) 55%, var(--td-stage));
  color: var(--td-pill-fg);
  font-family: var(--td-font);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.15;
  text-align: center;
  text-wrap: balance;
}

.teach-dash-catalog-thumb--lg {
  width: 4.25rem;
  height: 4.25rem;
  font-size: 0.72rem;
}

.teach-dash-catalog-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.teach-dash-catalog-kind {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--td-faint);
}

.teach-dash-catalog-title {
  margin: 0;
  font-family: var(--td-font);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.teach-dash-catalog-meta {
  margin: 0;
  font-size: 0.84rem;
  color: var(--td-muted);
}

.teach-dash-catalog-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.45rem;
  margin: 0.2rem 0 0;
}

.teach-dash-catalog-price {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--td-text);
}

.teach-dash-catalog-sep {
  color: var(--td-muted);
  font-weight: 500;
}

.teach-dash-catalog-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--td-muted);
  background: var(--td-hover);
}

.teach-dash-catalog-visibility-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #166534;
  background: color-mix(in srgb, #86efac 40%, transparent);
}

html[data-theme="dark"] .teach-dash-catalog-visibility-pill {
  color: #86efac;
  background: color-mix(in srgb, #166534 50%, transparent);
}

.teach-dash-catalog-visibility-pill[data-state="hidden"] {
  color: #9a3412;
  background: color-mix(in srgb, #fdba74 35%, transparent);
}

html[data-theme="dark"] .teach-dash-catalog-visibility-pill[data-state="hidden"] {
  color: #fdba74;
  background: color-mix(in srgb, #9a3412 45%, transparent);
}

.teach-dash-catalog-status-pill[data-status="priced"] {
  color: #166534;
  background: color-mix(in srgb, #86efac 40%, transparent);
}

html[data-theme="dark"] .teach-dash-catalog-status-pill[data-status="priced"] {
  color: #86efac;
  background: color-mix(in srgb, #166534 50%, transparent);
}

.teach-dash-catalog-preview {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 0.35rem;
}

.teach-dash-catalog-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 34rem;
}

.teach-dash-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.teach-dash-field-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--td-faint);
}

.teach-dash-field-error {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--td-urgent);
}

.teach-dash-field-error[hidden] {
  display: none;
}

html[data-theme="dark"] .teach-dash-field-error {
  color: #fecaca;
}

.teach-dash-field-hint {
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--td-muted);
}

.teach-dash-input.is-invalid {
  border-color: var(--td-urgent);
}

.teach-dash-input-combo.is-invalid {
  border-color: var(--td-urgent);
}

.teach-dash-input-combo.is-invalid:focus-within {
  outline-color: color-mix(in srgb, var(--td-urgent) 55%, transparent);
}

.teach-dash-check .teach-dash-field-hint {
  display: inline-block;
  margin-top: 0.18rem;
}

.teach-dash-input {
  width: 100%;
  min-height: 2.6rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--td-border);
  border-radius: 0.75rem;
  background: color-mix(in srgb, var(--td-bg) 35%, var(--td-stage));
  color: var(--td-text);
  font-family: var(--td-body);
  font-size: 0.95rem;
}

select.teach-dash-input,
.teach-dash-select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 2.4rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 1rem;
}

select.teach-dash-input option,
.teach-dash-select option {
  background: var(--td-bg);
  color: var(--td-text);
}

.teach-dash-currency,
.teach-dash-picker {
  position: relative;
  width: 100%;
}

.teach-dash-currency-trigger,
.teach-dash-picker-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  min-height: 2.6rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--td-border);
  border-radius: 0.75rem;
  background: color-mix(in srgb, var(--td-bg) 35%, var(--td-stage));
  color: var(--td-text);
  font-family: var(--td-body);
  font-size: 0.95rem;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.teach-dash-currency-trigger:hover,
.teach-dash-picker-trigger:hover {
  border-color: color-mix(in srgb, var(--td-text) 16%, var(--td-border));
  background: var(--td-hover);
}

.teach-dash-currency-trigger:focus-visible,
.teach-dash-picker-trigger:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--td-pill) 55%, transparent);
  outline-offset: 1px;
}

.teach-dash-currency.is-open .teach-dash-currency-trigger,
.teach-dash-picker.is-open .teach-dash-picker-trigger {
  border-color: color-mix(in srgb, var(--td-text) 22%, var(--td-border));
}

.teach-dash-currency-value,
.teach-dash-picker-value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 550;
  letter-spacing: -0.01em;
}

.teach-dash-picker-value.is-placeholder {
  color: var(--td-muted);
  font-weight: 500;
}

.teach-dash-currency-chevron,
.teach-dash-picker-chevron {
  display: inline-flex;
  flex-shrink: 0;
  color: var(--td-muted);
  transition: transform 0.15s ease;
}

.teach-dash-currency.is-open .teach-dash-currency-chevron,
.teach-dash-picker.is-open .teach-dash-picker-chevron {
  transform: rotate(180deg);
}

.teach-dash-picker-panel {
  position: absolute;
  z-index: 50;
  top: calc(100% + 0.35rem);
  left: 0;
  right: 0;
  display: grid;
  gap: 0.3rem;
  margin: 0;
  padding: 0.35rem;
  border: 1px solid var(--td-border);
  border-radius: 0.75rem;
  background: var(--td-bg);
  box-shadow: 0 10px 28px color-mix(in srgb, #000 22%, transparent);
}

.teach-dash-picker-panel[hidden] {
  display: none !important;
}

.teach-dash-picker-search {
  width: 100%;
  min-height: 2.2rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--td-border);
  border-radius: 0.55rem;
  background: color-mix(in srgb, var(--td-bg) 35%, var(--td-stage));
  color: var(--td-text);
  font-family: var(--td-body);
  font-size: 0.9rem;
}

.teach-dash-picker-search[hidden] {
  display: none !important;
}

.teach-dash-picker-search:focus {
  outline: 2px solid color-mix(in srgb, var(--td-pill) 55%, transparent);
  outline-offset: 1px;
}

.teach-dash-picker-menu {
  margin: 0;
  padding: 0;
  list-style: none;
  max-height: 14rem;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.teach-dash-currency-menu {
  position: absolute;
  z-index: 40;
  top: calc(100% + 0.35rem);
  left: 0;
  right: 0;
  margin: 0;
  padding: 0.3rem;
  list-style: none;
  border: 1px solid var(--td-border);
  border-radius: 0.75rem;
  background: var(--td-bg);
  box-shadow: 0 10px 28px color-mix(in srgb, #000 22%, transparent);
  max-height: 16rem;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.teach-dash-currency-option,
.teach-dash-picker-option {
  display: block;
  width: 100%;
  padding: 0.58rem 0.7rem;
  border: 0;
  border-radius: 0.55rem;
  background: transparent;
  color: var(--td-text);
  font-family: var(--td-body);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-align: left;
  cursor: pointer;
  transition: background 0.12s ease;
}

.teach-dash-currency-option:hover,
.teach-dash-currency-option:focus-visible,
.teach-dash-picker-option:hover,
.teach-dash-picker-option:focus-visible {
  outline: none;
  background: var(--td-hover);
}

.teach-dash-currency-option.is-selected,
.teach-dash-picker-option.is-selected {
  background: color-mix(in srgb, var(--td-text) 9%, transparent);
  font-weight: 600;
}

.teach-dash-picker-option.is-disabled {
  color: var(--td-muted);
  cursor: default;
  font-weight: 500;
}

.teach-dash-picker-option.is-disabled:hover,
.teach-dash-picker-option.is-disabled:focus-visible {
  background: transparent;
}

html:not([data-theme="dark"]) .teach-dash-currency-menu,
html:not([data-theme="dark"]) .teach-dash-picker-panel {
  box-shadow: 0 10px 24px color-mix(in srgb, #000 10%, transparent);
}

.teach-dash-input:focus {
  outline: 2px solid color-mix(in srgb, var(--td-pill) 55%, transparent);
  outline-offset: 1px;
  border-color: color-mix(in srgb, var(--td-text) 20%, var(--td-border));
}

.teach-dash-input--area {
  min-height: 7rem;
  resize: vertical;
  line-height: 1.5;
}

.teach-dash-catalog-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.25rem;
}

.teach-dash-catalog-form-actions .teach-dash-btn {
  min-height: 2.4rem;
  padding: 0.55rem 1.05rem;
  cursor: pointer;
}

.teach-dash-input-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.teach-dash-input-row .teach-dash-input {
  flex: 1;
}

.teach-dash-fieldset {
  margin: 0;
  padding: 0.85rem 0 0.25rem;
  border: 0;
  display: grid;
  gap: 0.55rem;
}

.teach-dash-fieldset .teach-dash-field-label {
  margin-bottom: 0.25rem;
}

.teach-dash-credentials {
  margin-top: 1.5rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius, 12px);
  border: 1px solid var(--td-border, var(--border));
  background: var(--td-stage, var(--surface));
}

.teach-dash-credentials-box {
  margin: 0.75rem 0 1rem;
  padding: 0.9rem 1rem;
  border-radius: 8px;
  background: #0c0c0e;
  color: #f4f4f5;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.82rem;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-x: auto;
}

.teach-dash-section-title {
  margin: 0 0 0.65rem;
  font-size: 1rem;
  font-weight: 600;
}

.teach-dash-student-flow {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 76rem;
  margin-inline: auto;
}

.teach-dash-student-flow--edit {
  gap: 0.85rem;
}

.teach-dash-student-form--profile {
  display: grid;
  gap: 1rem;
}

.teach-dash-student-overview {
  display: grid;
  gap: 0.85rem;
}

.teach-dash-student-identity {
  display: grid;
  gap: 0.85rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--td-border);
  border-radius: calc(var(--td-radius) + 2px);
  background: color-mix(in srgb, var(--td-bg) 18%, var(--td-stage));
}

.teach-dash-student-identity-main {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1rem 1.15rem;
}

.teach-dash-student-identity-copy {
  flex: 1 1 14rem;
  min-width: 0;
  display: grid;
  gap: 0.35rem;
}

.teach-dash-student-identity-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
}

.teach-dash-student-badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.45rem;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  border: 1px solid var(--td-border);
  color: var(--td-muted);
  background: var(--td-hover);
}

.teach-dash-student-badge.is-active {
  color: #166534;
  border-color: color-mix(in srgb, #22c55e 35%, var(--td-border));
  background: color-mix(in srgb, #22c55e 12%, var(--td-stage));
}

html[data-theme="dark"] .teach-dash-student-badge.is-active {
  color: #86efac;
}

.teach-dash-student-badge.is-invited {
  color: #92400e;
  border-color: color-mix(in srgb, #f59e0b 35%, var(--td-border));
  background: color-mix(in srgb, #f59e0b 12%, var(--td-stage));
}

html[data-theme="dark"] .teach-dash-student-badge.is-invited {
  color: #fcd34d;
}

.teach-dash-student-badge.is-disabled {
  color: #991b1b;
  border-color: color-mix(in srgb, #ef4444 35%, var(--td-border));
  background: color-mix(in srgb, #ef4444 10%, var(--td-stage));
}

html[data-theme="dark"] .teach-dash-student-badge.is-disabled {
  color: #fca5a5;
}

.teach-dash-student-hero-sub {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--td-muted);
}

.teach-dash-student-identity-meta {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.15rem;
}

@media (min-width: 640px) {
  .teach-dash-student-identity-meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem 1rem;
  }
}

.teach-dash-student-meta-item {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.teach-dash-student-meta-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--td-faint);
}

.teach-dash-student-meta-value {
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--td-text);
  overflow: hidden;
  text-overflow: ellipsis;
}

.teach-dash-student-meta-value-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

.teach-dash-student-meta-value-row .teach-dash-student-meta-value {
  min-width: 0;
}

.teach-dash-student-copy-email {
  flex-shrink: 0;
  display: inline-grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  padding: 0;
  border: 0;
  border-radius: 0.4rem;
  background: transparent;
  color: var(--td-muted);
  cursor: pointer;
}

.teach-dash-student-copy-email:hover {
  background: var(--td-hover);
  color: var(--td-text);
}

.teach-dash-student-copy-email:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--td-pill) 55%, transparent);
  outline-offset: 2px;
}

.teach-dash-student-meta-value--mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
}

.teach-dash-student-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.teach-dash-student-quick-actions[hidden] {
  display: none !important;
}

.teach-dash-student-profile-save {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.15rem;
}

.teach-dash-student-profile-save[hidden] {
  display: none !important;
}

.teach-dash-student-status--inline {
  margin: 0;
}

.teach-dash-student-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

@media (min-width: 720px) {
  .teach-dash-student-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.teach-dash-student-stat {
  display: grid;
  gap: 0.15rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--td-border);
  border-radius: var(--td-radius);
  background: var(--td-stage);
}

.teach-dash-student-stat-value {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--td-text);
  line-height: 1.1;
}

.teach-dash-student-stat-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--td-faint);
}

.teach-dash-student-enroll-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.teach-dash-student-enroll-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.65rem 0.85rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--td-border);
  border-radius: var(--td-radius);
  background: color-mix(in srgb, var(--td-bg) 8%, var(--td-stage));
}

.teach-dash-student-enroll-row--empty {
  grid-template-columns: 1fr;
  justify-items: start;
  gap: 0.55rem;
}

.teach-dash-student-enroll-empty {
  margin: 0;
  font-size: 0.84rem;
  color: var(--td-muted);
}

.teach-dash-student-enroll-row-main {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.teach-dash-student-enroll-kind {
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--td-faint);
}

.teach-dash-student-enroll-title {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--td-text);
  overflow: hidden;
  text-overflow: ellipsis;
}

.teach-dash-student-enroll-status {
  display: inline-flex;
  align-items: center;
  min-height: 1.45rem;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  border: 1px solid var(--td-border);
  color: var(--td-muted);
  white-space: nowrap;
}

.teach-dash-student-enroll-status.is-active {
  color: #166534;
  border-color: color-mix(in srgb, #22c55e 35%, var(--td-border));
  background: color-mix(in srgb, #22c55e 10%, transparent);
}

html[data-theme="dark"] .teach-dash-student-enroll-status.is-active {
  color: #86efac;
}

.teach-dash-student-enroll-status.is-pending {
  color: #92400e;
  border-color: color-mix(in srgb, #f59e0b 35%, var(--td-border));
  background: color-mix(in srgb, #f59e0b 10%, transparent);
}

html[data-theme="dark"] .teach-dash-student-enroll-status.is-pending {
  color: #fcd34d;
}

.teach-dash-student-profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.35rem;
}

.teach-dash-student-jobs {
  position: sticky;
  top: -0.2rem;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  padding: 0.28rem;
  margin: 0.1rem 0 0.25rem;
  border-radius: 0.85rem;
  background: color-mix(in srgb, var(--td-stage) 94%, transparent);
  border: 1px solid var(--td-border);
  backdrop-filter: blur(10px);
}

.teach-dash-student-job {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.32rem 0.78rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--td-muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.teach-dash-student-job:hover {
  background: var(--td-hover);
  color: var(--td-text);
}

.teach-dash-student-job.is-active,
.teach-dash-student-job[aria-current="true"] {
  color: var(--td-pill-fg);
  background: var(--td-pill);
}

.teach-dash-student-panel--job {
  scroll-margin-top: 3.35rem;
}

.teach-dash-catalog-meta .teach-dash-student-enroll-status {
  margin-right: 0.45rem;
  vertical-align: middle;
}

.teach-dash-student-flow--stepper[data-student-active-step='account'] [data-student-step-panel='enroll'],
.teach-dash-student-flow--stepper[data-student-active-step='account'] [data-student-step-panel='invite'],
.teach-dash-student-flow--stepper[data-student-active-step='enroll'] [data-student-step-panel='account'],
.teach-dash-student-flow--stepper[data-student-active-step='enroll'] [data-student-step-panel='invite'],
.teach-dash-student-flow--stepper[data-student-active-step='invite'] [data-student-step-panel='account'],
.teach-dash-student-flow--stepper[data-student-active-step='invite'] [data-student-step-panel='enroll'] {
  display: none !important;
}

.teach-dash-student-flow--stepper[data-student-active-step='enroll'] [data-student-step-panel='enroll'] {
  display: contents;
}

.teach-dash-student-create-dialog .teach-dash-student-flow--stepper[data-student-active-step='enroll'] [data-student-step-panel='enroll'] {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.teach-dash-student-create-dialog .teach-dash-student-create-card {
  display: flex;
  flex-direction: column;
  width: min(100%, 56rem);
  max-height: min(94vh, 52rem);
  min-height: 0;
  padding: 0;
  gap: 0;
  overflow: hidden;
}

.teach-dash-student-create-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.05rem 1.15rem 0.95rem;
  border-bottom: 1px solid var(--td-border);
  flex-shrink: 0;
}

.teach-dash-student-create-dialog-head-copy {
  min-width: 0;
  display: grid;
  gap: 0.2rem;
}

.teach-dash-student-create-dialog-body {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1 1 auto;
  overflow: hidden;
  padding: 0.85rem 1.05rem 0;
}

.teach-dash-student-flow--dialog {
  max-width: none;
  margin: 0;
  gap: 0.85rem;
  min-height: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.teach-dash-student-create-dialog .teach-dash-student-progress {
  margin: 0;
  width: 100%;
  max-width: none;
  flex-shrink: 0;
}

.teach-dash-student-create-dialog .teach-dash-student-form {
  min-height: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  gap: 0;
}

.teach-dash-student-create-dialog .teach-dash-student-grid {
  gap: 0.85rem;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.teach-dash-student-create-dialog .teach-dash-student-flow--stepper[data-student-active-step='account'] .teach-dash-student-grid {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: 0.85rem;
  scrollbar-gutter: stable;
}

.teach-dash-student-create-dialog .teach-dash-student-flow--stepper[data-student-active-step='enroll'] .teach-dash-student-grid {
  overflow: hidden;
}

.teach-dash-student-create-dialog .teach-dash-student-flow--stepper[data-student-active-step='enroll'] .teach-dash-student-panel--enroll {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  margin: 0;
}

.teach-dash-student-create-dialog .teach-dash-student-flow--stepper[data-student-active-step='enroll'] .teach-dash-student-panel-head,
.teach-dash-student-create-dialog .teach-dash-student-flow--stepper[data-student-active-step='enroll'] .teach-dash-enroll-toolbar {
  flex-shrink: 0;
}

.teach-dash-student-create-dialog .teach-dash-student-panel {
  padding: 1rem 1.05rem 1.1rem;
}

.teach-dash-student-create-dialog .teach-dash-student-fields .teach-dash-input,
.teach-dash-student-create-dialog .teach-dash-student-fields .teach-dash-input--area {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding-inline: 0.85rem;
}

.teach-dash-student-create-dialog .teach-dash-student-fields .teach-dash-input:focus,
.teach-dash-student-create-dialog .teach-dash-student-fields .teach-dash-input--area:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--td-text) 20%, var(--td-border));
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--td-pill) 55%, transparent);
}

.teach-dash-student-create-dialog .teach-dash-enroll-scroll {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.teach-dash-student-create-dialog .teach-dash-enroll-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.teach-dash-student-create-dialog .teach-dash-student-cta {
  position: static;
  bottom: auto;
  z-index: auto;
  flex-shrink: 0;
  margin-top: auto;
  margin-inline: -1.05rem;
  margin-bottom: 0;
  padding: 0.95rem 1.05rem;
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
  border-top: 1px solid var(--td-border);
  background: var(--td-stage);
  box-shadow: none;
}

.teach-dash-student-create-dialog .teach-dash-handoff {
  flex: 1 1 auto;
  min-height: 0;
  margin-top: 0;
  overflow: hidden;
  padding-bottom: 0;
}

.teach-dash-student-create-dialog .teach-dash-student-flow--stepper[data-student-active-step='invite'] [data-student-step-panel='invite'] {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  max-width: none;
}

.teach-dash-student-create-dialog .teach-dash-student-flow--stepper[data-student-active-step='invite'] .teach-dash-handoff {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.teach-dash-student-create-dialog .teach-dash-student-flow--stepper[data-student-active-step='invite'] .teach-dash-handoff-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  display: grid;
  gap: 1rem;
  padding-bottom: 0.85rem;
}

.teach-dash-student-create-dialog .teach-dash-student-flow--stepper[data-student-active-step='invite'] .teach-dash-handoff-footer {
  flex-shrink: 0;
  margin-inline: -1.05rem;
  margin-bottom: 0;
  padding: 0.95rem 1.05rem;
  border-top: 1px solid var(--td-border);
  background: var(--td-stage);
}

.teach-dash-handoff-scroll {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

body.teach-dash-modal-open {
  overflow: hidden;
}

@media (max-width: 720px) {
  .teach-dash-student-create-dialog .teach-dash-student-create-card {
    width: 100%;
    max-height: 100vh;
    border-radius: 0.85rem 0.85rem 0 0;
    align-self: flex-end;
  }

  .teach-dash-student-create-dialog .teach-dash-enroll-grid {
    grid-template-columns: 1fr;
  }

  .teach-dash-student-create-dialog .teach-dash-enroll-scroll {
    max-height: none;
  }
}

.teach-dash-student-enroll-dialog .teach-dash-student-enroll-card {
  width: min(100%, 40rem);
  max-height: min(90vh, 34rem);
  padding: 0;
  gap: 0;
}

.teach-dash-student-enroll-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.1rem 1.2rem 0.9rem;
  border-bottom: 1px solid var(--td-border);
  flex-shrink: 0;
}

.teach-dash-student-enroll-dialog-head-copy {
  min-width: 0;
  display: grid;
  gap: 0.2rem;
}

.teach-dash-student-enroll-dialog-head .teach-dash-assign-heading {
  font-size: 1.08rem;
}

.teach-dash-student-enroll-dialog-head .teach-dash-assign-brief {
  font-size: 0.82rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.teach-dash-student-enroll-dialog-close {
  flex-shrink: 0;
  min-width: 2.25rem;
  min-height: 2.25rem;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 0.55rem;
}

.teach-dash-student-enroll-dialog-body {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-height: 0;
  flex: 1 1 auto;
  padding: 0.85rem 1.2rem 0.45rem;
}

.teach-dash-student-enroll-dialog .teach-dash-enroll-toolbar--modal {
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
}

.teach-dash-student-enroll-dialog .teach-dash-enroll-search {
  margin-left: 0;
  max-width: none;
  flex: none;
  min-width: 0;
}

.teach-dash-student-enroll-dialog .teach-dash-enroll-search-input {
  min-height: 2.15rem;
  font-size: 0.84rem;
}

.teach-dash-student-enroll-dialog .teach-dash-enroll-filters {
  flex-wrap: nowrap;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0.22rem;
}

.teach-dash-student-enroll-dialog .teach-dash-enroll-filters::-webkit-scrollbar {
  display: none;
}

.teach-dash-student-enroll-dialog .teach-dash-enroll-filter {
  flex-shrink: 0;
  white-space: nowrap;
}

.teach-dash-student-enroll-dialog .teach-dash-enroll-scroll {
  min-height: 0;
  flex: 1 1 auto;
  max-height: none;
  overflow-y: auto;
  margin: 0 -0.1rem;
  padding: 0.1rem 0.1rem 0.2rem;
}

.teach-dash-student-enroll-dialog .teach-dash-enroll-grid--modal {
  grid-template-columns: 1fr;
  gap: 0.45rem;
}

.teach-dash-student-enroll-dialog .teach-dash-enroll-card {
  padding: 0.65rem 0.75rem;
  align-items: center;
}

.teach-dash-student-enroll-dialog .teach-dash-enroll-card-body {
  gap: 0.08rem;
}

.teach-dash-student-enroll-dialog .teach-dash-enroll-card-title {
  font-size: 0.88rem;
}

.teach-dash-student-enroll-dialog-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.75rem;
  padding: 0.8rem 1.2rem 1rem;
  border-top: 1px solid var(--td-border);
  flex-shrink: 0;
  background: var(--td-stage);
}

.teach-dash-student-enroll-dialog-foot .teach-dash-student-enroll-count {
  margin: 0;
}

.teach-dash-student-enroll-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-left: auto;
}

.teach-dash-student-enroll-dialog-foot .teach-dash-catalog-status {
  width: 100%;
  margin: 0;
  font-size: 0.82rem;
}

.teach-dash-enroll-card.is-enrolled {
  opacity: 0.55;
  pointer-events: none;
}

.teach-dash-enroll-card.is-enrolled::after {
  content: 'Already enrolled';
  display: block;
  margin-top: 0.25rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--td-faint);
}

@media (max-width: 720px) {
  .teach-dash-student-enroll-row {
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
  }

  .teach-dash-student-enroll-row .teach-dash-btn {
    width: 100%;
    justify-content: center;
  }
}

.teach-dash-student-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--td-border);
  border-radius: calc(var(--td-radius) + 2px);
  background: color-mix(in srgb, var(--td-bg) 18%, var(--td-stage));
}

.teach-dash-student-photo-wrap {
  position: relative;
  width: 5.25rem;
  height: 5.25rem;
  border-radius: 999px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--td-border);
  background: var(--td-hover);
  display: grid;
  place-items: center;
}

.teach-dash-student-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.teach-dash-student-photo-img[hidden] {
  display: none !important;
}

.teach-dash-student-photo-initials {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--td-text);
}

.teach-dash-student-hero-copy {
  flex: 1 1 14rem;
  min-width: 0;
  display: grid;
  gap: 0.2rem;
}

.teach-dash-student-hero-name {
  margin: 0;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--td-text);
}

.teach-dash-student-hero-email,
.teach-dash-student-hero-status {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--td-muted);
}

.teach-dash-student-photo-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.teach-dash-student-photo-empty {
  margin: 0;
  font-size: 0.78rem;
  color: var(--td-faint);
}

.teach-dash-student-photo-download {
  display: inline-flex;
  align-items: center;
  margin-top: 0.2rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--td-muted);
  text-decoration: none;
}

.teach-dash-student-photo-download:hover {
  color: var(--td-text);
}

.teach-dash-student-photo-download[hidden] {
  display: none !important;
}

.teach-dash-student-identity-copy > .teach-dash-student-photo-download,
.teach-dash-student-identity-copy > .teach-dash-student-photo-empty {
  justify-self: start;
}

.teach-dash-student-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.teach-dash-student-main {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.teach-dash-student-aside {
  min-width: 0;
}

.teach-dash-student-panel--lists .teach-dash-student-panel-head {
  align-items: center;
}

.teach-dash-student-fields--profile {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.teach-dash-btn--compact {
  min-height: 2.35rem;
  padding-inline: 0.85rem;
  font-size: 0.82rem;
}

@media (min-width: 980px) {
  .teach-dash-student-layout {
    grid-template-columns: minmax(0, 22rem) minmax(0, 1fr);
  }

  .teach-dash-student-aside {
    position: sticky;
    top: 0.35rem;
  }

  .teach-dash-enroll-scroll {
    min-height: 0;
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }
}

.teach-dash-student-toolbar {
  margin: 0;
}

.teach-dash-student-progress {
  list-style: none;
  margin: 0;
  padding: 0.15rem 0 0.5rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  width: 100%;
  max-width: none;
}

.teach-dash-student-progress li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  padding: 0 0.5rem;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--td-faint);
}

.teach-dash-student-progress li:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 1.05rem;
  left: calc(50% + 1.25rem);
  right: calc(-50% + 1.25rem);
  height: 2px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--td-faint) 45%, transparent);
}

.teach-dash-student-progress li.is-done:not(:last-child)::after {
  background: var(--td-text);
  opacity: 0.45;
}

.teach-dash-student-progress li.is-current {
  color: var(--td-text);
}

.teach-dash-student-progress li.is-done {
  color: var(--td-text);
}

.teach-dash-student-progress li.is-upcoming {
  color: var(--td-faint);
}

.teach-dash-student-progress-indicator {
  position: relative;
  z-index: 1;
  width: 2.1rem;
  height: 2.1rem;
  flex: 0 0 2.1rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1.5px solid color-mix(in srgb, currentColor 55%, transparent);
  background: var(--td-panel, transparent);
  color: inherit;
}

.teach-dash-student-progress-index,
.teach-dash-student-progress-check {
  display: none;
}

.teach-dash-student-progress-icon,
.teach-dash-student-progress-check {
  grid-area: 1 / 1;
}

.teach-dash-student-progress li.is-current .teach-dash-student-progress-indicator {
  border-color: var(--td-text);
  background: var(--td-text);
  color: var(--td-bg, #111);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--td-text) 14%, transparent);
}

.teach-dash-student-progress li.is-done .teach-dash-student-progress-indicator {
  border-color: var(--td-text);
  background: color-mix(in srgb, var(--td-text) 12%, transparent);
  color: var(--td-text);
}

.teach-dash-student-progress li.is-done .teach-dash-student-progress-icon {
  display: none;
}

.teach-dash-student-progress li.is-done .teach-dash-student-progress-check {
  display: block;
}

.teach-dash-student-progress-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: 0.08rem;
}

.teach-dash-student-progress-kicker {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.72;
}

.teach-dash-student-progress-label {
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 640px) {
  .teach-dash-student-progress li {
    padding: 0 0.25rem;
    gap: 0.35rem;
  }

  .teach-dash-student-progress li:not(:last-child)::after {
    top: 1.05rem;
    left: calc(50% + 1.15rem);
    right: calc(-50% + 1.15rem);
  }

  .teach-dash-student-progress-kicker {
    display: none;
  }

  .teach-dash-student-progress-label {
    font-size: 0.72rem;
  }
}

.teach-dash-student-progress-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.35;
}

.teach-dash-student-progress li.is-current .teach-dash-student-progress-dot,
.teach-dash-student-progress li.is-done .teach-dash-student-progress-dot {
  opacity: 1;
}

.teach-dash-student-panel-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
}

.teach-dash-student-optional {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--td-muted);
  background: var(--td-hover);
}

.teach-dash-student-fields--account {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.teach-dash-field--full {
  grid-column: 1 / -1;
}

.teach-dash-handoff--success .teach-dash-handoff-hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  padding: 0.15rem 0 0.35rem;
}

.teach-dash-handoff-kicker {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #15803d;
}

html[data-theme="dark"] .teach-dash-handoff-kicker {
  color: #86efac;
}

.teach-dash-handoff--success .teach-dash-handoff-title {
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  line-height: 1.15;
}

.teach-dash-handoff-email-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.75rem;
  margin-top: 0.15rem;
}

.teach-dash-handoff-email {
  font-size: 0.9rem;
  color: var(--td-muted);
  word-break: break-all;
}

.teach-dash-handoff-copy--inline {
  flex-shrink: 0;
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--td-border);
  border-radius: 999px;
  background: transparent;
  color: var(--td-text);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}

.teach-dash-handoff-copy--inline:hover {
  background: var(--td-hover);
}

.teach-dash-handoff-status {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  color: var(--td-muted);
}

.teach-dash-handoff-status.is-warn {
  color: color-mix(in srgb, #f59e0b 75%, var(--td-text));
}

.teach-dash-handoff-panel {
  display: grid;
  gap: 0.85rem;
  padding: 1.2rem 1.25rem 1.25rem;
  border: 1px solid var(--td-border);
  border-radius: calc(var(--td-radius) + 2px);
  background: color-mix(in srgb, var(--td-bg) 22%, var(--td-stage));
}

.teach-dash-handoff-panel-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.teach-dash-handoff-panel-lead {
  margin: -0.35rem 0 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--td-muted);
}

.teach-dash-copy-block {
  display: grid;
  gap: 0.45rem;
}

.teach-dash-copy-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--td-muted);
}

.teach-dash-copy-field {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.55rem;
}

.teach-dash-copy-value {
  display: block;
  flex: 1 1 12rem;
  min-width: 0;
  margin: 0;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--td-border);
  border-radius: 0.65rem;
  background: var(--td-stage);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--td-text);
  word-break: break-all;
  white-space: normal;
  overflow-wrap: anywhere;
}

.teach-dash-copy-value--link {
  max-height: none;
  overflow: visible;
}

.teach-dash-copy-btn {
  flex-shrink: 0;
  align-self: flex-start;
  min-height: 2.65rem;
}

.teach-dash-handoff-expires {
  margin: 0;
  font-size: 0.82rem;
  color: var(--td-muted);
}

.teach-dash-handoff-footer {
  display: grid;
  gap: 0.65rem;
}

.teach-dash-handoff-footer-actions,
.teach-dash-handoff-footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.teach-dash-handoff-footer-actions .teach-dash-btn,
.teach-dash-handoff-footer-links .teach-dash-btn,
.teach-dash-handoff-footer-actions .teach-dash-btn--cta,
.teach-dash-handoff-footer-links .teach-dash-btn--cta {
  width: auto;
  max-width: 100%;
  flex: 0 1 auto;
}

.teach-dash-student-create-dialog .teach-dash-student-flow--stepper[data-student-active-step='invite'] .teach-dash-handoff-footer-actions {
  justify-content: flex-start;
}

.teach-dash-student-success .teach-dash-student-flow {
  max-width: 40rem;
}

.teach-dash-handoff--success .teach-dash-handoff-intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

.teach-dash-handoff-success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 0.15rem;
  border-radius: 999px;
  color: #15803d;
  background: color-mix(in srgb, #22c55e 14%, var(--td-stage));
}

html[data-theme="dark"] .teach-dash-handoff-success-icon {
  color: #86efac;
  background: color-mix(in srgb, #22c55e 18%, var(--td-stage));
}

.teach-dash-student-lead {
  margin: 0;
  max-width: 40rem;
}

.teach-dash-student-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.teach-dash-student-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}

.teach-dash-student-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem 1.3rem 1.35rem;
  border: 1px solid var(--td-border);
  border-radius: calc(var(--td-radius) + 2px);
  background: color-mix(in srgb, var(--td-bg) 22%, var(--td-stage));
}

.teach-dash-student-panel--danger {
  margin-top: 0.25rem;
  border-color: color-mix(in srgb, #f87171 35%, var(--td-border));
}

.teach-dash-student-access-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.teach-dash-student-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
}

.teach-dash-student-step {
  margin: 0 0 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--td-muted);
}

.teach-dash-student-panel-title {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--td-text);
}

.teach-dash-student-panel-lead {
  margin: 0.32rem 0 0;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--td-muted);
}

.teach-dash-student-enroll-count {
  margin: 0.15rem 0 0;
  flex-shrink: 0;
  padding: 0.32rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--td-border);
  background: var(--td-stage);
  color: var(--td-text);
  font-size: 0.75rem;
  font-weight: 650;
  white-space: nowrap;
}

.teach-dash-student-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.95rem 1.1rem;
}

.teach-dash-student-fields .teach-dash-field:nth-child(3),
.teach-dash-student-fields .teach-dash-field:nth-child(4) {
  grid-column: 1 / -1;
}

.teach-dash-student-panel .teach-dash-field-label {
  color: var(--td-muted);
  letter-spacing: 0.06em;
}

.teach-dash-optional {
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--td-faint);
}

.teach-dash-input--notes {
  min-height: 4.5rem;
  resize: vertical;
}

.teach-dash-input-combo {
  display: flex;
  align-items: stretch;
  min-height: 2.6rem;
  border: 1px solid var(--td-border);
  border-radius: 0.75rem;
  background: color-mix(in srgb, var(--td-bg) 35%, var(--td-stage));
  overflow: hidden;
}

.teach-dash-input-combo:focus-within {
  outline: 2px solid color-mix(in srgb, var(--td-pill) 55%, transparent);
  outline-offset: 1px;
  border-color: color-mix(in srgb, var(--td-text) 20%, var(--td-border));
}

.teach-dash-input-combo .teach-dash-input {
  flex: 1;
  min-width: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.teach-dash-input-combo .teach-dash-input:focus {
  outline: none;
  box-shadow: none;
}

.teach-dash-input-combo-btn {
  flex-shrink: 0;
  margin: 0;
  padding: 0 0.95rem;
  border: 0;
  border-left: 1px solid var(--td-border);
  background: transparent;
  color: var(--td-text);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 650;
  cursor: pointer;
}

.teach-dash-input-combo-btn:hover {
  background: var(--td-hover);
}

.teach-dash-enroll-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.85rem;
}

.teach-dash-enroll-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  padding: 0.28rem;
  border-radius: 0.85rem;
  background: color-mix(in srgb, var(--td-bg) 55%, var(--td-stage));
  border: 1px solid var(--td-border);
}

.teach-dash-enroll-filter {
  min-height: 2rem;
  padding: 0.32rem 0.78rem;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: var(--td-muted);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.teach-dash-enroll-filter[hidden] {
  display: none !important;
}

.teach-dash-enroll-filter:hover {
  background: var(--td-hover);
  color: var(--td-text);
}

.teach-dash-enroll-filter.is-active {
  color: var(--td-pill-fg);
  background: var(--td-pill);
}

.teach-dash-enroll-search {
  margin-left: auto;
  min-width: 12rem;
  flex: 1 1 14rem;
  max-width: 18rem;
}

.teach-dash-enroll-search-input {
  min-height: 2.4rem;
}

.teach-dash-enroll-scroll {
  min-height: 22rem;
  max-height: min(58vh, 36rem);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 0.15rem 0.15rem 0.25rem 0;
}

.teach-dash-enroll-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 0.7rem;
}

.teach-dash-enroll-card {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin: 0;
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--td-border);
  border-radius: 0.9rem;
  background: var(--td-stage);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.teach-dash-enroll-card[hidden],
.teach-dash-enroll-card.is-hidden {
  display: none !important;
}

.teach-dash-enroll-empty {
  margin: 1.5rem 0.25rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--td-muted);
}

.teach-dash-enroll-empty[hidden] {
  display: none;
}

.teach-dash-enroll-card:hover {
  border-color: color-mix(in srgb, var(--td-text) 16%, var(--td-border));
  background: var(--td-hover);
}

.teach-dash-enroll-card.is-selected {
  border-color: color-mix(in srgb, var(--td-text) 28%, var(--td-border));
  background: color-mix(in srgb, var(--td-text) 6%, var(--td-stage));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--td-text) 10%, transparent);
}

.teach-dash-enroll-card input {
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.12rem;
  flex-shrink: 0;
  accent-color: var(--td-text);
  cursor: pointer;
}

.teach-dash-enroll-card-body {
  display: grid;
  gap: 0.22rem;
  min-width: 0;
}

.teach-dash-enroll-card-kind {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--td-muted);
}

.teach-dash-enroll-card-title {
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.35;
  color: var(--td-text);
}

.teach-dash-enroll-card-meta {
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--td-muted);
}

.teach-dash-student-cta {
  position: sticky;
  bottom: 0;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1.15rem;
  margin-top: 0.15rem;
  padding: 0.95rem 1.1rem;
  border: 1px solid var(--td-border);
  border-radius: calc(var(--td-radius) + 2px);
  background: var(--td-stage);
  box-shadow: 0 -12px 24px color-mix(in srgb, var(--td-stage) 88%, transparent);
}

.teach-dash-student-cta-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 650;
  color: var(--td-text);
}

.teach-dash-student-cta-meta {
  margin: 0.2rem 0 0;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--td-muted);
}

.teach-dash-student-status {
  margin: 0.45rem 0 0;
  max-width: 34rem;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--td-muted);
}

.teach-dash-student-status[hidden] {
  display: none;
}

.teach-dash-student-status.is-error {
  color: var(--td-urgent);
  padding: 0.55rem 0.7rem;
  border-radius: 0.65rem;
  border: 1px solid color-mix(in srgb, var(--td-urgent) 28%, var(--td-border));
  background: color-mix(in srgb, var(--td-urgent) 8%, var(--td-stage));
}

html[data-theme="dark"] .teach-dash-student-status.is-error {
  color: #fecaca;
}

html:not([data-theme="dark"]) .teach-dash-student-status.is-error {
  color: var(--td-urgent);
}

.teach-dash-student-status.is-ok {
  color: var(--td-green, #16a34a);
}

.teach-dash-student-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.teach-dash-student-cta-actions [hidden] {
  display: none !important;
}

.teach-dash-btn--cta {
  min-height: 2.65rem;
  padding-inline: 1.15rem;
  font-weight: 700;
  gap: 0.4rem;
}

.teach-dash-student-flow--edit .teach-dash-btn:not(.teach-dash-student-enroll-dialog-close) {
  min-height: 2.35rem;
  padding-inline: 0.85rem;
  font-size: 0.82rem;
}

.teach-dash-student-flow--edit .teach-dash-btn--cta {
  min-height: 2.35rem;
  padding-inline: 0.85rem;
  font-weight: 600;
}

.teach-dash-student-flow--edit .teach-dash-btn[hidden] {
  display: none !important;
}

.teach-dash-student-form--profile .teach-dash-catalog-row--empty {
  grid-template-columns: minmax(0, 1fr);
}

.teach-dash-student-form--profile .teach-dash-catalog-row--empty .teach-dash-catalog-body {
  display: grid;
  gap: 0.55rem;
  justify-items: start;
}

.teach-dash-btn--cta:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

@media (prefers-reduced-motion: reduce) {
  .teach-dash-handoff-copy,
  .teach-dash-btn--cta {
    transition: none;
  }
}

.teach-dash-student-form[hidden] {
  display: none;
}

.teach-dash-handoff {
  display: grid;
  gap: 1.25rem;
  max-width: 40rem;
}

.teach-dash-handoff-intro {
  display: grid;
  gap: 0.35rem;
}

.teach-dash-handoff-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--td-text);
}

.teach-dash-handoff-title:focus {
  outline: 2px solid color-mix(in srgb, var(--td-pill) 55%, transparent);
  outline-offset: 4px;
}

.teach-dash-handoff-lead {
  margin: 0;
  max-width: 32rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--td-muted);
}

.teach-dash-handoff-card {
  display: grid;
  gap: 1.15rem;
  padding: 1.25rem 1.3rem 1.3rem;
  border: 1px solid var(--td-border);
  border-radius: calc(var(--td-radius) + 2px);
  background: color-mix(in srgb, var(--td-bg) 22%, var(--td-stage));
}

.teach-dash-handoff-person {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.teach-dash-handoff-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  background: var(--td-text);
  color: var(--td-stage);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.teach-dash-handoff-name {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 650;
  color: var(--td-text);
}

.teach-dash-handoff-ready {
  margin: 0.15rem 0 0;
  font-size: 0.82rem;
  color: var(--td-muted);
}

.teach-dash-handoff-fields {
  display: grid;
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--td-border);
}

.teach-dash-handoff-row {
  display: grid;
  gap: 0.28rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--td-border);
}

.teach-dash-handoff-row dt {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--td-muted);
}

.teach-dash-handoff-row dd {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0;
}

.teach-dash-handoff-value {
  min-width: 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--td-text);
  overflow-wrap: anywhere;
}

.teach-dash-handoff-value--mono {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}

.teach-dash-handoff-value--link {
  font-size: 0.84rem;
  color: var(--td-muted);
}

.teach-dash-handoff-copy {
  flex-shrink: 0;
  margin: 0;
  padding: 0.28rem 0.55rem;
  border: 1px solid var(--td-border);
  border-radius: 999px;
  background: transparent;
  color: var(--td-text);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 650;
  cursor: pointer;
}

.teach-dash-handoff-copy:hover {
  background: var(--td-hover);
}

.teach-dash-handoff-enroll-title {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--td-muted);
}

.teach-dash-handoff-enroll-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.4rem;
}

.teach-dash-handoff-enroll-list li {
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--td-border);
  border-radius: 0.7rem;
  background: var(--td-stage);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--td-text);
}

.teach-dash-handoff-enroll-list li.is-empty {
  font-weight: 500;
  color: var(--td-muted);
}

.teach-dash-handoff-note {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--td-muted);
}

.teach-dash-handoff-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.teach-dash-handoff[hidden] {
  display: none;
}

.teach-dash-student-side-lists {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.35rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--td-border);
}

.teach-dash-student-assign-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.1rem 0 0.25rem;
}

.teach-dash-student-assign-bar .teach-dash-btn {
  min-height: 2.15rem;
}

.teach-dash-catalog-list--compact {
  max-height: 18rem;
  overflow: auto;
}

.teach-dash-catalog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-end;
  align-items: center;
}

.teach-dash-student-detail-status:not([hidden]) {
  margin: 0;
}

.teach-dash-page-error {
  display: grid;
  gap: 0.55rem;
  max-width: 28rem;
  padding: 1.1rem 1.15rem;
  border: 1px solid color-mix(in srgb, var(--td-urgent) 22%, var(--td-border));
  border-radius: calc(var(--td-radius) + 2px);
  background: color-mix(in srgb, var(--td-urgent) 6%, var(--td-stage));
}

.teach-dash-page-error[hidden] {
  display: none;
}

.teach-dash-page-error-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--td-text);
}

.teach-dash-page-error-body {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--td-muted);
}

.teach-dash-page-error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.teach-dash-page-error-actions [hidden] {
  display: none !important;
}

@media (max-width: 720px) {
  .teach-dash-student-fields {
    grid-template-columns: 1fr;
  }

  .teach-dash-student-fields .teach-dash-field:nth-child(3),
  .teach-dash-student-fields .teach-dash-field:nth-child(4) {
    grid-column: auto;
  }

  .teach-dash-enroll-search {
    margin-left: 0;
    max-width: none;
  }

  .teach-dash-enroll-scroll {
    min-height: 16rem;
    max-height: 22rem;
  }
}

@media (max-width: 560px) {
  .teach-dash-enroll-grid {
    grid-template-columns: 1fr;
  }

  .teach-dash-student-cta-actions {
    width: 100%;
  }

  .teach-dash-student-cta-actions .teach-dash-btn {
    flex: 1;
    justify-content: center;
  }
}

.teach-dash-btn--danger {
  color: #fecaca;
  background: color-mix(in srgb, #7f1d1d 55%, var(--td-stage));
  border-color: color-mix(in srgb, #f87171 35%, var(--td-border));
}

.teach-dash-btn--danger:hover:not(:disabled) {
  filter: brightness(1.08);
}

.teach-dash-btn--danger:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: none;
}

html:not([data-theme="dark"]) .teach-dash-btn--danger {
  color: #7f1d1d;
  background: color-mix(in srgb, #fecaca 55%, var(--td-stage));
  border-color: color-mix(in srgb, #f87171 40%, var(--td-border));
}

.teach-dash-confirm-card {
  width: min(100%, 30rem);
  padding-inline: 1.25rem;
}

.teach-dash-confirm .teach-dash-assign-scroll {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-content: stretch;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0 0 0.5rem;
  overflow-x: visible;
  overflow-y: auto;
  scrollbar-gutter: auto;
}

.teach-dash-confirm .teach-dash-assign-actions {
  margin: 0;
  padding-inline: 0;
}

.teach-dash-confirm-status {
  color: var(--td-urgent);
  min-height: 1.35rem;
  line-height: 1.4;
}

.teach-dash-confirm .teach-dash-assign-actions .teach-dash-btn--danger {
  min-width: 7.5rem;
  font-weight: 700;
}

.teach-dash-confirm-warning {
  margin: 0;
  padding: 0.65rem 0.75rem;
  border-radius: var(--td-radius-sm, 0.5rem);
  background: color-mix(in srgb, var(--td-urgent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--td-urgent) 35%, var(--td-border));
  color: var(--td-urgent);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.45;
}

.teach-dash-confirm-checks {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  min-width: 0;
  margin: 0;
}

.teach-dash-confirm-checks .teach-dash-field {
  width: 100%;
  min-width: 0;
  margin: 0;
}

.teach-dash-confirm-checks .teach-dash-field-label {
  text-transform: none;
  letter-spacing: normal;
  font-weight: 600;
  line-height: 1.35;
  word-break: break-word;
}

.teach-dash-confirm-checks .teach-dash-input {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  padding-inline: 0.85rem;
  box-sizing: border-box;
}

.teach-dash-confirm-checks .teach-dash-input:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--td-text) 20%, var(--td-border));
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--td-pill) 55%, transparent);
}

.teach-dash-confirm-checks .teach-dash-field-hint {
  margin-top: 0.35rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8rem;
  color: var(--td-muted);
  word-break: break-all;
}

.teach-dash-confirm [data-teach-confirm-match-wrap] .teach-dash-field-hint {
  margin-top: 0.35rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8rem;
  color: var(--td-muted);
  word-break: break-all;
}

.teach-dash-catalog-status {
  margin: 0;
  min-height: 1.25rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--td-muted);
}

@media (max-width: 640px) {
  .teach-dash-catalog-row {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.75rem;
  }

  .teach-dash-catalog-row .teach-dash-btn {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .teach-dash-catalog-row .teach-dash-catalog-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .teach-dash-catalog-row .teach-dash-catalog-actions .teach-dash-btn {
    grid-column: auto;
  }
}

.teach-dash-empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  max-width: 32rem;
  padding: 1.5rem 1.35rem;
  border: 1px dashed var(--td-border);
  border-radius: 1rem;
  background: color-mix(in srgb, var(--td-bg) 45%, var(--td-stage));
}

.teach-dash-empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.7rem;
  background: var(--td-hover);
  color: var(--td-muted);
}

.teach-dash-empty-title {
  margin: 0;
  font-family: var(--td-font);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.teach-dash-empty-body {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--td-muted);
}

.teach-dash-empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.35rem;
}

.teach-dash-empty--orders {
  max-width: 36rem;
}

.teach-dash-capstone-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  margin: 1.25rem 0 1.75rem;
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--td-border);
  border-radius: 1rem;
  background: color-mix(in srgb, var(--td-bg) 40%, var(--td-stage));
}

.teach-dash-capstone-actions-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.teach-dash-capstone-actions-label {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--td-muted);
}

.teach-dash-capstone-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.teach-dash-capstone-block {
  margin-top: 0.5rem;
  max-width: 40rem;
}

.teach-dash-capstone-deliverables {
  margin: 0.75rem 0 0;
  padding: 0 0 0 1.15rem;
  display: grid;
  gap: 0.55rem;
  color: var(--td-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.teach-dash-capstone-deliverables li::marker {
  color: var(--td-ink);
}

.teach-dash-capstone-prose {
  margin-top: 0;
  max-width: 44rem;
}

/* Docs shell: content scrolls left, TOC fixed right (daisyUI-style) */
.teach-dash-stage--docs {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.teach-dash-docs {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 15.5rem;
  align-items: stretch;
  margin: 0;
}

.teach-dash-docs__main {
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1.35rem clamp(1.25rem, 3vw, 2.5rem) 2.5rem;
}

.docs-end {
  max-width: 42rem;
  margin: 2.25rem 0 0.5rem;
  padding-top: 0;
}

.docs-end__rule {
  height: 1px;
  margin: 0 0 1.1rem;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--brand, #6e51e0) 55%, transparent),
    var(--td-border) 42%,
    transparent
  );
}

.docs-end__note {
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--td-muted);
}

.docs-end__back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.1rem;
  padding: 0.35rem 0.15rem 0.35rem 0;
  color: var(--td-ink);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.docs-end__back:hover {
  color: var(--brand, #6e51e0);
}

.docs-end__back:focus-visible {
  outline: 2px solid var(--brand, #6e51e0);
  outline-offset: 3px;
  border-radius: 4px;
}

.capstone-brief-section:last-child {
  padding-bottom: 0.35rem;
}

.teach-dash-docs__toc {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1.35rem 1rem 2rem 1.1rem;
  border-left: 1px solid var(--td-border);
  background: color-mix(in srgb, var(--td-bg) 55%, var(--td-stage));
}

.teach-dash-docs__toc .capstone-brief-toc {
  position: static;
  margin: 0;
  padding: 0;
  border: none;
}

.teach-dash-docs__toc .capstone-brief-toc__title {
  margin: 0 0 0.85rem;
}

.teach-dash-docs__toc .capstone-brief-toc__link {
  margin: 0;
  padding: 0.38rem 0.55rem;
  border-left: 2px solid transparent;
  border-radius: 0 8px 8px 0;
}

.teach-dash-docs__toc .capstone-brief-toc__link.is-active,
.teach-dash-docs__toc .capstone-brief-toc__link[aria-current='location'] {
  color: var(--capstone-text, var(--td-ink));
  background: var(--capstone-accent-soft, color-mix(in srgb, var(--brand, #6e51e0) 12%, transparent));
  border-left-color: var(--capstone-accent, var(--brand, #6e51e0));
  font-weight: 600;
}

.docs-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 1.15rem;
  font-size: 0.8rem;
  color: var(--td-muted);
}

.docs-breadcrumb a {
  color: var(--td-muted);
  text-decoration: none;
  font-weight: 500;
}

.docs-breadcrumb a:hover {
  color: var(--brand, #6e51e0);
}

.docs-breadcrumb span[aria-hidden='true'] {
  opacity: 0.45;
}

.docs-hero {
  max-width: 42rem;
  margin: 0 0 2rem;
  padding-bottom: 1.35rem;
  border-bottom: 1px solid var(--td-border);
}

.docs-kicker {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand, #6e51e0);
}

.docs-title {
  margin: 0 0 0.55rem;
  font-family: var(--td-font);
  font-size: clamp(1.65rem, 2.6vw, 2.1rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--td-ink);
}

.docs-lead {
  margin: 0 0 1.1rem;
  max-width: 40ch;
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--td-muted);
}

.docs-start-hint {
  margin: -0.35rem 0 1.1rem;
  max-width: 42rem;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--brand, #6e51e0) 22%, var(--td-border));
  background: color-mix(in srgb, var(--brand, #6e51e0) 7%, var(--td-stage));
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--td-ink);
}

.docs-start-hint a {
  color: var(--brand, #6e51e0);
  font-weight: 600;
  text-decoration: none;
}

.docs-start-hint a:hover {
  text-decoration: underline;
}

.docs-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.docs-toolbar__primary {
  min-height: 2.15rem;
  padding-inline: 0.95rem;
}

.docs-toolbar-menu--quiet .docs-toolbar-menu__summary {
  color: var(--td-muted, #a1a1aa);
  border-color: color-mix(in srgb, var(--td-border) 80%, transparent);
}

.docs-toolbar-menu--quiet .docs-toolbar-menu__summary:hover {
  color: var(--td-text);
}

.docs-toolbar__rule {
  display: inline-block;
  width: 1px;
  height: 1.15rem;
  margin: 0 0.2rem;
  background: var(--td-border);
}

.docs-toolbar-menu {
  position: relative;
  display: inline-block;
}

.docs-toolbar-menu__summary {
  list-style: none;
  cursor: pointer;
}

.docs-toolbar-menu__summary--share {
  position: relative;
  overflow: hidden;
}

.docs-toolbar-menu__icon-stack {
  position: relative;
  width: 1rem;
  height: 1rem;
  flex: 0 0 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.docs-toolbar-menu__icon {
  position: absolute;
  inset: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    opacity 0.2s ease,
    transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: center;
}

.docs-toolbar-menu__icon .lucide-icon {
  width: 1rem;
  height: 1rem;
}

.docs-toolbar-menu__icon--share {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.docs-toolbar-menu__icon--send {
  opacity: 0;
  transform: scale(0.72) translateY(0.1rem) rotate(-10deg);
}

.docs-toolbar-menu__summary--share .docs-toolbar-menu__label {
  transition: transform 0.2s ease;
}

.docs-toolbar-menu__summary--share:hover .docs-toolbar-menu__icon--share,
.docs-toolbar-menu__summary--share:focus-visible .docs-toolbar-menu__icon--share,
.docs-toolbar-menu[open] .docs-toolbar-menu__summary--share .docs-toolbar-menu__icon--share {
  opacity: 0;
  transform: scale(0.72) translateY(-0.1rem) rotate(10deg);
}

.docs-toolbar-menu__summary--share:hover .docs-toolbar-menu__icon--send,
.docs-toolbar-menu__summary--share:focus-visible .docs-toolbar-menu__icon--send,
.docs-toolbar-menu[open] .docs-toolbar-menu__summary--share .docs-toolbar-menu__icon--send {
  opacity: 1;
  transform: scale(1) translateY(0) rotate(0deg);
}

.docs-toolbar-menu__summary--share:hover .docs-toolbar-menu__label,
.docs-toolbar-menu__summary--share:focus-visible .docs-toolbar-menu__label,
.docs-toolbar-menu[open] .docs-toolbar-menu__summary--share .docs-toolbar-menu__label {
  transform: translateX(0.02rem);
}

.docs-toolbar-menu__summary::-webkit-details-marker {
  display: none;
}

.docs-toolbar-menu__summary .lucide-icon:last-child {
  opacity: 0.72;
  transition: transform 0.15s ease;
}

.docs-toolbar-menu[open] .docs-toolbar-menu__summary .lucide-icon:last-child {
  transform: rotate(180deg);
}

.docs-toolbar-menu__panel {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  z-index: 40;
  min-width: 11.5rem;
  padding: 0.35rem;
  border: 1px solid var(--td-border, rgba(255, 255, 255, 0.12));
  border-radius: 0.75rem;
  background: var(--td-surface, #16161a);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  display: grid;
  gap: 0.15rem;
}

.docs-toolbar-menu__item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.7rem;
  border-radius: 0.55rem;
  color: var(--td-text, #f4f4f5);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.2;
}

.docs-toolbar-menu__item:hover,
.docs-toolbar-menu__item:focus-visible {
  background: var(--td-hover, rgba(255, 255, 255, 0.06));
  outline: none;
}

.docs-toolbar-menu__item:focus-visible {
  box-shadow: 0 0 0 2px var(--td-accent, #7c6cf0);
}

.docs-prose {
  max-width: 42rem;
}

.docs-prose .capstone-brief-section__body blockquote,
.teach-dash-docs .capstone-brief-section__body blockquote {
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--brand, #6e51e0);
  border-radius: 0 10px 10px 0;
  background: color-mix(in srgb, var(--brand, #6e51e0) 8%, var(--td-stage, transparent));
  color: var(--td-muted, var(--capstone-muted, #a1a1aa));
}

.docs-prose .capstone-brief-section__body blockquote p,
.teach-dash-docs .capstone-brief-section__body blockquote p {
  margin: 0 0 0.45rem;
}

.docs-prose .capstone-brief-section__body blockquote p:last-child,
.teach-dash-docs .capstone-brief-section__body blockquote p:last-child {
  margin-bottom: 0;
}

.docs-prose .capstone-brief-section__body blockquote strong,
.teach-dash-docs .capstone-brief-section__body blockquote strong {
  color: var(--td-ink, var(--capstone-text, #f4f4f5));
}

.docs-checklist {
  list-style: none;
  margin: 0.75rem 0 1.1rem;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.docs-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--td-border, var(--capstone-border));
  border-radius: 10px;
  background: color-mix(in srgb, var(--td-bg, #f5f4f1) 40%, transparent);
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--td-ink, var(--capstone-text));
}

.docs-checklist__box {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  margin-top: 0.15rem;
  border: 1.5px solid color-mix(in srgb, var(--td-muted, #5c5c5c) 55%, transparent);
  border-radius: 4px;
  background: var(--td-stage, #fff);
}

.docs-checklist li.is-done .docs-checklist__box {
  border-color: var(--brand, #6e51e0);
  background: var(--brand, #6e51e0);
}

.docs-checklist__label {
  min-width: 0;
}

.docs-prose h3 {
  margin: 1.25rem 0 0.45rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--td-ink, var(--capstone-text));
}

.docs-kv {
  margin: 0.85rem 0 1.15rem;
  border: 1px solid var(--capstone-border, var(--td-border));
  border-radius: 12px;
  overflow: hidden;
  background: var(--td-stage);
}

.docs-kv dl {
  margin: 0;
}

.docs-kv__row {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr);
  gap: 0.75rem 1rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--capstone-border, var(--td-border));
}

.docs-kv__row:first-child {
  border-top: none;
}

.docs-kv__row dt {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--capstone-muted, var(--td-muted));
  line-height: 1.45;
}

.docs-kv__row dd {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--capstone-text, var(--td-ink));
  line-height: 1.5;
}

@media (max-width: 1100px) {
  .teach-dash-docs {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }

  .teach-dash-docs__toc {
    order: -1;
    border-left: none;
    border-bottom: 1px solid var(--td-border);
    padding: 0.85rem 1rem 1rem;
    max-height: none;
    overflow: visible;
  }

  .teach-dash-docs__toc .capstone-brief-toc__list {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0.35rem;
    overflow-x: auto;
    padding-bottom: 0.15rem;
    -webkit-overflow-scrolling: touch;
  }

  .teach-dash-docs__toc .capstone-brief-toc__link {
    flex: 0 0 auto;
    border-left: none;
    border-radius: 999px;
    border: 1px solid var(--td-border);
    background: var(--td-stage);
    white-space: nowrap;
  }

  .teach-dash-docs__toc .capstone-brief-toc__link.is-active,
  .teach-dash-docs__toc .capstone-brief-toc__link[aria-current='location'] {
    border-color: var(--brand, #6e51e0);
  }

  .docs-kv__row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}

@media (max-width: 900px) {
  .teach-dash-stats,
  .teach-dash-stats--ops {
    grid-template-columns: 1fr;
  }

  .teach-dash-stats--overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .teach-dash-topbar-brand {
    display: inline;
  }

  .teach-dash-topbar-section,
  .teach-dash-topbar-divider,
  .teach-dash-collapse--rail {
    display: none !important;
  }

  .teach-dash-prep-link {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .teach-dash-prep-go {
    display: none;
  }

  .teach-dash-program-row {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .teach-dash-program-row-meta {
    display: none;
  }

  .teach-dash-section-head--row {
    flex-direction: column;
    align-items: flex-start;
  }
}

.teach-dash-head {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0 0 1.1rem;
}

.teach-dash-head--with-actions {
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem 1.25rem;
}

.teach-dash-head-copy {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 0.35rem;
}

.teach-dash-head-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  padding-top: 0.15rem;
}

@media (max-width: 640px) {
  .teach-dash-head--with-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .teach-dash-head-actions {
    justify-content: stretch;
    padding-top: 0;
  }

  .teach-dash-head-actions .teach-dash-btn {
    width: 100%;
    justify-content: center;
  }
}

.teach-dash-title {
  margin: 0;
  font-family: var(--td-font);
  font-size: clamp(1.3rem, 2vw, 1.55rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.teach-dash-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 0;
}

.teach-dash-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.25rem;
  width: 100%;
  padding: 0;
  border-bottom: 1px solid var(--td-border);
  overflow: hidden;
}

.teach-dash-tab {
  position: relative;
  flex: 0 0 auto;
  margin: 0 0 -1px;
  appearance: none;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--td-faint);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 0.55rem 0.05rem 1rem;
  border-radius: 0;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.teach-dash-tab:hover {
  color: var(--td-muted);
}

.teach-dash-tab.is-active {
  color: var(--td-text);
  border-bottom-color: var(--td-text);
}

.teach-dash-tab:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--td-text) 35%, transparent);
  outline-offset: 2px;
  border-radius: 0.25rem;
}

.teach-dash-views-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--td-border);
  background: transparent;
  color: var(--td-text);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  border-radius: 0.55rem;
  cursor: pointer;
}

.teach-dash-views-btn:hover {
  background: var(--td-hover);
}

.teach-dash-insights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--td-space-3);
  margin-bottom: var(--td-space-5);
}

.teach-dash-insight {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem 1rem;
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--td-border);
  border-radius: 0.95rem;
  background: transparent;
}

.teach-dash-insight-icon {
  display: inline-flex;
  width: 2.15rem;
  height: 2.15rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.6rem;
  margin-top: 0.1rem;
}

.teach-dash-insight--urgent .teach-dash-insight-icon {
  color: var(--td-urgent);
  background: rgba(239, 68, 68, 0.1);
}

.teach-dash-insight--warn .teach-dash-insight-icon {
  color: #ca8a04;
  background: rgba(234, 179, 8, 0.14);
}

.teach-dash-insight h2 {
  margin: 0 0 0.4rem;
  font-family: var(--td-font);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
}

.teach-dash-insight p {
  margin: 0;
  color: var(--td-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.teach-dash-insight-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.95rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--td-border);
  font-size: 0.8rem;
  color: var(--td-faint);
}

.teach-dash-insight-foot a {
  color: var(--td-link);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.teach-dash-insight-foot a:hover {
  text-decoration: underline;
}

.teach-dash-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--td-border);
}

.teach-dash-row {
  border-bottom: 1px solid var(--td-border);
}

.teach-dash-row[hidden] {
  display: none;
}

.teach-dash-row-link {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  grid-template-areas:
    "bars id title"
    "bars id meta";
  column-gap: 0.85rem;
  row-gap: 0.2rem;
  align-items: center;
  padding: 0.95rem 0.35rem;
  color: inherit;
  text-decoration: none;
}

.teach-dash-row-link:hover {
  background: linear-gradient(90deg, transparent, var(--td-hover) 8%, var(--td-hover) 92%, transparent);
}

.teach-dash-bars {
  grid-area: bars;
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 0.9rem;
}

.teach-dash-bar {
  width: 3px;
  border-radius: 1px;
  background: var(--td-border);
}

.teach-dash-bar:nth-child(1) { height: 40%; }
.teach-dash-bar:nth-child(2) { height: 70%; }
.teach-dash-bar:nth-child(3) { height: 100%; }

.teach-dash-bar.is-red { background: var(--td-urgent); }
.teach-dash-bar.is-green { background: var(--td-green); }
.teach-dash-bar.is-blue { background: var(--td-blue); }
.teach-dash-bar.is-muted { background: rgba(23, 23, 23, 0.15); }

html[data-theme="dark"] .teach-dash-bar.is-muted {
  background: rgba(255, 255, 255, 0.18);
}

.teach-dash-row-id {
  grid-area: id;
  font-family: var(--td-font);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--td-faint);
  min-width: 3.2rem;
}

.teach-dash-row-title {
  grid-area: title;
  font-family: var(--td-font);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.teach-dash-row-meta {
  grid-area: meta;
  font-size: 0.8rem;
  color: var(--td-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 960px) {
  .teach-dash-insights {
    grid-template-columns: 1fr;
  }

  .teach-dash-row-link {
    grid-template-columns: auto auto 1fr;
    grid-template-areas:
      "bars id title"
      "bars . meta";
  }
}

@media (max-width: 820px) {
  .teach-dash-shell,
  html.teach-dash-collapsed .teach-dash-shell {
    grid-template-columns: 1fr;
  }

  .teach-dash-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(16.5rem, 88vw);
    height: 100dvh;
    z-index: 40;
    transform: translateX(-105%);
    transition: transform 0.2s ease;
    background: var(--td-stage);
    box-shadow: 8px 0 28px rgba(0, 0, 0, 0.12);
  }

  html.teach-dash-collapsed .teach-dash-sidebar {
    width: min(16.5rem, 88vw);
  }

  html.teach-dash-collapsed .teach-dash-brand-copy,
  html.teach-dash-collapsed .teach-dash-nav-heading,
  html.teach-dash-collapsed .teach-dash-nav-label,
  html.teach-dash-collapsed .teach-dash-nav-chevron {
    display: flex;
  }

  html.teach-dash-collapsed .teach-dash-nav-heading {
    display: block;
  }

  html.teach-dash-collapsed .teach-dash-nav-children {
    display: none;
  }

  html.teach-dash-collapsed .teach-dash-nav-tree.is-open .teach-dash-nav-children {
    display: flex;
    flex-direction: column;
  }

  html.teach-dash-collapsed .teach-dash-nav-link,
  html.teach-dash-collapsed .teach-dash-nav-parent {
    justify-content: flex-start;
    padding: 0.4rem 0.55rem;
  }

  html.teach-dash-collapsed .teach-dash-sidebar .teach-dash-collapse:not(.teach-dash-collapse--rail) {
    display: inline-flex;
  }

  body.teach-dash-nav-open .teach-dash-sidebar {
    transform: none;
  }

  .teach-dash-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 35;
    background: rgba(0, 0, 0, 0.35);
  }

  .teach-dash-backdrop[hidden] {
    display: none;
  }

  .teach-dash-menu {
    display: inline-flex;
  }

  .teach-dash-main {
    height: 100%;
    overflow: hidden;
    padding: 0.55rem;
  }

  .teach-dash-topbar {
    position: relative;
    padding: 0 0.65rem;
    margin-bottom: 0.45rem;
  }

  .teach-dash-topbar-badge {
    display: none;
  }

  .teach-dash-stage {
    border-radius: 0.75rem;
    padding: 0.9rem 1rem 1.35rem;
  }

  .teach-dash-head {
    gap: 0.35rem;
    margin-bottom: 0.75rem;
  }

  .teach-dash-insights {
    gap: 0.85rem;
    margin-bottom: 1.35rem;
  }

  .teach-dash-insight {
    padding: 1rem 1.05rem;
  }
}

