/* A jornada usa os mesmos conteúdos e controles do cronograma. */
.cw.cw-v4[data-active-chapter="guias"] {
  --cm-purple: #7627e8;
  --cm-purple-deep: #49149a;
  --cm-ink: #2f1749;
  --cm-muted: #63506f;
  --cm-line: #e9e0ed;
  --cm-green: #12673b;
}

.cw.cw-v4[data-active-chapter="guias"] .cw-main {
  background: radial-gradient(ellipse at 95% 4%, #e1c5ff 0, transparent 52%), radial-gradient(ellipse at 0% 85%, #ffe5a0 0, transparent 58%), #f8f2ff;
  padding-top: 16px;
}

.cw.cw-v4 [data-chapter="guias"] {
  max-width: 680px;
  min-width: 0;
  color: var(--cm-ink);
}

.cw.cw-v4 [data-chapter="guias"].is-entering { animation: none; }
.cw.cw-v4 [data-chapter="guias"] .cm-journey { position: relative; min-width: 0; }
.cw.cw-v4 [data-chapter="guias"] .cm-journey * { box-sizing: border-box; }

.cw.cw-v4 [data-chapter="guias"] .cm-progress {
  display: block;
  margin: 0 2px 18px;
  color: var(--cm-muted);
  font-size: 13px;
  line-height: 1.5;
}

.cw.cw-v4 [data-chapter="guias"] .cm-progress > div:first-child:not(.cm-progress-track) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-bottom: 9px;
}

.cw.cw-v4 [data-chapter="guias"] .cm-progress strong { color: var(--cm-purple-deep); font-weight: 750; }
.cw.cw-v4 [data-chapter="guias"] .cm-progress-track {
  width: 100%;
  height: 9px;
  margin-top: 9px;
  border-radius: 999px;
  background: #e2d2ff;
  overflow: hidden;
  box-shadow: inset 0 1px 2px #4522690a;
}

.cw.cw-v4 [data-chapter="guias"] .cm-progress-track > span {
  display: block;
  height: 100%;
  max-width: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #a02dff, #7627e8);
  transition: width 320ms cubic-bezier(.22, .68, .23, 1);
  animation: cm-progress-fill 320ms cubic-bezier(.22, .68, .23, 1) both;
}

/* The visual bar is recreated by the existing renderer. From/to percentages
   keep the movement continuous; the native progress remains accessible. */
.cw.cw-v4 [data-chapter="guias"] .cm-native-progress {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.cw.cw-v4 [data-chapter="guias"] .cm-route {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.cw.cw-v4 [data-chapter="guias"] .cm-route > span,
.cw.cw-v4 [data-chapter="guias"] .cm-route > i {
  display: grid;
  place-items: center;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d9cce4;
  transition: background 250ms, transform 250ms;
}

.cw.cw-v4 [data-chapter="guias"] .cm-route > .is-done { background: #599f7a; }
.cw.cw-v4 [data-chapter="guias"] .cm-route > [aria-current],
.cw.cw-v4 [data-chapter="guias"] .cm-route > .is-current { background: var(--cm-purple); transform: scale(1.25); }

.cw.cw-v4 [data-chapter="guias"] .cm-mission.cw-card {
  position: relative;
  isolation: isolate;
  margin: 0 0 16px;
  padding: 28px;
  border: 1px solid #d4b6f5;
  border-top: 5px solid #8b35ed;
  border-radius: 26px;
  background: linear-gradient(145deg, #fff, #fffdfa);
  box-shadow: 0 12px 36px #7627e817, 0 2px 4px #7627e808;
  overflow-wrap: anywhere;
}

.cw.cw-v4 [data-chapter="guias"].is-entering .cm-mission {
  animation: cm-slide-in 300ms cubic-bezier(.2, .7, .2, 1) both;
}

.cw.cw-v4 [data-chapter="guias"].is-entering .cm-journey[data-direction="back"] .cm-mission {
  animation-name: cm-slide-back;
}

.cw.cw-v4 [data-chapter="guias"] .cm-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  flex-wrap: wrap;
  color: var(--cm-muted);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.4;
}

.cw.cw-v4 [data-chapter="guias"] .cm-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  color: #623b00;
  background: #ffd33d;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
}

.cw.cw-v4 [data-chapter="guias"] .cm-badge svg { width: 14px; height: 14px; flex-shrink: 0; }
.cw.cw-v4 [data-chapter="guias"] .cm-art {
  display: block;
  width: 112px;
  height: 100px;
  max-width: 100%;
  margin: 20px auto 14px;
  filter: drop-shadow(0 7px 5px #69458012);
  transform-origin: 50% 75%;
}

.cw.cw-v4 [data-chapter="guias"].is-entering .cm-art { animation: cm-art-in 380ms cubic-bezier(.22, .9, .3, 1.14) both; }
.cw.cw-v4 [data-chapter="guias"] .cm-mission h2 {
  max-width: 25ch;
  margin: 8px auto 14px;
  font-size: clamp(24px, 3.1vw, 31px);
  font-weight: 750;
  line-height: 1.17;
  letter-spacing: -.035em;
  color: var(--cm-ink);
  text-align: center;
  text-wrap: balance;
}

.cw.cw-v4 [data-chapter="guias"] .cm-mission h2:focus { outline: none; }
.cw.cw-v4 [data-chapter="guias"] .cm-intro {
  max-width: 52ch;
  margin: 0 auto 20px;
  color: #63566e;
  font-size: 16px;
  line-height: 1.65;
  text-align: center;
  text-wrap: pretty;
}

.cw.cw-v4 [data-chapter="guias"] .cm-phases {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0 0 21px;
  padding: 0;
  list-style: none;
  color: var(--cm-muted);
  font-size: 11px;
  line-height: 1.4;
}

.cw.cw-v4 [data-chapter="guias"] .cm-phases > * { display: inline-flex; align-items: center; gap: 5px; padding: 6px 9px; border-radius: 999px; }
.cw.cw-v4 [data-chapter="guias"] .cm-phases > * > span { font-size: 10px; font-weight: 750; }
.cw.cw-v4 [data-chapter="guias"] .cm-phases > [aria-current="step"] { background: #7627e8; color: #ffffff; font-weight: 750; }
.cw.cw-v4 [data-chapter="guias"] .cm-content { min-width: 0; font-size: 16px; line-height: 1.65; }
.cw.cw-v4 [data-chapter="guias"] .cm-content > :first-child { margin-top: 0; }
.cw.cw-v4 [data-chapter="guias"] .cm-content > :last-child { margin-bottom: 0; }
.cw.cw-v4 [data-chapter="guias"] .cm-instruction { margin: 0 0 14px; color: #51415e; font-size: 16px; font-weight: 650; line-height: 1.55; }

.cw.cw-v4 [data-chapter="guias"] .cm-source {
  margin-top: 20px;
  border: 1px solid #e8e0ec;
  border-radius: 15px;
  background: #fcfafe;
  overflow-wrap: anywhere;
}

.cw.cw-v4 [data-chapter="guias"] .cm-source > summary,
.cw.cw-v4 [data-chapter="guias"] .cm-source details > summary {
  cursor: pointer;
  padding: 13px 15px;
  min-height: 48px;
  color: #5e3c7c;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.cw.cw-v4 [data-chapter="guias"] .cm-source summary::marker { color: #8b68b0; font-size: 12px; }
.cw.cw-v4 [data-chapter="guias"] .cm-source[open] > summary { border-bottom: 1px solid #ebe4f0; }
.cw.cw-v4 [data-chapter="guias"] .cm-source .cw-guide-content {
  margin: 0;
  padding: 16px;
  color: #51445b;
  font-size: 16px;
  line-height: 1.75;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.cw.cw-v4 [data-chapter="guias"] .cm-source .cw-guide-content > :first-child { margin-top: 0; }
.cw.cw-v4 [data-chapter="guias"] .cm-source .cw-guide-content > :last-child { margin-bottom: 0; }
.cw.cw-v4 [data-chapter="guias"] .cm-source a { color: #643799; text-decoration: underline; text-underline-offset: 3px; }

.cw.cw-v4 [data-chapter="guias"] .cm-discover-list { display: grid; gap: 12px; }
.cw.cw-v4 [data-chapter="guias"] .cm-discover-list > div { min-width: 0; }
.cw.cw-v4 [data-chapter="guias"] .cm-discover { display: grid; gap: 9px; }
.cw.cw-v4 [data-chapter="guias"] .cm-discover button,
.cw.cw-v4 [data-chapter="guias"] button.cm-discover,
.cw.cw-v4 [data-chapter="guias"] .cm-options button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 58px;
  padding: 15px 17px;
  color: #481982;
  border: 1px solid #caa6fa;
  border-radius: 16px;
  background: #f4eaff;
  box-shadow: 0 3px 0 #e1c8ff;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.5;
  overflow-wrap: anywhere;
  transition: transform 220ms cubic-bezier(.22, .95, .35, 1.25), background 200ms, border-color 200ms, box-shadow 200ms;
}

.cw.cw-v4 [data-chapter="guias"] .cm-discover button svg,
.cw.cw-v4 [data-chapter="guias"] .cm-options button svg { flex-shrink: 0; width: 20px; height: 20px; }
.cw.cw-v4 [data-chapter="guias"] .cm-discover button[aria-expanded="true"] { background: #e9d5ff; border-color: #9a48f0; }
.cw.cw-v4 [data-chapter="guias"] button.cm-discover[aria-expanded="true"] { background: #e9d5ff; border-color: #9a48f0; }
.cw.cw-v4 [data-chapter="guias"] button.cm-discover > span:first-child { flex: 1; min-width: 0; }
.cw.cw-v4 [data-chapter="guias"] button.cm-discover > span:last-child { flex-shrink: 0; color: #7627e8; font-size: 20px; font-weight: 450; }
.cw.cw-v4 [data-chapter="guias"] .cm-discover-list .cm-revealed { margin: 8px 0 0; }
.cw.cw-v4 [data-chapter="guias"] .cm-revealed {
  margin: 0 0 7px;
  padding: 16px 18px;
  color: #51445c;
  border: 1px solid #ede4f0;
  border-radius: 14px;
  background: #fffdfa;
  font-size: 16px;
  line-height: 1.65;
  animation: cm-reveal-in 240ms ease both;
}

.cw.cw-v4 [data-chapter="guias"] .cm-revealed > :first-child { margin-top: 0; }
.cw.cw-v4 [data-chapter="guias"] .cm-revealed > :last-child { margin-bottom: 0; }
.cw.cw-v4 [data-chapter="guias"] .cm-checklist { display: grid; gap: 10px; padding: 0; margin: 0; border: 0; }
.cw.cw-v4 [data-chapter="guias"] .cm-checklist label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 60px;
  padding: 15px;
  border: 1px solid #e6deeb;
  border-radius: 15px;
  background: #fff;
  cursor: pointer;
  color: #51445c;
  font-size: 16px;
  line-height: 1.55;
  transition: background 220ms, border-color 220ms, transform 220ms;
}

.cw.cw-v4 [data-chapter="guias"] .cm-checklist input {
  appearance: auto;
  flex-shrink: 0;
  width: 21px;
  height: 21px;
  margin: 2px 0 0;
  accent-color: #118847;
  cursor: pointer;
}

.cw.cw-v4 [data-chapter="guias"] .cm-checklist label:has(input:checked) { border-color: #31bd6c; background: #dcfce7; color: #14532d; }
.cw.cw-v4 [data-chapter="guias"] .cm-checklist label > span { flex: 1; min-width: 0; }
.cw.cw-v4 [data-chapter="guias"] .cm-checklist label small { display: block; margin-top: 4px; font-size: 13px; color: var(--cm-muted); }
.cw.cw-v4 [data-chapter="guias"] .cm-options { display: grid; gap: 12px; }
.cw.cw-v4 [data-chapter="guias"] .cm-options button { background: #fff; justify-content: flex-start; }
.cw.cw-v4 [data-chapter="guias"] .cm-options button > span:first-child { display: grid; place-items: center; flex-shrink: 0; width: 28px; height: 28px; border: 1px solid #b989f8; border-radius: 9px; color: #7627e8; font-size: 12px; font-weight: 750; }
.cw.cw-v4 [data-chapter="guias"] .cm-options button[aria-pressed="true"] { border-color: #8b35ed; background: #edddff; box-shadow: 0 3px 0 #cfadfa; }
.cw.cw-v4 [data-chapter="guias"] .cm-options button[data-state="success"] { border-color: #23b65e; background: #dcfce7; color: #14532d; box-shadow: 0 3px 0 #b7efcb; }
.cw.cw-v4 [data-chapter="guias"] .cm-answer {
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid #34bb6c;
  border-radius: 14px;
  background: #dcfce7;
  color: #14532d;
  font-size: 15px;
  line-height: 1.55;
  animation: cm-reveal-in 240ms ease both;
}

.cw.cw-v4 [data-chapter="guias"] .cm-answer[data-state="retry"] { background: #fff0b3; color: #744700; border-color: #e9b722; }
.cw.cw-v4 [data-chapter="guias"] .cm-answer strong { display: block; margin-bottom: 4px; }
.cw.cw-v4 [data-chapter="guias"] .cm-confirm { position: relative; text-align: center; padding: 10px 0 5px; }
.cw.cw-v4 [data-chapter="guias"] .cm-check {
  display: block;
  width: 78px;
  height: 78px;
  margin: 2px auto 20px;
  color: var(--cm-green);
  border: 1px solid #118847;
  border-radius: 26px;
  background: #118847;
  padding: 19px;
  box-shadow: 0 7px 0 #0b6534;
  animation: cm-check-in 360ms cubic-bezier(.2, .8, .25, 1.15) both;
}

.cw.cw-v4 [data-chapter="guias"] .cm-check svg { display: block; width: 100%; height: 100%; }
.cw.cw-v4 [data-chapter="guias"] .cm-check path { stroke-dasharray: 40; stroke-dashoffset: 0; animation: cm-check-draw 350ms ease-out both; }
.cw.cw-v4 [data-chapter="guias"] .cm-confirm h3 { color: #12673b; font-size: 23px; line-height: 1.2; letter-spacing: -.02em; margin: 14px 0 10px; }
.cw.cw-v4 [data-chapter="guias"] .cm-confirm > strong { display: block; color: #12673b; font-size: 22px; line-height: 1.25; letter-spacing: -.02em; margin: 14px 0 10px; }
.cw.cw-v4 [data-chapter="guias"] .cm-confirm p { font-size: 16px; line-height: 1.65; color: #5c5067; margin: 10px auto; }
.cw.cw-v4 [data-chapter="guias"] .cm-reinforcement { padding: 17px; margin: 20px 0 5px; border: 1px solid #96e7b2; border-radius: 16px; background: #eaffd9; color: #14532d; font-size: 16px; line-height: 1.65; text-align: left; }
.cw.cw-v4 [data-chapter="guias"] .cm-reinforcement p { color: inherit; margin: 0; }
.cw.cw-v4 [data-chapter="guias"] .cm-confetti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; border-radius: inherit; }
.cw.cw-v4 [data-chapter="guias"] .cm-confetti i {
  position: absolute;
  top: 9%;
  left: calc(8% + var(--i, 0) * 7.5%);
  width: 6px;
  height: 10px;
  background: #f04cb0;
  border-radius: 2px;
  opacity: 0;
  animation: cm-confetti-fall 1000ms ease-out both;
}

.cw.cw-v4 [data-chapter="guias"] .cm-confetti i:nth-child(3n) { background: #16bf68; width: 7px; height: 7px; border-radius: 50%; }
.cw.cw-v4 [data-chapter="guias"] .cm-confetti i:nth-child(3n + 1) { background: #ffc928; }
.cw.cw-v4 [data-chapter="guias"] .cm-confetti i:nth-child(2n) { top: 3%; }
.cw.cw-v4 [data-chapter="guias"] .cm-summary { margin: 22px 0 0; text-align: left; }
.cw.cw-v4 [data-chapter="guias"] .cm-summary > details { border-top: 1px solid var(--cm-line); }
.cw.cw-v4 [data-chapter="guias"] .cm-summary > details > summary { cursor: pointer; padding: 15px 0; min-height: 50px; font-size: 15px; color: #4d3e5b; line-height: 1.5; font-weight: 650; }
.cw.cw-v4 [data-chapter="guias"] .cm-summary > details > summary > span { margin-left: 6px; color: #438260; }
.cw.cw-v4 [data-chapter="guias"] .cm-summary > details > div { font-size: 16px; color: #65586f; line-height: 1.65; padding: 0 0 15px; }
.cw.cw-v4 [data-chapter="guias"] .cm-status { color: var(--cm-muted); font-size: 13px; line-height: 1.5; margin: 14px 0 0; }
.cw.cw-v4 [data-chapter="guias"] .cm-checklist { margin-top: 14px; }
.cw.cw-v4 [data-chapter="guias"] .cm-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 15px; padding: 0; }
.cw.cw-v4 [data-chapter="guias"] .cm-links:empty { display: none; }
.cw.cw-v4 [data-chapter="guias"] .cm-links .cw-capsule { box-shadow: none; border-radius: 12px; }
.cw.cw-v4 [data-chapter="guias"] .cw-guide-map { padding: 10px 18px; border-radius: 19px; background: #ffffffb3; box-shadow: none; }
.cw.cw-v4 [data-chapter="guias"] .cw-guide-map > summary { min-height: 44px; color: #655276; font-size: 13px; }
.cw.cw-v4 [data-chapter="guias"] .cw-guide-map button { font-size: 14px; min-height: 60px; padding: 13px; transition: transform 220ms, background 220ms; }
.cw.cw-v4 [data-chapter="guias"] .cw-guide-map small { font-size: 11px; }
.cw.cw-v4 [data-chapter="guias"] .cw-guide-map button > span { min-width: 0; }
.cw.cw-v4 [data-chapter="guias"] .cw-guide-map button > svg { flex-shrink: 0; }
.cw.cw-v4 [data-chapter="guias"] .cm-finish {
  position: relative;
  isolation: isolate;
  padding: 30px 26px;
  border: 1px solid #e0e8df;
  border-radius: 26px;
  background: linear-gradient(155deg, #dcfce7, #fff 55%);
  box-shadow: 0 12px 36px #7627e817;
  overflow-wrap: anywhere;
}
.cw.cw-v4 [data-chapter="guias"] .cm-finish > h2 { margin: 15px auto; max-width: 25ch; font-size: clamp(25px, 3vw, 31px); line-height: 1.2; letter-spacing: -.035em; color: #324b3e; text-wrap: balance; }
.cw.cw-v4 [data-chapter="guias"] .cm-finish > h2:focus { outline: none; }
.cw.cw-v4 [data-chapter="guias"] .cm-finish > p { max-width: 48ch; margin: 0 auto 18px; font-size: 16px; line-height: 1.65; color: #65586f; }
.cw.cw-v4 [data-chapter="guias"] .cm-summary h3 { color: #4d3e5b; font-size: 15px; text-align: left; margin: 0 0 14px; }

.cw.cw-v4[data-active-chapter="guias"] .cw-footer {
  border-color: #e9e0ed;
  background: #fffdfa;
  box-shadow: 0 -5px 24px #54356e08;
}

.cw.cw-v4[data-active-chapter="guias"] .cw-footer-actions { max-width: 680px; margin-inline: auto; gap: 12px; }
.cw.cw-v4[data-active-chapter="guias"] .cw-footer .cw-save { max-width: 680px; margin-inline: auto; }
.cw.cw-v4[data-active-chapter="guias"] .cw-primary {
  min-height: 52px;
  border-radius: 15px;
  border: 1px solid #6a1dd8;
  color: #fff;
  background: #7627e8;
  box-shadow: 0 4px 0 #4b13a0;
  font-size: 15px !important;
  line-height: 1.35;
  transition: background 220ms, transform 220ms cubic-bezier(.22, .95, .35, 1.25), box-shadow 220ms;
}

.cw.cw-v4[data-active-chapter="guias"] .cw-primary:disabled { box-shadow: 0 3px 0 #c7bdd0; background: #e0d7e8; color: #776481; border-color: #d7ccdf; cursor: not-allowed; }
.cw.cw-v4[data-active-chapter="guias"] .cw-secondary { min-height: 52px; border-radius: 15px; font-size: 14px !important; }
.cw.cw-v4[data-active-chapter="guias"] .cw-guide-skip { min-height: 44px; font-size: 12px; margin: 5px auto -6px; }

.cw.cw-v4 [data-chapter="guias"] button:focus-visible,
.cw.cw-v4 [data-chapter="guias"] summary:focus-visible,
.cw.cw-v4 [data-chapter="guias"] a:focus-visible,
.cw.cw-v4 [data-chapter="guias"] input:focus-visible,
.cw.cw-v4[data-active-chapter="guias"] .cw-footer button:focus-visible { outline: 3px solid #7627e8; outline-offset: 4px; }

@media (hover: hover) {
  .cw.cw-v4 [data-chapter="guias"] .cm-discover button:hover,
  .cw.cw-v4 [data-chapter="guias"] button.cm-discover:hover,
  .cw.cw-v4 [data-chapter="guias"] .cm-options button:hover { border-color: #a65aef; background: #edddff; transform: translateY(-1px); }
  .cw.cw-v4 [data-chapter="guias"] .cm-checklist label:hover { border-color: #b49ac8; }
  .cw.cw-v4[data-active-chapter="guias"] .cw-primary:not(:disabled):hover { background: #651bd0; transform: translateY(-1px); }
}

.cw.cw-v4 [data-chapter="guias"] .cm-discover button:active,
.cw.cw-v4 [data-chapter="guias"] button.cm-discover:active,
.cw.cw-v4 [data-chapter="guias"] .cm-options button:active,
.cw.cw-v4 [data-chapter="guias"] .cw-guide-map button:active,
.cw.cw-v4 [data-chapter="guias"] .cm-checklist label:active { transform: translateY(2px) scale(.99); }
.cw.cw-v4[data-active-chapter="guias"] .cw-primary:not(:disabled):active { transform: translateY(3px) scale(.99); box-shadow: 0 1px 0 #4b13a0; }

@keyframes cm-slide-in { from { opacity: 0; transform: translate3d(20px, 5px, 0); } to { opacity: 1; transform: translate3d(0, 0, 0); } }
@keyframes cm-slide-back { from { opacity: 0; transform: translate3d(-20px, 5px, 0); } to { opacity: 1; transform: translate3d(0, 0, 0); } }
@keyframes cm-art-in { from { opacity: 0; transform: translateY(6px) scale(.91) rotate(-4deg); } to { opacity: 1; transform: translateY(0) scale(1) rotate(0); } }
@keyframes cm-reveal-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@keyframes cm-check-in { from { opacity: 0; transform: scale(.8) rotate(-6deg); } to { opacity: 1; transform: scale(1) rotate(0); } }
@keyframes cm-check-draw { from { stroke-dashoffset: 40; } to { stroke-dashoffset: 0; } }
@keyframes cm-progress-fill { from { width: var(--cm-progress-from, 0%); } to { width: var(--cm-progress-to, 0%); } }
@keyframes cm-confetti-fall {
  0% { opacity: 0; transform: translateY(-10px) rotate(0); }
  15% { opacity: .8; }
  100% { opacity: 0; transform: translateY(110px) rotate(calc(100deg + var(--i, 0) * 28deg)); }
}

@media (max-width: 650px) {
  .cw.cw-v4[data-active-chapter="guias"] .cw-main { padding: 10px 14px 14px; }
  .cw.cw-v4[data-active-chapter="guias"] .cw-dashboard-back { margin-bottom: 8px; }
  .cw.cw-v4 [data-chapter="guias"] .cm-progress { margin-bottom: 13px; font-size: 12px; }
  .cw.cw-v4 [data-chapter="guias"] .cm-mission.cw-card { padding: 21px 18px; border-radius: 23px; margin-bottom: 12px; }
  .cw.cw-v4 [data-chapter="guias"] .cm-meta { font-size: 10px; gap: 7px; }
  .cw.cw-v4 [data-chapter="guias"] .cm-badge { padding: 5px 8px; font-size: 10px; }
  .cw.cw-v4 [data-chapter="guias"] .cm-art { width: 92px; height: 82px; margin-top: 15px; margin-bottom: 10px; }
  .cw.cw-v4 [data-chapter="guias"] .cm-mission h2 { font-size: 25px; margin: 6px auto 11px; }
  .cw.cw-v4 [data-chapter="guias"] .cm-intro { margin-bottom: 17px; font-size: 16px; line-height: 1.6; }
  .cw.cw-v4 [data-chapter="guias"] .cm-phases { margin-bottom: 17px; gap: 2px; font-size: 10px; }
  .cw.cw-v4 [data-chapter="guias"] .cm-phases > * { padding: 5px 8px; }
  .cw.cw-v4 [data-chapter="guias"] .cm-source { margin-top: 17px; }
  .cw.cw-v4 [data-chapter="guias"] .cm-source .cw-guide-content { padding: 14px; font-size: 16px; }
  .cw.cw-v4 [data-chapter="guias"] .cm-discover button,
  .cw.cw-v4 [data-chapter="guias"] button.cm-discover,
  .cw.cw-v4 [data-chapter="guias"] .cm-options button { padding: 13px 14px; min-height: 56px; font-size: 16px; }
  .cw.cw-v4 [data-chapter="guias"] .cm-checklist label { padding: 13px; gap: 10px; font-size: 16px; }
  .cw.cw-v4 [data-chapter="guias"] .cm-check { width: 68px; height: 68px; padding: 17px; margin-bottom: 19px; border-radius: 23px; }
  .cw.cw-v4 [data-chapter="guias"] .cm-reinforcement { padding: 14px; }
  .cw.cw-v4 [data-chapter="guias"] .cm-finish { padding: 25px 19px; border-radius: 23px; }
  .cw.cw-v4 [data-chapter="guias"] .cw-guide-map { padding: 8px 14px; }
  .cw.cw-v4[data-active-chapter="guias"] .cw-footer { padding: 11px 14px calc(13px + env(safe-area-inset-bottom)); }
  .cw.cw-v4[data-active-chapter="guias"] .cw-footer-actions { gap: 10px; }
  .cw.cw-v4[data-active-chapter="guias"] .cw-secondary { padding-inline: 14px; min-width: 73px; }
  .cw.cw-v4[data-active-chapter="guias"] .cw-primary { font-size: 14px !important; padding: 12px; }
}

@media (max-width: 360px) {
  .cw.cw-v4[data-active-chapter="guias"] .cw-main { padding-inline: 10px; }
  .cw.cw-v4 [data-chapter="guias"] .cm-mission.cw-card { padding: 18px 14px; border-radius: 21px; }
  .cw.cw-v4 [data-chapter="guias"] .cm-mission h2 { font-size: 23px; }
  .cw.cw-v4 [data-chapter="guias"] .cm-art { width: 82px; height: 74px; }
  .cw.cw-v4 [data-chapter="guias"] .cm-phases > * { padding-inline: 6px; }
  .cw.cw-v4[data-active-chapter="guias"] .cw-footer { padding-inline: 10px; }
  .cw.cw-v4[data-active-chapter="guias"] .cw-footer-actions { gap: 8px; }
  .cw.cw-v4[data-active-chapter="guias"] .cw-secondary { padding-inline: 12px; min-width: 66px; font-size: 13px !important; }
  .cw.cw-v4[data-active-chapter="guias"] .cw-primary { font-size: 13px !important; gap: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  .cw.cw-v4[data-active-chapter="guias"] *,
  .cw.cw-v4[data-active-chapter="guias"] *::before,
  .cw.cw-v4[data-active-chapter="guias"] *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .cw.cw-v4 [data-chapter="guias"] .cm-confetti { display: none; }
  .cw.cw-v4 [data-chapter="guias"] button:active,
  .cw.cw-v4 [data-chapter="guias"] button:hover,
  .cw.cw-v4 [data-chapter="guias"] .cm-checklist label:active,
  .cw.cw-v4[data-active-chapter="guias"] .cw-primary:active,
  .cw.cw-v4[data-active-chapter="guias"] .cw-primary:hover { transform: none; }
}

.cw.cw-v4 [data-chapter="guias"] .cm-mission[data-phase="interact"] .cm-art { width: 66px; height: 59px; margin-block: 12px 8px; }

/* On phones, keep the journey itself above the fold; the chapter map remains
   one tap away and the source text can always expand naturally. */
@media (max-width: 650px) {
  .cw.cw-v4[data-active-chapter="guias"] .cw-mobile-progress { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 3px 16px; min-height: 44px; }
  .cw.cw-v4[data-active-chapter="guias"] .cw-mobile-progress .cw-segments { display: none; }
  .cw.cw-v4[data-active-chapter="guias"] .cw-mobile-progress > span { order: -1; }
  .cw.cw-v4[data-active-chapter="guias"] .cw-dashboard-back { min-height: 44px; padding: 5px 0; border: 0; background: transparent; box-shadow: none; margin-bottom: 2px; }
}
@media (max-width: 360px) {
  .cw.cw-v4 [data-chapter="guias"] .cm-progress > div:first-child > span:last-child { display: none; }
}
@media (max-width: 650px) and (max-height: 700px) {
  .cw.cw-v4 [data-chapter="guias"] .cm-art { float: right; width: 54px; height: 50px; margin: 8px 0 6px 10px; }
  .cw.cw-v4 [data-chapter="guias"] .cm-mission h2 { text-align: left; font-size: 22px; margin-top: 14px; min-height: 52px; }
  .cw.cw-v4 [data-chapter="guias"] .cm-content { clear: both; }
  .cw.cw-v4 [data-chapter="guias"] .cm-phases { margin-bottom: 6px; }
  .cw.cw-v4 [data-chapter="guias"] .cm-finish .cm-art { float: none; margin: 0 auto; }
}

/* Cor também acompanha a fase; texto e ícones continuam distinguindo os estados. */
.cw.cw-v4 [data-chapter="guias"] .cm-mission[data-phase="interact"] { border-top-color: #ffc928; }
.cw.cw-v4 [data-chapter="guias"] .cm-mission[data-phase="confirm"] { border-top-color: #16a853; }
.cw.cw-v4 [data-chapter="guias"] .cm-options button > span:first-child { background: #7627e8; color: #fff; border-color: #7627e8; }
.cw.cw-v4 [data-chapter="guias"] .cm-options button[data-state="success"] > span:first-child { background: #118847; border-color: #118847; }
.cw.cw-v4 [data-chapter="guias"] .cm-source > summary { color: #5819a3; background: #f1e4ff; border-radius: inherit; }
.cw.cw-v4 [data-chapter="guias"] .cm-finish { border-top: 5px solid #16a853; }
.cw.cw-v4[data-active-chapter="guias"] .cw-read-feedback.is-saved { background: #dcfce7; color: #14532d; border-color: #38bf70; }
