/* Presentation adapter for the existing UMNEO DOM. Business components keep their API. */
html.umneo {
  /* Approved brand coral remains intact; tiny darkening gives white CTA text AA contrast. */
  --um-action: color-mix(in srgb, var(--um-primary) 98%, var(--um-text));
  --bg: var(--um-bg);
  --paper: var(--um-surface);
  --ink: var(--um-text);
  --blue: var(--um-primary);
  --sky: var(--um-primary-soft);
  --muted: var(--um-muted);
  --line: var(--um-border);
  --success: var(--um-success);
  --warning: var(--um-warning);
  --font-sans: var(--um-font-body);
  --color-primary: var(--um-primary);
}
html.umneo body {
  font-family: var(--um-font-body);
}
html.umneo :is(h1, h2, h3, h4, .brand) {
  font-family: var(--um-font-heading);
  letter-spacing: -0.035em;
}
html.umneo .wrap {
  max-width: calc(var(--um-width) + 64px);
}
html.umneo .section {
  padding-block: var(--um-space-section);
}
html.umneo .public-header {
  background: var(--um-bg);
}
html.umneo .topbar {
  min-height: 88px;
}
html.umneo .hero {
  grid-template-columns: var(--um-hero-columns, 1fr 1fr);
  gap: var(--um-hero-gap, 64px);
  padding-block: var(--um-hero-padding, 64px 96px);
}
html.umneo .hero h1 {
  font-size: clamp(40px, 4.8vw, 64px);
  letter-spacing: -0.045em;
}
html.umneo .hero h1 em {
  font: inherit;
  color: var(--um-primary);
}
html.umneo .hero .eyebrow {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--um-primary-soft);
  color: var(--um-primary-hover);
  font-size: 11px;
  letter-spacing: 0.06em;
}
.friendly-visual {
  position: relative;
  isolation: isolate;
  min-width: 0;
  padding: 8px 0 32px;
}
.friendly-visual::before {
  content: "";
  position: absolute;
  inset: -12px -8px 50px 20px;
  border-radius: var(--um-photo-radius, 42% 52% 38% 46%);
  background: var(--um-yellow);
  transform: rotate(-5deg);
  z-index: -1;
}
.friendly-visual picture {
  display: block;
}
.friendly-visual img {
  display: block;
  width: 100%;
  height: clamp(320px, 34vw, 465px);
  object-fit: cover;
  border-radius: var(--um-photo-radius, 32% 20% 28% 16%);
}
.learning-float {
  position: absolute;
  bottom: 0;
  left: -22px;
  width: min(290px, 90%);
  padding: 20px;
  border: 1px solid var(--um-border);
  border-radius: var(--um-radius-md);
  background: var(--um-surface);
  box-shadow: 0 18px 48px var(--um-shadow);
}
.learning-float strong {
  display: block;
  margin-block: 10px 12px;
  font-size: 16px;
}
.learning-float small {
  display: block;
  color: var(--um-muted);
  margin-top: 10px;
  font-size: 11px;
}
html.umneo .learning-float .demo-progress {
  padding: 0;
  font-size: 12px;
  margin-bottom: 8px;
}
html.umneo .learning-float .progress-track {
  margin: 0;
}
html.umneo .feature-card {
  border-radius: var(--um-radius-lg);
  padding: var(--um-panel-padding, 26px);
  background: var(--um-surface);
  box-shadow: 0 8px 26px -18px var(--um-shadow);
}
html.umneo .grid3 .feature-card:nth-child(3n + 1) {
  background: var(--um-yellow);
}
html.umneo .grid3 .feature-card:nth-child(3n + 2) {
  background: var(--um-lilac);
}
html.umneo .grid3 .feature-card:nth-child(3n + 3) {
  background: var(--um-mint);
}
html.umneo .feature-card > svg {
  color: var(--um-text);
}
html.umneo .feature-card .badge {
  background: var(--um-surface);
  color: var(--um-text);
}
html.umneo .how-section {
  background: var(--um-bg-soft);
}
html.umneo .final-cta {
  border-radius: var(--um-radius-xl);
  background: var(--um-lilac);
}
html.umneo .btn {
  border-radius: var(--um-radius-sm);
}
html.umneo .btn:not(:where(.outline, .quiet, .danger)) {
  background: var(--um-action);
}
html.umneo .badge {
  border-radius: 999px;
}
html.umneo
  :is(
    .panel,
    .course-card,
    .stat,
    .dashboard-banner,
    .platform-stat,
    .platform-card
  ) {
  border-radius: var(--um-radius-lg);
  padding: var(--um-panel-padding, 24px);
}
html.umneo :is(.panel, .course-card) {
  box-shadow: 0 8px 26px -22px var(--um-shadow);
}
html.umneo :is(.app-layout, .platform-layout) {
  grid-template-columns: var(--um-sidebar-width, 248px) minmax(0, 1fr);
}
html.umneo :is(.sidebar, .platform-sidebar) {
  background: var(--um-sidebar);
  padding: var(--um-sidebar-padding, 28px 16px);
  gap: var(--um-sidebar-gap, 22px);
}
html.umneo :is(.app-topbar, .platform-topbar) {
  background: var(--um-bg);
}
html.umneo :is(.app-main, .platform-main) {
  padding: var(--um-content-padding, 32px 32px 80px);
}
html.umneo :is(.grid3, .stats-grid, .dashboard-columns) {
  gap: var(--um-grid-gap, 20px);
}
html.umneo .dashboard-columns {
  grid-template-columns: var(--um-dashboard-columns, 1.25fr 1fr);
}
html.umneo .dashboard-banner {
  background: var(--um-primary-soft);
}
html.umneo .stat:nth-child(3n + 1) {
  background: var(--um-lilac);
}
html.umneo .stat:nth-child(3n + 2) {
  background: var(--um-mint);
}
html.umneo .stat:nth-child(3n + 3) {
  background: var(--um-yellow);
}
html.umneo .stats-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
html.umneo .stat {
  min-width: 0;
  overflow-wrap: anywhere;
}
html.umneo .auth-layout {
  gap: 64px;
  align-items: center;
}
html.umneo .auth-intro h1 {
  font-size: clamp(32px, 3.5vw, 48px);
}
html.umneo .auth-note {
  margin-top: 20px;
  font-size: 16px;
}
.auth-photo {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: var(--um-radius-lg);
  margin-top: 28px;
}
html.umneo .auth-panel {
  padding: clamp(20px, 3vw, 36px);
}
html.umneo :is(input, textarea, select) {
  accent-color: var(--um-primary);
}
html.umneo .field :is(input, textarea, select) {
  border-radius: var(--um-radius-sm);
}
html.umneo .sidebar nav > a {
  color: var(--um-muted);
}
html.umneo .sidebar nav > a:hover {
  color: var(--um-primary-hover);
}
html.umneo :is(.text-link, .auth-links, .eyebrow) {
  color: var(--um-primary-hover);
}
html.umneo h1 {
  overflow-wrap: anywhere;
}
html.umneo .sidebar nav > a[aria-current="page"] {
  background: var(--um-primary-soft);
  color: var(--um-primary-hover);
  font-weight: 800;
}
html.umneo :is(.app-topbar, .platform-topbar, .panel-heading, .actions) {
  flex-wrap: wrap;
}
html.umneo :is(.page-title, .panel-heading, .user-line, .platform-operator) {
  overflow-wrap: anywhere;
}
html.umneo :is(.btn, .badge) {
  max-width: 100%;
  overflow-wrap: anywhere;
}
html.umneo .btn {
  white-space: normal;
}
@media (min-width: 769px) and (max-width: 1100px) {
  html.umneo .hero {
    gap: 28px;
  }
  html.umneo .auth-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 30px;
  }
  html.umneo .dashboard-columns {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 900px) {
  /* Keep the persistent brand link clear of editor fields and table actions. */
  html.umneo body:has(.app-layout, .platform-layout) .site-corner-brand {
    position: static;
    display: flex;
    width: max-content;
    margin: 16px auto;
  }
  html.umneo :is(.app-layout, .platform-layout) {
    grid-template-columns: 1fr;
  }
  html.umneo :is(.sidebar, .platform-sidebar) {
    display: none;
  }
  html.umneo :is(.app-mobile-nav, .platform-mobile-menu) {
    display: block;
    position: relative;
  }
  html.umneo .platform-mobile-menu summary {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
  }
  html.umneo .platform-mobile-menu nav {
    position: absolute;
    right: 0;
    top: 50px;
    width: min(320px, calc(100vw - 32px));
    max-height: 70dvh;
    overflow-y: auto;
    padding: 12px;
    background: var(--um-surface);
    border: 1px solid var(--um-border);
    border-radius: var(--um-radius-md);
    z-index: 50;
  }
}
@media (max-width: 768px) {
  html.umneo .wrap {
    padding-inline: 20px;
  }
  html.umneo .hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-block: 36px 56px;
  }
  html.umneo .hero h1 {
    font-size: clamp(36px, 8vw, 52px);
  }
  html.umneo .friendly-visual {
    margin: 0 8px 0 16px;
  }
  html.umneo .friendly-visual img {
    height: 340px;
  }
  html.umneo .learning-float {
    left: -10px;
  }
  html.umneo .auth-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding-block: 32px;
  }
  html.umneo .auth-photo {
    display: none;
  }
  html.umneo .auth-note {
    margin-top: 12px;
  }
  html.umneo :is(.app-main, .platform-main) {
    padding: 24px 16px 80px;
  }
  html.umneo .dashboard-columns {
    grid-template-columns: minmax(0, 1fr);
  }
  html.umneo .platform-sidebar {
    display: none;
  }
  html.umneo .platform-mobile-menu {
    display: block;
  }
  html.umneo :is(.app-topbar, .platform-topbar) {
    padding: 16px;
    gap: 12px;
  }
  html.umneo .app-topbar > span:first-child {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
  }
}
@media (max-width: 390px) {
  html.umneo .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  html.umneo .wrap {
    padding-inline: 16px;
  }
  html.umneo .friendly-visual img {
    height: 280px;
  }
  html.umneo :is(.panel, .course-card, .stat, .dashboard-banner) {
    padding: 16px;
  }
  html.umneo .auth-intro h1 {
    font-size: 32px;
  }
  html.umneo .app-topbar > .badge {
    display: none;
  }
}
