/*
 * Conciliação Fiscal (/conciliacao-fiscal/), ported from "Conciliação Fiscal - Webmania.dc.html".
 * Class names are the design's own (ap-*, t1-*, pn4/pm-*, e1-*, lg-*, pn-*, cta-*); the design's
 * inline styles became the ap-* classes below. Responsive values computed in the design logic
 * from the viewport (wide = vw > 960) are the max-width: 960px media queries.
 */

/* ---------- Shared section parts ---------- */
.ap-sec-in { max-width: 1280px; margin: 0 auto; box-sizing: border-box; padding: clamp(66px, calc(6.25vw + 10px), 90px) clamp(20px, 4vw, 40px); }
.ap-lbl { font-size: 12px; font-weight: 600; line-height: 1; letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap; color: #0E7C66; }
.ap-h2 { margin: 0; font-family: var(--wm-font-display); font-weight: 500; font-size: clamp(34px, 3.4vw, 44px); line-height: 1.08; letter-spacing: -0.03em; color: var(--wm-green-900); text-wrap: balance; }
.ap-h2 em { font-style: italic; font-weight: 500; color: var(--wm-green-600); }
.ap-lead { margin: 0; font-size: 16px; line-height: 1.6; color: var(--wm-ink-600); text-wrap: pretty; }
.ap-hd { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 18px 56px; align-items: end; margin-bottom: 40px; }
.ap-hd > div { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
@media (max-width: 1099px) { .ap-hd { grid-template-columns: minmax(0, 1fr); } }
.ap-inc { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--wm-green-700); color: var(--wm-white); font-size: 12px; font-weight: 600; line-height: 1.3; white-space: nowrap; }
.ap-inc svg { flex: none; }
.ap-soon { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--wm-green-100); color: var(--wm-green-800); font-size: 12px; font-weight: 600; line-height: 1.3; white-space: nowrap; }
.ap-soon::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ap-soon.on-dark { background: #00DF82; color: var(--wm-green-900); }
.ap-row-lbl { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }

/* Status colours (bars, legends, markers) and status pills */
.ap-main .c-lib { background: #0E9984; }
.ap-main .c-agu { background: #1F5A99; }
.ap-main .c-man { background: #7A4DB0; }
.ap-main .c-con { background: #D98A2B; }
.ap-main .c-ris { background: #A8322C; }
.ap-main .c-out { background: #00DF82; }
.ap-main .is-ok { background: #D6F0E8; color: #00695A; }
.ap-main .is-conf { background: #EBF7F3; color: #00695A; }
.ap-main .is-wait { background: #DAE7F5; color: #1F5A99; }
.ap-main .is-chk { background: #FBEAD2; color: #8A5212; }
.ap-main .is-man { background: #E8DEF5; color: #7A4DB0; }

/* Infinite CSS animations pause while their section is off-screen (conciliacao.js). */
.ap-main .ap-off, .ap-main .ap-off * { animation-play-state: paused !important; }
/* Reset of an illustration before conciliacao.js replays it: no transition for that frame. */
.ap-main .ap-instant, .ap-main .ap-instant * { transition: none !important; }

/* ---------- Abertura ---------- */
@keyframes apPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(0,223,130,0.55); } 70% { box-shadow: 0 0 0 7px rgba(0,223,130,0); } }
.ap-hero { scroll-margin-top: var(--wmfl-nav-h, 73px); position: relative; overflow: hidden; background-color: #EEF5F7; background-image: linear-gradient(rgba(30,122,138,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(30,122,138,0.035) 1px, transparent 1px); background-size: 28px 28px; background-position: center top; color: var(--wm-ink-900); }
#abertura .ap-h-in { position: relative; z-index: 1; max-width: 1280px; margin: 0 auto; box-sizing: border-box; display: grid; grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr); gap: 48px; align-items: center; padding: calc(58px + clamp(66px, calc(6.25vw + 10px), 90px)) clamp(20px, 4vw, 40px) clamp(66px, calc(6.25vw + 10px), 90px); }
@media (min-width: 1200px) { #abertura .ap-h-in { min-height: 640px; } }
@media (max-width: 960px) { #abertura .ap-h-in { grid-template-columns: minmax(0, 1fr); gap: 44px; } }
.ap-h-tx { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; min-width: 0; }
.ap-eyebrow-d { display: inline-flex; align-items: center; gap: 8px; color: var(--wm-green-700); font-size: min(12px, 3vw); font-weight: 600; line-height: 1; letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap; }
.ap-h1 { margin: 0; font-family: var(--wm-font-display); font-weight: 500; font-size: clamp(34px, 3.4vw, 44px); line-height: 1.08; letter-spacing: -0.03em; color: var(--wm-green-900); text-wrap: balance; }
.ap-h1 em { font-style: italic; color: var(--wm-green-600); font-weight: 500; }
.ap-nw { white-space: nowrap; }
/* Below 384 px the nowrap line "A Receita Federal apura." (10.7 em wide) is cut by the section:
   scale the title to the 20 px-padded column instead (design defect, fixed in review). */
@media (max-width: 383px) { .ap-h1 { font-size: clamp(24px, calc((100vw - 40px) / 10.75), 34px); } }
.ap-h-lead { margin: 0; max-width: 540px; font-size: 16px; line-height: 1.6; color: var(--wm-ink-600); text-wrap: pretty; }
.ap-h-lead strong { font-weight: 600; color: var(--wm-green-800); }
.ap-h-pts { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ap-h-pts li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; line-height: 1.4; color: var(--wm-ink-700); }
.ap-h-pts li > span { flex: none; width: 20px; height: 20px; border-radius: 50%; background: #D6F0E8; color: #00695A; display: inline-flex; align-items: center; justify-content: center; }
.ap-h-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 4px; }
.ap-h-btn, .ap-h-btn:hover { height: auto; padding: 12px 20px; border-radius: 10px; font-size: 14.5px; line-height: 20px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.ap-h-btn-g, .ap-h-btn-g:hover { padding: 11px 20px; }
.ap-h-mo { position: relative; min-width: 0; width: 100%; max-width: 560px; justify-self: end; }
@media (max-width: 960px) { .ap-h-mo { justify-self: stretch; max-width: 600px; margin: 0 auto; } }

/* Conta da guia (abertura) */
.ap-gc { position: relative; z-index: 1; border-radius: 18px; background: #FFFFFF; color: var(--wm-ink-800); border: 1px solid var(--wm-border); box-shadow: 0 30px 60px rgba(10,41,33,0.12), 0 2px 6px rgba(10,41,33,0.04); overflow: hidden; font-family: var(--wm-font-body); text-align: left; }
.ap-gc-hd { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--wm-ink-100); }
.ap-gc-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ap-gc-t b { font-size: 14.5px; font-weight: 600; color: var(--wm-green-900); white-space: nowrap; }
.ap-gc-t small { font-size: 11.5px; color: var(--wm-ink-500); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-cbs { flex: none; padding: 3px 8px; border-radius: 6px; border: 1px solid var(--wm-ink-200); font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--wm-ink-600); white-space: nowrap; }
.ap-gc-src { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--wm-ink-100); }
.ap-gc-src > div { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; min-width: 0; border-left: 1px solid var(--wm-ink-100); }
.ap-gc-src > div:first-child { border-left: 0; }
.ap-gc-src b { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--wm-ink-800); white-space: nowrap; }
.ap-gc-src small { font-size: 11px; line-height: 1.35; color: var(--wm-ink-500); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--wm-green-500); }
.ap-dot.live { background: #00C774; animation: apPulse 2.2s infinite; }
.ap-dot.amb { background: var(--wm-amber-500); }
.ap-gc-eq { display: grid; grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1fr) 22px minmax(0, 1.08fr); align-items: stretch; padding: 16px 18px 6px; gap: 6px; }
.ap-gc-c { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 4px 2px; }
.ap-gc-c .lb { display: flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--wm-ink-500); white-space: nowrap; }
.ap-gc-c b { font-size: clamp(17px, 1.7vw, 21px); font-weight: 600; letter-spacing: -0.02em; color: var(--wm-ink-900); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ap-gc-c small { font-size: 11px; line-height: 1.35; color: var(--wm-ink-500); }
.ap-gc-c.hl { padding: 8px 12px; border-radius: 12px; background: var(--wm-green-50); border: 1px solid var(--wm-green-100); }
.ap-gc-c.hl b { color: var(--wm-green-800); }
.ap-op { align-self: center; justify-self: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--wm-ink-200); color: var(--wm-ink-500); font-size: 13px; line-height: 20px; text-align: center; }
.ap-gc-st { padding: 10px 18px 16px; display: flex; flex-direction: column; gap: 10px; }
.ap-gc-st-hd { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 11.5px; color: var(--wm-ink-500); }
.ap-gc-st-hd b { font-size: 12px; font-weight: 600; color: var(--wm-ink-800); }
.ap-bar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: var(--wm-ink-100); gap: 2px; }
.ap-bar > span { display: block; height: 100%; transition: width 900ms cubic-bezier(0.22,1,0.36,1); }
.ap-leg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 16px; margin: 0; padding: 0; list-style: none; }
.ap-leg li { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 12px; line-height: 1.3; color: var(--wm-ink-700); }
.ap-leg li i { flex: none; width: 8px; height: 8px; border-radius: 2px; }
.ap-leg li span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-leg li b { flex: none; font-weight: 600; color: var(--wm-ink-900); font-variant-numeric: tabular-nums; }
.ap-gc-ft { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 18px; background: var(--wm-ink-50); border-top: 1px solid var(--wm-ink-100); font-size: 11px; color: var(--wm-ink-500); }
.ap-gc-ft span:last-child { white-space: nowrap; }
.ap-float { position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; background: #FFFFFF; border: 1px solid var(--wm-border); box-shadow: 0 14px 28px rgba(10,41,33,0.12); font-size: 12px; line-height: 1.3; color: var(--wm-ink-800); white-space: nowrap; opacity: 1; transform: translateY(0px); transition: opacity 500ms ease, transform 600ms cubic-bezier(0.22,1,0.36,1); }
.ap-float.is-pre { opacity: 0; transform: translateY(8px); }
.ap-float b { font-weight: 600; }
.ap-float .ic { flex: none; width: 24px; height: 24px; border-radius: 7px; display: flex; align-items: center; justify-content: center; }
.ap-float .ic-amb { background: #FBEAD2; color: #8A5212; }
.ap-float .ic-ok { background: #D6F0E8; color: #00695A; }
.ap-float.f1 { left: -34px; top: 118px; }
.ap-float.f2 { right: -26px; bottom: 74px; }
@media (max-width: 1199px) { .ap-float.f1 { left: -12px; top: -18px; } .ap-float.f2 { right: -8px; bottom: -18px; } }
@media (max-width: 560px) {
  .ap-gc-src { grid-template-columns: minmax(0, 1fr); }
  .ap-gc-src > div { border-left: 0; border-top: 1px solid var(--wm-ink-100); }
  .ap-gc-src > div:first-child { border-top: 0; }
  .ap-gc-eq { grid-template-columns: minmax(0, 1fr); }
  .ap-op { display: none; }
  .ap-leg { grid-template-columns: minmax(0, 1fr); }
  .ap-float { display: none; }
}

/* ---------- Logos ---------- */
.ap-logos { background: var(--wm-white); overflow: hidden; border-top: 1px solid var(--wm-border); }
.ap-logos-in { position: relative; max-width: 1200px; margin: 0 auto; overflow: hidden; padding: 40px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ap-logos-tr { display: flex; gap: 56px; width: max-content; animation: wm-marquee 60s linear infinite; align-items: center; }
.ap-logo { flex-shrink: 0; display: block; height: 22px; width: auto; max-width: 100px; object-fit: contain; filter: brightness(0); opacity: 0.4; }

/* ---------- Números (the < 1180 px layout is the chrome's [data-wm-nums*] helper) ---------- */
.ap-nums { background: var(--wm-ink-50); border-top: 1px solid var(--wm-border); border-bottom: 1px solid var(--wm-border); }
.ap-nums-in { max-width: 1280px; margin: 0 auto; padding: 32px clamp(20px, 4vw, 40px); display: flex; flex-wrap: wrap; align-items: center; gap: 24px 0; }
.ap-nums-hd { flex: 0 0 auto; display: flex; flex-direction: column; gap: 8px; padding-right: clamp(20px, 2.6vw, 36px); border-right: 1px solid var(--wm-ink-200); }
.ap-nums-k { font-size: 12px; font-weight: 600; line-height: 1; letter-spacing: 0.12em; text-transform: uppercase; color: #0E7C66; white-space: nowrap; }
.ap-nums-t { font-family: var(--wm-font-body); font-size: 19px; font-weight: 600; line-height: 1.2; letter-spacing: -0.025em; color: var(--wm-green-900); }
.ap-nums-t em { font-style: italic; color: #0E9984; }
.ap-nums-g { flex: 1 1 760px; min-width: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: center; }
.ap-num { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0 16px; text-align: center; border-right: 1px solid var(--wm-ink-200); }
.ap-num:last-child { border-right: 0; }
.ap-num-v { font-family: var(--wm-font-body); font-size: 32px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; color: var(--wm-green-700); white-space: nowrap; }
.ap-num-v span { font-size: 0.6em; font-weight: 500; vertical-align: 0.325em; margin-right: 0.12em; color: #0E9984; }
.ap-num-l { font-family: var(--wm-font-body); font-size: 14px; line-height: 1.4; color: var(--wm-ink-500); }

/* ---------- Reforma Tributária (T1, trilho da cadeia) ---------- */
#reforma { background: #FFFFFF; scroll-margin-top: var(--wmfl-nav-h, 73px); }
#reforma .t1 { position: relative; padding: 36px 32px 32px; border-radius: 22px; background: linear-gradient(180deg, var(--wm-green-50), #FFFFFF 70%); border: 1px solid var(--wm-green-100); }
#reforma .t1-line { position: absolute; left: 60px; right: calc((100% - 112px) / 3 + 4px); top: 64px; height: 2px; background: repeating-linear-gradient(90deg, var(--wm-green-300) 0 6px, transparent 6px 12px); }
#reforma .t1-line u { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--wm-green-600), var(--wm-green-300)); -webkit-mask: linear-gradient(90deg, #000 60%, transparent); mask: linear-gradient(90deg, #000 60%, transparent); }
#reforma .t1-g { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
#reforma .t1-c { position: relative; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
#reforma .t1-n { display: flex; align-items: center; }
#reforma .t1-dot { width: 56px; height: 56px; box-sizing: border-box; border-radius: 50%; background: #FFFFFF; border: 2px solid var(--wm-green-600); color: var(--wm-green-700); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 6px var(--wm-green-50); }
#reforma .t1-c:first-child .t1-dot { background: var(--wm-green-700); border-color: var(--wm-green-700); color: #FFFFFF; }
#reforma .t1-who { display: flex; align-items: baseline; gap: 10px; margin-top: 8px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--wm-ink-500); }
#reforma .t1-who em { font-family: var(--wm-font-display); font-style: italic; font-size: 22px; font-weight: 500; letter-spacing: -0.02em; text-transform: none; color: var(--wm-green-600); }
#reforma .t1-c h3 { margin: 0; font-family: var(--wm-font-display); font-weight: 500; font-size: 22px; line-height: 1.2; letter-spacing: -0.015em; color: var(--wm-green-900); }
#reforma .t1-c p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--wm-ink-600); text-wrap: pretty; min-height: 93px; }
#reforma .t1-x { margin-top: auto; display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border-radius: 14px; background: #FFFFFF; border: 1px solid var(--wm-green-100); box-shadow: 0 12px 28px rgba(10,41,33,0.07); }
#reforma .t1-xk { font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--wm-ink-400); }
#reforma .t1-x b { font-size: 14px; font-weight: 600; color: var(--wm-green-900); }
#reforma .t1-xr { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 13px; color: var(--wm-ink-600); }
#reforma .t1-xr em { font-style: normal; font-family: var(--wm-font-display); font-size: 20px; font-weight: 500; letter-spacing: -0.01em; color: var(--wm-green-900); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
#reforma .t1-xr em i { width: 18px; height: 18px; border-radius: 50%; background: #D6F0E8; color: #00695A; display: flex; align-items: center; justify-content: center; }
#reforma .t1-x small { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--wm-ink-500); }
#reforma .t1-tr { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
#reforma .t1-ar { color: var(--wm-ink-400); display: inline-flex; }
#reforma .pl, #emissor-monitor .pl { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; line-height: 1.3; white-space: nowrap; }
#reforma .exi, #emissor-monitor .exi { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; background: #EEF1F0; color: var(--wm-ink-600); font-size: 11.5px; font-weight: 600; white-space: nowrap; }
#reforma .t1-ft { display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; margin-top: 22px; }
#reforma .t1-ft p { margin: 0; display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--wm-ink-600); }
#reforma .t1-ft p svg { flex: none; margin-top: 2px; color: var(--wm-green-700); }
@media (max-width: 960px) {
  #reforma .t1 { padding: 28px 24px; }
  #reforma .t1-line { display: none; }
  #reforma .t1-g { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  #reforma .t1-c { padding-left: 76px; }
  #reforma .t1-n { position: absolute; left: 0; top: 0; }
  #reforma .t1-c:not(:last-child)::before { content: ""; position: absolute; left: 27px; top: 68px; bottom: -24px; width: 2px; background: repeating-linear-gradient(180deg, var(--wm-green-300) 0 6px, transparent 6px 12px); }
  #reforma .t1-who { margin-top: 2px; }
  #reforma .t1-c p { min-height: 0; }
  #reforma .t1-ft { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  #reforma .t1 { padding: 22px 18px; }
  #reforma .t1-c { padding-left: 0; }
  #reforma .t1-n { position: static; }
  #reforma .t1-c::before { display: none; }
  #reforma .t1-dot { width: 48px; height: 48px; }
  #reforma .exi { white-space: normal; }
}

/* ---------- Como funciona (R2, barramento tracejado) ---------- */
#como-funciona { background: var(--wm-green-50); border-top: 1px solid var(--wm-green-100); border-bottom: 1px solid var(--wm-green-100); scroll-margin-top: var(--wmfl-nav-h, 73px); }
.ap-flow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr) minmax(0, 1fr); gap: 44px; align-items: center; }
@media (max-width: 1080px) { .ap-flow { grid-template-columns: minmax(0, 1fr); gap: 40px; } }
.ap-fcol { display: flex; flex-direction: column; gap: 10px; min-width: 0; position: relative; }
.ap-fcol > p { margin: 0 0 4px; font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--wm-ink-500); }
.ap-src { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: start; padding: 14px 16px; border-radius: 14px; background: #FFFFFF; border: 1px solid var(--wm-green-100); }
.ap-src .ic { width: 40px; height: 40px; border-radius: 10px; background: #E4F1EC; color: var(--wm-green-700); display: flex; align-items: center; justify-content: center; }
.ap-src b { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--wm-green-900); }
.ap-src b small { padding: 2px 7px; border-radius: 6px; background: var(--wm-ink-50); border: 1px solid var(--wm-border); font-size: 10px; font-weight: 700; letter-spacing: 0.08em; color: var(--wm-ink-600); }
.ap-src span { display: block; margin-top: 3px; font-size: 13.5px; line-height: 1.45; color: var(--wm-ink-600); }
.ap-core { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 24px; border-radius: 20px; background: var(--wm-green-900); color: #FFFFFF; box-shadow: 0 30px 60px -30px rgba(0,37,31,0.6); }
.ap-core-hd { display: flex; align-items: center; gap: 12px; }
.ap-core-hd .w { flex: none; width: 40px; height: 40px; border-radius: 10px; background: #0E7C66; display: flex; align-items: center; justify-content: center; font-family: var(--wm-font-display); font-style: italic; font-weight: 600; font-size: 20px; color: #FFFFFF; }
.ap-core-hd b { display: block; font-size: 16px; font-weight: 600; }
.ap-core-hd small { display: block; font-size: 12.5px; color: rgba(255,255,255,0.66); }
.ap-core ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ap-core li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,0.05); border: 1px solid rgba(111,206,189,0.2); font-size: 14px; line-height: 1.4; color: rgba(255,255,255,0.9); }
.ap-core li b { flex: none; width: 22px; height: 22px; border-radius: 50%; background: #00DF82; color: var(--wm-green-900); font-size: 11.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
/* Each card joins the bus, and the bus joins the Painel */
.ap-core::before, .ap-core::after { content: ""; position: absolute; top: 50%; width: 22px; height: 2px; background: repeating-linear-gradient(90deg, var(--wm-green-300) 0 6px, transparent 6px 10px); }
.ap-core::before { left: -22px; }
.ap-core::after { right: -22px; }
#como-funciona .ap-fcol > .ap-src, #como-funciona .ap-fcol > .ap-nt, #como-funciona .ap-fcol > .ap-out { position: relative; }
#como-funciona .ap-fcol > .ap-src::after, #como-funciona .ap-fcol > .ap-nt::after, #como-funciona .ap-fcol > .ap-out::after { content: ""; position: absolute; top: 50%; width: 22px; height: 2px; margin-top: -1px; background: repeating-linear-gradient(90deg, var(--wm-green-300) 0 6px, transparent 6px 10px); }
#como-funciona .ap-fcol > .ap-src::after { right: -23px; }
#como-funciona .ap-fcol > .ap-nt::after, #como-funciona .ap-fcol > .ap-out::after { left: -23px; }
#como-funciona .ap-fcol > .ap-src::before, #como-funciona .ap-fcol > .ap-nt::before, #como-funciona .ap-fcol > .ap-out::before { content: ""; position: absolute; top: -6px; bottom: -6px; width: 2px; background: repeating-linear-gradient(180deg, var(--wm-green-300) 0 6px, transparent 6px 11px); }
#como-funciona .ap-fcol > .ap-src::before { right: -23px; }
#como-funciona .ap-fcol > .ap-nt::before, #como-funciona .ap-fcol > .ap-out::before { left: -23px; }
#como-funciona .ap-fcol > p + .ap-src::before, #como-funciona .ap-fcol > p + .ap-nt::before { top: 50%; }
#como-funciona .ap-fcol > .ap-src:last-child::before, #como-funciona .ap-fcol > .ap-nt:last-child::before, #como-funciona .ap-fcol > .ap-out:last-child::before { bottom: 50%; }
@media (max-width: 1080px) {
  #como-funciona .ap-fcol > .ap-src::before, #como-funciona .ap-fcol > .ap-src::after, #como-funciona .ap-fcol > .ap-nt::before, #como-funciona .ap-fcol > .ap-nt::after, #como-funciona .ap-fcol > .ap-out::before, #como-funciona .ap-fcol > .ap-out::after { display: none; }
  .ap-core::before, .ap-core::after { left: 50%; right: auto; width: 2px; height: 40px; background: repeating-linear-gradient(180deg, var(--wm-green-300) 0 6px, transparent 6px 11px); }
  .ap-core::before { top: -40px; }
  .ap-core::after { top: auto; bottom: -40px; }
}
.ap-out { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 13px 16px; border-radius: 14px; background: #FFFFFF; border: 1px solid var(--wm-green-100); }
.ap-out i { width: 12px; height: 12px; border-radius: 3px; }
.ap-out b { display: block; font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--wm-green-900); }
.ap-out span { display: block; margin-top: 2px; font-size: 13.5px; line-height: 1.4; color: var(--wm-ink-600); }
.ap-out em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--wm-ink-500); white-space: nowrap; }
.ap-out.hl { background: var(--wm-green-700); border-color: var(--wm-green-700); }
.ap-out.hl b, .ap-out.hl em { color: #FFFFFF; }
.ap-out.hl span { color: rgba(255,255,255,0.82); }
.ap-nt { padding: 12px 14px; border-radius: 14px; background: #FFFFFF; border: 1px solid var(--wm-green-100); }
.ap-nt-st { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--wm-ink-600); }
.ap-nt-st i { flex: none; width: 10px; height: 10px; border-radius: 3px; }
.ap-nt-n { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-top: 8px; }
.ap-nt-n b { display: block; font-size: 14.5px; font-weight: 600; line-height: 1.3; color: var(--wm-green-900); }
.ap-nt-n span { display: block; font-size: 12.5px; line-height: 1.4; color: var(--wm-ink-500); }
.ap-nt-n em { font-style: normal; font-size: 13px; font-weight: 600; color: var(--wm-green-900); white-space: nowrap; }
.ap-nt p { margin: 8px 0 0; font-size: 12.5px; line-height: 1.4; color: var(--wm-ink-600); }

/* ---------- No Painel (P4) ---------- */
#painel { background: #FFFFFF; scroll-margin-top: var(--wmfl-nav-h, 73px); }
@keyframes pn4Toast { 0%, 58% { opacity: 0; transform: translateY(8px); } 64%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(4px); } }
#painel .pn4 { position: relative; overflow: hidden; margin-top: clamp(28px, 3vw, 40px); border-radius: 22px; background: radial-gradient(120% 140% at 100% 0%, #0C5A4A 0%, #00352C 45%, #00251F 100%); display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); min-height: 520px; }
#painel .pn4-tx { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 18px; padding: 44px 36px 44px 40px; color: #FFFFFF; }
#painel .pn4-k { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 9px; }
#painel .pn4-k .sq { width: 30px; height: 30px; border-radius: 9px; background: rgba(25,197,146,0.16); color: #19C592; display: flex; align-items: center; justify-content: center; }
#painel .pn4-k .e { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #6FCEBD; }
#painel .pn4-k .s { font-size: 13px; color: rgba(255,255,255,0.72); }
#painel .pn4 h3 { margin: 0; font-family: var(--wm-font-display); font-size: 26px; font-weight: 500; line-height: 1.15; letter-spacing: -0.02em; color: #FFFFFF; text-wrap: pretty; }
#painel .pn4 ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
#painel .pn4 li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 15px; line-height: 1.5; color: rgba(255,255,255,0.88); }
#painel .bk { margin-top: 2px; width: 20px; height: 20px; border-radius: 50%; background: rgba(25,197,146,0.18); color: #19C592; display: flex; align-items: center; justify-content: center; }
#painel .pn4-mock { position: relative; min-width: 0; padding: 48px 0 0 0; }
#painel .pn4-fr { height: 472px; }
#painel .pn4-ex { position: absolute; right: 20px; top: 14px; z-index: 2; padding: 3px 9px; border-radius: 999px; background: rgba(0,37,31,0.72); color: rgba(255,255,255,0.85); font-size: 11px; font-weight: 600; }
#painel .pm-toast { position: absolute; left: 24px; bottom: 34px; z-index: 2; display: flex; gap: 10px; align-items: center; padding: 11px 14px; border-radius: 12px; background: #fff; border: 1px solid #D4E3DC; box-shadow: 0 18px 40px rgba(0,0,0,.22); max-width: 340px; opacity: 0; animation: pn4Toast 8s ease 1.5s infinite; }
#painel .pm-toast > span { flex: none; width: 28px; height: 28px; border-radius: 50%; background: #DAE7F5; color: #1F5A99; display: grid; place-items: center; }
#painel .pm-toast b { display: block; font-size: 12.5px; color: #00251F; }
#painel .pm-toast small { display: block; font-size: 11px; color: #687370; }
@media (prefers-reduced-motion: reduce) { #painel .pm-toast { animation: none; opacity: 1; } }
/* Créditos screen of the Painel */
#painel .pm-app { display: grid; grid-template-columns: 48px 196px minmax(0, 1fr); height: 100%; background: #fff; overflow: hidden; font-family: var(--wm-font-body), Inter, sans-serif; color: #11171A; box-shadow: none; }
#painel .pm-app.pm-cut { border-radius: 12px 0 0 0; }
#painel .pm-rail { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 10px 0; background: #00251F; }
#painel .pm-w { width: 24px; height: 24px; border-radius: 6px; background: #008070; color: #00251F; font-size: 14px; font-weight: 800; font-style: italic; display: flex; align-items: center; justify-content: center; margin-bottom: 6px; }
#painel .pm-ri { width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.55); }
#painel .pm-ri.on { background: rgba(255,255,255,.14); color: #fff; }
#painel .pm-side { display: flex; flex-direction: column; gap: 2px; padding: 12px 10px; border-right: 1px solid #EEF0EF; font-size: 11px; min-width: 0; overflow: hidden; }
#painel .pm-sh { display: flex; align-items: center; justify-content: space-between; padding: 0 6px 10px; font-size: 12px; font-weight: 700; color: #11171A; }
#painel .pm-sh svg { color: #7A8581; }
#painel .pm-si { display: flex; align-items: center; gap: 7px; height: 26px; padding: 0 7px; border-radius: 7px; font-size: 10.5px; color: #33403B; }
#painel .pm-si .i { display: flex; color: #5B6762; }
#painel .pm-si .t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#painel .pm-si.on { background: #EBF7F3; color: #003D33; font-weight: 600; }
#painel .pm-si.on .i { color: #003D33; }
#painel .pm-si .b { padding: 0 5px; border-radius: 999px; background: #FFF1D6; color: #A15C00; font-size: 9px; font-weight: 700; }
#painel .pm-si .nv { font-size: 8.5px; font-weight: 600; color: #1F5F6B; }
#painel .pm-subs { display: flex; flex-direction: column; margin: 2px 0 4px 16px; border-left: 1px solid #D5E3DD; }
#painel .pm-sub { display: flex; align-items: center; height: 21px; padding: 0 8px 0 12px; font-size: 10.5px; white-space: nowrap; color: #4B5753; }
#painel .pm-sub span { margin-left: auto; font-size: 9.5px; color: #7A8581; }
#painel .pm-sub.on { color: #008070; font-weight: 600; border-left: 2px solid #008070; margin-left: -1px; }
#painel .pm-main { display: flex; flex-direction: column; min-width: 0; background: #F7F9F8; container-type: inline-size; }
#painel .pm-top { display: flex; align-items: center; gap: 8px; padding: 8px 14px; background: #fff; border-bottom: 1px solid #EEF0EF; }
#painel .pm-sel { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 9px; border-radius: 7px; border: 1px solid #E1E6E4; font-size: 10.5px; color: #33403B; white-space: nowrap; }
#painel .pm-sel b { padding: 0 5px; border-radius: 999px; background: #EEF1F0; font-size: 9.5px; }
#painel .pm-srch { flex: 1; display: flex; align-items: center; gap: 6px; height: 26px; padding: 0 9px; border-radius: 7px; background: #F4F6F5; font-size: 10.5px; color: #8A938F; min-width: 0; white-space: nowrap; overflow: hidden; }
#painel .pm-srch kbd { margin-left: auto; font-family: inherit; font-size: 9px; color: #8A938F; }
#painel .pm-av { width: 26px; height: 26px; border-radius: 50%; background: #0E5949; color: #fff; font-size: 9.5px; font-weight: 700; display: grid; place-items: center; }
#painel .pm-body { display: flex; flex-direction: column; gap: 12px; padding: 14px 16px; min-width: 0; }
#painel .pm-bc { font-size: 10px; color: #7A8581; }
#painel .pm-tt { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
#painel .pm-tt h4 { margin: 0; font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
#painel .pm-tt p { margin: 3px 0 0; font-size: 10.5px; color: #687370; }
#painel .pm-btn { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 7px; border: 1px solid #D8E0DC; background: #fff; font-size: 10.5px; font-weight: 600; color: #33403B; white-space: nowrap; }
#painel .pm-chips { display: flex; gap: 6px; flex-wrap: nowrap; overflow: hidden; }
#painel .pm-ch { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 999px; border: 1px solid #E1E6E4; background: #fff; font-size: 10px; color: #4B5753; white-space: nowrap; }
#painel .pm-ch b { font-size: 9.5px; color: #7A8581; }
#painel .pm-ch.on { background: #0E5949; border-color: #0E5949; color: #fff; }
#painel .pm-ch.on b { color: rgba(255,255,255,.75); }
#painel .pm-tb { border-radius: 10px; border: 1px solid #E6EBE9; background: #fff; overflow: hidden; }
#painel .pm-tr { display: grid; grid-template-columns: minmax(0, 1fr) 136px 74px 92px; gap: 12px; align-items: center; padding: 8px 12px; border-top: 1px solid #EEF1F0; font-size: 10.5px; color: #33403B; }
#painel .pm-tr.h { border-top: 0; background: #FAFBFB; font-size: 9.5px; font-weight: 600; color: #7A8581; text-transform: uppercase; letter-spacing: .04em; }
#painel .pm-tr b { display: block; font-weight: 600; color: #11171A; }
#painel .pm-tr small { display: block; font-size: 9.5px; color: #8A938F; }
#painel .pm-tr .f { min-width: 0; }
#painel .pm-tr .f b, #painel .pm-tr .f small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#painel .pm-tr.h > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#painel .pm-tr .v { text-align: right; font-weight: 600; color: #11171A; }
#painel .pm-tr .nm { font-size: 10px; color: #00695A; }
#painel .pm-tr.h .nm { color: #7A8581; font-size: 9.5px; }
#painel .pm-tr .nm.w { color: #8A5212; }
@container (max-width: 520px) { #painel .pm-tr { grid-template-columns: minmax(0, 1fr) 136px 74px; } #painel .pm-tr > span:nth-child(4) { display: none; } }
@container (max-width: 360px) { #painel .pm-tr { grid-template-columns: minmax(0, 1fr) 136px; } #painel .pm-tr > span:nth-child(3) { display: none; } }
#painel .pm-pill { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px; font-size: 9.5px; font-weight: 600; white-space: nowrap; }
@media (max-width: 1080px) { #painel .pn4 { grid-template-columns: minmax(0, 1fr); } #painel .pn4-tx { padding: 36px 28px 8px; } #painel .pn4-mock { padding: 48px 0 0 28px; } }
@media (max-width: 720px) { #painel .pn4-fr { height: 420px; } #painel .pm-app { grid-template-columns: 44px minmax(0, 1fr); } #painel .pm-side, #painel .pm-srch { display: none; } #painel .pm-toast { right: 12px; left: 12px; max-width: none; } #painel .pn4-mock { padding-left: 16px; } }

/* ---------- Emissor e Monitor (E1, razonete) ---------- */
#emissor-monitor { background: var(--wm-ink-50); border-top: 1px solid var(--wm-border); scroll-margin-top: var(--wmfl-nav-h, 73px); }
#emissor-monitor .e1 { border-radius: 22px; background: #FFFFFF; border: 1px solid var(--wm-border); overflow: hidden; box-shadow: 0 24px 48px rgba(10,41,33,0.06); }
#emissor-monitor .e1-top { display: flex; justify-content: space-between; align-items: center; gap: 8px 16px; flex-wrap: wrap; padding: 14px 24px; border-bottom: 1px solid var(--wm-border); background: var(--wm-ink-50); font-size: 13px; color: var(--wm-ink-600); }
#emissor-monitor .e1-top > span:first-child { display: inline-flex; align-items: center; gap: 8px; }
#emissor-monitor .e1-top > span:first-child svg { flex: none; color: var(--wm-green-700); }
#emissor-monitor .e1-top b { font-weight: 600; color: var(--wm-green-900); }
#emissor-monitor .e1-t { display: grid; grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr); }
#emissor-monitor .e1-sp { background: var(--wm-border); }
#emissor-monitor .e1-s { display: flex; flex-direction: column; gap: 14px; padding: 26px 28px 24px; min-width: 0; }
#emissor-monitor .e1-ph { display: flex; align-items: center; gap: 12px; }
#emissor-monitor .e1-pi { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex: none; }
#emissor-monitor .e1-s.d .e1-pi { background: #E4F1EC; color: var(--wm-green-700); }
#emissor-monitor .e1-s.c .e1-pi { background: #DAE7F5; color: #1F5A99; }
#emissor-monitor .e1-k { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; }
#emissor-monitor .e1-s.d .e1-k { background: #E4F1EC; color: var(--wm-green-800); }
#emissor-monitor .e1-s.c .e1-k { background: #DAE7F5; color: #1F5A99; }
#emissor-monitor .e1-ph h3 { margin: 4px 0 0; font-family: var(--wm-font-display); font-weight: 500; font-size: 24px; line-height: 1.1; letter-spacing: -0.015em; color: var(--wm-green-900); }
#emissor-monitor .e1-s > p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--wm-ink-600); text-wrap: pretty; }
#emissor-monitor .e1-tb { margin-top: auto; border: 1px solid var(--wm-ink-100); border-radius: 12px; overflow: hidden; }
#emissor-monitor .rw { display: grid; grid-template-columns: minmax(0, 1fr) auto 168px; gap: 12px; align-items: center; padding: 10px 14px; border-top: 1px solid var(--wm-ink-100); font-size: 13px; color: var(--wm-ink-700); }
#emissor-monitor .rw:first-child { border-top: 0; }
#emissor-monitor .rw b { font-weight: 600; color: var(--wm-ink-900); }
#emissor-monitor .rw > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#emissor-monitor .rw .v { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
#emissor-monitor .rw .s { justify-self: end; }
#emissor-monitor .rw.h { background: var(--wm-ink-50); font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--wm-ink-500); }
#emissor-monitor .e1-res { display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 30px 28px 32px; border-top: 1px solid var(--wm-border); background: var(--wm-ink-50); }
#emissor-monitor .e1-rq { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px 28px; text-align: center; }
#emissor-monitor .e1-rq > div { display: flex; flex-direction: column; align-items: center; gap: 3px; }
#emissor-monitor .e1-rq span { font-size: 12.5px; font-weight: 600; color: var(--wm-ink-600); }
#emissor-monitor .e1-rq b { font-family: var(--wm-font-display); font-size: 28px; font-weight: 500; line-height: 1.15; letter-spacing: -0.02em; color: var(--wm-green-900); white-space: nowrap; }
#emissor-monitor .e1-rq small { font-size: 12px; color: var(--wm-ink-500); }
#emissor-monitor .e1-rq i { font-style: normal; font-size: 24px; font-weight: 500; color: var(--wm-ink-400); }
#emissor-monitor .e1-rq .hl { padding: 12px 22px; border-radius: 14px; background: #FFFFFF; border: 1px solid var(--wm-green-100); box-shadow: 0 10px 24px rgba(10,41,33,0.06); }
#emissor-monitor .e1-rq .hl span { color: var(--wm-green-700); }
#emissor-monitor .e1-rq .hl b { font-size: 32px; color: var(--wm-green-700); }
#emissor-monitor .bd { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; padding: 24px 28px; border-radius: 18px; background: #FFFFFF; border: 1px solid var(--wm-green-100); box-shadow: 0 1px 2px rgba(10,41,33,0.04); }
#emissor-monitor .bd h3 { margin: 0; font-family: var(--wm-font-display); font-weight: 500; font-size: 22px; line-height: 1.3; letter-spacing: -0.01em; color: var(--wm-green-900); text-wrap: balance; }
#emissor-monitor .bd h3 em { font-style: italic; color: #0E9984; }
#emissor-monitor .bd-b { flex: none; display: flex; flex-wrap: wrap; gap: 10px; }
#emissor-monitor .bd-b a, #emissor-monitor .bd-b a:hover { display: inline-flex; align-items: center; justify-content: center; padding: 13px 20px; border-radius: 10px; font-size: 15px; font-weight: 600; white-space: nowrap; text-decoration: none; transition: background 0.15s, border-color 0.15s; }
#emissor-monitor .bd-b .b1 { background: var(--wm-green-700); color: #FFFFFF; border: 1px solid var(--wm-green-700); }
#emissor-monitor .bd-b .b1:hover { background: var(--wm-green-800); border-color: var(--wm-green-800); color: #FFFFFF; }
#emissor-monitor .bd-b .b2 { background: #FFFFFF; color: var(--wm-green-700); border: 1px solid var(--wm-green-200); }
#emissor-monitor .bd-b .b2:hover { background: var(--wm-green-50); border-color: var(--wm-green-300); color: var(--wm-green-800); }
@media (max-width: 1180px) {
  #emissor-monitor .bd { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 1240px) {
  #emissor-monitor .rw { grid-template-columns: minmax(0, 1fr) auto; row-gap: 6px; }
  #emissor-monitor .rw .s { grid-column: 1 / -1; justify-self: start; }
  #emissor-monitor .rw.h .s { display: none; }
}
@media (max-width: 960px) {
  #emissor-monitor .e1-t { grid-template-columns: minmax(0, 1fr); }
  #emissor-monitor .e1-sp { height: 1px; }
  #emissor-monitor .rw { grid-template-columns: minmax(0, 1fr) auto 168px; row-gap: 0; }
  #emissor-monitor .rw .s { grid-column: auto; justify-self: end; }
  #emissor-monitor .rw.h .s { display: block; }
  #emissor-monitor .e1-rq b { font-size: 24px; }
  #emissor-monitor .e1-rq .hl b { font-size: 28px; }
  #emissor-monitor .e1-rq { flex-direction: column; gap: 6px; }
  #emissor-monitor .e1-rq .hl { margin-top: 6px; }
  #emissor-monitor .bd { flex-direction: column; align-items: flex-start; padding: 24px; }
}
@media (max-width: 600px) {
  #emissor-monitor .e1-top { padding: 12px 18px; }
  #emissor-monitor .e1-s { padding: 22px 18px 20px; }
  #emissor-monitor .rw { grid-template-columns: minmax(0, 1fr) auto; row-gap: 6px; }
  #emissor-monitor .rw .s { grid-column: 1 / -1; justify-self: start; }
  #emissor-monitor .rw.h .s { display: none; }
  #emissor-monitor .e1-res { padding: 24px 18px 26px; }
  #emissor-monitor .e1-rq { align-self: stretch; }
  #emissor-monitor .e1-rq .hl { align-self: stretch; }
  #emissor-monitor .bd h3 { font-size: 20px; }
  #emissor-monitor .bd-b { align-self: stretch; flex-direction: column; }
  #emissor-monitor .bd-b a { white-space: normal; text-align: center; }
}

/* ---------- Legislação · Em breve ---------- */
#legislacao { position: relative; overflow: hidden; background-color: var(--wm-green-900); background-image: radial-gradient(rgba(111,206,189,0.12) 1px, transparent 1px); background-size: 24px 24px; color: #FFFFFF; scroll-margin-top: var(--wmfl-nav-h, 73px); }
#legislacao .ap-sec-in { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(40px, 6vw, 80px); align-items: center; }
@media (max-width: 960px) { #legislacao .ap-sec-in { grid-template-columns: minmax(0, 1fr); } }
.ap-cp-tx { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; min-width: 0; }
.ap-cp-tx .ap-h2 { color: #FFFFFF; }
.ap-cp-tx .ap-h2 em { color: #00DF82; }
.ap-cp-tx .ap-lead { color: rgba(255,255,255,0.8); max-width: 600px; }
.ap-cp-tx .ap-lbl { color: #00DF82; }
.ap-cp-list { list-style: none; margin: 4px 0 0; padding: 0; width: 100%; display: flex; flex-direction: column; gap: 10px; }
.ap-cp-list li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: start; padding: 14px 16px; border-radius: 14px; background: rgba(255,255,255,0.05); border: 1px solid rgba(111,206,189,0.22); }
.ap-cp-list li > span { width: 34px; height: 34px; border-radius: 10px; background: rgba(0,223,130,0.14); color: #00DF82; display: flex; align-items: center; justify-content: center; }
.ap-cp-list b { display: block; font-size: 15.5px; font-weight: 600; color: #FFFFFF; }
.ap-cp-list p { margin: 3px 0 0; font-size: 14px; line-height: 1.5; color: rgba(255,255,255,0.74); text-wrap: pretty; }
.lg-card { position: relative; z-index: 1; min-width: 0; border-radius: 18px; background: #FFFFFF; color: var(--wm-ink-800); box-shadow: 0 40px 80px rgba(0,0,0,0.38); overflow: hidden; font-family: var(--wm-font-body); text-align: left; }
.lg-hd { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #173A30; color: #FFFFFF; }
.lg-av { flex: none; width: 34px; height: 34px; border-radius: 50%; overflow: hidden; background: var(--wm-green-900); display: block; }
.lg-av img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lg-av.sm { width: 24px; height: 24px; margin-top: 2px; }
.lg-av.w { display: flex; align-items: center; justify-content: center; background: var(--wm-green-700); }
.lg-av.w img { width: 56%; height: 56%; object-fit: contain; }
.lg-id { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.lg-nm { font-size: 14px; font-weight: 600; line-height: 1.25; color: #FFFFFF; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lg-sb { font-size: 11.5px; line-height: 1.3; color: rgba(255,255,255,0.7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lg-bd { display: flex; flex-direction: column; gap: 10px; padding: 14px; min-height: 500px; box-sizing: border-box; background: #F7FAF9; }
.lg-u, .lg-a, .lg-imp, .lg-src span, .lg-tl li, .lg-txt > div { opacity: 1; transform: translateY(0px); transition: opacity 380ms ease, transform 440ms cubic-bezier(0.22,1,0.36,1); }
.lg-src span, .lg-tl li { transform: none; }
.lg-card .is-off { opacity: 0; }
.lg-u.is-off, .lg-a.is-off, .lg-imp.is-off, .lg-txt > div.is-off { transform: translateY(8px); }
.lg-u { align-self: flex-end; max-width: 88%; padding: 10px 12px; border-radius: 14px 14px 4px 14px; background: var(--wm-green-900); color: #FFFFFF; font-size: 13px; line-height: 1.45; }
.lg-a { display: flex; gap: 8px; align-items: flex-start; }
.lg-bub { flex: 1; min-width: 0; padding: 12px 14px; border-radius: 14px 14px 14px 4px; background: #FFFFFF; border: 1px solid var(--wm-green-100); }
.lg-txt { display: flex; flex-direction: column; gap: 12px; }
.lg-txt.is-gone, .lg-card .ia-typing.is-off { display: none; }
.lg-card .ia-typing { display: inline-flex; gap: 4px; padding: 4px 0; opacity: 1; }
.lg-card .ia-typing i { display: block; width: 5px; height: 5px; border-radius: 50%; background: var(--wm-green-600); animation: wmTyping 1s infinite; }
.lg-card .ia-typing i:nth-child(2) { animation-delay: 0.15s; }
.lg-card .ia-typing i:nth-child(3) { animation-delay: 0.3s; }
.lg-k { margin: 0 0 5px; font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--wm-ink-500); }
.lg-p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--wm-ink-800); text-wrap: pretty; }
.lg-src { display: flex; flex-wrap: wrap; gap: 6px; }
.lg-src span { display: inline-flex; align-items: center; padding: 4px 8px; border-radius: 7px; background: var(--wm-green-50); border: 1px solid var(--wm-green-100); font-size: 11.5px; font-weight: 600; color: var(--wm-green-800); white-space: nowrap; }
.lg-tl { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.lg-tl li { position: relative; display: grid; grid-template-columns: 12px minmax(0, 1fr); gap: 8px; padding-bottom: 8px; font-size: 12px; line-height: 1.4; color: var(--wm-ink-700); }
.lg-tl li:last-child { padding-bottom: 0; }
.lg-tl li i { width: 8px; height: 8px; margin: 4px 0 0 2px; border-radius: 50%; background: var(--wm-green-300); }
.lg-tl li:not(:last-child)::before { content: ""; position: absolute; left: 5px; top: 14px; bottom: 0; width: 2px; background: var(--wm-green-100); }
.lg-tl li i.now { background: #00C774; box-shadow: 0 0 0 3px rgba(0,199,116,0.18); }
.lg-tl b { font-weight: 600; color: var(--wm-ink-900); }
.lg-imp { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; padding: 10px 12px; border-radius: 12px; background: #FFF8EE; border: 1px solid #F1D3A8; font-size: 12.5px; line-height: 1.4; color: #5C3A0E; }
.lg-imp b { font-weight: 600; }
.lg-imp-ic { flex: none; width: 24px; height: 24px; border-radius: 7px; background: #FBEAD2; color: #8A5212; display: flex; align-items: center; justify-content: center; }
.lg-imp-go { margin-left: auto; font-weight: 600; color: var(--wm-green-700); white-space: nowrap; }
.lg-in { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 12px 12px 14px; border-top: 1px solid var(--wm-ink-100); font-size: 12.5px; color: var(--wm-ink-400); background: #FFFFFF; }
.lg-in > span:first-child { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lg-send { flex: none; width: 30px; height: 30px; border-radius: 8px; background: var(--wm-ink-100); color: var(--wm-ink-400); display: flex; align-items: center; justify-content: center; }

/* ---------- Perguntas frequentes ---------- */
.ap-faq { background: var(--wm-ink-50); border-top: 1px solid var(--wm-border); scroll-margin-top: var(--wmfl-nav-h, 73px); }
.ap-faq-in { max-width: 1280px; margin: 0 auto; padding: clamp(66px, calc(6.25vw + 10px), 90px) clamp(20px, 4vw, 40px); display: grid; grid-template-columns: minmax(0, 0.58fr) minmax(0, 1.42fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.ap-faq-hd { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; position: sticky; top: 96px; }
.ap-faq-hd p { margin: 0; max-width: 440px; font-size: 16px; line-height: 1.6; color: var(--wm-ink-600); text-wrap: pretty; }
.ap-faq-hd a, .ap-faq-hd a:hover { color: var(--wm-green-700); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.ap-faq-l { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ap-faq-it { background: var(--wm-white); border: 1px solid var(--wm-border); border-radius: 14px; overflow: hidden; }
.ap-faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 22px; background: transparent; border: none; text-align: left; font-family: var(--wm-font-body); font-size: 15.5px; font-weight: 500; color: var(--wm-green-900); cursor: pointer; }
.ap-faq-s { font-size: 20px; color: var(--wm-green-600); line-height: 1; }
.ap-faq-a { margin: -6px 0 0; padding: 0 22px 20px; font-size: 14.5px; line-height: 1.6; color: var(--wm-ink-600); }
.ap-faq-a[hidden] { display: none; }
@media (max-width: 960px) {
  .ap-faq-in { grid-template-columns: minmax(0, 1fr); }
  .ap-faq-hd { position: static; }
}

/* ---------- Chamada final ---------- */
.ap-cta { --cta-w: clamp(400px, 34vw, 520px); --cta-h: var(--cta-w); --cta-r: calc(max(0px, (100% - 1280px) / 2) + clamp(20px, 4vw, 40px)); position: relative; overflow: hidden; background-color: var(--wm-green-900); color: var(--wm-white); padding: clamp(66px, calc(6.25vw + 10px), 90px) 0; }
.ap-cta-dots { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.ap-cta-row { position: relative; z-index: 1; margin-left: var(--cta-r); margin-right: max(0px, (100% - 1280px) / 2); display: flex; flex-direction: row; align-items: stretch; }
.ap-cta-box { flex: 0 0 var(--cta-w); width: var(--cta-w); height: var(--cta-h); margin: 0 24px 0 0; position: relative; border-radius: 22px; overflow: hidden; background: rgba(255,255,255,0.06); }
.ap-cta-tx { position: relative; z-index: 1; flex: 1 1 0; min-width: 0; width: 100%; max-width: 1280px; box-sizing: border-box; margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 20px; text-align: left; }
.ap-cta-tx h2 { margin: 0; max-width: 860px; font-family: var(--wm-font-display); font-weight: 500; font-size: clamp(34px, 3.4vw, 44px); line-height: 1.08; letter-spacing: -0.03em; color: var(--wm-white); text-wrap: balance; }
.ap-cta-tx h2 em { font-style: italic; color: #00DF82; font-weight: 500; }
.ap-cta-tx p { margin: 0; max-width: 620px; font-size: 16px; line-height: 1.6; color: rgba(255,255,255,0.78); text-wrap: pretty; }
.ap-cta-b { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: flex-start; margin-top: 6px; }
.ap-cta-p, .ap-cta-p:hover { display: inline-flex; align-items: center; padding: 15px 24px; border-radius: 10px; background: #00DF82; color: var(--wm-green-900); font-size: 15.5px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.ap-cta-p:hover { background: color-mix(in oklab, #00DF82 86%, black); }
.ap-cta-g, .ap-cta-g:hover { text-decoration: none; white-space: nowrap; }
@media (max-width: 960px) {
  .ap-cta-row { margin-left: 0; margin-right: 0; }
  .ap-cta-box { display: none; }
}
/* Painel cut-out, drawn at 560 × 560 and scaled to the box */
.ap-cta-art2 { position: absolute; inset: 0; background: radial-gradient(circle at 30% 30%, rgba(0,223,130,0.16), rgba(255,255,255,0.03) 62%); }
.ap-cta-fit { position: absolute; inset: 0; overflow: hidden; }
.ap-cta-inner { position: absolute; left: 0; top: 0; width: 560px; height: 560px; transform-origin: 0 0; transform: scale(0.875); }
.cta-pn { position: absolute; left: 64px; top: 64px; width: 860px; height: 620px; display: flex; border-radius: 16px 0 0 0; overflow: hidden; background: #FFFFFF; box-shadow: 0 30px 60px rgba(0,0,0,0.45); font-family: var(--wm-font-body); color: #1F2724; text-align: left; }
.cta-pn .pn-rail { flex: none; width: 46px; background: #0B2A22; display: flex; flex-direction: column; align-items: center; gap: 14px; padding-top: 10px; }
.cta-pn .pn-rail .w { width: 28px; height: 28px; border-radius: 7px; background: #0E7C66; display: grid; place-items: center; color: #FFFFFF; font-family: var(--wm-font-display); font-style: italic; font-weight: 600; font-size: 15px; }
.cta-pn .pn-rail span { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: #8FB5A9; }
.cta-pn .pn-rail span.on { background: rgba(255,255,255,0.12); color: #FFFFFF; }
.cta-pn .pn-main { flex: 1; min-width: 0; display: flex; flex-direction: column; background: #FFFFFF; }
.cta-pn .pn-top { flex: none; height: 42px; display: flex; align-items: center; gap: 14px; padding: 0 18px; border-bottom: 1px solid #E8EDEA; font-size: 12px; color: #343D39; }
.cta-pn .pn-top .f { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.cta-pn .pn-top .f em { font-style: normal; padding: 0 6px; border-radius: 999px; background: #E8EDEA; font-size: 10.5px; font-weight: 600; }
.cta-pn .pn-body { flex: 1; min-height: 0; overflow: hidden; padding: 14px 22px 0; display: flex; flex-direction: column; gap: 10px; }
.cta-pn .pn-bc { font-size: 11px; color: #8B9691; }
.cta-pn .pn-bc b { font-weight: 500; color: #343D39; }
.cta-pn .pn-h { display: flex; flex-direction: column; gap: 4px; }
.cta-pn .pn-h h4 { margin: 0; font-size: 21px; font-weight: 600; letter-spacing: -0.02em; color: #0A110E; }
.cta-pn .pn-h p { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 11px; color: #687370; }
.cta-pn .pn-h p em { font-style: normal; padding: 2px 6px; border-radius: 4px; border: 1px solid #D4DCD8; font-size: 9px; font-weight: 700; letter-spacing: 0.06em; color: #4D5854; }
.cta-pn .pn-card { border: 1px solid #E8EDEA; border-radius: 10px; background: #FFFFFF; }
.cta-pn .pn-ch { display: flex; align-items: baseline; gap: 8px; padding: 9px 12px; border-bottom: 1px solid #E8EDEA; font-size: 12.5px; font-weight: 600; color: #0A110E; }
.cta-pn .pn-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cta-pn .pn-strip > div { display: flex; gap: 8px; align-items: center; padding: 8px 12px; border-left: 1px solid #E8EDEA; min-width: 0; }
.cta-pn .pn-strip > div:first-child { border-left: 0; }
.cta-pn .pn-strip b { display: flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; color: #0A110E; white-space: nowrap; }
.cta-pn .pn-strip b span { font-size: 10px; font-weight: 500; }
.cta-pn .pn-strip b .ok { color: #00695A; }
.cta-pn .pn-strip b .amb { color: #8A5212; }
.cta-pn .pn-strip small { display: block; font-size: 10.5px; color: #687370; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cta-pn .pn-eq { display: grid; grid-template-columns: minmax(0, 1fr) 26px minmax(0, 1fr) 26px minmax(0, 1fr); align-items: stretch; }
.cta-pn .pn-eq > div { padding: 10px 14px; display: flex; flex-direction: column; gap: 3px; }
.cta-pn .pn-eq .lb { display: flex; align-items: center; gap: 6px; font-size: 9.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #687370; }
.cta-pn .pn-eq b { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; color: #0A110E; font-variant-numeric: tabular-nums; }
.cta-pn .pn-eq .op { align-self: center; justify-self: center; width: 20px; height: 20px; padding: 0; border-radius: 50%; border: 1px solid #D4DCD8; color: #687370; font-size: 12px; line-height: 18px; text-align: center; }
.cta-pn .pn-eq .rec { background: #F4F7F5; border-left: 1px solid #E8EDEA; border-radius: 0 10px 10px 0; }
.cta-pn .pn-eq .rec b { color: #003D33; }
.cta-pn .pn-cr { padding: 10px 12px; display: flex; flex-direction: column; gap: 7px; }
.cta-pn .pn-cr .top { display: flex; align-items: baseline; justify-content: space-between; }
.cta-pn .pn-cr .top b { font-size: 18px; font-weight: 600; color: #0A110E; }
.cta-pn .pn-cr .top small { font-size: 10.5px; color: #687370; }
.cta-pn .pn-bar { display: flex; height: 9px; border-radius: 999px; overflow: hidden; gap: 2px; background: #E8EDEA; }
.cta-pn .pn-bar span { display: block; height: 100%; }
.cta-pn .pn-st { display: grid; grid-template-columns: 9px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 5px 0; border-top: 1px solid #F0F3F1; }
.cta-pn .pn-st i { width: 9px; height: 9px; border-radius: 2px; }
.cta-pn .pn-st b { display: block; font-size: 11.5px; font-weight: 600; color: #1F2724; }
.cta-pn .pn-st small { display: block; font-size: 10.5px; color: #687370; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cta-pn .pn-st em { font-style: normal; text-align: right; font-size: 11.5px; font-weight: 600; color: #0A110E; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cta-float { position: absolute; left: 26px; bottom: 34px; width: 300px; border-radius: 16px; background: #FFFFFF; box-shadow: 0 24px 48px rgba(0,0,0,0.42); overflow: hidden; font-family: var(--wm-font-body); text-align: left; }
.cta-float .h { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid #E8EDEA; font-size: 12.5px; font-weight: 600; color: #00251F; }
.cta-float .h em { font-style: normal; font-size: 9.5px; font-weight: 700; letter-spacing: 0.06em; color: #4D5854; border: 1px solid #D4DCD8; border-radius: 5px; padding: 2px 6px; }
.cta-float .v { padding: 12px 16px 14px; background: #EBF7F3; }
.cta-float .v span { display: block; font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #4D5854; }
.cta-float .v b { display: block; margin-top: 2px; font-size: 26px; font-weight: 600; letter-spacing: -0.02em; color: #003D33; font-variant-numeric: tabular-nums; }
.cta-float .v small { display: block; margin-top: 2px; font-size: 11.5px; color: #4D5854; }
.cta-chip { position: absolute; right: 22px; top: 26px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; background: #FFFFFF; box-shadow: 0 16px 32px rgba(0,0,0,0.35); font-family: var(--wm-font-body); font-size: 12px; line-height: 1.3; color: #1F2724; white-space: nowrap; }
.cta-chip i { width: 7px; height: 7px; border-radius: 50%; background: #00C774; }

/* ---------- Short laptop screens (14"): C1 up to 860 px tall, C2 up to 700 px tall, from 1024 px wide ----------
   Every presentation section fits under the 73 px menu; the illustrative stages shrink (zoom or smaller
   CSS sizes), running text stays at 14 px or more. Nothing changes outside these two bands. */
@media (min-width: 1024px) and (max-height: 860px) {
  .ap-sec-in { padding-top: 64px; padding-bottom: 64px; }
  .ap-hd { margin-bottom: 24px; gap: 14px 56px; }
  .ap-hd > div { gap: 12px; }
  .ap-h2 { font-size: 38px; }
  .ap-lead { font-size: 15px; line-height: 1.55; }

  /* Abertura */
  #abertura .ap-h-in { min-height: 0; padding-top: calc(58px + 64px); padding-bottom: 64px; }

  /* Reforma: compact rail (dots 44 px; the line follows the dot centres) */
  #reforma .t1 { padding: 20px 28px 18px; }
  #reforma .t1-line { left: 50px; top: 42px; right: calc((100% - 104px) / 3 + 6px); }
  #reforma .t1-c { gap: 7px; }
  #reforma .t1-dot { width: 44px; height: 44px; box-shadow: 0 0 0 5px var(--wm-green-50); }
  #reforma .t1-dot svg { width: 20px; height: 20px; }
  #reforma .t1-who { margin-top: 4px; }
  #reforma .t1-c h3 { font-size: 20px; }
  #reforma .t1-c p { min-height: 0; }
  #reforma .t1-x { padding: 10px 14px; gap: 6px; }
  #reforma .t1-ft { margin-top: 12px; }

  /* Como funciona (the three-column diagram is scaled below, above 1080 px) */
  .ap-fcol { gap: 8px; }
  .ap-nt { padding: 10px 14px; }
  .ap-nt-n, .ap-nt p { margin-top: 6px; }

  /* No Painel: shorter crop of the Créditos screen */
  #painel .pn4 { margin-top: 0; min-height: 0; }
  #painel .pn4-tx { padding: 28px 28px 28px 32px; gap: 12px; }
  #painel .pn4 h3 { font-size: 22px; }
  #painel .pn4 ul { gap: 6px; }
  #painel .pn4 li { font-size: 14px; line-height: 1.45; }
  #painel .pn4-mock { padding-top: 40px; }
  #painel .pn4-fr { height: 318px; }

  /* Emissor e Monitor */
  #emissor-monitor .e1-top { padding: 10px 24px; }
  #emissor-monitor .e1-s { padding: 12px 24px; gap: 8px; }
  #emissor-monitor .e1-pi { width: 38px; height: 38px; }
  #emissor-monitor .e1-ph h3 { font-size: 22px; }
  #emissor-monitor .e1-s > p { font-size: 14px; line-height: 1.5; }
  #emissor-monitor .rw { padding-top: 5px; padding-bottom: 5px; }
  #emissor-monitor .e1-res { padding: 12px 24px 14px; }
  #emissor-monitor .e1-rq b { font-size: 22px; }
  #emissor-monitor .e1-rq .hl { padding: 8px 20px; }
  #emissor-monitor .e1-rq .hl b { font-size: 26px; }
  #emissor-monitor .bd { margin-top: 12px; padding: 18px 24px; }
  #emissor-monitor .bd h3 { font-size: 20px; }

  /* Legislação: the chat card is a stage (min-height = the complete conversation) */
  .ap-cp-tx { gap: 12px; }
  .ap-cp-list { gap: 8px; margin-top: 2px; }
  .ap-cp-list li { padding: 9px 14px; }
  .lg-card { zoom: 0.91; }
  .lg-bd { min-height: 445px; }

  /* Perguntas frequentes */
  .ap-faq-in { padding-top: 64px; padding-bottom: 64px; }
  .ap-faq-l { gap: 6px; }
  .ap-faq-q { padding-top: 11px; padding-bottom: 11px; }

  /* Chamada final */
  .ap-cta { padding: 64px 0; }
  .ap-cta-tx h2 { font-size: 38px; }
}
@media (min-width: 1024px) and (max-height: 700px) {
  /* 64 px on top clears the floating section submenu; 44 px below */
  .ap-sec-in { padding-top: 64px; padding-bottom: 44px; }
  .ap-hd { margin-bottom: 20px; gap: 12px 48px; }
  .ap-hd > div { gap: 10px; }
  .ap-h2 { font-size: 34px; }

  /* Abertura: smaller card, no floating callouts (they repeat the card) */
  #abertura .ap-h-in { padding-top: calc(58px + 44px); padding-bottom: 44px; gap: 40px; }
  .ap-h-tx { gap: 16px; }
  .ap-h1 { font-size: 38px; }
  .ap-h-lead { font-size: 15px; line-height: 1.55; }
  .ap-h-mo { zoom: 0.88; }
  .ap-float { display: none; }

  /* Reforma: dots 40 px */
  #reforma .ap-hd { margin-bottom: 16px; }
  #reforma .t1 { padding: 14px 24px 12px; }
  #reforma .t1-line { left: 42px; top: 32px; right: calc((100% - 96px) / 3 + 6px); }
  #reforma .t1-c { gap: 5px; }
  #reforma .t1-dot { width: 36px; height: 36px; box-shadow: 0 0 0 4px var(--wm-green-50); }
  #reforma .t1-dot svg { width: 17px; height: 17px; }
  #reforma .t1-who { margin-top: 0; }
  #reforma .t1-who em { font-size: 20px; }
  #reforma .t1-c h3 { font-size: 18px; }
  #reforma .t1-c p { font-size: 14px; line-height: 1.45; }
  #reforma .t1-x { padding: 8px 14px; gap: 4px; }
  #reforma .t1-ft { margin-top: 8px; }

  /* No Painel */
  #painel .pn4-tx { padding: 24px 24px 24px 28px; gap: 12px; }
  #painel .pn4 h3 { font-size: 20px; }
  #painel .pn4-mock { padding-top: 34px; }
  #painel .pn4-fr { height: 268px; }

  /* Emissor e Monitor */
  #emissor-monitor .e1-top { padding: 5px 20px; }
  #emissor-monitor .e1-s { padding: 10px 20px; gap: 6px; }
  #emissor-monitor .e1-ph { gap: 10px; }
  #emissor-monitor .e1-pi { width: 32px; height: 32px; }
  #emissor-monitor .e1-pi svg { width: 17px; height: 17px; }
  #emissor-monitor .e1-ph h3 { font-size: 20px; margin-top: 2px; }
  #emissor-monitor .rw { padding-top: 4px; padding-bottom: 4px; }
  #emissor-monitor .e1-res { padding: 8px 20px 10px; }
  #emissor-monitor .e1-rq { gap: 10px 24px; }
  #emissor-monitor .e1-rq b { font-size: 22px; }
  #emissor-monitor .e1-rq .hl { padding: 6px 18px; }
  #emissor-monitor .e1-rq .hl b { font-size: 24px; }
  #emissor-monitor .bd { padding: 16px 22px; }
  #emissor-monitor .bd h3 { font-size: 19px; }
  #emissor-monitor .bd-b a, #emissor-monitor .bd-b a:hover { padding: 11px 18px; font-size: 14.5px; }

  /* Legislação: wider text column (the zoomed chat keeps its complete height) */
  #legislacao .ap-sec-in { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 48px; }
  .ap-cp-tx { gap: 10px; }
  .ap-cp-list { gap: 6px; margin-top: 0; }
  .ap-cp-tx .ap-h2 { font-size: 32px; }
  .ap-cp-list li { grid-template-columns: 30px minmax(0, 1fr); gap: 10px; padding: 7px 12px; }
  .ap-cp-list li > span { width: 30px; height: 30px; }
  .ap-cp-list b { font-size: 15px; }
  .lg-card { zoom: 0.8; }
  .lg-hd { padding-top: 9px; padding-bottom: 9px; }
  .lg-in { padding-top: 8px; padding-bottom: 10px; }
  .lg-bd { padding: 10px; gap: 8px; min-height: 433px; }

  /* Perguntas frequentes */
  .ap-faq-in { padding-top: 64px; padding-bottom: 44px; }
  .ap-faq-hd p { font-size: 15px; }
  .ap-faq-q { padding: 10px 20px; font-size: 15px; }
  .ap-faq-a { padding: 0 20px 12px; line-height: 1.5; }

  /* Chamada final: smaller Painel cut-out */
  .ap-cta { --cta-w: clamp(360px, 30vw, 420px); padding: 64px 0 44px; }
  .ap-cta-tx h2 { font-size: 34px; }
  .ap-cta-tx p { font-size: 15px; }
}
/* Multi-column layouts inside C1/C2: the Como funciona diagram is scaled as a stage and the No Painel
   card gets a wider text column, so the text is no taller than the cropped screen. Tablets in landscape
   (1024-1080 px, where the design stacks both) get the same side-by-side layout (TABLET-SPEC). */
@media (min-width: 1024px) and (max-height: 860px) {
  .ap-flow { zoom: 0.9; }
  #painel .pn4 { grid-template-columns: minmax(300px, 440px) minmax(0, 1fr); }
}
@media (min-width: 1024px) and (max-height: 700px) {
  .ap-flow { zoom: 0.8; }
  #painel .pn4 { grid-template-columns: minmax(300px, 460px) minmax(0, 1fr); }
}

/* ---------- Tablets in landscape (1024-1199 px wide, inside C1/C2) ---------- */
/* Section header in two columns, as above 1099 px */
@media (min-width: 1024px) and (max-width: 1099px) and (max-height: 860px) {
  .ap-hd { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
}
/* Como funciona: the three columns and their dashed bus, as above 1080 px */
@media (min-width: 1024px) and (max-width: 1080px) and (max-height: 860px) {
  .ap-flow { grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr) minmax(0, 1fr); gap: 44px; }
  #como-funciona .ap-fcol > .ap-src::before, #como-funciona .ap-fcol > .ap-src::after, #como-funciona .ap-fcol > .ap-nt::before, #como-funciona .ap-fcol > .ap-nt::after, #como-funciona .ap-fcol > .ap-out::before, #como-funciona .ap-fcol > .ap-out::after { display: block; }
  .ap-core::before, .ap-core::after { top: 50%; bottom: auto; width: 22px; height: 2px; background: repeating-linear-gradient(90deg, var(--wm-green-300) 0 6px, transparent 6px 10px); }
  .ap-core::before { left: -22px; right: auto; }
  .ap-core::after { left: auto; right: -22px; }
  /* No Painel: text beside the cropped screen */
  #painel .pn4 { grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); }
  #painel .pn4-mock { padding-left: 0; }
}
/* Emissor e Monitor from 1130 px: one line per note (status column sized to the widest pill) */
@media (min-width: 1130px) and (max-width: 1239px) and (max-height: 860px) {
  #emissor-monitor .rw { grid-template-columns: minmax(0, 1fr) auto 162px; column-gap: 8px; row-gap: 0; padding-left: 12px; padding-right: 12px; }
  #emissor-monitor .rw .s { grid-column: auto; justify-self: end; }
  #emissor-monitor .rw.h .s { display: block; }
}
@media (min-width: 1130px) and (max-width: 1239px) and (max-height: 700px) {
  #emissor-monitor .e1-s { padding-left: 16px; padding-right: 16px; }
}
/* 1024-1199 px inside C1 too: the compact C2 composition of Reforma, Emissor e Monitor and Legislação
   (narrower columns wrap more lines than on a notebook) */
@media (min-width: 1024px) and (max-width: 1199px) and (max-height: 860px) {
  #reforma .ap-hd { margin-bottom: 16px; }
  #reforma .t1 { padding: 14px 24px 12px; }
  #reforma .t1-line { left: 42px; top: 32px; right: calc((100% - 96px) / 3 + 6px); }
  #reforma .t1-c { gap: 5px; }
  #reforma .t1-dot { width: 36px; height: 36px; box-shadow: 0 0 0 4px var(--wm-green-50); }
  #reforma .t1-dot svg { width: 17px; height: 17px; }
  #reforma .t1-who { margin-top: 0; }
  #reforma .t1-who em { font-size: 20px; }
  #reforma .t1-c h3 { font-size: 18px; }
  #reforma .t1-c p { font-size: 14px; line-height: 1.45; }
  #reforma .t1-x { padding: 8px 14px; gap: 4px; }
  #reforma .t1-ft { margin-top: 8px; }
  #emissor-monitor .e1-top { padding: 5px 20px; }
  #emissor-monitor .e1-ph { gap: 10px; }
  #emissor-monitor .e1-pi { width: 32px; height: 32px; }
  #emissor-monitor .e1-pi svg { width: 17px; height: 17px; }
  #emissor-monitor .e1-ph h3 { font-size: 20px; margin-top: 2px; }
  #emissor-monitor .rw { padding-top: 3px; padding-bottom: 3px; row-gap: 3px; }
  #emissor-monitor .e1-res { padding: 8px 20px 10px; }
  #emissor-monitor .e1-rq .hl { padding: 6px 18px; }
  #legislacao .ap-sec-in { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 48px; }
  .ap-cp-tx .ap-h2 { font-size: 32px; }
  /* The chat card is narrower here: its min-height covers the complete conversation at 1024 px */
  .lg-card { zoom: 0.8; }
  .lg-bd { min-height: 510px; }
}

/* ---------- Tablets in portrait (700-960 px wide) ----------
   Emissor e Monitor: the two sides of the razonete stay side by side (stacked, the stage was taller than
   an iPad screen); long note names wrap instead of being cut. */
@media (min-width: 700px) and (max-width: 960px) {
  #emissor-monitor .e1-t { grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr); }
  #emissor-monitor .e1-sp { height: auto; }
  #emissor-monitor .e1-s { padding: 22px 12px 20px; }
  #emissor-monitor .rw { grid-template-columns: minmax(0, 1fr) auto; row-gap: 6px; padding-left: 12px; padding-right: 12px; }
  #emissor-monitor .rw > span:first-child { white-space: normal; }
  #emissor-monitor .rw .s { grid-column: 1 / -1; justify-self: start; }
  #emissor-monitor .rw.h .s { display: none; }
  #emissor-monitor .e1-res { padding: 18px 24px 20px; }
}

/* ---------- Phones (VFIT-M, up to 699 px) ----------
 * Each panel/demo fits the screen under the 69 px bar where it can: the opening keeps its main CTA above
 * the fold (the two points move under the buttons), the three Reforma steps and the Emissor/Monitor
 * pair become sideways swipe rows (the next card peeks in), and the Painel mock shows whole rows. */
@media (max-width: 699px) {
  /* Abertura: 20 px under the submenu capsule; points after the CTAs. */
  #abertura .ap-h-in { padding-top: 86px; }
  #abertura .ap-h-tx { gap: 16px; }
  #abertura .ap-h-pts { order: 1; }
  /* Conta da guia: the source rows keep only their names; balances side by side, total below. */
  .ap-gc-src small { display: none; }
  .ap-gc-src > div { padding-top: 8px; padding-bottom: 8px; }
  .ap-gc-eq { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 10px; padding: 12px 18px 4px; }
  .ap-gc-c.hl { grid-column: 1 / -1; }

  /* Reforma: swipe row of the three steps. */
  #reforma .t1 { padding: 18px 0 18px 18px; }
  #reforma .t1-g { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 84%; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-left: 18px; scrollbar-width: none; padding-right: 18px; }
  #reforma .t1-g::-webkit-scrollbar { display: none; }
  #reforma .t1-c { scroll-snap-align: start; }

  /* Painel: the text tightens; the mock shows three whole rows instead of a fourth and fifth cut off. */
  #painel .pn4-tx { padding: 20px 20px 4px; gap: 10px; }
  #painel .pn4-k .sq { display: none; }
  #painel .pn4 h3 { font-size: 22px; }
  #painel .pn4 ul { gap: 8px; }
  #painel .pn4 li { font-size: 14.5px; line-height: 1.45; }
  #painel .pn4-mock { padding-top: 36px; }
  #painel .pn4-ex { top: 10px; }
  #painel .pn4-fr { height: auto; }
  #painel .pm-top, #painel .pm-bc, #painel .pm-chips, #painel .pm-tb .pm-tr:nth-child(n+4) { display: none; }
  #painel .pm-body { padding-top: 16px; padding-bottom: 18px; }

  /* Emissor e Monitor: Emissor, Monitor and the result are three slides of one swipe row under the
     header (its text stays in place while the row slides). */
  #emissor-monitor .e1 { display: grid; grid-template-rows: auto auto; grid-auto-flow: column; grid-auto-columns: 88%; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; }
  #emissor-monitor .e1::-webkit-scrollbar { display: none; }
  #emissor-monitor .e1-top { grid-row: 1; grid-column: 1 / span 3; }
  #emissor-monitor .e1-top > span { position: sticky; left: 18px; }
  #emissor-monitor .e1-t { display: contents; }
  #emissor-monitor .e1-sp { display: none; }
  #emissor-monitor .e1-s, #emissor-monitor .e1-res { grid-row: 2; scroll-snap-align: start; }
  #emissor-monitor .e1-s { padding: 18px 16px 18px; gap: 12px; }
  #emissor-monitor .e1-s.c, #emissor-monitor .e1-res { border-left: 1px solid var(--wm-border); }
  #emissor-monitor .e1-res { border-top: 0; justify-content: center; padding: 18px 16px; gap: 12px; }
  #emissor-monitor .e1-rq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 8px; }
  #emissor-monitor .e1-rq i { display: none; }
  #emissor-monitor .e1-rq b { font-size: 20px; }
  #emissor-monitor .e1-rq .hl { grid-column: 1 / -1; margin-top: 0; padding: 10px 16px; }
  #emissor-monitor .e1-rq .hl b { font-size: 26px; }

  /* Legislação em Dia: the answer keeps the analysis and the official sources (sources in one or two
     rows); the change history (a third block of the same answer) and the empty input field are left to the larger screens. */
  .lg-txt > div:nth-child(3) { display: none; }
  .lg-bd { min-height: 500px; } /* the full answer, so the card does not grow while it types */
  .lg-u { max-width: 94%; }
  .lg-src span { padding: 3px 7px; font-size: 11.5px; }
  .lg-in { display: none; } /* the decorative "ask" field of the mock */
}
@media (max-width: 380px) {
  /* Small phones: the Painel mock keeps two rows and the points use 14 px, and the Legislação chat is a little
     tighter, so both cards fit 360x640. */
  #painel .pm-tb .pm-tr:nth-child(n+3) { display: none; }
  #painel .pn4 li { font-size: 14px; }
  #painel .pn4-tx { gap: 8px; }
  #painel .pn4 ul { gap: 6px; }
  .lg-hd { padding-top: 10px; padding-bottom: 10px; }
  .lg-bd { gap: 8px; padding: 12px; min-height: 490px; }
}
/* Abertura, portrait tablets and large phones (561-1023 px; BrowserStack iPad 820 / Galaxy Tab 753): "Pede conferência"
   sat over the card title, so it moves to the top-right corner, above the "Só CBS" badge, in the gap over the card;
   "1.358 débitos" rises into the footer band so the cookie notice (fixed at the bottom) no longer covers it. */
@media (min-width: 561px) and (max-width: 1199px) {
  .ap-float.f1 { left: auto; right: -8px; top: -30px; }
  .ap-float.f2 { bottom: 18px; }
}
/* 1024-1199 (iPad 13" portrait, landscape tablets): the card title sits higher here, so the badge rises 8 px more. */
@media (min-width: 1024px) and (max-width: 1199px) { .ap-float.f1 { top: -38px; } }
