/* Portal Leadlovers 2026 — camada educacional compartilhada.
   Sistema visual aditivo: preserva geo-design.css e portal-nav.css.
   Todas as classes deste arquivo usam o prefixo llx para evitar colisões. */

/* ── Cores semânticas da experiência ─────────────────────────────── */
body {
  --llx-accent: #a51243;
  --llx-accent-strong: #7a0d31;
  --llx-accent-soft: #fff0f5;
  --llx-accent-line: #d8698b;
  --llx-accent-2: #755000;
  --llx-accent-2-soft: #fff7dc;
  --llx-on-accent: #ffffff;
  --llx-on-accent-strong: #ffffff;
  --llx-surface: var(--color-bg, #ffffff);
  --llx-surface-raised: #ffffff;
  --llx-surface-soft: #f7f8fa;
  --llx-text: var(--color-text, #181818);
  --llx-text-muted: #52606f;
  --llx-border: #d8dee7;
  --llx-border-strong: #aab4c3;
  --llx-success: #1f6f43;
  --llx-success-soft: #eaf7ef;
  --llx-warning: #8a5100;
  --llx-warning-soft: #fff5e5;
  --llx-danger: #a61b2b;
  --llx-danger-soft: #fff0f1;
  --llx-shadow: 0 10px 26px rgba(15, 23, 42, 0.09);
  --llx-shadow-small: 0 3px 12px rgba(15, 23, 42, 0.07);
  --llx-radius: 16px;
  --llx-radius-small: 10px;
  --llx-learning-bar-height: 70px;
  --llx-motion-feedback: 160ms;
  --llx-motion-state: 240ms;
  --llx-motion-distance: 10px;
  --llx-motion-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

body[data-ll-track="inbound"] {
  --llx-accent: #006879;
  --llx-accent-strong: #00505e;
  --llx-accent-soft: #e8f8fa;
  --llx-accent-line: #59aeb9;
  --llx-accent-2: #126b57;
  --llx-accent-2-soft: #eaf8f3;
}

body[data-ll-track="outbound"] {
  --llx-accent: #a84b00;
  --llx-accent-strong: #7c3700;
  --llx-accent-soft: #fff2e7;
  --llx-accent-line: #df8a45;
  --llx-accent-2: #6040a6;
  --llx-accent-2-soft: #f2edff;
}

body[data-ll-track="branding"] {
  --llx-accent: #a51243;
  --llx-accent-strong: #7a0d31;
  --llx-accent-soft: #fff0f5;
  --llx-accent-line: #d8698b;
  --llx-accent-2: #755000;
  --llx-accent-2-soft: #fff7dc;
}

body[data-ll-track="estrategico"] {
  --llx-accent: #4338a8;
  --llx-accent-strong: #32277f;
  --llx-accent-soft: #efefff;
  --llx-accent-line: #8279d9;
  --llx-accent-2: #1f6372;
  --llx-accent-2-soft: #eaf7f9;
}

body[data-ll-track="glossario"] {
  --llx-accent: #006b64;
  --llx-accent-strong: #00514c;
  --llx-accent-soft: #e8f8f5;
  --llx-accent-line: #56aaa3;
  --llx-accent-2: #365d9d;
  --llx-accent-2-soft: #edf3ff;
}

:root[data-theme="dark"] body {
  --llx-surface: #0b1220;
  --llx-surface-raised: #172033;
  --llx-surface-soft: #111827;
  --llx-text: #f8fafc;
  --llx-text-muted: #c4ceda;
  --llx-border: #3e4b5f;
  --llx-border-strong: #65738a;
  --llx-accent: #ff91b3;
  --llx-accent-strong: #a51243;
  --llx-accent-soft: #321724;
  --llx-accent-line: #d8698b;
  --llx-accent-2: #f4cf69;
  --llx-accent-2-soft: #332a12;
  --llx-on-accent: #101827;
  --llx-success: #75d39a;
  --llx-success-soft: #123222;
  --llx-warning: #f2bd69;
  --llx-warning-soft: #38240e;
  --llx-danger: #ff9ca8;
  --llx-danger-soft: #3a171d;
  --llx-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
  --llx-shadow-small: 0 4px 14px rgba(0, 0, 0, 0.24);
}

:root[data-theme="dark"] body[data-ll-track="inbound"] {
  --llx-accent: #7bd5e2;
  --llx-accent-strong: #006879;
  --llx-accent-soft: #102d33;
  --llx-accent-line: #4ba7b4;
  --llx-accent-2: #80d8bc;
  --llx-accent-2-soft: #123128;
}

:root[data-theme="dark"] body[data-ll-track="outbound"] {
  --llx-accent: #ffb16e;
  --llx-accent-strong: #a84b00;
  --llx-accent-soft: #382313;
  --llx-accent-line: #dd8742;
  --llx-accent-2: #c1adff;
  --llx-accent-2-soft: #27203d;
}

:root[data-theme="dark"] body[data-ll-track="branding"] {
  --llx-accent: #ff91b3;
  --llx-accent-strong: #a51243;
  --llx-accent-soft: #321724;
  --llx-accent-line: #d8698b;
  --llx-accent-2: #f4cf69;
  --llx-accent-2-soft: #332a12;
}

:root[data-theme="dark"] body[data-ll-track="estrategico"] {
  --llx-accent: #b9b2ff;
  --llx-accent-strong: #5144bf;
  --llx-accent-soft: #24213f;
  --llx-accent-line: #8d84e6;
  --llx-accent-2: #89d4e2;
  --llx-accent-2-soft: #132f36;
}

:root[data-theme="dark"] body[data-ll-track="glossario"] {
  --llx-accent: #79d7cf;
  --llx-accent-strong: #006b64;
  --llx-accent-soft: #102f2c;
  --llx-accent-line: #55aaa2;
  --llx-accent-2: #a9c7ff;
  --llx-accent-2-soft: #172841;
}

/* ── Utilidades e foco ───────────────────────────────────────────── */
.llx-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  border: 0 !important;
  white-space: nowrap !important;
}

.llx-progress-shell,
.llx-study-rail,
.llx-desktop-index,
.llx-mobile-index,
.llx-route-cards,
.llx-start-panel,
.llx-module,
.llx-page-pager,
.llx-pagination,
.llx-mobile-actions,
.llx-search,
.llx-answer-shell,
.llx-deep-dive,
.llx-learning-flow,
.llx-prereq-map {
  min-width: 0;
  max-width: 100%;
}

.llx-progress-shell *,
.llx-study-rail *,
.llx-desktop-index *,
.llx-mobile-index *,
.llx-route-cards *,
.llx-start-panel *,
.llx-module *,
.llx-page-pager *,
.llx-pagination *,
.llx-mobile-actions *,
.llx-search *,
.llx-answer-shell *,
.llx-deep-dive *,
.llx-learning-flow *,
.llx-prereq-map * {
  box-sizing: border-box;
}

.llx-progress-shell a,
.llx-study-rail a,
.llx-desktop-index a,
.llx-mobile-index a,
.llx-route-card,
.llx-page-pager a,
.llx-pagination a,
.llx-mobile-actions a {
  border-bottom: 0;
  text-decoration: none;
}

.llx-progress-shell button,
.llx-study-rail a,
.llx-desktop-index summary,
.llx-desktop-index a,
.llx-mobile-index summary,
.llx-mobile-index button,
.llx-mobile-index a,
.llx-route-card,
.llx-module-toggle,
.llx-page-pager a,
.llx-pagination a,
.llx-complete-button,
.llx-mobile-actions button,
.llx-mobile-actions a,
.llx-answer-toggle,
.llx-deep-dive summary {
  min-height: 44px;
}

.llx-progress-shell button:focus-visible,
.llx-study-rail a:focus-visible,
.llx-desktop-index summary:focus-visible,
.llx-desktop-index a:focus-visible,
.llx-mobile-index summary:focus-visible,
.llx-mobile-index button:focus-visible,
.llx-mobile-index a:focus-visible,
.llx-route-card:focus-visible,
.llx-module-toggle:focus-visible,
.llx-page-pager a:focus-visible,
.llx-pagination a:focus-visible,
.llx-complete-button:focus-visible,
.llx-mobile-actions button:focus-visible,
.llx-mobile-actions a:focus-visible,
.llx-search input:focus-visible,
.llx-answer-toggle:focus-visible,
.llx-deep-dive summary:focus-visible {
  outline: 3px solid var(--llx-accent);
  outline-offset: 3px;
}

/* ── Progresso de leitura ────────────────────────────────────────── */
.llx-progress-reserve {
  box-sizing: border-box;
  width: 100%;
  min-height: 70px;
  border-bottom: 1px solid var(--llx-border);
  background: var(--llx-surface);
}

.llx-noscript-note {
  max-width: 1120px;
  margin: 0.75rem auto;
  padding: 0.75rem 1rem;
  border: 1px solid var(--llx-border);
  border-radius: var(--llx-radius-small);
  background: var(--llx-surface-soft);
  color: var(--llx-text-muted);
  font-size: 0.82rem;
}

.llx-progress-shell {
  box-sizing: border-box;
  position: sticky;
  top: var(--llx-nav-offset);
  z-index: 1080;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  min-height: 70px;
  padding: 0.55rem max(1rem, calc((100vw - 1120px) / 2));
  border-bottom: 1px solid var(--llx-border);
  background: var(--llx-surface);
  color: var(--llx-text);
  box-shadow: var(--llx-shadow-small);
}

.llx-progress-shell::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 4px;
  background: var(--llx-border);
}

.llx-progress-bar,
.llx-reading-progress {
  position: absolute;
  z-index: 1;
  inset: auto auto 0 0;
  width: 100%;
  max-width: 100%;
  height: 4px;
  border-radius: 0 999px 999px 0;
  background: var(--llx-accent-strong);
  transform: scaleX(var(--llx-progress-scale, 0));
  transform-origin: left center;
  transition: transform var(--llx-motion-feedback) var(--llx-motion-ease-out);
}

.llx-progress-copy,
.llx-global-progress {
  min-width: 0;
  color: var(--llx-text);
  font-size: 0.8rem;
  font-weight: 750;
  line-height: 1.35;
}

.llx-progress-copy span,
.llx-global-progress span {
  color: var(--llx-text-muted);
  font-weight: 600;
}

.llx-learning-context {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.7rem;
}

.llx-learning-context > svg,
.llx-learning-context > [data-lucide] {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  color: var(--llx-accent);
}

.llx-learning-context-text {
  display: grid;
  width: 100%;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.35rem 0.65rem;
}

.llx-reading-label {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: var(--llx-accent-soft);
  color: var(--llx-accent);
  white-space: nowrap;
}

.llx-learning-track,
.llx-global-progress {
  display: none;
}

.llx-learning-title {
  min-width: 0;
  overflow: hidden;
  color: var(--llx-text);
  font-size: 0.84rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Shell, rail e índice local ─────────────────────────────────── */
.llx-learning-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  width: 100%;
  min-width: 0;
}

.llx-learning-main {
  min-width: 0;
}

.llx-study-rail {
  display: none;
}

.llx-desktop-index {
  display: none;
}

.llx-rail-card {
  overflow: hidden;
  border: 1px solid var(--llx-border);
  border-radius: var(--llx-radius);
  background: var(--llx-surface-raised);
  box-shadow: var(--llx-shadow-small);
}

.llx-rail-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 1rem 1rem 0.75rem;
  border-bottom: 1px solid var(--llx-border);
  color: var(--llx-text);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.3;
  text-transform: uppercase;
}

.llx-rail-title svg,
.llx-rail-title [data-lucide] {
  width: 18px;
  height: 18px;
  color: var(--llx-accent);
  flex: 0 0 auto;
}

.llx-rail-search-label {
  display: grid;
  gap: 0.4rem;
  padding: 0.8rem 0.8rem 0.35rem;
  color: var(--llx-text-muted);
  font-size: 0.72rem;
  font-weight: 750;
}

.llx-rail-search {
  min-height: 42px;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--llx-border);
  border-radius: 8px;
  background: var(--llx-surface);
  color: var(--llx-text);
  font: inherit;
}

.llx-rail-count {
  margin: 0;
  padding: 0.25rem 0.8rem 0.55rem;
  color: var(--llx-text-muted);
  font-size: 0.72rem;
}

.llx-rail-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem;
  padding: 0 0.55rem 0.55rem;
}

.llx-rail-actions button {
  display: inline-flex;
  min-width: 0;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.45rem;
  border: 1px solid var(--llx-border);
  border-radius: 8px;
  background: var(--llx-surface);
  color: var(--llx-text-muted);
  font: inherit;
  font-size: 0.68rem;
  font-weight: 800;
  cursor: pointer;
}

.llx-rail-actions button:hover,
.llx-rail-actions button:focus-visible {
  border-color: var(--llx-accent);
  background: var(--llx-accent-soft);
  color: var(--llx-accent);
}

.llx-rail-motion-toggle {
  grid-column: 1 / -1;
}

.llx-rail-actions svg,
.llx-rail-actions [data-lucide] {
  width: 15px;
  height: 15px;
}

.llx-rail-nav {
  display: grid;
  gap: 0.55rem;
  max-height: min(62vh, 560px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--llx-border-strong) transparent;
  padding: 0.55rem;
}

.llx-rail-group {
  display: grid;
  gap: 0.12rem;
}

.llx-rail-group[hidden] {
  display: none;
}

.llx-rail-group-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.38rem 0.55rem;
  border-bottom: 1px solid var(--llx-border);
  color: var(--llx-text);
}

.llx-rail-group-title > svg,
.llx-rail-group-title > [data-lucide] {
  width: 16px;
  height: 16px;
  color: var(--llx-accent);
  flex: 0 0 auto;
}

.llx-rail-group-title > span {
  display: grid;
  gap: 0.03rem;
}

.llx-rail-group-title span {
  font-size: 0.72rem;
  font-weight: 900;
}

.llx-rail-group-title small {
  color: var(--llx-text-muted);
  font-size: 0.6rem;
  font-weight: 650;
}

.llx-rail-group-links {
  display: grid;
}

.llx-rail-link {
  position: relative;
  display: grid;
  grid-template-columns: 14px 24px minmax(0, 1fr);
  align-items: start;
  gap: 0.4rem;
  padding: 0.65rem 0.7rem;
  border-radius: 9px;
  color: var(--llx-text-muted);
  font-size: 0.79rem;
  font-weight: 650;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.llx-rail-number {
  color: var(--llx-text-muted);
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.llx-rail-link-label {
  min-width: 0;
}

.llx-rail-link::before {
  content: "";
  width: 10px;
  height: 10px;
  margin: 0.22rem auto 0;
  border: 2px solid var(--llx-border-strong);
  border-radius: 50%;
  background: var(--llx-surface-raised);
}

.llx-rail-link:hover {
  background: var(--llx-accent-soft);
  color: var(--llx-text);
}

.llx-rail-link.is-active,
.llx-rail-link[aria-current="true"],
.llx-rail-link[aria-current="location"] {
  background: var(--llx-accent-soft);
  color: var(--llx-accent);
  font-weight: 800;
}

.llx-rail-link.is-active::before,
.llx-rail-link[aria-current="true"]::before,
.llx-rail-link[aria-current="location"]::before {
  border-color: var(--llx-accent);
  background: var(--llx-accent);
  box-shadow: 0 0 0 3px var(--llx-accent-soft);
}

.llx-rail-link.is-complete::before,
.llx-rail-link[data-complete="true"]::before {
  border-color: var(--llx-success);
  background: var(--llx-success);
}

.llx-mobile-index {
  position: sticky;
  top: calc(var(--llx-nav-offset) + var(--llx-learning-bar-height) + 0.5rem);
  z-index: 980;
  margin: 0 0 1rem;
  border: 1px solid var(--llx-border);
  border-radius: var(--llx-radius-small);
  background: var(--llx-surface-raised);
  box-shadow: var(--llx-shadow-small);
}

.llx-mobile-index > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.9rem;
  list-style: none;
  color: var(--llx-text);
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
}

.llx-mobile-index > summary::-webkit-details-marker {
  display: none;
}

.llx-mobile-index > summary::after {
  content: "";
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-right: 2px solid var(--llx-accent);
  border-bottom: 2px solid var(--llx-accent);
  transform: translateY(-2px) rotate(45deg);
}

.llx-mobile-index[open] > summary::after {
  transform: translateY(2px) rotate(225deg);
}

.llx-mobile-motion-toggle {
  display: inline-flex;
  width: calc(100% - 1.1rem);
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: 0 0.55rem 0.55rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--llx-border);
  border-radius: 8px;
  background: var(--llx-surface-soft);
  color: var(--llx-text-muted);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
}

.llx-mobile-motion-toggle:hover,
.llx-mobile-motion-toggle:focus-visible {
  border-color: var(--llx-accent);
  color: var(--llx-accent);
}

.llx-mobile-index .llx-rail-nav {
  max-height: 45vh;
  border-top: 1px solid var(--llx-border);
}

.llx-desktop-index {
  position: relative;
}

.llx-desktop-index > summary {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--llx-border);
  border-radius: var(--llx-radius-small);
  background: var(--llx-surface-raised);
  color: var(--llx-text);
  font-size: 0.78rem;
  font-weight: 850;
  list-style: none;
  cursor: pointer;
}

.llx-desktop-index > summary::-webkit-details-marker {
  display: none;
}

.llx-desktop-index > summary:hover,
.llx-desktop-index[open] > summary {
  border-color: var(--llx-accent);
  background: var(--llx-accent-soft);
  color: var(--llx-accent);
}

.llx-desktop-index > summary > svg,
.llx-desktop-index > summary > [data-lucide] {
  width: 18px;
  height: 18px;
}

.llx-desktop-index-count {
  display: grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  padding-inline: 0.3rem;
  border-radius: 999px;
  background: var(--llx-accent-soft);
  color: var(--llx-accent);
  font-size: 0.65rem;
  font-variant-numeric: tabular-nums;
}

.llx-desktop-index-links {
  position: absolute;
  z-index: 1200;
  top: calc(100% + 0.55rem);
  right: 0;
  display: grid;
  width: min(390px, calc(100vw - 2rem));
  max-height: min(68vh, 620px);
  padding: 0.55rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--llx-border);
  border-radius: 12px;
  background: var(--llx-surface-raised);
  box-shadow: var(--llx-shadow);
}

.llx-desktop-index-links a {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 0.55rem;
  padding: 0.65rem 0.7rem;
  border-radius: 8px;
  color: var(--llx-text-muted);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.35;
}

.llx-desktop-index-links .llx-rail-link::before {
  display: none;
}

.llx-desktop-index-links a:hover,
.llx-desktop-index-links a:focus-visible,
.llx-desktop-index-links a.is-active {
  background: var(--llx-accent-soft);
  color: var(--llx-accent);
}

/* ── Busca ───────────────────────────────────────────────────────── */
.llx-learning-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  margin: 0 0 1.25rem;
}

.llx-search,
.llx-glossary-tools {
  position: relative;
  width: 100%;
}

.llx-search svg,
.llx-search [data-lucide] {
  position: absolute;
  top: 50%;
  left: 0.9rem;
  width: 18px;
  height: 18px;
  color: var(--llx-text-muted);
  pointer-events: none;
  transform: translateY(-50%);
}

.llx-search input,
.llx-glossary-tools input,
.llx-glossary-tools select {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--llx-border-strong);
  border-radius: var(--llx-radius-small);
  background: var(--llx-surface-raised);
  color: var(--llx-text);
  font: inherit;
  font-size: 0.9rem;
}

.llx-search input {
  padding-left: 2.75rem;
}

.llx-search input::placeholder,
.llx-glossary-tools input::placeholder {
  color: var(--llx-text-muted);
  opacity: 1;
}

.llx-search input:focus,
.llx-glossary-tools input:focus,
.llx-glossary-tools select:focus {
  border-color: var(--llx-accent);
  box-shadow: 0 0 0 3px var(--llx-accent-soft);
}

.llx-search-status {
  display: block;
  min-height: 1.25rem;
  margin-top: 0.35rem;
  color: var(--llx-text-muted);
  font-size: 0.76rem;
  line-height: 1.4;
}

.llx-glossary-tools {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(150px, 1fr);
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid var(--llx-border);
  border-radius: var(--llx-radius);
  background: var(--llx-surface-soft);
}

/* ── Cápsula de abertura e resposta progressiva ─────────────────── */
.llx-answer-shell {
  position: relative;
  overflow: hidden;
  margin: 0 0 1.5rem;
  border: 1px solid var(--llx-accent-line);
  border-left: 5px solid var(--llx-accent);
  border-radius: 0 var(--llx-radius) var(--llx-radius) 0;
  background: var(--llx-accent-soft);
  color: var(--llx-text);
}

.llx-answer-shell .answer-capsule,
.llx-answer-shell > p {
  margin: 0;
  padding: 1.15rem 1.25rem 0.7rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--llx-text);
  font-size: 1rem;
  line-height: 1.65;
}

.llx-answer-shell:not(.is-expanded):not([data-expanded="true"]) .answer-capsule,
.llx-answer-shell:not(.is-expanded):not([data-expanded="true"]) > p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.llx-answer-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.15rem 1rem 0.85rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--llx-accent);
  border-radius: 999px;
  background: var(--llx-surface-raised);
  color: var(--llx-accent);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
}

.llx-answer-toggle:hover {
  background: var(--llx-accent);
  color: var(--llx-on-accent);
}

/* ── Comece por aqui / rotas de estudo ──────────────────────────── */
.llx-start-panel {
  margin: 1.5rem 0 2rem;
  padding: 1.25rem;
  border: 1px solid var(--llx-border);
  border-radius: var(--llx-radius);
  background: var(--llx-surface-soft);
}

.llx-start-panel > h2,
.llx-start-panel > h3 {
  margin: 0 0 0.35rem;
  padding: 0;
  border: 0;
  color: var(--llx-text);
}

.llx-start-panel > h2::after,
.llx-start-panel > h3::after {
  display: none;
}

.llx-start-panel > p {
  margin: 0 0 1rem;
  color: var(--llx-text-muted);
  font-size: 0.92rem;
}

.llx-route-cards,
.llx-start-panel .llx-route-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.llx-route-card {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-content: start;
  gap: 0.2rem 0.75rem;
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--llx-border);
  border-top: 4px solid var(--llx-accent);
  border-radius: var(--llx-radius-small);
  background: var(--llx-surface-raised);
  color: var(--llx-text);
  box-shadow: var(--llx-shadow-small);
}

.llx-route-card:hover {
  border-color: var(--llx-accent);
  color: var(--llx-text);
  transform: translateY(-2px);
  box-shadow: var(--llx-shadow);
}

.llx-route-card-icon {
  display: inline-flex;
  grid-row: 1 / span 2;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: var(--llx-accent-soft);
  color: var(--llx-accent);
}

.llx-route-card-icon svg,
.llx-route-card-icon [data-lucide] {
  width: 21px;
  height: 21px;
}

.llx-route-copy {
  display: grid;
  min-width: 0;
  gap: 0.18rem;
}

.llx-route-card strong {
  align-self: end;
  color: var(--llx-text);
  font-size: 0.94rem;
  line-height: 1.3;
}

.llx-route-card span {
  color: var(--llx-text-muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.llx-route-card.is-active {
  border-color: var(--llx-accent);
  background: var(--llx-accent-soft);
}

.llx-route-card.is-complete::after,
.llx-route-card[data-complete="true"]::after {
  content: "";
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 10px;
  height: 10px;
  border: 3px solid var(--llx-surface-raised);
  border-radius: 50%;
  background: var(--llx-success);
  box-shadow: 0 0 0 1px var(--llx-success);
}

/* ── Taxonomia canônica e retomada ─────────────────────────────── */
.llx-taxonomy-context {
  display: grid;
  gap: 0.65rem;
  margin: 1rem 0;
  padding: 0.85rem;
  border: 1px solid var(--llx-border);
  border-radius: var(--llx-radius);
  background: var(--llx-surface-soft);
}

.llx-taxonomy-title {
  color: var(--llx-text-muted);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.llx-taxonomy-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
}

.llx-taxonomy-step {
  display: grid;
  min-width: 0;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem;
  border: 1px solid var(--llx-border);
  border-radius: var(--llx-radius-small);
  background: var(--llx-surface-raised);
  color: var(--llx-text);
  text-decoration: none;
}

.llx-taxonomy-step:hover,
.llx-taxonomy-step.is-active {
  border-color: var(--llx-accent);
  background: var(--llx-accent-soft);
  color: var(--llx-accent);
}

.llx-taxonomy-icon {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 9px;
  background: var(--llx-accent-soft);
  color: var(--llx-accent);
}

.llx-taxonomy-icon svg,
.llx-taxonomy-icon [data-lucide] {
  width: 18px;
  height: 18px;
}

.llx-taxonomy-step > span:last-child {
  display: grid;
  min-width: 0;
  gap: 0.08rem;
}

.llx-taxonomy-step small,
.llx-taxonomy-step strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.llx-taxonomy-step small {
  color: var(--llx-text-muted);
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.llx-taxonomy-step strong {
  font-size: 0.78rem;
}

.llx-start-panel.is-journey-router .llx-route-cards {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.llx-decision-brief {
  display: grid;
  gap: 0.7rem;
  margin: 0.9rem 0 1rem;
  padding: 0.8rem;
  border: 1px solid var(--llx-border);
  border-radius: var(--llx-radius-small);
  background: var(--llx-surface-soft);
}

.llx-decision-brief-header,
.llx-role-routes-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.llx-decision-brief-header > strong,
.llx-role-routes-header > strong {
  color: var(--llx-text);
  font-size: 0.78rem;
  font-weight: 900;
}

.llx-decision-brief-header > span,
.llx-role-routes-header > span {
  color: var(--llx-text-muted);
  font-size: 0.7rem;
  font-weight: 700;
}

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

.llx-decision-brief-item {
  display: grid;
  min-width: 0;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: start;
  gap: 0.55rem;
  padding: 0.65rem;
  border: 1px solid var(--llx-border);
  border-radius: 9px;
  background: var(--llx-surface-raised);
}

.llx-decision-brief-icon,
.llx-role-route-icon {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 9px;
  background: var(--llx-accent-soft);
  color: var(--llx-accent);
}

.llx-decision-brief-icon svg,
.llx-decision-brief-icon [data-lucide],
.llx-role-route-icon svg,
.llx-role-route-icon [data-lucide] {
  width: 17px;
  height: 17px;
}

.llx-decision-brief-item > span:last-child,
.llx-role-route > span:last-child {
  display: grid;
  min-width: 0;
  gap: 0.12rem;
}

.llx-decision-brief-item strong,
.llx-role-route strong {
  color: var(--llx-text);
  font-size: 0.73rem;
  font-weight: 900;
}

.llx-decision-brief-item > span:last-child > span,
.llx-role-route > span:last-child > span {
  color: var(--llx-text-muted);
  font-size: 0.72rem;
  line-height: 1.4;
}

.llx-role-routes {
  display: grid;
  gap: 0.65rem;
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--llx-border);
}

.llx-role-routes-header {
  position: relative;
  padding: 0.3rem 2rem 0.3rem 0;
  list-style: none;
  cursor: pointer;
}

.llx-role-routes-header::-webkit-details-marker {
  display: none;
}

.llx-role-routes-header::after {
  position: absolute;
  top: 50%;
  right: 0.3rem;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--llx-accent);
  border-bottom: 2px solid var(--llx-accent);
  content: "";
  transform: translateY(-65%) rotate(45deg);
}

.llx-role-routes[open] > .llx-role-routes-header::after {
  transform: translateY(-35%) rotate(225deg);
}

.llx-role-route-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.llx-role-route {
  display: grid;
  min-width: 0;
  min-height: 78px;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: start;
  gap: 0.55rem;
  padding: 0.65rem;
  border: 1px solid var(--llx-border);
  border-radius: 10px;
  background: var(--llx-surface-raised);
  color: var(--llx-text);
  text-decoration: none;
}

.llx-role-route:hover,
.llx-role-route:focus-visible {
  border-color: var(--llx-accent);
  background: var(--llx-accent-soft);
  box-shadow: var(--llx-shadow-small);
}

.llx-home-resource-library,
.llx-home-practice-studio {
  overflow: clip;
  margin: 0 0 1.1rem;
  border: 1px solid var(--llx-border);
  border-left: 5px solid var(--llx-accent-2);
  border-radius: var(--llx-radius);
  background: var(--llx-surface-raised);
  box-shadow: var(--llx-shadow-small);
}

.llx-home-resource-summary,
.llx-home-practice-summary {
  display: grid;
  min-height: 82px;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  list-style: none;
  cursor: pointer;
}

.llx-home-resource-summary::-webkit-details-marker,
.llx-home-practice-summary::-webkit-details-marker {
  display: none;
}

.llx-home-resource-summary:hover,
.llx-home-resource-library[open] > .llx-home-resource-summary,
.llx-home-practice-summary:hover,
.llx-home-practice-studio[open] > .llx-home-practice-summary {
  background: var(--llx-accent-2-soft);
}

.llx-home-resource-icon {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 11px;
  background: var(--llx-accent-2-soft);
  color: var(--llx-accent-2);
}

.llx-home-resource-icon svg,
.llx-home-resource-icon [data-lucide] {
  width: 21px;
  height: 21px;
}

.llx-home-resource-summary > span:nth-child(2),
.llx-home-practice-summary > span:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 0.18rem;
}

.llx-home-resource-summary strong,
.llx-home-practice-summary strong {
  color: var(--llx-text);
  font-size: 0.96rem;
}

.llx-home-resource-summary > span:nth-child(2) > span,
.llx-home-practice-summary > span:nth-child(2) > span {
  color: var(--llx-text-muted);
  font-size: 0.76rem;
  line-height: 1.4;
}

.llx-home-resource-count {
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  background: var(--llx-accent-2-soft);
  color: var(--llx-accent-2);
  font-size: 0.7rem;
  font-weight: 900;
  white-space: nowrap;
}

.llx-home-resource-content {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border-top: 1px solid var(--llx-border);
}

.llx-home-resource-content > section {
  margin: 0;
}

.llx-home-practice-studio {
  margin: 1.25rem 0 2rem;
  border-left-color: var(--llx-accent);
}

.llx-home-practice-content {
  display: grid;
  gap: 1rem;
  padding: 1rem 0 0;
  border-top: 1px solid var(--llx-border);
}

.llx-home-practice-content > * {
  width: 100%;
  margin-block: 0;
}

.llx-resume-panel {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  margin: -0.75rem 0 1.5rem;
  padding: 1rem;
  border: 1px solid var(--llx-accent-line);
  border-radius: var(--llx-radius);
  background: linear-gradient(135deg, var(--llx-accent-soft), var(--llx-surface-raised));
}

.llx-resume-icon {
  display: inline-grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 13px;
  background: var(--llx-accent);
  color: var(--llx-on-accent);
}

.llx-resume-copy {
  display: grid;
  gap: 0.18rem;
}

.llx-resume-eyebrow {
  color: var(--llx-accent);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.llx-resume-copy h2 {
  margin: 0;
  color: var(--llx-text);
  font-size: 1rem;
}

.llx-resume-copy h2::after {
  display: none;
}

.llx-resume-copy p {
  margin: 0;
  color: var(--llx-text-muted);
  font-size: 0.8rem;
}

.llx-resume-progress {
  position: relative;
  display: block;
  width: min(360px, 100%);
  margin-top: 0.35rem;
  padding-top: 0.45rem;
  color: var(--llx-text-muted);
  font-size: 0.68rem;
  font-weight: 750;
}

.llx-resume-progress::before,
.llx-resume-progress::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 4px;
  border-radius: 999px;
}

.llx-resume-progress::before {
  width: 100%;
  background: var(--llx-border);
}

.llx-resume-progress::after {
  width: 100%;
  background: var(--llx-accent);
  transform: scaleX(var(--llx-resume-scale, 0));
  transform-origin: left center;
  transition: transform var(--llx-motion-state) var(--llx-motion-ease-out);
}

.llx-resume-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.llx-resume-actions a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--llx-accent);
  border-radius: 999px;
  color: var(--llx-accent);
  font-size: 0.75rem;
  font-weight: 850;
  text-decoration: none;
}

.llx-resume-actions .llx-resume-primary {
  background: var(--llx-accent);
  color: var(--llx-on-accent);
}

.llx-resume-actions a:hover {
  box-shadow: var(--llx-shadow-small);
  transform: translateY(-1px);
}

/* ── Fluxo didático: Missão → Trilha → Aula → Prova ────────────── */
.llx-learning-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px minmax(0, 1fr) 32px minmax(0, 1fr) 32px minmax(0, 1fr);
  align-items: center;
  gap: 0.45rem;
  margin: 1.5rem 0 2rem;
  padding: 1rem;
  border: 1px solid var(--llx-border);
  border-radius: var(--llx-radius);
  background: var(--llx-surface-soft);
}

.llx-learning-flow figcaption {
  grid-column: 1 / -1;
}

.llx-flow-node {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  min-height: 68px;
  padding: 0.7rem;
  border: 1px solid var(--llx-border);
  border-top: 3px solid var(--llx-accent);
  border-radius: var(--llx-radius-small);
  background: var(--llx-surface-raised);
  color: var(--llx-text);
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.llx-flow-node > svg,
.llx-flow-node > [data-lucide],
.llx-flow-node .llx-module-icon {
  width: 40px;
  height: 40px;
  padding: 9px;
  border-radius: 10px;
  background: var(--llx-accent-soft);
  color: var(--llx-accent);
}

.llx-flow-arrow {
  position: relative;
  width: 100%;
  height: 2px;
  background: var(--llx-border-strong);
}

.llx-flow-arrow::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--llx-accent);
  border-right: 2px solid var(--llx-accent);
  transform: translateY(-50%) rotate(45deg);
}

/* ── Módulos recolhíveis ────────────────────────────────────────── */
.llx-module {
  position: relative;
  overflow: clip;
  margin: 0 0 1.1rem;
  border: 1px solid var(--llx-border);
  border-left: 5px solid var(--llx-accent);
  border-radius: var(--llx-radius);
  background: var(--llx-surface-raised);
  box-shadow: var(--llx-shadow-small);
  scroll-margin-top: calc(var(--llx-nav-offset) + var(--llx-learning-bar-height) + 1rem);
}

body.llx-learning-enhanced main [id],
body.llx-learning-enhanced .llx-visual-lab[id],
body.llx-learning-enhanced .llx-prompt-tool[id] {
  scroll-margin-top: calc(var(--llx-nav-offset) + var(--llx-learning-bar-height) + 1rem);
}

/* A camada de aprendizagem cria uma coluna numérica nas listas executáveis.
   O conteúdo real permanece inteiro na coluna de leitura, inclusive tabelas e diagramas. */
body.llx-learning-enhanced main ol.exec-steps > li {
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 0.4rem 0.75rem;
  padding: 0.95rem 1.15rem;
}

body.llx-learning-enhanced main ol.exec-steps > li::before {
  content: none;
}

body.llx-learning-enhanced main ol.exec-steps > li > .llx-step-list-number {
  grid-column: 1;
  grid-row: 1;
}

body.llx-learning-enhanced main ol.exec-steps > li > :not(.llx-step-list-number) {
  grid-column: 2;
}

body.llx-learning-enhanced main ol.exec-steps > li > strong {
  align-self: center;
  grid-row: 1;
}

/* Material rico: e-book de tracking e analytics */
.llx-ebook-feature {
  position: relative;
  display: grid;
  grid-template-columns: minmax(230px, 0.72fr) minmax(0, 1.45fr);
  gap: clamp(1.2rem, 3vw, 2.4rem);
  overflow: hidden;
  padding: clamp(1rem, 2.6vw, 1.75rem);
  border: 1px solid var(--llx-border);
  border-radius: var(--llx-radius);
  background:
    radial-gradient(circle at 7% 4%, color-mix(in srgb, var(--llx-accent) 18%, transparent), transparent 32%),
    var(--llx-surface-raised);
  box-shadow: var(--llx-shadow);
}

.llx-ebook-feature::after {
  position: absolute;
  z-index: 0;
  right: -72px;
  bottom: -86px;
  width: 220px;
  height: 220px;
  border: 28px solid color-mix(in srgb, var(--llx-accent) 12%, transparent);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.llx-ebook-art,
.llx-ebook-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.llx-ebook-art {
  align-self: center;
}

.llx-ebook-art img {
  display: block;
  width: min(100%, 330px);
  max-height: 420px;
  margin: 0 auto;
  border: 1px solid color-mix(in srgb, var(--llx-accent) 36%, var(--llx-border));
  border-radius: 12px;
  object-fit: cover;
  object-position: center top;
  box-shadow: 0 22px 46px rgba(15, 23, 42, 0.24);
}

.llx-ebook-art span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
  color: var(--llx-text-muted);
  font-size: 0.7rem;
  font-weight: 800;
  text-align: center;
}

.llx-ebook-art span i,
.llx-ebook-benefits i,
.llx-ebook-actions i {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.llx-ebook-copy {
  align-self: center;
}

.llx-ebook-copy h2 {
  max-width: 19ch;
  margin: 0.4rem 0 0.7rem;
  font-size: clamp(1.65rem, 3.4vw, 2.55rem);
  line-height: 1.04;
}

.llx-ebook-copy > p {
  color: var(--llx-text-muted);
}

.llx-ebook-benefits {
  display: grid;
  gap: 0.58rem;
  margin: 1rem 0 1.1rem;
  padding: 0;
  list-style: none;
}

.llx-ebook-benefits li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: start;
  gap: 0.55rem;
  color: var(--llx-text);
  font-size: 0.84rem;
  line-height: 1.45;
}

.llx-ebook-benefits i {
  margin-top: 0.1rem;
  color: var(--llx-accent);
}

.llx-ebook-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.llx-ebook-download,
.llx-ebook-plans {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 0.48rem;
  padding: 0.72rem 0.95rem;
  border: 1px solid var(--llx-accent);
  border-radius: 9px;
  font-size: 0.79rem;
  font-weight: 900;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 140ms ease, background-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

.llx-ebook-download {
  background: var(--llx-accent);
  color: var(--llx-on-accent);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--llx-accent) 24%, transparent);
}

.llx-ebook-plans {
  background: var(--llx-surface);
  color: var(--llx-text);
}

.llx-ebook-download:hover,
.llx-ebook-download:focus-visible,
.llx-ebook-plans:hover,
.llx-ebook-plans:focus-visible {
  transform: translateY(-2px);
}

.llx-ebook-download:hover,
.llx-ebook-download:focus-visible {
  color: var(--llx-on-accent);
  filter: brightness(0.92);
}

.llx-ebook-plans:hover,
.llx-ebook-plans:focus-visible {
  background: var(--llx-accent-soft);
  color: var(--llx-text);
}

.llx-ebook-note {
  margin: 1rem 0 0;
  padding: 0.75rem 0.9rem;
  border-left: 4px solid var(--llx-accent);
  border-radius: 0 var(--llx-radius-small) var(--llx-radius-small) 0;
  background: var(--llx-surface-soft);
  color: var(--llx-text) !important;
  font-size: 0.75rem;
  line-height: 1.5;
}

@media (max-width: 760px) {
  .llx-ebook-feature {
    grid-template-columns: minmax(0, 1fr);
  }

  .llx-ebook-art img {
    width: min(72vw, 300px);
    max-height: 390px;
  }

  .llx-ebook-copy h2 {
    max-width: none;
  }
}

@media (max-width: 520px) {
  .llx-ebook-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .llx-ebook-download,
  .llx-ebook-plans {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .llx-ebook-download,
  .llx-ebook-plans {
    transition: none;
  }

  .llx-ebook-download:hover,
  .llx-ebook-download:focus-visible,
  .llx-ebook-plans:hover,
  .llx-ebook-plans:focus-visible {
    transform: none;
  }
}

/* Biblioteca dos sete guias de bolso */
.llx-pocket-library {
  position: relative;
  overflow: clip;
  padding: clamp(1rem, 2.5vw, 1.6rem);
  border: 1px solid var(--llx-border);
  border-radius: var(--llx-radius);
  background: var(--llx-surface-soft);
}

.llx-pocket-library-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.6fr);
  align-items: end;
  gap: 1rem 2rem;
  margin-bottom: 1.25rem;
}

.llx-pocket-library-head h2 {
  margin-bottom: 0.5rem;
}

.llx-pocket-library-head > p,
.llx-pocket-card p,
.llx-pocket-step p {
  margin: 0;
}

.llx-pocket-guide-rule {
  padding: 0.85rem 1rem;
  border: 1px solid var(--llx-accent-line);
  border-left: 5px solid var(--llx-accent);
  border-radius: var(--llx-radius-small);
  background: var(--llx-surface-raised);
  color: var(--llx-text);
  font-size: 0.86rem;
  line-height: 1.5;
}

.llx-pocket-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0 0 1.25rem;
}

.llx-pocket-step {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: start;
  gap: 0.65rem;
  padding: 0.8rem;
  border: 1px solid var(--llx-border);
  border-radius: var(--llx-radius-small);
  background: var(--llx-surface-raised);
}

.llx-pocket-step > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--llx-accent);
  color: var(--llx-on-accent);
  font-weight: 900;
}

.llx-pocket-step strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--llx-text);
  font-size: 0.85rem;
}

.llx-pocket-step p {
  color: var(--llx-text-muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

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

.llx-pocket-card {
  --guide-accent: var(--llx-accent);
  position: relative;
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 0.9rem;
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--llx-border);
  border-top: 5px solid var(--guide-accent);
  border-radius: var(--llx-radius);
  background: var(--llx-surface-raised);
  box-shadow: var(--llx-shadow-small);
}

.llx-pocket-cover {
  position: relative;
  display: grid;
  min-height: 126px;
  align-content: space-between;
  padding: 0.65rem;
  border: 1px solid var(--llx-border);
  border-radius: 8px;
  background: var(--llx-surface);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.10);
}

.llx-pocket-cover::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 7px;
  border-radius: 7px 7px 0 0;
  background: var(--guide-accent);
}

.llx-pocket-cover i {
  width: 28px;
  height: 28px;
  margin-top: 0.45rem;
  color: var(--guide-accent);
}

.llx-pocket-cover span {
  color: var(--llx-text-muted);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.llx-pocket-cover strong {
  display: block;
  color: var(--llx-text);
  font-size: 1.2rem;
}

.llx-pocket-copy {
  min-width: 0;
}

.llx-pocket-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.35rem;
  color: var(--guide-accent);
  font-size: 0.67rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.llx-pocket-copy h3 {
  margin: 0 0 0.25rem;
  color: var(--llx-text);
  font-size: 1rem;
  line-height: 1.25;
}

.llx-pocket-role {
  min-height: 2.6em;
  color: var(--llx-text-muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.llx-pocket-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.7rem 0;
}

.llx-pocket-stats span {
  padding: 0.28rem 0.48rem;
  border: 1px solid var(--llx-border);
  border-radius: 999px;
  background: var(--llx-surface-soft);
  color: var(--llx-text);
  font-size: 0.65rem;
  font-weight: 800;
}

.llx-pocket-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.llx-pocket-download,
.llx-pocket-lesson {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--guide-accent);
  border-radius: 8px;
  color: var(--guide-accent);
  font-size: 0.72rem;
  font-weight: 850;
  text-decoration: none;
}

.llx-pocket-download {
  background: var(--guide-accent);
  color: #ffffff;
}

.llx-pocket-download:hover,
.llx-pocket-download:focus-visible {
  filter: brightness(0.9);
  color: #ffffff;
}

.llx-pocket-lesson:hover,
.llx-pocket-lesson:focus-visible {
  background: var(--llx-accent-soft);
}

:root[data-theme="dark"] .llx-pocket-download {
  color: #ffffff;
}

@media (max-width: 900px) {
  .llx-pocket-library-head,
  .llx-pocket-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (min-width: 641px) and (max-width: 820px) {
  .llx-progress-reserve,
  .llx-progress-shell {
    min-height: 108px;
  }

  .llx-progress-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .llx-progress-shell .llx-learning-actions {
    flex-wrap: nowrap;
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .llx-progress-reserve {
    min-height: 52px;
  }

  .llx-pocket-steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .llx-pocket-card {
    grid-template-columns: 72px minmax(0, 1fr);
    padding: 0.8rem;
  }

  .llx-pocket-cover {
    min-height: 112px;
    padding: 0.5rem;
  }

  .llx-pocket-cover strong {
    font-size: 1rem;
  }

  .llx-pocket-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .llx-pocket-download,
  .llx-pocket-lesson {
    width: 100%;
  }
}

.llx-module.is-active {
  border-color: var(--llx-accent);
  border-left-width: 5px;
  box-shadow: var(--llx-shadow);
}

.llx-module.is-complete,
.llx-module[data-complete="true"] {
  border-left-color: var(--llx-success);
}

.llx-module-head,
.llx-module-header {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  min-width: 0;
  padding: 1rem 1.05rem;
  border-bottom: 1px solid transparent;
  background: var(--llx-surface-raised);
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease;
}

.llx-module:not(.is-open) .llx-module-header:hover,
.llx-module:not(.is-open) .llx-module-head:hover {
  background: var(--llx-accent-soft);
}

.llx-module.is-open .llx-module-head,
.llx-module.is-open .llx-module-header,
.llx-module[data-expanded="true"] .llx-module-head,
.llx-module[data-expanded="true"] .llx-module-header {
  border-bottom-color: var(--llx-border);
  background: var(--llx-accent-soft);
}

.llx-module-icon {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--llx-accent-line);
  border-radius: 13px;
  background: var(--llx-accent-soft);
  color: var(--llx-accent);
  flex: 0 0 auto;
}

.llx-module-icon svg,
.llx-module-icon [data-lucide] {
  width: 23px;
  height: 23px;
}

.llx-module.is-complete .llx-module-icon,
.llx-module[data-complete="true"] .llx-module-icon {
  border-color: var(--llx-success);
  background: var(--llx-success-soft);
  color: var(--llx-success);
}

.llx-module-copy {
  min-width: 0;
}

.llx-module-phase {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  width: fit-content;
  margin: 0 0 0.25rem;
  padding: 0.18rem 0.45rem;
  border: 1px solid var(--llx-accent-line);
  border-radius: 999px;
  background: var(--llx-surface-raised);
  color: var(--llx-accent);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.llx-module-phase svg,
.llx-module-phase [data-lucide] {
  width: 13px;
  height: 13px;
}

.llx-module-phase--validar {
  border-color: var(--llx-success);
  color: var(--llx-success);
}

.llx-module-phase--consultar {
  border-color: var(--llx-border-strong);
  color: var(--llx-text-muted);
}

.llx-module .llx-module-copy h2,
.llx-module .llx-module-copy h3,
.llx-module-title {
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--llx-text);
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.3;
}

.llx-module-copy h2::after,
.llx-module-copy h3::after,
.llx-module-title::after {
  display: none;
}

.llx-module-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  margin: 0.25rem 0 0;
  color: var(--llx-text-muted);
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.35;
}

.llx-module-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.llx-module .llx-module-summary {
  display: block;
  margin: 0.3rem 0 0;
  color: var(--llx-text-muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.llx-module-toggle {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--llx-border-strong);
  border-radius: 50%;
  background: var(--llx-surface);
  color: var(--llx-accent);
  cursor: pointer;
}

.llx-module-toggle:hover {
  border-color: var(--llx-accent);
  background: var(--llx-accent-soft);
}

.llx-module-toggle svg,
.llx-module-toggle [data-lucide] {
  width: 20px;
  height: 20px;
  transition: transform 180ms ease;
}

.llx-module-toggle[aria-expanded="true"] svg,
.llx-module-toggle[aria-expanded="true"] [data-lucide] {
  transform: rotate(180deg);
}

.llx-module .llx-module-body {
  min-width: 0;
  padding: 1.25rem clamp(1rem, 3vw, 1.6rem) 1.5rem;
  background: var(--llx-surface-raised);
  color: var(--llx-text);
}

.llx-module-body[hidden] {
  display: none;
}

.llx-module .llx-module-body > p {
  max-width: 72ch;
  margin-inline: 0;
  color: var(--llx-text);
}

.llx-module-body > :first-child {
  margin-top: 0;
}

.llx-module-body > :last-child {
  margin-bottom: 0;
}

.llx-module-body img,
.llx-module-body svg,
.llx-module-body video,
.llx-module-body canvas,
.llx-module-body iframe {
  max-width: 100%;
}

.llx-module-body pre,
.llx-module-body code,
.llx-module-body td,
.llx-module-body th,
.llx-module-body a {
  overflow-wrap: anywhere;
}

/* ── Callouts e aprofundamento ──────────────────────────────────── */
.llx-callout {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 0.8rem;
  align-items: start;
  margin: 1rem 0;
  padding: 1rem;
  border: 1px solid var(--llx-accent-line);
  border-left: 4px solid var(--llx-accent);
  border-radius: var(--llx-radius-small);
  background: var(--llx-accent-soft);
  color: var(--llx-text);
}

.llx-callout--success {
  border-color: var(--llx-success);
  background: var(--llx-success-soft);
}

.llx-callout--warning {
  border-color: var(--llx-warning);
  background: var(--llx-warning-soft);
}

.llx-callout--danger {
  border-color: var(--llx-danger);
  background: var(--llx-danger-soft);
}

.llx-callout-icon {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--llx-surface-raised);
  color: var(--llx-accent);
}

.llx-callout p {
  margin: 0;
  text-align: justify;
}

.llx-deep-dive {
  margin: 1rem 0;
  border: 1px solid var(--llx-border);
  border-radius: var(--llx-radius-small);
  background: var(--llx-surface-soft);
}

.llx-deep-dive > summary {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1rem;
  list-style: none;
  color: var(--llx-accent);
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
}

.llx-deep-dive > summary::-webkit-details-marker {
  display: none;
}

.llx-deep-dive > summary::before {
  content: "+";
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--llx-accent);
  border-radius: 50%;
  color: var(--llx-accent);
  font-size: 1rem;
  line-height: 1;
}

.llx-deep-dive[open] > summary::before {
  content: "−";
}

.llx-deep-dive > :not(summary) {
  margin-inline: 1rem;
}

.llx-deep-dive > :last-child {
  margin-bottom: 1rem;
}

/* ── Paginação e conclusão ──────────────────────────────────────── */
.llx-page-pager,
.llx-pagination {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: stretch;
  margin: 2.25rem 0 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--llx-border);
}

.llx-page-pager a,
.llx-pagination a {
  display: grid;
  align-content: center;
  gap: 0.15rem;
  min-width: 0;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--llx-border);
  border-radius: var(--llx-radius-small);
  background: var(--llx-surface-raised);
  color: var(--llx-text);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.llx-page-pager a:hover,
.llx-pagination a:hover {
  border-color: var(--llx-accent);
  background: var(--llx-accent-soft);
  color: var(--llx-accent);
}

.llx-page-pager a[data-direction="next"],
.llx-pagination a[data-direction="next"],
.llx-page-next {
  text-align: right;
}

.llx-page-pager small,
.llx-pagination small {
  color: var(--llx-text-muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.llx-complete-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: 154px;
  padding: 0.75rem 1rem;
  border: 1px solid var(--llx-accent-strong);
  border-radius: var(--llx-radius-small);
  background: var(--llx-accent-strong);
  color: var(--llx-on-accent-strong);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
}

.llx-complete-button:hover {
  filter: brightness(0.92);
}

.llx-complete-button.is-complete,
.llx-complete-button[aria-pressed="true"] {
  border-color: var(--llx-success);
  background: var(--llx-success);
  color: #ffffff;
}

:root[data-theme="dark"] .llx-complete-button.is-complete,
:root[data-theme="dark"] .llx-complete-button[aria-pressed="true"] {
  color: #052e16;
}

/* ── Ações móveis ───────────────────────────────────────────────── */
.llx-mobile-actions {
  display: none;
}

/* ── Desktop: rail lateral de aproximadamente 260 px ────────────── */
@media (min-width: 1080px) {
  .llx-learning-shell {
    position: relative;
    left: 50%;
    grid-template-columns: 280px minmax(0, 1fr);
    align-items: start;
    gap: clamp(1.75rem, 3vw, 2.5rem);
    width: min(1180px, calc(100vw - 3rem));
    max-width: none;
    transform: translateX(-50%);
  }

  .llx-study-rail {
    position: sticky;
    top: calc(var(--llx-nav-offset) + var(--llx-learning-bar-height) + 0.75rem);
    display: block;
    width: 280px;
    max-height: calc(100vh - var(--llx-nav-offset) - var(--llx-learning-bar-height) - 1.5rem);
  }

  .llx-mobile-index {
    display: none;
  }

  .llx-desktop-index {
    display: block;
  }

  .llx-study-mode .llx-learning-shell {
    width: min(880px, calc(100vw - 3rem));
  }
}

@media (min-width: 641px) and (max-width: 1079px) {
  .llx-mobile-index {
    top: calc(var(--llx-nav-offset) + var(--llx-learning-bar-height) + 0.65rem);
    width: min(780px, calc(100vw - 2rem));
    margin: 1rem auto;
  }
}

/* ── Tablet ─────────────────────────────────────────────────────── */
@media (max-width: 920px) {
  .llx-route-cards,
  .llx-start-panel .llx-route-cards {
    grid-template-columns: 1fr;
  }

  .llx-start-panel.is-journey-router .llx-route-cards,
  .llx-taxonomy-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .llx-resume-panel {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .llx-resume-actions {
    grid-column: 2;
  }

  .llx-learning-flow {
    grid-template-columns: repeat(4, minmax(120px, 1fr));
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
  }

  .llx-flow-arrow {
    display: none;
  }
}

/* ── Mobile, inclusive 320 px ───────────────────────────────────── */
@media (max-width: 640px) {
  body:has(.llx-mobile-actions) {
    padding-bottom: 78px;
  }

  .llx-progress-shell {
    top: 60px;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    min-height: 52px;
    padding: 0.35rem 0.8rem 0.45rem;
  }

  .llx-progress-copy {
    font-size: 0.74rem;
  }

  .llx-progress-shell .llx-learning-actions,
  .llx-learning-track,
  .llx-global-progress {
    display: none !important;
  }

  .llx-learning-context {
    gap: 0.5rem;
  }

  .llx-learning-context > svg,
  .llx-learning-context > [data-lucide] {
    width: 20px;
    height: 20px;
  }

  .llx-learning-context-text {
    display: grid;
    width: 100%;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.3rem 0.5rem;
  }

  .llx-learning-title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .llx-reading-label {
    grid-column: 2;
    min-height: 24px;
    padding: 0.15rem 0.42rem;
    font-size: 0.68rem;
  }

  .llx-learning-bar {
    grid-template-columns: minmax(0, 1fr);
  }

  .llx-mobile-index {
    position: fixed;
    z-index: 1320;
    inset: auto 0.75rem calc(72px + env(safe-area-inset-bottom));
    display: none;
    max-height: min(70vh, 620px);
    margin: 0;
    overflow: auto;
    box-shadow: 0 18px 55px rgba(15, 23, 42, 0.32);
  }

  .llx-mobile-index[open] {
    display: block;
  }

  .llx-mobile-index .llx-rail-nav {
    max-height: calc(min(70vh, 620px) - 104px);
  }

  .llx-glossary-tools {
    grid-template-columns: minmax(0, 1fr);
    padding: 0.75rem;
  }

  .llx-start-panel {
    padding: 1rem;
  }

  .llx-start-panel.is-journey-router .llx-route-cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .llx-decision-brief-header,
  .llx-role-routes-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.2rem;
  }

  .llx-decision-brief-grid,
  .llx-role-route-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .llx-role-route {
    min-height: 70px;
  }

  .llx-home-resource-summary,
  .llx-home-practice-summary {
    min-height: 76px;
    grid-template-columns: 38px minmax(0, 1fr);
    padding: 0.75rem;
  }

  .llx-home-resource-icon {
    width: 38px;
    height: 38px;
  }

  .llx-home-resource-count {
    grid-column: 2;
    justify-self: start;
  }

  .llx-home-resource-content {
    padding: 0.75rem;
  }

  .llx-home-practice-content {
    padding-top: 0.75rem;
  }

  .llx-taxonomy-context {
    padding: 0.7rem;
  }

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

  .llx-taxonomy-step {
    grid-template-columns: 30px minmax(0, 1fr);
    padding: 0.5rem;
  }

  .llx-taxonomy-icon {
    width: 30px;
    height: 30px;
  }

  .llx-resume-panel {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 0.75rem;
    padding: 0.85rem;
  }

  .llx-resume-icon {
    width: 40px;
    height: 40px;
  }

  .llx-resume-actions {
    grid-column: 1 / -1;
    align-items: stretch;
  }

  .llx-resume-actions a {
    flex: 1;
  }

  .llx-answer-shell .answer-capsule,
  .llx-answer-shell > p {
    padding: 1rem 1rem 0.65rem;
    font-size: 0.94rem;
  }

  .llx-answer-shell:not(.is-expanded):not([data-expanded="true"]) .answer-capsule,
  .llx-answer-shell:not(.is-expanded):not([data-expanded="true"]) > p {
    -webkit-line-clamp: 5;
  }

  .llx-route-card {
    grid-template-columns: 38px minmax(0, 1fr);
    padding: 0.85rem;
  }

  .llx-route-card-icon {
    width: 38px;
    height: 38px;
  }

  .llx-learning-flow {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.45rem;
    overflow: visible;
    padding: 0.85rem;
  }

  .llx-flow-node {
    grid-template-columns: 38px minmax(0, 1fr);
    min-height: 60px;
  }

  .llx-flow-node > svg,
  .llx-flow-node > [data-lucide],
  .llx-flow-node .llx-module-icon {
    width: 38px;
    height: 38px;
  }

  .llx-flow-arrow {
    display: block;
    width: 2px;
    height: 24px;
    margin: 0 auto;
  }

  .llx-flow-arrow::after {
    top: auto;
    right: 50%;
    bottom: 0;
    transform: translateX(50%) rotate(135deg);
  }

  .llx-module {
    border-left-width: 4px;
    border-radius: 12px;
  }

  .llx-module-head,
  .llx-module-header {
    grid-template-columns: 40px minmax(0, 1fr) 44px;
    gap: 0.65rem;
    padding: 0.85rem;
  }

  .llx-module-icon {
    width: 40px;
    height: 40px;
    border-radius: 11px;
  }

  .llx-module-icon svg,
  .llx-module-icon [data-lucide] {
    width: 20px;
    height: 20px;
  }

  .llx-module-summary {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .llx-module-body {
    padding: 1rem 0.9rem 1.25rem;
  }

  .llx-page-pager,
  .llx-pagination {
    grid-template-columns: minmax(0, 1fr);
  }

  .llx-page-pager a[data-direction="next"],
  .llx-pagination a[data-direction="next"],
  .llx-page-next {
    text-align: left;
  }

  .llx-complete-button {
    width: 100%;
  }

  .llx-mobile-actions {
    position: fixed;
    z-index: 1250;
    inset: auto 0 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.35rem;
    padding: 0.45rem max(0.55rem, env(safe-area-inset-right)) calc(0.45rem + env(safe-area-inset-bottom)) max(0.55rem, env(safe-area-inset-left));
    border-top: 1px solid var(--llx-border);
    background: var(--llx-surface-raised);
    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.14);
  }

  .llx-mobile-actions button,
  .llx-mobile-actions a {
    display: inline-flex;
    min-width: 0;
    min-height: 52px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.18rem;
    padding: 0.3rem 0.2rem;
    border: 1px solid var(--llx-border);
    border-radius: 9px;
    background: var(--llx-surface);
    color: var(--llx-text);
    font: inherit;
    font-size: 0.66rem;
    font-weight: 800;
    line-height: 1.15;
    text-align: center;
    overflow-wrap: anywhere;
    cursor: pointer;
  }

  .llx-mobile-actions span {
    white-space: nowrap;
  }

  .llx-mobile-actions button:hover,
  .llx-mobile-actions a:hover {
    border-color: var(--llx-accent);
    background: var(--llx-accent-soft);
    color: var(--llx-accent);
  }
}

@media (max-width: 360px) {
  .llx-module-head,
  .llx-module-header {
    grid-template-columns: 36px minmax(0, 1fr) 44px;
    gap: 0.5rem;
    padding-inline: 0.65rem;
  }

  .llx-module-icon {
    width: 36px;
    height: 36px;
  }

  .llx-module-meta {
    gap: 0.2rem 0.5rem;
    font-size: 0.68rem;
  }

  .llx-mobile-actions button,
  .llx-mobile-actions a {
    font-size: 0.66rem;
  }
}

/* ── Leitura, modo estudo, busca global e diagramas ─────────────── */
.leadlovers-isolated p,
body[data-ll-page] p {
  text-align: justify !important;
  text-align-last: auto;
  hyphens: auto;
}

.llx-learning-enhanced .ll-indice {
  display: none;
}

.llx-learning-actions,
.llx-study-nav,
.llx-command-header,
.llx-command-result,
.llx-visual-eyebrow {
  display: flex;
  align-items: center;
}

.llx-learning-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
}

.llx-motion-toggle,
.llx-study-launch {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--llx-accent);
  border-radius: 9px;
  background: var(--llx-accent-soft);
  color: var(--llx-accent);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.llx-motion-toggle:hover,
.llx-motion-toggle:focus-visible,
.llx-study-launch:hover {
  background: var(--llx-accent);
  color: var(--llx-on-accent);
}

.llx-motion-toggle.is-reduced {
  border-color: var(--llx-border-strong);
  background: var(--llx-surface-soft);
  color: var(--llx-text-muted);
}

.llx-motion-toggle:disabled {
  opacity: 0.72;
  cursor: default;
}

.llx-skip-target:focus-visible {
  outline: 3px solid var(--llx-accent);
  outline-offset: 6px;
}

.llx-visual-lab {
  max-width: 1180px;
  margin: 1.5rem auto 2rem;
  padding: clamp(1rem, 2.5vw, 2rem);
  border: 1px solid var(--llx-border);
  border-top: 5px solid var(--llx-accent);
  border-radius: var(--llx-radius);
  background: var(--llx-surface-raised);
  color: var(--llx-text);
  box-shadow: var(--llx-shadow);
}

.llx-visual-lab h2 {
  margin: 0.45rem 0 0.55rem;
}

.llx-visual-intro {
  max-width: 72ch;
  color: var(--llx-text-muted);
}

.llx-visual-eyebrow {
  gap: 0.4rem;
  color: var(--llx-accent);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.llx-timeline {
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1.5fr);
  gap: 1rem;
  margin-top: 1.25rem;
}

.llx-timeline-tabs {
  display: grid;
  gap: 0.55rem;
}

.llx-timeline-tab {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  min-height: 58px;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem;
  border: 1px solid var(--llx-border);
  border-radius: 10px;
  background: var(--llx-surface);
  color: var(--llx-text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.llx-timeline-tab span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--llx-surface-soft);
  color: var(--llx-text-muted);
  font-size: 0.72rem;
  font-weight: 900;
}

.llx-timeline-tab.is-active {
  border-color: var(--llx-accent);
  background: var(--llx-accent-soft);
  color: var(--llx-accent);
  box-shadow: inset 4px 0 0 var(--llx-accent);
}

.llx-timeline-tab.is-active span {
  background: var(--llx-accent);
  color: var(--llx-on-accent);
}

.llx-timeline-panel,
.llx-funnel-detail,
.llx-decision-result {
  padding: clamp(1rem, 2vw, 1.5rem);
  border: 1px solid var(--llx-border);
  border-radius: 12px;
  background: var(--llx-surface-soft);
}

.llx-timeline-panel h3,
.llx-funnel-detail h3,
.llx-decision-result h3 {
  margin-top: 0;
  color: var(--llx-accent);
}

.llx-visual-proof,
.llx-visual-gate,
.llx-benchmark-insight {
  padding: 0.75rem 0.9rem;
  border-left: 4px solid var(--llx-success);
  border-radius: 0 8px 8px 0;
  background: var(--llx-success-soft);
}

.llx-visual-gate {
  border-left-color: var(--llx-warning);
  background: var(--llx-warning-soft);
}

.llx-benchmark-wrap {
  margin-top: 1.25rem;
  overflow-x: auto;
}

.llx-benchmark-table {
  width: 100%;
  min-width: 720px;
  border-collapse: separate;
  border-spacing: 0;
}

.llx-benchmark-table th,
.llx-benchmark-table td {
  padding: 0.7rem;
  border-right: 1px solid var(--llx-border);
  border-bottom: 1px solid var(--llx-border);
  text-align: center;
}

.llx-benchmark-table thead th {
  border-top: 1px solid var(--llx-border);
  background: var(--llx-surface-soft);
  color: var(--llx-text);
  font-size: 0.78rem;
}

.llx-benchmark-table tr > :first-child {
  border-left: 1px solid var(--llx-border);
  text-align: left;
}

.llx-benchmark-table tr.is-selected > * {
  background: var(--llx-accent-soft);
}

.llx-benchmark-select {
  border: 0;
  background: transparent;
  color: var(--llx-text);
  font: inherit;
  font-weight: 800;
  text-align: left;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  cursor: pointer;
}

.llx-benchmark-select:hover,
.llx-benchmark-select:focus-visible {
  color: var(--llx-accent);
  text-decoration-color: currentColor;
}

.llx-matrix-status {
  display: inline-flex;
  min-width: 68px;
  justify-content: center;
  padding: 0.28rem 0.45rem;
  border: 1px solid var(--llx-border);
  border-radius: 999px;
  background: var(--llx-surface);
  color: var(--llx-text-muted);
  font-size: 0.7rem;
  font-weight: 900;
}

.llx-matrix-status.is-forte {
  border-color: var(--llx-success);
  background: var(--llx-success-soft);
  color: var(--llx-success);
}

.llx-matrix-status.is-parcial {
  border-color: var(--llx-warning);
  background: var(--llx-warning-soft);
  color: var(--llx-warning);
}

.llx-matrix-status.is-ausente {
  border-color: var(--llx-danger);
  background: var(--llx-danger-soft);
  color: var(--llx-danger);
}

.llx-funnel {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: center;
  gap: 0.45rem;
  margin: 1.25rem 0 1rem;
}

.llx-funnel-stage {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem;
  border: 1px solid var(--llx-border);
  background: var(--llx-surface);
  color: var(--llx-text);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 850;
  cursor: pointer;
}

.llx-funnel-stage:nth-child(1) { clip-path: polygon(0 8%, 100% 0, 92% 100%, 8% 92%); }
.llx-funnel-stage:nth-child(2) { clip-path: polygon(8% 0, 100% 8%, 90% 92%, 0 100%); }
.llx-funnel-stage:nth-child(3) { clip-path: polygon(10% 8%, 90% 0, 100% 100%, 0 92%); }
.llx-funnel-stage:nth-child(4) { clip-path: polygon(0 0, 92% 8%, 100% 92%, 8% 100%); }
.llx-funnel-stage:nth-child(5) { clip-path: polygon(8% 8%, 100% 0, 92% 100%, 0 92%); }

.llx-funnel-stage.is-active {
  border-color: var(--llx-accent);
  background: var(--llx-accent);
  color: var(--llx-on-accent);
}

.llx-decision-tree {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1.25rem 0 1rem;
}

.llx-decision-tree label {
  display: grid;
  gap: 0.45rem;
  padding: 0.8rem;
  border: 1px solid var(--llx-border);
  border-radius: 10px;
  background: var(--llx-surface-soft);
  color: var(--llx-text);
  font-size: 0.78rem;
  font-weight: 850;
}

.llx-decision-tree select {
  min-height: 44px;
  padding: 0.55rem;
  border: 1px solid var(--llx-border-strong);
  border-radius: 7px;
  background: var(--llx-surface);
  color: var(--llx-text);
  font: inherit;
}

.llx-diagram-fallback {
  margin-top: 1rem;
  border-top: 1px solid var(--llx-border);
  padding-top: 0.8rem;
}

.llx-diagram-fallback summary {
  color: var(--llx-accent);
  font-weight: 800;
  cursor: pointer;
}

.llx-diagram-fallback table {
  width: 100%;
  min-width: 560px;
  margin-top: 0.75rem;
  border-collapse: collapse;
}

.llx-diagram-fallback th,
.llx-diagram-fallback td {
  padding: 0.6rem;
  border: 1px solid var(--llx-border);
  text-align: left;
  vertical-align: top;
}

.llx-microquiz.llx-module {
  border-color: var(--llx-accent);
  box-shadow: 0 12px 30px color-mix(in srgb, var(--llx-accent) 14%, transparent);
}

.llx-quiz-eyebrow {
  display: inline-flex;
  margin: 0.85rem 1rem 0;
  padding: 0.25rem 0.55rem;
  border: 1px solid var(--llx-accent-line);
  border-radius: 999px;
  background: var(--llx-accent-soft);
  color: var(--llx-accent);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.llx-quiz-intro {
  color: var(--llx-text-muted);
}

.llx-quiz-status {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 1rem;
  padding: 0.28rem 0.55rem;
  border: 1px solid var(--llx-border);
  border-radius: 999px;
  background: var(--llx-surface-soft);
  color: var(--llx-text-muted);
  font-size: 0.7rem;
  font-weight: 850;
}

.llx-quiz-status.is-complete {
  border-color: var(--llx-success);
  background: var(--llx-success-soft);
  color: var(--llx-success);
}

.llx-quiz-fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.llx-quiz-fieldset legend {
  width: 100%;
  margin-bottom: 0.8rem;
  color: var(--llx-text);
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 850;
  line-height: 1.45;
}

.llx-quiz-options {
  display: grid;
  gap: 0.65rem;
}

.llx-quiz-option {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  min-height: 58px;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--llx-border);
  border-radius: 10px;
  background: var(--llx-surface);
  color: var(--llx-text);
  cursor: pointer;
}

.llx-quiz-option:hover,
.llx-quiz-option:focus-within {
  border-color: var(--llx-accent);
  background: var(--llx-accent-soft);
}

.llx-quiz-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.llx-quiz-marker {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--llx-border);
  border-radius: 50%;
  background: var(--llx-surface-soft);
  color: var(--llx-text-muted);
  font-size: 0.74rem;
  font-weight: 900;
}

.llx-quiz-option.is-selected {
  border-width: 2px;
}

.llx-quiz-option.is-correct {
  border-color: var(--llx-success);
  background: var(--llx-success-soft);
}

.llx-quiz-option.is-correct .llx-quiz-marker {
  border-color: var(--llx-success);
  background: var(--llx-success);
  color: var(--llx-surface);
}

.llx-quiz-option.is-incorrect {
  border-color: var(--llx-danger);
  background: var(--llx-danger-soft);
}

.llx-quiz-option.is-incorrect .llx-quiz-marker {
  border-color: var(--llx-danger);
  background: var(--llx-danger);
  color: var(--llx-surface);
}

.llx-quiz-feedback {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0.85rem 0 0;
  padding: 0.75rem 0.85rem;
  border-left: 4px solid var(--llx-border-strong);
  border-radius: 0 9px 9px 0;
  background: var(--llx-surface-soft);
}

.llx-quiz-feedback[hidden] {
  display: none !important;
}

.llx-quiz-feedback.is-correct {
  border-left-color: var(--llx-success);
  background: var(--llx-success-soft);
  color: var(--llx-success);
}

.llx-quiz-feedback.is-incorrect {
  border-left-color: var(--llx-danger);
  background: var(--llx-danger-soft);
  color: var(--llx-danger);
}

.llx-quiz-feedback .llx-icon {
  flex: 0 0 auto;
  margin-top: 0.08rem;
}

.llx-quiz-retry {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--llx-accent);
  border-radius: 8px;
  background: var(--llx-surface);
  color: var(--llx-accent);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 850;
  cursor: pointer;
}

.llx-quiz-retry[hidden] {
  display: none !important;
}

.llx-quiz-retry:hover {
  background: var(--llx-accent);
  color: var(--llx-on-accent);
}

.llx-prereq-heading {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--llx-border);
}

.llx-prereq-heading h3 {
  margin: 0.45rem 0 0.55rem;
  color: var(--llx-text);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
}

.llx-prereq-heading p {
  max-width: 76ch;
  color: var(--llx-text-muted);
}

.llx-prereq-map {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.llx-prereq-canvas {
  position: relative;
  display: grid;
  gap: 1.4rem;
  min-width: 0;
  padding: 1rem;
  overflow: hidden;
  border: 1px solid var(--llx-border);
  border-radius: 12px;
  background: var(--llx-surface-soft);
}

.llx-prereq-lines {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.llx-prereq-lines path[data-from] {
  fill: none;
  stroke: var(--llx-border-strong);
  stroke-width: 1.6;
  opacity: 0.52;
}

.llx-prereq-lines path[data-from].is-active {
  stroke: var(--llx-accent);
  stroke-width: 2.6;
  opacity: 1;
}

.llx-prereq-lines marker path {
  fill: var(--llx-border-strong);
}

.llx-prereq-stage {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
}

.llx-prereq-stage-label {
  color: var(--llx-text-muted);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.llx-prereq-stage-nodes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.llx-prereq-node {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  min-height: 66px;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem;
  border: 2px solid var(--llx-border);
  border-radius: 10px;
  background: var(--llx-surface-raised);
  color: var(--llx-text);
  font: inherit;
  text-align: left;
  box-shadow: var(--llx-shadow-small);
  cursor: pointer;
}

.llx-prereq-node > .llx-icon {
  width: 24px;
  height: 24px;
  color: var(--llx-accent);
}

.llx-prereq-node > span {
  display: grid;
  gap: 0.14rem;
}

.llx-prereq-node small {
  color: var(--llx-text-muted);
  font-size: 0.64rem;
  font-weight: 700;
}

.llx-prereq-node.is-selected {
  border-color: var(--llx-accent);
  background: var(--llx-accent);
  color: var(--llx-on-accent);
}

.llx-prereq-node.is-selected > .llx-icon,
.llx-prereq-node.is-selected small {
  color: var(--llx-on-accent);
}

.llx-prereq-node.is-prerequisite {
  border-color: var(--llx-warning);
  background: var(--llx-warning-soft);
}

.llx-prereq-node.is-unlocked {
  border-color: var(--llx-success);
  background: var(--llx-success-soft);
}

.llx-prereq-node.is-dimmed {
  opacity: 0.52;
}

.llx-prereq-node:hover,
.llx-prereq-node:focus-visible {
  opacity: 1;
  outline: 3px solid var(--llx-accent);
  outline-offset: 2px;
}

.llx-prereq-detail {
  align-self: start;
  padding: 1rem;
  border: 1px solid var(--llx-border);
  border-top: 5px solid var(--llx-accent);
  border-radius: 12px;
  background: var(--llx-surface-soft);
}

.llx-prereq-detail h4 {
  margin: 0 0 0.7rem;
  color: var(--llx-accent);
  font-size: 1.15rem;
}

.llx-prereq-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--llx-border);
  border-radius: 9px;
  background: var(--llx-surface);
}

.llx-prereq-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--llx-text-muted);
  font-size: 0.68rem;
  font-weight: 750;
}

.llx-prereq-swatch {
  width: 12px;
  height: 12px;
  border: 2px solid var(--llx-border);
  border-radius: 3px;
  background: var(--llx-surface);
}

.llx-prereq-swatch.is-prerequisite {
  border-color: var(--llx-warning);
  background: var(--llx-warning-soft);
}

.llx-prereq-swatch.is-selected {
  border-color: var(--llx-accent);
  background: var(--llx-accent);
}

.llx-prereq-swatch.is-unlocked {
  border-color: var(--llx-success);
  background: var(--llx-success-soft);
}

.llx-study-controls {
  position: sticky;
  top: calc(var(--llx-nav-offset) + var(--llx-learning-bar-height) + 0.5rem);
  z-index: 1020;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding: 0.8rem;
  border: 1px solid var(--llx-accent);
  border-radius: 12px;
  background: var(--llx-surface-raised);
  box-shadow: var(--llx-shadow);
}

.llx-study-controls[hidden] {
  display: none !important;
}

.llx-study-copy {
  display: grid;
  gap: 0.2rem;
}

.llx-study-status {
  margin: 0;
  color: var(--llx-accent);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.llx-study-current {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.llx-study-progress {
  position: relative;
  display: block;
  height: 5px;
  margin-top: 0.35rem;
  overflow: hidden;
  border-radius: 999px;
  background: var(--llx-border);
}

.llx-study-progress::after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: var(--llx-accent);
  transform: scaleX(var(--llx-study-scale, 0));
  transform-origin: left center;
  transition: transform var(--llx-motion-state) var(--llx-motion-ease-out);
}

.llx-study-nav {
  gap: 0.4rem;
}

.llx-study-nav button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--llx-border);
  border-radius: 8px;
  background: var(--llx-surface);
  color: var(--llx-text);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
}

.llx-study-nav button:hover:not(:disabled) {
  border-color: var(--llx-accent);
  color: var(--llx-accent);
}

.llx-study-nav button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.llx-study-mode .llx-learning-shell {
  grid-template-columns: minmax(0, 1fr);
}

.llx-study-mode .llx-study-rail,
.llx-study-mode .llx-mobile-index {
  display: none !important;
}

.llx-command-palette {
  position: fixed;
  inset: 0;
  width: min(720px, calc(100vw - 2rem));
  max-height: min(78vh, 760px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--llx-border-strong);
  border-radius: 14px;
  background: var(--llx-surface-raised);
  color: var(--llx-text);
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.35);
}

.llx-command-palette::backdrop {
  background: rgba(15, 23, 42, 0.68);
}

.llx-command-header {
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1rem 0.7rem;
  border-bottom: 1px solid var(--llx-border);
}

.llx-command-header h2,
.llx-command-header p {
  margin: 0;
}

.llx-command-header p {
  color: var(--llx-text-muted);
  font-size: 0.78rem;
}

.llx-command-close {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border: 1px solid var(--llx-border);
  border-radius: 8px;
  background: var(--llx-surface);
  color: var(--llx-text);
  cursor: pointer;
}

.llx-command-search {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 0.5rem;
  margin: 0.8rem 1rem 0;
  padding: 0.65rem 0.75rem;
  border: 2px solid var(--llx-accent);
  border-radius: 10px;
  background: var(--llx-surface);
}

.llx-command-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--llx-text);
  font: inherit;
  font-size: 1rem;
}

.llx-command-count {
  margin: 0;
  padding: 0.55rem 1rem 0.35rem;
  color: var(--llx-text-muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.llx-command-results {
  max-height: min(54vh, 510px);
  margin: 0;
  padding: 0 0.65rem 0.75rem;
  overflow-y: auto;
  list-style: none;
}

.llx-command-result {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 22px;
  gap: 0.65rem;
  min-height: 62px;
  padding: 0.65rem;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--llx-text);
  text-decoration: none;
}

.llx-command-result:hover,
.llx-command-result:focus-visible {
  border-color: var(--llx-accent);
  background: var(--llx-accent-soft);
}

.llx-command-badge {
  align-self: center;
  padding: 0.24rem 0.38rem;
  border: 1px solid var(--llx-border);
  border-radius: 999px;
  color: var(--llx-accent);
  font-size: 0.62rem;
  font-weight: 900;
  text-transform: uppercase;
}

.llx-command-result-copy {
  display: grid;
  gap: 0.12rem;
}

.llx-command-result-copy span {
  color: var(--llx-text-muted);
  font-size: 0.76rem;
}

@media (max-width: 780px) {
  .llx-timeline,
  .llx-study-controls,
  .llx-prereq-map {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .llx-funnel {
    grid-template-columns: minmax(0, 1fr);
  }

  .llx-funnel-stage {
    min-height: 54px;
    clip-path: none !important;
    border-radius: 9px;
  }

  .llx-decision-tree {
    grid-template-columns: minmax(0, 1fr);
  }

  .llx-prereq-stage {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .llx-study-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .llx-study-nav button {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .llx-learning-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .llx-study-launch,
  .llx-learning-actions .llx-complete-button {
    width: 100%;
    justify-content: center;
  }

  .llx-learning-actions .llx-complete-button {
    min-width: 0;
    padding-inline: 0.65rem;
  }

  .llx-timeline-tabs {
    grid-template-columns: minmax(0, 1fr);
  }

  .llx-prereq-canvas {
    padding: 0.75rem;
  }

  .llx-prereq-stage {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.45rem;
  }

  .llx-prereq-stage-nodes {
    grid-template-columns: minmax(0, 1fr);
  }

  .llx-prereq-lines {
    display: none;
  }

  .llx-prereq-node.is-dimmed {
    opacity: 0.68;
  }

  .llx-quiz-option {
    grid-template-columns: 34px minmax(0, 1fr);
    padding-inline: 0.65rem;
  }

  .llx-command-result {
    grid-template-columns: minmax(0, 1fr) 20px;
  }

  .llx-command-badge {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .llx-study-nav button {
    padding-inline: 0.35rem;
    font-size: 0.7rem;
  }
}

/* ── Aula visual: metáfora, caso de uso e execução ─────────────── */
.llx-didactic-canvas {
  position: relative;
  margin: 1.5rem 0;
  padding: clamp(1rem, 2.6vw, 1.65rem);
  overflow: hidden;
  border: 1px solid var(--llx-border);
  border-top: 5px solid var(--llx-accent-2);
  border-radius: var(--llx-radius);
  background:
    radial-gradient(circle at 92% 8%, var(--llx-accent-2-soft) 0, transparent 34%),
    var(--llx-surface-raised);
  color: var(--llx-text);
  box-shadow: var(--llx-shadow);
}

.llx-didactic-heading {
  display: grid;
  max-width: 760px;
  gap: 0.45rem;
}

.llx-didactic-heading h2,
.llx-didactic-heading p {
  margin: 0;
}

.llx-didactic-heading h2 {
  max-width: 24ch;
  color: var(--llx-text);
  font-size: clamp(1.45rem, 3vw, 2.05rem);
  line-height: 1.12;
}

.llx-didactic-heading p {
  max-width: 68ch;
  color: var(--llx-text-muted);
}

.llx-didactic-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: 1.25rem;
  padding: 0.4rem;
  border: 1px solid var(--llx-border);
  border-radius: 12px;
  background: var(--llx-surface-soft);
}

.llx-didactic-tab {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--llx-text-muted);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 850;
  cursor: pointer;
}

.llx-didactic-tab:hover {
  color: var(--llx-accent);
}

.llx-didactic-tab.is-active {
  border-color: var(--llx-accent);
  background: var(--llx-surface-raised);
  color: var(--llx-accent);
  box-shadow: var(--llx-shadow-small);
}

.llx-didactic-tab .llx-icon {
  width: 18px;
  height: 18px;
}

.llx-didactic-panels {
  margin-top: 1rem;
}

.llx-didactic-panel {
  min-height: 280px;
  padding: clamp(0.85rem, 2vw, 1.2rem);
  border: 1px solid var(--llx-border);
  border-radius: 13px;
  background: color-mix(in srgb, var(--llx-surface-raised) 94%, var(--llx-accent-soft));
}

.llx-didactic-panel[hidden] {
  display: none;
}

.llx-metaphor-bridge {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr);
  align-items: stretch;
  gap: 0.75rem;
}

.llx-metaphor-side {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  grid-template-rows: auto auto 1fr;
  gap: 0.2rem 0.75rem;
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--llx-border);
  border-radius: 12px;
  background: var(--llx-surface-soft);
}

.llx-metaphor-side-portal {
  border-color: var(--llx-accent-line);
  background: var(--llx-accent-soft);
}

.llx-metaphor-icon {
  display: grid;
  width: 46px;
  height: 46px;
  grid-row: 1 / span 2;
  place-items: center;
  border-radius: 12px;
  background: var(--llx-surface-raised);
  color: var(--llx-accent);
  box-shadow: var(--llx-shadow-small);
}

.llx-metaphor-icon .llx-icon {
  width: 24px;
  height: 24px;
}

.llx-metaphor-side small {
  align-self: end;
  color: var(--llx-text-muted);
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.llx-metaphor-side h3 {
  margin: 0;
  color: var(--llx-text);
  font-size: 1.04rem;
  line-height: 1.22;
}

.llx-metaphor-side p {
  grid-column: 1 / -1;
  margin: 0.75rem 0 0;
  color: var(--llx-text-muted);
  line-height: 1.6;
}

.llx-metaphor-connector {
  position: relative;
  display: grid;
  place-items: center;
  color: var(--llx-accent);
}

.llx-metaphor-connector::before {
  position: absolute;
  right: 4px;
  left: 4px;
  height: 3px;
  border-radius: 999px;
  background: var(--llx-border);
  content: "";
}

.llx-metaphor-connector > .llx-icon {
  position: relative;
  z-index: 2;
  width: 26px;
  height: 26px;
  padding: 4px;
  border-radius: 50%;
  background: var(--llx-surface-raised);
  box-shadow: 0 0 0 4px var(--llx-surface-raised);
}

.llx-metaphor-pulse {
  position: absolute;
  z-index: 1;
  left: 4px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--llx-accent-2);
  box-shadow: 0 0 0 4px var(--llx-accent-2-soft);
}

.llx-metaphor-rule {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 0.55rem;
  align-items: start;
  margin: 0.85rem 0 0;
  padding: 0.75rem 0.9rem;
  border-left: 4px solid var(--llx-accent-2);
  border-radius: 0 9px 9px 0;
  background: var(--llx-accent-2-soft);
  color: var(--llx-text);
}

.llx-metaphor-rule .llx-icon {
  width: 20px;
  height: 20px;
  color: var(--llx-accent-2);
}

.llx-use-case-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.llx-use-case-header small {
  color: var(--llx-text-muted);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.llx-use-case-header h3 {
  margin: 0.12rem 0 0;
  color: var(--llx-text);
  font-size: 1.2rem;
}

.llx-use-case-badge {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.35rem;
  padding: 0.38rem 0.55rem;
  border: 1px solid var(--llx-accent-line);
  border-radius: 999px;
  background: var(--llx-accent-soft);
  color: var(--llx-accent);
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
}

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

.llx-use-case-card {
  position: relative;
  min-width: 0;
  padding: 0.85rem;
  border: 1px solid var(--llx-border);
  border-top: 4px solid var(--llx-accent);
  border-radius: 10px;
  background: var(--llx-surface-raised);
  box-shadow: var(--llx-shadow-small);
}

.llx-use-case-card:not(:last-child)::after {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: -0.63rem;
  width: 9px;
  height: 9px;
  border-top: 2px solid var(--llx-accent);
  border-right: 2px solid var(--llx-accent);
  background: var(--llx-surface-raised);
  content: "";
  transform: translateY(-50%) rotate(45deg);
}

.llx-use-case-label {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  color: var(--llx-accent);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.llx-use-case-label .llx-icon {
  width: 17px;
  height: 17px;
}

.llx-use-case-card p {
  margin: 0.55rem 0 0;
  color: var(--llx-text);
  font-size: 0.82rem;
  line-height: 1.52;
}

.llx-stepper {
  position: relative;
}

.llx-stepper-track {
  position: absolute;
  top: 24px;
  right: 10%;
  left: 10%;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--llx-border);
}

.llx-stepper-progress {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: var(--llx-accent);
  transform: scaleX(var(--llx-step-scale, 0));
  transform-origin: left center;
}

.llx-stepper-nodes {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
}

.llx-stepper-node {
  display: grid;
  justify-items: center;
  gap: 0.42rem;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--llx-text-muted);
  font: inherit;
  font-size: 0.74rem;
  cursor: pointer;
}

.llx-stepper-node > span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 3px solid var(--llx-border);
  border-radius: 50%;
  background: var(--llx-surface-raised);
  color: var(--llx-text-muted);
  font-size: 0.7rem;
  font-weight: 900;
  box-shadow: var(--llx-shadow-small);
}

.llx-stepper-node > strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.llx-stepper-node.is-complete > span {
  border-color: var(--llx-success);
  background: var(--llx-success);
  color: var(--llx-surface-raised);
}

.llx-stepper-node.is-current {
  color: var(--llx-accent);
}

.llx-stepper-node.is-current > span {
  border-color: var(--llx-accent);
  background: var(--llx-accent);
  color: var(--llx-on-accent);
  box-shadow: 0 0 0 5px var(--llx-accent-soft);
}

.llx-step-detail {
  display: grid;
  grid-template-columns: minmax(150px, 0.55fr) minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 0.3rem 1rem;
  align-items: center;
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--llx-accent-line);
  border-left: 5px solid var(--llx-accent);
  border-radius: 0 11px 11px 0;
  background: var(--llx-accent-soft);
}

.llx-step-detail small {
  grid-column: 1;
  color: var(--llx-accent);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.llx-step-detail h3 {
  grid-column: 1;
  margin: 0;
  color: var(--llx-text);
  font-size: 1.08rem;
}

.llx-step-detail p {
  grid-row: 1 / span 2;
  margin: 0;
  color: var(--llx-text);
  font-size: 0.84rem;
  line-height: 1.5;
}

.llx-step-detail > p:not(.llx-step-proof) {
  grid-column: 2;
}

.llx-step-proof {
  grid-column: 3;
  padding-left: 0.85rem;
  border-left: 1px solid var(--llx-accent-line);
}

.llx-scenario-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.llx-scenario-run {
  display: inline-flex;
  min-height: 44px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  padding: 0.58rem 0.85rem;
  border: 1px solid var(--llx-accent);
  border-radius: 9px;
  background: var(--llx-accent);
  color: var(--llx-on-accent);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 850;
  cursor: pointer;
}

.llx-scenario-actions p {
  margin: 0;
  color: var(--llx-text-muted);
  font-size: 0.75rem;
}

/* ── Roteiro interno de cada capítulo ───────────────────────────── */
.llx-chapter-waypoints {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 0 0 1rem;
  padding: 0.55rem;
  border: 1px solid var(--llx-border);
  border-radius: 11px;
  background: var(--llx-surface-soft);
}

.llx-chapter-waypoint {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  padding: 0.55rem;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--llx-text);
  text-decoration: none;
}

.llx-chapter-waypoint:hover {
  border-color: var(--llx-accent);
  background: var(--llx-surface-raised);
}

.llx-chapter-waypoint-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 9px;
  background: var(--llx-accent-soft);
  color: var(--llx-accent);
}

.llx-chapter-waypoint-icon .llx-icon {
  width: 18px;
  height: 18px;
}

.llx-chapter-waypoint > span:last-child {
  display: grid;
  gap: 0.08rem;
  min-width: 0;
}

.llx-chapter-waypoint strong,
.llx-chapter-waypoint small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.llx-chapter-waypoint strong {
  font-size: 0.76rem;
}

.llx-chapter-waypoint small {
  color: var(--llx-text-muted);
  font-size: 0.64rem;
  font-weight: 700;
}

/* ── Listas instrucionais: escaneáveis antes de serem extensas ─── */
.llx-step-list,
.llx-keypoint-grid {
  margin: 1rem 0;
  padding: 0;
  list-style: none;
}

.llx-step-list {
  display: grid;
  gap: 0.6rem;
  counter-reset: none;
}

.llx-step-list > li {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  min-width: 0;
  padding: 0.78rem;
  border: 1px solid var(--llx-border);
  border-left: 4px solid var(--llx-accent);
  border-radius: 0 10px 10px 0;
  background: var(--llx-surface-soft);
}

.llx-step-list-number {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 10px;
  background: var(--llx-accent);
  color: var(--llx-on-accent);
  font-size: 0.68rem;
  font-weight: 900;
}

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

.llx-keypoint-grid > li {
  position: relative;
  min-width: 0;
  padding: 0.78rem 0.82rem 0.78rem 2.1rem;
  border: 1px solid var(--llx-border);
  border-radius: 10px;
  background: var(--llx-surface-soft);
}

.llx-keypoint-grid > li::before {
  position: absolute;
  top: 0.94rem;
  left: 0.82rem;
  width: 10px;
  height: 10px;
  border: 3px solid var(--llx-surface-raised);
  border-radius: 50%;
  background: var(--llx-accent);
  box-shadow: 0 0 0 1px var(--llx-accent);
  content: "";
}

/* ── Box de prompt por aula ────────────────────────────────────── */
.llx-prompt-tool {
  margin: 1.25rem 0 1.75rem;
  padding: clamp(1rem, 2.4vw, 1.5rem);
  border: 1px solid var(--llx-border);
  border-left: 5px solid var(--llx-accent);
  border-radius: var(--llx-radius);
  background: var(--llx-surface-raised);
  color: var(--llx-text);
  box-shadow: var(--llx-shadow-soft);
}

.llx-prompt-tool-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, .48fr);
  align-items: start;
  gap: 1rem;
}

.llx-prompt-tool-header h2 {
  max-width: 30ch;
  margin: .35rem 0 .45rem;
  color: var(--llx-text);
  font-size: clamp(1.3rem, 2.7vw, 1.85rem);
  line-height: 1.15;
}

.llx-prompt-tool-header p {
  max-width: 70ch;
  margin: 0;
  color: var(--llx-text-muted);
}

.llx-prompt-front {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: .5rem;
  padding: .65rem .75rem;
  border: 1px solid var(--llx-accent-line);
  border-radius: 10px;
  background: var(--llx-accent-soft);
  color: var(--llx-text);
  font-size: .73rem;
  font-weight: 800;
  line-height: 1.35;
}

.llx-prompt-brief {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
  margin-top: 1rem;
}

.llx-prompt-brief-card {
  min-width: 0;
  padding: .85rem;
  border: 1px solid var(--llx-border);
  border-radius: 11px;
  background: var(--llx-surface-soft);
}

.llx-prompt-brief-card h3,
.llx-prompt-readiness-card h3 {
  display: flex;
  align-items: center;
  gap: .45rem;
  margin: 0 0 .5rem;
  color: var(--llx-text);
  font-size: .82rem;
  line-height: 1.25;
}

.llx-prompt-brief-card h3 .llx-icon,
.llx-prompt-readiness-card h3 .llx-icon {
  width: 1rem;
  height: 1rem;
  color: var(--llx-accent);
}

.llx-prompt-brief-card p {
  margin: 0;
  color: var(--llx-text-muted);
  font-size: .76rem;
  line-height: 1.55;
}

.llx-prompt-readiness {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
  margin-top: .75rem;
}

.llx-prompt-readiness-card {
  min-width: 0;
  padding: .9rem;
  border: 1px solid var(--llx-accent-line);
  border-radius: 11px;
  background: color-mix(in srgb, var(--llx-accent-soft) 58%, var(--llx-surface-raised));
}

.llx-prompt-readiness-card ol,
.llx-prompt-readiness-card ul {
  display: grid;
  gap: .45rem;
  margin: 0;
  padding-left: 1.15rem;
  color: var(--llx-text);
  font-size: .73rem;
  line-height: 1.45;
}

.llx-prompt-readiness-card li::marker {
  color: var(--llx-accent);
  font-weight: 850;
}

.llx-prompt-readiness-card li strong,
.llx-prompt-readiness-card li small {
  display: block;
}

.llx-prompt-readiness-card li small {
  margin-top: .12rem;
  color: var(--llx-text-muted);
  line-height: 1.4;
}

.llx-prompt-details {
  margin-top: 1rem;
  overflow: hidden;
  border: 1px solid var(--llx-border);
  border-radius: 12px;
}

.llx-prompt-summary {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .65rem .8rem;
  list-style: none;
  background: var(--llx-surface-soft);
  color: var(--llx-text);
  cursor: pointer;
}

.llx-prompt-summary::-webkit-details-marker {
  display: none;
}

.llx-prompt-summary > span {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .82rem;
  font-weight: 850;
}

.llx-prompt-summary > small {
  color: var(--llx-text-muted);
  font-size: .7rem;
  font-weight: 700;
}

.llx-prompt-summary-toggle {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--llx-accent);
  color: var(--llx-on-accent);
  font-weight: 900;
}

.llx-prompt-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .5rem;
  padding: .65rem;
  border-top: 1px solid var(--llx-border);
  background: var(--llx-surface-raised);
}

.llx-prompt-tab {
  display: flex;
  min-width: 0;
  min-height: 58px;
  align-items: center;
  gap: .6rem;
  padding: .65rem .75rem;
  border: 1px solid var(--llx-border);
  border-radius: 10px;
  background: var(--llx-surface-soft);
  color: var(--llx-text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.llx-prompt-tab .llx-icon {
  width: 1.1rem;
  height: 1.1rem;
  flex: 0 0 auto;
  color: var(--llx-accent);
}

.llx-prompt-tab > span {
  min-width: 0;
}

.llx-prompt-tab strong,
.llx-prompt-tab small {
  display: block;
}

.llx-prompt-tab strong {
  font-size: .8rem;
}

.llx-prompt-tab small {
  margin-top: .12rem;
  color: var(--llx-text-muted);
  font-size: .68rem;
  line-height: 1.35;
}

.llx-prompt-tab:hover {
  border-color: var(--llx-accent-line);
  background: var(--llx-accent-soft);
}

.llx-prompt-tab[aria-selected="true"] {
  border-color: var(--llx-accent);
  background: var(--llx-accent);
  color: var(--llx-on-accent);
  box-shadow: 0 5px 14px color-mix(in srgb, var(--llx-accent) 25%, transparent);
}

.llx-prompt-tab[aria-selected="true"] .llx-icon,
.llx-prompt-tab[aria-selected="true"] small {
  color: var(--llx-on-accent);
}

.llx-prompt-tab:focus-visible {
  outline: 3px solid var(--llx-accent-line);
  outline-offset: 2px;
}

.llx-prompt-panel[hidden] {
  display: none;
}

.llx-prompt-shell {
  overflow: hidden;
  border-top: 1px solid var(--llx-border);
  background: #111827;
}

.llx-prompt-code {
  max-height: min(56vh, 560px);
  margin: 0;
  overflow: auto;
  padding: 1rem;
  background: transparent;
  color: #f8fafc;
  font: 500 .78rem/1.62 ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  white-space: pre-wrap;
}

.llx-prompt-code:focus-visible {
  outline: 3px solid #f8c4d5;
  outline-offset: -4px;
}

.llx-prompt-actions {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .55rem .7rem;
  border-top: 1px solid #334155;
  background: #1e293b;
}

.llx-prompt-copy {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .6rem .8rem;
  border: 1px solid #f8c4d5;
  border-radius: 9px;
  background: #fff;
  color: #7f1238;
  font: inherit;
  font-size: .78rem;
  font-weight: 850;
  cursor: pointer;
}

.llx-prompt-copy:hover,
.llx-prompt-copy.is-copied {
  border-color: #fff;
  background: #f8c4d5;
  color: #500724;
}

.llx-prompt-feedback {
  color: #cbd5e1;
  font-size: .72rem;
}

@media (max-width: 920px) {
  .llx-use-case-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .llx-use-case-card:nth-child(2)::after {
    display: none;
  }

  .llx-step-detail {
    grid-template-columns: minmax(140px, 0.55fr) minmax(0, 1.45fr);
  }

  .llx-step-proof {
    grid-column: 2;
    grid-row: 3;
    padding-top: 0.55rem;
    padding-left: 0;
    border-top: 1px solid var(--llx-accent-line);
    border-left: 0;
  }
}

@media (max-width: 680px) {
  .llx-prompt-tool-header {
    grid-template-columns: 1fr;
  }

  .llx-prompt-front {
    width: 100%;
  }

  .llx-prompt-brief,
  .llx-prompt-readiness {
    grid-template-columns: minmax(0, 1fr);
  }

  .llx-prompt-summary {
    align-items: flex-start;
  }

  .llx-prompt-summary > small {
    display: none;
  }

  .llx-prompt-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .llx-prompt-feedback {
    padding-inline: .15rem;
  }

  .llx-prompt-tabs {
    grid-template-columns: minmax(0, 1fr);
  }

  .llx-didactic-tabs,
  .llx-metaphor-bridge,
  .llx-use-case-flow,
  .llx-chapter-waypoints,
  .llx-keypoint-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .llx-didactic-tab {
    justify-content: flex-start;
  }

  .llx-metaphor-connector {
    min-height: 42px;
    transform: rotate(90deg);
  }

  .llx-use-case-card::after {
    display: none;
  }

  .llx-stepper-track {
    top: 9%;
    bottom: 9%;
    left: 23px;
    width: 4px;
    height: auto;
  }

  .llx-stepper-progress {
    width: 100%;
    height: 100%;
    transform: scaleY(var(--llx-step-scale, 0));
    transform-origin: center top;
  }

  .llx-stepper-nodes {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.55rem;
  }

  .llx-stepper-node {
    grid-template-columns: 48px minmax(0, 1fr);
    justify-items: start;
    align-items: center;
    text-align: left;
  }

  .llx-stepper-node > strong {
    white-space: normal;
  }

  .llx-step-detail {
    display: block;
  }

  .llx-step-detail > * + * {
    margin-top: 0.35rem;
  }

  .llx-step-proof {
    margin-top: 0.7rem;
    padding-top: 0.65rem;
    padding-left: 0;
    border-top: 1px solid var(--llx-accent-line);
    border-left: 0;
  }

  .llx-scenario-actions {
    align-items: stretch;
    flex-direction: column;
  }
}

/* ── Movimento funcional, progressivo e sempre fail-open ────────── */
.llx-motion-item,
.llx-didactic-canvas {
  opacity: 1;
  transform: none;
}

@keyframes llx-purpose-reveal {
  from {
    opacity: 0;
    transform: translateY(var(--llx-motion-distance));
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes llx-content-enter {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    :root:not([data-llx-motion="reduce"]) .llx-motion-item {
      animation: llx-purpose-reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 38%;
    }
  }
}

@media (prefers-reduced-motion: no-preference) {
  :root:not([data-llx-motion="reduce"]) .llx-module.is-open > .llx-module-body,
  :root:not([data-llx-motion="reduce"]) .llx-didactic-panel.is-active,
  :root:not([data-llx-motion="reduce"]) .llx-didactic-canvas.is-ready,
  :root:not([data-llx-motion="reduce"]) .llx-timeline-panel.is-updating,
  :root:not([data-llx-motion="reduce"]) .llx-step-detail.is-updating {
    animation: llx-content-enter var(--llx-motion-state) var(--llx-motion-ease-out) both;
  }

  :root:not([data-llx-motion="reduce"]) .llx-complete-button.is-confirming,
  :root:not([data-llx-motion="reduce"]) [data-llx-complete-compact].is-confirming,
  :root:not([data-llx-motion="reduce"]) .llx-prompt-copy.is-copied .llx-icon {
    animation: llx-feedback-pop var(--llx-motion-feedback) var(--llx-motion-ease-out) both;
  }

  .llx-route-card,
  .llx-module,
  .llx-module-toggle,
  .llx-answer-toggle,
  .llx-page-pager a,
  .llx-pagination a {
    transition:
      border-color 160ms ease,
      background-color 160ms ease,
      color 160ms ease,
      box-shadow 160ms ease,
      transform 160ms ease;
  }

  .llx-didactic-tab,
  .llx-stepper-node > span,
  .llx-stepper-progress,
  .llx-scenario-run {
    transition:
      border-color 180ms ease,
      background-color 180ms ease,
      color 180ms ease,
      box-shadow 180ms ease,
      transform var(--llx-motion-state) var(--llx-motion-ease-out);
  }

  :root:not([data-llx-motion="reduce"]) .llx-didactic-panel.is-active .llx-metaphor-pulse {
    animation: llx-metaphor-travel 360ms var(--llx-motion-ease-out) 1 both;
  }

  :root:not([data-llx-motion="reduce"]) .llx-scenario-run.is-running .llx-icon {
    animation: llx-scenario-pulse var(--llx-motion-feedback) var(--llx-motion-ease-out) 1 both;
  }
}

@keyframes llx-metaphor-travel {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(54px);
  }
}

@keyframes llx-scenario-pulse {
  50% {
    transform: scale(1.2);
  }
}

@keyframes llx-feedback-pop {
  50% {
    transform: scale(1.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .llx-progress-bar,
  .llx-reading-progress,
  .llx-resume-progress::after,
  .llx-study-progress::after,
  .llx-module-toggle svg,
  .llx-module-toggle [data-lucide],
  .llx-stepper-progress {
    transition: none;
  }

  .llx-route-card:hover {
    transform: none;
  }

  .llx-metaphor-pulse {
    left: calc(50% - 4px);
  }
}

:root[data-llx-motion="reduce"] {
  scroll-behavior: auto !important;
}

:root[data-llx-motion="reduce"] .llx-motion-item,
:root[data-llx-motion="reduce"] .llx-didactic-canvas,
:root[data-llx-motion="reduce"] .llx-module-body,
:root[data-llx-motion="reduce"] .llx-didactic-panel,
:root[data-llx-motion="reduce"] .llx-timeline-panel,
:root[data-llx-motion="reduce"] .llx-step-detail,
:root[data-llx-motion="reduce"] .llx-metaphor-pulse,
:root[data-llx-motion="reduce"] .llx-complete-button.is-confirming,
:root[data-llx-motion="reduce"] [data-llx-complete-compact].is-confirming,
:root[data-llx-motion="reduce"] .llx-prompt-copy.is-copied .llx-icon {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

:root[data-llx-motion="reduce"] .llx-progress-bar,
:root[data-llx-motion="reduce"] .llx-reading-progress,
:root[data-llx-motion="reduce"] .llx-resume-progress::after,
:root[data-llx-motion="reduce"] .llx-study-progress::after,
:root[data-llx-motion="reduce"] .llx-stepper-progress,
:root[data-llx-motion="reduce"] .llx-module-toggle svg,
:root[data-llx-motion="reduce"] .llx-module-toggle [data-lucide] {
  transition: none !important;
}

/* O controle manual também governa animações inline legadas das 16 páginas. */
:root[data-llx-motion="reduce"] body.leadlovers-isolated *,
:root[data-llx-motion="reduce"] body.leadlovers-isolated *::before,
:root[data-llx-motion="reduce"] body.leadlovers-isolated *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}

:root[data-llx-motion="reduce"] body.leadlovers-isolated :is(a, button, summary, [role="button"]):hover,
:root[data-llx-motion="reduce"] body.leadlovers-isolated :is(.frente-card, .papel-card, .subpage-card, .filha-card):hover {
  transform: none !important;
}

/* ── Impressão: conteúdo inteiro, sem controles de navegação ────── */
@media print {
  .llx-progress-shell,
  .llx-study-rail,
  .llx-mobile-index,
  .llx-learning-bar,
  .llx-module-toggle,
  .llx-page-pager,
  .llx-pagination,
  .llx-mobile-actions,
  .llx-answer-toggle {
    display: none !important;
  }

  .llx-learning-shell {
    display: block;
  }

  .llx-module,
  .llx-start-panel,
  .llx-learning-flow,
  .llx-visual-lab,
  .llx-didactic-canvas {
    break-inside: avoid;
    box-shadow: none;
  }

  .llx-module-body[hidden] {
    display: block !important;
  }

  .llx-module[hidden] {
    display: block !important;
  }

  .llx-study-controls,
  .llx-command-palette,
  .llx-didactic-tabs,
  .llx-scenario-actions {
    display: none !important;
  }

  .llx-didactic-panel[hidden] {
    display: block !important;
  }

  .llx-answer-shell:not(.is-expanded) .answer-capsule,
  .llx-answer-shell:not(.is-expanded) > p {
    display: block;
    overflow: visible;
  }
}

/* ══ Correções de contraste — auditoria frontend em 5 waves (28/07/2026) ══
   Chips de superfície clara injetados dentro de caixas navy da página
   (.quem-box / .quem-serve) herdavam o texto claro das regras da página e
   ficavam ilegíveis no tema claro. Todo contêiner que define superfície
   própria declara o par texto/fundo junto; specificity 0-1-2+ vence as
   regras de página (0-1-1) independente da ordem de carga. */
ul.llx-keypoint-grid > li,
details.llx-deep-dive {
  color: var(--llx-text);
}
ul.llx-keypoint-grid > li p,
ul.llx-keypoint-grid > li li,
ul.llx-keypoint-grid > li strong,
details.llx-deep-dive p,
details.llx-deep-dive li,
details.llx-deep-dive strong {
  color: inherit;
}
ul.llx-keypoint-grid > li a,
details.llx-deep-dive a {
  color: var(--llx-accent);
}

/* O rótulo <strong> da aba de prompt ativa herdava a cor global de texto em
   vez do par sobre-accent (small e .llx-icon já recebiam o tratamento). */
.llx-prompt-tab[aria-selected="true"] strong {
  color: var(--llx-on-accent);
}

/* Botão "Retomar aula": a regra de página
   :root[data-theme="dark"] a:not(.geo-btn):not(.cta) { color: var(--ll-ink) }
   (0-4-1) vencia o par correto e dava rosa sobre rosa (1,25:1). Guarda
   com !important contida a este componente. */
.llx-resume-actions .llx-resume-primary,
.llx-resume-actions .llx-resume-primary:hover,
.llx-resume-actions .llx-resume-primary:focus-visible {
  color: var(--llx-on-accent) !important;
}

/* Badge de atenção do design system: #DD7A01 rende 2,8:1 sobre o fundo suave.
   O fundo do badge (--color-warning-light) permanece creme também no tema
   escuro, então o âmbar escuro vale para os dois temas. */
body.leadlovers-isolated .geo-badge-warning {
  color: #8a5200;
}

/* Cards de páginas relacionadas nos hubs: as páginas-folha definem override
   escuro próprio (0-5-1) e continuam vencendo; esta regra (0-4-1) cobre os
   hubs, onde o card ficava branco com texto claro (1,05:1) no tema escuro. */
:root[data-theme="dark"] body.leadlovers-isolated .geo-related-pages a {
  background: #1f2937;
  border-color: var(--color-border, #374151);
  color: #e5e7eb;
}
:root[data-theme="dark"] body.leadlovers-isolated .geo-related-pages a span {
  color: #c4ceda;
}

/* ══ Diagramação — waves 6-9 (28/07/2026) ══
   Ritmo tipográfico do curso frontends-com-vibecoding: títulos equilibrados
   e prosa sem órfãs, via CSS nativo (progressive enhancement). */
h1,
h2,
h3,
.llx-module-title {
  text-wrap: balance;
}
p,
li,
figcaption,
dd {
  text-wrap: pretty;
}

/* ══ Largura de leitura pós-chrome mínimo (28/07/2026) ══
   Sem o rail lateral, a coluna de 780px com prosa presa em 560px deixava
   dois terços da tela vazios. Container a 1080px e medida tipográfica de
   75ch na prosa (85ch na cápsula introdutória); as regras de página que
   pinavam 560px perdem por especificidade. */
body.leadlovers-isolated main.geo-page {
  max-width: min(1080px, 94vw);
}
body.leadlovers-isolated main.geo-page p {
  max-width: 75ch;
}
body.leadlovers-isolated main.geo-page .answer-capsule {
  max-width: 85ch;
}
