/* Open Academy — design preview (standalone, not wired to backend) */
:root {
  --ink: #0a1628;
  --ink-soft: #0f2a3d;
  --teal: #1a6b5c;
  --teal-bright: #2a9d8f;
  --mint: #b8e0d2;
  --mint-glow: #3db8a9;
  --sand: #e8efe9;
  --paper: #f4f7f5;
  --text: #13241f;
  --muted: #5a7268;
  --accent: #e07a3a;
  --accent-hover: #d4682f;
  --accent-soft: #f3e0d4;
  --line: rgba(10, 22, 40, 0.1);
  --shadow: 0 18px 50px rgba(10, 22, 40, 0.1);
  --shadow-sm: 0 12px 36px rgba(10, 22, 40, 0.08);
  --radius: 18px;
  --radius-sm: 12px;
  --active-bg: #d8f3e8;
  --danger: #b91c1c;
  --ok: #065f46;
  --hero-text: #f4faf7;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Atkinson Hyperlegible", system-ui, sans-serif;
  color: var(--text);
  background: var(--paper);
  min-height: 100vh;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

/* —— Header (compact pages) —— */
.oa-header {
  background: var(--ink);
  color: var(--hero-text);
  padding: 16px clamp(20px, 4vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.oa-header .oa-brand {
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}

.oa-header .oa-brand span { color: var(--mint); }

.oa-header .oa-brand small {
  display: block;
  font-size: 0.65rem;
  font-weight: 500;
  opacity: 0.55;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 2px;
}

.oa-nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  align-items: center;
}

.oa-nav a,
.oa-nav button.oa-nav-btn {
  font: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  opacity: 0.88;
}

.oa-nav a:hover,
.oa-nav button.oa-nav-btn:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.08);
}

.oa-nav a.is-active {
  background: rgba(255, 255, 255, 0.14);
  opacity: 1;
}

.oa-nav a.ghost {
  border: 1px solid rgba(255, 255, 255, 0.25);
  opacity: 1;
}

.oa-lang {
  display: inline-flex;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  overflow: hidden;
  margin-left: 4px;
}

.oa-lang button {
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 10px;
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  opacity: 0.7;
}

.oa-lang button.is-active {
  background: rgba(255, 255, 255, 0.15);
  opacity: 1;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 22px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s, box-shadow 0.15s;
}

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

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 28px rgba(224, 122, 58, 0.35);
}

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

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.btn-secondary:hover { background: rgba(255, 255, 255, 0.16); }

.btn-teal {
  background: var(--teal);
  color: #fff;
}

.btn-teal:hover { background: var(--teal-bright); }

.btn-sm { font-size: 0.85rem; padding: 10px 16px; }

.btn-muted {
  background: var(--sand);
  color: var(--muted);
  cursor: not-allowed;
}

.btn-ghost-light {
  background: transparent;
  color: var(--teal);
  border: 1px solid var(--line);
}

/* —— Hero (home) —— */
.oa-hero {
  position: relative;
  min-height: min(88vh, 780px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: var(--hero-text);
  background:
    radial-gradient(ellipse 80% 60% at 85% 20%, rgba(61, 184, 169, 0.32), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(224, 122, 58, 0.18), transparent 50%),
    linear-gradient(155deg, var(--ink) 0%, var(--ink-soft) 50%, #0c2230 100%);
}

.oa-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black 25%, transparent 88%);
  pointer-events: none;
}

.oa-hero .oa-header { background: transparent; position: relative; z-index: 2; }

.oa-hero-body {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px clamp(20px, 5vw, 56px) 64px;
  max-width: 920px;
}

.oa-hero-logo {
  font-weight: 700;
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.oa-hero-logo em {
  font-style: normal;
  color: var(--mint);
}

.oa-hero h1 {
  font-weight: 700;
  font-size: clamp(1.25rem, 2.6vw, 1.65rem);
  letter-spacing: -0.01em;
  line-height: 1.35;
  max-width: 32ch;
  margin-bottom: 14px;
}

.oa-hero-lead {
  font-size: 1.08rem;
  line-height: 1.65;
  color: rgba(244, 250, 247, 0.85);
  max-width: 44ch;
  margin-bottom: 28px;
}

.oa-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.oa-resume-hint {
  font-size: 0.85rem;
  color: rgba(244, 250, 247, 0.55);
  margin-top: 16px;
}

.oa-domain-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  margin-bottom: 20px;
  opacity: 0.9;
}

/* —— Sections —— */
.oa-section {
  padding: 64px clamp(20px, 5vw, 56px);
  max-width: 1120px;
  margin: 0 auto;
}

.oa-section-head { margin-bottom: 28px; }

.oa-section-head h2 {
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.oa-section-head p {
  color: var(--muted);
  max-width: 50ch;
}

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

.oa-directions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

@media (max-width: 900px) {
  .oa-directions { grid-template-columns: 1fr; }
}

.oa-direction {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s, border-color 0.15s;
  min-height: 100%;
}

.oa-direction:hover {
  transform: translateY(-3px);
  border-color: rgba(42, 157, 143, 0.4);
}

.oa-direction-top {
  padding: 28px 24px 20px;
  color: #fff;
  min-height: 120px;
}

.oa-direction-top.odoo {
  background: linear-gradient(135deg, var(--ink-soft), var(--teal));
}

.oa-direction-top.python {
  background: linear-gradient(135deg, #1e3a5f, #306998);
}

.oa-direction-top.frontend {
  background: linear-gradient(135deg, #4338ca, #7c3aed);
}

.oa-direction-top .oa-dir-icon {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  opacity: 0.95;
}

.oa-direction-top h3 {
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.oa-direction-body {
  padding: 20px 24px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.oa-direction-body p {
  font-size: 0.92rem;
  color: var(--muted);
  flex: 1;
}

.oa-paths-sub {
  margin-top: 40px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}

.oa-paths-sub .oa-section-head {
  margin-bottom: 20px;
}

@media (max-width: 720px) {
  .oa-tracks { grid-template-columns: 1fr; }
}

.oa-track {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s, transform 0.15s;
  min-height: 100%;
}

.oa-track:hover:not(.is-soon) {
  border-color: rgba(42, 157, 143, 0.35);
  transform: translateY(-2px);
}

.oa-track.is-soon { opacity: 0.92; }

.oa-track-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--teal);
}

.oa-track.is-soon .oa-track-kicker { color: var(--muted); }

.oa-track h3 {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.oa-track p {
  font-size: 0.92rem;
  color: var(--muted);
}

.oa-track-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.oa-track-side {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.oa-progress-label {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 6px;
}

.oa-progress-bar {
  height: 6px;
  background: var(--sand);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 14px;
}

.oa-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--teal-bright));
  border-radius: 999px;
}

.chip {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--sand);
  color: var(--muted);
}

.chip.open { background: var(--active-bg); color: var(--ok); }

.chip.odoo { background: #e8f4f1; color: var(--teal); }

.chip.lock { background: #eef2f0; color: var(--muted); }

/* How it works */
.oa-how {
  background: var(--sand);
  border-block: 1px solid var(--line);
}

.oa-how-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 64px clamp(20px, 5vw, 56px);
}

.oa-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 800px) {
  .oa-steps { grid-template-columns: 1fr; }
}

.oa-step-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.oa-step-num {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 10px;
}

.oa-step-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.oa-step-card p {
  font-size: 0.9rem;
  color: var(--muted);
}

/* Resources */
.oa-resources {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 800px) {
  .oa-resources { grid-template-columns: 1fr; }
}

.oa-resource {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.oa-resource h3 { font-size: 1.05rem; margin-bottom: 8px; }

.oa-resource p {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 12px;
}

.oa-resource a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--teal);
}

.oa-resource a:hover { text-decoration: underline; }

/* Footer */
.oa-footer {
  border-top: 1px solid var(--line);
  padding: 28px clamp(20px, 5vw, 56px);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--muted);
  max-width: 1120px;
  margin: 0 auto;
}

.oa-footer a { color: var(--teal); font-weight: 500; }

.oa-preview-banner {
  background: #fff8e6;
  border-bottom: 1px solid #f0d78c;
  color: #7c5a00;
  font-size: 0.82rem;
  text-align: center;
  padding: 10px 16px;
}

.oa-preview-banner--live {
  background: #ecfdf5;
  border-bottom-color: #a7f3d0;
  color: #065f46;
}

/* —— Page shell —— */
.oa-page-main {
  max-width: 1040px;
  margin: 0 auto;
  padding: 40px clamp(20px, 4vw, 48px) 64px;
}

.oa-page-main h1 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.oa-lead {
  color: var(--muted);
  margin-bottom: 28px;
  max-width: 52ch;
}

.oa-status {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 20px;
}

/* Library grid */
.oa-course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.oa-course-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s;
  display: flex;
  flex-direction: column;
}

.oa-course-card:not(.is-soon):hover { transform: translateY(-2px); }

.oa-course-card.is-clickable {
  cursor: pointer;
}

.oa-course-thumb {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--ink-soft), var(--teal));
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.9);
  font-size: 2rem;
}

.oa-course-body { padding: 18px; flex: 1; display: flex; flex-direction: column; }

.oa-course-body h2 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.oa-course-body p {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 12px;
}

.oa-course-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.oa-course-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.oa-course-thumb {
  position: relative;
}

.oa-fav-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  color: var(--accent);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.15s, background 0.15s;
}

.oa-fav-btn:hover { transform: scale(1.08); }

.oa-fav-btn.is-active {
  background: #fff8e6;
  color: #c45c26;
}

.oa-featured-section {
  margin-bottom: 36px;
  padding: 22px 22px 8px;
  background: var(--sand);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.oa-featured-section.is-hidden {
  display: none;
}

.oa-my-section {
  margin-bottom: 48px;
}

.oa-my-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.oa-my-course-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.oa-my-progress {
  padding: 0 4px;
  font-size: 0.78rem;
  color: var(--muted);
}

.oa-my-progress .oa-progress-bar {
  margin-top: 6px;
  height: 5px;
}

.oa-course-grid.is-hidden {
  display: none;
}

.oa-my-grid.is-hidden {
  display: none;
}

.oa-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.oa-filter-pill {
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
}

.oa-filter-pill.is-active {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}

.oa-filter-divider {
  width: 1px;
  height: 28px;
  background: var(--line);
  margin: 0 4px;
}

.oa-lib-category {
  margin-bottom: 48px;
}

.oa-lib-category.is-hidden {
  display: none;
}

.oa-category-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.oa-category-head h2 {
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.oa-category-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.oa-category-icon.odoo { background: linear-gradient(135deg, var(--teal), var(--teal-bright)); }
.oa-category-icon.python { background: linear-gradient(135deg, #306998, #ffd43b); color: #1a1a1a; }
.oa-category-icon.frontend { background: linear-gradient(135deg, #6366f1, #a855f7); }

.oa-category-head p {
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 42ch;
  flex: 1 1 100%;
  margin-left: 46px;
}

@media (min-width: 640px) {
  .oa-category-head p {
    flex: 1 1 auto;
    margin-left: 0;
    text-align: right;
  }
}

.oa-course-thumb.thumb-odoo {
  background: linear-gradient(135deg, var(--ink-soft), var(--teal));
}

.oa-course-thumb.thumb-python {
  background: linear-gradient(135deg, #1e3a5f, #306998);
}

.oa-course-thumb.thumb-frontend {
  background: linear-gradient(135deg, #4338ca, #7c3aed);
}

.oa-course-card.is-soon {
  opacity: 0.88;
  pointer-events: none;
}

.oa-doc-list {
  display: grid;
  gap: 14px;
}

.oa-doc-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
}

@media (max-width: 640px) {
  .oa-doc-card {
    grid-template-columns: auto 1fr;
  }
  .oa-doc-card .btn {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

.oa-doc-card.is-soon {
  opacity: 0.88;
}

.oa-doc-icon {
  font-size: 1.75rem;
  line-height: 1;
}

.oa-doc-body h2 {
  font-size: 1.08rem;
  margin-bottom: 6px;
}

.oa-doc-body p {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.oa-watch-breadcrumb {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.oa-watch-breadcrumb a {
  color: var(--teal);
  font-weight: 500;
}

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

/* Watch layout */
.oa-watch-body {
  display: flex;
  flex: 1;
  min-height: calc(100vh - 120px);
  overflow: hidden;
}

.oa-sidebar {
  width: min(340px, 38vw);
  background: #fff;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.oa-sidebar-top {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 10px;
}

.oa-sidebar-top label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.oa-sidebar-top input,
.oa-sidebar-top select {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  font-size: 0.9rem;
  background: var(--paper);
}

.oa-lesson-list {
  overflow-y: auto;
  flex: 1;
  padding: 8px 0;
}

.oa-lesson-item {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  font: inherit;
  padding: 10px 16px;
  cursor: pointer;
  border-left: 3px solid transparent;
}

.oa-lesson-item:hover { background: var(--sand); }

.oa-lesson-item.is-active {
  background: var(--active-bg);
  border-left-color: var(--teal);
}

.oa-lesson-item .title {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
}

.oa-lesson-item .meta {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 4px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.oa-lesson-item.is-hidden { display: none; }

.oa-lesson-empty {
  padding: 24px 16px;
  text-align: center;
  font-size: 0.88rem;
  color: var(--muted);
}

.oa-lesson-empty.is-hidden {
  display: none;
}

.oa-watch-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.oa-watch-head h1 {
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.oa-watch-meta {
  font-size: 0.82rem;
  color: var(--muted);
}

.oa-video-lang {
  display: inline-flex;
  gap: 4px;
  margin-bottom: 12px;
  padding: 4px;
  background: var(--sand);
  border-radius: 999px;
}

.oa-video-lang button {
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 14px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.oa-video-lang button.is-active {
  background: #fff;
  color: var(--teal);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.oa-player {
  aspect-ratio: 16/9;
  background: linear-gradient(145deg, #1a1a2e, #0a1628);
  border-radius: 14px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.oa-player-screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.9);
  padding: 20px;
  text-align: center;
}

.oa-player-play {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  font-size: 1.5rem;
  cursor: pointer;
  margin-bottom: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s;
}

.oa-player-play:hover { transform: scale(1.05); }

.oa-player-hint {
  font-size: 0.85rem;
  opacity: 0.75;
  max-width: 28ch;
}

.oa-player-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--teal);
  color: #fff;
  z-index: 2;
}

.oa-player-screen.is-hidden {
  visibility: hidden;
  pointer-events: none;
}

.oa-player-lang-note {
  margin: 0 0 12px;
  padding: 12px 14px;
  background: #fff8e6;
  border: 1px solid #f0d78c;
  border-radius: var(--radius-sm);
  color: #7c5a00;
  font-size: 0.88rem;
  line-height: 1.45;
}

.oa-player-lang-note.is-hidden {
  display: none;
}

.oa-player-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 24px;
  text-align: center;
  color: rgba(255, 255, 255, 0.92);
  z-index: 3;
}

.oa-player-fallback.is-hidden {
  display: none;
}

.oa-player-fallback-msg {
  font-size: 0.92rem;
  line-height: 1.55;
  max-width: 36em;
  margin-bottom: 16px;
  opacity: 0.9;
}

.oa-player-badge.is-en {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.oa-player-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 14px 12px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 2;
}

.oa-player-progress {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  overflow: hidden;
  cursor: pointer;
}

.oa-player-progress-fill {
  height: 100%;
  width: 35%;
  background: var(--accent);
  border-radius: 999px;
}

.oa-player-time {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.9);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.oa-player-live {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  overflow: hidden;
}

.oa-yt-wrap,
.oa-yt-wrap > div,
.oa-yt-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.oa-html5-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.oa-watch-head .chip {
  margin-left: 8px;
  vertical-align: middle;
}

.oa-admin-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

.oa-admin-page--wide {
  max-width: none;
  padding-bottom: 24px;
}

.oa-admin-embed-page .oa-admin-page {
  max-width: none;
}

.oa-admin-tabs {
  display: flex;
  gap: 8px;
  margin: 20px 0 12px;
  flex-wrap: wrap;
}

.oa-admin-tabs button {
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  cursor: pointer;
}

.oa-admin-tabs button.is-active {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

.oa-admin-embed {
  width: 100%;
  min-height: calc(100vh - 220px);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
}

.oa-admin-embed-fallback {
  padding: 24px;
  background: var(--sand);
  border-radius: var(--radius-sm);
}

.oa-my-user-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  margin-bottom: 24px;
  background: var(--sand);
  border-radius: var(--radius-sm);
}

.oa-my-user-bar .oa-my-user-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  overflow: hidden;
  flex-shrink: 0;
}

.oa-my-user-bar .oa-my-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.oa-my-user-bar .btn {
  margin-left: auto;
}

.oa-my-login-gate {
  padding: 20px 22px;
  margin-bottom: 24px;
  background: var(--sand);
  border-radius: var(--radius-sm);
}

.oa-my-login-gate h2 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.oa-admin-gate {
  text-align: center;
  padding: 48px 16px;
}

.oa-admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.oa-admin-stat {
  background: var(--sand);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.oa-admin-stat .label {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 6px;
}

.oa-admin-stat strong {
  font-size: 1.35rem;
  color: var(--teal);
}

.oa-admin-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.oa-admin-head-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--muted);
}

.oa-admin-role {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--sand);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--teal);
}

.oa-admin-role.is-super {
  background: #fff7ed;
  color: #c2410c;
}

.oa-admin-stat-inline strong {
  color: var(--teal);
}

.oa-admin-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.oa-admin-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--muted);
}

.oa-admin-filter select {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  min-width: 180px;
}

.oa-admin-split {
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr;
  gap: 20px;
  align-items: start;
}

@media (max-width: 900px) {
  .oa-admin-split { grid-template-columns: 1fr; }
}

.oa-admin-courses {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.oa-admin-course-card {
  text-align: left;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
  font: inherit;
  transition: border-color 0.15s, background 0.15s;
}

.oa-admin-course-card:hover,
.oa-admin-course-card.is-active {
  border-color: var(--teal);
  background: var(--active-bg);
}

.oa-admin-course-dir {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 4px;
}

.oa-admin-course-slug {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 4px;
}

.oa-admin-detail {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  min-height: 280px;
}

.oa-admin-detail-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.oa-admin-detail-head h2 {
  font-size: 1.2rem;
}

.oa-admin-form {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}

.oa-admin-form label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}

.oa-admin-form input,
.oa-admin-form textarea,
.oa-admin-form select {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
}

.oa-admin-inline-form {
  grid-template-columns: 1fr 1fr auto;
  align-items: end;
}

@media (max-width: 720px) {
  .oa-admin-inline-form { grid-template-columns: 1fr; }
}

.oa-admin-form-actions,
.oa-admin-detail-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.oa-admin-sub {
  font-size: 1rem;
  margin: 8px 0 12px;
}

.oa-admin-lessons {
  list-style: none;
  padding: 0;
  margin: 0;
}

.oa-admin-lessons li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.oa-admin-lesson-meta {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 2px;
}

.oa-admin-empty {
  color: var(--muted);
  font-size: 0.9rem;
  padding: 12px 0;
}

.oa-admin-directions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.oa-admin-direction-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}

.oa-admin-direction-card .oa-admin-form {
  padding: 16px;
  margin: 0;
}

.oa-admin-check {
  display: flex !important;
  align-items: center;
  gap: 8px;
  font-weight: 500 !important;
  color: var(--text) !important;
}

.oa-admin-check input {
  width: auto;
  margin: 0;
}

.oa-admin-table-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.oa-admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.oa-admin-table th,
.oa-admin-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.oa-admin-table th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.oa-admin-table select {
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.oa-toast.is-error {
  background: #7f1d1d;
}

.oa-section-sub {
  font-size: 1.05rem;
  margin: 24px 0 12px;
}

.oa-dub-panel {
  margin: 12px 0 16px;
  padding: 12px 14px;
  background: var(--sand);
  border-radius: var(--radius-sm);
}

.oa-dub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.oa-dub-status {
  font-size: 0.82rem;
  color: var(--muted);
  min-height: 1.2em;
}

.oa-toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  max-width: min(360px, 90vw);
  padding: 12px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 200;
}

.oa-toast.is-visible {
  opacity: 1;
}

.oa-track-embed-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.oa-track-embed-bar {
  padding: 10px 20px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--muted);
}

.oa-track-embed {
  flex: 1;
  width: 100%;
  min-height: calc(100vh - 120px);
  border: 0;
}

.oa-panel { display: none; }
.oa-panel.is-active { display: block; }

.oa-summary-box {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--sand);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
}

.oa-summary-box ul {
  margin: 10px 0 0 1.1rem;
}

.oa-transcript .seg {
  cursor: pointer;
}

.oa-transcript .seg:hover {
  background: rgba(216, 243, 232, 0.5);
}

.oa-watch-main {
  flex: 1;
  overflow-y: auto;
  padding: clamp(16px, 3vw, 28px);
}

.oa-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.oa-tabs button {
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 10px 14px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.oa-tabs button.is-active {
  color: var(--teal);
  border-bottom-color: var(--teal);
}

.oa-transcript {
  font-size: 0.9rem;
  line-height: 1.7;
}

.oa-transcript .seg {
  padding: 6px 8px;
  border-radius: 8px;
  margin-bottom: 4px;
}

.oa-transcript .seg.is-active {
  background: var(--active-bg);
}

.oa-transcript .time {
  font-size: 0.75rem;
  color: var(--muted);
  margin-right: 8px;
}

@media (max-width: 768px) {
  .oa-watch-body { flex-direction: column; }
  .oa-sidebar { width: 100%; max-height: 240px; border-right: none; border-bottom: 1px solid var(--line); }
}

/* Track / roadmap */
.oa-track-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  min-height: calc(100vh - 60px);
}

@media (max-width: 900px) {
  .oa-track-layout { grid-template-columns: 1fr; }
}

.oa-track-nav {
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 20px 0;
  overflow-y: auto;
}

.oa-track-nav h2 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding: 0 18px 10px;
}

.oa-phase {
  padding: 8px 18px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  margin-top: 8px;
}

.oa-step-link {
  display: block;
  padding: 10px 18px;
  font-size: 0.88rem;
  border-left: 3px solid transparent;
}

.oa-step-link:hover { background: var(--sand); }

.oa-step-link.is-active {
  background: var(--active-bg);
  border-left-color: var(--teal);
  font-weight: 600;
}

.oa-track-content {
  padding: 28px clamp(20px, 4vw, 40px) 80px;
  max-width: 780px;
}

.oa-track-content .breadcrumb {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.oa-track-content h1 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.oa-track-content .body-text {
  color: var(--text);
  margin-bottom: 20px;
}

.oa-howto {
  background: var(--sand);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  font-size: 0.92rem;
  margin-bottom: 20px;
}

.oa-howto h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 10px;
}

.oa-mentor-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(224, 122, 58, 0.45);
  z-index: 50;
}

.oa-mentor-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(400px, 100vw);
  height: 100%;
  background: #fff;
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.12);
  z-index: 60;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
}

.oa-mentor-drawer.is-open { transform: translateX(0); }

.oa-mentor-drawer header {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--paper);
}

.oa-mentor-drawer .chat {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  font-size: 0.9rem;
}

.oa-mentor-drawer .bubble {
  background: var(--sand);
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 10px;
  max-width: 90%;
}

.oa-mentor-drawer .bubble.user {
  background: var(--active-bg);
  margin-left: auto;
}

.oa-mentor-drawer footer {
  padding: 12px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 8px;
}

.oa-mentor-drawer footer input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
}

/* Profile */
.oa-profile-grid {
  display: grid;
  gap: 18px;
}

.oa-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 22px;
}

.oa-card h2 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.oa-card .hint {
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 14px;
}

.oa-card label {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin: 10px 0 4px;
}

.oa-card input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
}

.oa-stat-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.oa-stat {
  flex: 1;
  min-width: 120px;
  background: var(--sand);
  border-radius: var(--radius-sm);
  padding: 14px;
  text-align: center;
}

.oa-stat strong {
  display: block;
  font-size: 1.4rem;
  color: var(--teal);
}

.oa-stat span {
  font-size: 0.78rem;
  color: var(--muted);
}

/* Modal */
.oa-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 22, 40, 0.55);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.oa-modal-backdrop.is-open { display: flex; }

.oa-modal {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  width: min(400px, 100%);
  box-shadow: var(--shadow);
}

.oa-auth-modal {
  width: min(440px, 100%);
}

.oa-modal h3 { margin-bottom: 6px; }

.oa-modal .sub {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1.5;
}

.oa-modal-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  padding: 4px;
  background: var(--sand);
  border-radius: 999px;
}

.oa-modal-tabs button {
  flex: 1;
  padding: 8px 12px;
  border: none;
  background: transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
}

.oa-modal-tabs button.is-active {
  background: #fff;
  color: var(--teal);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Components page */
.oa-ds-grid {
  display: grid;
  gap: 24px;
}

.oa-ds-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.oa-ds-swatch {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.oa-ds-label {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 4px;
}

/* Course detail */
.oa-course-hero {
  display: grid;
  grid-template-columns: minmax(160px, 240px) 1fr;
  gap: 24px;
  margin: 8px 0 36px;
  align-items: start;
}

.oa-course-hero-thumb {
  aspect-ratio: 16/10;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.92);
  font-size: 2.4rem;
  box-shadow: var(--shadow-sm);
}

.oa-course-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}

.oa-course-hero-body h1 {
  font-size: 1.75rem;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.oa-course-hero-body .oa-lead {
  margin-bottom: 14px;
  max-width: 42em;
}

.oa-fav-inline.is-active {
  color: #c45c26;
}

.oa-course-lessons-head {
  margin-bottom: 14px;
}

.oa-course-lessons-head h2 {
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.oa-course-lessons-head p {
  font-size: 0.88rem;
  color: var(--muted);
}

.oa-video-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.oa-video-row {
  display: grid;
  grid-template-columns: 28px 36px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}

.oa-video-row:hover {
  border-color: var(--teal);
  background: var(--active-bg);
  transform: translateY(-1px);
}

.oa-video-n {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  text-align: center;
}

.oa-video-play {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ink-soft), var(--teal));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

.oa-video-title {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
}

.oa-video-teaser {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 3px;
}

.oa-video-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.oa-video-dur {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

.oa-watch-breadcrumb span a {
  color: var(--teal);
  font-weight: 500;
}

.oa-watch-breadcrumb span a:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .oa-course-hero {
    grid-template-columns: 1fr;
  }

  .oa-video-row {
    grid-template-columns: 24px 32px 1fr;
    grid-template-rows: auto auto;
  }

  .oa-video-side {
    grid-column: 3;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
  }
}

/* Auth, profile, quiz */
.oa-profile-gate {
  text-align: center;
  padding: 48px 16px;
}

.oa-profile-gate .oa-lead {
  margin-bottom: 18px;
}

.oa-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.oa-form-row.is-stacked {
  grid-template-columns: 1fr;
}

.oa-auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.oa-auth-form .oa-field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 4px;
}

.oa-auth-form .oa-field input {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  font-size: 0.95rem;
  background: #fff;
}

.oa-auth-form .oa-field input:focus {
  outline: 2px solid rgba(26, 107, 92, 0.2);
  border-color: var(--teal);
}

.oa-auth-form .hint {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.45;
}

@media (max-width: 560px) {
  .oa-form-row { grid-template-columns: 1fr; }
}

.oa-profile-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.oa-form-msg {
  margin-top: 10px;
  font-size: 0.85rem;
  min-height: 1.2em;
}

.oa-form-msg.is-ok { color: #065f46; }
.oa-form-msg.is-err { color: #b91c1c; }

.oa-avatar-block {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.oa-avatar-preview {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--sand);
  border: 2px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--teal);
  overflow: hidden;
  flex-shrink: 0;
}

.oa-avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.oa-role-pill {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 8px;
}

.oa-role-pill span:last-child {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--sand);
  font-weight: 600;
  color: var(--teal);
  text-transform: uppercase;
  font-size: 0.72rem;
}

.oa-user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  max-width: 160px;
}

.oa-user-chip:hover {
  background: rgba(255, 255, 255, 0.14);
}

.oa-user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  overflow: hidden;
  flex-shrink: 0;
}

.oa-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.oa-user-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.oa-auth-modal .oa-modal-actions {
  display: flex;
  gap: 8px;
  margin-top: 20px;
  justify-content: flex-end;
}

.oa-auth-modal .oa-form-msg {
  margin-bottom: 4px;
}

.oa-quiz-lead {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 16px;
}

.oa-quiz-q {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 12px;
  background: #fff;
}

.oa-quiz-q legend {
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.oa-quiz-n {
  color: var(--teal);
  margin-right: 4px;
}

.oa-quiz-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.oa-quiz-opt {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
}

.oa-quiz-opt:hover { background: var(--sand); }
.oa-quiz-opt.is-selected { background: var(--active-bg); border-color: var(--teal); }

.oa-quiz-opt input { margin-top: 3px; accent-color: var(--teal); }

.oa-quiz-opt-label {
  font-weight: 700;
  color: var(--teal);
  width: 18px;
  flex-shrink: 0;
}

.oa-quiz-opt-text {
  font-size: 0.88rem;
  line-height: 1.45;
}

.oa-quiz-result {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding: 14px 16px;
  background: var(--sand);
  border-radius: var(--radius-sm);
}

.oa-quiz-result.is-perfect {
  background: var(--active-bg);
}

.oa-quiz-fb {
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 10px;
  font-size: 0.88rem;
  line-height: 1.5;
}

.oa-quiz-fb.is-ok { background: #ecfdf5; border: 1px solid #a7f3d0; }
.oa-quiz-fb.is-bad { background: #fef2f2; border: 1px solid #fecaca; }

.oa-quiz-fb-q { font-weight: 600; margin-bottom: 6px; }
.oa-quiz-fb-correct { margin-top: 6px; color: var(--muted); font-size: 0.82rem; }

.oa-quiz-empty {
  color: var(--muted);
  font-size: 0.9rem;
  padding: 20px 0;
}

.is-hidden {
  display: none !important;
}

@media (min-width: 720px) {
  .oa-profile-grid {
    grid-template-columns: 1fr 1fr;
  }
}

