:root {
  --ink: #251d27;
  --muted: #756c76;
  --line: rgba(57, 38, 54, .11);
  --paper: #faf7f2;
  --white: #fff;
  --plum: #75516a;
  --plum-dark: #3c2737;
  --plum-soft: #f2e8ee;
  --gold: #c5a46d;
  --gold-soft: #f5eddf;
  --sage: #587d72;
  --shadow: 0 32px 100px rgba(45, 28, 41, .16);
  --radius: 24px;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  color: var(--ink);
  font-family: "DM Sans", system-ui, sans-serif;
  background:
    radial-gradient(circle at 16% 12%, rgba(218,196,207,.58), transparent 31%),
    radial-gradient(circle at 90% 86%, rgba(213,193,151,.4), transparent 30%),
    linear-gradient(145deg, #e8e0dc, #f2eeea 48%, #e7dfda);
  overflow: hidden;
}

button, input, textarea, select { font: inherit; }
button { color: inherit; }
[hidden] { display: none !important; }

.ambient {
  position: fixed;
  width: 460px;
  height: 460px;
  border-radius: 999px;
  filter: blur(90px);
  opacity: .24;
  pointer-events: none;
}
.ambient-one { top: -160px; left: 18%; background: #dbc1d2; }
.ambient-two { right: -120px; bottom: -220px; background: #d7c293; }

.app-shell {
  position: relative;
  display: grid;
  grid-template-rows: 78px minmax(0, 1fr);
  width: min(1600px, calc(100vw - 28px));
  height: calc(100dvh - 28px);
  margin: 14px auto;
  background: rgba(251, 250, 248, .94);
  border: 1px solid rgba(255,255,255,.92);
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.topbar {
  height: 78px;
  padding: 0 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: rgba(255,253,250,.78);
  backdrop-filter: blur(24px) saturate(125%);
}

.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; color: inherit; }
.brand-mark {
  width: 42px; height: 42px; display: grid; place-items: center;
  border: 1px solid rgba(109,48,89,.28); border-radius: 14px;
  color: var(--plum); font-family: Manrope, sans-serif; font-weight: 800; letter-spacing: -.08em;
  background: linear-gradient(145deg, #fff, var(--plum-soft));
}
.brand strong { display: block; font-family: "Cormorant Garamond", Georgia, serif; font-size: 19px; line-height: 1; letter-spacing: .01em; }
.brand small { color: var(--muted); font-size: 11px; letter-spacing: .025em; }

.top-actions { display: flex; align-items: center; gap: 12px; }
.library-top-button { border: 1px solid rgba(109,48,89,.16); border-radius: 999px; padding: 9px 13px; background: var(--plum-soft); color: var(--plum); font-size: 11px; font-weight: 800; cursor: pointer; }
.library-top-button:hover { background: #ead9e4; }
.status-pill {
  display: flex; align-items: center; gap: 8px; padding: 9px 12px;
  border-radius: 999px; background: #f4f2f0; color: var(--muted); font-size: 12px; font-weight: 600;
}
.status-pill i { width: 7px; height: 7px; border-radius: 50%; background: #a3a3a3; box-shadow: 0 0 0 4px rgba(163,163,163,.12); }
.status-pill.online i { background: #63a68c; box-shadow: 0 0 0 4px rgba(99,166,140,.15); }
.status-pill.demo i { background: var(--gold); box-shadow: 0 0 0 4px rgba(211,168,93,.15); }

.icon-button, .mini-icon {
  border: 0; background: transparent; cursor: pointer; display: grid; place-items: center;
}
.icon-button { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 13px; background: var(--white); }
.icon-button svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.mini-icon { width: 28px; height: 28px; border-radius: 9px; color: var(--plum); font-weight: 700; }
.mini-icon:hover { background: var(--plum-soft); }

.avatar {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%;
  background: linear-gradient(145deg, #7d446d, #4b1e3e); color: white; font-weight: 700; font-size: 12px;
  box-shadow: 0 8px 22px rgba(77,30,63,.24);
}
.avatar.small { width: 36px; height: 36px; font-size: 10px; flex: 0 0 auto; }

.workspace { min-height: 0; overflow: hidden; display: grid; grid-template-columns: 246px minmax(480px, 1fr) 286px; }

.sidebar, .insight-panel { padding: 26px 20px; background: linear-gradient(180deg, rgba(248,244,240,.88), rgba(245,240,237,.66)); overflow-y: auto; }
.sidebar { border-right: 1px solid var(--line); }
.insight-panel { border-left: 1px solid var(--line); }
.sidebar-heading, .insight-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.sidebar-heading > span, .insight-header > span, .eyebrow, .overline {
  font-size: 10px; font-weight: 800; letter-spacing: .14em; color: var(--plum); text-transform: uppercase;
}
.insight-header.compact { margin-bottom: 10px; }

.nav-list { display: grid; gap: 5px; }
.nav-item {
  width: 100%; border: 0; border-radius: 14px; background: transparent; padding: 11px 12px;
  display: grid; grid-template-columns: 24px 1fr auto; align-items: center; text-align: left; gap: 8px;
  color: #5f6472; font-size: 13px; font-weight: 600;
}
.nav-item.active { background: var(--white); color: var(--plum); box-shadow: 0 7px 18px rgba(42,32,40,.06); }
.nav-item small { font-size: 9px; text-transform: uppercase; color: #a5a1a5; }
.nav-icon { font-size: 16px; }

.progress-card, .quote-card, .focus-card, .task-card, .memory-summary, .method-card, .outcome-card {
  border: 1px solid var(--line); border-radius: 19px; background: rgba(255,255,255,.76);
}
.progress-card { margin-top: 26px; padding: 18px; }
.progress-title { display: flex; justify-content: space-between; align-items: baseline; margin: 10px 0; font-size: 12px; color: var(--muted); }
.progress-title strong { font-size: 20px; color: var(--ink); font-family: Manrope, sans-serif; }
.progress-track { display: block; height: 5px; border-radius: 999px; background: #ece8e5; overflow: hidden; }
.progress-track span { height: 100%; display: block; background: linear-gradient(90deg, var(--plum), #ae718f); }
.progress-card p { margin: 14px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }

.quote-card { margin-top: 12px; padding: 18px; background: linear-gradient(145deg, #6b3158, #4d1e3f); color: white; }
.quote-card > span { font-family: Georgia, serif; font-size: 40px; line-height: .6; color: #e1bd7d; }
.quote-card p { margin: 10px 0; font-family: Georgia, serif; font-size: 13px; line-height: 1.55; }
.quote-card small { opacity: .7; font-size: 10px; }

.whatsapp-card { margin-top: 12px; padding: 15px; display: flex; gap: 11px; border: 1px solid rgba(88,125,114,.2); border-radius: 18px; background: linear-gradient(145deg, #f8fcfa, #edf6f1); }
.whatsapp-icon { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: #5d887a; color: white; font-size: 20px; box-shadow: 0 7px 18px rgba(73,115,101,.2); }
.whatsapp-card span, .whatsapp-card strong, .whatsapp-card small { display: block; }
.whatsapp-card span { color: var(--sage); font-size: 8px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.whatsapp-card strong { margin-top: 3px; font-size: 11px; }
.whatsapp-card small { margin-top: 4px; color: var(--muted); font-size: 9px; line-height: 1.45; }

.method-card { margin-top: 12px; padding: 16px; }
.method-card h3 { margin: 8px 0 6px; font-family: Manrope, sans-serif; font-size: 14px; }
.method-card p:last-child { margin: 0; color: var(--muted); font-size: 10.5px; line-height: 1.5; }

.outcome-card { position: relative; margin-top: 12px; padding: 16px; overflow: hidden; background: linear-gradient(145deg, #f7fff9, #f1efff); }
.outcome-card .insight-header { position: relative; z-index: 1; }
.outcome-card h3 { position: relative; z-index: 1; margin: 8px 0 6px; max-width: 190px; font: 750 14px/1.35 Manrope, sans-serif; }
.outcome-card > p { position: relative; z-index: 1; margin: 0 0 13px; color: var(--muted); font-size: 10.5px; line-height: 1.55; }
.outcome-card > small { display: block; margin-top: 9px; color: #817a84; font-size: 8px; line-height: 1.45; }
.outcome-mark { position: absolute; top: 30px; right: 10px; color: rgba(74,55,116,.09); font: 800 58px/1 Manrope, sans-serif; }
.outcome-toolbar-button { display: none; }

.chat-panel { min-width: 0; min-height: 0; overflow: hidden; display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; background: linear-gradient(180deg, rgba(255,255,255,.72), rgba(252,249,246,.66)); }

.content-panel { grid-column: 2 / 4; min-width: 0; display: grid; grid-template-rows: auto auto 1fr; background: rgba(255,255,255,.62); overflow: hidden; }
.library-hero { padding: 34px 40px 26px; display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; border-bottom: 1px solid var(--line); background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(243,233,240,.75)); }
.library-hero h1 { margin: 7px 0 8px; font-family: Manrope, sans-serif; font-size: clamp(28px, 3.2vw, 48px); letter-spacing: -.05em; }
.library-hero > div:first-child > p:last-child { max-width: 680px; margin: 0; color: var(--muted); line-height: 1.6; font-size: 13px; }
.library-stat { flex: 0 0 150px; padding: 17px; border: 1px solid rgba(109,48,89,.13); border-radius: 18px; background: rgba(255,255,255,.74); text-align: center; }
.library-stat strong, .library-stat span { display: block; }
.library-stat strong { color: var(--plum); font: 800 30px/1 Manrope, sans-serif; }
.library-stat span { margin-top: 6px; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.library-toolbar { padding: 14px 40px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.82); }
.category-filters { display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; }
.category-filters::-webkit-scrollbar { display: none; }
.filter-chip { flex: 0 0 auto; border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; background: white; color: var(--muted); font-size: 10px; font-weight: 700; cursor: pointer; }
.filter-chip.active { background: var(--plum); border-color: var(--plum); color: white; }
.library-search { min-width: 230px; display: flex; align-items: center; gap: 8px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.library-search span { color: var(--plum); }
.library-search input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; font-size: 11px; }
.library-scroll { overflow-y: auto; padding: 24px 40px 42px; }
.library-intro { margin-bottom: 20px; padding: 17px 19px; border: 1px solid rgba(109,48,89,.13); border-radius: 18px; background: linear-gradient(135deg, #fff, #f8f1f5); display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.library-intro > div { display: flex; align-items: center; gap: 13px; }
.library-spark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 13px; background: var(--plum); color: #f1d49c; }
.library-intro strong { font-size: 12px; }
.library-intro p { margin: 3px 0 0; color: var(--muted); font-size: 10px; }
.library-intro button { border: 0; background: transparent; color: var(--plum); font-size: 11px; font-weight: 800; cursor: pointer; }
.content-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.content-card { min-height: 250px; display: grid; grid-template-rows: auto 1fr auto; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: white; box-shadow: 0 10px 30px rgba(44,31,41,.05); }
.content-visual { min-height: 98px; padding: 16px; display: flex; justify-content: space-between; align-items: flex-start; background: linear-gradient(135deg, var(--card-a), var(--card-b)); }
.content-format { padding: 5px 7px; border-radius: 8px; background: rgba(255,255,255,.78); color: #493948; font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.favorite-button { width: 31px; height: 31px; border: 0; border-radius: 50%; background: rgba(255,255,255,.78); color: var(--plum); cursor: pointer; }
.favorite-button.active { background: var(--plum); color: white; }
.content-card-body { padding: 16px; }
.content-category { color: var(--plum); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.content-card h3 { margin: 8px 0 7px; font: 700 15px/1.35 Manrope, sans-serif; letter-spacing: -.02em; }
.content-card p { margin: 0; color: var(--muted); font-size: 10.5px; line-height: 1.55; }
.content-meta { padding: 12px 16px; display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; }
.content-status { color: var(--sage); font-weight: 800; }
.library-empty { padding: 50px; text-align: center; color: var(--muted); }
.library-empty strong { color: var(--ink); }
.library-empty p { font-size: 11px; }
.creator-note { margin-top: 24px; padding: 24px; border-radius: 22px; background: #27233a; color: white; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.creator-note h2 { margin: 6px 0; font: 700 19px Manrope, sans-serif; }
.creator-note p:not(.overline) { max-width: 650px; margin: 0; opacity: .7; font-size: 11px; line-height: 1.55; }
.creator-note > span { max-width: 190px; padding: 12px 14px; border-radius: 13px; background: rgba(255,255,255,.1); color: #f2d8aa; font-size: 10px; line-height: 1.45; }
.wellbeing-library-note { margin: 18px auto 0; max-width: 850px; color: #8f8992; text-align: center; font-size: 9px; line-height: 1.6; }
.chat-header { min-height: 76px; padding: 15px 28px; display: flex; align-items: center; gap: 13px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.34); }
.chat-title-row { display: flex; align-items: center; gap: 10px; }
.chat-header h1 { margin: 0; font-family: "Cormorant Garamond", Georgia, serif; font-size: 26px; line-height: .9; letter-spacing: -.02em; }
.chat-header p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.ai-label { padding: 4px 7px; border-radius: 7px; background: var(--plum-soft); color: var(--plum); font-size: 8px; font-weight: 800; letter-spacing: .08em; }
.personalized-pill { padding: 4px 7px; border: 1px solid rgba(197,164,109,.28); border-radius: 999px; background: var(--gold-soft); color: #8b6c36; font-size: 7px; font-weight: 800; letter-spacing: .09em; }

.session-toolbar {
  min-height: 48px; padding: 8px 28px; display: grid; grid-template-columns: auto minmax(150px, 220px) minmax(180px, 1fr) auto;
  align-items: center; gap: 10px; border-bottom: 1px solid var(--line); background: rgba(255,253,250,.72);
}
.session-toolbar label span { color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .1em; }
.session-toolbar select {
  min-width: 0; border: 1px solid rgba(109,48,89,.18); border-radius: 999px; padding: 8px 32px 8px 12px;
  background: #fff; color: var(--plum-dark); font: 700 10px DM Sans, sans-serif; outline: 0; cursor: pointer;
}
.session-toolbar select:focus { border-color: rgba(109,48,89,.48); box-shadow: 0 0 0 3px rgba(109,48,89,.08); }
.session-toolbar p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.end-session-button { border: 0; background: transparent; color: var(--plum); font-size: 9px; font-weight: 800; cursor: pointer; }

.nia-orb {
  position: relative; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 25%, #ddbdcf, #824d71 48%, #4d1e3f 72%);
  box-shadow: inset 0 1px 2px rgba(255,255,255,.5), 0 8px 26px rgba(77,30,63,.25);
  color: white; font-family: Georgia, serif; font-size: 18px;
}
.nia-orb::after { content: ""; position: absolute; inset: -5px; border: 1px solid rgba(109,48,89,.14); border-radius: 50%; }
.nia-orb.large { width: 78px; height: 78px; font-size: 28px; margin: 0 auto 24px; }
.nia-orb.large::after { inset: -8px; }

.chat-scroll {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scroll-behavior: smooth;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}
.welcome-block { max-width: 780px; margin: 0 auto; padding: 58px 38px 40px; text-align: center; }
.welcome-block h2 { margin: 9px 0 12px; font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(40px, 4.5vw, 64px); font-weight: 600; line-height: .98; letter-spacing: -.045em; color: var(--plum-dark); }
.welcome-copy { max-width: 620px; margin: 0 auto; color: var(--muted); line-height: 1.7; font-size: 14px; }
.membership-value { width: fit-content; max-width: 640px; margin: 18px auto 0; padding: 10px 14px; display: flex; align-items: center; gap: 10px; border: 1px solid rgba(197,164,109,.25); border-radius: 999px; background: rgba(245,237,223,.62); color: #6e5a39; text-align: left; }
.membership-value span { flex: 0 0 auto; color: #9a7a45; font-size: 7.5px; font-weight: 800; letter-spacing: .11em; }
.membership-value strong { font-size: 9px; line-height: 1.45; }

.quick-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 11px; margin-top: 30px; }
.quick-card {
  position: relative; border: 1px solid var(--line); border-radius: 19px; background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(249,245,241,.82)); padding: 16px 16px 15px 44px;
  min-height: 82px; text-align: left; cursor: pointer; transition: .18s ease;
}
.quick-card:hover { transform: translateY(-2px); border-color: rgba(109,48,89,.25); box-shadow: 0 12px 24px rgba(77,30,63,.08); }
.quick-card.active { border-color: rgba(109,48,89,.45); background: linear-gradient(145deg, #fff, var(--plum-soft)); box-shadow: 0 12px 28px rgba(77,30,63,.1); }
.quick-card.active::after { content: "Vybráno"; position: absolute; right: 13px; top: 12px; color: var(--plum); font-size: 7px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.quick-card > span { position: absolute; left: 15px; top: 16px; color: var(--gold); font-family: Manrope, sans-serif; font-size: 10px; font-weight: 800; }
.quick-card strong { display: block; font-size: 13px; margin-bottom: 5px; }
.quick-card small { color: var(--muted); line-height: 1.4; }

.messages { display: grid; gap: 18px; max-width: 780px; margin: 0 auto; padding: 30px 36px 50px; }
.messages:empty { display: none; }
.message { display: flex; gap: 12px; max-width: 86%; animation: enter .22s ease-out; }
.message.user { margin-left: auto; flex-direction: row-reverse; }
.message-avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; font-size: 10px; font-weight: 800; }
.message.assistant .message-avatar { background: var(--plum); color: white; }
.message.user .message-avatar { background: #e9e5e1; color: var(--plum); }
.bubble { padding: 14px 17px; border-radius: 18px; font-size: 13px; line-height: 1.65; white-space: pre-wrap; }
.message.assistant .bubble { background: rgba(255,255,255,.94); border: 1px solid var(--line); border-top-left-radius: 5px; box-shadow: 0 10px 32px rgba(43,32,41,.07); }
.message.user .bubble { background: var(--plum); color: white; border-top-right-radius: 5px; }
.message-meta { margin-top: 6px; color: #9994a0; font-size: 9px; letter-spacing: .03em; }
.typing { display: inline-flex; gap: 4px; align-items: center; height: 18px; }
.typing i { width: 5px; height: 5px; border-radius: 50%; background: #aa8da1; animation: pulse 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }.typing i:nth-child(3) { animation-delay: .3s; }

.composer-wrap { padding: 14px 28px 13px; border-top: 1px solid var(--line); background: rgba(255,253,250,.9); backdrop-filter: blur(20px); }
.composer { max-width: 780px; margin: 0 auto; display: flex; align-items: flex-end; gap: 10px; border: 1px solid rgba(117,81,106,.2); border-radius: 21px; padding: 8px 8px 8px 16px; background: white; box-shadow: 0 14px 34px rgba(39,27,36,.09), inset 0 1px rgba(255,255,255,.9); }
.composer:focus-within { border-color: rgba(109,48,89,.42); box-shadow: 0 12px 32px rgba(77,30,63,.11); }
.composer textarea { flex: 1; border: 0; resize: none; outline: 0; min-height: 38px; max-height: 130px; padding: 9px 0; color: var(--ink); background: transparent; }
.composer textarea::placeholder { color: #a6a1a7; }
.send-button { width: 42px; height: 42px; flex: 0 0 auto; border: 0; border-radius: 13px; display: grid; place-items: center; background: var(--plum); color: white; cursor: pointer; transition: .18s ease; }
.send-button:hover { background: var(--plum-dark); transform: translateY(-1px); }
.send-button:disabled { opacity: .5; cursor: wait; }
.send-button svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.trust-strip { max-width: 780px; margin: 9px auto 0; display: flex; align-items: center; justify-content: center; gap: 18px; color: #726a71; font-size: 8.5px; font-weight: 600; }
.trust-strip span { display: inline-flex; align-items: center; gap: 5px; }
.trust-strip i { color: var(--sage); font-style: normal; }
.disclaimer { margin: 6px auto 0; max-width: 780px; text-align: center; color: #a39ca3; font-size: 8px; line-height: 1.45; }

.focus-card, .task-card, .memory-summary { padding: 18px; margin-bottom: 12px; }
.focus-card { position: relative; overflow: hidden; background: linear-gradient(145deg, #fff, #f8f2f6); }
.focus-number { position: absolute; right: 14px; top: 6px; font-family: Manrope, sans-serif; font-size: 54px; font-weight: 800; color: rgba(109,48,89,.07); }
.focus-card h3, .task-card h3 { margin: 7px 0; font-family: Manrope, sans-serif; font-size: 15px; line-height: 1.35; }
.focus-card > p:last-child { margin: 8px 0 0; font-size: 11px; color: var(--muted); line-height: 1.5; }
.task-top { display: flex; gap: 11px; align-items: flex-start; }
.task-check { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: #ede9e6; color: #aaa3a7; font-weight: 800; }
.task-check.done { background: #e0f0e9; color: #47816d; }
.secondary-button, .primary-button, .danger-button {
  border-radius: 11px; padding: 10px 14px; font-weight: 700; font-size: 11px; cursor: pointer;
}
.secondary-button { border: 1px solid var(--line); background: white; }
.secondary-button:disabled { opacity: .45; cursor: default; }
.task-card .secondary-button { width: 100%; margin-top: 13px; }
.primary-button { border: 1px solid var(--plum); background: var(--plum); color: white; }
.primary-button:disabled { opacity: .45; cursor: default; }
.primary-button.wide { width: 100%; }
.secondary-button.wide { width: 100%; }
.danger-button { border: 1px solid #d9a6ac; background: #fff7f7; color: #9c3f4b; }

.memory-summary dl { margin: 0; display: grid; gap: 9px; }
.memory-summary dl div { display: grid; grid-template-columns: 68px 1fr; gap: 8px; font-size: 11px; }
.memory-summary dt { color: var(--muted); }
.memory-summary dd { margin: 0; font-weight: 600; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.text-button { border: 0; background: transparent; color: var(--plum); font-size: 10px; font-weight: 700; cursor: pointer; }

.nia-handoff { width: 100%; padding: 13px; border: 1px solid var(--line); border-radius: 16px; background: white; display: flex; align-items: center; gap: 10px; text-align: left; cursor: pointer; }
.nia-handoff span:nth-child(2) { flex: 1; }
.nia-handoff strong, .nia-handoff small { display: block; }
.nia-handoff strong { font-size: 11px; }
.nia-handoff small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.nia-handoff b { color: var(--plum); }
.mobile-nav { display: none; }

dialog { width: min(680px, calc(100vw - 24px)); border: 0; padding: 0; border-radius: 24px; color: var(--ink); box-shadow: 0 40px 120px rgba(37,24,34,.28); }
dialog::backdrop { background: rgba(30,23,29,.42); backdrop-filter: blur(8px); }
.dialog-card { padding: 26px; background: var(--paper); }
.compact-dialog { max-width: 520px; margin: 0 auto; }
.handoff-dialog-card { max-width: 620px; margin: 0 auto; }
.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.dialog-head h2 { margin: 6px 0 0; font-family: Manrope, sans-serif; font-size: 24px; letter-spacing: -.03em; }
.dialog-copy { color: var(--muted); font-size: 12px; line-height: 1.6; }
.form-grid { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid label { display: grid; gap: 6px; font-size: 11px; font-weight: 700; }
.form-grid label.full { grid-column: 1 / -1; }
.form-grid input, .form-grid textarea, .form-grid select { width: 100%; border: 1px solid var(--line); border-radius: 11px; background: white; padding: 10px 11px; outline: 0; color: var(--ink); }
.form-grid input:focus, .form-grid textarea:focus, .form-grid select:focus { border-color: rgba(109,48,89,.45); }
.dialog-actions { margin-top: 22px; display: grid; grid-template-columns: auto 1fr auto auto; gap: 8px; align-items: center; }
.privacy-shield { margin: 20px 0 18px; padding: 15px; border: 1px solid rgba(86,132,123,.22); border-radius: 15px; background: #eff7f3; display: flex; gap: 12px; align-items: flex-start; }
.privacy-shield > span { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 10px; display: grid; place-items: center; background: white; color: var(--sage); font-weight: 800; }
.privacy-shield strong, .privacy-shield p { display: block; }
.privacy-shield strong { font-size: 12px; }
.privacy-shield p { margin: 4px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.outcome-dialog-card { max-height: min(860px, calc(100dvh - 24px)); overflow-y: auto; }
.outcome-step[hidden] { display: none !important; }
.scale-help { color: var(--muted); font-size: 9px; font-weight: 500; }
.outcome-check { grid-template-columns: auto 1fr !important; align-items: flex-start; padding: 12px; border-radius: 12px; background: #f4f1ee; line-height: 1.45; }
.outcome-check input { width: auto !important; margin: 2px 0 0; accent-color: var(--plum); }
.outcome-session-recap { margin-top: 18px; padding: 16px; border: 1px solid rgba(74,55,116,.16); border-radius: 15px; background: #f4f1ff; }
.outcome-session-recap span, .outcome-session-recap strong { display: block; }
.outcome-session-recap span { color: var(--elitea-purple, var(--plum)); font-size: 8px; font-weight: 800; letter-spacing: .08em; }
.outcome-session-recap strong { margin-top: 6px; font: 750 15px/1.35 Manrope, sans-serif; }
.outcome-session-recap p { margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.outcome-summary-grid { margin-top: 20px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.outcome-summary-grid article { min-height: 92px; padding: 14px 10px; border: 1px solid var(--line); border-radius: 14px; display: grid; place-content: center; gap: 5px; background: #fff; text-align: center; }
.outcome-summary-grid strong { color: var(--elitea-purple, var(--plum)); font: 800 22px/1 Manrope, sans-serif; }
.outcome-summary-grid span { color: var(--muted); font-size: 8px; line-height: 1.35; }
.outcome-history-list { margin-top: 14px; display: grid; gap: 8px; }
.outcome-history-list > article { padding: 13px; border: 1px solid var(--line); border-radius: 13px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px 12px; background: #fff; }
.outcome-history-list span, .outcome-history-list strong { display: block; }
.outcome-history-list span { color: var(--muted); font-size: 8px; }
.outcome-history-list strong { margin-top: 4px; font-size: 11px; }
.outcome-history-list p { margin: 0; color: var(--muted); font-size: 9px; }
.outcome-history-list b { grid-row: 1 / 3; grid-column: 2; align-self: center; padding: 6px 8px; border-radius: 999px; color: #776e78; background: #f0ecea; font-size: 8px; }
.outcome-history-list b.done { color: #34715d; background: #e3f2eb; }
.outcome-empty { padding: 28px; color: var(--muted); text-align: center; font-size: 11px; }
.outcome-form-status { min-height: 16px; margin: 10px 0 0; color: var(--sage); font-size: 9px; }
.outcome-dialog-actions { grid-template-columns: auto 1fr auto auto; }
.handoff-topic-label { display: block; margin: 16px 0 7px; font-size: 11px; font-weight: 800; }
#handoff-topic, .handoff-document { width: 100%; border: 1px solid var(--line); border-radius: 13px; background: white; padding: 12px 13px; color: var(--ink); outline: none; resize: vertical; line-height: 1.55; }
#handoff-topic:focus, .handoff-document:focus { border-color: rgba(109,48,89,.48); box-shadow: 0 0 0 3px rgba(109,48,89,.08); }
.handoff-question { margin: 16px 0; padding-top: 16px; border-top: 1px solid var(--line); }
.handoff-question strong { font-size: 13px; line-height: 1.45; }
.handoff-question p, .handoff-sensitive-note { color: var(--muted); font-size: 11px; line-height: 1.55; }
.handoff-question p { margin: 6px 0 0; }
.handoff-actions { margin-top: 18px; }
.stacked-actions { display: grid; gap: 8px; }
.split-actions { display: flex; justify-content: space-between; gap: 10px; }
.handoff-cancel { padding: 8px; }
.handoff-document { min-height: 280px; font-size: 11px; }
.handoff-sensitive-note { margin: 8px 0 14px; }
.consent-check { padding: 13px; border-radius: 13px; background: #f4f1ee; display: flex; gap: 10px; align-items: flex-start; color: var(--ink); font-size: 11px; line-height: 1.5; cursor: pointer; }
.consent-check input { margin-top: 2px; accent-color: var(--plum); }
.handoff-ready { text-align: center; padding-top: 22px; }
.ready-mark { width: 48px; height: 48px; margin: 0 auto 13px; border-radius: 16px; display: grid; place-items: center; background: #e0f0e9; color: #47816d; font-size: 20px; font-weight: 800; }
.handoff-ready h3 { margin: 0; font-family: Manrope, sans-serif; font-size: 19px; }
.handoff-ready > p { margin: 8px auto 18px; max-width: 430px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.privacy-recap { margin: 0 0 18px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: white; text-align: left; }
.privacy-recap strong { font-size: 11px; }
.privacy-recap p { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.booking-grid { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.booking-grid label { display: grid; gap: 6px; font-size: 11px; font-weight: 800; }
.booking-grid input, .booking-grid select { width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 11px; background: white; padding: 10px 11px; color: var(--ink); outline: 0; }
.booking-grid input:focus, .booking-grid select:focus { border-color: rgba(109,48,89,.48); box-shadow: 0 0 0 3px rgba(109,48,89,.08); }
.booking-recap { margin-top: 16px; }
.booking-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.booking-error { margin: 12px 0 0; padding: 11px 13px; border-radius: 11px; background: #fff0f1; color: #8c3441; font-size: 11px; line-height: 1.5; }

/* Elitea membership + Academy */
.member-panel, .academy-panel { grid-column: 2 / 4; min-width: 0; min-height: 0; overflow: hidden; background: #f8f5f2; }
.member-scroll, .academy-scroll { height: 100%; overflow-y: auto; }
.member-scroll { padding: 34px 40px 48px; }
.member-hero { min-height: 310px; padding: 42px 46px; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(260px, .55fr); gap: 40px; align-items: center; border-radius: 30px; color: white; overflow: hidden; background: radial-gradient(circle at 90% 15%, rgba(209,172,196,.32), transparent 30%), linear-gradient(130deg, #372132, #713f60 62%, #9d6e86); box-shadow: 0 24px 60px rgba(59,32,50,.19); }
.member-hero .overline { color: #e7c98d; }
.member-hero h1 { margin: 12px 0 16px; max-width: 760px; font: 600 clamp(39px, 4.7vw, 68px)/.98 "Cormorant Garamond", Georgia, serif; letter-spacing: -.04em; }
.member-hero > div > p:not(.overline) { max-width: 630px; margin: 0; color: rgba(255,255,255,.72); font-size: 14px; line-height: 1.65; }
.hero-actions { margin-top: 25px; display: flex; gap: 10px; flex-wrap: wrap; }
.member-hero .primary-button { background: #f4dcae; color: #3a2634; }
.member-hero .secondary-button { border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.08); color: white; }
.member-orb-card { align-self: stretch; padding: 26px; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; border: 1px solid rgba(255,255,255,.15); border-radius: 25px; background: rgba(255,255,255,.08); backdrop-filter: blur(16px); }
.member-orb { width: 72px; height: 72px; margin-bottom: auto; font-size: 28px; }
.member-orb-card > span { margin-top: 28px; color: #efce8e; font-size: 8px; font-weight: 800; letter-spacing: .14em; }
.member-orb-card strong { margin-top: 8px; font: 600 21px/1.15 "Cormorant Garamond", Georgia, serif; }
.member-orb-card p { margin: 9px 0 0; color: rgba(255,255,255,.65); font-size: 10px; line-height: 1.5; }
.member-section { margin-top: 34px; }
.section-title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 15px; }
.section-title-row h2 { margin: 5px 0 0; font: 700 22px Manrope, sans-serif; letter-spacing: -.035em; }
.current-course-card { min-height: 176px; padding: 18px; display: grid; grid-template-columns: 142px minmax(0, 1fr) auto; gap: 24px; align-items: center; border: 1px solid var(--line); border-radius: 26px; background: white; box-shadow: 0 14px 40px rgba(45,28,41,.07); }
.course-cover { min-height: 300px; padding: 28px; position: relative; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; border-radius: 26px; color: white; background: radial-gradient(circle at 75% 20%, rgba(241,206,224,.45), transparent 22%), linear-gradient(145deg, #2d202b, #74425f 58%, #c291a5); box-shadow: 0 24px 46px rgba(61,34,53,.22); }
.course-cover::after { content: ""; position: absolute; width: 210px; height: 210px; right: -78px; bottom: -78px; border: 1px solid rgba(255,255,255,.24); border-radius: 50%; box-shadow: 0 0 0 25px rgba(255,255,255,.04), 0 0 0 50px rgba(255,255,255,.025); }
.course-cover span { font: 700 12px/1.2 Manrope, sans-serif; letter-spacing: .13em; }
.course-cover b { font: 600 58px/1 "Cormorant Garamond", Georgia, serif; color: #f1d49c; }
.course-cover i { position: relative; z-index: 1; font-size: 8px; font-style: normal; letter-spacing: .14em; }
.mini-cover { min-height: 138px; padding: 19px; border-radius: 19px; }
.mini-cover b { font-size: 35px; }
.current-course-main h3 { margin: 10px 0 3px; font: 700 22px Manrope, sans-serif; letter-spacing: -.04em; }
.current-course-main p { margin: 0 0 20px; color: var(--muted); font-size: 12px; }
.course-badge { color: var(--plum); font-size: 8px; font-weight: 800; letter-spacing: .13em; }
.course-progress-line { height: 5px; overflow: hidden; border-radius: 999px; background: #ebe5e8; }
.course-progress-line span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--plum), #ba7d9c); }
.current-course-main small { display: block; margin-top: 9px; color: var(--muted); font-size: 9px; }
.course-arrow { width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--plum); color: white; cursor: pointer; font-size: 18px; }
.member-grid { margin-top: 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.dashboard-card { min-height: 190px; padding: 22px; position: relative; border: 1px solid var(--line); border-radius: 22px; background: white; }
.dashboard-index { position: absolute; top: 18px; right: 20px; color: #d8c4cf; font: 600 27px "Cormorant Garamond", Georgia, serif; }
.dashboard-card h3 { margin: 13px 0 8px; max-width: 90%; font: 700 16px/1.25 Manrope, sans-serif; letter-spacing: -.03em; }
.dashboard-card p:not(.overline) { margin: 0 0 14px; color: var(--muted); font-size: 10.5px; line-height: 1.6; }
.certificate-card { color: white; background: linear-gradient(145deg, #2f2731, #5a3b50); }
.certificate-card .overline { color: #e4c687; }
.certificate-card p:not(.overline) { color: rgba(255,255,255,.65); }
.locked-pill { display: inline-flex; padding: 7px 10px; border-radius: 999px; background: rgba(255,255,255,.1); color: #e8d6df; font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }

.academy-panel { display: block; }
.academy-home, .course-reader { height: 100%; min-height: 0; }
.academy-home { display: grid; grid-template-rows: auto 1fr; }
.academy-hero { padding: 38px 44px 30px; display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; border-bottom: 1px solid var(--line); background: radial-gradient(circle at 90% 10%, rgba(198,149,177,.22), transparent 23%), linear-gradient(135deg, #fff, #f0e7ec); }
.academy-hero h1 { margin: 8px 0 10px; font: 700 clamp(32px, 4vw, 54px)/1 Manrope, sans-serif; letter-spacing: -.055em; }
.academy-hero p:not(.overline) { max-width: 760px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.academy-stat { min-width: 170px; padding: 18px; border: 1px solid rgba(109,48,89,.14); border-radius: 20px; background: rgba(255,255,255,.76); text-align: center; }
.academy-stat strong, .academy-stat span, .academy-stat small { display: block; }
.academy-stat strong { color: var(--plum); font: 700 34px Manrope, sans-serif; }
.academy-stat span { font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.academy-stat small { margin-top: 5px; color: var(--muted); font-size: 8px; }
.academy-scroll { padding: 25px 44px 50px; }
.academy-intro { max-width: 900px; margin-bottom: 22px; padding: 16px 18px; display: flex; align-items: center; gap: 13px; border: 1px solid rgba(88,125,114,.16); border-radius: 17px; background: #f0f7f4; }
.academy-intro > span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px; background: var(--sage); color: white; }
.academy-intro strong { font-size: 11px; }
.academy-intro p { margin: 3px 0 0; color: var(--muted); font-size: 9.5px; }
.academy-category-filters { max-width: 1040px; margin: 0 0 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.academy-category-filters button { min-height: 42px; padding: 8px 12px 8px 15px; display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: white; font: 800 9px Manrope, sans-serif; cursor: pointer; }
.academy-category-filters button small { min-width: 20px; height: 20px; display: grid; place-items: center; border-radius: 999px; color: var(--muted); background: #f0ece9; font-size: 8px; }
.academy-category-filters button.active { color: white; border-color: var(--plum); background: var(--plum); }
.academy-category-filters button.active small { color: var(--plum); background: white; }
.academy-course-grid { max-width: 1040px; display: grid; gap: 42px; }
.academy-category-section { min-width: 0; }
.academy-category-head { margin: 0 0 16px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.academy-category-head span { color: var(--plum); font-size: 8px; font-weight: 900; letter-spacing: .14em; }
.academy-category-head h2 { margin: 5px 0 4px; font: 700 26px/1.05 Manrope, sans-serif; letter-spacing: -.04em; }
.academy-category-head p { max-width: 680px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.academy-category-head > strong { flex: 0 0 auto; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.academy-category-course-list { display: grid; gap: 20px; }
.academy-category-empty { padding: 28px; border: 1px dashed var(--line); border-radius: 18px; background: rgba(255,255,255,.55); }
.academy-category-empty strong { font-size: 12px; }
.academy-category-empty p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.academy-course-card { padding: 22px; display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 34px; border: 1px solid var(--line); border-radius: 30px; background: white; box-shadow: 0 18px 50px rgba(46,30,42,.08); }
.academy-course-copy { padding: 16px 10px 10px 0; display: flex; flex-direction: column; align-items: flex-start; }
.academy-course-copy h2 { margin: 13px 0 2px; font: 700 31px Manrope, sans-serif; letter-spacing: -.05em; }
.academy-course-copy h3 { margin: 0 0 14px; color: var(--plum); font: 600 17px "Cormorant Garamond", Georgia, serif; }
.academy-course-copy > p { max-width: 650px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.course-facts { margin: 22px 0; display: flex; flex-wrap: wrap; gap: 7px; }
.course-facts span { padding: 7px 9px; border-radius: 999px; background: #f3efed; color: #6d626c; font-size: 8px; font-weight: 800; }
.academy-course-copy .course-progress-line { width: 100%; margin-top: auto; }
.course-card-footer { width: 100%; margin-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.course-card-footer small { color: var(--muted); font-size: 9px; }
.academy-empty { padding: 45px; border-radius: 22px; background: white; text-align: center; }
.academy-empty p { color: var(--muted); font-size: 11px; }

.course-reader { display: grid; grid-template-rows: auto 1fr; background: #fbf9f7; }
.course-reader-head { min-height: 92px; padding: 16px 28px; display: grid; grid-template-columns: 160px minmax(0, 1fr) 90px; align-items: center; gap: 18px; border-bottom: 1px solid var(--line); background: white; }
.reader-back { border: 0; background: transparent; color: var(--plum); text-align: left; font-size: 10px; font-weight: 800; cursor: pointer; }
.course-reader-head h1 { margin: 4px 0 0; font: 700 21px Manrope, sans-serif; letter-spacing: -.04em; }
.reader-progress { text-align: right; }
.reader-progress strong, .reader-progress span { display: block; }
.reader-progress strong { color: var(--plum); font: 700 25px Manrope, sans-serif; }
.reader-progress span { color: var(--muted); font-size: 8px; text-transform: uppercase; }
.course-reader-grid { min-height: 0; display: grid; grid-template-columns: 310px minmax(0, 1fr); }
.course-outline { min-height: 0; overflow-y: auto; padding: 22px 16px 40px; border-right: 1px solid var(--line); background: #f4f0ee; }
.outline-module { margin-bottom: 20px; }
.outline-module-head { margin: 0 9px 10px; }
.outline-module-head > span { display: block; margin-bottom: 3px; color: var(--plum); font: 800 7px/1.4 Manrope, sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.outline-module h3 { margin: 0; color: var(--plum-dark); font: 700 10px/1.4 Manrope, sans-serif; text-transform: uppercase; letter-spacing: .06em; }
.outline-module-head small { display: block; margin-top: 5px; color: #81777f; font: 600 7.5px/1.5 Manrope, sans-serif; }
.outline-item { width: 100%; min-height: 48px; margin: 3px 0; padding: 8px 9px; display: grid; grid-template-columns: 27px minmax(0, 1fr); gap: 1px 8px; border: 0; border-radius: 12px; background: transparent; text-align: left; cursor: pointer; }
.outline-item:hover, .outline-item.active { background: white; box-shadow: 0 6px 15px rgba(41,30,38,.06); }
.outline-item > span { grid-row: 1 / 3; width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; background: #e8e0e4; color: var(--plum); font-size: 7px; font-weight: 800; }
.outline-item.completed > span { background: var(--sage); color: white; }
.outline-item b { overflow: hidden; color: #554b54; font-size: 9px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.outline-item small { color: #9a9399; font-size: 7px; text-transform: uppercase; }
.lesson-reader { min-height: 0; overflow-y: auto; padding: 44px clamp(28px, 6vw, 90px) 60px; }
.course-mastery { max-width: 1000px; margin: 0 0 30px; border: 1px solid rgba(96,53,207,.2); border-radius: 24px; background: linear-gradient(145deg, #fff 0%, #f4f1ff 100%); box-shadow: 0 18px 45px rgba(73,44,147,.08); overflow: hidden; }
.mastery-head { padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.mastery-head > div:first-child > span, .mastery-section-intro span, .mastery-exam > header > span { color: #684bc8; font: 900 7px/1.4 Manrope, sans-serif; letter-spacing: .14em; }
.mastery-head h2 { margin: 5px 0 6px; color: #17131c; font: 800 19px/1.15 Manrope, sans-serif; letter-spacing: -.035em; }
.mastery-head p { max-width: 650px; margin: 0; color: #6f6873; font-size: 9px; line-height: 1.55; }
.mastery-progress { flex: 0 0 auto; display: grid; justify-items: end; gap: 2px; }
.mastery-progress strong { color: #6045be; font: 800 25px/1 Manrope, sans-serif; }
.mastery-progress small { color: #817989; font-size: 7px; text-transform: uppercase; }
.mastery-progress button { margin-top: 7px; padding: 8px 10px; border: 0; border-radius: 999px; color: white; background: #17131c; font: 800 7px/1 Manrope, sans-serif; cursor: pointer; }
.course-mastery:not(.expanded) .mastery-tabs, .course-mastery:not(.expanded) .mastery-content { display: none; }
.mastery-tabs { padding: 0 20px 16px; display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 1px solid #e1daf7; }
.mastery-tabs button { min-height: 34px; padding: 8px 11px; border: 1px solid #ded7f3; border-radius: 999px; color: #625d68; background: rgba(255,255,255,.8); font: 800 7.5px/1 Manrope, sans-serif; cursor: pointer; }
.mastery-tabs button.active { color: white; border-color: #6448c4; background: #6448c4; }
.mastery-content { max-height: min(68vh, 760px); padding: 22px; overflow-y: auto; }
.mastery-section-intro { margin-bottom: 18px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.mastery-section-intro h3, .mastery-exam h3 { margin: 5px 0 5px; color: #17131c; font: 800 20px/1.15 Manrope, sans-serif; letter-spacing: -.04em; }
.mastery-section-intro p { max-width: 720px; margin: 0; color: #706a74; font-size: 9px; line-height: 1.55; }
.mastery-section-intro > strong { flex: 0 0 auto; color: #6045be; font: 800 20px/1 Manrope, sans-serif; }
.mastery-day-grid, .mastery-case-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.mastery-card { padding: 16px; display: flex; flex-direction: column; border: 1px solid #ded8ef; border-radius: 16px; background: rgba(255,255,255,.9); }
.mastery-card.completed { border-color: rgba(80,131,113,.38); background: #f1f8f5; }
.mastery-card > header { display: flex; justify-content: space-between; gap: 15px; color: #6a4fd0; font: 900 7px/1.4 Manrope, sans-serif; letter-spacing: .08em; }
.mastery-card > header small { padding: 3px 6px; border-radius: 999px; color: #6e6674; background: #f0ecef; font: 800 6.5px/1 Manrope, sans-serif; letter-spacing: 0; }
.mastery-card h4 { margin: 8px 0 7px; color: #242027; font: 800 11px/1.35 Manrope, sans-serif; }
.mastery-card > p { margin: 0 0 10px; color: #6d6770; font-size: 8.5px; line-height: 1.55; }
.mastery-output { margin-top: auto; padding: 9px 10px; border-radius: 10px; color: #5f5864; background: #f5f1fa; font-size: 8px; line-height: 1.5; }
.mastery-output b { display: block; margin-bottom: 2px; color: #6045be; font-size: 6.5px; letter-spacing: .08em; text-transform: uppercase; }
.mastery-card footer { margin-top: 11px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mastery-card footer small { color: #827b85; font-size: 7px; line-height: 1.35; }
.mastery-card footer button, .mastery-exam footer button { flex: 0 0 auto; padding: 8px 10px; border: 0; border-radius: 999px; color: white; background: #17131c; font: 800 7px/1 Manrope, sans-serif; cursor: pointer; }
.mastery-card.completed footer button { background: #508371; }
.mastery-assessment-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.mastery-assessment-stage { padding: 16px; border: 1px solid #ded8ef; border-radius: 16px; background: rgba(255,255,255,.86); }
.mastery-assessment-stage > header span { color: #6045be; font: 900 8px Manrope, sans-serif; letter-spacing: .1em; }
.mastery-assessment-stage > header p { margin: 5px 0 14px; color: #77707a; font-size: 8px; }
.mastery-assessment-row { padding: 13px 0; display: grid; grid-template-columns: minmax(0, 1fr) 130px; gap: 10px; border-top: 1px solid #eee9f5; }
.mastery-assessment-row:first-of-type { border-top: 0; }
.mastery-assessment-row b { color: #29242d; font-size: 9px; }
.mastery-assessment-row p { margin: 4px 0 0; color: #756e78; font-size: 7.5px; line-height: 1.45; }
.mastery-assessment-row label, .mastery-template-body label { display: grid; gap: 4px; color: #49424d; font: 800 7px Manrope, sans-serif; }
.mastery-assessment-row label.wide { grid-column: 1 / -1; }
.mastery-assessment-row select, .mastery-assessment-row textarea, .mastery-template-body textarea { width: 100%; padding: 9px; resize: vertical; border: 1px solid #ddd6e9; border-radius: 9px; color: #39333d; background: white; font: 500 8px/1.45 Manrope, sans-serif; }
.mastery-template-list { display: grid; gap: 8px; }
.mastery-template { border: 1px solid #ded8ef; border-radius: 14px; background: rgba(255,255,255,.9); overflow: hidden; }
.mastery-template summary { padding: 13px 15px; display: grid; grid-template-columns: 28px minmax(0, 1fr) 16px; gap: 10px; align-items: center; cursor: pointer; list-style: none; }
.mastery-template summary > span { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; color: white; background: #684bc8; font: 800 7px Manrope, sans-serif; }
.mastery-template summary b, .mastery-template summary small { display: block; }
.mastery-template summary b { color: #28232c; font-size: 9px; }
.mastery-template summary small { margin-top: 3px; color: #817a84; font-size: 7px; }
.mastery-template summary i { color: #684bc8; font: 800 16px Manrope, sans-serif; }
.mastery-template-body { padding: 0 16px 18px 54px; }
.mastery-template-body > p { margin: 0 0 13px; color: #716a75; font-size: 8px; line-height: 1.5; }
.mastery-template-body label { margin-top: 11px; }
.mastery-template-body label small { color: #817985; font-weight: 500; line-height: 1.4; }
.mastery-exam { padding: 22px; border-radius: 19px; color: white; background: radial-gradient(circle at 92% 4%, rgba(164,132,255,.45), transparent 28%), #17131c; }
.mastery-exam > header p { max-width: 730px; margin: 8px 0 20px; color: #c8c0cf; font-size: 9px; line-height: 1.6; }
.mastery-exam h3 { color: white; }
.mastery-exam-rounds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mastery-exam-rounds section { padding: 13px; display: grid; grid-template-columns: 27px minmax(0, 1fr); gap: 10px; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; background: rgba(255,255,255,.05); }
.mastery-exam-rounds section > span { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; color: #17131c; background: #bfaaff; font: 900 8px Manrope, sans-serif; }
.mastery-exam-rounds b, .mastery-exam-rounds small { display: block; }
.mastery-exam-rounds b { font-size: 8.5px; }
.mastery-exam-rounds small { margin-top: 2px; color: #ad9fc0; font-size: 6.5px; }
.mastery-exam-rounds p { margin: 6px 0 0; color: #d0c8d6; font-size: 7.5px; line-height: 1.5; }
.mastery-exam-columns { margin-top: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mastery-exam-columns section { padding: 15px; border-radius: 13px; background: rgba(255,255,255,.06); }
.mastery-exam-columns h4 { margin: 0 0 8px; color: #cbbcff; font: 800 8px Manrope, sans-serif; text-transform: uppercase; letter-spacing: .08em; }
.mastery-exam-columns ul { margin: 0; padding-left: 16px; color: #d2cad7; font-size: 7.5px; line-height: 1.55; }
.mastery-exam footer { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.mastery-exam footer b { font-size: 9px; }
.mastery-exam footer p { max-width: 610px; margin: 4px 0 0; color: #bcb2c5; font-size: 7.5px; line-height: 1.5; }
.mastery-exam footer button { color: #17131c; background: #c9b7ff; }
.lesson-module-context { max-width: 790px; margin-bottom: 13px; padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-left: 3px solid var(--plum); border-radius: 0 10px 10px 0; background: #f4f0ee; }
.lesson-module-context strong { color: var(--plum-dark); font: 800 8px/1.4 Manrope, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.lesson-module-context span { color: var(--muted); font: 600 8px/1.4 Manrope, sans-serif; text-align: right; }
.lesson-meta { display: flex; gap: 10px; color: var(--plum); font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.lesson-meta span:last-child { color: var(--muted); }
.lesson-reader > h2 { max-width: 800px; margin: 13px 0 26px; font: 600 clamp(32px, 4vw, 50px)/1.04 "Cormorant Garamond", Georgia, serif; letter-spacing: -.035em; }
.lesson-content { max-width: 790px; color: #4e454d; font-size: 13px; line-height: 1.78; }
.lesson-content h3, .lesson-content h4, .lesson-content h5 { margin: 29px 0 10px; color: var(--ink); font-family: Manrope, sans-serif; letter-spacing: -.025em; }
.lesson-content p { margin: 0 0 15px; }
.lesson-content ul, .lesson-content ol { margin: 8px 0 18px; padding-left: 22px; }
.lesson-content li { margin: 7px 0; }
.lesson-content blockquote { margin: 20px 0; padding: 17px 20px; border-left: 3px solid var(--gold); border-radius: 0 14px 14px 0; background: var(--gold-soft); color: #594a38; font-family: Georgia, serif; font-size: 15px; }
.lesson-content code { padding: 2px 5px; border-radius: 5px; background: #eee9ec; font-size: .9em; }
.lesson-table-wrap { overflow-x: auto; margin: 18px 0; }
.lesson-content table { width: 100%; border-collapse: collapse; font-size: 10px; }
.lesson-content th, .lesson-content td { padding: 10px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.lesson-content th { background: #f1ecef; }
.lesson-materials { max-width: 790px; margin-top: 34px; padding: 22px; border: 1px solid rgba(96,53,207,.2); border-radius: 22px; background: linear-gradient(145deg, #fff 0%, #f3f0ff 100%); }
.lesson-materials > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 15px; }
.lesson-materials > header span { display: block; margin-bottom: 5px; color: var(--elitea-purple); font: 800 7px/1.4 Manrope, sans-serif; letter-spacing: .13em; }
.lesson-materials > header h3 { margin: 0; color: #111114; font: 800 17px/1.2 Manrope, sans-serif; letter-spacing: -.035em; }
.lesson-materials > header small { flex: 0 0 auto; padding: 7px 9px; border-radius: 999px; color: #5a46a2; background: #e8e2ff; font: 800 7px/1.2 Manrope, sans-serif; }
.lesson-material-list { display: grid; gap: 10px; }
.lesson-material-card { padding: 17px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; border: 1px solid #ddd8f4; border-radius: 16px; background: rgba(255,255,255,.92); }
.lesson-material-card.started { border-color: #b7aae9; box-shadow: 0 8px 22px rgba(73,44,147,.08); }
.lesson-material-card > div > span { color: #6a4fd0; font: 800 7px/1.4 Manrope, sans-serif; letter-spacing: .1em; }
.lesson-material-card h4 { margin: 5px 0 6px; color: #111114; font: 800 12px/1.3 Manrope, sans-serif; }
.lesson-material-card p { max-width: 540px; margin: 0; color: #66616b; font-size: 9px; line-height: 1.55; }
.lesson-material-card aside { min-width: 145px; display: grid; justify-items: end; gap: 3px; }
.lesson-material-card aside strong { color: #111114; font: 800 18px/1 Manrope, sans-serif; }
.lesson-material-card aside small { color: #837e87; font-size: 7px; }
.lesson-material-card button { margin-top: 7px; padding: 9px 11px; border: 0; border-radius: 999px; color: #fff; background: #111114; font: 800 8px/1 Manrope, sans-serif; cursor: pointer; }
.lesson-notes { max-width: 790px; margin-top: 34px; padding: 20px; border: 1px solid rgba(142,104,58,.2); border-radius: 18px; background: linear-gradient(145deg, #fffdf9, #f8f1e7); }
.lesson-notes label { display: grid; gap: 4px; color: var(--ink); }
.lesson-notes label strong { font: 700 11px Manrope, sans-serif; }
.lesson-notes label span, .lesson-notes small { color: var(--muted); font-size: 8px; line-height: 1.5; }
.lesson-notes textarea { width: 100%; min-height: 130px; margin: 13px 0 8px; padding: 14px 15px; resize: vertical; border: 1px solid rgba(70,53,63,.14); border-radius: 13px; background: rgba(255,255,255,.86); color: var(--ink); font: 500 11px/1.65 Manrope, sans-serif; outline: none; }
.lesson-notes textarea:focus { border-color: rgba(109,48,89,.48); box-shadow: 0 0 0 3px rgba(109,48,89,.08); }
.lesson-coach-box { max-width: 790px; margin-top: 34px; padding: 18px; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 13px; align-items: center; border: 1px solid rgba(109,48,89,.17); border-radius: 18px; background: linear-gradient(135deg, #fff, #f5ecf1); }
.nia-orb.tiny { width: 38px; height: 38px; font-size: 14px; }
.lesson-coach-box strong { font-size: 11px; }
.lesson-coach-box p { margin: 3px 0 0; color: var(--muted); font-size: 9px; }
.lesson-coach-box button { border: 0; border-radius: 999px; padding: 10px 12px; background: var(--plum); color: white; font-size: 9px; font-weight: 800; cursor: pointer; }
.lesson-actions { max-width: 790px; margin-top: 24px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 9px; }
.lesson-actions button:last-child { justify-self: end; }
.lesson-actions button:disabled { opacity: .35; cursor: not-allowed; }
.lesson-actions .completed { background: var(--sage); }

@keyframes pulse { 0%, 80%, 100% { opacity: .28; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-2px); } }
@keyframes enter { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1160px) {
  .workspace { grid-template-columns: 210px minmax(480px, 1fr); }
  .insight-panel { display: none; }
  .content-panel, .member-panel, .academy-panel { grid-column: 2; }
  .content-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .member-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .certificate-card { grid-column: 1 / -1; }
  .course-reader-grid { grid-template-columns: 260px minmax(0, 1fr); }
}

@media (max-width: 820px) {
  body { overflow: hidden; background: var(--paper); }
  .app-shell { grid-template-rows: 66px minmax(0, 1fr) 62px; width: 100%; height: 100dvh; margin: 0; border: 0; border-radius: 0; }
  .topbar { height: 66px; padding: 0 15px; }
  .brand small, .status-pill span { display: none; }
  .library-top-button { padding: 8px 10px; font-size: 9px; }
  .status-pill { padding: 10px; }
  .workspace { min-height: 0; display: block; }
  .sidebar { display: none; }
  .chat-panel { height: 100%; min-height: 0; }
  .member-panel, .academy-panel { height: 100%; min-height: 0; }
  .member-scroll { padding: 15px 14px 30px; }
  .member-hero { min-height: 0; padding: 30px 23px; grid-template-columns: 1fr; border-radius: 23px; }
  .member-hero h1 { font-size: clamp(38px, 11vw, 54px); }
  .course-mastery { border-radius: 18px; }
  .mastery-head { padding: 17px; align-items: flex-start; }
  .mastery-head h2 { font-size: 15px; }
  .mastery-head p { display: none; }
  .mastery-tabs { padding: 0 13px 13px; flex-wrap: nowrap; overflow-x: auto; }
  .mastery-tabs button { flex: 0 0 auto; }
  .mastery-content { padding: 14px; max-height: 70vh; }
  .mastery-day-grid, .mastery-case-grid, .mastery-assessment-grid, .mastery-exam-rounds, .mastery-exam-columns { grid-template-columns: 1fr; }
  .mastery-section-intro { align-items: flex-start; }
  .mastery-section-intro > strong { font-size: 15px; }
  .mastery-assessment-row { grid-template-columns: 1fr; }
  .mastery-assessment-row label.wide { grid-column: auto; }
  .mastery-template-body { padding-left: 16px; }
  .mastery-exam footer { align-items: flex-start; flex-direction: column; }
  .member-orb-card { display: none; }
  .member-section { margin-top: 25px; }
  .current-course-card { min-height: 142px; padding: 14px; grid-template-columns: 88px minmax(0, 1fr) auto; gap: 14px; border-radius: 20px; }
  .mini-cover { min-height: 112px; padding: 13px; border-radius: 15px; }
  .mini-cover span { font-size: 8px; }
  .mini-cover b { font-size: 29px; }
  .current-course-main h3 { font-size: 17px; }
  .current-course-main p { margin-bottom: 14px; font-size: 10px; }
  .course-arrow { width: 38px; height: 38px; }
  .member-grid { grid-template-columns: 1fr; }
  .certificate-card { grid-column: auto; }
  .academy-hero { padding: 27px 19px 22px; }
  .academy-hero h1 { font-size: 37px; }
  .academy-stat { display: none; }
  .academy-scroll { padding: 17px 14px 32px; }
  .academy-intro { align-items: flex-start; }
  .academy-category-filters { flex-wrap: nowrap; margin-right: -14px; padding-right: 14px; overflow-x: auto; scrollbar-width: none; }
  .academy-category-filters button { flex: 0 0 auto; }
  .academy-category-head { align-items: flex-start; }
  .academy-category-head > strong { display: none; }
  .academy-category-head h2 { font-size: 23px; }
  .academy-course-card { padding: 14px; grid-template-columns: 1fr; gap: 22px; border-radius: 22px; }
  .academy-course-card .course-cover { min-height: 190px; }
  .academy-course-copy { padding: 2px 4px 6px; }
  .academy-course-copy h2 { font-size: 27px; }
  .course-reader-head { min-height: 78px; padding: 12px 14px; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; }
  .course-reader-head .course-badge { display: none; }
  .course-reader-head h1 { font-size: 16px; }
  .reader-progress strong { font-size: 19px; }
  .course-reader-grid { display: grid; grid-template-columns: 1fr; grid-template-rows: minmax(112px, 22dvh) minmax(0, 1fr); }
  .course-outline { padding: 12px 10px 18px; border-right: 0; border-bottom: 1px solid var(--line); }
  .outline-module { margin-bottom: 11px; }
  .outline-item { min-height: 42px; }
  .lesson-reader { padding: 25px 18px 42px; }
  .lesson-module-context { align-items: flex-start; flex-direction: column; gap: 3px; }
  .lesson-module-context span { text-align: left; }
  .lesson-reader > h2 { margin-bottom: 20px; font-size: 34px; }
  .lesson-content { font-size: 12.5px; }
  .lesson-materials { padding: 16px; border-radius: 18px; }
  .lesson-materials > header { align-items: flex-start; flex-direction: column; gap: 8px; }
  .lesson-material-card { grid-template-columns: 1fr; gap: 14px; }
  .lesson-material-card aside { justify-items: start; }
  .lesson-coach-box { grid-template-columns: 40px minmax(0, 1fr); }
  .lesson-coach-box button { grid-column: 1 / -1; }
  .lesson-actions { grid-template-columns: 1fr 1fr; }
  .lesson-actions .primary-button { grid-column: 1 / -1; grid-row: 1; }
  .lesson-actions button:last-child { justify-self: stretch; }
  .content-panel { height: 100%; display: grid; grid-template-rows: auto auto 1fr; }
  .library-hero { padding: 24px 18px 18px; align-items: flex-start; }
  .library-stat { display: none; }
  .library-toolbar { padding: 11px 15px; display: grid; }
  .library-search { min-width: 0; }
  .library-scroll { padding: 16px 15px 30px; }
  .content-grid { grid-template-columns: 1fr; }
  .library-intro, .creator-note { align-items: flex-start; flex-direction: column; }
  .chat-header { min-height: 66px; padding: 11px 16px; }
  .session-toolbar { min-height: 52px; padding: 7px 13px; grid-template-columns: minmax(0, 1fr) auto; gap: 7px; }
  .session-toolbar label, .session-toolbar p { display: none; }
  .session-toolbar select { width: 100%; }
  .chat-title-row { gap: 7px; flex-wrap: wrap; }
  .personalized-pill { display: none; }
  .welcome-block { padding: 38px 18px 24px; }
  .welcome-copy { font-size: 13px; }
  .membership-value { border-radius: 16px; align-items: flex-start; }
  .quick-grid { grid-template-columns: 1fr; }
  .messages { padding: 22px 15px 40px; }
  .message { max-width: 94%; }
  .composer-wrap { padding: 10px 12px 12px; }
  .trust-strip { gap: 9px; justify-content: space-between; }
  .trust-strip span:nth-child(3) { display: none; }
  .disclaimer { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid label.full { grid-column: auto; }
  .dialog-actions { grid-template-columns: 1fr 1fr; }
  .onboarding-actions { grid-template-columns: 1fr; }
  .onboarding-actions .secondary-button, .onboarding-actions .primary-button { width: 100%; }
  .dialog-actions span { display: none; }
  .mobile-nav { height: 62px; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); background: rgba(255,253,250,.96); backdrop-filter: blur(20px); }
  .mobile-nav button { border: 0; background: transparent; color: #918891; display: grid; place-items: center; align-content: center; gap: 3px; cursor: pointer; }
  .mobile-nav button.active { color: var(--plum); }
  .mobile-nav button span { font-size: 17px; line-height: 1; }
  .mobile-nav button small { font-size: 9px; font-weight: 700; }
  .split-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .booking-grid { grid-template-columns: 1fr; }
  .handoff-dialog-card { max-height: calc(100dvh - 24px); overflow-y: auto; }
  .outcome-summary-grid { grid-template-columns: 1fr 1fr; }
  .outcome-dialog-actions { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  .top-actions { gap: 7px; }
  .avatar { display: none; }
  .hero-actions { display: grid; }
  .current-course-card { grid-template-columns: 72px minmax(0, 1fr); }
  .mini-cover { min-height: 96px; }
  .course-arrow { grid-column: 1 / -1; width: 100%; height: 36px; border-radius: 12px; }
  .section-title-row { align-items: flex-start; }
  .section-title-row .text-button { max-width: 92px; }
  .course-card-footer { align-items: stretch; flex-direction: column; }
  .course-card-footer .primary-button { width: 100%; }
}

/* Interactive worksheet library */
.worksheets-panel {
  grid-column: 2 / 4;
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  overflow: hidden;
  color: var(--elitea-ink);
  background: #f4f4f6;
}

.worksheets-hero {
  min-height: 295px;
  padding: 42px clamp(28px, 4vw, 62px) 38px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 50px;
  align-items: end;
  overflow: hidden;
  position: relative;
  color: #fff;
  background: #111114;
}

.worksheets-hero::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -70px;
  top: -90px;
  border-radius: 50%;
  background: #ff7a18;
  opacity: .92;
}

.worksheets-hero > div { position: relative; z-index: 1; }
.worksheets-hero .overline { color: #bda9ff; }
.worksheets-hero h1 {
  max-width: 850px;
  margin: 11px 0 14px;
  font: 800 clamp(44px, 5vw, 74px)/.92 Manrope, sans-serif;
  letter-spacing: -.07em;
}
.worksheets-hero h1 span { color: #c8ffed; }
.worksheets-hero > div:first-child > p:last-child { max-width: 760px; margin: 0; color: rgba(255,255,255,.67); font-size: 12px; line-height: 1.65; }

.worksheets-hero-stat {
  min-height: 170px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 0 0 44px 0;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(12px);
}
.worksheets-hero-stat strong { color: #c8ffed; font: 800 62px/.82 Manrope, sans-serif; letter-spacing: -.08em; }
.worksheets-hero-stat span { margin-top: 13px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.worksheets-hero-stat small { margin-top: 7px; color: rgba(255,255,255,.55); font-size: 9px; }

.worksheets-toolbar {
  padding: 14px clamp(20px, 4vw, 62px);
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #dedee4;
  background: rgba(255,255,255,.95);
}
.worksheet-filters { display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; }
.worksheet-filters::-webkit-scrollbar { display: none; }
.worksheet-filter {
  min-height: 34px;
  padding: 0 12px;
  flex: 0 0 auto;
  border: 1px solid #dfdfe4;
  border-radius: 999px;
  color: #5f5f66;
  background: #fff;
  font-size: 8px;
  font-weight: 800;
  cursor: pointer;
}
.worksheet-filter span { margin-left: 5px; color: #9999a0; }
.worksheet-filter.active { color: #fff; border-color: #111114; background: #111114; }
.worksheet-filter.active span { color: #c8ffed; }
.worksheet-search { min-width: 240px; padding: 9px 12px; display: flex; gap: 8px; align-items: center; border: 1px solid #dfdfe4; border-radius: 12px; background: #fff; }
.worksheet-search span { color: var(--elitea-purple); }
.worksheet-search input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; font-size: 10px; }

.worksheets-scroll { padding: 24px clamp(20px, 4vw, 62px) 56px; overflow-y: auto; }
.worksheets-intro {
  margin-bottom: 20px;
  padding: 17px 19px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid #dedee4;
  border-radius: 0 0 26px 0;
  background: #fff;
}
.worksheets-intro > div { display: flex; gap: 13px; align-items: center; }
.worksheets-intro > div > span { width: 40px; height: 40px; display: grid; place-items: center; flex: 0 0 auto; color: #fff; border-radius: 50%; background: var(--elitea-purple); }
.worksheets-intro strong { font-size: 11px; }
.worksheets-intro p { margin: 3px 0 0; color: #74747b; font-size: 9px; line-height: 1.45; }
.worksheets-intro button { flex: 0 0 auto; border: 0; color: var(--elitea-purple); background: transparent; font-size: 9px; font-weight: 800; cursor: pointer; }

.worksheets-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.worksheet-card {
  min-height: 310px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  border: 1px solid #dedee4;
  border-radius: 0 0 48px 0;
  background: #fff;
}
.worksheet-card:nth-child(4n+2) { background: #f0edff; }
.worksheet-card:nth-child(4n+3) { background: #fff3e5; }
.worksheet-card:nth-child(4n+4) { background: #ebfff8; }
.worksheet-card.started { box-shadow: inset 4px 0 0 var(--elitea-purple); }
.worksheet-card-top { display: flex; justify-content: space-between; gap: 12px; color: var(--elitea-purple); font-size: 7px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.worksheet-card-top b { color: #8a8a91; }
.worksheet-card-number { width: 44px; height: 44px; margin: 28px 0 20px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #111114; font-size: 10px; font-weight: 800; }
.worksheet-card h2 { margin: 0; font: 800 22px/1 Manrope, sans-serif; letter-spacing: -.05em; }
.worksheet-card > p { margin: 10px 0 18px; color: #67676e; font-size: 9px; line-height: 1.55; }
.worksheet-card-progress { height: 3px; margin-top: auto; overflow: hidden; border-radius: 999px; background: rgba(17,17,20,.1); }
.worksheet-card-progress span { height: 100%; display: block; background: var(--elitea-purple); }
.worksheet-card footer { margin-top: 13px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.worksheet-card footer small { color: #85858c; font-size: 7px; }
.worksheet-card footer button { border: 0; color: #111114; background: transparent; font-size: 8px; font-weight: 800; cursor: pointer; }
.worksheets-empty { padding: 70px 20px; text-align: center; color: #77777e; }
.worksheets-empty strong { color: #111114; }

.worksheet-dialog {
  width: min(1040px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 0;
  border-radius: 0 0 46px 0;
  color: #111114;
  background: #f6f6f7;
  box-shadow: 0 36px 110px rgba(0,0,0,.35);
}
.worksheet-dialog::backdrop { background: rgba(17,17,20,.72); backdrop-filter: blur(6px); }
.worksheet-dialog-shell { max-height: calc(100vh - 32px); overflow-y: auto; }
.worksheet-dialog-head { padding: 34px 38px 30px; display: flex; justify-content: space-between; gap: 30px; color: #fff; background: #111114; }
.worksheet-dialog-head > div > span { color: #c8ffed; font-size: 8px; font-weight: 800; letter-spacing: .14em; }
.worksheet-dialog-head h2 { margin: 10px 0 7px; font: 800 clamp(32px, 4vw, 55px)/.94 Manrope, sans-serif; letter-spacing: -.065em; }
.worksheet-dialog-head p { margin: 0; color: rgba(255,255,255,.58); font-size: 9px; }
.worksheet-dialog-head button { width: 40px; height: 40px; flex: 0 0 auto; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; color: #fff; background: transparent; font-size: 24px; cursor: pointer; }
.worksheet-method-box { margin: 24px 38px 0; padding: 22px 24px; border: 1px solid #dedee4; border-radius: 0 0 28px 0; background: #f0edff; }
.worksheet-method-box > span { color: var(--elitea-purple); font-size: 8px; font-weight: 800; letter-spacing: .14em; }
.worksheet-method-box p { margin: 9px 0 12px; font-size: 12px; font-weight: 750; line-height: 1.5; }
.worksheet-method-box small { display: block; padding-top: 11px; border-top: 1px solid rgba(96,53,207,.14); color: #77727b; font-size: 8px; line-height: 1.5; }
.worksheet-resource { margin: 24px 38px 0; padding: 24px; border: 1px solid #dedee4; border-radius: 0 0 28px 0; background: #fff; }
.worksheet-resource > header { padding-bottom: 16px; border-bottom: 1px solid #e7e7eb; }
.worksheet-resource > header span { color: var(--elitea-purple); font-size: 8px; font-weight: 800; letter-spacing: .14em; }
.worksheet-resource > header p { margin: 7px 0 0; color: #77777e; font-size: 9px; }
.worksheet-resource-content { max-height: 58vh; padding: 18px 4px 4px; overflow-y: auto; }
.worksheet-resource-content h1 { font-size: 25px; }
.worksheet-resource-content h2 { margin-top: 30px; font-size: 21px; }
.worksheet-resource-content h3 { margin-top: 22px; font-size: 14px; }
.worksheet-resource-content p, .worksheet-resource-content li { font-size: 11px; line-height: 1.72; }
.worksheet-fields { padding: 24px 38px 32px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.worksheet-field { padding: 20px; display: flex; flex-direction: column; border: 1px solid #dedee4; border-radius: 0 0 28px 0; background: #fff; }
.worksheet-field:last-child { grid-column: 1 / -1; }
.worksheet-field > span { display: flex; gap: 10px; align-items: center; font-size: 11px; font-weight: 800; }
.worksheet-field > span b { width: 27px; height: 27px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: #fff; background: #111114; font-size: 7px; }
.worksheet-field small { min-height: 28px; margin: 8px 0 11px; color: #77777e; font-size: 8px; line-height: 1.45; }
.worksheet-field textarea { width: 100%; min-height: 105px; padding: 13px 14px; resize: vertical; border: 1px solid #e0e0e4; border-radius: 12px; color: #111114; background: #fafafa; font: 10px/1.55 Manrope, sans-serif; outline: 0; }
.worksheet-field textarea:focus { border-color: var(--elitea-purple); box-shadow: 0 0 0 3px rgba(96,53,207,.1); background: #fff; }
.worksheet-field-check { min-height: 160px; }
.worksheet-check-control { margin-top: auto; padding: 12px 13px; display: flex !important; gap: 9px !important; align-items: center; border: 1px solid #ddd8f4; border-radius: 12px; color: #4f426b; background: #f6f3ff; font-size: 8px !important; cursor: pointer; }
.worksheet-check-control input { width: 18px; height: 18px; margin: 0; accent-color: var(--elitea-purple); }
.worksheet-check-control i { font-style: normal; }
.worksheet-dialog-actions { padding: 20px 38px 30px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid #dedee4; background: #fff; }
.worksheet-dialog-actions > p { max-width: 250px; margin: 0; color: #77777e; font-size: 8px; line-height: 1.4; }
.worksheet-dialog-actions > div { display: flex; gap: 8px; }
.worksheet-dialog-actions button { min-height: 42px; padding: 0 15px; border: 1px solid #d9d9de; border-radius: 999px; background: #fff; font-size: 8px; font-weight: 800; cursor: pointer; }
.worksheet-dialog-actions .worksheet-discuss { color: var(--elitea-purple); border-color: var(--elitea-purple); }
.worksheet-dialog-actions .worksheet-save { color: #fff; border-color: #111114; background: #111114; }

@media (max-width: 1180px) {
  .worksheets-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .worksheets-panel { grid-column: 1; height: 100%; }
  .member-mode .mobile-nav { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .worksheets-hero { min-height: 250px; padding: 28px 18px 25px; grid-template-columns: 1fr; gap: 20px; }
  .worksheets-hero-stat { display: none; }
  .worksheets-toolbar { padding: 11px 15px; display: grid; }
  .worksheet-search { min-width: 0; }
  .worksheets-scroll { padding: 16px 15px 35px; }
  .worksheets-intro { align-items: flex-start; flex-direction: column; }
  .worksheets-grid { grid-template-columns: 1fr; }
  .worksheet-dialog-head { padding: 26px 20px 23px; }
  .worksheet-method-box { margin: 16px 16px 0; }
  .worksheet-resource { margin: 16px 16px 0; padding: 18px; }
  .worksheet-fields { padding: 16px; grid-template-columns: 1fr; }
  .worksheet-field:last-child { grid-column: auto; }
  .worksheet-dialog-actions { padding: 17px 16px 22px; align-items: stretch; flex-direction: column; }
  .worksheet-dialog-actions > div { display: grid; grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .worksheets-hero h1 { font-size: 43px; }
  .worksheet-card { min-height: 290px; }
  .worksheet-dialog { width: 100vw; max-height: 100dvh; border-radius: 0; }
  .worksheet-dialog-shell { max-height: 100dvh; }
}

@media print {
  body * { visibility: hidden !important; }
  .worksheet-dialog, .worksheet-dialog * { visibility: visible !important; }
  .worksheet-dialog { position: absolute; inset: 0; width: 100%; max-height: none; border-radius: 0; box-shadow: none; }
  .worksheet-dialog-shell { max-height: none; overflow: visible; }
  .worksheet-dialog-head button, .worksheet-dialog-actions button { display: none !important; }
  .worksheet-field textarea { min-height: 150px; border-color: #aaa; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
.onboarding-cta {
  margin: 18px auto 22px; padding: 12px 17px; border: 1px solid rgba(109,48,89,.18); border-radius: 999px;
  display: flex; align-items: center; gap: 10px; background: linear-gradient(135deg, #fff, var(--plum-soft));
  color: var(--plum); font-size: 12px; font-weight: 800; cursor: pointer; box-shadow: 0 8px 24px rgba(77,30,63,.08);
}
.onboarding-cta:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(77,30,63,.13); }
.onboarding-cta span { font-size: 16px; }
.onboarding-cta.completed { background: #eff7f3; color: var(--sage); border-color: rgba(86,132,123,.2); }

.onboarding-card { max-width: 780px; }
.onboarding-progress { display: flex; gap: 7px; margin: 18px 0; }
.onboarding-progress span { height: 4px; flex: 1; border-radius: 999px; background: linear-gradient(90deg, var(--plum), #b67698); }
.privacy-note { margin-top: 16px; padding: 12px 14px; border-radius: 13px; background: #f4f1ee; color: var(--muted); font-size: 11px; line-height: 1.5; }
.privacy-note strong { color: var(--ink); }
.onboarding-actions { grid-template-columns: auto 1fr auto; }

.celebration {
  position: fixed; z-index: 100; left: 50%; top: 28px; width: min(520px, calc(100vw - 32px));
  transform: translateX(-50%); padding: 18px 22px; border-radius: 18px;
  background: linear-gradient(135deg, #5b274b, #8b4b72); color: #fff;
  box-shadow: 0 20px 60px rgba(77,30,63,.3); animation: celebration-in .35s ease both;
}
.celebration::after { content: "✦  ·  ✧  ·  ✦"; display: block; margin-top: 9px; color: #edcf95; letter-spacing: .25em; }
.celebration strong, .celebration span { display: block; }
.celebration strong { font-family: Manrope, sans-serif; font-size: 16px; margin-bottom: 4px; }
.celebration span { font-size: 12px; line-height: 1.5; opacity: .88; }
@keyframes celebration-in { from { opacity: 0; transform: translate(-50%, -12px) scale(.97); } to { opacity: 1; transform: translate(-50%, 0) scale(1); } }

/* Elitea 2.0 — premium product system */
:root {
  --ink: #1c191b;
  --muted: #716b70;
  --line: rgba(28, 25, 27, .10);
  --paper: #f4f2ef;
  --white: #fff;
  --plum: #754968;
  --plum-dark: #2b2028;
  --plum-soft: #f0e9ed;
  --gold: #b58b4e;
  --gold-soft: #f3ecdf;
  --sage: #57746a;
  --shadow: 0 24px 70px rgba(31, 24, 29, .10);
  --radius: 20px;
}

body {
  background: #d9d6d1;
  font-family: "DM Sans", system-ui, sans-serif;
}

.ambient { display: none; }

.app-shell {
  width: calc(100vw - 24px);
  height: calc(100dvh - 24px);
  margin: 12px;
  grid-template-rows: 70px minmax(0, 1fr);
  border: 0;
  border-radius: 22px;
  background: var(--paper);
  box-shadow: 0 20px 70px rgba(22, 18, 20, .18);
}

.topbar {
  height: 70px;
  padding: 0 22px;
  border-bottom: 1px solid #e7e3df;
  background: rgba(255, 255, 255, .94);
}

.brand { gap: 11px; }
.brand-mark {
  width: 37px;
  height: 37px;
  border: 0;
  border-radius: 11px;
  color: white;
  background: #221b20;
  box-shadow: none;
  font-size: 15px;
}
.brand strong { font: 800 17px/1 Manrope, sans-serif; letter-spacing: -.035em; }
.brand small { margin-top: 4px; font-size: 8px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }

.library-top-button {
  padding: 9px 14px;
  border: 1px solid #dfd9dc;
  border-radius: 10px;
  background: white;
  color: #33272f;
  font-size: 10px;
  letter-spacing: .02em;
}
.library-top-button:hover { border-color: #bdaeb7; background: #f8f5f7; }
.status-pill { background: #f5f3f1; font-size: 10px; }
.icon-button { border-radius: 11px; box-shadow: none; }
.avatar { background: #2a2227; box-shadow: none; }

.workspace { grid-template-columns: 238px minmax(520px, 1fr) 292px; }

.sidebar {
  padding: 25px 16px 18px;
  display: flex;
  flex-direction: column;
  border-right: 0;
  background: #201b1f;
  color: white;
}
.sidebar-heading { padding: 0 10px; }
.sidebar-heading > span { color: rgba(255,255,255,.38); font-size: 8px; letter-spacing: .16em; }
.sidebar .mini-icon { color: rgba(255,255,255,.7); }
.nav-list { gap: 4px; }
.nav-item {
  min-height: 48px;
  padding: 9px 11px;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  border-radius: 12px;
  color: rgba(255,255,255,.58);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.nav-item:hover { color: white; background: rgba(255,255,255,.06); transform: translateX(2px); }
.nav-item.active { color: white; background: rgba(255,255,255,.11); box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.nav-item small { color: rgba(255,255,255,.28); font-size: 7px; }
.nav-code {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 7px;
  color: rgba(255,255,255,.42);
  font: 700 7px Manrope, sans-serif;
}
.nav-item.active .nav-code { border-color: #b98aab; color: #e7c4da; background: rgba(185,138,171,.14); }
.sidebar .progress-card {
  margin-top: auto;
  padding: 17px;
  border-color: rgba(255,255,255,.08);
  border-radius: 15px;
  background: rgba(255,255,255,.055);
}
.sidebar .progress-card .eyebrow { color: #cda7c0; font-size: 7px; }
.sidebar .progress-title { color: rgba(255,255,255,.42); }
.sidebar .progress-title strong { color: white; font-size: 16px; }
.sidebar .progress-track { background: rgba(255,255,255,.1); }
.sidebar .progress-card p { color: rgba(255,255,255,.48); font-size: 9px; }
.quote-card, .whatsapp-card { display: none; }

.member-panel, .academy-panel, .community-panel {
  grid-column: 2 / 4;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: var(--paper);
}

.member-scroll { padding: 28px 34px 48px; }
.member-hero {
  position: relative;
  min-height: 298px;
  padding: 42px 44px;
  grid-template-columns: minmax(0, 1.4fr) minmax(250px, .6fr);
  gap: 32px;
  border: 1px solid #e5e0dc;
  border-radius: 24px;
  color: var(--ink);
  background: #fcfbf9;
  box-shadow: none;
}
.member-hero::before {
  content: "ELITEA / PRIVATE MEMBERSHIP";
  position: absolute;
  top: 22px;
  right: 28px;
  color: #c6bec3;
  font: 700 7px Manrope, sans-serif;
  letter-spacing: .16em;
}
.member-hero .overline { color: var(--plum); }
.member-hero h1 { max-width: 720px; margin: 14px 0 17px; color: #1d1a1c; font: 600 clamp(40px, 4.5vw, 65px)/.96 "Cormorant Garamond", Georgia, serif; }
.member-hero > div > p:not(.overline) { max-width: 560px; color: #777075; font-size: 13px; }
.hero-actions { margin-top: 27px; }
.primary-button, .member-hero .primary-button {
  border-radius: 10px;
  background: #221b20;
  color: white;
  box-shadow: none;
}
.secondary-button, .member-hero .secondary-button {
  border-color: #d8d1d5;
  border-radius: 10px;
  background: transparent;
  color: #332a30;
}
.member-orb-card {
  padding: 24px;
  border: 0;
  border-radius: 18px;
  color: white;
  background: #241d22;
  box-shadow: 0 18px 36px rgba(36,29,34,.15);
}
.member-orb {
  width: 62px;
  height: 62px;
  border: 1px solid rgba(255,255,255,.16);
  background: radial-gradient(circle at 35% 25%, #dbc1d1, #81566f 47%, #3a2934 76%);
}
.member-orb-card > span { color: #d8b8cc; }

.member-section { margin-top: 29px; }
.section-title-row { margin-bottom: 13px; }
.section-title-row h2 { font-size: 19px; }
.text-button { color: #5f3d53; }
.current-course-card {
  min-height: 165px;
  padding: 14px;
  grid-template-columns: 132px minmax(0, 1fr) auto;
  border-color: #ded7db;
  border-radius: 19px;
  box-shadow: none;
}
.course-cover {
  border-radius: 20px;
  background: radial-gradient(circle at 78% 16%, rgba(242,213,229,.52), transparent 23%), linear-gradient(145deg, #271e24, #6f455e 65%, #af8298);
  box-shadow: 0 18px 38px rgba(48,32,42,.16);
}
.mini-cover { min-height: 137px; border-radius: 14px; }
.current-course-main h3 { font-size: 20px; }
.course-badge { font-size: 7px; letter-spacing: .15em; }
.course-arrow { border-radius: 11px; background: #221b20; }
.member-grid { gap: 12px; }
.dashboard-card { min-height: 178px; padding: 20px; border-radius: 16px; box-shadow: none; }
.dashboard-card h3 { font-size: 15px; }
.dashboard-index { color: #d9d2d6; font-size: 22px; }
.certificate-card { background: #292126; }

.community-preview {
  margin-top: 14px;
  min-height: 218px;
  padding: 32px 36px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  gap: 46px;
  align-items: center;
  border-radius: 18px;
  color: white;
  background: #34443f;
}
.community-preview .overline { color: #b8d0c7; }
.community-preview h2 { margin: 8px 0 10px; font: 600 31px/1 "Cormorant Garamond", Georgia, serif; }
.community-preview-copy > p:not(.overline) { max-width: 590px; margin: 0; color: rgba(255,255,255,.62); font-size: 11px; line-height: 1.65; }
.community-preview .secondary-button { margin-top: 19px; border-color: rgba(255,255,255,.2); color: white; }
.community-preview-activity { padding: 5px 0 5px 28px; border-left: 1px solid rgba(255,255,255,.14); }
.avatar-stack { display: flex; margin-bottom: 18px; }
.avatar-stack span { width: 34px; height: 34px; margin-left: -7px; display: grid; place-items: center; border: 2px solid #34443f; border-radius: 50%; background: #e9e4df; color: #3e353b; font-size: 7px; font-weight: 800; }
.avatar-stack span:first-child { margin-left: 0; }
.avatar-stack span:last-child { background: #202a27; color: white; }
.community-preview-activity strong { display: block; color: #c5d9d1; font-size: 8px; letter-spacing: .1em; text-transform: uppercase; }
.community-preview-activity p { margin: 8px 0 10px; font: 600 15px/1.45 "Cormorant Garamond", Georgia, serif; }
.community-preview-activity small { color: rgba(255,255,255,.45); font-size: 8px; }

.community-scroll { height: 100%; overflow-y: auto; }
.community-hero {
  min-height: 250px;
  padding: 42px 46px 36px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 38px;
  border-bottom: 1px solid #e1ddd9;
  background: #fcfbf9;
}
.community-hero h1 { max-width: 760px; margin: 10px 0 12px; font: 600 clamp(40px, 4.5vw, 62px)/.96 "Cormorant Garamond", Georgia, serif; letter-spacing: -.035em; }
.community-hero > div:first-child > p:last-child { max-width: 680px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.community-presence { min-width: 210px; padding: 18px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 2px 9px; border: 1px solid #ded8d4; border-radius: 14px; background: white; }
.presence-dot { grid-row: 1 / 3; width: 9px; height: 9px; border-radius: 50%; background: #5f9c7e; box-shadow: 0 0 0 5px rgba(95,156,126,.12); }
.community-presence strong { font-size: 10px; }
.community-presence small { color: var(--muted); font-size: 8px; }
.community-layout { max-width: 1180px; padding: 30px 44px 50px; display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 24px; }
.feed-toolbar { margin-bottom: 15px; display: flex; align-items: flex-end; justify-content: space-between; gap: 15px; }
.feed-toolbar h2 { margin: 5px 0 0; font: 700 20px Manrope, sans-serif; letter-spacing: -.04em; }
.feed-tabs { padding: 3px; display: flex; border-radius: 9px; background: #eae6e3; }
.feed-tabs button { border: 0; border-radius: 7px; padding: 7px 10px; background: transparent; color: var(--muted); font-size: 8px; font-weight: 800; }
.feed-tabs button.active { background: white; color: var(--ink); box-shadow: 0 2px 8px rgba(31,25,29,.08); }
.community-feed { min-width: 0; }
.community-post { margin-bottom: 12px; padding: 23px 25px; border: 1px solid #dfdad6; border-radius: 17px; background: white; }
.featured-post { border-color: #d8c7d1; background: linear-gradient(135deg, #fff, #faf6f8); }
.post-author { display: flex; align-items: center; gap: 10px; }
.member-avatar { width: 35px; height: 35px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 11px; color: white; background: #614657; font-size: 8px; font-weight: 800; }
.member-avatar.sand { color: #5a493a; background: #e4d5c2; }
.member-avatar.sage { background: #6d887e; }
.post-author div { min-width: 0; }
.post-author strong, .post-author small { display: block; }
.post-author strong { font-size: 10px; }
.post-author small { margin-top: 2px; color: #999297; font-size: 8px; }
.expert-tag { margin-left: auto; padding: 5px 7px; border-radius: 6px; background: #efe5eb; color: #72455f; font-size: 6px; font-weight: 800; letter-spacing: .12em; }
.post-topic { display: block; margin-top: 21px; color: var(--plum); font-size: 7px; font-weight: 800; letter-spacing: .14em; }
.community-post h3 { margin: 8px 0 9px; font: 700 18px/1.3 Manrope, sans-serif; letter-spacing: -.035em; }
.community-post > p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.post-footer { margin-top: 20px; padding-top: 14px; display: flex; align-items: center; gap: 17px; border-top: 1px solid #eeeae7; color: #8a8388; font-size: 8px; font-weight: 700; }
.post-footer button { margin-left: auto; border: 0; background: transparent; color: var(--plum); font-size: 8px; font-weight: 800; cursor: pointer; }
.community-side { display: grid; align-content: start; gap: 12px; }
.community-side-card { padding: 20px; border: 1px solid #dfdad6; border-radius: 17px; background: white; }
.event-card { color: white; background: #241e22; border-color: #241e22; }
.event-card .overline { color: #d1a9c1; }
.event-date { width: 54px; height: 58px; margin: 18px 0 16px; display: grid; place-items: center; align-content: center; border-radius: 12px; color: #2d2329; background: #f0e7db; }
.event-date b { font: 700 22px/1 Manrope, sans-serif; }
.event-date small { margin-top: 3px; font-size: 7px; font-weight: 800; }
.event-card h3 { margin: 0 0 9px; font: 600 20px/1.15 "Cormorant Garamond", Georgia, serif; }
.event-card > p:not(.overline) { margin: 0; color: rgba(255,255,255,.58); font-size: 9px; line-height: 1.55; }
.event-time { display: block; margin: 14px 0; color: #d7b9ca; font-size: 8px; font-weight: 800; }
.event-card .primary-button { background: white; color: #2a2127; }
.circle-row { width: 100%; padding: 12px 0; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; border: 0; border-bottom: 1px solid #eeeae7; background: transparent; text-align: left; cursor: pointer; }
.circle-row:last-child { border-bottom: 0; padding-bottom: 0; }
.circle-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; color: white; background: #725167; font-size: 7px; font-weight: 800; }
.circle-icon.gold { color: #604b2d; background: #dfc89f; }
.circle-icon.sage { background: #708980; }
.circle-row strong, .circle-row small { display: block; }
.circle-row strong { font-size: 9px; }
.circle-row small { margin-top: 2px; color: #9b9498; font-size: 7px; }
.circle-row b { color: #958a91; font-size: 10px; }

.chat-panel { background: #fbfaf8; }
.chat-header { min-height: 74px; padding: 14px 26px; background: white; }
.chat-header h1 { font: 700 20px Manrope, sans-serif; }
.chat-header .nia-orb { width: 38px; height: 38px; font-size: 15px; }
.ai-label { border-radius: 6px; font-size: 6px; }
.session-toolbar { background: #f4f1ef; }
.welcome-block { max-width: 900px; padding-top: 48px; }
.welcome-block h2 { color: #211a1f; font-size: clamp(42px, 4.7vw, 66px); }
.quick-grid { gap: 9px; }
.quick-card { min-height: 78px; border-radius: 14px; background: white; }
.quick-card:hover { border-color: #bca8b5; box-shadow: 0 10px 25px rgba(42,31,38,.06); }
.composer { border-radius: 15px; box-shadow: 0 10px 32px rgba(35,26,32,.09); }

.academy-hero { padding: 42px 46px 34px; background: #fcfbf9; }
.academy-hero h1 { font: 600 clamp(40px, 4.8vw, 64px)/.95 "Cormorant Garamond", Georgia, serif; letter-spacing: -.04em; }
.academy-scroll { padding: 28px 44px 50px; }
.academy-intro { background: #edf3f0; border-color: #d8e4df; }
.academy-course-card { border-radius: 20px; box-shadow: none; }
.academy-course-copy h2 { font-size: 28px; }
.course-facts span { border: 1px solid #e5e0dd; background: #faf8f6; }
.course-reader-head { min-height: 82px; }
.course-outline { background: #efedea; }
.outline-item { border-radius: 9px; }
.lesson-reader { background: #fff; }
.lesson-reader > h2 { color: #231c21; }

.content-panel { background: var(--paper); }
.library-hero { background: #fcfbf9; }
.creator-note { background: #292126; }

@media (max-width: 1160px) {
  .workspace { grid-template-columns: 220px minmax(480px, 1fr); }
  .member-panel, .academy-panel, .community-panel, .content-panel { grid-column: 2; }
  .community-layout { grid-template-columns: minmax(0, 1fr) 260px; padding-inline: 30px; }
}

@media (max-width: 820px) {
  .app-shell { width: 100%; height: 100dvh; margin: 0; border-radius: 0; grid-template-rows: 64px minmax(0, 1fr) 64px; }
  .topbar { height: 64px; }
  .member-panel, .academy-panel, .community-panel { height: 100%; }
  .member-scroll { padding: 12px 12px 28px; }
  .member-hero { min-height: 335px; padding: 29px 23px; grid-template-columns: 1fr; }
  .member-hero::before { display: none; }
  .member-orb-card { display: block; padding: 17px; }
  .member-orb-card .member-orb { display: none; }
  .member-orb-card > span { margin-top: 0; }
  .community-preview { padding: 27px 24px; grid-template-columns: 1fr; gap: 25px; }
  .community-preview-activity { padding: 22px 0 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.14); }
  .community-hero { min-height: 0; padding: 30px 20px 25px; align-items: flex-start; flex-direction: column; }
  .community-hero h1 { font-size: 44px; }
  .community-presence { min-width: 0; width: 100%; }
  .community-layout { padding: 20px 13px 34px; grid-template-columns: 1fr; }
  .community-side { grid-row: 1; grid-template-columns: 1fr 1fr; }
  .community-post { padding: 20px; }
  .academy-hero { padding: 30px 20px 24px; }
  .academy-scroll { padding: 18px 13px 34px; }
  .mobile-nav { height: 64px; grid-template-columns: repeat(5, 1fr); background: rgba(255,255,255,.96); }
  .mobile-nav button span { color: #a1999e; font: 700 7px Manrope, sans-serif; }
  .mobile-nav button.active span { color: var(--plum); }
}

@media (max-width: 560px) {
  .top-actions .status-pill { display: none; }
  .member-hero h1 { font-size: 42px; }
  .current-course-card { grid-template-columns: 78px minmax(0, 1fr); }
  .community-side { grid-template-columns: 1fr; }
  .feed-toolbar { align-items: flex-start; flex-direction: column; }
  .community-post h3 { font-size: 16px; }
  .post-footer { flex-wrap: wrap; }
  .post-footer button { width: 100%; margin-left: 0; padding: 9px 0 0; text-align: left; }
}

/* Elitea luxury wordmark */
.app-shell { grid-template-rows: 92px minmax(0, 1fr); }
.topbar {
  height: 92px;
  padding: 0 24px;
  border-bottom-color: rgba(255,255,255,.08);
  background: #201a1e;
  color: #f6f0e7;
}
.brand { min-width: 430px; gap: 22px; color: #f6f0e7; }
.brand-wordmark {
  position: relative;
  font: 600 50px/.9 "Bodoni Moda", Didot, "Times New Roman", serif !important;
  letter-spacing: -.075em !important;
  color: #f3e9dc;
  text-shadow: 0 1px 0 rgba(255,255,255,.08);
}
.brand-wordmark::after {
  content: "";
  position: absolute;
  right: -7px;
  top: 4px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #c2a16c;
}
.brand-lockup {
  padding-left: 19px;
  display: grid;
  gap: 4px;
  border-left: 1px solid rgba(255,255,255,.16);
}
.brand-lockup b {
  color: #cbb1c1;
  font: 800 7px/1 Manrope, sans-serif;
  letter-spacing: .18em;
}
.brand-lockup small {
  color: rgba(255,255,255,.48);
  font-size: 8px;
  letter-spacing: .04em;
}
.topbar .library-top-button {
  border-color: rgba(255,255,255,.15);
  background: rgba(255,255,255,.07);
  color: #f7f0e8;
}
.topbar .library-top-button:hover { border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.11); }
.topbar .status-pill { background: rgba(255,255,255,.07); color: rgba(255,255,255,.6); }
.topbar .icon-button { border-color: rgba(255,255,255,.13); background: rgba(255,255,255,.06); color: #e9dfe5; }
.topbar .avatar { color: #2a2026; background: #efe4d6; }

@media (max-width: 820px) {
  .app-shell { grid-template-rows: 72px minmax(0, 1fr) 64px; }
  .topbar { height: 72px; padding: 0 14px; }
  .brand { min-width: 0; gap: 0; }
  .brand-wordmark { font-size: 37px !important; }
  .brand-lockup { display: none; }
}

@media (max-width: 460px) {
  .brand-wordmark { font-size: 34px !important; }
  .topbar .library-top-button { display: none; }
}

/* Editorial membership direction */
:root {
  --blush: #efc4cd;
  --blush-light: #f7e4e4;
  --coral: #db695d;
  --mustard: #d7a22f;
  --mint: #a9c9bc;
}

.member-scroll { padding: 24px 28px 54px; }
.member-hero {
  min-height: 440px;
  padding: 46px 48px;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 440px);
  gap: 44px;
  border: 0;
  border-radius: 28px;
  background:
    radial-gradient(circle at 42% 115%, rgba(219,105,93,.22), transparent 32%),
    linear-gradient(125deg, #fbf7f0 0 58%, #f0c8d0 58% 100%);
  overflow: hidden;
}
.member-hero::after {
  content: "";
  position: absolute;
  width: 210px;
  height: 210px;
  left: 48%;
  bottom: -156px;
  border-radius: 50%;
  border: 36px solid rgba(255,255,255,.34);
}
.member-hero > div:first-child { position: relative; z-index: 2; }
.member-hero h1 {
  max-width: 710px;
  margin: 19px 0 19px;
  font: 600 clamp(55px, 5.4vw, 84px)/.91 "Bodoni Moda", Didot, serif;
  letter-spacing: -.065em;
}
.member-hero h1 #member-greeting {
  display: block;
  margin-bottom: 15px;
  font: 800 10px/1 Manrope, sans-serif;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #a2536d;
}
.member-hero h1 br { display: none; }
.member-hero > div > p:not(.overline) { max-width: 510px; font-size: 13px; }
.member-visual-stage {
  position: relative;
  align-self: stretch;
  min-height: 350px;
  isolation: isolate;
}
.member-visual-stage > img {
  position: absolute;
  z-index: 2;
  inset: 4px 8px 2px 28px;
  width: calc(100% - 36px);
  height: calc(100% - 6px);
  object-fit: cover;
  object-position: 50% 35%;
  border: 5px solid rgba(255,255,255,.8);
  border-radius: 48% 48% 25px 25px;
  box-shadow: 0 24px 50px rgba(74,40,53,.2);
}
.member-visual-shape {
  position: absolute;
  z-index: 1;
  width: 88%;
  height: 72%;
  right: -8%;
  bottom: -12%;
  border-radius: 46% 10px 10px 46%;
  background: #de745f;
  transform: rotate(-7deg);
}
.member-coach-float {
  position: absolute;
  z-index: 4;
  left: -16px;
  bottom: 22px;
  min-width: 236px;
  padding: 13px 16px 13px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 16px;
  background: rgba(34,27,32,.92);
  color: white;
  box-shadow: 0 17px 38px rgba(35,24,31,.25);
  backdrop-filter: blur(15px);
}
.member-coach-float .member-orb { width: 42px; height: 42px; margin: 0; flex: 0 0 auto; font-size: 16px; }
.member-coach-float span, .member-coach-float strong { display: block; }
.member-coach-float span { color: #d9b1c9; font-size: 6px; font-weight: 800; letter-spacing: .14em; }
.member-coach-float strong { margin-top: 4px; font-size: 10px; }
.member-circle-float {
  position: absolute;
  z-index: 4;
  top: 18px;
  right: -6px;
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  align-content: center;
  border: 4px solid #f9f4ec;
  border-radius: 50%;
  color: white;
  background: #b68b35;
  text-align: center;
  transform: rotate(5deg);
}
.member-circle-float strong { font: 700 25px/1 "Bodoni Moda", serif; }
.member-circle-float span { width: 60px; margin-top: 4px; font-size: 6px; font-weight: 800; line-height: 1.2; text-transform: uppercase; }

.member-pulse {
  margin: 14px 0 34px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid #dfd8d4;
  border-radius: 17px;
  background: white;
}
.member-pulse > div { min-height: 88px; padding: 18px 22px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 13px; border-right: 1px solid #e7e1dd; }
.member-pulse > div:last-child { border-right: 0; }
.member-pulse strong { color: #6b3e58; font: 600 29px/1 "Bodoni Moda", serif; }
.member-pulse span { color: #7f777c; font-size: 8px; font-weight: 700; line-height: 1.35; text-transform: uppercase; letter-spacing: .04em; }
.member-section { margin-top: 0; }

.current-course-card {
  min-height: 195px;
  padding: 18px;
  grid-template-columns: 158px minmax(0, 1fr) auto;
  border: 0;
  background: #fff;
}
.mini-cover { min-height: 158px; }
.member-grid { grid-template-columns: 1.15fr .85fr 1fr; }
.dashboard-card { min-height: 205px; }
.next-step-card { background: var(--blush-light); border-color: #eed2d7; }

.community-preview {
  min-height: 340px;
  padding: 36px 38px;
  grid-template-columns: minmax(0, .8fr) minmax(410px, 1.2fr);
  background: #2c2228;
}
.community-preview-copy h2 { font: 600 47px/.95 "Bodoni Moda", serif; letter-spacing: -.055em; }
.community-preview-activity {
  min-height: 265px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 0;
  border-radius: 20px;
  overflow: hidden;
  isolation: isolate;
}
.community-preview-activity::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg, transparent 20%, rgba(27,20,25,.84) 100%); }
.community-preview-photo { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.community-preview-activity .avatar-stack { margin-bottom: 14px; }
.community-preview-activity .avatar-stack span { border-color: #33272e; }

.community-hero {
  min-height: 360px;
  padding: 44px 48px;
  align-items: center;
  background: linear-gradient(120deg, #f8e4e2 0 67%, #df735f 67% 100%);
}
.community-hero h1 { font: 600 clamp(49px, 5.1vw, 75px)/.92 "Bodoni Moda", serif; letter-spacing: -.06em; }
.community-hero-visual { position: relative; flex: 0 0 390px; height: 245px; }
.community-hero-visual > img { width: 100%; height: 100%; object-fit: cover; border: 5px solid rgba(255,255,255,.8); border-radius: 50% 50% 24px 24px; box-shadow: 0 24px 54px rgba(65,39,49,.23); }
.community-hero-visual .community-presence { position: absolute; left: -24px; bottom: -18px; width: 225px; box-shadow: 0 13px 30px rgba(53,33,43,.13); }

.academy-hero {
  min-height: 350px;
  padding: 42px 48px;
  align-items: center;
  background: linear-gradient(120deg, #f8f3e8 0 68%, #dca835 68% 100%);
}
.academy-hero h1 { font: 600 clamp(50px, 5.1vw, 76px)/.91 "Bodoni Moda", serif; }
.academy-visual { position: relative; flex: 0 0 390px; height: 245px; }
.academy-visual > img { width: 100%; height: 100%; object-fit: cover; object-position: center; border: 5px solid rgba(255,255,255,.8); border-radius: 24px 50% 50% 24px; box-shadow: 0 24px 54px rgba(68,48,27,.22); }
.academy-visual .academy-stat { position: absolute; left: -26px; bottom: -18px; min-width: 150px; text-align: left; box-shadow: 0 14px 30px rgba(45,33,20,.14); }
.academy-visual-label { position: absolute; right: -10px; top: 18px; padding: 9px 12px; border-radius: 999px; color: white; background: #292126; font-size: 7px; font-weight: 800; letter-spacing: .1em; }

.academy-course-card { padding: 28px; border: 0; }
.academy-course-card .course-cover { min-height: 340px; }
.academy-course-copy h2 { font: 600 43px/.98 "Bodoni Moda", serif; letter-spacing: -.055em; }

.welcome-block h2 { font-family: "Bodoni Moda", Didot, serif; letter-spacing: -.06em; }
.quick-card:nth-child(1) { background: #f7e3e6; }
.quick-card:nth-child(2) { background: #f1eadb; }
.quick-card:nth-child(3) { background: #e7eeea; }
.quick-card:nth-child(4) { background: #f4e5dc; }
.quick-card:nth-child(5) { background: #e7e5ef; }
.quick-card:nth-child(6) { background: #fff; }

@media (max-width: 1180px) {
  .member-hero { grid-template-columns: minmax(0, 1fr) 350px; padding: 40px; }
  .member-pulse > div { padding-inline: 16px; }
  .community-hero-visual, .academy-visual { flex-basis: 320px; }
}

@media (max-width: 900px) {
  .member-pulse { grid-template-columns: repeat(2, 1fr); }
  .member-pulse > div:nth-child(2) { border-right: 0; }
  .member-pulse > div:nth-child(-n+2) { border-bottom: 1px solid #e7e1dd; }
  .member-grid { grid-template-columns: 1fr 1fr; }
  .certificate-card { grid-column: 1 / -1; }
  .community-preview { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .member-scroll { padding: 10px 10px 28px; }
  .member-hero { min-height: 650px; padding: 28px 23px 22px; grid-template-columns: 1fr; gap: 25px; }
  .member-hero h1 { font-size: 51px; }
  .member-visual-stage { display: block; min-height: 310px; }
  .member-visual-stage > img { inset: 0 10px 0 18px; width: calc(100% - 28px); height: 100%; }
  .member-circle-float { right: 0; }
  .member-coach-float { left: 0; bottom: 10px; }
  .member-pulse { margin-bottom: 25px; }
  .current-course-card { grid-template-columns: 95px minmax(0, 1fr) auto; }
  .community-preview { padding: 28px 22px; }
  .community-preview-activity { min-height: 250px; }
  .community-hero, .academy-hero { min-height: 0; padding: 30px 20px 35px; flex-direction: column; align-items: stretch; }
  .community-hero h1, .academy-hero h1 { font-size: 48px; }
  .community-hero-visual, .academy-visual { width: 100%; height: 230px; flex: auto; }
  .academy-visual .academy-stat { display: block; }
}

@media (max-width: 540px) {
  .member-pulse { grid-template-columns: 1fr; }
  .member-pulse > div { border-right: 0; border-bottom: 1px solid #e7e1dd; }
  .member-pulse > div:last-child { border-bottom: 0; }
  .member-grid { grid-template-columns: 1fr; }
  .certificate-card { grid-column: auto; }
  .current-course-card { grid-template-columns: 80px minmax(0, 1fr); }
  .community-preview-copy h2 { font-size: 39px; }
  .community-hero-visual .community-presence { left: 9px; bottom: -16px; }
}

/* Elitea signature luxury art direction */
:root {
  --ink: #211a1e;
  --muted: #736b6f;
  --line: rgba(47, 31, 40, .12);
  --paper: #f3eee7;
  --plum: #6b445d;
  --plum-dark: #1d141a;
  --plum-soft: #eee5e9;
  --gold: #b9975f;
  --gold-soft: #eee3d2;
  --sage: #566e67;
}

body {
  background:
    radial-gradient(circle at 7% 0%, rgba(114,76,98,.34), transparent 27%),
    radial-gradient(circle at 100% 100%, rgba(157,126,80,.24), transparent 28%),
    #151014;
}

.ambient { display: none; }
.app-shell {
  width: min(1680px, calc(100vw - 20px));
  height: calc(100dvh - 20px);
  margin: 10px auto;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px;
  background: #f4f0ea;
  box-shadow: 0 40px 120px rgba(0,0,0,.46);
}

.topbar {
  height: 92px;
  padding: 0 30px;
  background: #1c1519;
}
.brand { min-width: 470px; }
.brand-wordmark {
  color: #f4eadc;
  font-size: 56px !important;
  font-weight: 500 !important;
  letter-spacing: -.08em !important;
}
.brand-wordmark::after { width: 4px; height: 4px; right: -8px; top: 7px; background: #c8a66f; }
.brand-lockup { border-left-color: rgba(255,255,255,.14); }
.brand-lockup b { color: #c6aebd; }
.brand-lockup small { color: rgba(255,255,255,.45); }

.workspace { grid-template-columns: 236px minmax(520px, 1fr) 282px; }
.sidebar, .insight-panel { background: #ebe5de; }
.sidebar { padding: 28px 18px; border-right-color: rgba(47,31,40,.1); }
.nav-list { gap: 3px; }
.nav-item {
  min-height: 47px;
  border-radius: 8px;
  color: #665e62;
  font-size: 12px;
}
.nav-item.active { color: #f7efe5; background: #21191e; box-shadow: none; }
.nav-item.active small { color: #c4aeb9; }
.progress-card, .quote-card, .whatsapp-card { border-radius: 12px; }
.progress-card { background: rgba(255,255,255,.46); }
.quote-card { background: #2a2026; }

.member-panel, .academy-panel, .community-panel, .content-panel { background: #f3eee7; }
.member-scroll { padding: 20px 22px 50px; }
.member-hero {
  min-height: 440px;
  padding: 54px 52px;
  grid-template-columns: minmax(0, 1fr) minmax(390px, .86fr);
  gap: 46px;
  align-items: center;
  border: 0;
  border-radius: 18px;
  color: #f6eee4;
  background: #1c1519;
  box-shadow: 0 24px 64px rgba(30,20,26,.18);
}
.member-hero::before {
  top: 25px;
  right: 30px;
  color: rgba(255,255,255,.37);
  letter-spacing: .22em;
}
.member-hero::after { display: none; }
.member-hero .overline { color: #c5a36b; }
.member-hero h1 {
  max-width: 720px;
  margin: 23px 0 22px;
  color: #f7efe4;
  font: 500 clamp(56px, 5.6vw, 88px)/.88 "Bodoni Moda", Didot, serif;
  letter-spacing: -.07em;
}
.member-hero h1 #member-greeting {
  margin-bottom: 17px;
  color: #c4a9b9;
  font: 800 9px/1 Manrope, sans-serif;
  letter-spacing: .18em;
}
.member-hero h1 br { display: none; }
.member-hero > div > p:not(.overline) { max-width: 520px; color: rgba(255,255,255,.58); font-size: 13px; line-height: 1.7; }
.member-hero .primary-button { color: #20171c; background: #f2e9dc; }
.member-hero .secondary-button { border-color: rgba(255,255,255,.22); color: #f4ece2; background: transparent; }
.primary-button, .secondary-button { min-height: 42px; padding-inline: 18px; border-radius: 7px; }

.member-visual-stage {
  position: relative;
  min-height: 344px;
  align-self: stretch;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 10px;
  background: #120d10;
  isolation: isolate;
}
.member-visual-stage::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(13,8,11,.72));
  pointer-events: none;
}
.member-visual-stage > img {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% center;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.member-visual-shape { display: none; }
.member-coach-float {
  z-index: 4;
  left: 17px;
  right: 17px;
  bottom: 16px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  background: rgba(25,17,22,.76);
  box-shadow: none;
  backdrop-filter: blur(18px);
}
.member-coach-float .member-orb { width: 39px; height: 39px; background: radial-gradient(circle at 35% 25%, #e0cad7, #79536a 52%, #30212a 78%); }
.member-coach-float span { color: #c3aab9; font-size: 6px; }
.member-coach-float strong { color: #fff; font-size: 10px; }
.member-circle-float {
  z-index: 4;
  top: 16px;
  right: 16px;
  width: auto;
  height: auto;
  padding: 9px 11px;
  display: flex;
  gap: 7px;
  align-items: center;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  background: rgba(26,17,22,.55);
  transform: none;
  backdrop-filter: blur(14px);
}
.member-circle-float strong { color: #d3b475; font: 700 9px Manrope, sans-serif; }
.member-circle-float span { width: auto; margin: 0; color: rgba(255,255,255,.72); font-size: 6px; letter-spacing: .08em; }

.member-pulse {
  margin: 12px 0 32px;
  border: 1px solid #ddd5ce;
  border-radius: 10px;
  background: #f8f4ee;
}
.member-pulse > div { min-height: 76px; padding: 16px 20px; border-right-color: #e2dad3; }
.member-pulse strong { color: #2a2026; font: 500 27px/1 "Bodoni Moda", serif; }
.member-pulse span { color: #82797e; font-size: 7px; letter-spacing: .08em; }

.member-section { margin-top: 0; }
.section-title-row h2 { font: 500 29px/1 "Bodoni Moda", serif; letter-spacing: -.04em; }
.current-course-card {
  min-height: 178px;
  padding: 14px;
  grid-template-columns: 178px minmax(0, 1fr) auto;
  gap: 26px;
  border: 1px solid #ddd5ce;
  border-radius: 12px;
  background: #fbf8f3;
}
.course-cover {
  background-image: linear-gradient(180deg, rgba(20,13,17,.06), rgba(20,13,17,.78)), url('/elitea/mastery.jpg');
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  box-shadow: none;
}
.course-cover::after { display: none; }
.course-cover span, .course-cover b, .course-cover i { position: relative; z-index: 1; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.mini-cover { min-height: 150px; }
.course-arrow { border-radius: 8px; background: #21191e; }
.member-grid { gap: 10px; }
.dashboard-card { min-height: 190px; border-radius: 10px; background: #faf6f0; }
.next-step-card { background: #e9e0db; border-color: #dbd0c9; }
.certificate-card { background: #251c21; }
.quick-card:nth-child(1), .quick-card:nth-child(2), .quick-card:nth-child(3), .quick-card:nth-child(4), .quick-card:nth-child(5), .quick-card:nth-child(6) { background: #fff; }

.community-preview {
  min-height: 330px;
  margin-top: 12px;
  padding: 40px 42px;
  grid-template-columns: minmax(0, .82fr) minmax(390px, 1.18fr);
  gap: 42px;
  border-radius: 12px;
  background: #21181d;
}
.community-preview .overline { color: #c2a36c; }
.community-preview-copy h2 { color: #f4eade; font: 500 48px/.94 "Bodoni Moda", serif; letter-spacing: -.055em; }
.community-preview-copy > p:not(.overline) { color: rgba(255,255,255,.55); }
.community-preview-activity {
  position: relative;
  min-height: 244px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 8px;
  isolation: isolate;
}
.community-preview-photo { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.community-preview-activity::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg, rgba(24,15,19,.03), rgba(24,15,19,.85)); }
.community-preview-activity .avatar-stack { margin-bottom: 13px; }
.community-preview-activity .avatar-stack span { border-color: #312329; }

.community-hero, .academy-hero {
  min-height: 390px;
  padding: 46px 50px;
  align-items: center;
  border: 0;
  background: #1d151a;
}
.community-hero h1, .academy-hero h1 {
  max-width: 710px;
  color: #f6ecdf;
  font: 500 clamp(50px, 5vw, 76px)/.9 "Bodoni Moda", serif;
  letter-spacing: -.065em;
}
.community-hero > div:first-child > p:last-child, .academy-hero > div:first-child > p:last-child { max-width: 620px; color: rgba(255,255,255,.55); }
.community-hero .overline, .academy-hero .overline { color: #c3a36c; }
.community-hero-visual, .academy-visual { position: relative; flex: 0 0 405px; height: 270px; }
.community-hero-visual > img, .academy-visual > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(0,0,0,.28);
}
.community-hero-visual .community-presence, .academy-visual .academy-stat {
  position: absolute;
  left: -20px;
  bottom: -17px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 8px;
  color: #f7eee3;
  background: rgba(31,22,27,.9);
  box-shadow: 0 14px 30px rgba(0,0,0,.24);
  backdrop-filter: blur(16px);
}
.community-presence small, .academy-stat small { color: rgba(255,255,255,.5); }
.academy-stat strong { color: #c6a56d; }
.academy-visual-label {
  top: 14px;
  right: 14px;
  padding: 8px 10px;
  color: #efe5d8;
  background: rgba(27,19,24,.74);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 999px;
  backdrop-filter: blur(12px);
}
.academy-scroll { background: #f3eee7; }
.academy-intro { border-radius: 10px; background: #e8e0d7; border-color: #d9cfc6; }
.academy-course-card { border-radius: 12px; }
.academy-course-card .course-cover { min-height: 330px; }
.academy-course-copy h2 { font: 500 42px/.98 "Bodoni Moda", serif; letter-spacing: -.05em; }

@media (max-width: 1180px) {
  .workspace { grid-template-columns: 220px minmax(480px, 1fr); }
  .member-hero { padding: 42px; grid-template-columns: minmax(0, 1fr) 350px; }
  .community-hero-visual, .academy-visual { flex-basis: 330px; }
}

@media (max-width: 900px) {
  .member-hero { grid-template-columns: 1fr 330px; }
  .member-pulse { grid-template-columns: repeat(2, 1fr); }
  .member-pulse > div:nth-child(2) { border-right: 0; }
  .member-pulse > div:nth-child(-n+2) { border-bottom: 1px solid #e2dad3; }
  .member-grid { grid-template-columns: 1fr 1fr; }
  .certificate-card { grid-column: 1 / -1; }
  .community-preview { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .app-shell { width: 100%; height: 100dvh; margin: 0; border: 0; border-radius: 0; }
  .topbar { height: 72px; padding-inline: 15px; }
  .brand { min-width: 0; }
  .brand-wordmark { font-size: 39px !important; }
  .member-scroll { padding: 10px 10px 28px; }
  .member-hero { min-height: 700px; padding: 32px 23px 22px; grid-template-columns: 1fr; gap: 27px; }
  .member-hero::before { display: none; }
  .member-hero h1 { font-size: 53px; }
  .member-visual-stage { min-height: 330px; }
  .member-pulse { margin-bottom: 26px; }
  .current-course-card { grid-template-columns: 100px minmax(0,1fr) auto; gap: 16px; }
  .community-preview { padding: 30px 22px; }
  .community-preview-activity { min-height: 250px; padding: 24px; border-top: 1px solid rgba(255,255,255,.14); }
  .community-hero, .academy-hero { min-height: 0; padding: 32px 20px 40px; flex-direction: column; align-items: stretch; }
  .community-hero h1, .academy-hero h1 { font-size: 50px; }
  .community-hero-visual, .academy-visual { width: 100%; height: 240px; flex: auto; }
  .academy-visual .academy-stat { display: block; }
}

@media (max-width: 540px) {
  .member-hero { min-height: 650px; }
  .member-hero h1 { font-size: 47px; }
  .member-pulse { grid-template-columns: 1fr; }
  .member-pulse > div { border-right: 0; border-bottom: 1px solid #e2dad3; }
  .member-pulse > div:last-child { border-bottom: 0; }
  .current-course-card { grid-template-columns: 78px minmax(0,1fr); }
  .member-grid { grid-template-columns: 1fr; }
  .certificate-card { grid-column: auto; }
  .community-preview-copy h2 { font-size: 40px; }
  .community-hero-visual .community-presence, .academy-visual .academy-stat { left: 10px; bottom: -16px; }
}

/* Public Elitea experience */
body.public-mode { overflow: auto; background: #f2ede6; }
body.member-mode { overflow: hidden; }
.public-mode .app-shell { display: none; }
.member-mode .public-site { display: none; }

.public-site {
  min-height: 100vh;
  color: #20181d;
  background: #f2ede6;
  font-family: "DM Sans", system-ui, sans-serif;
}
.public-site button, .public-site a { -webkit-tap-highlight-color: transparent; }
.public-nav {
  position: sticky;
  z-index: 20;
  top: 0;
  min-height: 84px;
  padding: 0 clamp(24px, 5vw, 78px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 34px;
  border-bottom: 1px solid rgba(42,28,37,.12);
  background: rgba(244,239,232,.92);
  backdrop-filter: blur(22px) saturate(120%);
}
.public-brand {
  width: max-content;
  color: #241a20;
  text-decoration: none;
  font: 500 46px/.9 "Bodoni Moda", Didot, serif;
  letter-spacing: -.075em;
}
.public-brand span { color: #a78249; }
.public-nav > nav { display: flex; align-items: center; gap: clamp(19px, 2.4vw, 38px); }
.public-nav > nav a { color: #564c51; text-decoration: none; font-size: 10px; font-weight: 700; }
.public-nav-actions { display: flex; justify-content: flex-end; align-items: center; gap: 9px; }
.public-nav-actions button { min-height: 38px; padding: 0 15px; border-radius: 6px; font-size: 9px; font-weight: 800; cursor: pointer; }
.public-login { border: 0; background: transparent; }
.public-join { border: 1px solid #241a20; color: #f5ede2; background: #241a20; }
.public-join span { margin-left: 7px; color: #c5a46d; }

.public-hero {
  min-height: calc(100vh - 84px);
  padding: clamp(42px, 6vw, 92px) clamp(24px, 5vw, 78px) 58px;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(480px, 1.1fr);
  gap: clamp(45px, 7vw, 110px);
  align-items: center;
  overflow: hidden;
}
.public-kicker, .public-section-head > div > p, .product-copy > p:first-child, .course-feature-copy > p:first-child, .membership-heading > p {
  margin: 0;
  color: #79566b;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .19em;
  text-transform: uppercase;
}
.public-hero h1 {
  max-width: 770px;
  margin: 23px 0 28px;
  font: 500 clamp(68px, 7vw, 116px)/.82 "Bodoni Moda", Didot, serif;
  letter-spacing: -.08em;
}
.public-hero h1 em, .public-section-head h2 em, .product-copy h2 em, .membership-heading h2 em {
  color: #79566b;
  font-style: italic;
  font-weight: 500;
}
.public-lead { max-width: 650px; margin: 0; color: #6d6368; font-size: clamp(13px, 1.15vw, 16px); line-height: 1.75; }
.public-hero-actions { margin-top: 34px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.public-cta, .public-dark-cta {
  min-height: 50px;
  padding: 0 20px;
  border: 1px solid #21181d;
  border-radius: 6px;
  color: #f6eee3;
  background: #21181d;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}
.public-cta span { margin-left: 22px; color: #c6a46d; }
.public-hero-actions a { color: #3f353a; font-size: 10px; font-weight: 800; text-underline-offset: 5px; }
.public-trust-row { margin-top: 53px; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); border-top: 1px solid #d6cec7; }
.public-trust-row div { padding: 18px 18px 0 0; }
.public-trust-row strong, .public-trust-row span { display: block; }
.public-trust-row strong { font: 500 27px/1 "Bodoni Moda", serif; }
.public-trust-row span { max-width: 130px; margin-top: 6px; color: #847a7f; font-size: 7px; font-weight: 800; line-height: 1.35; text-transform: uppercase; letter-spacing: .07em; }

.public-hero-art { position: relative; min-height: min(690px, calc(100vh - 160px)); overflow: hidden; background: #1b1318; box-shadow: 0 30px 90px rgba(39,24,33,.2); }
.public-hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(17,10,14,.45)); pointer-events: none; }
.public-hero-art > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 58% center; }
.public-art-index { position: absolute; z-index: 3; top: 24px; left: 26px; color: rgba(255,255,255,.55); font-size: 7px; font-weight: 800; letter-spacing: .18em; }
.public-ai-card {
  position: absolute;
  z-index: 4;
  left: 24px;
  right: 24px;
  bottom: 23px;
  min-height: 78px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 13px;
  align-items: center;
  border: 1px solid rgba(255,255,255,.14);
  color: white;
  background: rgba(25,16,21,.78);
  backdrop-filter: blur(18px);
}
.public-ai-orb { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; background: radial-gradient(circle at 35% 25%, #d9c1cf, #79536a 50%, #302029); font: 600 16px "Bodoni Moda", serif; }
.public-ai-card small, .public-ai-card strong { display: block; }
.public-ai-card small { color: #c5aebc; font-size: 6px; font-weight: 800; letter-spacing: .15em; }
.public-ai-card strong { margin-top: 5px; font: 500 16px "Bodoni Moda", serif; }
.public-ai-card b { color: #d1af76; font-size: 20px; }
.public-members-card { position: absolute; z-index: 5; top: 38px; right: -1px; min-width: 144px; padding: 15px 18px; display: flex; gap: 10px; align-items: center; color: #21181d; background: #f2e9dc; }
.public-members-card strong { font: 500 30px/1 "Bodoni Moda", serif; }
.public-members-card span { font-size: 7px; font-weight: 800; line-height: 1.35; text-transform: uppercase; }

.public-proof { min-height: 68px; padding: 0 clamp(24px,5vw,78px); display: flex; align-items: center; justify-content: space-between; gap: 18px; overflow: hidden; color: #d9c8d2; background: #251a20; font-size: 8px; font-weight: 800; letter-spacing: .16em; white-space: nowrap; }
.public-proof i { color: #b79763; font-style: normal; }

.public-ecosystem { padding: clamp(78px, 9vw, 150px) clamp(24px, 5vw, 78px); }
.public-section-head { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, .6fr); gap: 70px; align-items: end; }
.public-section-head h2, .product-copy h2, .membership-heading h2 { max-width: 860px; margin: 17px 0 0; font: 500 clamp(50px, 5.5vw, 87px)/.89 "Bodoni Moda", serif; letter-spacing: -.07em; }
.public-section-head > p { max-width: 520px; margin: 0 0 8px; color: #746a6f; font-size: 13px; line-height: 1.75; }
.ecosystem-grid { margin-top: 66px; display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: 14px; }
.ecosystem-card { position: relative; min-height: 570px; padding: 27px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; color: white; isolation: isolate; }
.ecosystem-card::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg, rgba(20,12,17,.05) 30%, rgba(20,12,17,.92) 100%); }
.ecosystem-card > img { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ecosystem-coach { grid-column: span 5; }
.ecosystem-circle { grid-column: span 3; }
.ecosystem-academy { grid-column: span 4; }
.ecosystem-circle > img { object-position: 46% center; }
.ecosystem-number { color: rgba(255,255,255,.58); font-size: 8px; font-weight: 800; letter-spacing: .16em; }
.ecosystem-copy > span { color: #d2b175; font-size: 8px; font-weight: 800; letter-spacing: .16em; }
.ecosystem-copy h3 { margin: 13px 0 12px; font: 500 clamp(29px, 2.7vw, 43px)/.96 "Bodoni Moda", serif; letter-spacing: -.045em; }
.ecosystem-copy p { margin: 0; color: rgba(255,255,255,.62); font-size: 11px; line-height: 1.65; }
.ecosystem-copy button { margin-top: 22px; padding: 0; border: 0; color: #f3e9de; background: transparent; font-size: 9px; font-weight: 800; cursor: pointer; }

.public-product { padding: clamp(75px, 9vw, 145px) clamp(24px, 7vw, 120px); display: grid; grid-template-columns: minmax(320px,.82fr) minmax(480px,1.18fr); gap: clamp(55px, 9vw, 145px); align-items: center; background: #e3d9d2; }
.product-copy h2 { font-size: clamp(50px,5vw,78px); }
.product-copy > p:nth-of-type(2) { margin: 27px 0 0; color: #6e6469; font-size: 13px; line-height: 1.75; }
.product-copy ul { margin: 31px 0; padding: 0; list-style: none; border-top: 1px solid #c8bcb6; }
.product-copy li { padding: 14px 0; display: grid; grid-template-columns: 36px 1fr; border-bottom: 1px solid #c8bcb6; color: #40363b; font-size: 10px; font-weight: 700; }
.product-copy li span { color: #88647a; }
.public-outline-cta { padding: 0; border: 0; border-bottom: 1px solid #34282f; color: #34282f; background: transparent; font-size: 10px; font-weight: 800; line-height: 32px; cursor: pointer; }
.public-outline-cta span { margin-left: 28px; }
.product-demo { min-height: 610px; padding: 24px; border: 1px solid rgba(255,255,255,.5); background: #f7f3ed; box-shadow: 0 35px 90px rgba(64,42,55,.14); }
.demo-top { min-height: 70px; padding: 11px 13px 18px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid #ded7d1; }
.demo-orb { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: white; background: #291e25; font: 500 16px "Bodoni Moda", serif; }
.demo-top div { flex: 1; }
.demo-top strong, .demo-top small { display: block; }
.demo-top strong { font: 500 17px "Bodoni Moda", serif; }
.demo-top small { margin-top: 2px; color: #8a8185; font-size: 7px; }
.demo-top b { color: #628677; font-size: 7px; letter-spacing: .12em; }
.demo-context { margin: 35px 13px 0 25%; padding: 17px; background: #e8dfd8; }
.demo-context span { color: #8d7884; font-size: 6px; font-weight: 800; letter-spacing: .15em; }
.demo-context p { margin: 7px 0 0; font-size: 11px; line-height: 1.55; }
.demo-message { margin: 32px 18% 0 13px; display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; }
.demo-message > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: #f5e9dd; background: #2b2026; font: 500 14px "Bodoni Moda", serif; }
.demo-message p { margin: 0; padding: 17px 18px; color: #eee5dd; background: #2b2026; font: 500 18px/1.45 "Bodoni Moda", serif; }
.demo-options { margin: 25px 13px 0; display: flex; gap: 7px; flex-wrap: wrap; }
.demo-options span { padding: 7px 10px; border: 1px solid #d7cfc9; color: #71666c; background: #fff; font-size: 7px; font-weight: 800; }
.demo-composer { margin: 74px 13px 0; min-height: 52px; padding: 0 8px 0 16px; display: flex; align-items: center; justify-content: space-between; border: 1px solid #d7cfc9; color: #9c9297; background: white; font-size: 9px; }
.demo-composer b { width: 34px; height: 34px; display: grid; place-items: center; color: white; background: #2a1f25; }

.public-course-feature { padding: clamp(76px, 9vw, 145px) clamp(24px, 7vw, 120px); display: grid; grid-template-columns: minmax(380px, .9fr) minmax(430px, 1.1fr); gap: clamp(55px, 8vw, 130px); align-items: center; background: #f4efe8; }
.course-feature-art { position: relative; min-height: 650px; overflow: hidden; color: white; background: #1e151a; }
.course-feature-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,12,17,.04), rgba(20,12,17,.72)); }
.course-feature-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.course-feature-art span, .course-feature-art b { position: absolute; z-index: 2; }
.course-feature-art span { top: 30px; left: 30px; font-size: 8px; font-weight: 800; line-height: 1.4; letter-spacing: .16em; }
.course-feature-art b { right: 30px; bottom: 13px; color: #d0af75; font: 500 112px/1 "Bodoni Moda", serif; }
.course-feature-copy > h2 { margin: 20px 0 7px; font: 500 clamp(55px,5.4vw,85px)/.87 "Bodoni Moda", serif; letter-spacing: -.075em; }
.course-feature-copy h3 { margin: 0; color: #79566b; font: italic 500 29px/1.2 "Bodoni Moda", serif; }
.course-feature-copy > p:nth-of-type(2) { max-width: 610px; margin: 28px 0 0; color: #70666b; font-size: 13px; line-height: 1.8; }
.course-feature-facts { margin: 37px 0; display: grid; grid-template-columns: repeat(3,1fr); border-block: 1px solid #d3cbc4; }
.course-feature-facts span { padding: 19px 12px 19px 0; color: #756b70; font-size: 8px; font-weight: 800; text-transform: uppercase; }
.course-feature-facts b { display: block; margin-bottom: 4px; color: #251b21; font: 500 28px "Bodoni Moda", serif; text-transform: none; }

.public-membership { min-height: 760px; padding: clamp(78px,10vw,160px) clamp(24px,8vw,140px); display: grid; grid-template-columns: 1fr minmax(390px,.62fr); gap: 80px; align-items: center; color: #f3e9df; background: #21171d; }
.membership-heading > p { color: #c6a56e; }
.membership-heading h2 { max-width: 820px; color: #f4eadf; }
.membership-heading h2 em { color: #c4a8b8; }
.membership-card { padding: 35px; border: 1px solid rgba(255,255,255,.17); background: rgba(255,255,255,.04); }
.membership-card-head { padding-bottom: 25px; border-bottom: 1px solid rgba(255,255,255,.14); }
.membership-card-head span, .membership-card-head b { display: block; }
.membership-card-head span { color: #c7a970; font-size: 7px; font-weight: 800; letter-spacing: .16em; }
.membership-card-head b { margin-top: 11px; font: 500 31px "Bodoni Moda", serif; }
.membership-card ul { margin: 25px 0 31px; padding: 0; list-style: none; }
.membership-card li { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.68); font-size: 10px; }
.membership-card li::before { content: "◇"; margin-right: 11px; color: #c8a970; }
.membership-card button { width: 100%; min-height: 52px; padding: 0 18px; display: flex; justify-content: space-between; align-items: center; border: 0; color: #21171d; background: #f1e7da; font-size: 10px; font-weight: 800; cursor: pointer; }
.membership-card small { display: block; margin-top: 13px; color: rgba(255,255,255,.39); font-size: 7px; text-align: center; }

.public-footer { min-height: 290px; padding: 58px clamp(24px,5vw,78px) 30px; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 35px; align-items: start; border-top: 1px solid #d7cec7; background: #f2ede6; }
.public-footer > p { margin: 0; color: #75566a; font: italic 500 25px/1.15 "Bodoni Moda", serif; }
.public-footer nav { display: grid; gap: 10px; justify-items: start; }
.public-footer nav a, .public-footer nav button { padding: 0; border: 0; color: #51474c; background: transparent; font-size: 9px; font-weight: 800; text-decoration: none; cursor: pointer; }
.public-footer > small { grid-column: 1 / -1; align-self: end; color: #968c91; font-size: 7px; letter-spacing: .08em; }

/* Refined member product shell */
.member-mode .app-shell { width: 100vw; height: 100dvh; margin: 0; border: 0; border-radius: 0; box-shadow: none; }
.member-mode .topbar { height: 84px; }
.member-mode .app-shell { grid-template-rows: 84px minmax(0,1fr); }
.member-mode .sidebar { color: #ddd0d7; background: #21181d; border-right-color: rgba(255,255,255,.08); }
.member-mode .sidebar-heading > span { color: #a98f9e; }
.member-mode .sidebar .nav-item { color: rgba(255,255,255,.55); }
.member-mode .sidebar .nav-item.active { color: #23191f; background: #efe6da; }
.member-mode .sidebar .nav-item.active small { color: #7e6574; }
.member-mode .sidebar .progress-card { border-color: rgba(255,255,255,.1); color: #f2e8de; background: rgba(255,255,255,.05); }
.member-mode .sidebar .progress-card p, .member-mode .sidebar .progress-title span { color: rgba(255,255,255,.43); }
.member-mode .sidebar .progress-title strong { color: #f1e7dc; }
.member-mode .sidebar .progress-track { background: rgba(255,255,255,.1); }
.member-mode .sidebar .quote-card, .member-mode .sidebar .whatsapp-card { display: none; }
.member-mode .public-return-button { min-height: 34px; padding: 0 12px; border: 1px solid rgba(255,255,255,.13); border-radius: 6px; color: rgba(255,255,255,.62); background: transparent; font-size: 8px; font-weight: 800; cursor: pointer; }
.member-mode .member-scroll { background: #eee8e1; }
.member-mode .member-hero { border-radius: 0; }
.member-mode .current-course-card, .member-mode .dashboard-card, .member-mode .community-preview { border-radius: 0; }
.member-mode .insight-panel { background: #e9e3dc; }

@media (max-width: 1080px) {
  .public-nav { grid-template-columns: 1fr auto; }
  .public-nav > nav { display: none; }
  .public-hero { grid-template-columns: 1fr 440px; gap: 45px; }
  .public-hero h1 { font-size: 76px; }
  .ecosystem-coach { grid-column: span 6; }
  .ecosystem-circle { grid-column: span 6; }
  .ecosystem-academy { grid-column: 1 / -1; min-height: 500px; }
  .public-product, .public-course-feature { gap: 55px; }
}

@media (max-width: 820px) {
  body.public-mode { overflow-x: hidden; }
  .public-nav { min-height: 70px; padding-inline: 16px; }
  .public-brand { font-size: 38px; }
  .public-login { display: none; }
  .public-nav-actions button { min-height: 36px; padding-inline: 11px; }
  .public-hero { min-height: 0; padding: 52px 18px 24px; grid-template-columns: 1fr; }
  .public-hero h1 { font-size: clamp(59px,17vw,82px); }
  .public-hero-art { min-height: 520px; }
  .public-trust-row { margin-top: 40px; }
  .public-proof { justify-content: flex-start; }
  .public-section-head { grid-template-columns: 1fr; gap: 24px; }
  .ecosystem-grid { grid-template-columns: 1fr; }
  .ecosystem-coach, .ecosystem-circle, .ecosystem-academy { grid-column: auto; min-height: 500px; }
  .public-product, .public-course-feature, .public-membership { grid-template-columns: 1fr; }
  .public-product { padding-inline: 18px; }
  .product-demo { min-height: 560px; }
  .public-course-feature { padding-inline: 18px; }
  .course-feature-art { min-height: 520px; }
  .public-membership { padding-inline: 18px; gap: 48px; }
  .public-footer { grid-template-columns: 1fr 1fr; }
  .public-footer nav { grid-column: 2; grid-row: 1 / 3; }
  .member-mode .app-shell { grid-template-rows: 72px minmax(0,1fr) 64px; }
  .member-mode .topbar .library-top-button, .member-mode .topbar .status-pill { display: none; }
  .member-mode .public-return-button { display: block; padding-inline: 10px; font-size: 0; }
  .member-mode .public-return-button::before { content: "← Web"; font-size: 8px; }
}

@media (max-width: 520px) {
  .public-nav-actions .public-join { font-size: 0; }
  .public-nav-actions .public-join::before { content: "Ukázka"; font-size: 9px; }
  .public-nav-actions .public-join span { font-size: 9px; }
  .public-hero h1 { font-size: 58px; }
  .public-lead { font-size: 13px; }
  .public-trust-row { grid-template-columns: 1fr; }
  .public-trust-row div { padding: 13px 0; display: flex; align-items: center; gap: 13px; border-bottom: 1px solid #d6cec7; }
  .public-trust-row span { margin: 0; max-width: none; }
  .public-hero-art { min-height: 440px; }
  .public-members-card { top: 20px; min-width: 125px; }
  .public-ai-card { left: 13px; right: 13px; bottom: 13px; }
  .public-section-head h2, .product-copy h2, .membership-heading h2 { font-size: 48px; }
  .public-ecosystem { padding-inline: 15px; }
  .ecosystem-card { min-height: 470px; padding: 22px; }
  .product-demo { min-height: 530px; padding: 13px; }
  .demo-context { margin-left: 14%; }
  .demo-message { margin-right: 7%; }
  .course-feature-art { min-height: 450px; }
  .course-feature-copy > h2 { font-size: 54px; }
  .course-feature-facts { grid-template-columns: 1fr; }
  .course-feature-facts span { border-bottom: 1px solid #d3cbc4; }
  .membership-card { padding: 25px 20px; }
  .public-footer { grid-template-columns: 1fr; }
  .public-footer nav { grid-column: auto; grid-row: auto; }
}

/* Reference-led editorial redesign */
:root {
  --ref-cream: #fbf5e9;
  --ref-paper: #fffaf3;
  --ref-pink: #efc3cb;
  --ref-pink-soft: #f6dde0;
  --ref-coral: #dc6f68;
  --ref-wine: #5a1828;
  --ref-raspberry: #a82f55;
  --ref-apricot: #eea05e;
  --ref-green: #2a8b6d;
  --ref-ink: #281a20;
}

body.public-mode { background: var(--ref-cream); }
.public-site { color: var(--ref-ink); background: var(--ref-cream); }
.public-nav {
  min-height: 106px;
  padding-inline: clamp(24px, 4vw, 66px);
  grid-template-columns: 1fr auto 1fr;
  background: rgba(251,245,233,.95);
  border-bottom-color: rgba(82,25,43,.12);
}
.public-nav .public-brand {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  color: var(--ref-wine);
  font-size: 64px;
  font-weight: 600;
}
.public-nav > nav { justify-self: start; gap: 25px; }
.public-nav > nav a { color: #6a4c57; font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.public-nav-actions { grid-column: 3; }
.public-nav-actions button { border-radius: 999px; }
.public-join { border-color: var(--ref-wine); background: var(--ref-wine); }

.public-hero {
  min-height: calc(100vh - 106px);
  padding: clamp(54px,6vw,92px) clamp(24px,6vw,100px) 72px;
  grid-template-columns: minmax(0,.98fr) minmax(460px,1.02fr);
  gap: clamp(35px,6vw,94px);
  background:
    radial-gradient(circle at 7% 88%, rgba(239,195,203,.56), transparent 18%),
    var(--ref-cream);
}
.public-kicker, .public-section-head > div > p, .product-copy > p:first-child, .course-feature-copy > p:first-child, .membership-heading > p { color: var(--ref-raspberry); }
.public-hero h1 {
  margin-top: 19px;
  color: var(--ref-ink);
  font-size: clamp(66px,7.2vw,120px);
  line-height: .82;
}
.public-hero h1 em, .public-section-head h2 em, .product-copy h2 em, .membership-heading h2 em { color: var(--ref-coral); }
.public-lead { color: #68525b; }
.public-cta, .public-dark-cta { border-color: var(--ref-wine); border-radius: 999px; background: var(--ref-wine); }
.public-hero-actions a { color: var(--ref-wine); }
.public-trust-row { border-top-color: #ddc8c5; }
.public-trust-row strong { color: var(--ref-wine); }
.public-hero-art {
  min-height: min(700px, calc(100vh - 150px));
  overflow: visible;
  background: var(--ref-pink);
  box-shadow: none;
  isolation: isolate;
}
.public-hero-art::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 45%;
  height: 28%;
  left: -9%;
  bottom: -7%;
  border-radius: 50% 50% 8px 8px;
  background: var(--ref-apricot);
}
.public-hero-art::after { display: none; }
.public-hero-art > img { object-position: center; border-radius: 48% 48% 3px 3px; }
.public-art-index { color: var(--ref-wine); background: rgba(255,248,240,.75); padding: 7px 9px; }
.public-ai-card {
  left: -35px;
  right: 42px;
  bottom: 28px;
  border: 1px solid rgba(90,24,40,.13);
  border-radius: 11px;
  color: var(--ref-ink);
  background: rgba(255,249,241,.86);
  box-shadow: 0 20px 45px rgba(90,24,40,.12);
}
.public-ai-orb { color: white; background: var(--ref-wine); }
.public-ai-card small { color: var(--ref-raspberry); }
.public-ai-card b { color: var(--ref-coral); }
.public-members-card { top: 32px; right: -28px; color: white; background: var(--ref-coral); border-radius: 50% 0 0 50%; }

.public-proof { min-height: 74px; color: #fff0e9; background: var(--ref-wine); }
.public-proof i { color: var(--ref-apricot); }
.public-ecosystem { background: var(--ref-paper); }
.public-section-head h2 { color: var(--ref-wine); }
.public-section-head > p { color: #735d65; }
.ecosystem-grid { gap: 18px; }
.ecosystem-card {
  min-height: 610px;
  padding: 0;
  display: grid;
  grid-template-rows: 320px 1fr;
  color: var(--ref-ink);
  background: var(--ref-pink-soft);
}
.ecosystem-card::after { display: none; }
.ecosystem-card > img {
  position: relative;
  z-index: 0;
  inset: auto;
  grid-row: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: ellipse(72% 82% at 50% 18%);
}
.ecosystem-coach { background: #f5d1d6; }
.ecosystem-circle { background: #f3e1d5; }
.ecosystem-academy { background: #e9b6c1; }
.ecosystem-circle > img { object-position: 50% center; }
.ecosystem-number { position: absolute; z-index: 2; top: 22px; left: 22px; padding: 7px 9px; color: var(--ref-wine); background: rgba(255,248,240,.82); }
.ecosystem-copy { grid-row: 2; padding: 28px; }
.ecosystem-copy > span { color: var(--ref-raspberry); }
.ecosystem-copy h3 { color: var(--ref-wine); }
.ecosystem-copy p { color: #755a64; }
.ecosystem-copy button { color: var(--ref-wine); }

.public-product {
  background:
    radial-gradient(circle at 10% 35%, rgba(239,195,203,.9), transparent 22%),
    #f7e7dc;
}
.product-copy h2 { color: var(--ref-wine); }
.product-copy > p:nth-of-type(2) { color: #715963; }
.product-copy ul { border-top-color: #d9bdbd; }
.product-copy li { border-bottom-color: #d9bdbd; }
.product-copy li span { color: var(--ref-coral); }
.product-demo { border: 2px solid var(--ref-wine); border-radius: 24px 24px 8px 8px; background: #fffaf4; box-shadow: 18px 18px 0 var(--ref-pink); }
.demo-orb, .demo-message > span, .demo-composer b { background: var(--ref-wine); }
.demo-context { background: var(--ref-pink-soft); }
.demo-message p { color: var(--ref-wine); background: #f2c9d1; }

.public-course-feature { background: #fffaf3; }
.course-feature-art { min-height: 650px; background: var(--ref-wine); }
.course-feature-art::after { background: linear-gradient(180deg, transparent 55%, rgba(90,24,40,.72)); }
.course-feature-art img { object-position: center; }
.course-feature-art b { color: #ffd4dc; }
.course-feature-copy > h2 { color: var(--ref-wine); }
.course-feature-copy h3 { color: var(--ref-coral); }
.course-feature-copy > p:nth-of-type(2) { color: #715b64; }
.course-feature-facts { border-block-color: #dbc8c4; }
.public-membership {
  color: #fff8f1;
  background:
    radial-gradient(ellipse at 14% 15%, rgba(226,111,104,.62), transparent 30%),
    var(--ref-wine);
}
.membership-heading > p { color: #ffc3cd; }
.membership-heading h2 { color: white; }
.membership-heading h2 em { color: #ffb6c4; }
.membership-card { border-color: rgba(255,255,255,.34); background: rgba(255,245,238,.1); }
.membership-card-head span { color: #ffc6cf; }
.membership-card button { color: var(--ref-wine); background: #ffd5dc; }
.public-footer { background: var(--ref-pink-soft); border-top-color: #d8b6bb; }
.public-footer .public-brand, .public-footer > p { color: var(--ref-wine); }

/* Member experience in the same reference family */
.member-mode .topbar { background: #fff8ef; border-bottom: 1px solid #e6ccc9; color: var(--ref-wine); }
.member-mode .brand-wordmark { color: var(--ref-wine); text-shadow: none; }
.member-mode .brand-wordmark::after { background: var(--ref-coral); }
.member-mode .brand-lockup { border-left-color: #ddc7c7; }
.member-mode .brand-lockup b { color: var(--ref-raspberry); }
.member-mode .brand-lockup small { color: #8c747e; }
.member-mode .topbar .library-top-button { border-color: var(--ref-wine); color: white; background: var(--ref-wine); }
.member-mode .topbar .status-pill { color: #755a64; background: #f4dfdf; }
.member-mode .topbar .icon-button { border-color: #e0c6c5; color: var(--ref-wine); background: white; }
.member-mode .topbar .avatar { color: white; background: var(--ref-coral); }
.member-mode .public-return-button { border-color: #dfc6c7; color: var(--ref-wine); }
.member-mode .sidebar { color: var(--ref-wine); background: #f0ced3; border-right-color: #ddb6bd; }
.member-mode .sidebar-heading > span { color: var(--ref-wine); }
.member-mode .sidebar .nav-item { color: #76535f; }
.member-mode .sidebar .nav-item.active { color: white; background: var(--ref-wine); }
.member-mode .sidebar .nav-item.active small { color: #edbdc7; }
.member-mode .sidebar .progress-card { border-color: #d9aeb6; color: var(--ref-wine); background: rgba(255,250,244,.48); }
.member-mode .sidebar .progress-card p, .member-mode .sidebar .progress-title span { color: #8a6873; }
.member-mode .sidebar .progress-title strong { color: var(--ref-wine); }
.member-mode .sidebar .progress-track { background: #e2b9c0; }
.member-mode .sidebar .progress-track span { background: var(--ref-coral); }
.member-mode .member-scroll { background: #fff8ef; }
.member-mode .member-hero {
  color: var(--ref-wine);
  background: #f3d9dc;
  box-shadow: none;
}
.member-mode .member-hero::before { color: #ae7887; }
.member-mode .member-hero .overline { color: var(--ref-raspberry); }
.member-mode .member-hero h1 { color: var(--ref-wine); }
.member-mode .member-hero h1 #member-greeting { color: var(--ref-coral); }
.member-mode .member-hero > div > p:not(.overline) { color: #755963; }
.member-mode .member-hero .primary-button { color: white; background: var(--ref-wine); }
.member-mode .member-hero .secondary-button { border-color: var(--ref-wine); color: var(--ref-wine); }
.member-mode .member-visual-stage { border: 0; border-radius: 48% 48% 4px 4px; background: var(--ref-pink); }
.member-mode .member-visual-stage::after { background: linear-gradient(180deg, transparent 62%, rgba(90,24,40,.34)); }
.member-mode .member-visual-stage > img { object-position: center; }
.member-mode .member-coach-float { border-color: rgba(90,24,40,.12); color: var(--ref-wine); background: rgba(255,248,240,.88); }
.member-mode .member-coach-float span { color: var(--ref-raspberry); }
.member-mode .member-coach-float strong { color: var(--ref-wine); }
.member-mode .member-coach-float .member-orb { color: white; background: var(--ref-wine); }
.member-mode .member-circle-float { border-color: rgba(255,255,255,.45); color: white; background: var(--ref-coral); }
.member-mode .member-circle-float strong, .member-mode .member-circle-float span { color: white; }
.member-mode .member-pulse { border-color: #e4cbc8; background: #fffaf4; }
.member-mode .member-pulse strong { color: var(--ref-coral); }
.member-mode .current-course-card { border-color: #e2c7c5; background: #fffaf4; }
.member-mode .course-cover {
  background-image: linear-gradient(180deg, transparent 45%, rgba(90,24,40,.64)), url('/elitea/academy-sonia-v2.png');
}
.member-mode .course-arrow { background: var(--ref-wine); }
.member-mode .dashboard-card { border-color: #e4c8c6; background: #fffaf4; }
.member-mode .next-step-card { background: #f4d4d8; }
.member-mode .certificate-card { background: var(--ref-wine); }
.member-mode .community-preview { background: var(--ref-wine); }
.member-mode .community-preview .overline { color: #ffc4cf; }
.member-mode .community-preview-copy h2 { color: white; }
.member-mode .community-hero {
  background: linear-gradient(120deg, #f7dfe1 0 61%, #e88680 61% 100%);
}
.member-mode .community-hero h1, .member-mode .academy-hero h1 { color: var(--ref-wine); }
.member-mode .community-hero > div:first-child > p:last-child, .member-mode .academy-hero > div:first-child > p:last-child { color: #765a64; }
.member-mode .community-hero .overline, .member-mode .academy-hero .overline { color: var(--ref-raspberry); }
.member-mode .community-hero-visual > img, .member-mode .academy-visual > img { border: 5px solid #fff8ef; border-radius: 50% 50% 12px 12px; }
.member-mode .community-hero-visual .community-presence, .member-mode .academy-visual .academy-stat { color: var(--ref-wine); background: rgba(255,249,241,.92); border-color: #e4c9c6; }
.member-mode .community-presence small, .member-mode .academy-stat small { color: #876b75; }
.member-mode .academy-stat strong { color: var(--ref-coral); }
.member-mode .academy-hero { background: linear-gradient(120deg, #fff4e7 0 62%, #efc3cb 62% 100%); }
.member-mode .academy-visual-label { color: white; background: var(--ref-wine); }
.member-mode .academy-scroll { background: #fff8ef; }
.member-mode .academy-intro { border-color: #e3c4c4; background: #f3d9dc; }
.member-mode .academy-course-card { border-color: #e4c9c6; background: #fffaf4; }
.member-mode .academy-course-card .course-cover { background-image: linear-gradient(180deg, transparent 42%, rgba(90,24,40,.65)), url('/elitea/academy-sonia-v2.png'); }
.member-mode .chat-panel { background: #fffaf4; }
.member-mode .chat-header, .member-mode .composer-wrap { background: #fffaf4; }
.member-mode .quick-card { border-color: #e5cecb; }
.member-mode .quick-card:nth-child(1), .member-mode .quick-card:nth-child(4) { background: #f4d4d8; }
.member-mode .quick-card:nth-child(2), .member-mode .quick-card:nth-child(5) { background: #f4e2d2; }
.member-mode .quick-card:nth-child(3), .member-mode .quick-card:nth-child(6) { background: #fffaf4; }

@media (max-width: 1080px) {
  .public-nav .public-brand { position: static; transform: none; justify-self: start; font-size: 51px; }
  .public-nav > nav { display: none; }
}

@media (max-width: 820px) {
  .public-nav { min-height: 76px; }
  .public-nav .public-brand { font-size: 42px; }
  .public-hero { padding-top: 46px; }
  .public-hero-art { min-height: 560px; margin-inline: 14px; }
  .public-ai-card { left: -12px; right: 18px; }
  .public-members-card { right: -14px; }
  .ecosystem-card { min-height: 560px; }
  .member-mode .member-hero { background: #f3d9dc; }
}

@media (max-width: 520px) {
  .public-nav .public-brand { font-size: 37px; }
  .public-hero h1 { font-size: 61px; }
  .public-hero-art { min-height: 475px; }
  .ecosystem-card { min-height: 520px; grid-template-rows: 280px 1fr; }
  .public-product { background: #f7e7dc; }
}

/* Professional EdTech / community platform direction */
:root {
  --pro-black: #111114;
  --pro-copy: #57575d;
  --pro-line: #dedee2;
  --pro-white: #ffffff;
  --pro-canvas: #f4f4f6;
  --pro-orange: #ff9418;
  --pro-purple: #6035cf;
  --pro-mint: #22cda4;
  --pro-coral: #ff6b4a;
}

body.public-mode, .public-site { color: var(--pro-black); background: var(--pro-white); }
.public-nav {
  min-height: 82px;
  padding-inline: clamp(24px,5vw,80px);
  grid-template-columns: auto 1fr auto;
  gap: 54px;
  border-bottom: 0;
  background: rgba(255,255,255,.96);
}
.public-nav .public-brand {
  position: static;
  left: auto;
  transform: none;
  color: var(--pro-black);
  font: 700 42px/.9 "Bodoni Moda", serif;
  letter-spacing: -.075em;
}
.public-nav .public-brand span { color: var(--pro-orange); }
.public-nav > nav { grid-column: 2; justify-self: center; gap: 34px; }
.public-nav > nav a { color: #56565d; font-size: 10px; text-transform: none; letter-spacing: 0; }
.public-nav-actions { grid-column: 3; }
.public-nav-actions button { min-height: 42px; padding-inline: 18px; border-radius: 999px; font-size: 10px; }
.public-login { border: 1px solid var(--pro-line); }
.public-join { border-color: var(--pro-black); background: var(--pro-black); }
.public-join span { color: var(--pro-mint); }

.public-hero {
  position: relative;
  min-height: 720px;
  padding: 60px clamp(24px,7vw,112px) 0;
  grid-template-columns: minmax(0,.96fr) minmax(500px,1.04fr);
  gap: 44px;
  align-items: center;
  overflow: hidden;
  background: white;
}
.public-hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  left: -4%;
  right: -4%;
  bottom: -1px;
  height: 31%;
  background: var(--pro-orange);
  clip-path: polygon(0 67%, 46% 0, 100% 37%, 100% 100%, 0 100%);
}
.public-hero-copy, .public-hero-art { position: relative; z-index: 1; }
.public-kicker { color: #233c57; font-size: 11px; letter-spacing: .04em; }
.public-hero h1 {
  max-width: 760px;
  margin: 19px 0 24px;
  color: var(--pro-black);
  font: 800 clamp(57px,5.9vw,96px)/.91 Manrope, sans-serif;
  letter-spacing: -.075em;
}
.public-hero h1 em {
  display: block;
  color: var(--pro-black);
  font: inherit;
  font-style: normal;
}
.public-lead { max-width: 630px; color: var(--pro-copy); font-size: 14px; line-height: 1.7; }
.public-cta, .public-dark-cta { border-color: var(--pro-black); border-radius: 999px; background: var(--pro-black); }
.public-cta span { color: var(--pro-mint); }
.public-hero-actions a { color: var(--pro-black); }
.public-trust-row { margin-top: 38px; max-width: 620px; border-top-color: #dadae0; }
.public-trust-row strong { color: var(--pro-black); font: 800 24px Manrope, sans-serif; }
.public-trust-row span { color: #717178; }

.public-hero-art {
  align-self: stretch;
  min-height: 638px;
  overflow: visible;
  background: transparent;
  box-shadow: none;
}
.public-hero-art::before {
  content: "";
  position: absolute;
  z-index: 0;
  width: 88%;
  height: 58%;
  right: -8%;
  bottom: 2%;
  border-radius: 46% 46% 10px 10px;
  background: var(--pro-orange);
  transform: rotate(-4deg);
}
.public-hero-art::after {
  content: "";
  position: absolute;
  z-index: 1;
  width: 54%;
  height: 42%;
  left: 8%;
  bottom: 3%;
  display: block;
  border-radius: 44% 44% 28% 28%;
  background: var(--pro-purple);
  transform: rotate(9deg);
}
.public-hero-art > img {
  position: absolute;
  z-index: 3;
  inset: auto 2% 0 auto;
  width: 90%;
  height: 100%;
  object-fit: contain;
  object-position: center 15%;
  border-radius: 0;
}
.public-art-index {
  z-index: 5;
  top: 37px;
  left: auto;
  right: 15px;
  color: #6c6c73;
  background: transparent;
  writing-mode: vertical-rl;
}
.public-ai-card {
  z-index: 6;
  left: 3%;
  right: auto;
  bottom: 11%;
  width: min(390px,72%);
  border: 1px solid rgba(20,20,24,.08);
  border-radius: 14px;
  color: var(--pro-black);
  background: rgba(255,255,255,.94);
  box-shadow: 0 18px 48px rgba(30,24,28,.16);
}
.public-ai-orb { background: var(--pro-black); }
.public-ai-card small { color: var(--pro-purple); }
.public-ai-card b { color: var(--pro-orange); }
.public-members-card {
  z-index: 6;
  top: 26%;
  right: -1%;
  min-width: 146px;
  border-radius: 18px;
  color: var(--pro-black);
  background: white;
  box-shadow: 0 16px 42px rgba(30,24,28,.15);
}
.public-members-card strong { color: var(--pro-purple); font-family: Manrope, sans-serif; font-weight: 800; }

.public-proof {
  min-height: 126px;
  padding: 0 clamp(24px,6vw,94px);
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 0;
  color: var(--pro-black);
  background: white;
  border-bottom: 1px solid var(--pro-line);
}
.public-proof div { padding: 26px 28px; display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; border-left: 1px solid var(--pro-line); }
.public-proof div:last-child { border-right: 1px solid var(--pro-line); }
.public-proof strong { color: var(--pro-mint); font: 800 35px/.95 Manrope, sans-serif; letter-spacing: -.05em; }
.public-proof span { color: #4f4f55; font-size: 10px; font-weight: 700; line-height: 1.35; white-space: normal; }

.public-ecosystem { padding-top: 120px; background: #f7f7f8; }
.public-section-head { grid-template-columns: minmax(0,1.1fr) minmax(320px,.9fr); }
.public-section-head h2, .product-copy h2, .membership-heading h2 {
  color: var(--pro-black);
  font: 800 clamp(48px,5vw,78px)/.95 Manrope,sans-serif;
  letter-spacing: -.065em;
}
.public-section-head h2 em, .product-copy h2 em, .membership-heading h2 em { color: var(--pro-purple); font: inherit; font-style: normal; }
.public-section-head > div > p, .product-copy > p:first-child, .course-feature-copy > p:first-child, .membership-heading > p { color: var(--pro-purple); }
.ecosystem-grid { gap: 16px; }
.ecosystem-card { min-height: 560px; border: 1px solid #e1e1e5; color: var(--pro-black); background: white; }
.ecosystem-card > img { clip-path: none; border-radius: 0 0 80px 80px; }
.ecosystem-coach { background: white; }
.ecosystem-circle { background: #edfff9; }
.ecosystem-academy { background: #fff4e6; }
.ecosystem-number { color: white; background: var(--pro-black); border-radius: 999px; }
.ecosystem-copy > span { color: var(--pro-purple); }
.ecosystem-copy h3 { color: var(--pro-black); font-family: Manrope,sans-serif; font-weight: 800; letter-spacing: -.055em; }
.ecosystem-copy p { color: var(--pro-copy); }
.ecosystem-copy button { color: var(--pro-black); }

.public-product { background: white; }
.product-copy h2 { color: var(--pro-black); }
.product-demo { border: 1px solid #d9d9df; border-radius: 24px; box-shadow: 20px 20px 0 var(--pro-purple); }
.demo-orb, .demo-message > span, .demo-composer b { background: var(--pro-black); }
.demo-context { background: #f0eeff; }
.demo-message p { color: white; background: var(--pro-black); }
.public-method-depth {
  padding: clamp(82px, 9vw, 145px) clamp(24px, 6vw, 94px);
  color: var(--pro-black);
  background: #f7f7f8;
}
.method-depth-head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(290px, .55fr);
  gap: clamp(45px, 8vw, 130px);
  align-items: end;
}
.method-depth-head > div > p,
.method-depth-card > span {
  margin: 0;
  color: var(--pro-purple);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .16em;
}
.method-depth-head h2 {
  max-width: 900px;
  margin: 16px 0 0;
  font: 800 clamp(48px, 5vw, 78px)/.95 Manrope, sans-serif;
  letter-spacing: -.065em;
}
.method-depth-head h2 em { color: var(--pro-purple); font: inherit; font-style: normal; }
.method-depth-head > p {
  margin: 0;
  color: var(--pro-copy);
  font-size: 12px;
  line-height: 1.7;
}
.method-depth-grid {
  margin-top: clamp(45px, 6vw, 82px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.method-depth-card {
  min-height: 390px;
  padding: clamp(28px, 3.4vw, 50px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid #e1e1e5;
  background: white;
}
.method-depth-card:nth-child(1) { border-radius: 0 0 88px 0; }
.method-depth-card:nth-child(2) { border-radius: 0 0 0 88px; background: #f0eeff; }
.method-depth-card:nth-child(3) { border-radius: 0 88px 0 0; background: #fff4e6; }
.method-depth-card:nth-child(4) { border-radius: 88px 0 0 0; background: #edfff9; }
.method-depth-card strong {
  margin-top: auto;
  color: var(--pro-orange);
  font: 800 clamp(74px, 8vw, 124px)/.78 Manrope, sans-serif;
  letter-spacing: -.085em;
}
.method-depth-card h3 {
  margin: 24px 0 10px;
  font: 800 clamp(25px, 2.4vw, 38px)/1 Manrope, sans-serif;
  letter-spacing: -.055em;
}
.method-depth-card p {
  max-width: 610px;
  margin: 0;
  color: var(--pro-copy);
  font-size: 11px;
  line-height: 1.65;
}
.method-depth-ledger {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid #e1e1e5;
  background: white;
}
.method-depth-ledger span {
  min-height: 92px;
  padding: 20px 22px;
  display: flex;
  gap: 11px;
  align-items: center;
  border-right: 1px solid #e1e1e5;
  color: #55555c;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.4;
}
.method-depth-ledger span:last-child { border-right: 0; }
.method-depth-ledger b { color: var(--pro-purple); font: 800 30px/.9 Manrope, sans-serif; letter-spacing: -.05em; }
.public-course-feature { background: #f7f7f8; }
.course-feature-art { background: var(--pro-orange); }
.course-feature-art::after { background: linear-gradient(180deg,transparent 50%,rgba(20,20,24,.46)); }
.course-feature-copy > h2 { color: var(--pro-black); font-family: Manrope,sans-serif; font-weight: 800; }
.course-feature-copy h3 { color: var(--pro-purple); font-family: Manrope,sans-serif; font-style: normal; font-weight: 700; }
.public-membership { background: var(--pro-black); }
.membership-heading h2 { color: white; }
.membership-heading h2 em { color: var(--pro-mint); }
.membership-heading > p, .membership-card-head span { color: var(--pro-mint); }
.membership-card button { color: var(--pro-black); background: var(--pro-mint); }
.membership-trial {
  margin: 24px 0 6px;
  padding: 18px 20px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
  border-radius: 14px;
  color: var(--pro-black);
  background: var(--pro-mint);
}
.membership-trial strong { font: 800 22px/1 Manrope,sans-serif; letter-spacing: -.04em; white-space: nowrap; }
.membership-trial span { font-size: 10px; font-weight: 700; line-height: 1.4; }
.public-footer { background: white; }

/* Member product mirrors the same system */
.member-mode .topbar { height: 76px; border-bottom: 1px solid var(--pro-line); color: var(--pro-black); background: white; }
.member-mode .app-shell { grid-template-rows: 76px minmax(0,1fr); }
.member-mode .brand-wordmark { color: var(--pro-black); }
.member-mode .brand-wordmark::after { background: var(--pro-orange); }
.member-mode .brand-lockup { border-left-color: var(--pro-line); }
.member-mode .brand-lockup b { color: var(--pro-purple); }
.member-mode .brand-lockup small { color: #77777e; }
.member-mode .topbar .library-top-button { border: 0; color: white; background: var(--pro-black); }
.member-mode .topbar .status-pill { color: #626268; background: #f2f2f4; }
.member-mode .topbar .icon-button { border-color: var(--pro-line); color: var(--pro-black); background: white; }
.member-mode .topbar .avatar { background: var(--pro-purple); }
.member-mode .public-return-button { border-color: var(--pro-line); color: var(--pro-black); }
.member-mode .sidebar { color: white; background: var(--pro-black); border-right: 0; }
.member-mode .sidebar-heading > span { color: #8f8f97; }
.member-mode .sidebar .nav-item { color: #aaaab1; }
.member-mode .sidebar .nav-item.active { color: var(--pro-black); background: white; }
.member-mode .sidebar .nav-item.active small { color: var(--pro-purple); }
.member-mode .sidebar .progress-card { border-color: #34343a; color: white; background: #1d1d21; }
.member-mode .sidebar .progress-card p, .member-mode .sidebar .progress-title span { color: #8d8d95; }
.member-mode .sidebar .progress-title strong { color: white; }
.member-mode .sidebar .progress-track { background: #35353a; }
.member-mode .sidebar .progress-track span { background: var(--pro-mint); }
.member-mode .member-scroll { background: #f5f5f6; }
.member-mode .member-hero {
  min-height: 430px;
  color: var(--pro-black);
  background: white;
  overflow: hidden;
}
.member-mode .member-hero::before { color: #a2a2a8; }
.member-mode .member-hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  display: block;
  inset: auto -8% -35% 42%;
  height: 75%;
  background: var(--pro-orange);
  transform: rotate(-8deg);
}
.member-mode .member-hero > div { position: relative; z-index: 2; }
.member-mode .member-hero .overline, .member-mode .member-hero h1 #member-greeting { color: var(--pro-purple); }
.member-mode .member-hero h1 { color: var(--pro-black); font-family: Manrope,sans-serif; font-weight: 800; line-height: .92; letter-spacing: -.07em; }
.member-mode .member-hero > div > p:not(.overline) { color: var(--pro-copy); }
.member-mode .member-hero .primary-button { color: white; background: var(--pro-black); }
.member-mode .member-hero .secondary-button { border-color: var(--pro-black); color: var(--pro-black); }
.member-mode .member-visual-stage { z-index: 2; overflow: visible; border: 0; border-radius: 0; background: transparent; }
.member-mode .member-visual-stage::before { content: ""; position: absolute; z-index: 0; width: 68%; height: 54%; left: 1%; bottom: 2%; border-radius: 48%; background: var(--pro-purple); transform: rotate(8deg); }
.member-mode .member-visual-stage::after { display: none; }
.member-mode .member-visual-stage > img { z-index: 1; object-fit: contain; object-position: center bottom; }
.member-mode .member-coach-float { z-index: 3; color: var(--pro-black); background: rgba(255,255,255,.94); border-color: #e2e2e6; }
.member-mode .member-coach-float span { color: var(--pro-purple); }
.member-mode .member-coach-float strong { color: var(--pro-black); }
.member-mode .member-coach-float .member-orb { background: var(--pro-black); }
.member-mode .member-circle-float { z-index: 3; color: white; background: var(--pro-orange); }
.member-mode .member-pulse { border-color: var(--pro-line); background: white; }
.member-mode .member-pulse strong { color: var(--pro-mint); font-family: Manrope,sans-serif; font-weight: 800; }
.member-mode .current-course-card, .member-mode .dashboard-card { border-color: var(--pro-line); background: white; }
.member-mode .next-step-card { background: #fff3e5; }
.member-mode .certificate-card { background: var(--pro-black); }
.member-mode .course-arrow { background: var(--pro-black); }
.member-mode .community-preview { background: var(--pro-black); }
.member-mode .community-preview .overline { color: var(--pro-mint); }
.member-mode .community-hero { background: linear-gradient(120deg,#fff 0 61%,var(--pro-mint) 61% 100%); }
.member-mode .community-hero h1, .member-mode .academy-hero h1 { color: var(--pro-black); font-family: Manrope,sans-serif; font-weight: 800; }
.member-mode .community-hero .overline, .member-mode .academy-hero .overline { color: var(--pro-purple); }
.member-mode .community-hero-visual > img, .member-mode .academy-visual > img { border: 0; border-radius: 45% 45% 8px 8px; }
.member-mode .academy-hero { background: linear-gradient(120deg,#fff 0 62%,var(--pro-orange) 62% 100%); }
.member-mode .academy-scroll { background: #f5f5f6; }
.member-mode .academy-intro { border-color: #d8d8dd; background: #f0eeff; }
.member-mode .academy-course-card { border-color: var(--pro-line); background: white; }
.member-mode .chat-panel, .member-mode .chat-header, .member-mode .composer-wrap { background: white; }

@media (max-width: 1080px) {
  .public-nav { grid-template-columns: auto 1fr; }
  .public-nav-actions { grid-column: 2; }
  .public-hero { grid-template-columns: minmax(0,1fr) 440px; }
  .public-hero h1 { font-size: 66px; }
}

@media (max-width: 820px) {
  .public-nav { min-height: 70px; }
  .public-nav .public-brand { font-size: 37px; }
  .public-hero { min-height: 0; padding: 45px 18px 0; grid-template-columns: 1fr; }
  .public-hero h1 { font-size: clamp(54px,15vw,75px); }
  .public-hero-art { min-height: 570px; margin: 0; }
  .public-hero::after { height: 22%; }
  .public-ai-card { left: 0; bottom: 8%; }
  .public-proof { grid-template-columns: repeat(2,1fr); padding-inline: 18px; }
  .public-proof div:nth-child(2) { border-right: 1px solid var(--pro-line); }
  .public-section-head { grid-template-columns: 1fr; }
  .member-mode .app-shell { grid-template-rows: 72px minmax(0,1fr) 64px; }
}

@media (max-width: 520px) {
  .public-hero h1 { font-size: 53px; }
  .public-hero-art { min-height: 500px; }
  .public-hero-art > img { width: 100%; right: -9%; }
  .public-members-card { top: 28%; right: -10px; min-width: 126px; }
  .public-ai-card { width: 84%; }
  .public-proof { grid-template-columns: 1fr; }
  .public-proof div, .public-proof div:nth-child(2) { border-right: 1px solid var(--pro-line); }
  .public-section-head h2, .product-copy h2, .membership-heading h2 { font-size: 45px; }
}

/* Elitea brand poster hero */
.public-hero.public-hero-poster {
  min-height: 0;
  padding: 0;
  display: block;
  overflow: hidden;
  background: #fff;
}
.public-hero.public-hero-poster::after { display: none; }
.public-hero-poster-image {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 1730 / 909;
  object-fit: cover;
  object-position: center;
}
.public-hero-poster-actions {
  min-height: 142px;
  padding: 26px clamp(24px,6vw,94px);
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 42px;
  align-items: center;
  color: #fff;
  background: var(--pro-black);
}
.public-hero-summary p {
  margin: 0 0 8px;
  color: var(--pro-mint);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
}
.public-hero-summary h1 {
  max-width: 760px;
  margin: 0;
  color: #fff;
  font: 800 clamp(25px,2.4vw,38px)/1.05 Manrope,sans-serif;
  letter-spacing: -.045em;
}
.public-hero-poster-buttons {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.public-hero-poster-buttons .public-cta {
  border-color: #fff;
  color: var(--pro-black);
  background: #fff;
}
.public-hero-poster-buttons .public-cta span { color: var(--pro-purple); }
.public-hero-poster-buttons a {
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  text-underline-offset: 5px;
}

@media (max-width: 820px) {
  .public-hero.public-hero-poster { padding: 0; }
  .public-hero-poster-image { min-height: 0; margin: 0; object-position: center; }
  .public-hero-poster-actions { grid-template-columns: 1fr; gap: 22px; padding-block: 27px 30px; }
  .public-hero-poster-buttons { justify-content: flex-start; }
}

@media (max-width: 520px) {
  .public-hero-poster-actions { padding-inline: 18px; }
  .public-hero-summary h1 { font-size: 27px; }
  .public-hero-poster-buttons { align-items: stretch; flex-direction: column; }
  .public-hero-poster-buttons .public-cta { width: 100%; }
  .public-hero-poster-buttons a { padding: 4px 2px; }
  .membership-trial { grid-template-columns: 1fr; gap: 7px; }
}

/* Luxury membership palette and portrait-safe Academy crop */
.ecosystem-academy > img {
  object-position: center top;
}

.public-membership {
  position: relative;
  isolation: isolate;
  min-height: 700px;
  padding: clamp(82px, 8vw, 132px) clamp(30px, 6vw, 96px);
  grid-template-columns: minmax(0, 1fr) minmax(410px, .86fr);
  gap: clamp(52px, 7vw, 110px);
  overflow: hidden;
  color: #fffaf6;
  background:
    radial-gradient(circle at 88% 12%, rgba(155, 105, 235, .45), transparent 30%),
    radial-gradient(circle at 8% 92%, rgba(255, 106, 34, .14), transparent 24%),
    linear-gradient(135deg, #160a2c 0%, #281047 48%, #3f1c6b 100%);
}

.public-membership::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 390px;
  aspect-ratio: 1;
  right: -150px;
  top: -190px;
  border: 1px solid rgba(230, 216, 255, .25);
  border-radius: 50%;
  box-shadow: 0 0 0 48px rgba(230, 216, 255, .035), 0 0 0 96px rgba(230, 216, 255, .025);
}

.membership-heading {
  max-width: 690px;
}

.membership-heading > p,
.membership-card-head span {
  color: #d7c3ff;
}

.membership-heading h2 {
  max-width: 690px;
  color: #fffaf6;
  font-size: clamp(54px, 5vw, 78px);
  line-height: .94;
}

.membership-heading h2 em {
  color: #d7c3ff;
}

.membership-card {
  position: relative;
  padding: clamp(28px, 3vw, 42px);
  border: 1px solid rgba(225, 209, 255, .28);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(95, 53, 153, .62), rgba(35, 17, 65, .82));
  box-shadow: 0 34px 90px rgba(7, 2, 20, .38), inset 0 1px 0 rgba(255, 255, 255, .12);
  backdrop-filter: blur(18px);
}

.membership-card::before {
  content: "7 DNÍ\A ZDARMA";
  position: absolute;
  z-index: 3;
  top: -48px;
  right: -34px;
  width: 112px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 9px solid rgba(255, 255, 255, .09);
  border-radius: 50%;
  color: #1a0c2d;
  background: #ff6a22;
  box-shadow: 0 18px 42px rgba(8, 2, 20, .3);
  font: 800 14px/1.05 Manrope, sans-serif;
  letter-spacing: -.02em;
  text-align: center;
  white-space: pre-line;
}

.membership-card::before {
  display: none;
}

.membership-card-head {
  padding-right: 0;
}

.membership-heading h2 {
  font-size: clamp(92px, 9vw, 150px);
  line-height: .78;
  letter-spacing: -.085em;
}

.membership-heading h2 em {
  color: #ff6a22;
}

.membership-lead {
  max-width: 560px;
  margin-top: 34px;
  display: block;
  color: rgba(255, 250, 246, .72);
  font-size: 14px;
  line-height: 1.65;
}

.membership-offer-banner {
  margin-bottom: 30px;
  padding: 25px 27px 27px;
  display: grid;
  gap: 7px;
  border-radius: 20px;
  color: #190c2c;
  background: #ff6a22;
  box-shadow: 0 18px 40px rgba(8, 2, 20, .26);
}

.membership-offer-banner span {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
}

.membership-offer-banner strong {
  font: 800 clamp(38px, 4vw, 58px)/.92 Manrope, sans-serif;
  letter-spacing: -.065em;
}

.membership-offer-banner p {
  margin: 5px 0 0;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
}

.membership-card-head {
  padding-right: 82px;
  border-bottom-color: rgba(225, 209, 255, .2);
}

.membership-card-head b {
  color: #fffaf6;
  font-size: clamp(31px, 3vw, 43px);
}

.membership-trial {
  border: 1px solid rgba(215, 195, 255, .3);
  color: #fffaf6;
  background: rgba(215, 195, 255, .13);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

.membership-trial strong {
  color: #e4d6ff;
}

.membership-card li {
  border-bottom-color: rgba(225, 209, 255, .14);
  color: rgba(255, 250, 246, .78);
  font-size: 11px;
}

.membership-card li::before {
  color: #ff8b51;
}

.membership-card button {
  min-height: 64px;
  border-radius: 14px;
  color: #190c2c;
  background: #ff6a22;
  box-shadow: 0 13px 28px rgba(7, 2, 20, .22);
  font-size: 12px;
}

.membership-card button span {
  color: #ff6a22;
  font-size: 17px;
}

.membership-card small {
  color: rgba(255, 250, 246, .48);
}

@media (max-width: 1080px) {
  .ecosystem-academy > img { object-position: center top; }
  .public-membership { grid-template-columns: minmax(0, 1fr) minmax(390px, .9fr); gap: 52px; }
  .membership-heading h2 { font-size: clamp(78px, 9vw, 112px); }
}

@media (max-width: 820px) {
  .public-membership { grid-template-columns: 1fr; padding-inline: 22px; }
  .membership-heading { max-width: 620px; }
  .membership-heading h2 { max-width: 620px; font-size: clamp(78px, 18vw, 112px); }
}

@media (max-width: 520px) {
  .ecosystem-academy > img { object-position: center top; }
  .public-membership { min-height: 0; padding: 72px 16px; gap: 38px; }
  .membership-heading h2 { font-size: 82px; }
  .membership-card { padding: 25px 20px; border-radius: 22px; }
  .membership-card::before { width: 88px; top: -38px; right: 14px; border-width: 7px; font-size: 11px; }
  .membership-card-head { padding-right: 0; }
  .membership-offer-banner { padding: 22px 20px 23px; }
  .membership-trial { grid-template-columns: 1fr; gap: 7px; }
}

/* Keep the three Elitea pillars visible on desktop-sized cards */
@media (min-width: 821px) {
  .ecosystem-card {
    position: relative;
    min-height: 620px;
    height: 620px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    isolation: isolate;
    border-radius: 0 0 72px 72px;
    color: #fff;
  }

  .ecosystem-card::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    display: block;
    background: linear-gradient(180deg, rgba(10, 6, 15, .02) 34%, rgba(16, 8, 24, .38) 58%, rgba(14, 7, 22, .94) 100%);
  }

  .ecosystem-card > img {
    position: absolute;
    z-index: -2;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
  }

  .ecosystem-coach > img { object-position: center center; }
  .ecosystem-circle > img { object-position: 50% center; }
  .ecosystem-academy > img { object-position: center top; }

  .ecosystem-number {
    position: absolute;
    z-index: 2;
    top: 24px;
    left: 24px;
  }

  .ecosystem-copy {
    position: relative;
    z-index: 2;
    grid-row: auto;
    padding: 0;
  }

  .ecosystem-copy > span {
    color: #ddccff;
  }

  .ecosystem-copy h3 {
    max-width: 520px;
    margin: 13px 0 11px;
    color: #fff;
    font-size: clamp(27px, 2.15vw, 39px);
    line-height: .98;
    text-wrap: balance;
  }

  .ecosystem-copy p {
    max-width: 470px;
    color: rgba(255, 255, 255, .76);
  }

  .ecosystem-copy button {
    color: #fff;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, .42);
    text-underline-offset: 5px;
  }
}

/* Coach room — the quiet, editorial conversation surface from the public demo. */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.member-mode .workspace:has(.chat-panel:not([hidden])) {
  background:
    radial-gradient(circle at 100% 0, rgba(208, 255, 240, .8), transparent 26%),
    linear-gradient(135deg, #f7f5ff 0%, #fff 48%, #f2fffb 100%);
}

.member-mode .chat-panel {
  position: relative;
  isolation: isolate;
  margin: 22px 24px 30px 18px;
  border: 1px solid #dedee6;
  border-radius: 0 0 62px 62px;
  background: #fff;
  box-shadow: 22px 22px 0 var(--elitea-purple);
  overflow: hidden;
}

.member-mode .chat-header {
  min-height: 98px;
  padding: 24px 36px;
  border-bottom: 0;
  background: #fff;
}

.member-mode .chat-header::after {
  content: "";
  position: absolute;
  left: 36px;
  right: 36px;
  top: 97px;
  height: 1px;
  background: #ded8d4;
}

.member-mode .chat-header .nia-orb,
.member-mode .message.assistant .message-avatar {
  color: #fff;
  background: #111114;
  box-shadow: none;
}

.member-mode .chat-header .nia-orb {
  width: 54px;
  height: 54px;
  font: 500 20px "Bodoni Moda", Didot, serif;
}

.member-mode .chat-header .nia-orb::after { display: none; }
.member-mode .chat-identity { min-width: 0; }
.member-mode .chat-title-row { gap: 0; }
.member-mode .chat-header h1 {
  color: #151316;
  font: 600 27px/1 "Bodoni Moda", Didot, serif;
  letter-spacing: -.035em;
}
.member-mode .chat-header p {
  margin-top: 6px;
  color: #77717a;
  font-size: 10px;
}
.member-mode .chat-header .ai-label,
.member-mode .chat-header .personalized-pill { display: none; }
.member-mode .chat-online-status {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #377565;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.member-mode .chat-online-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #45a387;
  box-shadow: 0 0 0 4px rgba(69,163,135,.12);
}

.member-mode .session-toolbar {
  min-height: 64px;
  padding: 14px 36px 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: #fff;
}
.member-mode .session-mode-chips {
  min-width: 0;
  display: flex;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: none;
}
.member-mode .session-mode-chips::-webkit-scrollbar { display: none; }
.member-mode .session-mode-chips button {
  flex: 0 0 auto;
  min-height: 31px;
  padding: 0 12px;
  border: 1px solid #dedee6;
  border-radius: 999px;
  color: #625e67;
  background: #fff;
  font-size: 8px;
  font-weight: 750;
  cursor: pointer;
}
.member-mode .session-mode-chips button:hover,
.member-mode .session-mode-chips button.active {
  color: #fff;
  border-color: #111114;
  background: #111114;
}
.member-mode .end-session-button {
  flex: 0 0 auto;
  padding: 8px 10px;
  border: 1px solid #dedee6;
  border-radius: 999px;
  color: #615c65;
}

.member-mode .chat-scroll { background: #fff; }
.member-mode .welcome-block {
  max-width: 900px;
  padding: 54px 54px 36px;
}
.member-mode .welcome-block .nia-orb.large { display: none; }
.member-mode .welcome-block h2 {
  max-width: 650px;
  margin: 12px auto 15px;
  font-size: clamp(42px, 5vw, 68px);
  line-height: .94;
}
.member-mode .welcome-copy { max-width: 590px; }
.member-mode .session-transparency {
  border-color: #e2dff1;
  color: #68636e;
  background: #f1efff;
}
.member-mode .onboarding-cta {
  min-height: 50px;
  margin-top: 22px;
  padding: 0 22px;
  border-radius: 999px;
  color: #fff;
  background: #111114;
}
.member-mode .quick-grid.session-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 26px;
}
.member-mode .quick-grid.session-grid .quick-card {
  width: auto;
  min-height: 34px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #dedee6;
  border-radius: 999px;
  background: #fff;
}
.member-mode .quick-grid.session-grid .quick-card > span,
.member-mode .quick-grid.session-grid .quick-card small,
.member-mode .quick-grid.session-grid .quick-card.active::after { display: none; }
.member-mode .quick-grid.session-grid .quick-card strong {
  margin: 0;
  color: #625e67;
  font-size: 8px;
}
.member-mode .quick-grid.session-grid .quick-card:hover,
.member-mode .quick-grid.session-grid .quick-card.active {
  transform: none;
  border-color: #111114;
  background: #111114;
  box-shadow: none;
}
.member-mode .quick-grid.session-grid .quick-card.active strong,
.member-mode .quick-grid.session-grid .quick-card:hover strong { color: #fff; }

.member-mode .messages {
  max-width: 900px;
  gap: 24px;
  padding: 34px 54px 56px;
}
.member-mode .message { max-width: 82%; }
.member-mode .message-avatar {
  width: 38px;
  height: 38px;
  font: 500 14px "Bodoni Moda", Didot, serif;
}
.member-mode .message.user .message-avatar { display: none; }
.member-mode .bubble {
  padding: 18px 22px;
  border-radius: 0 0 28px 28px;
  font-size: 14px;
  line-height: 1.62;
}
.member-mode .message.assistant .bubble {
  color: #fff;
  border: 0;
  border-radius: 6px 28px 28px 28px;
  background: #111114;
  box-shadow: none;
  font-weight: 650;
}
.member-mode .message.user {
  width: min(72%, 660px);
  max-width: 72%;
}
.member-mode .message.user .bubble {
  width: 100%;
  color: #17141a;
  border-radius: 28px 28px 6px 28px;
  background: #eeebff;
}
.member-mode .messages .message.user:first-child .bubble::before {
  content: "TY · DNEŠNÍ KONTEXT";
  display: block;
  margin-bottom: 10px;
  color: #817488;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .16em;
}
.member-mode .message-meta { color: #97919b; }

.member-mode .composer-wrap {
  padding: 12px 54px 26px;
  border: 0;
  background: #fff;
}
.member-mode .composer {
  max-width: 900px;
  min-height: 62px;
  padding: 7px 8px 7px 23px;
  align-items: center;
  border: 1px solid #d8d8e2;
  border-radius: 999px;
  box-shadow: none;
}
.member-mode .composer:focus-within {
  border-color: var(--elitea-purple);
  box-shadow: 0 0 0 4px rgba(99,54,220,.08);
}
.member-mode .composer textarea { padding: 11px 0; }
.member-mode .send-button {
  width: 47px;
  height: 47px;
  border-radius: 0 0 16px 16px;
  background: #111114;
}
.member-mode .send-button:hover { background: var(--elitea-purple); }
.member-mode .trust-strip { margin-top: 11px; }
.member-mode .disclaimer { margin-top: 6px; }

@media (max-width: 820px) {
  .member-mode .topbar { height: 72px; }
  .member-mode .sidebar { display: none; }
  .member-mode .workspace:has(.chat-panel:not([hidden])) { background: #fff; }
  .member-mode .chat-panel {
    height: 100%;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .member-mode .chat-header {
    min-height: 72px;
    padding: 10px 16px;
  }
  .member-mode .chat-header::after {
    left: 16px;
    right: 16px;
    top: 71px;
  }
  .member-mode .chat-header .nia-orb { width: 42px; height: 42px; font-size: 16px; }
  .member-mode .chat-header h1 { font-size: 22px; }
  .member-mode .session-toolbar {
    min-height: 50px;
    padding: 9px 14px 4px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
  }
  .member-mode .outcome-toolbar-button {
    flex: 0 0 auto;
    display: block;
    min-height: 31px;
    padding: 0 11px;
    border: 1px solid #4a3774;
    border-radius: 999px;
    color: #4a3774;
    background: #f1efff;
    font-size: 8px;
    font-weight: 800;
  }
  .member-mode .end-session-button:not([hidden]) { display: block; }
  .member-mode .welcome-block { padding: 42px 20px 28px; }
  .member-mode .welcome-block h2 { font-size: clamp(40px, 13vw, 58px); }
  .member-mode .messages { padding: 26px 15px 38px; }
  .member-mode .message { max-width: 94%; }
  .member-mode .message.user { width: 88%; max-width: 88%; }
  .member-mode .bubble { padding: 15px 17px; font-size: 13px; }
  .member-mode .composer-wrap { padding: 9px 12px 12px; }
  .member-mode .composer { min-height: 54px; padding-left: 17px; }
  .member-mode .send-button { width: 41px; height: 41px; }
  .member-mode .trust-strip { font-size: 7.5px; }
}

/* Worksheets add a sixth destination to the member mobile navigation. */
@media (max-width: 820px) {
  .member-mode .mobile-nav {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .member-mode .worksheets-panel {
    grid-column: 1;
    height: 100%;
  }
}

/* Calm luxury pass — colour supports hierarchy instead of competing with it */
.public-membership {
  color: #f7f2eb;
  background: #111114;
}

.public-membership::before {
  opacity: .12;
  border-color: #fff;
}

.membership-heading > p,
.membership-card-head span,
.membership-offer-banner span {
  color: #cbb8a8;
}

.membership-heading h2,
.membership-heading h2 em {
  color: #f7f2eb;
  background: transparent;
}

.membership-lead {
  color: rgba(255,255,255,.63);
}

.membership-card {
  border-color: rgba(255,255,255,.2);
  background: #19191d;
  box-shadow: 0 30px 80px rgba(0,0,0,.22);
}

.membership-offer-banner {
  color: #111114;
  border-color: #e7ddd3;
  background: #f4ede5;
}

.membership-offer-banner span,
.membership-offer-banner p {
  color: #645d57;
}

.membership-card button {
  color: #fff;
  background: #111114;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.28);
}

.membership-card button span {
  color: #ff8a31;
}

.course-request-section {
  border-color: #ddd9d4;
  background: #f3f0eb;
}

.course-request-section::before {
  width: 180px;
  left: -105px;
  bottom: -110px;
  border: 1px solid #d6cec5;
  background: transparent;
}

.course-request-section::after {
  display: none;
}

.course-request-copy h2 span {
  color: var(--elitea-ink);
}

.course-request-copy .overline {
  color: #846c78;
}

.course-request-form {
  border-color: #ddd9d4;
  background: #fffdf9;
  box-shadow: 0 20px 55px rgba(35,30,28,.06);
}

.course-request-form textarea {
  border-color: #dedad5;
  background: #f8f6f2;
}

.course-request-form textarea:focus {
  border-color: #74606d;
  box-shadow: 0 0 0 3px rgba(116,96,109,.1);
}

.course-request-options input:checked + span {
  border-color: var(--elitea-ink);
  background: var(--elitea-ink);
}

.course-request-options input:focus-visible + span {
  outline-color: rgba(17,17,20,.18);
}

.course-request-consent input {
  accent-color: var(--elitea-ink);
}

/* Equal CTA baseline across the three desktop ecosystem cards */
@media (min-width: 821px) {
  .ecosystem-copy {
    height: 100%;
    display: flex;
    flex-direction: column;
  }

  .ecosystem-copy button {
    flex: 0 0 auto;
    margin-top: auto;
  }
}

/* Academy uses a landscape-safe image when the card becomes wide */
.ecosystem-academy > .ecosystem-picture {
  position: relative;
  z-index: 0;
  grid-row: 1;
  width: 100%;
  height: 100%;
  display: block;
  overflow: hidden;
  border-radius: 0 0 80px 80px;
}

.ecosystem-academy > .ecosystem-picture > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
}

@media (max-width: 1080px) {
  .ecosystem-academy > .ecosystem-picture > img {
    object-position: 68% center;
  }
}

@media (min-width: 821px) {
  .ecosystem-academy > .ecosystem-picture {
    position: absolute;
    z-index: -2;
    inset: 0;
    grid-row: auto;
    border-radius: 0;
  }
}

/* Final desktop card system: image first, information in a separate block */
@media (min-width: 821px) {
  .ecosystem-card {
    min-height: 620px;
    height: auto;
    padding: 0;
    display: grid;
    grid-template-rows: 320px minmax(300px, auto);
    justify-content: stretch;
    overflow: hidden;
    isolation: isolate;
    border-radius: 0 0 42px 42px;
    color: var(--pro-black);
  }

  .ecosystem-card::after {
    display: none;
  }

  .ecosystem-card > img {
    position: relative;
    z-index: 0;
    inset: auto;
    grid-row: 1;
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 0;
  }

  .ecosystem-coach > img { object-position: 58% center; }
  .ecosystem-circle > img { object-position: 50% center; }

  .ecosystem-academy > .ecosystem-picture {
    position: relative;
    z-index: 0;
    inset: auto;
    grid-row: 1;
    width: 100%;
    height: 320px;
    border-radius: 0;
  }

  .ecosystem-academy > .ecosystem-picture > img {
    object-position: center 20%;
  }

  .ecosystem-number {
    top: 22px;
    left: 22px;
  }

  .ecosystem-copy {
    position: relative;
    z-index: 1;
    grid-row: 2;
    min-width: 0;
    padding: 27px 28px 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .ecosystem-copy > span {
    color: var(--pro-purple);
  }

  .ecosystem-copy h3 {
    max-width: none;
    margin: 12px 0 11px;
    color: var(--pro-black);
    font-size: clamp(27px, 2vw, 36px);
    line-height: 1;
    text-wrap: balance;
  }

  .ecosystem-copy p {
    max-width: none;
    color: var(--pro-copy);
  }

  .ecosystem-copy button {
    margin-top: auto;
    padding-top: 24px;
    color: var(--pro-black);
    text-decoration: none;
  }

  .ecosystem-coach { background: #fff; }
  .ecosystem-circle { background: #edfff9; }
  .ecosystem-academy { background: #fff4e6; }
}

@media (min-width: 1081px) {
  .ecosystem-coach,
  .ecosystem-circle,
  .ecosystem-academy {
    grid-column: span 4;
  }
}

@media (max-width: 820px) {
  .method-depth-head { grid-template-columns: 1fr; gap: 25px; }
  .method-depth-grid { grid-template-columns: 1fr; }
  .method-depth-card { min-height: 330px; }
  .method-depth-card:nth-child(n) { border-radius: 0 0 56px 0; }
  .method-depth-ledger { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .method-depth-ledger span:nth-child(2) { border-right: 0; }
  .method-depth-ledger span:nth-child(-n+2) { border-bottom: 1px solid #e1e1e5; }
}

@media (max-width: 520px) {
  .public-method-depth { padding-inline: 15px; }
  .method-depth-head h2 { font-size: 45px; }
  .method-depth-card strong { font-size: 82px; }
  .method-depth-ledger { grid-template-columns: 1fr; }
  .method-depth-ledger span,
  .method-depth-ledger span:nth-child(2) { border-right: 0; border-bottom: 1px solid #e1e1e5; }
  .method-depth-ledger span:last-child { border-bottom: 0; }
}

@media (min-width: 821px) and (max-width: 1080px) {
  .ecosystem-academy > .ecosystem-picture > img {
    object-position: 68% center;
  }
}

/* Light member workspace — one visual language across dashboard, Community and Academy */
.member-mode .workspace {
  background: #f5f5f7;
}

.member-mode .sidebar {
  color: var(--pro-black);
  background: #fff;
  border-right: 1px solid var(--pro-line);
}

.member-mode .sidebar-heading > span {
  color: #7b7b84;
}

.member-mode .sidebar .mini-icon {
  color: var(--pro-black);
}

.member-mode .sidebar .nav-item {
  color: #62626b;
}

.member-mode .sidebar .nav-item:hover {
  color: var(--pro-black);
  background: #f5f3ff;
  transform: none;
}

.member-mode .sidebar .nav-item.active {
  color: var(--pro-purple);
  background: #efecff;
  box-shadow: inset 0 0 0 1px #ded8ff;
}

.member-mode .sidebar .nav-item small,
.member-mode .sidebar .nav-item.active small {
  color: #7b6fc0;
}

.member-mode .sidebar .nav-code {
  color: #777780;
  border-color: #dddde2;
  background: #fff;
}

.member-mode .sidebar .nav-item.active .nav-code {
  color: var(--pro-purple);
  border-color: #cfc6ff;
  background: #fff;
}

.member-mode .sidebar .progress-card {
  color: var(--pro-black);
  border-color: #dedce8;
  background: #f7f5ff;
}

.member-mode .sidebar .progress-card .eyebrow {
  color: var(--pro-purple);
}

.member-mode .sidebar .progress-card p,
.member-mode .sidebar .progress-title span {
  color: #74747e;
}

.member-mode .sidebar .progress-title strong {
  color: var(--pro-black);
}

.member-mode .sidebar .progress-track {
  background: #dfdce9;
}

.member-mode .sidebar .progress-track span {
  background: var(--pro-purple);
}

.member-mode .public-return-button {
  color: var(--pro-black);
  border-color: #dddde2;
  background: #fff;
}

.member-mode .member-panel,
.member-mode .community-panel,
.member-mode .academy-panel,
.member-mode .content-panel,
.member-mode .insight-panel,
.member-mode .community-scroll,
.member-mode .community-layout,
.member-mode .course-reader,
.member-mode .course-outline,
.member-mode .lesson-reader {
  color: var(--pro-black);
  background: #f5f5f7;
}

.member-mode .certificate-card {
  color: var(--pro-black);
  border-color: #ddd8fa;
  background: linear-gradient(145deg, #fff 0%, #f1eeff 100%);
}

.member-mode .certificate-card .overline {
  color: var(--pro-purple);
}

.member-mode .certificate-card p:not(.overline) {
  color: var(--pro-copy);
}

.member-mode .certificate-card .dashboard-index {
  color: #b7ade8;
}

.member-mode .locked-pill {
  color: var(--pro-purple);
  border: 1px solid #d6cff8;
  background: #fff;
}

.member-mode .community-preview {
  color: var(--pro-black);
  border: 1px solid var(--pro-line);
  background: linear-gradient(135deg, #fff 0%, #f3f0ff 100%);
}

.member-mode .community-preview .overline {
  color: var(--pro-purple);
}

.member-mode .community-preview-copy h2 {
  color: var(--pro-black);
}

.member-mode .community-preview-copy > p:not(.overline) {
  color: var(--pro-copy);
}

.member-mode .community-preview .secondary-button {
  color: #fff;
  border-color: var(--pro-black);
  background: var(--pro-black);
}

.member-mode .community-preview-activity {
  color: #fff;
  border-color: rgba(20,20,23,.12);
}

.member-mode .community-preview-activity strong {
  color: #cfc6ff;
}

.member-mode .community-preview-activity small {
  color: rgba(255,255,255,.7);
}

.member-mode .community-preview-activity .avatar-stack span {
  border-color: #fff;
}

.member-mode .community-post,
.member-mode .community-side-card,
.member-mode .academy-course-card,
.member-mode .course-reader-head {
  color: var(--pro-black);
  border-color: var(--pro-line);
  background: #fff;
}

.member-mode .featured-post {
  border-color: #dcd5ff;
  background: linear-gradient(135deg, #fff, #f7f5ff);
}

.member-mode .event-card {
  color: var(--pro-black);
  border-color: #ded8ff;
  background: #f0edff;
}

.member-mode .event-card .overline,
.member-mode .event-time {
  color: var(--pro-purple);
}

.member-mode .event-card > p:not(.overline) {
  color: var(--pro-copy);
}

.member-mode .event-date {
  color: var(--pro-black);
  background: #fff;
}

.member-mode .event-card .primary-button {
  color: #fff;
  background: var(--pro-black);
}

.member-mode .academy-scroll,
.member-mode .course-outline {
  background: #f5f5f7;
}

.member-mode .academy-intro {
  color: var(--pro-black);
  border-color: #dcd5ff;
  background: #f0edff;
}

.member-mode .academy-intro > span {
  background: var(--pro-purple);
}

@media (max-width: 820px) {
  .member-mode .community-preview-activity {
    border-top-color: rgba(20,20,23,.12);
  }
}

/* Ecosystem cards: retain the petal silhouette, strengthen hierarchy and actions */
@media (min-width: 821px) {
  .ecosystem-card {
    min-height: 560px;
    grid-template-rows: 285px auto;
    border: 1px solid #dfdfe4;
    border-top: 0;
    border-radius: 0 0 56px 56px;
  }

  .ecosystem-card > img,
  .ecosystem-academy > .ecosystem-picture {
    height: 285px;
  }

  .ecosystem-copy {
    min-height: 275px;
    padding: 30px 36px 34px;
  }

  .ecosystem-copy > span {
    font-size: 10px;
    letter-spacing: .17em;
  }

  .ecosystem-copy h3 {
    margin: 14px 0 14px;
    font-size: clamp(30px, 2.15vw, 39px);
    line-height: .98;
  }

  .ecosystem-copy p {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
  }

  .ecosystem-copy button {
    width: 100%;
    min-height: 54px;
    margin-top: 24px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: var(--pro-black);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(17,17,20,.13);
    transition: transform .18s ease, box-shadow .18s ease;
  }

  .ecosystem-copy button:hover {
    color: #fff;
    background: var(--pro-purple);
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(94,56,214,.2);
  }

  .ecosystem-copy button:focus-visible {
    outline: 3px solid rgba(94,56,214,.28);
    outline-offset: 3px;
  }
}

@media (max-width: 820px) {
  .ecosystem-card {
    border-radius: 0 0 42px 42px;
  }

  .ecosystem-copy button {
    width: 100%;
    min-height: 52px;
    margin-top: 22px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: var(--pro-black);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
  }
}

/* ELITEA visual system v2 — derived from the poster hero */
:root {
  --elitea-ink: #111114;
  --elitea-copy: #626268;
  --elitea-canvas: #f5f5f7;
  --elitea-line: #dedee4;
  --elitea-purple: #6035cf;
  --elitea-purple-soft: #efecff;
  --elitea-orange: #ff7a18;
  --elitea-orange-soft: #fff1df;
  --elitea-mint: #22cda4;
  --elitea-mint-soft: #eafff8;
  --elitea-leaf: 0 0 64px 64px;
  --elitea-pill: 999px;
}

body.public-mode,
.public-site {
  color: var(--elitea-ink);
  background: #fff;
}

.public-ecosystem,
.public-product,
.public-course-feature {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.public-ecosystem,
.public-course-feature {
  background: var(--elitea-canvas);
}

.public-section-head h2,
.product-copy h2,
.course-feature-copy > h2,
.membership-heading h2,
.ecosystem-copy h3 {
  font-family: Manrope, sans-serif;
  font-style: normal;
  font-weight: 800;
}

.public-section-head h2 em,
.product-copy h2 em,
.membership-heading h2 em {
  color: var(--elitea-purple);
  font: inherit;
  font-style: normal;
}

.public-section-head > div > p,
.product-copy > p:first-child,
.course-feature-copy > p:first-child,
.membership-heading > p {
  color: var(--elitea-purple);
}

.public-section-head > p,
.product-copy > p:nth-of-type(2),
.course-feature-copy > p:nth-of-type(2) {
  color: var(--elitea-copy);
}

.public-proof strong:nth-child(1) {
  color: var(--elitea-mint);
}

.public-proof div:nth-child(2) strong {
  color: var(--elitea-purple);
}

.public-proof div:nth-child(3) strong {
  color: var(--elitea-orange);
}

.public-proof div:nth-child(4) strong {
  color: var(--elitea-mint);
}

.public-product {
  background: #fff;
}

.public-product::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 340px;
  height: 170px;
  left: -90px;
  bottom: -55px;
  border-radius: 50%;
  background: var(--elitea-orange);
  transform: rotate(-10deg);
}

.public-product::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 220px;
  aspect-ratio: 1;
  right: -95px;
  top: 80px;
  border-radius: 50%;
  background: var(--elitea-mint-soft);
}

.product-copy li {
  min-height: 58px;
  padding: 13px 0;
  grid-template-columns: 42px 1fr;
  align-items: center;
  border-bottom-color: var(--elitea-line);
  color: var(--elitea-ink);
}

.product-copy li span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--elitea-purple);
}

.public-outline-cta,
.public-dark-cta {
  min-height: 54px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border: 0;
  border-radius: var(--elitea-pill);
  color: #fff;
  background: var(--elitea-ink);
  line-height: 1;
  box-shadow: 0 12px 28px rgba(17,17,20,.13);
}

.public-outline-cta span {
  margin-left: 0;
  color: var(--elitea-mint);
}

.product-demo {
  border-color: var(--elitea-line);
  border-radius: 0 0 56px 56px;
  background: #fff;
  box-shadow: 22px 22px 0 var(--elitea-purple);
}

.demo-context {
  border-radius: 18px 18px 4px 18px;
  background: var(--elitea-purple-soft);
}

.demo-message p {
  border-radius: 4px 20px 20px 20px;
  font-family: Manrope, sans-serif;
  font-size: 14px;
}

.demo-options span,
.demo-composer {
  border-color: var(--elitea-line);
  border-radius: var(--elitea-pill);
}

.course-feature-art {
  min-height: 620px;
  border-radius: var(--elitea-leaf);
  background: var(--elitea-orange);
}

.course-feature-copy h3 {
  color: var(--elitea-purple);
  font-family: Manrope, sans-serif;
  font-style: normal;
  font-weight: 700;
}

.course-feature-facts {
  border-block-color: var(--elitea-line);
}

.course-feature-facts b {
  color: var(--elitea-ink);
  font-family: Manrope, sans-serif;
  font-weight: 800;
}

.public-membership {
  background:
    radial-gradient(circle at 88% 12%, rgba(119, 75, 224, .55), transparent 30%),
    radial-gradient(circle at 8% 92%, rgba(255, 122, 24, .16), transparent 24%),
    linear-gradient(135deg, #160a2c 0%, #281047 48%, #3f1c6b 100%);
}

.membership-heading h2 em,
.membership-offer-banner,
.membership-card button {
  background-color: var(--elitea-orange);
}

.membership-heading h2 em {
  color: var(--elitea-orange);
  background: transparent;
}

.membership-card,
.membership-offer-banner {
  border-radius: 0 0 42px 42px;
}

.membership-card button {
  border-radius: var(--elitea-pill);
}

.membership-card button span {
  color: #1a0c2d;
}

.public-footer {
  color: var(--elitea-ink);
  border-top-color: var(--elitea-line);
  background: #fff;
}

.public-footer .public-brand,
.public-footer > p {
  color: var(--elitea-ink);
}

.public-footer > p {
  font-family: Manrope, sans-serif;
  font-style: normal;
  font-weight: 800;
}

.public-footer nav a,
.public-footer nav button {
  color: var(--elitea-copy);
}

/* Member space uses the same poster-derived tokens and silhouettes */
.member-mode .topbar,
.member-mode .sidebar,
.member-mode .member-panel,
.member-mode .community-panel,
.member-mode .academy-panel,
.member-mode .content-panel,
.member-mode .chat-panel {
  color: var(--elitea-ink);
}

.member-mode .member-scroll,
.member-mode .community-scroll,
.member-mode .academy-scroll,
.member-mode .course-reader,
.member-mode .lesson-reader,
.member-mode .course-outline {
  background: var(--elitea-canvas);
}

.member-mode .member-hero,
.member-mode .community-hero,
.member-mode .academy-hero {
  border: 1px solid var(--elitea-line);
  border-radius: 0 0 48px 48px;
}

.member-mode .member-hero h1,
.member-mode .community-hero h1,
.member-mode .academy-hero h1,
.member-mode .section-title-row h2,
.member-mode .community-preview-copy h2,
.member-mode .academy-course-copy h2,
.member-mode .welcome-block h2,
.member-mode .lesson-reader > h2 {
  color: var(--elitea-ink);
  font-family: Manrope, sans-serif;
  font-style: normal;
  font-weight: 800;
  letter-spacing: -.06em;
}

.member-mode .community-hero {
  background: linear-gradient(118deg, #fff 0 63%, var(--elitea-mint) 63% 100%);
}

.member-mode .academy-hero {
  background: linear-gradient(118deg, #fff 0 63%, var(--elitea-orange) 63% 100%);
}

.member-mode .current-course-card,
.member-mode .dashboard-card,
.member-mode .community-preview,
.member-mode .community-post,
.member-mode .community-side-card,
.member-mode .academy-course-card,
.member-mode .quick-card,
.member-mode .academy-intro {
  border: 1px solid var(--elitea-line);
  border-radius: 0 0 30px 30px;
  box-shadow: none;
}

.member-mode .next-step-card {
  background: var(--elitea-orange-soft);
}

.member-mode .certificate-card,
.member-mode .academy-intro {
  background: var(--elitea-purple-soft);
}

.member-mode .community-preview {
  background: linear-gradient(135deg, #fff 0%, var(--elitea-purple-soft) 100%);
}

.member-mode .event-card {
  background: var(--elitea-mint-soft);
}

.member-mode .member-pulse {
  overflow: hidden;
  border-color: var(--elitea-line);
  border-radius: 0 0 28px 28px;
}

.member-mode .member-pulse > div:nth-child(1) strong,
.member-mode .member-pulse > div:nth-child(4) strong {
  color: var(--elitea-mint);
}

.member-mode .member-pulse > div:nth-child(2) strong {
  color: var(--elitea-purple);
}

.member-mode .member-pulse > div:nth-child(3) strong {
  color: var(--elitea-orange);
}

.member-mode .primary-button,
.member-mode .secondary-button,
.member-mode .course-arrow,
.member-mode .lesson-actions button,
.member-mode .lesson-coach-box button {
  border-radius: var(--elitea-pill);
}

.member-mode .primary-button,
.member-mode .course-arrow,
.member-mode .lesson-coach-box button {
  color: #fff;
  background: var(--elitea-ink);
}

.member-mode .secondary-button {
  color: var(--elitea-ink);
  border-color: var(--elitea-ink);
  background: #fff;
}

.member-mode .course-progress-line span,
.member-mode .progress-track span {
  background: var(--elitea-purple);
}

.member-mode .course-badge,
.member-mode .overline,
.member-mode .post-topic,
.member-mode .academy-course-copy h3 {
  color: var(--elitea-purple);
}

@media (max-width: 820px) {
  .public-product::before,
  .public-product::after {
    opacity: .55;
  }

  .product-demo {
    box-shadow: 10px 10px 0 var(--elitea-purple);
  }

  .course-feature-art,
  .member-mode .member-hero,
  .member-mode .community-hero,
  .member-mode .academy-hero {
    border-radius: 0 0 38px 38px;
  }
}

/* Compact footer — no empty-screen effect */
.public-footer {
  min-height: 0;
  padding: 38px clamp(24px, 5vw, 78px) 24px;
  grid-template-columns: minmax(220px, 1fr) minmax(260px, .75fr) auto;
  grid-template-rows: auto auto;
  column-gap: clamp(40px, 7vw, 120px);
  row-gap: 28px;
  align-items: center;
  border-top: 1px solid var(--elitea-line);
  background: #fff;
}

.public-footer .public-brand {
  color: var(--elitea-ink);
  font-size: clamp(42px, 4vw, 62px);
}

.public-footer .public-brand span {
  color: var(--elitea-orange);
}

.public-footer > p {
  margin: 0;
  color: var(--elitea-purple);
  font: 800 clamp(18px, 1.7vw, 25px)/1.05 Manrope, sans-serif;
  letter-spacing: -.045em;
}

.public-footer nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
}

.public-footer nav a,
.public-footer nav button {
  color: var(--elitea-ink);
  font-size: 9px;
  white-space: nowrap;
}

.public-footer > small {
  grid-column: 1 / -1;
  padding-top: 18px;
  border-top: 1px solid var(--elitea-line);
  color: #929299;
}

@media (max-width: 820px) {
  .public-footer {
    padding: 34px 20px 22px;
    grid-template-columns: 1fr 1fr;
    gap: 25px 20px;
  }

  .public-footer > p {
    text-align: right;
  }

  .public-footer nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

@media (max-width: 520px) {
  .public-footer {
    grid-template-columns: 1fr;
  }

  .public-footer > p {
    text-align: left;
  }

  .public-footer nav {
    grid-column: auto;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .public-footer > small {
    grid-column: auto;
  }
}

/* Academy on demand — member-led course requests */
.course-request-section {
  position: relative;
  margin-top: 14px;
  padding: clamp(32px, 4vw, 54px);
  display: grid;
  grid-template-columns: minmax(300px, .82fr) minmax(430px, 1.18fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--elitea-line);
  border-radius: 0 0 46px 46px;
  background: var(--elitea-mint-soft);
}

.course-request-section::before,
.course-request-section::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
}

.course-request-section::before {
  width: 250px;
  aspect-ratio: 1;
  left: -110px;
  bottom: -145px;
  background: var(--elitea-orange);
}

.course-request-section::after {
  width: 190px;
  height: 90px;
  left: 31%;
  top: -40px;
  background: var(--elitea-purple);
  transform: rotate(9deg);
}

.course-request-copy {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.course-request-copy h2 {
  margin: 12px 0 20px;
  color: var(--elitea-ink);
  font: 800 clamp(43px, 4.2vw, 66px)/.91 Manrope, sans-serif;
  letter-spacing: -.075em;
}

.course-request-copy h2 span {
  color: var(--elitea-purple);
}

.course-request-copy > p:not(.overline) {
  max-width: 500px;
  margin: 0;
  color: var(--elitea-copy);
  font-size: 12px;
  line-height: 1.65;
}

.course-request-steps {
  margin-top: 30px;
  display: grid;
  gap: 9px;
}

.course-request-steps span {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--elitea-ink);
  font-size: 9px;
  font-weight: 800;
}

.course-request-steps b {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--elitea-ink);
  font-size: 7px;
}

.course-request-form {
  padding: clamp(24px, 3vw, 38px);
  display: grid;
  gap: 12px;
  border: 1px solid var(--elitea-line);
  border-radius: 0 0 34px 34px;
  background: #fff;
  box-shadow: 0 20px 55px rgba(29,25,40,.08);
}

.course-request-form > label,
.course-request-form legend {
  color: var(--elitea-ink);
  font-size: 9px;
  font-weight: 800;
}

.course-request-form label small {
  color: #9999a0;
  font-weight: 600;
}

.course-request-form textarea {
  width: 100%;
  resize: vertical;
  min-height: 82px;
  padding: 14px 15px;
  border: 1px solid var(--elitea-line);
  border-radius: 15px;
  color: var(--elitea-ink);
  background: #fafafa;
  font-size: 11px;
  line-height: 1.55;
  outline: 0;
}

.course-request-form textarea:focus {
  border-color: var(--elitea-purple);
  box-shadow: 0 0 0 3px rgba(96,53,207,.1);
  background: #fff;
}

.course-request-form fieldset {
  margin: 3px 0;
  padding: 0;
  border: 0;
}

.course-request-options {
  margin-top: 9px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.course-request-options label {
  position: relative;
  cursor: pointer;
}

.course-request-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.course-request-options span {
  min-height: 38px;
  padding: 0 9px;
  display: grid;
  place-items: center;
  border: 1px solid var(--elitea-line);
  border-radius: var(--elitea-pill);
  color: #68686f;
  background: #fff;
  font-size: 8px;
  font-weight: 800;
  text-align: center;
}

.course-request-options input:checked + span {
  color: #fff;
  border-color: var(--elitea-purple);
  background: var(--elitea-purple);
}

.course-request-options input:focus-visible + span {
  outline: 3px solid rgba(96,53,207,.18);
  outline-offset: 2px;
}

.course-request-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #707077 !important;
  font-weight: 600 !important;
  line-height: 1.4;
}

.course-request-consent input {
  margin: 1px 0 0;
  accent-color: var(--elitea-purple);
}

.course-request-submit {
  width: 100%;
  min-height: 52px;
  padding: 0 19px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-radius: var(--elitea-pill);
  color: #fff;
  background: var(--elitea-ink);
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.course-request-submit span {
  color: var(--elitea-mint);
  font-size: 16px;
}

.course-request-submit:disabled {
  opacity: .55;
  cursor: wait;
}

.course-request-status {
  min-height: 16px;
  margin: 0;
  font-size: 9px;
  line-height: 1.45;
}

.course-request-status.success { color: #167a62; }
.course-request-status.error { color: #a23c44; }
.course-request-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; }

@media (max-width: 980px) {
  .course-request-section {
    grid-template-columns: 1fr;
  }

  .course-request-section::after {
    left: auto;
    right: -50px;
  }
}

@media (max-width: 540px) {
  .course-request-section {
    padding: 28px 19px 22px;
    border-radius: 0 0 36px 36px;
  }

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

  .course-request-form {
    padding: 20px 16px;
    border-radius: 0 0 26px 26px;
  }
}

/* Membership pricing — one public introductory path for every member */
.membership-price {
  margin: 23px 0 12px;
  padding: 21px 22px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 0 0 24px 24px;
  background: rgba(255,255,255,.055);
}

.membership-price > div {
  display: flex;
  align-items: baseline;
  gap: 9px;
  white-space: nowrap;
}

.membership-price strong {
  color: #fff;
  font: 800 clamp(42px, 4vw, 61px)/.86 Manrope, sans-serif;
  letter-spacing: -.075em;
}

.membership-price > div span {
  color: rgba(255,255,255,.62);
  font-size: 11px;
  font-weight: 800;
}

.membership-price > p {
  max-width: 190px;
  margin: 0;
  color: rgba(255,255,255,.68);
  font-size: 9px;
  font-weight: 650;
  line-height: 1.45;
}

.membership-standard-price {
  padding: 13px 1px 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 4px 18px;
  border-bottom: 1px solid rgba(255,255,255,.13);
}

.membership-standard-price > span {
  color: rgba(255,255,255,.5);
  font-size: 8px;
  font-weight: 750;
  line-height: 1.4;
}

.membership-standard-price > b {
  color: #f7f2eb;
  font-size: 12px;
  letter-spacing: -.02em;
}

.membership-standard-price > small {
  grid-column: 2;
  margin: 0;
  color: rgba(255,255,255,.48);
  font-size: 8px;
  font-weight: 700;
  text-align: right;
}

.membership-card ul {
  margin-top: 18px;
  margin-bottom: 22px;
}

.membership-card li {
  padding: 10px 0;
  line-height: 1.45;
}

.membership-after-trial {
  margin: 11px 0 0;
  color: #f7f2eb;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.45;
  text-align: center;
}

.membership-value-note {
  margin-top: 18px;
  padding: 17px 18px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 0 0 20px 20px;
  color: rgba(255,255,255,.7);
  background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,122,24,.08));
  font-size: 9px;
  line-height: 1.6;
}

.membership-value-note strong {
  display: block;
  margin-bottom: 5px;
  color: #fff;
  font-size: 10px;
}

.membership-card > small {
  margin-top: 10px;
}

.session-transparency {
  width: fit-content;
  max-width: 650px;
  margin: 17px auto 0;
  padding: 10px 14px;
  border: 1px solid #e2ddda;
  border-radius: var(--elitea-pill);
  color: #777177;
  background: rgba(255,255,255,.72);
  font-size: 9px;
  line-height: 1.45;
}

.session-transparency strong {
  color: #211a1f;
}

@media (max-width: 520px) {
  .membership-price {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
  }

  .membership-price > p {
    max-width: 100%;
  }

  .membership-standard-price {
    grid-template-columns: 1fr;
  }

  .membership-standard-price > small {
    grid-column: 1;
    text-align: left;
  }

  .session-transparency {
    border-radius: 18px;
    text-align: left;
  }
}

/* A separate, explicit continuation decision for every coaching area. */
.mode-resume-dialog {
  width: min(700px, calc(100vw - 28px));
  border-radius: 0 0 42px 42px;
}

.mode-resume-card {
  padding: clamp(26px, 4vw, 46px);
  color: var(--elitea-ink);
  background:
    radial-gradient(circle at 100% 0, var(--elitea-mint-soft), transparent 34%),
    #fff;
}

.mode-resume-card > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.mode-resume-card h2 {
  margin: 7px 0 0;
  font: 800 clamp(34px, 5vw, 54px)/.95 Manrope, sans-serif;
  letter-spacing: -.065em;
}

.mode-resume-summary {
  margin-top: 30px;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid #dfdce9;
  border-radius: 0 0 30px 30px;
  background: var(--elitea-purple-soft);
}

.mode-resume-summary > span {
  color: var(--elitea-purple);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .15em;
}

.mode-resume-summary h3 {
  margin: 10px 0 24px;
  font: 800 19px/1.32 Manrope, sans-serif;
  letter-spacing: -.035em;
}

.mode-resume-summary p {
  margin: 0;
  padding: 14px 0;
  display: grid;
  grid-template-columns: 135px minmax(0, 1fr);
  gap: 15px;
  border-top: 1px solid rgba(74,55,116,.13);
  color: #625d68;
  font-size: 10px;
  line-height: 1.55;
}

.mode-resume-summary p strong {
  color: var(--elitea-ink);
  font-size: 8px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.mode-resume-actions {
  margin-top: 18px;
  display: grid;
  grid-template-columns: minmax(150px, .7fr) minmax(250px, 1.3fr);
  gap: 9px;
}

.mode-resume-actions button {
  min-height: 52px;
  border-radius: 999px;
}

.mode-resume-actions .primary-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-color: #111114;
  background: #111114;
}

.mode-resume-actions .primary-button span {
  color: var(--elitea-mint);
  font-size: 16px;
}

.mode-resume-card > small {
  display: block;
  max-width: 540px;
  margin: 14px auto 0;
  color: #8d8891;
  font-size: 8px;
  line-height: 1.55;
  text-align: center;
}

@media (max-width: 560px) {
  .mode-resume-dialog { border-radius: 0 0 30px 30px; }
  .mode-resume-card { padding: 25px 18px; }
  .mode-resume-summary { padding: 20px 17px; }
  .mode-resume-summary p { grid-template-columns: 1fr; gap: 5px; }
  .mode-resume-actions { grid-template-columns: 1fr; }
  .mode-resume-actions .primary-button { grid-row: 1; }
}

/* Every worksheet explains its purpose before asking the member to write. */
.worksheet-card {
  min-height: 470px;
}

.worksheet-card-number {
  margin: 22px 0 16px;
}

.worksheet-card-value {
  margin-top: 16px;
  padding-top: 13px;
  border-top: 1px solid rgba(17,17,20,.11);
}

.worksheet-card-value > span {
  display: block;
  margin-bottom: 6px;
  color: var(--elitea-purple);
  font-size: 7px;
  font-weight: 850;
  letter-spacing: .12em;
}

.worksheet-card-value > p {
  margin: 0;
  color: #54545b;
  font-size: 8px;
  line-height: 1.52;
}

.worksheet-card-value.discovery > p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.worksheet-card footer button {
  max-width: 145px;
  text-align: right;
}

.worksheet-value-grid {
  margin: 14px 38px 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.worksheet-value-grid article {
  min-height: 170px;
  padding: 21px 22px;
  border: 1px solid #dedee4;
  border-radius: 0 0 28px 0;
  background: #fff;
}

.worksheet-value-grid article:nth-child(2) { background: var(--elitea-mint-soft); }
.worksheet-value-grid article:nth-child(3) { background: #fff3e5; }

.worksheet-value-grid span,
.worksheet-usage-box > div > span {
  color: var(--elitea-purple);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .14em;
}

.worksheet-value-grid p {
  margin: 11px 0 0;
  color: #48454d;
  font-size: 9px;
  line-height: 1.62;
}

.worksheet-usage-box {
  margin: 14px 38px 0;
  padding: 22px 24px;
  display: grid;
  grid-template-columns: minmax(150px, .38fr) minmax(0, 1fr);
  gap: 28px;
  border: 1px solid #dedee4;
  border-radius: 0 0 28px 0;
  background: #fff;
}

.worksheet-usage-box > div > p {
  margin: 7px 0 0;
  color: #77727b;
  font-size: 8px;
  line-height: 1.5;
}

.worksheet-usage-box ol {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 22px;
  list-style: none;
}

.worksheet-usage-box li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: start;
}

.worksheet-usage-box li b {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #111114;
  font-size: 7px;
}

.worksheet-usage-box li p {
  margin: 0;
  color: #545159;
  font-size: 8px;
  line-height: 1.55;
}

@media (max-width: 820px) {
  .worksheet-card { min-height: 440px; }
  .worksheet-value-grid { margin: 12px 16px 0; grid-template-columns: 1fr; }
  .worksheet-value-grid article { min-height: 0; }
  .worksheet-usage-box { margin: 12px 16px 0; grid-template-columns: 1fr; gap: 18px; }
}

@media (max-width: 560px) {
  .worksheet-usage-box ol { grid-template-columns: 1fr; }
}

/* Elitea has three deliberately separate roles: coach, course trainer and Brand & Marketing. */
.assistant-role-switch {
  margin-left: auto;
  padding: 3px;
  display: inline-flex;
  gap: 3px;
  border: 1px solid #dedee6;
  border-radius: 999px;
  background: #f7f6fa;
}

.assistant-role-switch button {
  min-height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  color: #6b6670;
  background: transparent;
  font-size: 8px;
  font-weight: 800;
  cursor: pointer;
}

.assistant-role-switch button.active {
  color: #fff;
  background: #111114;
}

.member-mode .chat-online-status { margin-left: 0; }

.training-banner {
  min-height: 78px;
  margin: 10px 36px 0;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  border: 1px solid #dcd6fb;
  border-radius: 8px 26px 26px 26px;
  background: linear-gradient(120deg, #f2efff, #edfff9);
}

.training-banner[hidden] { display: none; }
.training-banner-copy { min-width: 0; }
.training-banner-copy > span,
.training-difficulty > span {
  display: block;
  margin-bottom: 4px;
  color: var(--elitea-purple);
  font-size: 7px;
  font-weight: 850;
  letter-spacing: .14em;
}
.training-banner-copy strong { display: block; font-size: 12px; }
.training-banner-copy p { margin: 4px 0 0; color: #6e6874; font-size: 8px; line-height: 1.45; }
.training-difficulty select {
  min-height: 34px;
  padding: 0 30px 0 11px;
  border: 1px solid #cec8e5;
  border-radius: 999px;
  color: #28242d;
  background: #fff;
  font-size: 8px;
  font-weight: 750;
}
.training-actions { display: flex; gap: 7px; align-items: center; }
.training-actions button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #111114;
  border-radius: 999px;
  color: #fff;
  background: #111114;
  font-size: 8px;
  font-weight: 800;
  cursor: pointer;
}
.training-actions button.quiet { color: #39343e; border-color: #cfcad8; background: #fff; }
.training-banner > small { grid-column: 1 / -1; color: #6f6877; font-size: 7.5px; }
.training-mode .message.assistant .message-avatar,
.training-mode .send-button { background: var(--elitea-purple); }
.training-mode .message.assistant .bubble { background: #211a35; }

.brand-agent-banner {
  position: relative;
  min-height: 124px;
  margin: 10px 36px 0;
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(220px, .95fr) minmax(220px, 1fr);
  gap: 14px 24px;
  overflow: hidden;
  border: 1px solid #d9d4e4;
  border-radius: 10px 38px 38px 38px;
  background: linear-gradient(125deg, #fff 0 60%, #f0ecff 60% 100%);
}

.brand-agent-banner::after {
  content: "";
  position: absolute;
  right: -44px;
  bottom: -72px;
  width: 150px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--elitea-orange);
  opacity: .92;
  pointer-events: none;
}

.brand-agent-banner[hidden] { display: none; }
.brand-agent-intro,
.brand-agent-state,
.brand-work-switch,
.brand-execution-note { position: relative; z-index: 1; }
.brand-agent-intro > span,
.brand-agent-state > span,
.brand-execution-note > span {
  display: block;
  margin-bottom: 6px;
  color: var(--elitea-purple);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .15em;
}
.brand-agent-intro strong,
.brand-agent-state strong,
.brand-execution-note strong { display: block; color: #121114; font-size: 12px; line-height: 1.2; }
.brand-agent-intro p,
.brand-agent-state p,
.brand-execution-note p { margin: 6px 0 0; color: #69636e; font-size: 8px; line-height: 1.5; }
.brand-work-switch {
  align-self: end;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  padding: 3px;
  border: 1px solid #d7d1df;
  border-radius: 999px;
  background: #f6f4f8;
}
.brand-work-switch button {
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  color: #4f4955;
  background: transparent;
  font-size: 8px;
  font-weight: 850;
  cursor: pointer;
}
.brand-work-switch button.active { color: #fff; background: #111114; }
.brand-agent-state {
  padding: 12px 14px;
  border: 1px solid #dfd9e9;
  border-radius: 8px 24px 24px 24px;
  background: #f4f0ff;
}
.brand-execution-note {
  padding: 12px 14px;
  border-radius: 8px 24px 24px 24px;
  background: #fff1e4;
}
.brand-execution-note[hidden] { display: none; }
.brand-mode .message.assistant .message-avatar,
.brand-mode .send-button { background: var(--elitea-purple); }
.brand-mode .message.assistant .bubble { background: #1d1535; }
.message-heading { display: inline-block; margin: 8px 0 2px; font-size: 1.02em; }
.message-heading:first-child { margin-top: 0; }
.message-bullet { display: inline-block; padding-left: 2px; }

.lesson-coach-box { grid-template-columns: 40px minmax(0, 1fr) auto; }
.lesson-coach-box small { display: block; margin-top: 7px; color: #766f79; font-size: 8px; }
.lesson-coach-actions { display: flex; gap: 7px; align-items: center; }
.lesson-coach-box .lesson-coach-actions button.secondary {
  color: #17141a;
  border: 1px solid #17141a;
  background: #fff;
}

@media (max-width: 1040px) {
  .assistant-role-switch button { padding: 0 8px; font-size: 7.5px; }
  .training-banner { grid-template-columns: minmax(180px, 1fr) auto; }
  .training-actions { grid-column: 1 / -1; }
  .brand-agent-banner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .assistant-role-switch { margin-left: auto; }
  .assistant-role-switch button { width: 35px; padding: 0; overflow: hidden; font-size: 0; }
  .assistant-role-switch button::first-letter { font-size: 0; }
  .assistant-role-switch button[data-assistant-role="coach"]::after { content: "K&M"; font-size: 7px; }
  .assistant-role-switch button[data-assistant-role="trainer"]::after { content: "TRÉN"; font-size: 7px; }
  .assistant-role-switch button[data-assistant-role="brand"]::after { content: "B&M"; font-size: 7px; }
  .member-mode .chat-online-status { display: none; }
  .training-banner { margin: 7px 12px 0; padding: 12px; grid-template-columns: 1fr; gap: 10px; }
  .training-difficulty, .training-actions { grid-column: 1; }
  .training-actions { flex-wrap: wrap; }
  .training-actions button { flex: 1 1 auto; }
  .lesson-coach-box { grid-template-columns: 36px minmax(0, 1fr); }
  .lesson-coach-actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr; }
  .brand-agent-banner { margin: 7px 12px 0; padding: 14px; grid-template-columns: 1fr; gap: 10px; }
  .brand-work-switch { width: 100%; }
  .brand-agent-banner::after { width: 110px; right: -42px; bottom: -58px; }
}

/* Academy is one continuous scroll surface so the introduction yields space to the course list. */
.member-mode .academy-home {
  display: block;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.member-mode .academy-home > .academy-scroll {
  height: auto;
  min-height: 0;
  overflow: visible;
}

.member-mode .academy-home .academy-hero {
  position: relative;
}

.course-trainer-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  align-self: start;
  border-radius: 13px;
  color: #fff;
  background: #151318;
  box-shadow: 0 8px 20px rgba(21,19,24,.15);
}

.course-trainer-mark svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.member-mode .lesson-coach-box {
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 16px;
  padding: 20px;
  border-color: #ded9e8;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(33,27,39,.07);
}

.lesson-trainer-eyebrow {
  display: block;
  margin-bottom: 5px;
  color: var(--elitea-purple);
  font: 900 7px/1.3 Manrope, sans-serif;
  letter-spacing: .14em;
}

.member-mode .lesson-coach-box strong {
  display: block;
  color: #19171b;
  font-size: 12px;
  line-height: 1.35;
}

.member-mode .lesson-coach-box p {
  max-width: 640px;
  margin-top: 5px;
  color: #6e6872;
  line-height: 1.55;
}

@media (max-width: 820px) {
  .member-mode .academy-home { scrollbar-gutter: auto; }
  .member-mode .lesson-coach-box { grid-template-columns: 42px minmax(0, 1fr); }
  .member-mode .lesson-coach-actions { grid-column: 1 / -1; }
}
