﻿:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --surface-strong: #ffffff;
  --border: rgba(15, 23, 42, 0.1);
  --text: #0f172a;
  --muted: #64748b;
  --primary: #0f766e;
  --primary-soft: rgba(15, 118, 110, 0.12);
  --primary-ink: #ffffff;
  --accent: #0f766e;
  --warning: #b45309;
  --danger: #dc2626;
  --success: #15803d;
  --focus-ring: 0 0 0 3px rgba(15, 118, 110, 0.18);
  --radius-xs: 10px;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 18px;
  --radius-pill: 999px;
  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.25rem;
  --space-5: 1.6rem;
  --radius: var(--radius-lg);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: 'DM Sans', sans-serif;
  background: radial-gradient(1200px 700px at -5% -10%, rgba(15, 118, 110, 0.1) 0%, transparent 45%),
    radial-gradient(1100px 700px at 105% -10%, rgba(14, 165, 164, 0.08) 0%, transparent 45%),
    var(--bg);
  color: var(--text);
}

body {
  position: relative;
  overflow-x: hidden;
}

body.mobile-nav-open {
  overflow: hidden;
}

.bg-orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(2px);
}

.bg-orb-1 {
  width: 420px;
  height: 420px;
  left: -160px;
  top: -180px;
  background: radial-gradient(circle at center, rgba(15, 118, 110, 0.16), transparent 70%);
}

.bg-orb-2 {
  width: 460px;
  height: 460px;
  right: -180px;
  top: -120px;
  background: radial-gradient(circle at center, rgba(14, 165, 164, 0.12), transparent 70%);
}

.app-shell {
  width: min(1160px, 100% - 2rem);
  margin: 0 auto;
  padding: 1.25rem 0 2.2rem;
  position: relative;
  z-index: 1;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-header {
  position: sticky;
  top: 0.6rem;
  z-index: 12;
  margin-bottom: 1rem;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text);
}

.brand-badge {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(145deg, #0f766e, #0e7490);
  box-shadow: 0 10px 20px rgba(15, 118, 110, 0.28);
}

.brand-text {
  display: grid;
  gap: 0.02rem;
}

.brand-name {
  font-family: 'Cormorant Garamond', serif;
  letter-spacing: 0.02em;
  font-size: 1.44rem;
  font-weight: 600;
  line-height: 1;
}

.brand-name span {
  color: var(--primary);
  font-style: italic;
}

.brand-sub {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #0f766e;
  font-weight: 700;
}

.header-menu-shell {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-left: auto;
}

.mobile-menu-drawer {
  display: none;
}

.mobile-menu-block {
  display: contents;
}

.mobile-drawer-head {
  display: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.36rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-link {
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: #334155;
  background: rgba(255, 255, 255, 0.68);
  font: inherit;
  font-size: 0.88rem;
  padding: 0.5rem 0.72rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  min-height: 42px;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: #0f172a;
  background: var(--primary-soft);
  border-color: rgba(15, 118, 110, 0.25);
  box-shadow: var(--focus-ring);
  outline: none;
}

.nav-link.is-active {
  color: #0f172a;
  background: rgba(15, 118, 110, 0.18);
  box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.32);
}

.nav-link-cta-ghost {
  border-color: rgba(15, 118, 110, 0.24);
  background: rgba(15, 118, 110, 0.08);
}

.nav-link-cta-primary {
  border-color: #0f766e;
  background: #0f766e;
  color: #ffffff;
}

.nav-link-cta-primary:hover,
.nav-link-cta-primary:focus-visible {
  color: #ffffff;
  border-color: #0f766e;
  background: #0f766e;
  filter: brightness(1.04);
}

.nav-link-cta-primary.is-active {
  color: #ffffff;
  border-color: #0f766e;
  background: #0f766e;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.16);
}

.mobile-menu-toggle,
.mobile-menu-backdrop {
  display: none;
}

.mobile-menu-toggle {
  border: 1px solid rgba(15, 118, 110, 0.28);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(15, 118, 110, 0.12), rgba(15, 118, 110, 0.03));
  width: 44px;
  height: 44px;
  padding: 0.55rem;
  cursor: pointer;
  gap: 0.22rem;
  align-items: center;
  justify-content: center;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease;
}

.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus-visible {
  transform: translateY(-1px);
  box-shadow: var(--focus-ring);
  outline: none;
}

.mobile-menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 99px;
  background: #0b5f5a;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

body.mobile-nav-open .mobile-menu-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

body.mobile-nav-open .mobile-menu-toggle span:nth-child(2) {
  opacity: 0;
}

body.mobile-nav-open .mobile-menu-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

main {
  display: grid;
  gap: 1rem;
}

.view {
  display: grid;
  gap: 1rem;
}

.card {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.hero {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: start;
}

#view-public .marketplace-entry {
  padding: clamp(1.25rem, 3vw, 2.2rem);
  border-color: rgba(15, 118, 110, 0.38);
  background:
    linear-gradient(136deg, rgba(15, 118, 110, 0.2), rgba(15, 118, 110, 0.03) 52%),
    var(--surface);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

#view-public .marketplace-entry .section-head {
  max-width: 74ch;
}

#view-public .marketplace-entry .section-head h1 {
  margin-top: 0.35rem;
  max-width: 20ch;
}

#view-public .marketplace-entry .section-head p {
  max-width: 62ch;
}

.hero-proof-list {
  margin-top: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.hero-proof-list span {
  border: 1px solid rgba(15, 118, 110, 0.24);
  background: rgba(15, 118, 110, 0.08);
  border-radius: 999px;
  font-size: 0.78rem;
  line-height: 1.2;
  padding: 0.38rem 0.62rem;
  color: #0f172a;
  font-weight: 500;
}

#view-public .hero {
  padding: clamp(1.35rem, 3vw, 2.1rem);
  background:
    linear-gradient(130deg, rgba(15, 118, 110, 0.08), rgba(15, 118, 110, 0.01) 42%),
    var(--surface);
  border-color: rgba(15, 23, 42, 0.1);
}

#view-public .card {
  padding: clamp(1.1rem, 2.5vw, 1.55rem);
}

#view-public .section-head h2 {
  font-size: clamp(1.5rem, 2.8vw, 2rem);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  color: var(--accent);
  margin: 0;
}

h1,
h2,
h3 {
  font-family: 'Cormorant Garamond', serif;
  letter-spacing: 0.01em;
  margin: 0;
  line-height: 1.15;
}

h1 {
  margin-top: 0.45rem;
  font-size: clamp(1.75rem, 3.9vw, 2.7rem);
  line-height: 1.1;
}

h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.82rem);
}

h3 {
  font-size: 1.28rem;
}

h4 {
  font-family: 'DM Sans', sans-serif;
  letter-spacing: 0;
}

p {
  margin: 0;
  line-height: 1.55;
}

.hero-copy {
  color: var(--muted);
  margin: 0.9rem 0 1rem;
  max-width: 64ch;
}

.hero-points {
  margin: 0 0 1rem;
  padding-left: 1.05rem;
  color: var(--muted);
  display: grid;
  gap: 0.35rem;
  font-size: 0.95rem;
}

.hero-points li::marker {
  color: var(--primary);
}

.hero-actions {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.skills-switch {
  margin: 0 0 1rem;
  padding: 0.8rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.7);
  display: grid;
  gap: 0.55rem;
}

.skills-switch-label {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0f172a;
}

.skills-switch-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}

.skills-switch-btn {
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: var(--radius-pill);
  min-height: 40px;
  padding: 0.5rem 0.72rem;
  background: rgba(255, 255, 255, 0.9);
  color: #334155;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.skills-switch-btn:hover,
.skills-switch-btn:focus-visible {
  border-color: rgba(15, 118, 110, 0.3);
  background: rgba(15, 118, 110, 0.1);
  box-shadow: var(--focus-ring);
  outline: none;
}

.skills-switch-btn.is-active {
  border-color: rgba(15, 118, 110, 0.42);
  background: rgba(15, 118, 110, 0.16);
  color: #0f172a;
}

.skills-switch-context {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.hero-kpis {
  display: grid;
  gap: 0.7rem;
}

.kpi-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  background: var(--surface-strong);
}

.kpi-value {
  display: block;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--primary);
}

.kpi-label {
  color: var(--muted);
  font-size: 0.9rem;
}

.btn {
  border: 1px solid var(--border);
  font: inherit;
  cursor: pointer;
  border-radius: var(--radius-pill);
  padding: 0.6rem 0.9rem;
  font-weight: 600;
  transition: 0.2s ease;
  min-height: 44px;
  line-height: 1.1;
  text-decoration: none;
}

.btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  filter: grayscale(0.15);
}

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

.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: var(--focus-ring);
  outline: none;
}

.btn-secondary {
  border-color: var(--border);
  background: var(--surface-strong);
  color: var(--text);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: rgba(15, 118, 110, 0.35);
  color: #0f172a;
  background: rgba(15, 118, 110, 0.14);
  box-shadow: var(--focus-ring);
  outline: none;
}

.btn-link {
  border: none;
  background: transparent;
  color: var(--accent);
  padding: 0;
  font-weight: 600;
  border-radius: 0;
}

.btn-link:hover,
.btn-link:focus-visible {
  color: #0e7490;
  outline: none;
  text-decoration: underline;
}

.section-head {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.section-head p {
  color: var(--muted);
}

.search-grid {
  display: grid;
  gap: 0.72rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 1.05rem;
  align-items: end;
}

#view-public #marketplace-search {
  border-color: rgba(15, 118, 110, 0.34);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.12);
}

#view-public .search-grid {
  padding: 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(15, 118, 110, 0.04);
  margin-bottom: 0.85rem;
}

#view-public .search-grid label {
  padding: 0.62rem;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.78);
}

#view-public .search-grid .btn {
  min-height: 50px;
}

#view-public .search-grid.is-disabled {
  opacity: 0.74;
}

#view-public .search-grid.is-disabled label {
  background: rgba(226, 232, 240, 0.7);
}

.platform-preview-notice {
  margin-bottom: 0.8rem;
  border-left: 4px solid rgba(14, 116, 144, 0.45);
  background: rgba(14, 116, 144, 0.08);
}

.results-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 0.7rem;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.results-head h2,
.results-head h3 {
  font-size: 1.22rem;
}

.results-head .muted {
  margin-top: 0;
}

label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: #334155;
  font-weight: 500;
}

input,
select,
textarea {
  width: 100%;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--text);
  padding: 0.66rem 0.7rem;
  font: inherit;
}

textarea {
  min-height: 84px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #94a3b8;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(15, 118, 110, 0.55);
  box-shadow: var(--focus-ring);
}

.market-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.category-tile {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: linear-gradient(145deg, rgba(15, 118, 110, 0.1), rgba(14, 165, 164, 0.02));
  color: var(--text);
  min-height: 74px;
  padding: 0.86rem 0.95rem;
  text-align: left;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.category-tile:hover,
.category-tile:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(15, 118, 110, 0.36);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
  outline: none;
}

.instructor-card {
  display: grid;
  gap: 0.65rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.95rem;
  background: var(--surface-strong);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

#view-public .instructor-card-preview {
  border-style: dashed;
  border-color: rgba(15, 23, 42, 0.18);
  background:
    linear-gradient(165deg, rgba(100, 116, 139, 0.1), rgba(100, 116, 139, 0.02) 48%),
    var(--surface-strong);
}

#view-public .instructor-card-instructor {
  background:
    linear-gradient(165deg, rgba(15, 118, 110, 0.08), rgba(15, 118, 110, 0.01) 48%),
    var(--surface-strong);
}

#view-public .instructor-card-course {
  background:
    linear-gradient(165deg, rgba(14, 116, 144, 0.08), rgba(14, 116, 144, 0.01) 48%),
    var(--surface-strong);
}

#view-public .instructor-card:hover {
  border-color: rgba(15, 118, 110, 0.42);
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
}

.card-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.67rem;
  color: var(--accent);
  font-weight: 700;
}

#view-public .instructor-card h3 {
  font-size: 1.2rem;
}

#view-public .instructor-card p {
  color: #475569;
  font-size: 0.93rem;
  line-height: 1.52;
}

.instructor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border-radius: var(--radius-pill);
  padding: 0.2rem 0.55rem;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
  border: 1px solid var(--border);
  background: rgba(15, 118, 110, 0.06);
  color: var(--muted);
}

.badge-verified {
  color: var(--success);
  border-color: rgba(111, 193, 138, 0.35);
  background: rgba(111, 193, 138, 0.12);
}

.badge-muted {
  color: var(--muted);
  border-color: rgba(15, 23, 42, 0.14);
}

.badge-progress {
  color: var(--warning);
  border-color: rgba(226, 183, 92, 0.35);
  background: rgba(226, 183, 92, 0.12);
}

.badge-warning {
  color: var(--danger);
  border-color: rgba(255, 127, 127, 0.35);
  background: rgba(255, 127, 127, 0.12);
}

.badge-featured {
  color: var(--primary);
  border-color: rgba(15, 118, 110, 0.42);
  background: var(--primary-soft);
}

.meta-row {
  display: flex;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.86rem;
  flex-wrap: wrap;
}

#view-public .instructor-card .meta-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 999px;
  padding: 0.18rem 0.5rem;
  background: rgba(248, 250, 252, 0.85);
}

.profile-card {
  display: grid;
  gap: 1rem;
}

#view-public .profile-card {
  border-color: rgba(15, 118, 110, 0.34);
}

.instructor-page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.95fr);
  gap: 0.9rem;
  align-items: start;
}

.instructor-identity {
  border: 1px solid rgba(15, 118, 110, 0.26);
  border-radius: var(--radius-sm);
  padding: 0.95rem;
  background:
    linear-gradient(150deg, rgba(15, 118, 110, 0.1), rgba(15, 118, 110, 0.02) 55%),
    var(--surface-strong);
  display: grid;
  gap: 0.55rem;
}

.instructor-specialties {
  margin-top: 0.15rem;
}

.instructor-trust-inline {
  display: grid;
  gap: 0.35rem;
}

.instructor-decision-box {
  border: 1px solid rgba(14, 116, 144, 0.28);
  border-radius: var(--radius-sm);
  padding: 0.92rem;
  background:
    linear-gradient(150deg, rgba(14, 116, 144, 0.11), rgba(14, 116, 144, 0.02) 58%),
    var(--surface-strong);
  display: grid;
  gap: 0.62rem;
}

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

.instructor-metric {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
}

.instructor-metric strong {
  font-size: 1.2rem;
  color: var(--primary);
}

.instructor-metric span {
  color: #334155;
  font-size: 0.9rem;
}

.instructor-section-head {
  margin-bottom: 0.8rem;
}

.instructor-course-item {
  border-left: 4px solid rgba(15, 118, 110, 0.44);
  background:
    linear-gradient(150deg, rgba(15, 118, 110, 0.07), rgba(15, 118, 110, 0.01) 58%),
    var(--surface-strong);
}

.instructor-course-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
}

.instructor-term-item {
  border-color: rgba(15, 23, 42, 0.14);
  background: rgba(248, 250, 252, 0.92);
}

.instructor-review-item {
  border-left: 3px solid rgba(14, 116, 144, 0.38);
}

.profile-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.8rem;
}

.profile-main {
  display: grid;
  gap: 0.5rem;
}

.profile-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: flex-start;
}

#view-public .profile-actions .btn {
  min-width: 172px;
}

.courses-list,
.terms-list,
.review-list,
.simple-list {
  display: grid;
  gap: 0.6rem;
}

.course-item,
.term-item,
.review-item,
.simple-item,
.panel-box {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-strong);
  padding: 0.82rem;
}

.course-item h4,
.simple-item h4 {
  margin: 0 0 0.3rem;
  font-size: 1rem;
}

.platform-selection {
  border-color: rgba(15, 23, 42, 0.14);
}

.instructors-directory {
  border-color: rgba(15, 118, 110, 0.28);
  background:
    linear-gradient(150deg, rgba(15, 118, 110, 0.08), rgba(15, 118, 110, 0.015) 55%),
    var(--surface);
}

#view-public .flow-overview {
  border-color: rgba(14, 116, 144, 0.28);
  background:
    linear-gradient(155deg, rgba(14, 116, 144, 0.08), rgba(14, 116, 144, 0.02) 52%),
    var(--surface);
}

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

.flow-step {
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.92);
  padding: 0.9rem;
  display: grid;
  gap: 0.45rem;
}

.flow-step h3 {
  font-size: 1.16rem;
}

.flow-step p {
  font-size: 0.9rem;
  color: #475569;
}

.step-label {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.66rem;
  color: var(--accent);
  font-weight: 700;
}

#view-public .instructor-pillar {
  border-color: rgba(15, 118, 110, 0.34);
  background:
    linear-gradient(145deg, rgba(15, 118, 110, 0.08), rgba(15, 118, 110, 0.02) 52%),
    var(--surface-strong);
}

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

.value-grid .simple-item {
  min-height: 100%;
}

.value-grid ul {
  margin: 0.45rem 0 0;
  padding-left: 1rem;
  color: var(--muted);
  display: grid;
  gap: 0.25rem;
}

.ai-areas {
  border-color: rgba(14, 116, 144, 0.3);
}

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

.final-cta {
  border-color: rgba(15, 23, 42, 0.14);
}

#marketplace-search,
#platform-selection,
#how-it-works,
#public-instructors-view,
#ai-areas,
#final-cta,
#verify-view {
  scroll-margin-top: 6.4rem;
}

.section-focus {
  animation: section-focus-pulse 0.95s ease;
}

@keyframes section-focus-pulse {
  0% { box-shadow: 0 0 0 0 rgba(15, 118, 110, 0.35); }
  100% { box-shadow: 0 0 0 14px rgba(15, 118, 110, 0); }
}

.verify-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.7rem;
  align-items: end;
}

.verify-result {
  margin-top: 0.7rem;
}

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

.auth-form {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.8rem;
}

.muted {
  color: var(--muted);
  margin-top: 0.65rem;
}

.app-top {
  display: grid;
  gap: 0.8rem;
}

.app-top h2 {
  font-size: clamp(1.55rem, 2.2vw, 1.95rem);
}

.app-top label {
  font-size: 0.82rem;
  color: #475569;
}

.app-top select {
  min-width: 220px;
}

.app-header-row {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
  align-items: center;
}

.role-chips {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.role-chip {
  border-radius: 999px;
  font-size: 0.75rem;
  padding: 0.23rem 0.55rem;
  border: 1px solid var(--border);
  color: var(--muted);
}

.role-chip.active {
  color: var(--primary);
  border-color: rgba(15, 118, 110, 0.35);
  background: rgba(15, 118, 110, 0.14);
}

.app-content {
  display: grid;
  gap: 1rem;
}

.app-content > section,
.app-content > article {
  min-width: 0;
}

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

#view-app .app-top {
  border-color: rgba(15, 118, 110, 0.32);
  background:
    linear-gradient(132deg, rgba(15, 118, 110, 0.14), rgba(15, 118, 110, 0.03) 52%),
    var(--surface);
}

#view-app.is-ai-hub-module .app-top {
  border-color: rgba(14, 116, 144, 0.34);
  background:
    linear-gradient(132deg, rgba(14, 116, 144, 0.16), rgba(14, 116, 144, 0.03) 54%),
    var(--surface);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.11);
}

#view-app.is-ai-hub-module .app-top .app-header-row {
  align-items: flex-start;
}

#view-app.is-ai-hub-module .app-top .panel-kicker {
  color: #0e7490;
}

#view-app.is-ai-hub-module .app-top .inline-actions {
  justify-content: flex-end;
}

#view-app.is-ai-hub-module .app-content {
  align-content: start;
}

#view-app.is-ai-hub-module .ai-hub-top {
  border-color: rgba(14, 116, 144, 0.3);
  background:
    linear-gradient(152deg, rgba(14, 116, 144, 0.11), rgba(14, 116, 144, 0.02) 52%),
    var(--surface-strong);
}

#view-app .panel-box {
  display: grid;
  gap: 0.75rem;
  padding: 0.92rem;
  background:
    linear-gradient(180deg, rgba(15, 118, 110, 0.03), rgba(15, 118, 110, 0.005)),
    var(--surface-strong);
}

#view-app .panel-head {
  display: grid;
  gap: 0.28rem;
}

#view-app .panel-head h3 {
  font-size: clamp(1.15rem, 1.75vw, 1.4rem);
}

#view-app .panel-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.67rem;
  color: var(--accent);
  font-weight: 700;
}

#view-app .panel-lead {
  color: #475569;
  font-size: 0.91rem;
  line-height: 1.48;
}

#view-app .panel-priority {
  border-color: rgba(15, 118, 110, 0.34);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.1);
}

#view-app .panel-actions {
  border-color: rgba(15, 118, 110, 0.28);
  background:
    linear-gradient(145deg, rgba(15, 118, 110, 0.12), rgba(15, 118, 110, 0.02) 45%),
    var(--surface-strong);
}

#view-app .panel-secondary {
  opacity: 0.93;
}

#view-app #student-dashboard-view,
#view-app #instructor-dashboard-view {
  border-left: 4px solid rgba(15, 118, 110, 0.45);
}

#view-app #student-profile-view,
#view-app #instructor-profile-view {
  border-left: 4px solid rgba(14, 116, 144, 0.45);
  background:
    linear-gradient(145deg, rgba(14, 116, 144, 0.12), rgba(14, 116, 144, 0.02) 45%),
    var(--surface-strong);
}

#view-app #student-settings-view,
#view-app #instructor-settings-view {
  border-left: 4px solid rgba(79, 70, 229, 0.42);
  background:
    linear-gradient(145deg, rgba(79, 70, 229, 0.11), rgba(79, 70, 229, 0.02) 45%),
    var(--surface-strong);
}

#view-app .panel-actions .inline-actions {
  gap: 0.45rem;
}

#view-app .panel-actions .inline-actions .btn {
  min-width: 170px;
}

#view-app .simple-item,
#view-app .term-item,
#view-app .review-item,
#view-app .course-item {
  background: rgba(15, 118, 110, 0.03);
}

#view-app .metric-grid {
  gap: 0.72rem;
}

#view-app .metric {
  border-color: rgba(15, 23, 42, 0.1);
  background:
    linear-gradient(160deg, rgba(15, 118, 110, 0.08), rgba(15, 118, 110, 0) 50%),
    var(--surface-strong);
}

#view-app .metric strong {
  font-size: 1.35rem;
}

#view-app .metric span {
  color: var(--muted);
}

#view-app .table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(248, 250, 252, 0.9);
}

#view-app table {
  min-width: 680px;
}

#view-app thead {
  color: #64748b;
}

#view-app th {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}

#view-app tbody tr:hover {
  background: rgba(15, 118, 110, 0.07);
}

#view-app .status-pill {
  font-weight: 600;
}

#view-app .notice {
  background: rgba(15, 118, 110, 0.07);
}

#view-app .ai-card {
  gap: 0.62rem;
  min-height: 100%;
}

#view-app .ai-card-live {
  border-color: rgba(15, 118, 110, 0.34);
}

#view-app .ai-card-planned {
  border-style: dashed;
  border-color: rgba(15, 23, 42, 0.16);
}

#view-app .ai-card .btn {
  width: fit-content;
}

#view-app .ai-meta {
  color: var(--muted);
}

.ai-hub-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.ai-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  background: var(--surface-strong);
  display: grid;
  gap: 0.55rem;
}

.ai-card h4 {
  margin: 0;
  font-size: 1rem;
}

.ai-meta {
  margin: 0;
  padding-left: 1rem;
  color: var(--muted);
  display: grid;
  gap: 0.25rem;
  font-size: 0.85rem;
}

.ai-meta code {
  margin-right: 0.25rem;
}

.featured-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ai-workbench .notice {
  margin-top: 0.7rem;
}

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

.metric {
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 0.65rem;
  background: var(--surface-strong);
}

.metric strong {
  display: block;
  font-size: 1.2rem;
  color: var(--accent);
}

.metric span {
  color: var(--muted);
  font-size: 0.8rem;
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

thead {
  color: #64748b;
  font-size: 0.8rem;
}

th,
td {
  border-bottom: 1px solid var(--border);
  text-align: left;
  padding: 0.5rem;
  vertical-align: top;
}

.status-pill {
  border-radius: 999px;
  padding: 0.15rem 0.45rem;
  font-size: 0.74rem;
  border: 1px solid var(--border);
  display: inline-block;
}

.status-pending { color: var(--warning); border-color: rgba(226, 183, 92, 0.35); }
.status-accepted { color: var(--accent); border-color: rgba(15, 118, 110, 0.4); }
.status-rejected { color: var(--danger); border-color: rgba(255, 127, 127, 0.35); }
.status-completed { color: var(--success); border-color: rgba(111, 193, 138, 0.35); }

.inline-actions {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.panel-disclosure {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-strong);
  overflow: hidden;
}

.panel-disclosure > summary {
  cursor: pointer;
  list-style: none;
  padding: 0.8rem 0.9rem;
  font-weight: 600;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.panel-disclosure > summary::-webkit-details-marker {
  display: none;
}

.panel-disclosure > summary::after {
  content: '+';
  color: var(--accent);
  font-size: 1rem;
  line-height: 1;
}

.panel-disclosure[open] > summary::after {
  content: '−';
}

.panel-disclosure[open] > summary {
  border-bottom: 1px solid var(--border);
}

.panel-disclosure-content {
  padding: 0.9rem;
  display: grid;
  gap: 0.8rem;
}

.ai-card-more {
  border: 1px dashed rgba(15, 23, 42, 0.18);
  border-radius: var(--radius-xs);
  padding: 0.4rem 0.5rem;
  background: rgba(15, 118, 110, 0.04);
}

.ai-card-more > summary {
  cursor: pointer;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
}

.ai-card-more > ul {
  margin: 0.5rem 0 0;
  padding-left: 0.9rem;
  display: grid;
  gap: 0.25rem;
  font-size: 0.82rem;
  color: #475569;
}

.notice {
  border: 1px dashed rgba(15, 118, 110, 0.34);
  border-radius: var(--radius-sm);
  padding: 0.7rem;
  color: var(--muted);
  background: rgba(15, 118, 110, 0.08);
}

.ai-output-title {
  margin: 0 0 0.4rem;
}

.ai-output {
  color: var(--text);
  line-height: 1.58;
}

.ai-output > *:first-child {
  margin-top: 0;
}

.ai-output > *:last-child {
  margin-bottom: 0;
}

.ai-output h1,
.ai-output h2,
.ai-output h3,
.ai-output h4 {
  margin: 0.75rem 0 0.35rem;
  line-height: 1.25;
  font-family: 'Cormorant Garamond', serif;
}

.ai-output p {
  margin: 0.45rem 0;
}

.ai-output ul,
.ai-output ol {
  margin: 0.45rem 0 0.45rem 1.1rem;
  padding-left: 0.55rem;
}

.ai-output li {
  margin: 0.2rem 0;
}

.ai-output strong {
  font-weight: 700;
}

.ai-output hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 0.7rem 0;
}

.ai-output pre,
.ai-output code {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.ai-output pre {
  padding: 0.6rem;
  overflow-x: auto;
}

.ai-output code {
  padding: 0.06rem 0.35rem;
}

.ai-output a {
  color: var(--accent);
  text-decoration: underline;
}

.site-footer {
  margin-top: 1.2rem;
  padding: 0.8rem 0.1rem 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.84rem;
}

.toast {
  position: fixed;
  right: 1rem;
  top: 1rem;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 10px;
  padding: 0.65rem 0.8rem;
  color: var(--text);
  max-width: 320px;
  z-index: 45;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.15);
}

code {
  background: rgba(15, 118, 110, 0.16);
  padding: 0.08rem 0.35rem;
  border-radius: 6px;
}

[hidden] {
  display: none !important;
}

.chat-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 0.85rem;
  min-height: 0;
  align-items: stretch;
}

body.chat-focus-mode {
  overflow: hidden;
}

body.chat-focus-mode .app-shell {
  width: min(1460px, 100% - 1rem);
  padding-top: 0.8rem;
}

body.chat-focus-mode .site-header {
  top: 0.2rem;
  margin-bottom: 0.6rem;
  padding: 0.6rem 0.82rem;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
}

body.chat-focus-mode .header-menu-shell-desktop {
  display: none;
}

#view-app.is-chat-module .app-content {
  min-height: 0;
  height: calc(100dvh - 124px);
  max-height: none;
  overflow: hidden;
}

#view-app.is-chat-module .app-top {
  display: none;
}

body.chat-focus-mode .site-footer {
  display: none;
}

#view-app.is-chat-module .chat-layout {
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

#view-app.is-chat-module .chat-main,
#view-app.is-chat-module .chat-sidebar {
  height: 100%;
  min-height: 0;
}

#view-app.is-chat-module .chat-thread {
  min-height: 0;
}

.chat-sidebar {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 0;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.chat-sidebar-head {
  padding: 0.85rem;
  border-bottom: 1px solid var(--border);
  background: rgba(248, 250, 252, 0.84);
  display: grid;
  gap: 0.7rem;
}

.chat-sidebar-actions {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 0.42rem;
}

.chat-new-btn {
  width: 100%;
}

.chat-return-btn {
  width: 100%;
  min-height: 44px;
  font-size: 0.74rem;
  padding-inline: 0.45rem;
}

.chat-assistant-toggle {
  width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 12px;
  background: #ffffff;
  color: #0f172a;
  text-align: left;
  padding: 0.52rem 0.62rem;
  display: grid;
  gap: 0.12rem;
  cursor: pointer;
  font: inherit;
  position: relative;
}

.chat-assistant-toggle:hover,
.chat-assistant-toggle:focus-visible {
  border-color: rgba(15, 118, 110, 0.36);
  background: rgba(15, 118, 110, 0.08);
  outline: none;
}

.chat-assistant-toggle.is-open {
  border-color: rgba(15, 118, 110, 0.42);
  background: rgba(15, 118, 110, 0.12);
}

.chat-assistant-toggle::after {
  content: '▾';
  position: absolute;
  right: 0.56rem;
  top: 0.5rem;
  font-size: 0.78rem;
  color: #475569;
}

.chat-assistant-toggle.is-open::after {
  content: '▴';
}

.chat-assistant-toggle-label {
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #475569;
  font-weight: 700;
}

.chat-assistant-toggle strong {
  font-size: 0.9rem;
  line-height: 1.2;
  max-width: calc(100% - 1.2rem);
}

.chat-assistant-toggle small {
  font-size: 0.72rem;
  color: var(--muted);
}

.chat-assistant-panel {
  display: grid;
}

.chat-side-label {
  margin: 0;
  font-size: 0.69rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #334155;
  font-weight: 700;
}

.chat-side-sub {
  margin: 0;
  color: #0f172a;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.chat-bot-groups {
  display: grid;
  gap: 0.55rem;
}

.chat-bot-group {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  padding: 0.45rem;
  background: rgba(248, 250, 252, 0.7);
  display: grid;
  gap: 0.4rem;
}

.chat-bot-list {
  display: grid;
  gap: 0.45rem;
}

.chat-bot-pill {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #f8fafc;
  color: var(--text);
  min-height: 48px;
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  padding: 0.5rem 0.55rem;
  font: inherit;
  cursor: pointer;
  width: 100%;
  text-align: left;
}

.chat-bot-pill:hover,
.chat-bot-pill:focus-visible {
  border-color: rgba(15, 118, 110, 0.32);
  background: rgba(15, 118, 110, 0.1);
  outline: none;
}

.chat-bot-pill.is-active {
  border-color: rgba(15, 118, 110, 0.35);
  background: rgba(15, 118, 110, 0.16);
}

.chat-bot-pill-icon {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #ffffff;
  background: linear-gradient(145deg, #0f766e, #0e7490);
  flex-shrink: 0;
  margin-top: 0.06rem;
}

.chat-bot-pill-copy {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
  flex: 1;
}

.chat-bot-pill-copy strong {
  font-size: 0.88rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-bot-pill-copy small {
  font-size: 0.72rem;
  line-height: 1.35;
  color: var(--muted);
}

.chat-bot-pill-state {
  align-self: center;
  border-radius: 999px;
  border: 1px solid rgba(15, 118, 110, 0.26);
  background: rgba(15, 118, 110, 0.12);
  color: #0f766e;
  font-size: 0.64rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 0.12rem 0.42rem;
  flex-shrink: 0;
}

.chat-bot-pill-state.is-soon {
  border-color: rgba(180, 83, 9, 0.35);
  background: rgba(180, 83, 9, 0.11);
  color: #b45309;
}

.chat-bot-pill[disabled] {
  opacity: 0.9;
  cursor: not-allowed;
}

.chat-bot-pill[disabled]:hover,
.chat-bot-pill[disabled]:focus-visible {
  border-color: var(--border);
  background: #f8fafc;
}

.chat-conv-list {
  overflow: auto;
  padding: 0.65rem;
  background: rgba(248, 250, 252, 0.6);
  display: grid;
  align-content: start;
  grid-auto-rows: min-content;
  gap: 0.4rem;
}

.chat-conv-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.3rem;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #f8fafc;
  min-height: 64px;
}

.chat-conv-item.is-active {
  border-color: rgba(15, 118, 110, 0.35);
  background: rgba(15, 118, 110, 0.08);
}

.chat-conv-link {
  border: 0;
  background: transparent;
  text-align: left;
  padding: 0.46rem 0.55rem;
  cursor: pointer;
  min-width: 0;
  display: grid;
  gap: 0.2rem;
  font: inherit;
}

.chat-conv-link strong {
  font-size: 0.84rem;
  line-height: 1.25;
}

.chat-conv-link span {
  font-size: 0.74rem;
  line-height: 1.35;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.chat-conv-delete {
  border: 0;
  background: transparent;
  color: #dc2626;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  cursor: pointer;
}

.chat-sidebar-foot {
  border-top: 1px solid var(--border);
  padding: 0.7rem 0.85rem;
}

.chat-credits {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.chat-recent-list {
  margin-top: 0.45rem;
  display: grid;
  align-content: start;
  grid-auto-rows: min-content;
  gap: 0.35rem;
  max-height: 180px;
  overflow: auto;
}

.chat-recent-link {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #f8fafc;
  text-align: left;
  padding: 0.45rem 0.5rem;
  display: grid;
  gap: 0.15rem;
  font: inherit;
  cursor: pointer;
  min-height: 64px;
}

.chat-recent-link strong {
  font-size: 0.84rem;
  line-height: 1.25;
}

.chat-recent-link span {
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.35;
}

.chat-recent-link em {
  margin-top: 0.1rem;
  color: #0f766e;
  font-size: 0.7rem;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.chat-recent-link:hover,
.chat-recent-link:focus-visible {
  border-color: rgba(15, 118, 110, 0.3);
  background: rgba(15, 118, 110, 0.08);
  outline: none;
}

.chat-recent-link.is-active {
  border-color: rgba(15, 118, 110, 0.36);
  background: rgba(15, 118, 110, 0.12);
}

.chat-main {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 0;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.chat-main-head {
  padding: 0.72rem 0.88rem;
  border-bottom: 1px solid rgba(15, 118, 110, 0.24);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background:
    linear-gradient(132deg, rgba(15, 118, 110, 0.16), rgba(15, 118, 110, 0.05) 52%),
    rgba(248, 250, 252, 0.94);
  box-shadow: inset 0 -1px 0 rgba(15, 118, 110, 0.1);
}

.chat-main-head.is-compact {
  padding: 0.46rem 0.72rem;
  gap: 0.52rem;
}

.chat-main-head.is-compact .chat-main-kicker {
  font-size: 0.58rem;
}

.chat-main-head.is-compact h3 {
  font-size: 0.96rem;
  line-height: 1.2;
}

.chat-main-head.is-compact .chat-main-description {
  display: none;
}

.chat-main-head.is-compact .chat-context-line {
  margin-top: 0.18rem;
  font-size: 0.68rem;
  gap: 0.35rem;
}

.chat-main-kicker {
  margin: 0;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #475569;
  font-weight: 700;
}

.chat-main-meta {
  min-width: 0;
  flex: 1;
}

.chat-exit-mode-btn {
  margin-left: auto;
  flex-shrink: 0;
}

.chat-history-btn {
  margin-left: auto;
  white-space: nowrap;
}

.chat-main-head h3 {
  margin: 0;
  font-size: 1.1rem;
}

.chat-main-head p:not(.chat-main-kicker) {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.chat-main-description {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.chat-context-line {
  margin-top: 0.32rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.76rem;
}

.chat-context-line strong {
  color: #0f172a;
}

.chat-menu-btn {
  display: none;
  border: 1px solid var(--border);
  background: #f8fafc;
  color: var(--text);
  border-radius: 10px;
  width: 40px;
  height: 40px;
  font-size: 1.15rem;
  cursor: pointer;
}

.chat-thread {
  padding: 0.9rem 1rem 1.1rem;
  overflow: auto;
  display: block;
  overscroll-behavior: contain;
  scrollbar-gutter: stable both-edges;
  background:
    linear-gradient(180deg, rgba(15, 118, 110, 0.03), rgba(15, 118, 110, 0)),
    var(--surface);
}

.chat-thread-stream {
  width: min(100%, 980px);
  margin: 0 auto;
  display: grid;
  gap: 0.88rem;
  align-content: start;
}

.chat-msg {
  display: flex;
  width: 100%;
}

.chat-msg-user {
  justify-content: flex-end;
}

.chat-msg-assistant {
  justify-content: flex-start;
}

.chat-msg-bubble {
  max-width: min(760px, 94%);
  border-radius: 14px;
  border: 1px solid var(--border);
  padding: 0.74rem 0.82rem;
  line-height: 1.56;
}

.chat-msg-user .chat-msg-bubble {
  margin-left: auto;
}

.chat-msg-user .chat-msg-bubble {
  background: rgba(15, 118, 110, 0.12);
  border-color: rgba(15, 118, 110, 0.22);
}

.chat-msg-assistant .chat-msg-bubble {
  background: #f8fafc;
  margin-right: auto;
}

.chat-input-wrap {
  border-top: 1px solid var(--border);
  padding: 0.65rem 0.75rem calc(0.65rem + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.55rem;
  align-items: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), #ffffff);
  box-shadow: 0 -6px 18px rgba(15, 23, 42, 0.08);
  position: sticky;
  bottom: var(--chat-keyboard-offset, 0px);
  z-index: 3;
  margin-top: auto;
}

#chat-input {
  min-height: 44px;
  border-radius: 12px;
}

.chat-empty,
.chat-empty-thread {
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 0.7rem;
  color: var(--muted);
  background: #f8fafc;
}

.chat-overlay {
  display: none;
}

@media (max-width: 1024px) {
  .hero,
  .flow-steps,
  .value-grid,
  .ai-areas-grid,
  .info-grid,
  .auth-grid,
  .panel-grid {
    grid-template-columns: 1fr;
  }

  .instructor-page-hero,
  .instructor-trust-grid {
    grid-template-columns: 1fr;
  }

  .ai-hub-grid {
    grid-template-columns: 1fr;
  }

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

  .chat-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  body.chat-focus-mode .app-shell {
    width: min(100% - 0.6rem, 1160px);
    padding-top: 0.45rem;
  }

  body.chat-focus-mode .site-header {
    top: 0.12rem;
    border-radius: 12px;
    padding: 0.5rem 0.62rem;
    margin-bottom: 0.55rem;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
  }

  body.chat-focus-mode .brand {
    gap: 0.42rem;
  }

  body.chat-focus-mode .brand-badge {
    width: 28px;
    height: 28px;
    border-radius: 9px;
    font-size: 0.62rem;
  }

  body.chat-focus-mode .brand-name {
    font-size: 1.22rem;
  }

  body.chat-focus-mode .mobile-menu-toggle {
    width: 40px;
    height: 40px;
    padding: 0.48rem;
  }

  .site-header {
    position: sticky;
    top: 0.35rem;
    border-radius: var(--radius-md);
    padding: 0.72rem 0.8rem;
    gap: 0.65rem;
    align-items: center;
    flex-wrap: nowrap;
    justify-content: space-between;
  }

  .app-header-row,
  .site-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .mobile-menu-toggle {
    display: inline-flex;
  }

  .header-menu-shell-desktop {
    display: none;
  }

  .mobile-menu-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(86vw, 360px);
    margin-left: 0;
    padding: 1rem 0.85rem 1.15rem;
    border-left: 1px solid rgba(15, 118, 110, 0.2);
    border-radius: 18px 0 0 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
    box-shadow: -18px 0 36px rgba(15, 23, 42, 0.18);
    display: grid;
    grid-template-rows: 1fr;
    transform: translateX(105%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.26s ease, opacity 0.2s ease;
    z-index: 80;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  body.mobile-nav-open .mobile-menu-drawer {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-menu-block {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 0.7rem;
    min-height: 100%;
  }

  .mobile-drawer-head {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.2rem 0.25rem 0.68rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  }

  .mobile-drawer-badge {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    letter-spacing: 0.05em;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(145deg, #0f766e, #0e7490);
    box-shadow: 0 8px 16px rgba(15, 118, 110, 0.22);
  }

  .mobile-drawer-brand {
    display: grid;
    gap: 0.05rem;
    color: #0f172a;
  }

  .mobile-drawer-brand strong {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    line-height: 1;
    letter-spacing: 0.02em;
  }

  .mobile-drawer-brand small {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.13em;
    color: #0f766e;
    font-weight: 700;
  }

  .site-nav {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.48rem;
    width: 100%;
    align-content: start;
    padding-top: 0.2rem;
  }

  .site-nav-mobile {
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 0.15rem;
  }

  .nav-link {
    width: 100%;
    text-align: left;
    border-radius: 12px;
    padding: 0.76rem 0.86rem;
    min-height: 50px;
    font-size: 0.91rem;
    font-weight: 600;
    border-color: rgba(15, 23, 42, 0.1);
    background: rgba(255, 255, 255, 0.95);
  }

  .nav-link.is-active {
    background: rgba(15, 118, 110, 0.14);
    border-color: rgba(15, 118, 110, 0.32);
    box-shadow: inset 2px 0 0 rgba(15, 118, 110, 0.72);
  }

  .nav-link-cta-primary {
    box-shadow: 0 8px 18px rgba(15, 118, 110, 0.28);
  }

  .site-nav-mobile .nav-link[data-nav-key="logout"] {
    margin-top: 0.45rem;
    border-color: rgba(15, 118, 110, 0.28);
    background: rgba(15, 118, 110, 0.08);
  }

  .search-grid,
  .verify-form,
  .profile-top {
    grid-template-columns: 1fr;
  }

  .hero-proof-list {
    display: grid;
    grid-template-columns: 1fr;
  }

  .skills-switch-list {
    grid-template-columns: 1fr;
  }

  .profile-actions .btn,
  .featured-actions .btn {
    width: 100%;
  }

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

  #marketplace-search,
  #platform-selection,
  #how-it-works,
  #public-instructors-view,
  #final-cta,
  #ai-areas,
  #verify-view {
    scroll-margin-top: 4.6rem;
  }

  table {
    min-width: 560px;
  }

  .chat-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .chat-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: min(88vw, 360px);
    z-index: 60;
    border-radius: 0 14px 14px 0;
    transform: translateX(-102%);
    transition: transform 0.22s ease;
  }

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

  .chat-main {
    min-height: 76vh;
  }

  #view-app.is-chat-module .app-content {
    height: calc(100dvh - 110px);
  }

  .chat-overlay {
    display: block;
    position: fixed;
    inset: 0;
    border: 0;
    background: rgba(2, 6, 23, 0.45);
    z-index: 50;
  }

  .chat-input-wrap {
    grid-template-columns: 1fr;
    position: sticky;
    bottom: var(--chat-keyboard-offset, 0px);
    z-index: 2;
    padding: 0.55rem 0.65rem calc(0.55rem + env(safe-area-inset-bottom));
  }

  .chat-sidebar-head {
    padding: 0.78rem;
    gap: 0.6rem;
  }

  .chat-sidebar-actions {
    grid-template-columns: 3fr 2fr;
    gap: 0.36rem;
  }

  .chat-return-btn {
    font-size: 0.7rem;
    min-height: 42px;
    padding-inline: 0.4rem;
  }

  .chat-assistant-toggle {
    padding: 0.5rem 0.58rem;
  }

  .chat-assistant-toggle strong {
    font-size: 0.84rem;
  }

  .chat-main-head {
    padding: 0.62rem 0.72rem;
    gap: 0.62rem;
    align-items: flex-start;
  }

  .chat-main-head.is-compact {
    padding: 0.4rem 0.6rem;
    gap: 0.46rem;
  }

  .chat-main-head.is-compact .chat-main-kicker {
    font-size: 0.56rem;
  }

  .chat-main-head.is-compact h3 {
    font-size: 0.88rem;
  }

  .chat-main-head h3 {
    font-size: 1rem;
  }

  .chat-main-head p {
    font-size: 0.82rem;
  }

  .chat-main-kicker {
    font-size: 0.62rem;
  }

  .chat-exit-mode-btn {
    min-height: 38px;
    padding: 0.45rem 0.72rem;
  }

  .chat-thread-stream {
    gap: 0.72rem;
  }

  .chat-msg-bubble {
    max-width: 100%;
  }

  .mobile-menu-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    border: 0;
    background: rgba(2, 6, 23, 0.42);
    backdrop-filter: blur(2px);
    z-index: 70;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }

  body.mobile-nav-open .mobile-menu-backdrop {
    opacity: 1;
    pointer-events: auto;
  }
}

@media (max-width: 480px) {
  .app-shell {
    width: min(100% - 1rem, 1160px);
    padding-top: 0.7rem;
  }

  .site-header {
    top: 0.15rem;
    padding: 0.7rem;
    gap: 0.65rem;
  }

  .brand-name {
    font-size: 1.42rem;
  }

  .brand-badge {
    width: 30px;
    height: 30px;
    font-size: 0.68rem;
  }

  .brand-sub {
    letter-spacing: 0.1em;
  }

  .mobile-menu-drawer {
    width: min(90vw, 340px);
    padding: 0.95rem 0.75rem 1rem;
  }

  .hero-actions,
  .inline-actions {
    flex-direction: column;
  }

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

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

  .card {
    padding: 0.9rem;
  }

  .ai-meta code {
    display: inline-block;
    margin-top: 0.25rem;
  }

  table {
    min-width: 520px;
  }

  .chat-thread {
    padding: 0.7rem;
  }

  .chat-sidebar-actions {
    grid-template-columns: 1fr 1fr;
  }

  .chat-return-btn {
    font-size: 0.68rem;
  }

  #view-app.is-chat-module .app-content {
    height: calc(100dvh - 98px);
  }

  .chat-msg-bubble {
    max-width: 100%;
  }

  .toast {
    top: 0.55rem;
    left: 0.55rem;
    right: 0.55rem;
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}


