:root {
  --primary: #944a00;
  --primary-container: #e67e22;
  --clay-dark: #d35400;
  --leaf: #1e8449;
  --surface: #f7f9ff;
  --surface-low: #edf4ff;
  --surface-card: #ffffff;
  --surface-high: #d9eaff;
  --secondary: #e9e2d3;
  --text: #091d2e;
  --muted: #564337;
  --border: #eaecef;
  --shadow: 0 10px 30px -5px rgba(44, 62, 80, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.6;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
  max-width: 100%;
  overflow-wrap: anywhere;
  text-align: center;
}

.material-symbols-outlined {
  vertical-align: middle;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(220px, 560px) 1fr auto auto;
  gap: 24px;
  align-items: center;
  padding: 20px 40px;
  background: rgba(247, 249, 255, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}

.brand {
  color: var(--primary);
  font-family: Montserrat, sans-serif;
  font-size: 28px;
  font-weight: 700;
  text-decoration: none;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  width: 178px;
  height: 58px;
}

.brand-logo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 58px;
  object-fit: contain;
  object-position: left center;
}

.top-search {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 56px;
  padding: 0 22px;
  background: var(--surface-low);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.top-search input {
  width: 100%;
  min-width: 0;
  background: transparent;
  border: 0;
  color: var(--muted);
  outline: 0;
}

.desktop-nav {
  display: flex;
  gap: 28px;
  align-items: center;
  justify-content: flex-end;
  white-space: nowrap;
}

.desktop-nav a {
  color: #402413;
  font-family: Montserrat, sans-serif;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.desktop-nav .active {
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
}

.primary-btn,
.ghost-btn,
.outline-btn,
.icon-btn {
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

.nav-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--primary-container);
  color: #fff;
  text-align: center;
}

.primary-btn:hover {
  background: var(--clay-dark);
}

.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  background: transparent;
  color: var(--primary);
  text-align: center;
}

.outline-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  background: transparent;
  color: var(--primary-container);
  border: 2px solid var(--primary-container);
  text-align: center;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  background: var(--surface-low);
  color: var(--primary);
}

.mobile-only {
  display: none;
}

.mobile-menu {
  grid-column: 1 / -1;
  display: none;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-card);
  box-shadow: var(--shadow);
}

.mobile-menu a {
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

.mobile-menu a:hover {
  background: var(--surface-low);
}

.mobile-menu.is-open {
  display: grid;
}

.hero {
  position: relative;
  min-height: 650px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 29, 46, 0.86) 0%, rgba(9, 29, 46, 0.52) 44%, rgba(9, 29, 46, 0.08) 100%),
    url("https://lh3.googleusercontent.com/aida-public/AB6AXuC5yGm8ydta-xI0MGIUWqGNFUNOR7pPPB3QDpBLB7pAZbs_seDlUugQY--iLYi8Lc7wmOiI6Lu3k6wjOe41Ysde8YTfhZWd38VoqPlbS9U6gSVp4lLQScDP3ee5bgmeo2UDGpklstKE8_sYv_anR0mKFKKutc1NuHKU25ijnr6S0qpWa0OT_w6Ig9d4Me-hegyrhYge5aSfMOC9t4odlZKRT3mm3NZvZMzIHUqgzhQwesioxnMWm43G") center / cover;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 32px));
  margin-left: clamp(16px, 3vw, 48px);
  color: #fff;
}

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

.hero h1 {
  margin: 0;
  font-family: Montserrat, sans-serif;
  font-size: 56px;
  line-height: 1.12;
}

.hero-content > p:not(.eyebrow) {
  max-width: 690px;
  margin: 24px 0 34px;
  font-size: 20px;
  color: rgba(255, 255, 255, 0.88);
}

.hero-search {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0;
  width: min(720px, 100%);
  padding: 18px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.hero-search > .material-symbols-outlined {
  display: grid;
  place-items: center;
  width: 52px;
  color: #4b2a17;
  background: #fff;
  border-radius: 8px 0 0 8px;
}

.hero-search input {
  min-width: 0;
  padding: 0 16px;
  border: 0;
  color: var(--muted);
  background: #fff;
  outline: 0;
}

.hero-search > button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 28px;
  border: 0;
  border-radius: 0 8px 8px 0;
  background: var(--clay-dark);
  color: #fff;
  font-family: Montserrat, sans-serif;
  font-size: 20px;
  font-weight: 700;
}

.popular {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding-top: 16px;
  color: #4b2a17;
}

.popular button,
.meta span,
.price-row span {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
}

.popular button {
  min-height: 36px;
  padding: 5px 14px;
  white-space: normal;
}

.phase-strip,
.journey-flow,
.section-grid,
.detail-layout,
.dashboard-tabs,
.account-routes,
.phase-two,
.checkout-flow,
.instructor-onboarding,
.lesson-builder,
.admin-panel,
.phase-two-suite {
  width: min(1280px, calc(100% - 32px));
  margin: 56px auto;
}

.phase-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.phase-card,
.filters,
.course-card,
.lesson-detail,
.booking-card,
.dashboard-panel,
.growth-grid article,
.info-columns article,
.checkout-panel,
.protection-card,
.onboarding-grid article,
.lesson-form,
.earnings-preview,
.admin-grid article,
.flow-track article,
.portal-route-grid article,
.portal-grid article,
.ai-assistant-card,
.ai-tool-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.phase-card {
  padding: 24px;
}

.account-routes {
  width: min(1280px, calc(100% - 32px));
  margin: 56px auto;
}

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

.portal-route-grid article,
.portal-grid article {
  padding: 24px;
}

.portal-route-grid .material-symbols-outlined {
  color: var(--primary-container);
  font-size: 36px;
}

.primary-link,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 10px;
  border-radius: 12px;
  font-family: Montserrat, sans-serif;
  font-weight: 800;
  text-decoration: none;
}

.primary-link {
  padding: 10px 18px;
  background: var(--primary-container);
  color: #fff;
}

.text-link {
  color: var(--primary);
}

.portal-topbar {
  grid-template-columns: auto 1fr auto;
}

.portal-page {
  width: min(1280px, calc(100% - 32px));
  margin: 36px auto 64px;
}

.portal-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-card);
  box-shadow: var(--shadow);
}

.portal-hero h1,
.standalone-portal h1 {
  margin: 0;
  font-family: Montserrat, sans-serif;
  font-size: 34px;
  line-height: 1.2;
}

.portal-section {
  margin-top: 24px;
}

.auth-page {
  min-height: calc(100vh - 86px);
  display: grid;
  place-items: center;
  width: min(960px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
}

.auth-card {
  width: 100%;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-card);
  box-shadow: var(--shadow);
}

.auth-card h1 {
  margin: 0;
  font-family: Montserrat, sans-serif;
  font-size: 36px;
  line-height: 1.2;
}

.auth-form {
  margin-top: 24px;
}

.auth-mode-row,
.auth-actions,
.auth-note {
  display: flex;
  align-items: center;
  gap: 14px;
}

.auth-mode-row {
  justify-content: space-between;
  margin: 18px 0 22px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-low);
  color: var(--muted);
  font-weight: 800;
}

.role-toggle {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.role-toggle label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-card);
  color: var(--text);
  cursor: pointer;
}

.role-toggle input {
  accent-color: var(--primary);
}

.auth-actions {
  flex-wrap: wrap;
}

.auth-actions > * {
  flex: 1 1 180px;
}

.auth-switch {
  margin: 16px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.auth-switch a {
  color: var(--primary);
  font-weight: 900;
  text-decoration: none;
}

.auth-switch a:hover {
  color: var(--clay-dark);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--muted);
  font-weight: 800;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--border);
}

.google-auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-card);
  color: var(--text);
  font-weight: 900;
}

.google-auth-btn span {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #ffffff;
  color: #4285f4;
  border: 1px solid var(--border);
  font-family: Arial, sans-serif;
  font-weight: 900;
}

.auth-note {
  align-items: flex-start;
  margin-top: 22px;
  padding: 14px;
  border-radius: 8px;
  background: var(--surface-low);
  color: var(--muted);
}

.auth-note p {
  margin: 0;
}

.auth-note .material-symbols-outlined {
  color: var(--primary-container);
}

.role-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.role-card {
  display: grid;
  gap: 10px;
  min-height: 190px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-low);
  color: var(--text);
  text-align: left;
}

.role-card:hover {
  border-color: var(--primary-container);
  box-shadow: var(--shadow);
}

.role-card .material-symbols-outlined {
  color: var(--primary-container);
  font-size: 36px;
}

.role-card strong {
  font-family: Montserrat, sans-serif;
  font-size: 20px;
}

.role-card small {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.journey-flow {
  width: min(1280px, calc(100% - 32px));
  margin: 56px auto;
}

.flow-track {
  display: grid;
  grid-template-columns: repeat(6, minmax(150px, 1fr));
  gap: 14px;
}

.flow-track article {
  min-height: 230px;
  padding: 18px;
  position: relative;
}

.flow-track article::after {
  content: "";
  position: absolute;
  top: 34px;
  right: -11px;
  width: 22px;
  height: 2px;
  background: var(--primary-container);
}

.flow-track article:last-child::after {
  display: none;
}

.flow-track span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary-container);
  color: #fff;
  font-family: Montserrat, sans-serif;
  font-weight: 900;
}

.flow-track h3 {
  margin: 16px 0 8px;
  font-family: Montserrat, sans-serif;
  line-height: 1.3;
}

.flow-track p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.phase-card span {
  color: var(--primary);
  font-weight: 800;
}

.phase-card h2,
.section-heading h2,
.lesson-detail h2 {
  margin: 6px 0 8px;
  font-family: Montserrat, sans-serif;
  line-height: 1.25;
}

.phase-card p,
.course-body p,
.lesson-detail p,
.booking-card li,
.dashboard-panel p,
.growth-grid p,
footer span {
  color: var(--muted);
}

footer a {
  color: var(--primary);
  font-weight: 900;
  text-decoration: none;
}

footer a:hover {
  color: var(--clay-dark);
}

.policy-page {
  width: min(980px, calc(100% - 32px));
  margin: 44px auto 72px;
}

.policy-hero {
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-card);
  box-shadow: var(--shadow);
}

.policy-hero h1 {
  margin: 0;
  font-family: Montserrat, sans-serif;
  font-size: 42px;
  line-height: 1.2;
}

.policy-hero p {
  margin: 10px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.policy-content {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.policy-content article {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-card);
}

.policy-content h2 {
  margin: 0 0 10px;
  color: var(--text);
  font-family: Montserrat, sans-serif;
  font-size: 22px;
}

.policy-content p {
  margin: 10px 0 0;
  color: var(--muted);
}

.policy-content a {
  color: var(--primary);
  font-weight: 900;
}

.phase-card.reminder {
  background: var(--secondary);
  border-color: #dcc1b1;
}

.section-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
}

.section-heading {
  grid-column: 1 / -1;
}

.section-heading h2,
.lesson-detail h2 {
  font-size: 32px;
}

.filters {
  position: sticky;
  top: 102px;
  align-self: start;
  padding: 24px;
}

.filters h3 {
  margin-top: 0;
  font-family: Montserrat, sans-serif;
}

.filters label {
  display: flex;
  gap: 12px;
  margin: 14px 0;
  color: var(--muted);
}

.filters input[type="range"] {
  width: 100%;
  accent-color: var(--primary);
}

.full {
  width: 100%;
}

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

.course-card {
  overflow: hidden;
}

.search-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 24px;
  border: 1px dashed var(--border);
  border-radius: 8px;
  background: var(--surface-card);
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

.course-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.course-body {
  padding: 18px;
}

.meta,
.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.meta span,
.price-row span {
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.course-body h3 {
  min-height: 58px;
  margin: 14px 0 8px;
  font-family: Montserrat, sans-serif;
  line-height: 1.35;
}

.price-row {
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.price-row strong,
.booking-card strong,
.metric-grid strong {
  font-family: Montserrat, sans-serif;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
}

.lesson-detail,
.booking-card,
.dashboard-panel,
.phase-two,
.checkout-panel,
.protection-card,
.instructor-onboarding,
.lesson-builder,
.admin-panel,
.phase-two-suite {
  padding: 24px;
}

.chef-line {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--muted);
}

.avatar {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-fixed, #ffdcc5);
  color: var(--primary);
  font-weight: 800;
}

.video-preview {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: var(--surface-high);
}

.video-preview img {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  display: block;
}

.play-btn {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--primary);
  box-shadow: var(--shadow);
}

.info-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.info-columns article {
  padding: 18px;
  background: var(--surface-low);
}

.booking-card {
  position: sticky;
  top: 102px;
  align-self: start;
}

.booking-card strong {
  display: block;
  margin: 6px 0 18px;
  font-size: 32px;
}

.booking-card ul {
  padding-left: 20px;
}

.booking-card button,
.booking-card a {
  margin-top: 10px;
}

.booking-card small {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 14px;
  color: var(--muted);
}

.tab-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-card);
  color: var(--muted);
  font-weight: 700;
  white-space: normal;
}

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

.dashboard-panel {
  display: none;
}

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

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.panel-header h3 {
  margin: 0;
  font-family: Montserrat, sans-serif;
  font-size: 28px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.metric-grid article {
  min-height: 130px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.76);
}

.metric-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.metric-grid strong {
  display: block;
  margin-top: 8px;
  font-size: 30px;
}

.instructor-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
}

.side-nav {
  padding: 22px;
  border-radius: 12px;
  background: var(--surface-low);
}

.side-nav .chef {
  width: 68px;
  height: 68px;
}

.side-nav h3 {
  margin-bottom: 0;
  color: var(--primary);
  font-family: Montserrat, sans-serif;
}

.side-nav a {
  display: block;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 700;
}

.side-nav a.active {
  background: rgba(230, 126, 34, 0.12);
  color: var(--primary);
  border-right: 4px solid var(--primary);
}

.growth-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.growth-grid article {
  padding: 22px;
}

.growth-grid .material-symbols-outlined {
  color: var(--leaf);
  font-size: 32px;
}

.phase-two-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 24px;
  margin-bottom: 24px;
}

.ai-assistant-card,
.ai-tool-card {
  padding: 26px;
  position: relative;
  overflow: hidden;
}

.ai-assistant-card {
  background:
    linear-gradient(135deg, rgba(255, 220, 197, 0.72), rgba(255, 255, 255, 0.92)),
    var(--surface-card);
}

.ai-assistant-card > .material-symbols-outlined,
.ai-tool-card > .material-symbols-outlined {
  color: var(--primary-container);
  font-size: 38px;
}

.assistant-prompt {
  margin: 20px 0;
  padding: 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--text);
  font-family: Montserrat, sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
}

.recommendation-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.recommendation-stack button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 180px;
  min-height: 44px;
  padding: 10px 16px;
  border: 0;
  border-radius: 12px;
  background: var(--primary-container);
  color: #fff;
  font-family: Montserrat, sans-serif;
  font-weight: 800;
}

.recommendation-stack button + button {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary-container);
}

.tool-list {
  display: grid;
  gap: 12px;
}

.tool-list div {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-low);
}

.tool-list strong {
  color: var(--primary);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.checkout-grid,
.builder-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
}

.stepper {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  overflow-x: auto;
}

.step {
  flex: 1;
  min-width: 120px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-low);
  color: var(--muted);
  font-weight: 800;
}

.step.active {
  background: var(--primary);
  color: #fff;
}

.step-panel {
  display: none;
}

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

.summary-list {
  margin: 18px 0 0;
}

.summary-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.summary-list dt {
  color: var(--muted);
}

.summary-list dd {
  margin: 0;
  font-weight: 800;
}

.field {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-low);
  color: var(--text);
  outline-color: var(--primary);
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.password-field {
  position: relative;
}

.auth-text-btn {
  justify-self: end;
  min-height: 0;
  padding: 2px 0;
  border: 0;
  background: transparent;
  color: var(--primary);
  font-weight: 900;
}

.auth-text-btn:hover {
  color: var(--clay-dark);
}

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

.confirmation-code {
  display: inline-block;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--surface-low);
  color: var(--primary);
  font-weight: 900;
  letter-spacing: 0.05em;
}

.protection-card .material-symbols-outlined {
  color: var(--leaf);
  font-size: 36px;
}

.ops-grid,
.onboarding-grid,
.admin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.ops-grid article {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-low);
}

.message-row,
.review-row {
  display: grid;
  gap: 4px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
}

.review-row {
  grid-template-columns: 52px 1fr;
  align-items: start;
}

.review-row span {
  color: var(--primary);
  font-weight: 900;
}

.onboarding-grid article,
.admin-grid article {
  padding: 22px;
}

.onboarding-grid .material-symbols-outlined {
  color: var(--primary-container);
  font-size: 34px;
}

.lesson-form,
.earnings-preview {
  padding: 22px;
}

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

.admin-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.admin-grid strong {
  display: block;
  margin-top: 10px;
  font-family: Montserrat, sans-serif;
  font-size: 32px;
}

.verification-body {
  min-height: 100vh;
  background: var(--surface-gray, #f8f9fa);
}

.verification-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  width: 280px;
  padding: 24px 20px;
  border-right: 1px solid var(--border);
  background: var(--surface-card);
}

.verification-brand,
.verification-admin,
.applicant-cell {
  display: flex;
  align-items: center;
  gap: 14px;
}

.verification-brand > span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-container);
  color: var(--on-primary-container, #301400);
  font-weight: 800;
}

.verification-brand strong,
.verification-admin strong,
.applicant-cell strong {
  display: block;
  color: var(--text);
  font-family: Montserrat, sans-serif;
}

.verification-brand small,
.verification-admin small,
.applicant-cell small {
  display: block;
  color: var(--muted);
}

.verification-nav {
  display: grid;
  gap: 12px;
  margin-top: 34px;
}

.verification-nav a {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 900;
  text-decoration: none;
}

.verification-nav a.active {
  border-right: 4px solid var(--primary);
  background: rgba(230, 126, 34, 0.12);
  color: var(--primary);
}

.verification-admin {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.verification-main {
  min-height: 100vh;
  margin-left: 280px;
  background: #f8f9fa;
}

.verification-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 80px;
  padding: 14px 40px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
}

.mobile-brand {
  display: none;
}

.admin-hamburger {
  position: relative;
  display: none;
}

.learner-hamburger {
  display: block;
  justify-self: end;
}

.admin-hamburger summary {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  color: var(--primary);
  cursor: pointer;
  list-style: none;
}

.admin-hamburger summary::-webkit-details-marker {
  display: none;
}

.admin-hamburger summary:hover {
  background: var(--surface-low);
}

.admin-hamburger nav {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 60;
  display: grid;
  gap: 6px;
  width: min(280px, calc(100vw - 32px));
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-card);
  box-shadow: var(--shadow);
}

.learner-hamburger nav {
  right: 0;
  left: auto;
  width: min(300px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
}

.admin-hamburger a,
.admin-hamburger button {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  width: 100%;
  max-width: 100%;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  text-align: left;
}

.admin-hamburger a:hover,
.admin-hamburger button:hover {
  background: rgba(230, 126, 34, 0.12);
  color: var(--primary);
}

.admin-hamburger a.active {
  background: rgba(230, 126, 34, 0.12);
  color: var(--primary);
}

.verification-search {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(560px, 100%);
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

.verification-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  outline: 0;
}

.verification-content {
  display: grid;
  gap: 30px;
  width: min(1160px, calc(100% - 48px));
  margin: 48px auto;
}

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

.admin-overview-stats {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.verification-stats article,
.application-queue {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-card);
  box-shadow: var(--shadow);
}

.verification-stats article {
  min-height: 156px;
  padding: 24px;
}

.verification-stats article > div {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.verification-stats span,
.verification-stats p {
  color: var(--muted);
}

.verification-stats i {
  padding: 8px;
  border-radius: 8px;
  background: rgba(230, 126, 34, 0.12);
  color: var(--primary-container);
  font-style: normal;
}

.verification-stats .success-icon {
  background: rgba(41, 175, 97, 0.14);
  color: #00a651;
}

.verification-stats .muted-icon {
  background: var(--secondary);
  color: var(--muted);
}

.verification-stats strong {
  display: block;
  margin: 18px 0 8px;
  color: var(--text);
  font-family: Montserrat, sans-serif;
  font-size: 40px;
  line-height: 1;
}

.verification-stats p {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.verification-stats .positive {
  color: #00a651;
}

.verification-stats .negative {
  color: #c62828;
}

.verification-stats .escalated-stat {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #ef7f1a;
}

.verification-stats .escalated-stat span,
.verification-stats .escalated-stat p,
.verification-stats .escalated-stat strong {
  color: #301400;
}

.verification-stats .escalated-stat > span {
  font-family: Montserrat, sans-serif;
  font-size: 22px;
  font-weight: 800;
}

.verification-stats .escalated-stat strong {
  margin: 0;
}

.application-queue {
  overflow: hidden;
  min-height: 560px;
}

.queue-header,
.queue-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px;
}

.queue-header {
  border-bottom: 1px solid var(--border);
}

.queue-header h1 {
  margin: 0;
  font-family: Montserrat, sans-serif;
  font-size: 28px;
}

.queue-header > div,
.queue-footer > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.queue-header select,
.queue-footer button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
}

.queue-table-wrap {
  overflow-x: auto;
}

.queue-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.queue-table th {
  padding: 14px 24px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.queue-table td {
  padding: 20px 24px;
  border-top: 1px solid var(--border);
}

.queue-table tr:hover {
  background: var(--surface-low);
}

.queue-table tr[hidden] {
  display: none;
}

.queue-table .flagged-row {
  background: rgba(255, 218, 214, 0.34);
}

.avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary-container);
  color: #301400;
  font-weight: 900;
}

.avatar.photo {
  background: #d1e4fb;
}

.avatar.pale {
  background: #f3e5ab;
}

.avatar.dark {
  background: #203243;
  color: #ffffff;
}

.level {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-size: 13px;
}

.level::before {
  font-family: "Material Symbols Outlined";
  font-size: 16px;
}

.level.ok::before {
  content: "check_circle";
  color: #00a651;
}

.level.pending::before {
  content: "pending";
  color: var(--primary-container);
}

.level.error {
  color: #c62828;
}

.level.error::before {
  content: "error";
  color: #c62828;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.status-pill.review {
  background: #d1e4fb;
  color: var(--text);
}

.status-pill.pending {
  background: #f3e5ab;
  color: #4b463c;
}

.status-pill.escalated {
  background: #ffdad6;
  color: #93000a;
}

.queue-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  background: rgba(247, 249, 255, 0.65);
  color: var(--muted);
}

.queue-footer button.active {
  background: var(--primary);
  color: #ffffff;
}

.admin-side-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: auto;
  text-decoration: none;
}

.admin-side-action + .verification-admin {
  margin-top: 22px;
}

.admin-top-title {
  min-width: 220px;
}

.admin-top-title h1 {
  margin: 0;
  color: var(--text);
  font-family: Montserrat, sans-serif;
  font-size: 24px;
  line-height: 1.2;
}

.admin-top-title span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.admin-search {
  margin-left: auto;
}

.notify-dot {
  position: relative;
}

.notify-dot::after {
  content: "";
  position: absolute;
  top: 9px;
  right: 9px;
  width: 8px;
  height: 8px;
  border: 2px solid var(--surface-card);
  border-radius: 50%;
  background: #ba1a1a;
}

.admin-overview-content {
  gap: 36px;
}

.admin-overview-stats {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.admin-bento {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
  gap: 24px;
}

.admin-panel {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-card);
  box-shadow: var(--shadow);
  padding: 24px;
}

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

.admin-panel-header h2,
.admin-ops-table h2,
.finance-card h2 {
  margin: 0;
  color: var(--text);
  font-family: Montserrat, sans-serif;
  font-size: 24px;
}

.admin-panel-header a {
  color: var(--primary);
  font-weight: 900;
  text-decoration: none;
}

.admin-work-list {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.admin-work-list > div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.admin-work-list strong,
.admin-ops-table td strong {
  display: block;
  color: var(--text);
  font-weight: 900;
}

.admin-work-list small,
.admin-ops-table td small {
  display: block;
  color: var(--muted);
}

.finance-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  background: var(--secondary);
}

.finance-card > .material-symbols-outlined {
  position: absolute;
  top: -18px;
  right: -10px;
  color: rgba(9, 29, 46, 0.12);
  font-size: 112px;
}

.finance-card p {
  margin: 28px 0 0;
  color: var(--muted);
}

.finance-card > strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-family: Montserrat, sans-serif;
  font-size: 36px;
}

.finance-card dl {
  display: grid;
  gap: 14px;
  margin: 24px 0;
}

.finance-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.finance-card dt,
.finance-card dd {
  margin: 0;
}

.finance-card dt {
  color: var(--muted);
}

.finance-card dd {
  color: var(--text);
  font-weight: 900;
}

.admin-ops-table .queue-table td:first-child {
  min-width: 240px;
}

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

.notification-list {
  display: grid;
  gap: 0;
}

.notification-list article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  padding: 20px 24px;
  border-top: 1px solid var(--border);
}

.notification-list article > .material-symbols-outlined {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: rgba(230, 126, 34, 0.12);
  color: var(--primary);
}

.notification-list strong {
  display: block;
  color: var(--text);
  font-family: Montserrat, sans-serif;
  font-size: 16px;
}

.notification-list p {
  margin: 4px 0;
  color: var(--muted);
}

.notification-list small {
  color: var(--muted);
  font-weight: 800;
}

footer {
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: 36px 40px;
  background: var(--secondary);
}

footer strong {
  color: var(--primary);
  font-family: Montserrat, sans-serif;
  font-size: 22px;
}

.footer-brand {
  display: inline-flex;
  width: 156px;
}

.footer-brand img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 30;
  transform: translateY(20px);
  opacity: 0;
  max-width: 320px;
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--text);
  color: #fff;
  box-shadow: var(--shadow);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 1060px) {
  .topbar {
    grid-template-columns: auto 1fr auto;
    padding: 16px;
  }

  .desktop-nav,
  .topbar > .ghost-btn,
  .topbar > .primary-btn {
    display: none;
  }

  .mobile-only {
    display: inline-grid;
  }

  .hero h1 {
    font-size: 42px;
  }

  .phase-strip,
  .flow-track,
  .section-grid,
  .detail-layout,
  .course-grid,
  .growth-grid,
  .metric-grid,
  .instructor-shell,
  .checkout-grid,
  .builder-grid,
  .ops-grid,
  .onboarding-grid,
  .portal-route-grid,
  .portal-grid,
  .role-grid,
  .admin-grid,
  .phase-two-layout,
  .phase-two-grid {
    grid-template-columns: 1fr;
  }

  .auth-mode-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .verification-sidebar {
    position: static;
    width: 100%;
    min-height: auto;
    padding: 18px 16px;
  }

  .verification-nav {
    display: none;
  }

  .verification-admin {
    display: none;
  }

  .admin-hamburger {
    display: block;
  }

  .verification-main {
    margin-left: 0;
  }

  .verification-topbar {
    padding: 14px 16px;
  }

  .verification-topbar .ghost-btn {
    display: none;
  }

  .verification-content {
    width: min(100% - 32px, 720px);
    margin: 24px auto;
  }

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

  .admin-overview-stats,
  .admin-bento {
    grid-template-columns: 1fr;
  }

  .admin-side-action {
    margin-top: 18px;
  }

  .admin-top-title {
    display: none;
  }

  .admin-search {
    margin-left: 0;
  }

  .queue-header,
  .queue-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .queue-header > div {
    width: 100%;
    flex-wrap: wrap;
  }

  .queue-header select,
  .queue-header .outline-btn,
  .admin-panel-header .primary-btn,
  .admin-side-action,
  .finance-card .outline-btn,
  .google-auth-btn {
    width: 100%;
  }

  .flow-track article {
    min-height: auto;
  }

  .flow-track article::after {
    top: auto;
    right: auto;
    left: 34px;
    bottom: -12px;
    width: 2px;
    height: 24px;
  }

  .filters,
  .booking-card {
    position: static;
  }
}

@media (max-width: 700px) {
  .top-search {
    display: none;
  }

  .topbar {
    grid-template-columns: 1fr auto;
  }

  .hero {
    min-height: 610px;
  }

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

  .hero-search > button {
    grid-column: 1 / -1;
    height: 50px;
    margin-top: 10px;
    border-radius: 8px;
  }

  .hero-search input {
    height: 50px;
    border-radius: 0 8px 8px 0;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero-content > p:not(.eyebrow) {
    font-size: 17px;
  }

  .info-columns,
  .field-row,
  .panel-header,
  .portal-hero,
  footer {
    display: block;
  }

  .panel-header .primary-btn {
    width: 100%;
    margin-top: 12px;
  }

  .primary-btn,
  .ghost-btn,
  .outline-btn,
  .google-auth-btn,
  .tab,
  .recommendation-stack button {
    min-height: 48px;
  }

  .auth-actions,
  .tab-buttons,
  .recommendation-stack,
  .queue-header > div,
  .admin-panel-header {
    align-items: stretch;
    flex-direction: column;
  }

  .tab,
  .recommendation-stack button,
  .queue-footer button {
    width: 100%;
  }

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

  .verification-search {
    min-height: 48px;
  }

  .queue-table th,
  .queue-table td {
    padding: 14px 16px;
  }

  .admin-work-list > div {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .admin-work-list .outline-btn {
    grid-column: 1 / -1;
    width: 100%;
  }

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

  .notification-list article {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .notification-list .status-pill {
    grid-column: 2;
    justify-self: start;
  }
}
