/* Módulo 5 — Diagnóstico e decisão */
.m5 {
  --m5-ink: #0f1f18;
  --m5-muted: #5a7268;
  --m5-line: rgba(15, 31, 24, 0.1);
  --m5-green: #1a6b4a;
  --m5-soft: #e8f5ee;
  --m5-gold: #b08a3c;
  --m5-panel: #1a6b4a;
  color: var(--m5-ink);
  display: grid;
  gap: 0;
}
.m5 * { box-sizing: border-box; }
.m5 .visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.m5 em { font-style: italic; }

.m5-progress {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  gap: 6px;
  padding: 10px 0 12px;
  background: linear-gradient(#fff 70%, rgba(255,255,255,0));
}
.m5-progress-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--m5-green);
}
.m5-progress-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(26, 107, 74, 0.12);
  overflow: hidden;
}
.m5-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--m5-green), #2f8f64);
  border-radius: inherit;
  transition: width 0.2s ease;
}

.m5-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 0;
  margin: 0 0 22px;
  border-radius: 20px;
  overflow: hidden;
  background: var(--m5-panel);
  color: #f3faf6;
  box-shadow: 0 16px 40px rgba(15, 31, 24, 0.14);
}
.m5-hero-media { min-height: 240px; background: #e8f5ee; }
.m5-hero-media img {
  width: 100%; height: 100%;
  max-height: 360px;
  object-fit: cover;
  display: block;
}
.m5-hero-body {
  padding: clamp(18px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
.m5-kicker {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9fd9b8;
}
.m5-hero h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #fff;
}
.m5-hero-lead {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.55;
  color: rgba(243,250,246,.9);
}
.m5-hero-note {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: rgba(243,250,246,.78);
}
.m5-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.m5-chip {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.14);
  font-size: 0.78rem;
  font-weight: 700;
}

.m5-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
  padding: 10px 0;
  position: sticky;
  top: 42px;
  z-index: 4;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(6px);
}
.m5-rail a {
  text-decoration: none;
  color: var(--m5-ink);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid var(--m5-line);
  background: #fff;
}
.m5-rail a:hover,
.m5-rail a.is-active {
  background: var(--m5-soft);
  border-color: rgba(26,107,74,.35);
  color: var(--m5-green);
}

.m5-section {
  margin: 0 0 28px;
  padding: 22px 0;
  border-top: 1px solid var(--m5-line);
}
.m5-section--tint {
  margin-left: -12px;
  margin-right: -12px;
  padding: 22px 12px;
  border-radius: 18px;
  border-top: 0;
  background: #f4fbf7;
}
.m5-section > .m5-kicker { color: var(--m5-green); display: block; margin-bottom: 6px; }
.m5-section h3 {
  margin: 0 0 12px;
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.m5-prose {
  max-width: 68ch;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--m5-ink);
}
.m5-prose p { margin: 0 0 1em; }
.m5-prose p:last-child { margin-bottom: 0; }

.m5-grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 18px;
  align-items: start;
}
.m5-objectives {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
  counter-reset: m5o;
}
.m5-objectives li {
  counter-increment: m5o;
  position: relative;
  display: block;
  padding: 12px 14px 12px 56px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--m5-line);
  line-height: 1.45;
}
.m5-objectives li::before {
  content: counter(m5o);
  position: absolute;
  left: 12px;
  top: 12px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--m5-green);
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
}

.m5-box {
  margin: 14px 0;
  padding: 14px 16px;
  border-radius: 14px;
  border-left: 4px solid var(--m5-green);
  background: var(--m5-soft);
}
.m5-box--warn { border-left-color: #c47b2b; background: #fff7ec; }
.m5-box--gold { border-left-color: var(--m5-gold); background: #fbf6ea; }
.m5-box strong { display: block; margin-bottom: 4px; font-size: 0.84rem; letter-spacing: 0.04em; text-transform: uppercase; }
.m5-box p { margin: 0; font-size: 0.95rem; line-height: 1.55; }

.m5-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 16px 0;
}
.m5-flow strong {
  display: inline-flex;
  padding: 9px 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--m5-line);
  font-size: 0.82rem;
}
.m5-flow .m5-arrow {
  color: var(--m5-green);
  font-weight: 800;
  border: 0;
  background: transparent;
  padding: 0 2px;
}

.m5-species {
  margin: 28px 0 8px;
  padding: 18px 18px 20px;
  border-radius: 18px;
  background: var(--m5-panel);
  color: #f3faf6;
}
.m5-species .m5-kicker { color: #9fd9b8; }
.m5-species h3 { margin: 4px 0 6px; color: #fff; font-size: clamp(1.35rem, 2.6vw, 1.8rem); }
.m5-species p { margin: 0; color: rgba(243,250,246,.82); line-height: 1.5; }

.m5-hotspot {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(220px, 0.9fr);
  gap: 14px;
  margin: 16px 0;
  align-items: stretch;
}
.m5-hotspot-stage {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--m5-line);
  background: var(--m5-soft);
  min-height: 240px;
}
.m5-hotspot-stage img {
  width: 100%;
  height: 100%;
  max-height: 340px;
  object-fit: contain;
  display: block;
  background: var(--m5-soft);
}
.m5-hotspot-btn {
  position: absolute;
  transform: translate(-50%, -50%);
  min-width: 30px;
  min-height: 30px;
  border-radius: 999px;
  border: 2px solid #fff;
  background: var(--m5-green);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
}
.m5-hotspot-btn[aria-pressed="true"] {
  background: var(--m5-gold);
  color: #1a1408;
}
.m5-hotspot-panel {
  padding: 16px 16px 18px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--m5-line);
}
.m5-hotspot-panel .m5-hint {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--m5-green);
}
.m5-hotspot-panel h4 { margin: 0 0 8px; font-size: 1.1rem; }
.m5-hotspot-panel p { margin: 0; color: var(--m5-muted); line-height: 1.55; font-size: 0.95rem; }

.m5-ph {
  display: grid;
  place-items: center;
  min-height: 180px;
  padding: 18px;
  border-radius: 14px;
  border: 1px dashed rgba(26,107,74,.35);
  background: #f4fbf7;
  color: var(--m5-muted);
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.45;
}
.m5-ph small { display: block; margin-top: 6px; opacity: 0.75; font-size: 0.75rem; }

.m5-figure { margin: 14px 0; }
.m5-figure img {
  width: 100%;
  max-height: 300px;
  object-fit: contain;
  display: block;
  border-radius: 14px;
  border: 1px solid var(--m5-line);
  background: var(--m5-soft);
}
.m5-figure figcaption {
  margin-top: 8px;
  font-size: 0.86rem;
  color: var(--m5-muted);
  line-height: 1.45;
}

.m5-zoom-frame {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: var(--m5-soft);
}
.m5-zoom-frame img {
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  display: block;
  border: 0;
  border-radius: 14px;
  cursor: zoom-in;
}
.m5-figure.is-zoomable,
.m5 figure.is-zoomable {
  cursor: zoom-in;
}
.m5-zoom-label {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #143d2c;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(15, 31, 24, 0.12);
  box-shadow: 0 4px 12px rgba(8, 14, 11, 0.12);
  pointer-events: none;
}

.m5-dim {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}
.m5-dim article {
  padding: 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--m5-line);
}
.m5-dim strong { display: block; margin-bottom: 4px; }

.m5-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 16px 0;
}
.m5-compare article {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--m5-line);
  background: #fff;
}
.m5-compare--sit { border-top: 3px solid var(--m5-green); }
.m5-compare--rhy { border-top: 3px solid var(--m5-gold); }
.m5-compare h4 { margin: 0 0 6px; font-size: 1rem; }
.m5-compare p { margin: 0; color: var(--m5-muted); font-size: 0.92rem; line-height: 1.45; }

.m5-table-wrap {
  overflow-x: auto;
  margin: 16px 0;
  border-radius: 14px;
  border: 1px solid var(--m5-line);
  background: #fff;
}
.m5-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
  font-size: 0.9rem;
}
.m5-table th,
.m5-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--m5-line);
  vertical-align: top;
  line-height: 1.45;
}
.m5-table th {
  background: var(--m5-soft);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.m5-table tr:last-child td { border-bottom: 0; }

.m5-acc { display: grid; gap: 8px; margin: 14px 0; }
.m5-acc details {
  border-radius: 14px;
  border: 1px solid var(--m5-line);
  background: #fff;
  padding: 0 14px;
}
.m5-acc summary {
  cursor: pointer;
  padding: 14px 0;
  font-weight: 750;
  list-style: none;
}
.m5-acc summary::-webkit-details-marker { display: none; }
.m5-acc summary::after {
  content: "+";
  float: right;
  color: var(--m5-green);
  font-weight: 800;
}
.m5-acc details[open] summary::after { content: "–"; }
.m5-acc details p {
  margin: 0 0 14px;
  color: var(--m5-muted);
  line-height: 1.55;
  font-size: 0.94rem;
}

.m5-formula {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 16px 0;
  padding: 14px;
  border-radius: 16px;
  background: var(--m5-soft);
}
.m5-formula span {
  display: inline-flex;
  padding: 8px 11px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--m5-line);
  font-size: 0.82rem;
  font-weight: 700;
}
.m5-formula .m5-op { border: 0; background: transparent; color: var(--m5-green); font-size: 1.1rem; }

.m5-quizlike {
  list-style: none;
  margin: 14px 0;
  padding: 0;
  display: grid;
  gap: 10px;
  counter-reset: m5q;
}
.m5-quizlike li {
  counter-increment: m5q;
  padding: 12px 14px 12px 48px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--m5-line);
  position: relative;
  line-height: 1.45;
}
.m5-quizlike li::before {
  content: counter(m5q);
  position: absolute;
  left: 12px; top: 12px;
  width: 26px; height: 26px;
  border-radius: 8px;
  display: grid; place-items: center;
  background: var(--m5-soft);
  color: var(--m5-green);
  font-weight: 800;
  font-size: 0.8rem;
}

.m5-cards-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}
.m5-cards-4 article {
  padding: 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--m5-line);
}
.m5-cards-4 strong { display: block; margin-bottom: 4px; }
.m5-cards-4 p { margin: 0; font-size: 0.88rem; color: var(--m5-muted); line-height: 1.45; }

.m5-review {
  display: grid;
  gap: 10px;
  margin: 14px 0;
}
.m5-review div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--m5-line);
}
.m5-review strong { color: var(--m5-green); font-size: 0.92rem; }

.m5-map {
  margin: 14px 0;
  padding: 16px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--m5-line);
  font-size: 0.92rem;
  line-height: 1.55;
}
.m5-map ul { margin: 6px 0 6px 1.1rem; padding: 0; color: var(--m5-muted); }
.m5-map > strong { color: var(--m5-green); }

.m5-next {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--m5-soft);
  border: 1px solid rgba(26,107,74,.18);
}
.m5-next p { margin: 0 0 12px; line-height: 1.55; }
.m5-cta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.m5-cta-note { font-size: 0.88rem; color: var(--m5-muted); }

.m5-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
}
.m5-gallery figure {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--m5-line);
  background: #fff;
}
.m5-gallery img,
.m5-gallery .m5-ph {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: contain;
  background: var(--m5-soft);
  max-height: 220px;
}
.m5-gallery figcaption {
  padding: 10px 12px;
  font-size: 0.82rem;
  color: var(--m5-muted);
  line-height: 1.4;
}

.m5-reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .45s ease, transform .45s ease;
}
.m5-reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .m5-reveal { opacity: 1; transform: none; transition: none; }
  .m5-progress-bar { transition: none; }
}

@media (max-width: 960px) {
  .m5-hero,
  .m5-grid-2,
  .m5-hotspot,
  .m5-compare,
  .m5-cards-4,
  .m5-dim,
  .m5-gallery { grid-template-columns: 1fr 1fr; }
  .m5-hero { grid-template-columns: 1fr; }
  .m5-hotspot { grid-template-columns: 1fr; }
  .m5-cards-4 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .m5-rail { position: static; }
  .m5-progress { position: static; }
  .m5-grid-2,
  .m5-compare,
  .m5-cards-4,
  .m5-dim,
  .m5-gallery { grid-template-columns: 1fr; }
  .m5-hotspot-btn {
    position: static;
    transform: none;
    margin: 4px;
  }
  .m5-hotspot-stage {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 4px;
    padding-bottom: 8px;
  }
  .m5-hotspot-stage img {
    width: 100%;
    order: -1;
  }
}

/* Quatro espécies + chave didática */
.m5-four {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}
.m5-four figure {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--m5-line);
  background: #fff;
}
.m5-four img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: var(--m5-soft);
  max-height: 160px;
}
.m5-four figcaption {
  padding: 10px;
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--m5-muted);
}
.m5-four figcaption strong { color: var(--m5-ink); display: block; margin-bottom: 2px; }

.m5-key {
  margin: 16px 0;
  padding: 16px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--m5-line);
}
.m5-key-step { display: none; }
.m5-key-step.is-on { display: grid; gap: 10px; }
.m5-key-q { margin: 0; font-size: 1.05rem; font-weight: 750; }
.m5-key-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.m5-key-opts button {
  font: inherit; font-weight: 700; font-size: 0.88rem;
  padding: 10px 14px; border-radius: 12px;
  border: 1px solid var(--m5-line); background: var(--m5-soft);
  color: var(--m5-ink); cursor: pointer;
}
.m5-key-opts button:hover, .m5-key-opts button:focus-visible {
  border-color: var(--m5-green); outline: none;
}
.m5-key-result {
  margin-top: 4px; padding: 12px 14px; border-radius: 12px;
  background: var(--m5-soft); border-left: 4px solid var(--m5-green);
  font-size: 0.95rem; line-height: 1.5;
}
.m5-key-note { margin-top: 12px; font-size: 0.86rem; color: var(--m5-muted); line-height: 1.45; }

.m5-dual {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0;
}
.m5-dual article {
  padding: 16px; border-radius: 14px; background: #fff; border: 1px solid var(--m5-line);
}
.m5-dual--pri { border-top: 3px solid var(--m5-green); }
.m5-dual--sec { border-top: 3px solid var(--m5-gold); }
.m5-dual h4 { margin: 0 0 8px; }
.m5-dual ul { margin: 8px 0 0; padding-left: 1.1rem; color: var(--m5-muted); line-height: 1.5; }

@media (max-width: 960px) { .m5-four { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .m5-four, .m5-dual { grid-template-columns: 1fr; } }

.m5-unit {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.85fr);
  gap: 14px;
  margin: 8px 0 18px;
  align-items: stretch;
}

.m5-unit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.m5-unit-card {
  display: grid;
  gap: 4px;
  text-align: left;
  padding: 14px 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--m5-line);
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  font: inherit;
  color: inherit;
}

.m5-unit-card:hover,
.m5-unit-card:focus-visible {
  border-color: rgba(26, 107, 74, 0.45);
  box-shadow: 0 10px 28px rgba(15, 31, 24, 0.08);
  outline: none;
}

.m5-unit-card[aria-pressed="true"] {
  border-color: var(--m5-green);
  box-shadow: 0 0 0 2px rgba(26, 107, 74, 0.18);
  background: linear-gradient(165deg, #fff 0%, #eef8f2 100%);
}

.m5-unit-num {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--m5-green);
}

.m5-unit-card strong {
  font-size: 0.98rem;
  line-height: 1.25;
}

.m5-unit-card > span:last-child {
  font-size: 0.8rem;
  color: var(--m5-muted);
  line-height: 1.35;
}

.m5-unit-panel {
  padding: 18px 18px 20px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--m5-line);
  box-shadow: 0 10px 28px rgba(15, 31, 24, 0.05);
}

.m5-unit-hint {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--m5-green);
}

.m5-unit-panel h4 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  color: var(--m5-ink);
}

.m5-unit-panel p[data-m5-spot-out] {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--m5-muted);
}



/* —— Módulo 4: componentes próprios —— */
.m5-hero--cover {
  grid-template-columns: 1fr;
}
.m5-hero--cover .m5-hero-media { min-height: 0; }
.m5-hero--cover .m5-hero-media img {
  max-height: min(42vh, 420px);
  object-fit: cover;
  object-position: center;
}
.m5-cover {
  margin: 0;
  position: relative;
  background: var(--m5-soft);
}
.m5-cover img {
  width: 100%;
  display: block;
  max-height: min(42vh, 420px);
  object-fit: cover;
}
.m5-hero--cover .m5-hero-body {
  background: linear-gradient(180deg, #0f3d2c 0%, #1a6b4a 100%);
}

.m5-nc {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}
.m5-nc-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto minmax(0,1.2fr);
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--m5-line);
  background: #fff;
}
.m5-nc-row strong { font-size: 0.92rem; }
.m5-nc-neq {
  font-weight: 800;
  color: var(--m5-gold);
  font-size: 1.1rem;
}
.m5-nc-row span:last-child { color: var(--m5-muted); font-size: 0.9rem; }

.m5-prove {
  margin: 18px 0;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--m5-line);
  background: #fff;
}
.m5-prove-q {
  margin: 0 0 10px;
  font-size: 1.02rem;
  font-weight: 700;
}
.m5-prove-opts {
  display: grid;
  gap: 8px;
}
.m5-prove-opts button {
  text-align: left;
  padding: 11px 13px;
  border-radius: 12px;
  border: 1px solid var(--m5-line);
  background: #f7faf8;
  cursor: pointer;
  font: inherit;
  line-height: 1.4;
}
.m5-prove-opts button:hover { border-color: rgba(26,107,74,.4); }
.m5-prove-opts button.is-correct {
  background: var(--m5-soft);
  border-color: var(--m5-green);
  color: var(--m5-green);
  font-weight: 700;
}
.m5-prove-opts button.is-wrong {
  background: #fceeed;
  border-color: #c45c3a;
}
.m5-prove-opts button:disabled { cursor: default; opacity: 0.95; }
.m5-prove-fb {
  margin-top: 10px;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--m5-muted);
  min-height: 1.2em;
}

.m5-matrix {
  margin: 16px 0;
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid var(--m5-line);
}
.m5-matrix table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
  font-size: 0.9rem;
}
.m5-matrix th, .m5-matrix td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--m5-line);
  text-align: left;
}
.m5-matrix th { background: var(--m5-soft); color: var(--m5-green); font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; }
.m5-matrix td:not(:first-child) { text-align: center; }
.m5-matrix input[type="radio"] { width: 16px; height: 16px; accent-color: var(--m5-green); }

.m5-table-wrap { overflow-x: auto; margin: 16px 0; border-radius: 14px; border: 1px solid var(--m5-line); }
.m5-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-size: 0.9rem;
}
.m5-table th, .m5-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--m5-line);
  vertical-align: top;
  line-height: 1.45;
}
.m5-table th { background: #1a6b4a; color: #f3faf6; font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; text-align: left; }
.m5-table tr:nth-child(even) td { background: #f7faf8; }

.m5-scale {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 16px 0;
}
.m5-scale span {
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--m5-line);
  font-size: 0.82rem;
  font-weight: 700;
}
.m5-scale .m5-arrow { color: var(--m5-gold); border: 0; background: transparent; font-weight: 800; }

.m5-checklist {
  list-style: none;
  margin: 14px 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
}
.m5-checklist li {
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--m5-soft);
  border: 1px solid rgba(26,107,74,.18);
  font-size: 0.88rem;
  font-weight: 700;
}

.m5-accord details {
  margin: 8px 0;
  border-radius: 12px;
  border: 1px solid var(--m5-line);
  background: #fff;
  overflow: hidden;
}
.m5-accord summary {
  cursor: pointer;
  padding: 12px 14px;
  font-weight: 700;
  list-style: none;
}
.m5-accord summary::-webkit-details-marker { display: none; }
.m5-accord details[open] summary { background: var(--m5-soft); color: var(--m5-green); }
.m5-accord details p { margin: 0; padding: 0 14px 14px; line-height: 1.55; color: var(--m5-muted); }

.m5-principle {
  margin: 18px 0;
  padding: 18px 20px;
  border-radius: 16px;
  background: linear-gradient(135deg, #0f3d2c, #1a6b4a);
  color: #f3faf6;
}
.m5-principle strong { display: block; color: #9fd9b8; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 8px; }
.m5-principle p { margin: 0; font-size: 1.05rem; line-height: 1.55; }

.m5-steps {
  counter-reset: m5s;
  list-style: none;
  margin: 14px 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.m5-steps li {
  counter-increment: m5s;
  padding: 12px 14px 12px 52px;
  position: relative;
  border-radius: 12px;
  border: 1px solid var(--m5-line);
  background: #fff;
  line-height: 1.45;
}
.m5-steps li::before {
  content: counter(m5s);
  position: absolute;
  left: 12px; top: 10px;
  width: 28px; height: 28px;
  border-radius: 8px;
  display: grid; place-items: center;
  background: var(--m5-gold);
  color: #1a1408;
  font-weight: 800;
  font-size: 0.85rem;
}

.m5-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 10px;
  margin: 14px 0;
}
.m5-gallery figure {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--m5-line);
  background: var(--m5-soft);
}
.m5-gallery img { width: 100%; height: 120px; object-fit: cover; display: block; background: var(--m5-soft); }
.m5-gallery figcaption {
  padding: 8px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  background: #fff;
  color: var(--m5-ink);
}

.m5-pending {
  display: grid;
  place-items: center;
  min-height: 200px;
  padding: 24px;
  border-radius: 16px;
  background: var(--m5-soft);
  color: var(--m5-green);
  text-align: center;
  border: 1px dashed rgba(26,107,74,.35);
}
.m5-pending strong { display: block; color: var(--m5-ink); font-size: 1.05rem; margin: 8px 0; }
.m5-pending span { color: var(--m5-muted); font-size: 0.9rem; }

@media (max-width: 900px) {
  .m5-nc-row { grid-template-columns: 1fr; }
  .m5-nc-neq { justify-self: start; }
  .m5-gallery { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 720px) {
  .m5-hotspot { grid-template-columns: 1fr; }
  .m5-hotspot-btn { position: static; transform: none; margin: 4px; }
  .m5-hotspot-stage { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 4px; padding-bottom: 8px; }
  .m5-hotspot-stage img { width: 100%; max-height: 220px; }
}
@media (prefers-reduced-motion: reduce) {
  .m5-reveal, .m5-progress-bar { transition: none !important; }
}


/* Painel de diagnóstico M5 */
.m5-panel {
  margin: 16px 0;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--m5-line);
  background: #fff;
  display: grid;
  gap: 12px;
}
.m5-panel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.m5-panel label {
  display: grid;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--m5-green);
}
.m5-panel select {
  font: inherit;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--m5-line);
  background: var(--m5-soft);
  color: var(--m5-ink);
}
.m5-panel-out {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--m5-soft);
  border-left: 4px solid var(--m5-green);
  color: var(--m5-muted);
  line-height: 1.5;
  font-size: 0.95rem;
}
.m5-panel-out.is-ready {
  border-left-color: var(--m5-gold);
  color: var(--m5-ink);
}
.m5-micro {
  margin: 16px 0;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--m5-line);
  background: #fff;
}
.m5-micro h4 { margin: 0 0 8px; }
.m5-think {
  margin: 14px 0;
  border-radius: 14px;
  border: 1px solid var(--m5-line);
  background: #fff;
  overflow: hidden;
}
.m5-think summary {
  cursor: pointer;
  padding: 14px 16px;
  font-weight: 750;
  list-style: none;
  background: linear-gradient(90deg, rgba(26,107,74,.08), transparent);
}
.m5-think summary::-webkit-details-marker { display: none; }
.m5-think[open] summary { color: var(--m5-green); }
.m5-think p { margin: 0; padding: 0 16px 14px; color: var(--m5-muted); line-height: 1.55; }
.m5-unit-map {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 10px;
  margin: 14px 0;
}
@media (max-width: 720px) {
  .m5-unit-map { grid-template-columns: 1fr 1fr; }
}
