/* ===== Visualizador de imagens (lightbox) ===== */
.guide-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}
.guide-lightbox.open {
  display: flex;
}
.guide-lightbox img {
  max-width: 92vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
.guide-lightbox-caption {
  color: #fff;
  text-align: center;
  margin-top: 12px;
  font-size: 15px;
}
.guide-lightbox-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: #fff;
  color: #111;
  border: 0;
  border-radius: 999px;
  width: 44px;
  height: 44px;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}
.guide-lightbox-back {
  position: absolute;
  top: 14px;
  left: 18px;
  background: #fff;
  color: #111;
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 15px;
  cursor: pointer;
  font-weight: 600;
}
.guide-lightbox-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 95vw;
}
img.diagram-img {
  cursor: zoom-in;
}

/* ===== Layout v2 e complementos (v3.8 … v6.0) ===== */
:root {
  --safe-area-inset-top: env(safe-area-inset-top, 0px);
  --topbar-h: 72px;
  --side-w: 270px;
}
body {
  font-size: 16px;
}
/* ---------- Top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  gap: 20px;
  padding: 0 24px;
  z-index: 60;
}
.topbar .top-nav {
  display: none;
}
.topbar-right {
  flex: 1;
  flex-direction: row;
  justify-content: flex-end;
  flex-wrap: nowrap;
  min-width: 0;
}
.gsearch-slot {
  flex: 1;
  max-width: 560px;
  min-width: 0;
  position: relative;
}
.whatsapp-btn {
  padding: 12px 18px;
  font-size: 15px;
  order: 2;
}
.gsearch input::-webkit-search-cancel-button {
  display: none;
}
.gsearch {
  position: relative;
}
.gsearch input {
  width: 100%;
  height: 48px;
  padding: 0 44px 0 46px;
  border: 2px solid var(--border-strong);
  border-radius: 12px;
  font: inherit;
  font-size: 16px;
  color: var(--text);
  background: #fff;
  outline: none;
  transition: var(--transition);
}
.gsearch input:focus {
  border-color: var(--accent);
  box-shadow: var(--focus-ring);
}
.gsearch .gs-ico {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: var(--muted);
  pointer-events: none;
}
.gsearch .gs-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: var(--soft);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 18px;
  color: var(--muted);
  cursor: pointer;
  display: none;
}
.gsearch.has-q .gs-clear {
  display: block;
}
.gs-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  max-height: min(70vh, 560px);
  overflow: auto;
  padding: 6px;
  display: none;
  z-index: 80;
}
.gs-panel.open {
  display: block;
}
.gs-item {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 12px 14px;
  border-radius: 10px;
  cursor: pointer;
  font: inherit;
  color: var(--text);
}
.gs-item:hover,
.gs-item.sel {
  background: var(--accent-light);
}
.gs-item b {
  display: block;
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.35;
}
.gs-item span {
  display: block;
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 3px;
}
.gs-item mark {
  background: #fde68a;
  color: inherit;
  border-radius: 3px;
  padding: 0 1px;
}
.gs-empty {
  padding: 16px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}
.gs-empty a {
  color: #16995a;
  font-weight: 700;
}
.gs-head {
  padding: 8px 14px 4px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ---------- Layout with sidebar ---------- */
.layout {
  display: grid;
  grid-template-columns: var(--side-w) minmax(0, 1fr);
  align-items: start;
}
.sidebar {
  display: block;
  padding: 20px 12px;
  top: var(--topbar-h);
  height: calc(100vh - var(--topbar-h));
}
.sidebar-title {
  display: none;
  margin: 0 12px 10px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}
.side-nav {
  gap: 4px;
}
.side-nav button {
  padding: 8px 10px;
  gap: 12px;
  font-size: 15.5px;
  min-height: 56px;
}
.side-nav button.active::before {
  left: -12px;
}
.nav-thumb {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 3px;
}
.nav-thumb-icon {
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 800;
  color: var(--muted);
  background: var(--soft);
}
.side-nav button.active .nav-thumb {
  border-color: var(--accent);
}
.nav-label {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.nav-label small {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
  margin-top: 2px;
}
.side-home {
  margin-bottom: 2px;
}
.side-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2px;
  background: #fff;
}
.side-group.open {
  background: var(--soft);
}
.side-nav .side-group-btn {
  font-weight: 700;
  color: var(--text);
  background: #fff;
  border: 1px solid transparent;
}
.side-nav .side-group-btn:hover {
  background: #fff;
  border-color: var(--border-strong);
}
.side-nav .side-group-btn.has-sel {
  color: var(--accent-strong);
  background: var(--accent-light);
}
.side-caret {
  margin-left: auto;
  font-size: 14px;
  color: var(--muted);
  transition: transform 0.2s ease;
}
.side-group.open .side-caret {
  transform: rotate(180deg);
}
.side-group-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px 0 2px;
  animation: fadeIn 0.15s ease;
}
.side-nav .side-group-list button.active::before {
  left: -5px;
}
.side-nav .side-group-list button:hover {
  background: #fff;
}
.side-nav .side-group-list button.active {
  background: var(--accent-light);
}
.side-extra {
  margin-bottom: 8px;
}
main {
  padding: 28px 40px 56px;
  max-width: 1080px;
  width: 100%;
}

/* ---------- Breadcrumb + header ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  color: var(--muted);
  margin-bottom: 14px;
}
.crumbs button {
  border: 0;
  background: none;
  padding: 4px 0;
  font: inherit;
  color: var(--accent-strong);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.crumb-cur {
  color: var(--text);
  font-weight: 600;
}
.page-head {
  display: flex;
  align-items: center;
  gap: 22px;
}
.page-head-photo {
  margin: 0 !important;
  max-width: none !important;
  width: 110px !important;
  height: 110px !important;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 8px;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.page-heading {
  font-size: 34px;
}
.content-card {
  margin-top: 22px;
}
.content-card.is-product {
  padding: 0 28px 28px;
}
.content-card.is-product > h2,
.content-card.is-product > #card-description {
  display: none;
}
.content-card.is-home > h2 {
  display: none;
}
.content-card.is-home > #card-description {
  max-width: none;
  font-size: 15.5px;
}

/* ---------- Tabs ---------- */
.tabs-bar {
  position: sticky;
  top: var(--topbar-h);
  z-index: 30;
  background: #fff;
  margin: 0 -28px;
  padding: 18px 28px 0;
  border-bottom: 1px solid var(--border);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.tabs-bar > .back-btn {
  display: none;
}
.tabs-bar .options-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 10px;
}
.tabs-bar .options-grid {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.tabs-bar .option-btn {
  flex: 0 0 auto;
  min-height: 52px;
  padding: 12px 18px;
  border: 2px solid transparent;
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  box-shadow: none;
  background: var(--soft);
  color: var(--text-soft);
  font-size: 15.5px;
  font-weight: 700;
  margin-bottom: -1px;
}
.tabs-bar .option-btn:hover {
  background: var(--accent-light);
  color: var(--accent-strong);
  border-color: transparent;
}
.tabs-bar .option-btn.active {
  background: #fff;
  color: var(--accent-strong);
  border-color: var(--border);
  border-top: 3px solid var(--accent);
  position: relative;
}
.tabs-bar .option-btn.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: #fff;
}
.is-product .sub-section {
  margin-top: 22px;
  padding-top: 0;
  border-top: 0;
}

/* exam type segmented */
.sub-section .exam-submenu {
  padding: 16px 18px;
  background: #fffbeb;
  border-color: #fde68a;
}
.sub-section .exam-submenu .options-title {
  font-size: 16px;
}
.sub-section .exam-submenu .option-btn.active {
  border: 2px solid var(--accent);
  background: var(--accent-light);
  color: var(--accent-strong);
}
.sub-section .exam-submenu .option-btn.active::after {
  content: "✓";
  margin-left: auto;
  font-weight: 800;
}

/* ---------- Toolbar & accordions ---------- */
.acc-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.acc-hint {
  flex: 1;
  min-width: 200px;
  color: var(--muted);
  font-size: 14.5px;
}
.tool-btn {
  border: 1px solid var(--border-strong);
  background: #fff;
  color: var(--text-soft);
  font: inherit;
  font-size: 14.5px;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  min-height: 44px;
}
.tool-btn:hover {
  background: var(--soft);
  color: var(--text);
}
.sub-section:not(:has(.guide-accordion-btn, .scenario-btn)) .acc-toolbar {
  display: none;
}
.guide-accordion-btn,
.scenario-btn {
  min-height: 60px;
  font-size: 16.5px;
}
.guide-accordion-btn .icon-left,
.scenario-btn .icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent-light);
  font-size: 12px;
}
.flash {
  animation: flash 2.2s ease;
}
@keyframes flash {
  0%,
  40% {
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.7);
    background: #fffbeb;
  }
  100% {
    box-shadow: none;
  }
}
tr.flash td {
  animation: flashbg 2.2s ease;
}
@keyframes flashbg {
  0%,
  40% {
    background: #fde68a;
  }
  100% {
    background: transparent;
  }
}

/* ---------- Home ---------- */
.home {
  margin-top: 22px;
}
.home-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 12px;
}
.home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
}
.home-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.home-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}
.home-card-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 18px 12px 14px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  color: var(--text);
}
.home-card-main img {
  height: 110px;
  width: 100%;
  object-fit: contain;
  margin-bottom: 8px;
}
.home-card-main strong {
  font-size: 17px;
}
.home-card-main small {
  font-size: 13.5px;
  color: var(--muted);
}
.home-card-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--border);
}
.home-card-links button {
  border: 0;
  background: var(--soft);
  font: inherit;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-soft);
  padding: 12px 6px;
  cursor: pointer;
  min-height: 46px;
}
.home-card-links button + button {
  border-left: 1px solid var(--border);
}
.home-card-links button:hover {
  background: var(--accent-light);
  color: var(--accent-strong);
}
.home-tip {
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: 12px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e3a8a;
  font-size: 15px;
  line-height: 1.6;
}

.home-start {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 20px;
  border-radius: 14px;
  background: var(--accent-light);
  border: 1px solid rgba(208, 36, 47, 0.2);
}
.home-start-ico {
  font-size: 30px;
}
.home-start > div {
  flex: 1;
  min-width: 220px;
}
.home-start strong {
  display: block;
  font-size: 17px;
  color: var(--text);
}
.home-start p {
  margin: 4px 0 0;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.55;
}
.home-start-btn {
  border: 0;
  background: var(--accent-gradient);
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 22px;
  border-radius: 12px;
  cursor: pointer;
  min-height: 52px;
  box-shadow: var(--shadow-glow);
}
.home-start-btn:hover {
  filter: brightness(1.06);
}
@media (max-width: 820px) {
  .home-start-ico {
    transform: rotate(90deg);
  }
  .home-start-btn {
    width: 100%;
  }
}
/* back to top */
.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 70;
  border: 0;
  background: var(--text);
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 14.5px;
  padding: 12px 16px;
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  display: none;
}
.to-top.show {
  display: block;
}

/* ---------- Tablet / phone ---------- */
@media (max-width: 980px) {
  :root {
    --side-w: 230px;
  }
  main {
    padding: 24px 24px 48px;
  }
}
@media (max-width: 820px) {
  .topbar {
    position: static;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px 16px;
  }
  .topbar .brand {
    justify-content: space-between;
  }
  .topbar-right {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .gsearch-slot {
    max-width: none;
  }
  .whatsapp-btn {
    width: 100%;
  }
  .layout {
    display: block;
  }
  .sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--border);
    padding: 10px 14px;
  }
  .side-nav {
    gap: 6px;
  }
  .side-nav button {
    min-height: 52px;
  }
  .side-nav button.active::before {
    display: none;
  }
  .side-home {
    margin-bottom: 0;
  }
  .side-extra {
    margin: 0;
  }
  .side-nav:not(:has(.side-group.open)) .side-home,
  .side-nav:not(:has(.side-group.open)) .side-extra {
    display: none;
  }
  .side-nav {
    display: flex;
    flex-direction: column;
  }
  .side-home {
    order: 0;
  }
  .side-extra {
    order: 1;
  }
  .side-group {
    order: 2;
  }
  .side-nav .side-group-btn {
    min-height: 60px;
    border: 2px solid var(--border-strong);
  }
  .side-group-list .nav-thumb {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }
  main {
    padding: 18px 14px 80px;
  }
  .page-head {
    gap: 14px;
  }
  .page-head-photo {
    width: 76px !important;
    height: 76px !important;
    padding: 5px;
    border-radius: 12px;
  }
  .page-heading {
    font-size: 26px;
  }
  .content-card {
    padding: 20px 16px;
  }
  .content-card.is-product {
    padding: 0 14px 20px;
  }
  .tabs-bar {
    top: 0;
    margin: 0 -14px;
    padding: 12px 14px 0;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
  }
  .tabs-bar .options-title {
    display: none;
  }
  .tabs-bar {
    position: static;
  }
  .tabs-bar .options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    overflow: visible;
    padding-bottom: 14px;
  }
  .tabs-bar .option-btn {
    padding: 10px 12px;
    font-size: 14.5px;
    min-height: 56px;
    white-space: normal;
    justify-content: center;
    text-align: center;
    border: 2px solid var(--border);
    border-radius: 12px;
    margin: 0;
  }
  .tabs-bar .option-btn.active {
    border: 2px solid var(--accent);
    background: var(--accent-light);
  }
  .tabs-bar .option-btn.active::after {
    display: none;
  }
  .tabs-bar .option-btn:only-child,
  .tabs-bar .option-btn:last-child:nth-child(odd) {
    grid-column: 1/-1;
  }
  .home-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .home-card-main img {
    height: 84px;
  }
  .home-card-links {
    grid-template-columns: 1fr;
  }
  .home-card-links button + button {
    border-left: 0;
    border-top: 1px solid var(--border);
  }
  .acc-hint {
    min-width: 100%;
  }
  .tool-btn {
    flex: 1;
  }
}
@media (max-width: 600px) {
  .table-container {
    overflow: visible;
  }
  .custom-table {
    min-width: 0 !important;
  }
  .custom-table thead {
    display: none;
  }
  .custom-table,
  .custom-table tbody,
  .custom-table tr,
  .custom-table td {
    display: block;
    width: auto !important;
  }
  .custom-table tr {
    border-bottom: 2px solid var(--border-strong);
    padding: 6px 0;
  }
  .custom-table td {
    border-bottom: 0;
    padding: 8px 16px;
  }
  .custom-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 2px;
  }
  .custom-table td:first-child {
    font-size: 16px;
  }
}
@media print {
  .topbar,
  .sidebar,
  .tabs-bar,
  .acc-toolbar,
  .footer,
  .to-top,
  .crumbs {
    display: none !important;
  }
  .layout {
    display: block;
  }
  .content-card {
    box-shadow: none;
    border: 0;
  }
}
.custom-table ol,
.guide-step-content ol {
  list-style: decimal;
  padding-left: 22px;
}
.custom-table ul,
.guide-step-content ul {
  list-style: disc;
  padding-left: 22px;
}

/* ================= Passo a passo (v3.8) ================= */
.guide-container {
  gap: 14px;
}
.guide-container .guide-accordion-btn {
  gap: 16px;
  padding: 14px 18px;
  min-height: 72px;
  border: 2px solid #d9dee6;
  border-radius: 14px;
  background: #fff;
  text-align: left;
}
.guide-container .guide-accordion-btn .icon-left {
  transform: none !important;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent-strong) !important;
  font-size: 18px;
  font-weight: 800;
  border: 2px solid rgba(208, 36, 47, 0.25);
}
.guide-container .guide-accordion-btn > span:last-child {
  flex: 1;
  font-size: 17px;
  line-height: 1.3;
}
.guide-container .guide-accordion-btn > span[data-of]:last-child::before {
  content: attr(data-of);
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 3px;
}
.guide-container .guide-accordion-btn::after {
  content: "Ver";
  margin-left: auto;
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-strong);
  background: var(--accent-light);
  padding: 7px 14px;
  border-radius: 999px;
}
.guide-container .guide-accordion-btn:has(+ .guide-accordion-content)::after {
  content: "Fechar";
  background: #fff;
  color: var(--muted);
  border: 1px solid var(--border);
}
.guide-container .guide-accordion-btn:has(+ .guide-accordion-content) {
  border-color: var(--accent);
  border-bottom-width: 0;
  border-radius: 14px 14px 0 0;
  background: var(--accent-light);
  box-shadow: none;
}
.guide-container .guide-accordion-btn:has(+ .guide-accordion-content) .icon-left {
  background: var(--accent);
  color: #fff !important;
  border-color: var(--accent);
}
.guide-container .guide-accordion-btn[data-done="1"] .icon-left {
  background: #16995a !important;
  border-color: #16995a !important;
  color: #fff !important;
}
.guide-container .guide-accordion-btn[data-done="1"] > span[data-of]:last-child::before {
  content: attr(data-of) "  ·  ✓ FEITO";
  color: #16995a;
}
.guide-container .guide-accordion-content {
  margin-top: -14px;
  margin-bottom: 6px;
}
.guide-container .guide-accordion-content .guide-step-card {
  border: 2px solid var(--accent);
  border-top: 1px solid rgba(208, 36, 47, 0.2);
  border-left-width: 2px;
  border-radius: 0 0 14px 14px;
  padding: 22px 26px 20px;
  background: #fff;
}
.guide-step-content {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
}
.guide-step-content ul {
  margin: 4px 0;
  padding-left: 24px;
}
.guide-step-content li {
  margin-bottom: 8px;
  padding-left: 2px;
}
.guide-step-content li.warn-li {
  list-style: none;
  margin-left: -24px;
}
.guide-step-content li.warn-li > .highlight-text {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #fcd34d;
  border-left: 5px solid #f59e0b;
  font-size: 15px;
  line-height: 1.5;
  background: #fffbeb;
}
.guide-step-content li.warn-li > .highlight-text::before {
  content: "⚠️";
  flex-shrink: 0;
}
.guide-step-content .diagram-wrap {
  position: relative;
  max-width: 440px !important;
  flex: 1 1 260px !important;
  border-radius: 12px;
  padding: 10px;
}
.guide-step-content .diagram-wrap::after {
  content: "🔍 Ampliar";
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border);
  padding: 4px 8px;
  border-radius: 999px;
  pointer-events: none;
  color: var(--text-soft);
}
.guide-step-content .diagram-caption {
  font-size: 13.5px;
  line-height: 1.4;
  margin-top: 8px;
  color: var(--muted);
}
/* navegação entre passos */
.step-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dashed var(--border-strong);
}
.step-nav button {
  font: inherit;
  font-weight: 700;
  font-size: 15.5px;
  border-radius: 12px;
  padding: 13px 20px;
  min-height: 52px;
  cursor: pointer;
}
.step-prev {
  background: #fff;
  border: 1px solid var(--border-strong);
  color: var(--text-soft);
}
.step-prev:hover {
  background: var(--soft);
}
.step-next {
  background: linear-gradient(135deg, #1fae62, #16995a);
  border: 0;
  color: #fff;
  margin-left: auto;
  box-shadow: var(--shadow-whatsapp);
}
.step-next:hover {
  filter: brightness(1.06);
}
/* barra de progresso */
.step-progress {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
}
.step-progress-txt {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.step-progress-txt span {
  color: var(--muted);
  font-weight: 500;
}
.step-progress-bar {
  flex: 1;
  min-width: 160px;
  height: 10px;
  border-radius: 999px;
  background: var(--soft);
  overflow: hidden;
  border: 1px solid var(--border);
}
.step-progress-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #1fae62, #16995a);
  border-radius: 999px;
  transition: width 0.3s ease;
}
.step-progress button {
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid var(--border-strong);
  background: #fff;
  color: var(--text-soft);
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
}
.step-progress.is-start {
  background: var(--accent-light);
  border-color: rgba(208, 36, 47, 0.2);
}
.step-start {
  background: var(--accent-gradient) !important;
  color: #fff !important;
  border: 0 !important;
  padding: 11px 18px !important;
  font-size: 15px !important;
}
.step-finish {
  padding: 16px 18px;
  border-radius: 12px;
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #065f46;
  font-weight: 600;
  line-height: 1.55;
  margin-top: 14px;
}
.step-finish a {
  color: #047857;
  font-weight: 800;
}
@media (max-width: 820px) {
  .guide-container .guide-accordion-btn {
    padding: 12px 14px;
    gap: 12px;
    min-height: 68px;
  }
  .guide-container .guide-accordion-btn .icon-left {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    font-size: 16px;
  }
  .guide-container .guide-accordion-btn > span:last-child {
    font-size: 16px;
  }
  .guide-container .guide-accordion-btn::after {
    display: none;
  }
  .guide-container .guide-accordion-content .guide-step-card {
    padding: 16px 14px;
  }
  .guide-step-content {
    font-size: 15.5px;
  }
  .guide-step-content ul {
    padding-left: 20px;
  }
  .step-nav button {
    flex: 1 1 100%;
  }
  .step-next {
    order: -1;
  }
}
@media print {
  .step-nav,
  .step-progress {
    display: none !important;
  }
}

@media (max-width: 820px) {
  .to-top {
    font-size: 0;
    width: 48px;
    height: 48px;
    padding: 0;
    right: 12px;
    bottom: 12px;
  }
  .to-top::before {
    content: "↑";
    font-size: 20px;
  }
}

/* ================= Complementos do manual (v4) ================= */
.man-sup {
  margin-top: 22px;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  background: #f8fbff;
  overflow: hidden;
}
.man-sup-h,
.man-extra .man-sup-h {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  padding: 10px 16px;
  background: #eff6ff;
  border-bottom: 1px solid #bfdbfe;
  color: #1e3a8a;
  font-weight: 800;
  font-size: 14.5px;
}
.man-sup-h span {
  font-weight: 500;
  color: #3b5b9a;
  font-size: 13px;
}
.man-sup-b {
  padding: 14px 18px 16px;
}
.man-sup .man-sup-h:not(:first-child) {
  border-top: 1px solid #bfdbfe;
}
.man-extra .man-sup-h {
  border-radius: 10px 10px 0 0;
  border: 1px solid #bfdbfe;
}
.man-extra .man-sup-b {
  border: 1px solid #bfdbfe;
  border-top: 0;
  border-radius: 0 0 10px 10px;
  background: #f8fbff;
  margin-bottom: 10px;
}
.man-sup-b p {
  margin: 8px 0;
}
.man-sup-b ul,
.man-sup-b ol {
  margin: 6px 0 10px;
  padding-left: 22px;
}
.man-sup-b ul {
  list-style: disc;
}
.man-sup-b ol {
  list-style: decimal;
}
.man-sup-b li {
  margin-bottom: 6px;
}
.man-sup-b .table-container {
  margin: 10px 0 14px;
}
.man-sup-b .custom-table td,
.man-sup-b .custom-table th {
  font-size: 14.5px;
}
.man-sup-b .diagram-wrap {
  margin: 10px auto;
  background: #fff;
}
.fig-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-start;
  margin: 10px 0;
}
.fig-row .diagram-wrap {
  flex: 1 1 180px !important;
  max-width: 320px !important;
  margin: 0;
}
.note-warn {
  margin: 10px 0;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #fcd34d;
  border-left: 5px solid #f59e0b;
  background: #fffbeb;
  color: #78350f;
  font-size: 15px;
  line-height: 1.55;
}
.note-tip {
  margin: 10px 0;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #bfdbfe;
  border-left: 5px solid #3b82f6;
  background: #eff6ff;
  color: #1e3a8a;
  font-size: 15px;
  line-height: 1.55;
}
.small-note {
  font-size: 13px;
  color: var(--muted);
}
/* Visualizador do manual */
.man-viewer {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.mv-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
}
.mv-ico {
  font-size: 34px;
}
.mv-info {
  flex: 1;
  min-width: 200px;
}
.mv-title {
  font-size: 18px;
  font-weight: 800;
}
.mv-sub {
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 2px;
}
.mv-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.mv-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  padding: 12px 18px;
  border-radius: 12px;
  min-height: 50px;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid var(--border-strong);
  background: #fff;
  color: var(--text);
}
.mv-btn:hover {
  background: var(--soft);
}
.mv-dl {
  background: var(--accent-gradient);
  color: #fff;
  border: 0;
}
.mv-dl:hover {
  filter: brightness(1.06);
  background: var(--accent-gradient);
}
.mv-body {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.mv-toc {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  position: sticky;
  top: calc(var(--topbar-h) + 130px);
}
.mv-toc-h {
  font-size: 12.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  padding: 4px 8px 6px;
}
.mv-toc button {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  text-align: left;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-soft);
  padding: 9px 10px;
  border-radius: 8px;
  cursor: pointer;
}
.mv-toc button small {
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
}
.mv-toc button:hover,
.mv-toc button.on {
  background: var(--accent-light);
  color: var(--accent-strong);
}
.mv-frame iframe {
  width: 100%;
  height: 78vh;
  min-height: 520px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #525659;
}
.mv-mobile {
  text-align: center;
  padding: 24px 16px;
  border: 1px dashed var(--border-strong);
  border-radius: 14px;
  background: #fff;
}
.mv-mobile-ico {
  font-size: 40px;
}
.mv-mobile p {
  color: var(--text-soft);
  margin: 8px 0 14px;
}
@media (max-width: 820px) {
  .mv-body {
    grid-template-columns: 1fr;
  }
  .mv-toc {
    position: static;
    order: 2;
  }
  .mv-actions {
    width: 100%;
  }
  .mv-btn {
    flex: 1;
    justify-content: center;
  }
  .man-sup-b {
    padding: 12px;
  }
  .fig-row .diagram-wrap {
    flex-basis: 140px !important;
  }
}
.tabs-bar .options-grid {
  flex-wrap: wrap;
  overflow: visible;
}
@media (min-width: 821px) {
  .tabs-bar .option-btn {
    padding: 12px 16px;
    font-size: 15px;
  }
}
.man-sup .seven-h {
  background: #ecfdf5;
  border-bottom-color: #a7f3d0;
  color: #065f46;
}
.man-sup:has(.seven-h) {
  border-color: #a7f3d0;
  background: #f7fefb;
}
.man-sup .seven-h span {
  color: #047857;
}
.sec-manuals .guide-header-banner {
  display: none !important;
}
.ovr-content p {
  margin: 8px 0;
}
.ovr-content ul,
.ovr-content ol {
  margin: 6px 0 12px;
  padding-left: 24px;
}
.ovr-content ul {
  list-style: disc;
}
.ovr-content ol {
  list-style: decimal;
}
.ovr-content li {
  margin-bottom: 8px;
}
.ovr-content .table-container {
  margin: 10px 0 14px;
}
.ovr-content .diagram-wrap {
  margin: 12px auto;
  background: #fff;
}
.ovr-src {
  margin-top: 16px !important;
  font-size: 13px;
  color: var(--muted);
}
.sec-manuals .diagram-wrap:has(> img[alt*="9 passos"]) {
  display: none !important;
}
.diagram-wrap img[alt^="Ícone do"] {
  max-height: 110px;
  width: auto !important;
  margin: 0 auto;
  display: block;
}
.home-slots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 16px;
}
.home-slot {
  padding: 18px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--border);
  line-height: 1.6;
  font-size: 15px;
}
.home-slot.vazio {
  border: 2px dashed var(--border-strong);
  background: var(--soft);
  color: var(--muted);
  text-align: center;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.home-slot .slot-tag {
  font-size: 12.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.home-slot p {
  margin: 6px 0 0;
}
@media (max-width: 820px) {
  .home-slots {
    grid-template-columns: 1fr;
  }
}
.home-slot .slot-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}
.home-slot ul {
  list-style: disc;
  padding-left: 20px;
  margin: 10px 0;
}
.home-slot li {
  margin-bottom: 8px;
}
.home-slot .slot-note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
}
.home-slots {
  align-items: start;
}

/* v5.4 — nome do grupo de erro sem quebrar ("Erro 10") */
.custom-table td:first-child > strong:only-child {
  white-space: nowrap;
}

/* v5.6 — sempre fundo claro, mesmo com o celular no modo escuro */
:root {
  color-scheme: only light;
}
html,
body {
  color-scheme: only light;
}

/* v5.7 — página de assistência */
.assist {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.assist-steps {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
}
.assist-ol {
  margin: 8px 0 0;
  padding-left: 24px;
  line-height: 1.6;
  list-style: decimal;
}
.assist-ol li {
  display: list-item;
  list-style: decimal;
}
.assist-ol a {
  color: var(--primary, #b91c1c);
  font-weight: 700;
}
.assist-ol li {
  margin: 6px 0;
}
.assist-note {
  margin: 10px 0 0;
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: 10px;
  padding: 10px 12px;
  color: #78350f;
}
.assist-mail {
  align-self: flex-start;
  text-decoration: none;
}
.mv-body.mv-notoc {
  grid-template-columns: 1fr;
}
.side-assist small {
  display: block;
}

/* v5.8 — cartões da página inicial que abrem ao tocar */
.home-slots {
  grid-template-columns: 1fr !important;
  gap: 10px;
}
.home-slot {
  padding: 0;
  overflow: hidden;
}
.home-slot.slot-hours {
  padding: 14px 18px;
  background: #f0fdf4;
  border-color: #bbf7d0;
}
.hours {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 15px;
  line-height: 1.5;
}
.hours-ico {
  font-size: 26px;
}
.slot-card > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
  min-height: 56px;
}
.slot-card > summary::-webkit-details-marker {
  display: none;
}
.slot-card > summary:hover {
  background: var(--soft);
}
.slot-chev {
  flex: none;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary, #b91c1c);
  white-space: nowrap;
}
.slot-chev::after {
  content: " ▾";
}
.slot-card[open] .slot-chev {
  font-size: 0;
}
.slot-card[open] .slot-chev::after {
  content: "Fechar ▴";
  font-size: 13px;
}
.slot-card[open] > summary {
  border-bottom: 1px solid var(--border);
}
.slot-body {
  padding: 4px 18px 16px;
}
@media (max-width: 520px) {
  .slot-chev {
    font-size: 0;
  }
  .slot-chev::after {
    content: "▾";
    font-size: 18px;
  }
  .slot-card[open] .slot-chev::after {
    content: "▴";
    font-size: 18px;
  }
}

/* v5.9 — horário no topo e ícone do Início */
.home-hours {
  margin: 0 0 16px;
  padding: 12px 16px;
  border-radius: 14px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}
.nav-home-ico {
  background: var(--primary, #c8102e) !important;
  color: #fff !important;
  border-color: transparent !important;
  display: flex;
  align-items: center;
  justify-content: center;
}
.side-home.active .nav-home-ico,
.side-home:hover .nav-home-ico {
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.18);
}

/* v6.0 — ícones de imagem nos cartões da página inicial */
.slot-sum {
  display: flex;
  align-items: center;
  gap: 12px;
}
.slot-ico {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex: none;
}
.slot-ico-emo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  line-height: 1;
}

/* ===== App instalável (botão "Instalar app") ===== */
.instalar-app {
  position: fixed;
  right: 18px;
  bottom: 76px; /* acima do botão "voltar ao topo" */
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--accent-gradient);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
}
.instalar-app:hover {
  filter: brightness(1.06);
}
.instalar-app[hidden] {
  display: none;
}
@media (max-width: 820px) {
  .instalar-app {
    right: auto;
    left: 12px;
    bottom: 12px;
    padding: 10px 16px;
    font-size: 14px;
  }
}
