.mode-explainer-page {
  --paper: #fffdf8;
  --ink: #26324c;
  --muted: #6b7a96;
  --line: #d9e3ef;
  --soft-blue: #eef6ff;
  background:
    linear-gradient(90deg, transparent 0 47px, rgba(244,114,182,.18) 47px 49px, transparent 49px),
    repeating-linear-gradient(0deg, #f8f4e9 0 31px, #e9e5da 32px, #f8f4e9 33px);
  color: var(--ink);
}
.explainer-shell {
  width: min(1480px, calc(100% - 40px));
  margin: 0 auto;
  padding-top: .4rem;
}
.explainer-title-card,
.mode-selector-card,
.mode-explanation,
.explainer-footer-note {
  border: 1px solid rgba(164,177,197,.45);
  background: rgba(255,253,248,.96);
  box-shadow: 0 12px 35px rgba(66,62,52,.08);
}
.explainer-title-card {
  display:flex;
  align-items:center;
  gap:1rem;
  padding:1rem 1.2rem;
  border-radius: 22px;
}
.explainer-title-icon {
  width:48px;height:48px;display:grid;place-items:center;flex:0 0 48px;
  border-radius:14px;background:#e8f3ff;color:#2563eb;
}
.explainer-title-icon .material-icons-round { font-size:25px!important; }
.explainer-eyebrow { color:#c2415d;font-size:.69rem;font-weight:900;letter-spacing:.11em;text-transform:uppercase; }
.explainer-title-card h1 { margin:.15rem 0 0;font-size:1.45rem;font-weight:850;letter-spacing:-.02em; }
.explainer-title-card p { margin:.2rem 0 0;color:var(--muted);font-size:.82rem; }
.explainer-version { padding:.32rem .64rem;border:1px solid #bdd4ff;border-radius:999px;background:#f4f8ff;color:#2563eb;font-size:.68rem;font-weight:850;white-space:nowrap; }
.mode-selector-card { margin-top:1rem;padding:.55rem;border-radius:18px; }
.mode-quad-toggle { display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:.38rem; }
.mode-quad-btn { min-width:0;display:flex;align-items:center;justify-content:center;gap:.55rem;padding:.62rem .65rem;border:1px solid transparent;border-radius:13px;background:transparent;color:#66738a;text-align:left;transition:.16s ease; }
.mode-quad-btn:hover { background:#f5f8fc;color:#273551; }
.mode-quad-btn.is-active { border-color:#bcd5fa;background:#edf6ff;color:#143c72;box-shadow:inset 0 0 0 1px rgba(37,99,235,.04); }
.mode-quad-btn>.material-icons-round { font-size:20px!important; }
.mode-quad-btn span:last-child { min-width:0; }
.mode-quad-btn strong,.mode-quad-btn small { display:block; }
.mode-quad-btn strong { font-size:.78rem; }
.mode-quad-btn small { margin-top:.04rem;color:#8390a5;font-size:.6rem; }
.mode-explanation { margin-top:1rem;padding:1.2rem;border-radius:23px; }
.mode-explanation[hidden] { display:none!important; }
.mode-intro { display:grid;grid-template-columns:minmax(0,1.8fr) minmax(270px,.72fr);gap:1rem;padding:1.05rem;border:1px solid #cfe2fb;border-radius:20px;background:linear-gradient(120deg,#f8fcff,#eaf6ff); }
.mode-intro--green { background:linear-gradient(120deg,#fbfffd,#eafaf2);border-color:#c7ead8; }
.mode-intro--orange { background:linear-gradient(120deg,#fffdf8,#fff5e8);border-color:#f1dcc0; }
.mode-intro--purple { background:linear-gradient(120deg,#fdfbff,#f4efff);border-color:#ddd0f7; }
.mode-intro--blue { background:linear-gradient(120deg,#f8fcff,#eaf6ff);border-color:#cfe2fb; }
.mode-tag { display:inline-flex;padding:.25rem .55rem;border-radius:999px;background:#e7f0ff;color:#2357b6;font-size:.65rem;font-weight:900;text-transform:uppercase;letter-spacing:.04em; }
.mode-intro h2 { margin:.55rem 0 .35rem;font-size:1.35rem;line-height:1.25; }
.mode-intro p { margin:0;color:#64748b;line-height:1.65;font-size:.83rem; }
.intro-pills { display:flex;flex-wrap:wrap;gap:.4rem;margin-top:.75rem; }
.intro-pills span { padding:.28rem .52rem;border:1px solid rgba(148,163,184,.38);border-radius:999px;background:rgba(255,255,255,.78);font-size:.63rem;font-weight:750;color:#52647e; }
.mode-intro aside { align-self:stretch;padding:1rem;border:1px solid rgba(154,169,187,.35);border-radius:17px;background:rgba(255,255,255,.86);box-shadow:0 8px 20px rgba(41,49,67,.07); }
.mode-intro aside strong { color:#275cc5;font-size:.85rem; }
.mode-intro aside p { margin-top:.5rem; }
.topic-summary { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.55rem;margin:1rem 0; padding:.75rem;border:1px solid #dbe4ee;border-radius:18px;background:#fff; }
.topic-summary button { display:flex;align-items:center;gap:.65rem;min-height:58px;padding:.58rem .7rem;border:1px solid #dfe7f0;border-radius:13px;background:#f8fafc;text-align:left;color:#25324a; }
.topic-summary button:hover { border-color:#b8cef0;background:#f1f6fd; }
.topic-summary b { width:28px;height:28px;display:grid;place-items:center;flex:0 0 28px;border-radius:50%;background:#eaf2ff;color:#2563eb;font-size:.72rem; }
.topic-summary strong,.topic-summary small { display:block; }
.topic-summary strong { font-size:.75rem; }
.topic-summary small { margin-top:.08rem;color:#8090a8;font-size:.63rem; }
.explain-section { scroll-margin-top:92px;margin-top:.9rem;padding:1rem 1.05rem;border:1px solid #dddcd5;border-radius:19px;background:rgba(255,254,250,.93);box-shadow:0 8px 22px rgba(65,60,51,.05); }
.section-label { display:inline-flex;padding:.23rem .5rem;border-radius:999px;background:#edf2f8;color:#35465e;font-size:.63rem;font-weight:900;text-transform:uppercase; }
.explain-section h3 { margin:.48rem 0 .45rem;font-size:1.12rem; }
.explain-section>p { color:#63738d;font-size:.82rem;line-height:1.65; }
.info-card-grid { display:grid;gap:.7rem;margin-top:.8rem; }
.info-card-grid.two { grid-template-columns:repeat(2,minmax(0,1fr)); }
.info-card-grid.three { grid-template-columns:repeat(3,minmax(0,1fr)); }
.info-card-grid>div { padding:.85rem .9rem;border:1px solid #dae2eb;border-radius:15px;background:#fff; }
.info-card-grid .material-icons-round { width:31px;height:31px;display:grid;place-items:center;margin-bottom:.45rem;border-radius:9px;background:#eff5ff;font-size:17px!important; }
.info-card-grid strong { display:block;font-size:.81rem; }
.info-card-grid p,.info-card-grid li { margin:.28rem 0 0;color:#6b7c96;font-size:.76rem;line-height:1.55; }
.info-card-grid ul { margin:.4rem 0 0;padding-left:1.05rem; }
.formula-stack { display:grid;gap:.45rem;margin-top:.75rem; }
.formula-stack code { display:block;padding:.65rem .75rem;border:1px solid #d9e3ef;border-radius:11px;background:#f6f9fc;color:#26466d;font-size:.73rem;white-space:normal; }
.callout { display:flex;gap:.7rem;align-items:flex-start;margin-top:.7rem;padding:.8rem .9rem;border-radius:14px;font-size:.78rem;line-height:1.55; }
.callout .material-icons-round { flex:0 0 auto;font-size:19px!important; }
.callout strong { display:block;margin-bottom:.2rem; }
.callout p { margin:0; }
.callout.blue { border:1px solid #bdd8ff;background:#f2f8ff;color:#365d8d; }
.callout.green { border:1px solid #bde8ce;background:#f1fbf5;color:#346b4b; }
.callout.amber { border:1px solid #f0d5a8;background:#fff9ee;color:#785d2e; }
.number-list { margin:.75rem 0 0;padding-left:1.3rem;color:#62728b;font-size:.8rem;line-height:1.75; }
.state-positive { border-color:#bde5ca!important;background:#f3fbf6!important; }
.state-negative { border-color:#f2c8c8!important;background:#fff7f7!important; }
.explainer-footer-note { display:flex;align-items:flex-start;gap:.55rem;margin-top:1rem;padding:.75rem .9rem;border-radius:15px;color:#65758c;font-size:.75rem; }
.explainer-footer-note .material-icons-round { font-size:18px!important; }
.explainer-footer-note a { font-weight:800;color:#2563eb; }
@media(max-width:900px){.explainer-shell{width:calc(100% - 20px)}.mode-quad-toggle{grid-template-columns:repeat(2,minmax(0,1fr))}.mode-intro{grid-template-columns:1fr}.info-card-grid.three{grid-template-columns:1fr 1fr}}
@media(max-width:620px){.explainer-title-card{align-items:flex-start}.explainer-version{margin-left:auto}.topic-summary,.info-card-grid.two,.info-card-grid.three{grid-template-columns:1fr}.mode-quad-btn{justify-content:flex-start}.explainer-title-card p{display:none}}

/* ===== v4.4.5 — página de informações mais robusta e didática ===== */
.explainer-controlbar {
  margin-top: .8rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .75rem;
  align-items: center;
  padding: .72rem;
  border: 1px solid rgba(164,177,197,.45);
  border-radius: 18px;
  background: rgba(255,253,248,.96);
  box-shadow: 0 10px 26px rgba(66,62,52,.06);
}
.explainer-controlbar__facts { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.55rem; }
.explainer-controlbar__facts article { min-width:0;display:flex;align-items:center;gap:.55rem;padding:.58rem .65rem;border:1px solid #e1e7ef;border-radius:12px;background:#fff; }
.explainer-controlbar__facts article>.material-icons-round { width:31px;height:31px;flex:0 0 31px;display:grid;place-items:center;border-radius:9px;background:#f1f6ff;font-size:17px!important; }
.explainer-controlbar__facts small,.explainer-controlbar__facts strong { display:block; }
.explainer-controlbar__facts small { color:#8a96a8;font-size:.57rem;font-weight:800;text-transform:uppercase;letter-spacing:.04em; }
.explainer-controlbar__facts strong { margin-top:.06rem;color:#2d3c55;font-size:.69rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }
.explainer-controlbar__actions { display:flex;gap:.4rem; }
.explainer-action { min-height:36px;display:inline-flex;align-items:center;justify-content:center;gap:.35rem;padding:.38rem .62rem;border:1px solid #dbe5f0;border-radius:10px;background:#fff;color:#52657d;text-decoration:none;font-size:.68rem;font-weight:800;white-space:nowrap; }
.explainer-action:hover { background:#f4f8fc;color:#24528b; }
.explainer-action--primary { border-color:#c4d8f7;background:#eef6ff;color:#1d4ed8; }
.explainer-action .material-icons-round { font-size:17px!important; }

.mode-operation-flow { margin: .9rem 0 0; padding:.85rem;border:1px solid #dfe6ee;border-radius:18px;background:#fff; }
.mode-operation-flow__head { display:flex;align-items:center;justify-content:space-between;gap:.7rem;margin-bottom:.65rem; }
.mode-operation-flow__head h3 { margin:.25rem 0 0;font-size:.95rem; }
.flow-badge { display:inline-flex;align-items:center;gap:.25rem;padding:.26rem .48rem;border:1px solid #d8e3ef;border-radius:999px;background:#f8fbff;color:#5e708a;font-size:.6rem;font-weight:800; }
.flow-badge .material-icons-round { font-size:14px!important; }
.mode-operation-flow__grid { display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:.5rem; }
.flow-step { position:relative;min-width:0;padding:.68rem;border:1px solid #e1e7ef;border-radius:13px;background:#fbfdff; }
.flow-step__number { position:absolute;top:.46rem;right:.5rem;width:20px;height:20px;display:grid;place-items:center;border-radius:50%;background:#eef4ff;color:#2563eb;font-size:.58rem;font-weight:900; }
.flow-step__icon { width:31px;height:31px;display:grid;place-items:center;margin-bottom:.45rem;border-radius:9px;background:#edf6ff;color:#2563eb; }
.flow-step:nth-child(2) .flow-step__icon { background:#fff6e9;color:#ea580c; }
.flow-step:nth-child(3) .flow-step__icon { background:#effaf3;color:#059669; }
.flow-step:nth-child(4) .flow-step__icon { background:#f5f0ff;color:#7c3aed; }
.flow-step:nth-child(5) .flow-step__icon { background:#fff1f2;color:#dc4664; }
.flow-step__icon .material-icons-round { font-size:17px!important; }
.flow-step strong { display:block;color:#293851;font-size:.7rem; }
.flow-step p { margin:.23rem 0 0;color:#728097;font-size:.64rem;line-height:1.48; }

.explain-section { padding:0!important;overflow:hidden;transition:border-color .18s ease,box-shadow .18s ease; }
.explain-section:hover { border-color:#cbd8e7; }
.explain-section__toggle { width:100%;display:grid;grid-template-columns:38px minmax(0,1fr) auto 24px;gap:.62rem;align-items:center;padding:.72rem .8rem;border:0;background:transparent;text-align:left;color:inherit; }
.explain-section__toggle:hover { background:#fbfcfe; }
.explain-section__icon { width:36px;height:36px;display:grid;place-items:center;border-radius:11px;background:#eef5ff;color:#2563eb; }
.explain-section__icon.tone-2 { background:#fff5e8;color:#ea580c; }
.explain-section__icon.tone-3 { background:#ecfdf5;color:#059669; }
.explain-section__icon.tone-4 { background:#f5f0ff;color:#7c3aed; }
.explain-section__icon.tone-5 { background:#fff1f2;color:#dc4664; }
.explain-section__icon .material-icons-round { font-size:19px!important; }
.explain-section__heading { min-width:0; }
.explain-section__heading small,.explain-section__heading strong { display:block; }
.explain-section__heading small { color:#6e7d92;font-size:.58rem;font-weight:900;text-transform:uppercase;letter-spacing:.055em; }
.explain-section__heading strong { margin-top:.08rem;color:#26344b;font-size:.88rem;line-height:1.25; }
.explain-section__status { padding:.18rem .42rem;border:1px solid #dce5ef;border-radius:999px;background:#f8fafc;color:#748297;font-size:.56rem;font-weight:800; }
.explain-section__chevron { color:#55718e;font-size:19px!important;transition:transform .18s ease; }
.explain-section[data-open="true"] .explain-section__chevron { transform:rotate(180deg); }
.explain-section__body { padding:0 .95rem .95rem;border-top:1px solid #eef1f4;max-height:5000px;opacity:1;transition:max-height .25s ease,opacity .18s ease,padding .2s ease; }
.explain-section__body>p:first-child { margin-top:.8rem; }
.explain-section.is-collapsed .explain-section__body { max-height:0;overflow:hidden;opacity:0;padding-top:0;padding-bottom:0;border-top-color:transparent; }
.explain-section.is-collapsed { box-shadow:none; }

.topic-summary button { position:relative;overflow:hidden; }
.topic-summary button::after { content:'Abrir';margin-left:auto;padding:.12rem .34rem;border-radius:999px;background:#eef4ff;color:#4b69a0;font-size:.52rem;font-weight:850;text-transform:uppercase; }
.info-card-grid>div { position:relative;overflow:hidden; }
.info-card-grid>div::before { content:'';position:absolute;left:0;top:0;bottom:0;width:3px;background:#dbeafe; }
.info-card-grid>div:nth-child(2n)::before { background:#fed7aa; }
.info-card-grid>div:nth-child(3n)::before { background:#bbf7d0; }
.formula-stack code { position:relative;padding-left:2.2rem; }
.formula-stack code::before { content:'ƒx';position:absolute;left:.7rem;top:.62rem;color:#2563eb;font-weight:900;font-size:.62rem; }

@media(max-width:1080px){.explainer-controlbar{grid-template-columns:1fr}.explainer-controlbar__actions{justify-content:flex-end}.mode-operation-flow__grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.explainer-controlbar__facts{grid-template-columns:1fr}.mode-operation-flow__grid{grid-template-columns:1fr 1fr}.explainer-controlbar__actions{display:grid;grid-template-columns:1fr 1fr}.explain-section__toggle{grid-template-columns:36px minmax(0,1fr) 22px}.explain-section__status{display:none}}
@media(max-width:520px){.mode-operation-flow__grid{grid-template-columns:1fr}.explainer-controlbar__actions{grid-template-columns:1fr}.mode-operation-flow__head{align-items:flex-start;flex-direction:column}.topic-summary button::after{display:none}}


/* ===== v4.4.9 — fatos com ícones simples ===== */
.explainer-controlbar__facts article>.material-icons-round {
  width:auto!important; height:auto!important; flex:0 0 auto!important; display:inline-block!important;
  border-radius:0!important; background:transparent!important; font-size:22px!important;
}


/* ===== v4.5.0 — fluxo operacional mais didático ===== */
.mode-operation-flow { margin:16px 0; padding:18px; border:1px solid #d7e5f1; border-radius:20px; background:linear-gradient(180deg,#fbfdff,#f7fafc); }
.mode-operation-flow__head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom:14px; }
.mode-operation-flow__head h3 { margin:.25rem 0 0; color:#17375d; font-size:1.2rem; }
.flow-badge { display:inline-flex; align-items:center; gap:5px; padding:6px 10px; border:1px solid #cfe0ee; border-radius:999px; background:#fff; color:#4b6279; font-size:.67rem; font-weight:850; }
.flow-badge .material-icons-round { color:#2563eb; }
.mode-operation-flow__grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.flow-step { position:relative; min-width:0; display:grid; grid-template-columns:34px 44px minmax(0,1fr); gap:9px; align-items:start; padding:14px; border:1px solid #dce7f0; border-radius:16px; background:#fff; box-shadow:0 5px 14px rgba(32,58,83,.035); }
.flow-step__number { width:28px; height:28px; display:grid; place-items:center; border-radius:50%; background:#edf5ff; color:#2563eb; font-size:.72rem; font-weight:900; }
.flow-step__icon { width:40px; height:40px; display:grid; place-items:center; border-radius:12px; background:#f5f8fc; }
.flow-step__icon .material-icons-round { color:#7c3aed; font-size:21px!important; }
.flow-step__content strong { display:block; color:#172f4c; font-size:.85rem; }
.flow-step__content p { margin:3px 0 7px; color:#607086; font-size:.72rem; line-height:1.5; }
.flow-step__check { display:flex; align-items:flex-start; gap:5px; color:#35604f; font-size:.64rem; line-height:1.4; font-weight:700; }
.flow-step__check .material-icons-round { flex:0 0 auto; color:#059669; font-size:15px!important; margin-top:1px; }
@media(max-width:850px){.mode-operation-flow__grid{grid-template-columns:1fr}.mode-operation-flow__head{flex-direction:column}.flow-step{grid-template-columns:30px 38px 1fr;padding:12px}}


/* ===== v4.5.1 — correção do grid do fluxo recomendado ===== */
.mode-operation-flow__grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.flow-step {
  display:grid !important;
  grid-template-columns: 32px 42px minmax(0,1fr) !important;
  gap:10px !important;
  align-items:start !important;
  min-width:0 !important;
}
.flow-step__number {
  position:static !important;
  top:auto !important; right:auto !important;
  width:28px !important; height:28px !important;
  margin:0 !important;
}
.flow-step__icon {
  width:40px !important; height:40px !important;
  margin:0 !important;
}
.flow-step__content { min-width:0 !important; width:auto !important; }
.flow-step__content strong, .flow-step__content p, .flow-step__check {
  max-width:none !important; width:auto !important; white-space:normal !important; word-break:normal !important; overflow-wrap:anywhere;
}
@media (max-width:850px){ .mode-operation-flow__grid{grid-template-columns:1fr !important;} }
