html.visual-v5 {
  --v5-ink: #171820;
  --v5-ink-2: #262934;
  --v5-paper: #fffdf8;
  --v5-canvas: #f5f5f2;
  --v5-line: #dde0e8;
  --v5-muted: #636978;
  --v5-soft: #6f7484;
  --v5-indigo: #5c69d8;
  --v5-indigo-dark: #3e49b8;
  --v5-indigo-soft: #eceefe;
  --v5-coral: #f45d37;
  --v5-coral-dark: #c84225;
  --v5-coral-soft: #ffe8df;
  --v5-coral-2: #f77959;
  --v5-coral-3: #fa987f;
  --v5-coral-4: #fdc1b1;
  --v5-green: #167a52;
  --v5-green-soft: #e2f4e9;
  --v5-font: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --v5-display: "Inter Display", "Inter", ui-sans-serif, system-ui, sans-serif;
}
html.visual-v5 body,
html.visual-v5 .app-shell,
html.visual-v5 .app-shell > .app-main { color: var(--v5-ink); background: var(--v5-canvas); font-family: var(--v5-font); font-size: 15px; line-height: normal; }
html.visual-v5 .app-shell > .app-main { padding: 0; }
.v5-esq-loader { display: none; }
html.visual-v5 .app-loading { min-height: 100vh; padding: 0; background: var(--v5-canvas); }
html.visual-v5 .app-esq--legacy,
html.visual-v5 .app-esq-txt--legacy { display: none; }
html.visual-v5 .v5-esq-loader { display: grid; min-height: 100vh; grid-template-columns: 190px minmax(0,1fr); color: var(--v5-ink); font-family: var(--v5-font); }
html.visual-v5 .v5-esq-loader,
html.visual-v5 .v5-esq-loader * { box-sizing: border-box; }

/* O carregamento V5 usa a própria anatomia da tela final. O coral já ocupa a
   superfície principal enquanto apenas o conteúdo pulsa em baixo contraste. */
.v5-esq-sidebar { display: flex; min-height: 100vh; padding: 25px 18px 23px; flex-direction: column; border-right: 1px solid var(--v5-line); background: #fafaf7; }
.v5-esq-logo { display: flex; min-height: 44px; margin: 0 8px 38px; align-items: center; gap: 10px; }
.v5-esq-logo i { position: relative; width: 18px; height: 18px; flex: none; border: 1.5px solid rgba(92,105,216,.52); transform: rotate(45deg); }
.v5-esq-logo i::after { content: ""; position: absolute; inset: 4px; border: 1px solid rgba(92,105,216,.38); }
.v5-esq-logo span { width: 70px; height: 12px; border-radius: 4px; }
.v5-esq-nav-label { width: 58px; height: 7px; margin: 0 11px 10px; border-radius: 4px; }
.v5-esq-nav { display: grid; gap: 5px; }
.v5-esq-nav i { width: 100%; height: 44px; border-radius: 11px; }
.v5-esq-nav i:first-child { background: #eceefe; }
.v5-esq-deadline { margin-top: auto; padding: 17px 10px 5px; border-top: 1px solid var(--v5-line); }
.v5-esq-deadline span,
.v5-esq-deadline b,
.v5-esq-deadline small { display: block; }
.v5-esq-deadline span { width: 66px; height: 7px; }
.v5-esq-deadline b { width: 16px; height: 16px; margin-top: 7px; }
.v5-esq-deadline small { width: 92px; height: 7px; margin-top: 5px; }
.v5-esq-main { min-width: 0; }
.v5-esq-topbar { display: flex; min-height: 68px; padding: 0 34px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--v5-line); background: rgba(255,253,248,.68); }
.v5-esq-topbar > b { width: 34px; height: 10px; }
.v5-esq-topbar > div { display: flex; align-items: center; gap: 17px; }
.v5-esq-topbar > div i { width: 38px; height: 10px; }
.v5-esq-topbar > div span { width: 44px; height: 44px; border: 1px solid #cfd3e6; border-radius: 50%; background: var(--v5-indigo-soft); }
.v5-esq-content { width: min(980px,100%); margin: 0 auto; padding: 30px 34px 0; }
.v5-esq-greeting { display: flex; min-height: 72px; margin-bottom: 20px; align-items: end; justify-content: space-between; gap: 22px; }
.v5-esq-greeting > div i,
.v5-esq-greeting > div b { display: block; }
.v5-esq-greeting > div i { width: 136px; height: 8px; margin-bottom: 11px; }
.v5-esq-greeting > div b { width: 238px; height: 29px; }
.v5-esq-greeting > span { width: 106px; height: 9px; margin-bottom: 4px; }
.v5-esq-session { display: grid; grid-template-columns: minmax(290px,.85fr) minmax(410px,1.15fr); overflow: hidden; border: 1px solid rgba(23,24,32,.1); border-radius: 20px; background: var(--v5-paper); box-shadow: 0 18px 42px rgba(23,24,32,.08); }
.v5-esq-intro { position: relative; display: flex; min-height: 420px; padding: 30px 28px 24px 51px; flex-direction: column; overflow: hidden; background: var(--v5-coral); }
.v5-esq-intro::after { content: ""; position: absolute; top: -76px; right: -66px; width: 170px; height: 170px; border: 1px solid rgba(67,22,12,.18); border-radius: 50%; }
.v5-esq-margin { position: absolute; top: 31px; bottom: 30px; left: 18px; width: 7px; border-top: 36px solid rgba(37,18,14,.28); border-bottom: 58px solid rgba(37,18,14,.2); }
.v5-esq-margin::after { content: ""; position: absolute; top: 43px; bottom: 65px; left: 3px; width: 1px; background: rgba(37,18,14,.26); }
.v5-esq-intro-copy { position: relative; z-index: 1; display: flex; flex: 1; flex-direction: column; }
.v5-esq-kicker,
.v5-esq-focus,
.v5-esq-headline,
.v5-esq-description { display: block; }
.v5-esq-kicker { width: 170px; height: 9px; }
.v5-esq-focus { width: 92px; height: 9px; margin-top: 36px; }
.v5-esq-headline { width: min(350px,94%); height: 86px; margin-top: 15px; border-radius: 7px; }
.v5-esq-description { width: min(348px,92%); height: 9px; margin-top: 15px; }
.v5-esq-description--short { width: min(270px,72%); margin-top: 8px; }
.v5-esq-evidence { margin-top: auto; padding-top: 24px; }
.v5-esq-evidence i,
.v5-esq-evidence b { display: block; }
.v5-esq-evidence i { width: 74px; height: 7px; }
.v5-esq-evidence b { width: min(336px,90%); height: 22px; margin-top: 8px; }
.v5-esq-meter { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4,1fr); gap: 5px; margin-top: 20px; }
.v5-esq-meter i { height: 4px; background: rgba(37,18,14,.19); }
.v5-esq-meter i:first-child { background: rgba(37,18,14,.72); }
.v5-esq-plan { min-width: 0; padding: 25px 24px 22px; }
.v5-esq-plan-head { display: flex; min-height: 42px; margin-bottom: 7px; align-items: start; justify-content: space-between; gap: 16px; }
.v5-esq-plan-head div i,
.v5-esq-plan-head div b { display: block; }
.v5-esq-plan-head div i { width: 62px; height: 7px; }
.v5-esq-plan-head div b { width: 142px; height: 13px; margin-top: 8px; }
.v5-esq-plan-head > span { width: 34px; height: 9px; }
.v5-esq-steps > div { display: grid; min-height: 61px; padding: 7px; grid-template-columns: 33px minmax(0,1fr) auto; align-items: center; gap: 11px; border-top: 1px solid var(--v5-line); }
.v5-esq-steps > div:first-child { width: calc(100% + 10px); margin-inline: -5px; padding-inline: 12px; border-color: transparent; border-radius: 12px; background: var(--v5-coral-soft); }
.v5-esq-steps > div > i { width: 29px; height: 29px; border: 1px solid #cfd3de; border-radius: 50%; background: transparent; }
.v5-esq-steps > div > span b,
.v5-esq-steps > div > span small { display: block; }
.v5-esq-steps > div > span b { width: min(146px,80%); height: 9px; }
.v5-esq-steps > div > span small { width: min(112px,65%); height: 7px; margin-top: 6px; }
.v5-esq-steps > div > em { width: 25px; height: 7px; }
.v5-esq-primary { display: flex; width: 204px; min-height: 48px; margin-top: 15px; padding: 0 16px 0 18px; align-items: center; justify-content: space-between; border: 1px solid var(--v5-ink); border-radius: 12px; background: var(--v5-ink); }
.v5-esq-primary b { width: 106px; height: 8px; background: rgba(255,255,255,.72); }
.v5-esq-primary i { width: 14px; height: 1px; background: rgba(255,255,255,.65); }
.v5-esq-save { display: block; width: 198px; height: 7px; margin: 11px 0 0; }
.v5-esq-context { display: grid; grid-template-columns: repeat(3,1fr); margin-top: 20px; border-top: 1px solid var(--v5-line); border-bottom: 1px solid var(--v5-line); }
.v5-esq-context > div { display: flex; min-width: 0; padding: 17px 17px 17px 0; gap: 11px; }
.v5-esq-context > div + div { padding-left: 17px; border-left: 1px solid var(--v5-line); }
.v5-esq-context > div > i { width: 17px; height: 17px; flex: none; border: 1px solid rgba(92,105,216,.35); border-radius: 50%; background: transparent; }
.v5-esq-context > div > span { display: block; width: 100%; }
.v5-esq-context b,
.v5-esq-context em,
.v5-esq-context small { display: block; }
.v5-esq-context b { width: 48px; height: 7px; }
.v5-esq-context em { width: min(105px,74%); height: 8px; margin-top: 7px; }
.v5-esq-context small { width: min(128px,88%); height: 7px; margin-top: 6px; }
.v5-esq-why { display: flex; min-height: 50px; padding: 0 2px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--v5-line); }
.v5-esq-why b { width: 220px; height: 8px; }
.v5-esq-why i { width: 10px; height: 10px; border-right: 1px solid #a4a8b3; border-bottom: 1px solid #a4a8b3; transform: rotate(45deg); }
.v5-esq-bottom { display: none; }

.v5-esq-logo span,
.v5-esq-nav-label,
.v5-esq-nav i:not(:first-child),
.v5-esq-deadline span,
.v5-esq-deadline b,
.v5-esq-deadline small,
.v5-esq-topbar > b,
.v5-esq-topbar > div i,
.v5-esq-greeting i,
.v5-esq-greeting b,
.v5-esq-greeting > span,
.v5-esq-plan-head i,
.v5-esq-plan-head b,
.v5-esq-plan-head > span,
.v5-esq-steps span b,
.v5-esq-steps span small,
.v5-esq-steps em,
.v5-esq-save,
.v5-esq-context b,
.v5-esq-context em,
.v5-esq-context small,
.v5-esq-why b { border-radius: 4px; background: linear-gradient(90deg,#e7e7e2 25%,#dcdcd6 38%,#e7e7e2 64%); background-size: 400% 100%; animation: v5-esq-shimmer 1.8s ease-in-out infinite; }
.v5-esq-intro .v5-esq-kicker,
.v5-esq-intro .v5-esq-focus,
.v5-esq-intro .v5-esq-headline,
.v5-esq-intro .v5-esq-description,
.v5-esq-intro .v5-esq-evidence i,
.v5-esq-intro .v5-esq-evidence b { background: linear-gradient(90deg,rgba(37,18,14,.18) 25%,rgba(37,18,14,.32) 38%,rgba(37,18,14,.18) 64%); background-size: 400% 100%; animation: v5-esq-shimmer 1.8s ease-in-out infinite; }
.v5-esq-intro .v5-esq-headline { position: relative; background: none; animation: none; }
.v5-esq-headline::before,
.v5-esq-headline::after { content: ""; position: absolute; left: 0; height: 22px; border-radius: 6px; background: rgba(37,18,14,.27); }
.v5-esq-headline::before { top: 0; width: 100%; box-shadow: 0 29px 0 rgba(37,18,14,.27); }
.v5-esq-headline::after { top: 58px; width: 74%; }
@keyframes v5-esq-shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
.v5-home-loading-status { position: fixed; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
html.visual-v5 #view-inicio { width: 100%; max-width: none; margin: 0; }

/* Primeiro acesso e falha de leitura usam o mesmo papel da Home, sem cair na
   ficha azul anterior enquanto o perfil ainda está incompleto. */
html.visual-v5 #view-inicio .v5-state-content {
  width: min(760px, calc(100% - 48px));
  margin: 0 auto;
  padding: 54px 0 72px;
  color: var(--v5-ink);
  font-family: var(--v5-font);
}
html.visual-v5 #view-inicio .v5-state-content > .app-hoje {
  margin: 0 0 12px;
  padding: 0 0 18px;
  border-bottom: 1px solid var(--v5-line);
}
html.visual-v5 #view-inicio .v5-state-content > .app-hoje .app-hoje-kicker {
  color: var(--v5-indigo-dark);
  font: 600 10px/1.3 var(--v5-mono);
  letter-spacing: .13em;
}
html.visual-v5 #view-inicio .v5-state-content > .app-hoje h1 {
  max-width: 18ch;
  margin-top: 8px;
  color: var(--v5-ink);
  font: 650 clamp(30px,4vw,42px)/1.02 var(--v5-font);
  letter-spacing: -.055em;
}
html.visual-v5 #view-inicio .v5-state-content > .app-sim-lead {
  max-width: 64ch;
  margin: 0 0 22px;
  color: var(--v5-muted);
  font: 400 13px/1.58 var(--v5-font);
}
html.visual-v5 #view-inicio .v5-state-content > .app-onb {
  position: relative;
  max-width: none;
  padding: 28px;
  overflow: hidden;
  border: 1px solid var(--v5-line);
  border-radius: 18px;
  background: var(--v5-paper);
  box-shadow: 0 14px 34px rgba(23,24,32,.045);
}
html.visual-v5 #view-inicio .v5-state-content > .app-onb::before {
  content: "";
  position: absolute;
  top: -1px;
  right: 22px;
  left: 22px;
  height: 3px;
  background: var(--v5-coral);
}
html.visual-v5 #view-inicio .app-onb-label { color: var(--v5-ink); font: 650 14px/1.3 var(--v5-font); }
html.visual-v5 #view-inicio .app-onb-input {
  min-height: 50px;
  padding: 0 14px;
  color: var(--v5-ink);
  border: 1px solid var(--v5-line);
  border-radius: 10px;
  background: #fffefa;
  font: 500 14px/1 var(--v5-font);
}
html.visual-v5 #view-inicio .app-onb-input:focus-visible {
  border-color: var(--v5-indigo);
  box-shadow: 0 0 0 3px rgba(92,105,216,.12);
}
html.visual-v5 #view-inicio .app-onb-porque { color: var(--v5-muted); font: 400 11px/1.5 var(--v5-font); }
html.visual-v5 #view-inicio .app-onb .app-gate-err {
  padding: 11px 12px;
  color: var(--v5-red);
  border: 1px solid #ecc9cf;
  border-radius: 10px;
  background: #fff2f3;
}
html.visual-v5 #view-inicio .app-onb-btn {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  color: #fff;
  border: 0;
  border-radius: 12px;
  background: var(--v5-ink);
  font: 650 12px/1 var(--v5-font);
  box-shadow: none;
}
html.visual-v5 #view-inicio .app-onb-btn:hover { background: #292b35; transform: none; }
html.visual-v5 #view-inicio .app-onb-btn:disabled { color: #7a7d85; background: #d8d9d7; }
html.visual-v5 #view-inicio .app-onb-btn::after { content: "→"; font-size: 15px; font-weight: 400; }
html.visual-v5 #view-inicio .v5-state-content > .app-secao { color: var(--v5-ink); }
html.visual-v5 #view-inicio .v5-state-content > .app-secao .app-depois-item { border-color: var(--v5-line); background: var(--v5-paper); }
html.visual-v5 .app-shell .app-nav-item svg { stroke-width: 1.75; }

@media (min-width: 821px) {
  html.visual-v5 .app-shell > .app-sidebar { width: 190px; padding: 25px 18px 18px; border-right: 1px solid var(--v5-line); background: #fafaf7; box-shadow: none; }
  html.visual-v5 .app-shell > .app-sidebar::after { display: none; }
  html.visual-v5 .app-shell > .app-main { margin-left: 190px; }
  html.visual-v5 .app-shell .app-sidebar-logo { min-height: 44px; margin: 0 8px 38px; padding: 0; border: 0; }
  html.visual-v5 .app-shell .app-logo-mark { width: 23px; height: 23px; margin-right: 10px; color: var(--v5-indigo); }
  html.visual-v5 .app-shell .app-sidebar-logo strong { color: var(--v5-ink); font-family: var(--v5-font); font-size: 14px; letter-spacing: -.04em; }
  html.visual-v5 .app-shell .app-sidebar-logo em { color: var(--v5-ink); }
  html.visual-v5 .app-shell .app-sidebar-logo small { color: var(--v5-soft); font-family: var(--v5-font); font-size: 9px; }
  html.visual-v5 .app-shell .app-nav-label { margin: 0 11px 7px; color: var(--v5-soft); font-family: var(--v5-font); font-size: 10px; letter-spacing: .13em; }
  html.visual-v5 .app-shell .app-nav-label--evaluation { margin-top: 24px; }
  html.visual-v5 .app-shell .app-nav { gap: 5px; }
  html.visual-v5 .app-shell .app-nav-item { min-height: 44px; padding: 0 11px; gap: 11px; color: var(--v5-soft); border-radius: 11px; font-family: var(--v5-font); font-size: 13px; font-weight: 600; }
  html.visual-v5 .app-shell .app-nav-item::before { left: -18px; width: 3px; height: 22px; background: var(--v5-indigo); }
  html.visual-v5 .app-shell .app-nav-item svg { width: 17px; height: 17px; padding: 0; color: currentColor; }
  html.visual-v5 .app-shell .app-nav-item.active,
  html.visual-v5 .app-shell .app-nav-item.active:hover { color: var(--v5-indigo-dark); background: var(--v5-indigo-soft); }
  html.visual-v5 .app-shell .app-nav-item.active svg,
  html.visual-v5 .app-shell .app-nav-item.active:hover svg { color: var(--v5-indigo-dark); }
  html.visual-v5 .app-shell .app-nav-label--evaluation,
  html.visual-v5 .app-shell .app-nav-label--evaluation + .app-nav { display: none; }
  html.visual-v5 .app-shell .app-progresso { display: block; margin-top: auto; margin-bottom: 0; padding: 17px 10px 5px; border-top: 1px solid var(--v5-line); border-bottom: 0; }
  html.visual-v5 .app-shell .app-progresso-item--streak { display: none; }
  html.visual-v5 .app-shell .app-progresso-item--deadline { display: block; min-height: 0; padding: 0; border-top: 0; }
  html.visual-v5 .app-shell .app-progresso-item--deadline .app-progresso-phase { display: block; color: var(--v5-soft); font-size: 9px; font-weight: 700; letter-spacing: .1em; line-height: normal; text-transform: uppercase; }
  html.visual-v5 .app-shell .app-progresso-item--deadline b { display: block; margin-top: 6px; color: var(--v5-ink); font-family: var(--v5-font); font-size: 16px; letter-spacing: -.03em; line-height: normal; text-align: left; }
  html.visual-v5 .app-shell .app-progresso-item--deadline small { color: var(--v5-muted); font-family: var(--v5-font); font-size: 10px; line-height: normal; }
  html.visual-v5 .app-shell .app-user { display: none; }
}

.v5-home { min-height: calc(100vh - 68px); color: var(--v5-ink); background: var(--v5-canvas); }
.v5-home *, .v5-home *::before, .v5-home *::after { box-sizing: border-box; }
.v5-home svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.v5-home a:focus-visible,
.v5-home summary:focus-visible { outline: 2px solid var(--v5-indigo); outline-offset: 2px; }
.v5-content { width: min(980px, 100%); margin: 0 auto; padding: 30px 34px 0; }
.v5-greeting { display: flex; align-items: end; justify-content: space-between; gap: 22px; margin-bottom: 20px; }
.v5-greeting p { min-height: 12px; margin: 0 0 6px; color: var(--v5-soft); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.v5-greeting h1 { min-height: 1.2em; margin: 0; font-family: var(--v5-display); font-size: 30px; font-weight: 650; line-height: normal; letter-spacing: -.05em; }
.v5-type-line.is-typing::after { content: ""; display: inline-block; width: 1px; height: .83em; margin-left: 2px; background: currentColor; vertical-align: -.04em; animation: v5-caret 560ms steps(1) infinite; }
#v5-date.is-typing::after { height: .9em; margin-left: 3px; vertical-align: -.08em; }
.v5-plan-status { display: flex; align-items: center; gap: 5px; padding-bottom: 3px; color: var(--v5-muted); font-size: 10px; }
.v5-plan-status i { width: 7px; height: 7px; margin-right: 2px; border-radius: 50%; background: var(--v5-coral); }
.v5-plan-status b { color: var(--v5-ink); }

.v5-session { display: grid; grid-template-columns: minmax(290px,.85fr) minmax(410px,1.15fr); overflow: hidden; border: 1px solid rgba(23,24,32,.1); border-radius: 20px; background: var(--v5-paper); box-shadow: 0 18px 42px rgba(23,24,32,.08); }
.v5-session-intro { position: relative; display: flex; min-height: 420px; padding: 30px 28px 24px 51px; flex-direction: column; overflow: hidden; color: #25120e; background: var(--v5-coral); transition: color 260ms ease, background-color 260ms ease; }
.v5-session-intro::after { content: ""; position: absolute; top: -76px; right: -66px; width: 170px; height: 170px; border: 1px solid rgba(67,22,12,.18); border-radius: 50%; pointer-events: none; }
.v5-bank-margin { position: absolute; top: 31px; bottom: 30px; left: 14px; display: flex; width: 20px; align-items: center; flex-direction: column; color: rgba(37,18,14,.56); }
.v5-bank-margin span { font-size: 7px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; writing-mode: vertical-rl; }
.v5-bank-margin i { width: 1px; min-height: 14px; margin: 7px 0; flex: 1; background: currentColor; opacity: .5; }
.v5-session-copy { position: relative; z-index: 1; display: flex; flex: 1; flex-direction: column; }
.v5-kicker { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.v5-kicker span { width: 7px; height: 7px; border: 2px solid currentColor; border-radius: 50%; }
.v5-focus { display: inline-flex; align-self: flex-start; align-items: center; gap: 6px; margin-top: 34px; font-size: 10px; font-weight: 650; }
.v5-focus svg { width: 14px; height: 14px; }
.v5-session h2 { max-width: 380px; margin: 12px 0; font-family: var(--v5-display); font-size: clamp(31px,3.4vw,47px); font-weight: 650; line-height: .98; letter-spacing: -.065em; }
.v5-intro { max-width: 370px; margin: 0; font-size: 13px; line-height: 1.55; }
.v5-current-step-copy { display: none; }
.v5-evidence { margin-top: auto; padding-top: 24px; }
.v5-evidence span { display: block; margin-bottom: 4px; font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.v5-evidence strong { display: block; max-width: 350px; font-size: 11px; font-weight: 600; line-height: 1.45; }
.v5-meter { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4,1fr); gap: 5px; margin-top: 20px; }
.v5-meter span { height: 4px; background: rgba(37,18,14,.2); transition: background-color 220ms ease, transform 220ms ease; }
.v5-meter span.is-filled { background: #25120e; }
.v5-plan { min-width: 0; padding: 25px 24px 22px; }
.v5-plan-head { display: flex; min-height: 42px; margin-bottom: 7px; align-items: start; justify-content: space-between; gap: 16px; }
.v5-plan-head div span { display: block; margin-bottom: 4px; color: var(--v5-soft); font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.v5-plan-head div strong { font-size: 15px; letter-spacing: -.025em; }
.v5-plan-head > b { font-size: 12px; white-space: nowrap; }
.v5-step-list { display: grid; }
.v5-step { display: grid; grid-template-columns: 33px minmax(0,1fr) auto; min-height: 61px; width: 100%; padding: 7px; align-items: center; gap: 11px; color: var(--v5-ink); border-top: 1px solid var(--v5-line); text-decoration: none; transition: background-color 140ms ease, transform 100ms ease; }
a.v5-step:hover { background: #f7f7f3; }
a.v5-step:active { transform: translateY(1px); }
.v5-step.is-current { width: calc(100% + 10px); margin-inline: -5px; padding-inline: 12px; border-top-color: transparent; border-radius: 12px; background: var(--v5-coral-soft); }
.v5-step-node { display: grid; place-items: center; width: 29px; height: 29px; border: 1px solid #cfd3de; border-radius: 50%; color: var(--v5-muted); font-size: 9px; font-weight: 700; }
.v5-step.is-current .v5-step-node { border-color: var(--v5-coral); color: var(--v5-coral-dark); }
.v5-step.is-done .v5-step-node { border-color: var(--v5-green); background: var(--v5-green); color: white; }
.v5-step-copy { min-width: 0; }
.v5-step-copy strong { display: block; overflow: hidden; font-size: 12px; font-weight: 650; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.v5-step-copy small { display: block; margin-top: 2px; overflow: hidden; color: var(--v5-muted); font-size: 10px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.v5-step-time { color: var(--v5-muted); font-size: 10px; font-weight: 600; }
.v5-primary { display: flex; width: 204px; min-height: 48px; margin-top: 15px; padding: 0 16px 0 18px; align-items: center; justify-content: space-between; color: white; border: 1px solid var(--v5-ink); border-radius: 12px; background: var(--v5-ink); font-size: 12px; font-weight: 650; text-decoration: none; transition: transform 100ms ease, background-color 140ms ease; }
.v5-primary svg { width: 16px; height: 16px; }
.v5-primary:hover { color: white; border-color: #2a2c36; background: #2a2c36; }
.v5-primary:active { transform: translateY(1px); }
.v5-first-piece-link { display: inline-flex; min-height: 44px; margin-top: 5px; align-items: center; gap: 5px; color: var(--v5-muted); font-size: 10px; text-decoration: none; }
.v5-first-piece-link strong { color: var(--v5-ink); text-decoration: underline; text-underline-offset: 3px; }
.v5-first-piece-link:focus-visible { outline: 2px solid var(--v5-indigo); outline-offset: 2px; }
.v5-save-note { margin: 9px 0 0; color: var(--v5-muted); font-size: 9.5px; line-height: 1.4; }
.v5-context { display: grid; grid-template-columns: repeat(3,1fr); margin-top: 20px; border-top: 1px solid var(--v5-line); border-bottom: 1px solid var(--v5-line); }
.v5-context article { display: flex; min-width: 0; padding: 17px 17px 17px 0; gap: 11px; }
.v5-context article + article { padding-left: 17px; border-left: 1px solid var(--v5-line); }
.v5-context > article > svg { width: 17px; height: 17px; flex: none; color: var(--v5-indigo); }
.v5-context span { display: block; color: var(--v5-soft); font-size: 9px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.v5-context strong { display: block; margin-top: 5px; font-size: 11px; }
.v5-context p { margin: 3px 0 0; color: var(--v5-muted); font-size: 9.5px; line-height: 1.4; }
.v5-why { border-bottom: 1px solid var(--v5-line); }
.v5-why summary { display: flex; min-height: 50px; padding: 0 2px; align-items: center; color: var(--v5-ink-2); font-size: 11px; font-weight: 650; list-style: none; cursor: pointer; }
.v5-why summary::-webkit-details-marker { display: none; }
.v5-why > div { display: grid; grid-template-columns: 160px minmax(0,1fr); padding: 2px 2px 19px; gap: 24px; animation: v5-details 180ms ease both; }
.v5-why > div strong { color: var(--v5-coral-dark); font-size: 10px; }
.v5-why > div p { max-width: 650px; margin: 0; color: var(--v5-muted); font-size: 11px; line-height: 1.55; }
.v5-home[data-session-state="complete"] .v5-session-intro { color: #0e3a2b; background: var(--v5-green-soft); }
.v5-home[data-session-state="complete"] .v5-session-intro::after { border-color: rgba(22,122,82,.18); }
.v5-home[data-session-state="complete"] .v5-meter span { background: var(--v5-green); }
.v5-home[data-session-state="complete"] .v5-step.is-current { background: var(--v5-green-soft); }
.v5-home[data-session-state="complete"] .v5-step.is-current .v5-step-node { border-color: var(--v5-green); color: var(--v5-green); }
.v5-home[data-session-state="complete"] .v5-primary { border-color: var(--v5-green); background: var(--v5-green); }

/* Golden Slice · o microdrill continua o mesmo objeto coral/papel do Hoje. */
html.visual-v5 #view-drill { width: 100%; max-width: none; margin: 0; }
.v5-drill-page { min-height: 100vh; color: var(--v5-ink); background: var(--v5-canvas); }
.v5-drill-page *, .v5-drill-page *::before, .v5-drill-page *::after { box-sizing: border-box; }
.v5-drill-page svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.v5-drill-page a:focus-visible,
.v5-drill-page button:focus-visible,
.v5-drill-page summary:focus-visible { outline: 2px solid var(--v5-indigo); outline-offset: 2px; }
.v5-drill-topbar { display: flex; min-height: 68px; padding: 0 34px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--v5-line); background: rgba(255,253,248,.72); }
.v5-drill-topbar a { display: inline-flex; min-height: 44px; align-items: center; gap: 8px; color: var(--v5-ink); font-size: 12px; font-weight: 650; text-decoration: none; }
.v5-drill-topbar a span { color: var(--v5-indigo-dark); font-size: 16px; transition: transform 120ms ease; }
.v5-drill-topbar a:hover span { transform: translateX(-2px); }
.v5-drill-topbar > span { color: var(--v5-soft); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.v5-drill-stage { display: grid; grid-template-columns: minmax(290px,.85fr) minmax(410px,1.15fr); width: min(980px,100%); margin: 0 auto; padding: 36px 34px 52px; align-items: stretch; }
.v5-drill-focus-panel { position: relative; display: flex; min-height: 560px; padding: 31px 28px 26px 51px; flex-direction: column; overflow: hidden; color: #25120e; border-radius: 20px 0 0 20px; background: var(--v5-coral); box-shadow: 0 18px 42px rgba(23,24,32,.08); }
.v5-drill-focus-panel::after { content: ""; position: absolute; top: -76px; right: -66px; width: 170px; height: 170px; border: 1px solid rgba(67,22,12,.18); border-radius: 50%; pointer-events: none; }
.v5-drill-focus-copy { position: relative; z-index: 1; display: flex; min-width: 0; flex: 1; flex-direction: column; }
.v5-drill-focus-panel .v5-focus { margin-top: 42px; }
.v5-drill-focus-panel h1 { max-width: 370px; margin: 13px 0 14px; font-size: clamp(34px,3.25vw,46px); font-weight: 650; line-height: .98; letter-spacing: -.065em; }
.v5-drill-focus-copy > p:not(.v5-kicker) { max-width: 350px; margin: 0; font-size: 13px; line-height: 1.55; }
.v5-drill-meter { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(var(--v5-meter-total,4),1fr); gap: 5px; margin-top: 22px; }
.v5-drill-meter span { height: 4px; background: rgba(37,18,14,.2); }
.v5-drill-meter span.is-filled { background: #25120e; }
.v5-drill-paper { width: auto; max-width: none; min-width: 0; min-height: 560px; margin: 0; padding: 31px 28px 28px; border: 1px solid rgba(23,24,32,.1); border-left: 0; border-radius: 0 20px 20px 0; background: var(--v5-paper); box-shadow: 18px 18px 42px rgba(23,24,32,.08); }
.v5-drill-paper .app-drill-top { min-height: 28px; margin: 0 0 19px; justify-content: space-between; }
.v5-drill-paper-label,
.v5-result-label,
.v5-feedback-label { color: var(--v5-soft); font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.v5-drill-paper .app-drill-count { color: var(--v5-ink); font-size: 10px; }
.v5-drill-paper .app-drill-tags { min-height: 24px; margin-bottom: 14px; align-items: center; gap: 8px; }
.v5-drill-paper .app-drill-tag { padding: 4px 9px; color: var(--v5-indigo-dark); border: 1px solid #d8dcf5; border-radius: 999px; background: var(--v5-indigo-soft); font-size: 9px; }
.v5-drill-paper .app-drill-tag.muted { padding-inline: 0; color: var(--v5-muted); border-color: transparent; background: transparent; }
.v5-drill-paper .app-drill-caso { margin: 0; padding: 17px 18px; color: var(--v5-ink-2); border: 0; border-left: 2px solid var(--v5-coral); border-radius: 0 10px 10px 0; background: #f6f6f2; font-size: 12px; line-height: 1.58; }
.v5-drill-paper .app-drill-context-label { display: block; margin: 0 0 7px; color: var(--v5-soft); font: 700 8px/1.2 "IBM Plex Mono", monospace; letter-spacing: .12em; text-transform: uppercase; }
.v5-drill-paper .app-drill-source { margin: 12px 0 0; overflow: hidden; border: 1px solid var(--v5-line); border-radius: 10px; background: var(--v5-paper); }
.v5-drill-paper .app-drill-source summary { display: flex; min-height: 44px; padding: 0 14px; align-items: center; justify-content: space-between; gap: 12px; color: var(--v5-indigo-dark); font-size: 10px; font-weight: 700; cursor: pointer; list-style: none; }
.v5-drill-paper .app-drill-source summary::-webkit-details-marker { display: none; }
.v5-drill-paper .app-drill-source summary::after { content: "+"; font-size: 17px; font-weight: 500; line-height: 1; }
.v5-drill-paper .app-drill-source[open] summary::after { content: "−"; }
.v5-drill-paper .app-drill-source > p { max-height: 320px; margin: 0; padding: 14px 15px; overflow: auto; color: var(--v5-ink-2); border-top: 1px solid var(--v5-line); background: #f6f6f2; font-size: 11px; line-height: 1.55; white-space: pre-line; }
.v5-drill-paper .app-drill-targets { margin-top: 16px; padding: 14px 0 0; border-top: 1px solid var(--v5-line); }
.v5-drill-paper .app-drill-targets > span { display: block; margin-bottom: 9px; color: var(--v5-soft); font: 700 8px/1.2 "IBM Plex Mono", monospace; letter-spacing: .12em; text-transform: uppercase; }
.v5-drill-paper .app-drill-targets p { display: grid; grid-template-columns: 24px minmax(0,1fr); margin: 0; gap: 8px; color: var(--v5-ink-2); font-size: 11px; line-height: 1.5; }
.v5-drill-paper .app-drill-targets p + p { margin-top: 8px; }
.v5-drill-paper .app-drill-targets b { color: var(--v5-indigo-dark); }
.v5-drill-paper .app-drill-pergunta { margin: 24px 0 14px; color: var(--v5-ink); font-size: 20px; font-weight: 650; line-height: 1.22; letter-spacing: -.035em; }
.v5-drill-paper .app-drill-opcoes { gap: 8px; }
.v5-drill-paper .app-drill-opcao { min-height: 56px; padding: 10px 13px; gap: 11px; color: var(--v5-ink); border: 1px solid var(--v5-line); border-radius: 12px; background: var(--v5-paper); font-size: 12px; font-weight: 550; line-height: 1.4; }
.v5-drill-paper .app-drill-opcao > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.v5-drill-paper .app-drill-opcao:hover:not(:disabled) { border-color: var(--v5-indigo); background: #f8f8f4; transform: none; }
.v5-drill-paper .app-drill-letra { width: 29px; height: 29px; color: var(--v5-muted); border: 1px solid #cfd3de; border-radius: 50%; background: transparent; font-size: 9px; }
.v5-drill-paper .app-drill-opcao.certa { border-color: var(--v5-green); background: var(--v5-green-soft); }
.v5-drill-paper .app-drill-opcao.certa .app-drill-letra { border-color: var(--v5-green); background: var(--v5-green); color: white; }
.v5-drill-paper .app-drill-opcao.errada { border-color: var(--v5-coral-dark); background: var(--v5-coral-soft); }
.v5-drill-paper .app-drill-opcao.errada .app-drill-letra { border-color: var(--v5-coral-dark); background: var(--v5-coral-dark); color: white; }
html.visual-v5 .app-body.app-drill-session .app-drill-feedback-slot { min-height: 0; pointer-events: auto; }
html.visual-v5 .app-body.app-drill-session .app-drill-fb { position: static; display: grid; grid-template-columns: minmax(0,1fr) auto; max-height: none; margin: 17px 0 0; padding: 17px 18px; align-items: end; gap: 18px; overflow: visible; border: 0; border-radius: 12px; box-shadow: none; backdrop-filter: none; }
html.visual-v5 .app-body.app-drill-session .app-drill-fb.ok { background: var(--v5-green-soft); }
html.visual-v5 .app-body.app-drill-session .app-drill-fb.no { background: var(--v5-coral-soft); }
.v5-drill-paper .v5-feedback-label { display: block; margin-bottom: 8px; color: var(--v5-green); }
.v5-drill-paper .app-drill-fb.no .v5-feedback-label { color: var(--v5-coral-dark); }
.v5-drill-paper .app-drill-answer { margin-bottom: 7px; color: var(--v5-muted); font-size: 9.5px; }
.v5-drill-paper .app-drill-fb strong { margin-bottom: 5px; color: var(--v5-ink); font-size: 14px; }
.v5-drill-paper .app-drill-fb p { color: var(--v5-ink-2); font-size: 11px; line-height: 1.52; }
.v5-drill-paper .app-drill-why { margin-top: 5px; }
.v5-drill-paper .app-drill-why summary { min-height: 40px; color: var(--v5-indigo-dark); font-size: 10px; }
.v5-drill-paper .app-drill-next { display: inline-flex; min-width: 142px; min-height: 46px; padding: 0 16px; align-items: center; justify-content: center; color: white; border: 1px solid var(--v5-ink); border-radius: 12px; background: var(--v5-ink); font-size: 11px; font-weight: 650; box-shadow: none; }
.v5-drill-page--result .v5-drill-paper { display: flex; padding: 42px 38px 34px; align-items: flex-start; flex-direction: column; text-align: left; }
.v5-drill-page--result .v5-result-label { color: var(--v5-green); }
.v5-drill-page--result .app-drill-placar { margin: 60px 0 12px; justify-content: flex-start; gap: 9px; }
.v5-drill-page--result .app-drill-placar b { color: var(--v5-ink); font-size: 64px; font-weight: 650; line-height: .85; letter-spacing: -.07em; }
.v5-drill-page--result .app-drill-placar span { color: var(--v5-muted); font-size: 15px; }
.v5-drill-page--result .app-drill-fim h2 { margin: 0; color: var(--v5-ink); font-size: 26px; font-weight: 650; line-height: 1.08; letter-spacing: -.045em; }
.v5-drill-page--result .app-drill-rampa { max-width: 46ch; margin: 13px 0 0; color: var(--v5-muted); font-size: 12px; line-height: 1.58; }
.v5-drill-page--result .app-drill-fim-ctas { display: flex; margin-top: auto; padding-top: 30px; align-items: center; justify-content: flex-start; gap: 18px; }
.v5-drill-page--result .v5-primary { margin: 0; }
.v5-result-secondary { display: inline-flex; min-height: 44px; align-items: center; color: var(--v5-indigo-dark); border-bottom: 1px solid currentColor; font-size: 11px; font-weight: 650; text-decoration: none; }
.v5-drill-page--result .app-drill-fim-nota { margin: 13px 0 0; color: var(--v5-muted); font-size: 9.5px; text-align: left; }
.v5-drill-stage--status { animation: v5-status-arrive 280ms cubic-bezier(.2,.75,.25,1) both; }
.v5-drill-status-focus { background: var(--v5-coral); }
.v5-status-meter span.is-filled { animation: v5-status-meter 1.45s ease-in-out infinite; }
.v5-drill-status-paper { position: relative; display: flex; flex-direction: column; overflow: hidden; }
.v5-status-live { display: inline-flex; min-height: 28px; align-items: center; gap: 7px; color: var(--v5-muted); font-size: 9px; font-weight: 650; }
.v5-status-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--v5-indigo); box-shadow: 0 0 0 5px rgba(92,105,216,.1); animation: v5-status-live 1.45s ease-in-out infinite; }
.v5-status-paper-copy { padding: 8px 2px 0; }
.v5-status-paper-copy > span,
.v5-status-eyebrow { display: block; margin: 0 0 9px; color: var(--v5-indigo-dark); font: 700 8.5px/1.2 "IBM Plex Mono", monospace; letter-spacing: .12em; }
.v5-status-paper-copy h2,
.v5-status-message h2 { max-width: 390px; margin: 0; color: var(--v5-ink); font-size: 27px; font-weight: 650; line-height: 1.05; letter-spacing: -.05em; }
.v5-status-paper-copy p,
.v5-status-message > p:last-of-type { max-width: 430px; margin: 11px 0 0; color: var(--v5-muted); font-size: 11px; line-height: 1.55; }
.v5-status-preview { display: grid; margin-top: 27px; gap: 15px; }
.v5-status-preview i { position: relative; display: block; overflow: hidden; background: #e9e9e4; }
.v5-status-preview i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg,transparent 12%,rgba(255,255,255,.78) 48%,transparent 84%); transform: translateX(-115%); animation: v5-status-scan 1.75s cubic-bezier(.45,0,.55,1) infinite; }
.v5-status-preview-tags { display: flex; gap: 8px; }
.v5-status-preview-tags i { width: 88px; height: 20px; border: 1px solid #dfe1e8; border-radius: 999px; background: #f3f3ef; }
.v5-status-preview-tags i + i { width: 62px; }
.v5-status-preview-case { display: grid; min-height: 88px; padding: 18px; align-content: center; gap: 9px; border-left: 2px solid rgba(244,93,55,.42); border-radius: 0 10px 10px 0; background: #f6f6f2; }
.v5-status-preview-case i { height: 7px; border-radius: 4px; }
.v5-status-preview-case i:nth-child(2) { width: 91%; }
.v5-status-preview-case i:nth-child(3) { width: 67%; }
.v5-status-preview-question { display: grid; gap: 8px; }
.v5-status-preview-question i { width: 76%; height: 11px; border-radius: 5px; background: #dcdedc; }
.v5-status-preview-question i + i { width: 48%; }
.v5-status-preview-options { display: grid; gap: 8px; }
.v5-status-preview-options i { height: 50px; border: 1px solid #e0e2e8; border-radius: 12px; background: #f8f8f4; }
.v5-status-preview i:nth-child(2)::after { animation-delay: 90ms; }
.v5-status-preview i:nth-child(3)::after { animation-delay: 180ms; }
.v5-status-message { display: flex; min-height: 430px; padding: 42px 3px 10px; align-items: flex-start; justify-content: center; flex-direction: column; }
.v5-status-icon { display: grid; width: 42px; height: 42px; margin-bottom: 28px; place-items: center; color: var(--v5-indigo-dark); border: 1px solid #dfe1f4; border-radius: 50%; background: var(--v5-indigo-soft); }
.v5-status-icon svg { width: 19px; height: 19px; }
.v5-status-eyebrow { margin-bottom: 10px; }
.v5-status-actions { display: flex; margin-top: 27px; align-items: center; gap: 18px; }
.v5-status-actions .v5-primary { width: auto; min-width: 204px; margin: 0; font-family: var(--v5-font); cursor: pointer; }
.v5-status-secondary { display: inline-flex; min-height: 44px; padding: 0; align-items: center; color: var(--v5-indigo-dark); border: 0; border-bottom: 1px solid currentColor; background: transparent; font: 650 11px/1 var(--v5-font); text-decoration: none; cursor: pointer; }

@keyframes v5-status-arrive { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes v5-status-live { 0%,100% { opacity: .45; transform: scale(.82); } 50% { opacity: 1; transform: scale(1); } }
@keyframes v5-status-meter { 0%,100% { opacity: .52; } 50% { opacity: 1; } }
@keyframes v5-status-scan { 0% { transform: translateX(-115%); } 58%,100% { transform: translateX(115%); } }

/* A mesma superfície coral/papel sustenta geração, comparação e recuperação.
   O que muda é a ação cognitiva; geometria e hierarquia permanecem estáveis. */
.v5-movement-paper { display: flex; flex-direction: column; }
.v5-writing-prompt { margin: -4px 0 17px; color: var(--v5-muted); font-size: 11px; line-height: 1.52; }
.v5-guided-cue { margin: 14px 0; padding: 12px 14px; border-left: 3px solid var(--v5-indigo); border-radius: 0 10px 10px 0; background: var(--v5-indigo-pale); }
.v5-guided-cue span { color: var(--v5-indigo-dark); font: 700 9px/1.2 "IBM Plex Mono", monospace; letter-spacing: .12em; text-transform: uppercase; }
.v5-guided-cue p { margin: 6px 0 0; color: var(--v5-ink-2); font-size: 12px; line-height: 1.5; }
.v5-response-label { display: block; margin: 0 0 8px; color: var(--v5-ink); font-size: 10px; font-weight: 700; }
.v5-response-input { display: block; width: 100%; min-height: 132px; padding: 15px 16px; resize: vertical; color: var(--v5-ink); border: 1px solid #cfd3de; border-radius: 12px; outline: 0; background: #fff; font: 500 12px/1.55 var(--v5-font); transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease; }
.v5-response-input::placeholder { color: #9296a2; }
.v5-response-input:focus { border-color: var(--v5-indigo); background: var(--v5-paper); box-shadow: 0 0 0 3px rgba(92,105,216,.12); }
.v5-writing-meta { display: flex; margin-top: 7px; align-items: center; justify-content: space-between; gap: 14px; color: var(--v5-muted); font-size: 9px; }
.v5-writing-meta b { color: var(--v5-soft); font-size: 9px; font-weight: 600; }
.v5-form-error { min-height: 17px; margin: 8px 0 0; color: var(--v5-coral-dark); font-size: 10px; }
.v5-movement-submit { margin-top: auto; align-self: flex-start; cursor: pointer; font-family: var(--v5-font); }
.v5-movement-submit:disabled { cursor: default; opacity: .38; transform: none; }
.v5-compare-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.v5-compare-grid article { min-height: 132px; padding: 15px; border: 1px solid var(--v5-line); border-radius: 12px; background: #f7f7f3; }
.v5-compare-grid article.is-reference { border-color: #c7dbc9; background: var(--v5-green-soft); }
.v5-compare-grid span,
.v5-reference-note > span { display: block; margin-bottom: 8px; color: var(--v5-soft); font-size: 8.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.v5-compare-grid .is-reference span { color: var(--v5-green); }
.v5-compare-grid p { margin: 0; color: var(--v5-ink-2); font-size: 10.5px; line-height: 1.55; }
.v5-reference-note { margin: 10px 0 17px; padding: 13px 15px; border-left: 2px solid var(--v5-green); background: #f6f8f3; }
.v5-reference-note > span { margin-bottom: 5px; color: var(--v5-green); }
.v5-reference-note p { margin: 0; color: var(--v5-ink-2); font-size: 10px; line-height: 1.5; }
.v5-active-revision { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--v5-line); }
.v5-active-revision .v5-response-input { min-height: 112px; }
.v5-flawed-answer { margin: 0 0 17px; padding: 14px 15px; border: 1px solid #edc9bf; border-left: 3px solid var(--v5-coral); border-radius: 10px; background: var(--v5-coral-soft); }
.v5-flawed-answer span,
.v5-self-check legend { display: block; margin-bottom: 7px; color: var(--v5-coral); font-size: 8.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.v5-flawed-answer p { margin: 0; color: var(--v5-ink-2); font-size: 11px; line-height: 1.55; }
.v5-active-comparison { margin-top: 18px; }
.v5-self-check { margin: 14px 0 0; padding: 0; border: 0; }
.v5-self-check legend { color: var(--v5-soft); }
.v5-self-check button { display: grid; width: 100%; min-height: 58px; margin-top: 8px; padding: 11px 14px; grid-template-columns: minmax(0,1fr); gap: 3px; border: 1px solid var(--v5-line); border-radius: 11px; background: var(--v5-paper); color: var(--v5-ink); text-align: left; cursor: pointer; transition: border-color 140ms ease, background 140ms ease, transform 100ms ease; }
.v5-self-check button:hover { border-color: var(--v5-indigo); background: var(--v5-indigo-soft); }
.v5-self-check button:active { transform: translateY(1px); }
.v5-self-check button:focus-visible { outline: 3px solid rgba(92,105,216,.18); outline-offset: 2px; }
.v5-self-check button strong { font-size: 11px; }
.v5-self-check button span { color: var(--v5-muted); font-size: 9.5px; line-height: 1.4; }
.v5-result-check { display: grid; width: 64px; height: 64px; margin: 58px 0 16px; place-items: center; color: white; border-radius: 50%; background: var(--v5-green); font-size: 26px; font-weight: 700; }
.v5-final-answer { margin: 16px 0 0; padding: 15px 16px; color: var(--v5-ink-2); border-left: 2px solid var(--v5-green); background: #f6f8f3; font-size: 11px; line-height: 1.55; }
.v5-final-reference { width: 100%; margin-top: 13px; border-top: 1px solid var(--v5-line); border-bottom: 1px solid var(--v5-line); }
.v5-final-reference summary { display: flex; min-height: 44px; align-items: center; color: var(--v5-indigo-dark); font-size: 10px; font-weight: 650; cursor: pointer; }
.v5-final-reference p { margin: 0; padding: 0 0 14px; color: var(--v5-muted); font-size: 10px; line-height: 1.55; }

@keyframes v5-caret { 0%,49% { opacity: 1; } 50%,100% { opacity: 0; } }
@keyframes v5-details { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

@keyframes v5-arrive { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
.v5-greeting, .v5-session, .v5-context, .v5-why { animation: v5-arrive 280ms cubic-bezier(.2,.75,.25,1) both; }
.v5-session { animation-delay: 35ms; }.v5-context { animation-delay: 70ms; }.v5-why { animation-delay: 95ms; }

/* ── Formatos além da múltipla escolha ──────────────────────────────────────
   Nenhuma superfície nova: a ficha, o papel, o campo de texto e a nota de
   referência são os mesmos das regras acima, com os mesmos tokens. O que muda é
   o estado que a ficha precisa mostrar — marcada, ligada, posta — e um campo
   curto para digitar um dispositivo no meio de uma frase. */
.v5-drill-paper .app-drill-opcao.is-marcada,
.v5-drill-paper .app-drill-opcao.is-ligada { border-color: var(--v5-indigo); background: var(--v5-indigo-soft); }
.v5-drill-paper .app-drill-opcao.is-marcada .app-drill-letra,
.v5-drill-paper .app-drill-opcao.is-ligada .app-drill-letra { color: white; border-color: var(--v5-indigo); background: var(--v5-indigo); }
.v5-drill-paper .app-drill-opcao > span:last-child small { display: block; margin-top: 3px; color: var(--v5-muted); font-size: 9.5px; font-weight: 500; line-height: 1.4; }
.v5-drill-paper .app-drill-opcao.certa > span:last-child small { color: var(--v5-green); }
.v5-drill-paper .app-drill-opcao.errada > span:last-child small { color: var(--v5-coral-dark); }
.v5-drill-paper .app-drill-opcao[disabled] { opacity: 1; }

.v5-formato-rotulo { margin: 17px 0 8px; color: var(--v5-soft); font-size: 8.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.v5-formato-rotulo:first-child { margin-top: 0; }
.v5-formato-acao { margin-top: 17px; }
.v5-formato-acao .v5-movement-submit { margin-top: 0; }

.v5-lacuna { display: flex; margin: 0; padding: 15px 16px; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--v5-ink-2); border: 1px solid var(--v5-line); border-radius: 12px; background: #f7f7f3; font-size: 12px; line-height: 1.55; }
.v5-flawed-answer + .v5-lacuna { margin-top: 0; }
.v5-lacuna-campo { min-width: 96px; max-width: 220px; padding: 9px 12px; flex: 0 1 auto; color: var(--v5-ink); border: 1px solid #cfd3de; border-radius: 9px; outline: 0; background: #fff; font: 650 12px/1.3 var(--v5-font); text-align: center; transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease; }
.v5-lacuna-campo:focus { border-color: var(--v5-indigo); box-shadow: 0 0 0 3px rgba(92,105,216,.12); }
.v5-lacuna-campo.certa { color: var(--v5-green); border-color: var(--v5-green); background: var(--v5-green-soft); }
.v5-lacuna-campo.errada { color: var(--v5-coral-dark); border-color: var(--v5-coral-dark); background: var(--v5-coral-soft); }

.v5-flawed-answer mark { padding: 1px 2px; color: var(--v5-coral-dark); border-radius: 3px; background: #f4d6cc; box-shadow: inset 0 -2px 0 var(--v5-coral); }
.v5-flawed-answer mark.is-reparado { color: var(--v5-green); background: var(--v5-green-soft); box-shadow: inset 0 -2px 0 var(--v5-green); }

.v5-checklist { margin: 14px 0 0; padding: 0; border: 0; }
.v5-checklist legend { margin-bottom: 2px; padding: 0; }
.v5-checklist label { display: grid; width: 100%; min-height: 52px; margin-top: 8px; padding: 12px 14px; grid-template-columns: 17px minmax(0,1fr); align-items: start; gap: 11px; color: var(--v5-ink); border: 1px solid var(--v5-line); border-radius: 11px; background: var(--v5-paper); font-size: 11px; line-height: 1.45; cursor: pointer; transition: border-color 140ms ease, background 140ms ease; }
.v5-checklist label.is-achado { border-color: #c7dbc9; background: var(--v5-green-soft); }
.v5-checklist input { width: 16px; height: 16px; margin: 1px 0 0; accent-color: var(--v5-green); }
.v5-checklist small { display: block; margin-top: 3px; color: var(--v5-muted); font-size: 9.5px; line-height: 1.4; }

@media (max-width: 820px) {
  .v5-lacuna { padding: 13px 14px; }
  .v5-lacuna-campo { min-height: var(--tap-min, 44px); }
  .v5-checklist label { min-height: var(--tap-min, 44px); }
}

@media (max-width: 980px) and (min-width: 821px) {
  .v5-session { grid-template-columns: minmax(285px,.82fr) minmax(380px,1.18fr); }
  .v5-content { padding-inline: 26px; }
}

@media (max-width: 820px) {
  html.visual-v5 .v5-esq-loader { grid-template-columns: 1fr; }
  .v5-esq-sidebar { display: none; }
  .v5-esq-main { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
  .v5-esq-topbar { min-height: 62px; padding: 0 18px; }
  .v5-esq-topbar > div i { width: 22px; }
  .v5-esq-content { padding: 20px 17px 0; }
  .v5-esq-greeting { min-height: 80px; margin-bottom: 15px; align-items: start; }
  .v5-esq-greeting > div i { margin-top: 3px; }
  .v5-esq-greeting > div b { width: 196px; height: 23px; }
  .v5-esq-greeting > span { display: none; }
  .v5-esq-session { display: block; border-radius: 20px; }
  .v5-esq-intro { min-height: 0; padding: 22px 21px 19px; }
  .v5-esq-margin { display: none; }
  .v5-esq-focus { margin-top: 15px; }
  .v5-esq-headline { width: min(280px,95%); height: 64px; margin-top: 13px; }
  .v5-esq-headline::before,
  .v5-esq-headline::after { height: 17px; border-radius: 5px; }
  .v5-esq-headline::before { box-shadow: 0 23px 0 rgba(37,18,14,.27); }
  .v5-esq-headline::after { top: 46px; }
  .v5-esq-description,
  .v5-esq-evidence { display: none; }
  .v5-esq-meter { margin-top: 17px; }
  .v5-esq-plan { padding: 19px 15px 20px; }
  .v5-esq-plan-head { padding-inline: 5px; }
  .v5-esq-steps > div { min-height: 60px; }
  .v5-esq-primary { width: 100%; min-height: 52px; margin-top: 15px; }
  .v5-esq-save { margin-inline: auto; }
  .v5-esq-context { display: block; margin-top: 15px; }
  .v5-esq-context > div { padding: 15px 3px; }
  .v5-esq-context > div + div { padding-left: 3px; border-top: 1px solid var(--v5-line); border-left: 0; }
  .v5-esq-why { min-height: 52px; padding-inline: 3px; }
  .v5-esq-bottom { position: fixed; z-index: 3; right: 0; bottom: 0; left: 0; display: grid; min-height: calc(67px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); grid-template-columns: repeat(4,1fr); border-top: 1px solid var(--v5-line); background: rgba(255,253,248,.94); backdrop-filter: blur(14px); }
  .v5-esq-bottom > i { position: relative; display: grid; place-items: center; align-content: center; gap: 3px; }
  .v5-esq-bottom > i:first-child::before { content: ""; position: absolute; top: 0; width: 25px; height: 3px; background: var(--v5-indigo); }
  .v5-esq-bottom b { width: 24px; height: 24px; border: 1px solid #9da1ad; border-radius: 5px; background: transparent; }
  .v5-esq-bottom span { width: 28px; height: 6px; border-radius: 3px; background: #dcdcd6; }

  html.visual-v5 .app-body .app-shell > .app-main:has(> .app-mobile-account),
  html.visual-v5 .app-body .app-shell > .app-main:has(> .app-mobile-account):has(> #view-inicio:not([hidden])) {
    min-height: 100vh;
    padding: 0 0 calc(80px + env(safe-area-inset-bottom));
  }
  html.visual-v5 #view-inicio .v5-state-content {
    width: min(100% - 28px, 760px);
    padding: 28px 0 42px;
  }
  html.visual-v5 #view-inicio .v5-state-content > .app-hoje h1 { font-size: 29px; }
  html.visual-v5 #view-inicio .v5-state-content > .app-onb { padding: 23px 18px 20px; border-radius: 16px; }
  html.visual-v5 #view-inicio .app-onb-btn { min-height: 52px; }
  html.visual-v5 .app-mobile-account,
  html.visual-v5 .app-shell > .app-streak-dock { display: none; }
  html.visual-v5 .app-shell > .app-bottombar { min-height: calc(67px + env(safe-area-inset-bottom)); padding: 0 max(4px,env(safe-area-inset-right)) env(safe-area-inset-bottom) max(4px,env(safe-area-inset-left)); color: var(--v5-muted); border-top: 1px solid var(--v5-line); background: rgba(255,253,248,.94); box-shadow: none; backdrop-filter: blur(14px); box-sizing: border-box; }
  html.visual-v5 .app-shell .app-bottombar::before { display: none; }
  html.visual-v5 .app-shell .app-bottombar .app-nav-item { display: grid; height: 100%; min-height: 0; padding: 1px 6px; place-items: center; align-content: center; gap: 3px; color: var(--v5-muted); border-radius: 0; font-size: 8.5px; font-weight: 600; letter-spacing: normal; line-height: normal; }
  html.visual-v5 .app-shell .app-bottombar .app-nav-item::before { top: 0; width: 25px; height: 3px; background: var(--v5-indigo); }
  html.visual-v5 .app-shell .app-bottombar .app-nav-item svg { width: 24px; height: 24px; color: currentColor; }
  html.visual-v5 .app-shell .app-bottombar .app-nav-item.active { color: var(--v5-indigo-dark); }
  html.visual-v5 .app-shell .app-bottombar .app-nav-item.active svg { color: var(--v5-indigo-dark); }
  .v5-home { min-height: calc(100vh - 62px); }
  .v5-content { padding: 20px 17px 0; }
  .v5-greeting { align-items: start; margin-bottom: 15px; }
  .v5-greeting h1 { font-size: 24px; }
  .v5-plan-status { display: none; }
  .v5-session { display: block; border-radius: 20px; }
  .v5-session-intro { min-height: 0; padding: 22px 21px 19px; }
  .v5-session-intro > .v5-bank-margin,
  .v5-session-intro .v5-intro,
  .v5-session-intro .v5-evidence { display: none; }
  .v5-session-intro .v5-session-copy { flex: none; }
  .v5-session-intro .v5-focus { margin-top: 15px; }
  .v5-session h2 { max-width: 300px; margin: 8px 0 0; font-size: 35px; }
  .v5-session-intro .v5-current-step-copy { display: block; max-width: 300px; margin: 10px 0 0; font-size: 12px; font-weight: 600; line-height: 1.45; }
  .v5-session-intro .v5-meter { margin-top: 17px; }
  .v5-plan { padding: 19px 15px 20px; }
  .v5-plan-head { padding-inline: 5px; }
  .v5-step { min-height: 52px; }
  .v5-step.is-current + .v5-step { border-top-color: transparent; }
  .v5-step-copy strong { white-space: normal; }
  .v5-step-copy small { display: none; }
  .v5-primary { width: 100%; min-height: 52px; margin-top: 15px; }
  .v5-first-piece-link { display: flex; justify-content: center; text-align: center; }
  .v5-save-note { text-align: center; }
  .v5-context { display: block; margin-top: 15px; }
  .v5-context article { padding: 15px 3px; }
  .v5-context article + article { padding-left: 3px; border-top: 1px solid var(--v5-line); border-left: 0; }
  .v5-why summary { min-height: 52px; padding-inline: 3px; }
  .v5-why > div { display: block; padding: 2px 3px 18px; }
  .v5-why > div strong { display: block; margin-bottom: 7px; }

  html.visual-v5 .app-body.app-drill-session .app-shell > .app-main { padding: 0; }
  .v5-drill-topbar { min-height: 62px; padding: 0 18px; }
  .v5-drill-topbar > span { font-size: 9px; }
  .v5-drill-stage { display: block; width: 100%; padding: 20px 17px 30px; }
  .v5-drill-focus-panel { min-height: 292px; padding: 25px 22px 20px 43px; border-radius: 20px 20px 0 0; box-shadow: 0 14px 32px rgba(23,24,32,.07); }
  .v5-drill-focus-panel .v5-bank-margin { top: 26px; right: auto; bottom: 23px; left: 12px; }
  .v5-drill-focus-panel .v5-focus { margin-top: 27px; }
  .v5-drill-focus-panel h1 { max-width: 300px; margin-top: 10px; font-size: 35px; }
  .v5-drill-focus-copy > p:not(.v5-kicker) { font-size: 11px; }
  .v5-drill-focus-panel .v5-evidence { padding-top: 19px; }
  html.visual-v5 .app-body.app-drill-session .v5-drill-paper { width: auto; max-width: none; min-height: 0; padding: 20px 15px 22px; border-top: 0; border-left: 1px solid rgba(23,24,32,.1); border-radius: 0 0 20px 20px; box-shadow: 0 14px 32px rgba(23,24,32,.07); }
  .v5-drill-paper .app-drill-top { padding-inline: 3px; }
  .v5-drill-paper .app-drill-pergunta { font-size: 19px; }
  .v5-drill-paper .app-drill-caso { padding: 15px; }
  .v5-drill-paper .app-drill-opcao { min-height: 54px; padding: 10px 11px; }
  .v5-response-input { min-height: 122px; font-size: 16px; }
  .v5-compare-grid { grid-template-columns: 1fr; }
  .v5-compare-grid article { min-height: 0; }
  .v5-movement-submit { width: 100%; margin-top: 18px; }
  .v5-result-check { margin-top: 32px; }
  html.visual-v5 .app-body.app-drill-session .app-drill-fb { position: static; grid-template-columns: 1fr; max-height: none; padding: 16px; gap: 10px; overflow: visible; border-radius: 12px; }
  html.visual-v5 .app-body.app-drill-session .app-drill-fb-copy { max-height: none; overflow: visible; }
  html.visual-v5 .app-body.app-drill-session .app-drill-fb-copy > p { display: block; overflow: visible; }
  .v5-drill-paper .app-drill-next { width: 100%; }
  .v5-drill-page--result .v5-drill-paper { padding: 28px 22px 24px; }
  .v5-drill-page--result .app-drill-placar { margin-top: 34px; }
  .v5-drill-page--result .app-drill-fim-ctas { width: 100%; margin-top: 28px; padding-top: 0; align-items: stretch; flex-direction: column; gap: 7px; }
  .v5-drill-page--result .v5-primary { width: 100%; }
  .v5-result-secondary { justify-content: center; border: 0; }
  html.visual-v5 .app-body.app-drill-session .v5-drill-status-paper { min-height: 410px; padding: 21px 18px 24px; }
  .v5-drill-page--status[data-status="empty"] .v5-drill-status-paper,
  .v5-drill-page--status[data-status="error"] .v5-drill-status-paper { min-height: 340px; }
  .v5-status-paper-copy { padding-top: 6px; }
  .v5-status-paper-copy h2,
  .v5-status-message h2 { font-size: 25px; }
  .v5-status-preview { margin-top: 22px; gap: 12px; }
  .v5-status-preview-case { min-height: 78px; padding: 15px; }
  .v5-status-preview-options i { height: 47px; }
  .v5-status-message { min-height: 292px; padding: 27px 3px 8px; }
  .v5-status-icon { margin-bottom: 23px; }
  .v5-status-actions { width: 100%; margin-top: 24px; align-items: stretch; flex-direction: column; gap: 6px; }
  .v5-status-actions .v5-primary { width: 100%; }
  .v5-status-secondary { justify-content: center; border-bottom: 0; }
}

@media (max-width: 350px) {
  .v5-esq-content { padding-inline: 12px; }
  .v5-esq-intro { padding-inline: 17px; }
  .v5-esq-plan { padding-inline: 12px; }
  .v5-content { padding-inline: 12px; }
  .v5-session-intro { padding-inline: 17px; }
  .v5-session h2 { font-size: 31px; }
  .v5-step { gap: 8px; }
  .v5-step-time { font-size: 9px; }
  .v5-drill-stage { padding-inline: 12px; }
  .v5-drill-focus-panel { padding-right: 17px; padding-left: 39px; }
  .v5-drill-focus-panel h1 { font-size: 31px; }
  .v5-drill-paper .app-drill-pergunta { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .v5-esq-loader * { animation: none !important; }
  .v5-home *, .v5-home *::before, .v5-home *::after,
  .v5-drill-page *, .v5-drill-page *::before, .v5-drill-page *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Piso de leitura para conteúdo de decisão. Rótulos técnicos curtos continuam
   compactos; instruções, estado e ações ficam legíveis em qualquer largura. */
.v5-plan-status,
.v5-evidence strong,
.v5-step-copy small,
.v5-step-time,
.v5-save-note,
.v5-context strong,
.v5-context p,
.v5-why summary,
.v5-why > div p,
.v5-drill-paper .app-drill-count,
.v5-drill-paper .app-drill-answer,
.v5-drill-paper .app-drill-fb p,
.v5-drill-paper .app-drill-why summary,
.v5-drill-paper .app-drill-next,
.v5-result-secondary,
.v5-drill-page--result .app-drill-fim-nota,
.v5-status-secondary,
.v5-writing-prompt,
.v5-response-label,
.v5-writing-meta,
.v5-writing-meta b,
.v5-form-error,
.v5-compare-grid p,
.v5-reference-note p,
.v5-final-answer,
.v5-final-reference summary,
.v5-final-reference p { font-size: 12px; }

@media (max-width: 820px) {
  html.visual-v5 .app-shell .app-bottombar .app-nav-item { font-size: 12px; }
}
