/* Index — portal de rastreamento (mobile-first) */
@import "portal-bars.css";

body.idx-portal {
  background: #f3f4f6;
  min-height: 100vh;
  font-family: system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* bunker.css define min-height em todo <main> — evita faixa vazia antes do rodapé */
body.idx-portal main.idx-main {
  min-height: 0;
  width: auto;
  padding: 1.25rem 0.85rem 1rem;
}

body.idx-portal main.idx-main--consulta-first {
  padding-top: 0.65rem;
}

body.idx-portal #rodape.idx-rodape {
  min-height: 0;
}

body.idx-portal #acessibilidade,
body.idx-portal #acess-drop-down {
  display: none;
}

.idx-top {
  display: block;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
  position: relative;
  z-index: 2;
}

.idx-top-logo {
  display: flex;
  justify-content: center;
  padding: 0.85rem 1rem 0.65rem;
}

.idx-top-logo img {
  height: 2rem;
  width: auto;
}

.idx-main {
  padding: 1.25rem 0.85rem 1.5rem;
}

.idx-main--consulta-first {
  padding-top: 0.65rem;
}

.idx-consulta-block {
  margin: 0 0 1rem;
}

.portal-bars-wrap + main.idx-main--consulta-first .idx-consulta-block {
  margin-top: 0.35rem;
}

.idx-consulta-title {
  margin: 0 0 0.5rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: #003157;
  text-align: center;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.idx-consulta-urgency {
  margin: 0 0 0.35rem;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  color: #7c2d12;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.idx-consulta-sub {
  margin: 0 0 0.85rem;
  font-size: 0.8rem;
  line-height: 1.45;
  text-align: center;
  color: #003157;
  font-weight: 600;
}

.idx-card--consulta {
  background: linear-gradient(165deg, #fffef5 0%, #fff3b0 42%, #ffdf00 100%);
  border: 2px solid #e6c200;
  border-radius: 12px;
  box-shadow: 0 6px 22px rgba(255, 193, 7, 0.28);
  padding: 1.15rem 1.1rem 1.25rem;
  margin-bottom: 0;
}

.idx-card--consulta .idx-card-lead--caminhao {
  color: #003157;
}

.idx-card--consulta .idx-label {
  color: #002a4d;
}

.idx-card--consulta .idx-input {
  background: #fff;
  border-color: #c9a800;
}

.idx-card--consulta .idx-input:focus {
  border-color: #003157;
  box-shadow: 0 0 0 3px rgba(0, 49, 87, 0.15);
}

.idx-card--consulta .idx-campo-hint {
  color: #5c4a03;
  font-weight: 600;
  text-align: center;
}

.idx-card--consulta .idx-trust {
  color: #003157;
}

.idx-card--consulta .idx-btn--urgent {
  background: linear-gradient(180deg, #ffef5c 0%, #ffdf00 45%, #f5c400 100%) !important;
  color: #003157 !important;
  border: 2px solid #003157;
  box-shadow: 0 4px 14px rgba(0, 49, 87, 0.22);
  font-weight: 800;
}

.idx-card--consulta .idx-btn--urgent:hover:not(:disabled) {
  background: linear-gradient(180deg, #fff176 0%, #ffe033 50%, #ffc107 100%) !important;
  filter: brightness(1.02);
}

.idx-card--consulta .idx-btn--urgent svg {
  fill: #003157;
}

.idx-wrap {
  max-width: 480px;
  margin: 0 auto;
}

.idx-hero {
  text-align: center;
  margin-bottom: 1.15rem;
}

.idx-hero h1 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: #003157;
  line-height: 1.25;
}

.idx-hero p {
  margin: 0;
  font-size: 0.88rem;
  color: #5b7a95;
  font-weight: 500;
}

.idx-hero--compact {
  margin-bottom: 0.85rem;
}

.idx-hero--compact .q7m2-caminhao-badge--hero {
  margin-bottom: 0.35rem;
}

.idx-hero--compact h1 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.2;
  max-width: 16em;
  margin-left: auto;
  margin-right: auto;
}

.idx-alerta {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  background: #fdecea;
  border: 1px solid #f5c6c2;
  border-left: 4px solid #d32f2f;
  border-radius: 8px;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
}

.idx-alerta-ico {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #d32f2f;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  font-style: italic;
  font-family: Georgia, serif;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.idx-alerta strong {
  display: block;
  color: #c62828;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  margin-bottom: 0.25rem;
}

.idx-alerta p {
  margin: 0;
  color: #b71c1c;
  font-size: 0.78rem;
  line-height: 1.45;
}

.idx-alerta-prazo {
  margin-top: 0.45rem !important;
  padding-top: 0.4rem;
  border-top: 1px solid rgba(211, 47, 47, 0.2);
  font-size: 0.74rem !important;
}

.idx-alerta-prazo-label {
  color: #8b1a1a;
}

.idx-alerta-prazo strong {
  display: inline;
  font-size: 0.82rem;
  color: #b71c1c;
}

.idx-urgency-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  background: linear-gradient(90deg, #003157 0%, #0a4a82 100%);
  color: #fff;
  box-shadow: 0 2px 10px rgba(0, 49, 87, 0.2);
}

.idx-urgency-strip--stacked {
  flex-direction: column;
  align-items: stretch;
  text-align: center;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
}

.idx-urgency-strip--stacked .idx-urgency-strip-label {
  max-width: none;
  white-space: normal;
  overflow: visible;
}

.idx-urgency-strip--stacked .idx-urgency-timer {
  align-self: center;
  min-width: 8.5rem;
  font-size: 1.5rem;
}

.idx-urgency-deadline {
  margin: 0.15rem 0 0;
  font-size: clamp(0.78rem, 2.4vw, 0.88rem);
  font-weight: 600;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.88);
}

.idx-urgency-deadline strong {
  font-weight: 800;
  color: #ffdf00;
  letter-spacing: 0.02em;
}

.idx-urgency-strip.is-critical .idx-urgency-deadline strong {
  color: #fff;
}

.idx-urgency-strip-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.3;
  max-width: 58%;
  color: #fff;
}

.idx-urgency-timer {
  font-size: 1.35rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 223, 0, 0.45);
  color: #ffdf00;
  flex-shrink: 0;
}

.idx-urgency-strip.is-warning .idx-urgency-timer {
  color: #ffe082;
  border-color: #ffc107;
}

.idx-urgency-strip.is-critical {
  background: linear-gradient(90deg, #7f1d1d 0%, #b91c1c 100%);
  animation: idx-urgency-pulse 1.4s ease-in-out infinite;
}

.idx-urgency-strip.is-critical .idx-urgency-timer {
  color: #fff;
  border-color: #fecaca;
  background: rgba(0, 0, 0, 0.15);
}

.idx-urgency-strip.is-expired .idx-urgency-strip-label::after {
  content: ' — prazo encerrando';
}

@keyframes idx-urgency-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(185, 28, 28, 0.35);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(185, 28, 28, 0.08);
  }
}

.idx-alerta--hot {
  animation: idx-alerta-glow 2.5s ease-in-out infinite;
}

@keyframes idx-alerta-glow {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(211, 47, 47, 0.12);
  }
  50% {
    box-shadow: 0 0 0 4px rgba(211, 47, 47, 0.1);
  }
}

.idx-alerta--hot .idx-alerta-ico {
  font-style: normal;
  font-family: inherit;
}

.idx-card--urgente {
  border: 1px solid #ffcdd2;
  box-shadow: 0 4px 20px rgba(198, 40, 40, 0.1);
}

.idx-card-lead-urgent {
  color: #b45309 !important;
  font-weight: 800 !important;
}

.idx-campo-hint {
  margin: 0.25rem 0 0.5rem;
  font-size: 0.74rem;
  line-height: 1.4;
  color: #c2410c;
  font-weight: 700;
}

.idx-btn--urgent {
  background: linear-gradient(180deg, #d32f2f 0%, #b71c1c 100%) !important;
  box-shadow: 0 4px 14px rgba(183, 28, 28, 0.35);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.idx-btn--urgent:hover:not(:disabled) {
  background: linear-gradient(180deg, #e53935 0%, #c62828 100%) !important;
}

.idx-btn--urgent.idx-btn--ready {
  animation: idx-btn-ready-pulse 1.6s ease-in-out infinite;
}

@keyframes idx-btn-ready-pulse {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-1px);
  }
}

.idx-feature--yellow p {
  color: #92400e;
  font-weight: 600;
}

.idx-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(0, 49, 87, 0.08);
  padding: 1.15rem 1.1rem 1.25rem;
  margin-bottom: 1rem;
}

.idx-card-lead {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  color: #1565c0;
  font-weight: 600;
}

.idx-card-lead--caminhao {
  gap: 0.55rem;
  color: #003157;
}

.idx-alerta--compact {
  padding: 0.7rem 0.85rem;
  margin-bottom: 0.85rem;
}

.idx-alerta--compact p {
  margin-top: 0.25rem;
  font-size: 0.8rem;
  line-height: 1.4;
}

.idx-card--home-a {
  position: relative;
  padding: 1rem 1rem 1.1rem;
  border-radius: 12px;
  border: 1px solid #cfd8dc;
  border-top: 3px solid #003157;
  background: #fff;
  box-shadow: 0 4px 18px rgba(0, 49, 87, 0.08);
}

.idx-home-a-status {
  margin: 0 0 0.65rem;
  padding: 0.45rem 0.55rem;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #b71c1c;
  background: #fff5f5;
  border: 1px solid #f5c6c2;
  border-radius: 8px;
}

.idx-home-a-steps {
  display: flex;
  gap: 0.5rem;
  margin: 0 0 0.85rem;
  padding: 0;
  list-style: none;
}

.idx-home-a-steps li {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.5rem;
  border-radius: 8px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 600;
}

.idx-home-a-steps li.is-active {
  background: #e8f4fc;
  color: #003157;
  box-shadow: inset 0 0 0 1px #b3d4ea;
}

.idx-home-a-steps-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  background: #cbd5e1;
  color: #fff;
}

.idx-home-a-steps li.is-active .idx-home-a-steps-num {
  background: #003157;
}

.idx-campo-hint--home-a {
  margin: 0.15rem 0 0.35rem;
  font-size: 0.76rem;
  color: #5b7a95;
  line-height: 1.35;
}

.idx-campo-hint--home-a.idx-campo-hint--urgent {
  color: #c2410c;
  font-weight: 700;
}

.idx-trust-single {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin: 0.65rem 0 0;
  font-size: 0.72rem;
  color: #64748b;
  text-align: center;
}

.idx-main--home-a .idx-btn--liberar {
  background: linear-gradient(180deg, #ffdf00 0%, #f5c400 100%);
  color: #003157;
  border: 2px solid #003157;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 3px 12px rgba(0, 49, 87, 0.15);
}

.idx-main--home-a .idx-btn--liberar:hover:not(:disabled) {
  filter: brightness(1.02);
}

.idx-main--home-a .idx-btn--liberar.idx-btn--ready {
  box-shadow: 0 0 0 3px rgba(0, 49, 87, 0.2);
}

@media (max-width: 640px) {
  .idx-features--home-a {
    display: none;
  }

  .idx-main--home-a {
    padding-bottom: 0.5rem;
  }
}

.idx-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: #003157;
  margin-bottom: 0.55rem;
}

.idx-input-wrap {
  position: relative;
  margin-bottom: 0.35rem;
}

.idx-input {
  width: 100%;
  padding: 0.85rem 2.5rem 0.85rem 1rem;
  border: 1px solid #cfd8dc;
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  color: #003157;
  background: #fff;
  margin-bottom: 0;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.idx-input-check {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #2e7d32;
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
}

.idx-input.valid {
  border-color: #2e7d32;
  box-shadow: 0 0 0 2px rgba(46, 125, 50, 0.12);
}

.idx-input.valid + .idx-input-check {
  display: flex;
}

.idx-ok {
  display: none;
  margin: 0 0 0.45rem;
  font-size: 0.75rem;
  color: #2e7d32;
  font-weight: 600;
}

.idx-ok.show {
  display: block;
}

.idx-input::placeholder {
  color: #90a4ae;
}

.idx-input:focus {
  outline: none;
  border-color: #1565c0;
  box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.15);
}

.idx-input.error {
  border-color: #d32f2f;
}

.idx-erro {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  color: #c62828;
  min-height: 0;
  display: none;
}

.idx-erro.show {
  display: block;
}

.idx-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.95rem 1rem;
  border: none;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-family: inherit;
  cursor: pointer;
  background: #5a6578;
  color: #fff;
  box-shadow: 0 3px 10px rgba(90, 101, 120, 0.35);
  transition: background 0.15s;
}

.idx-btn:hover:not(:disabled) {
  background: #4a5568;
}

.idx-btn:disabled {
  opacity: 0.75;
  cursor: wait;
}

.idx-btn--ready {
  background: #2e7d32;
  box-shadow: 0 3px 12px rgba(46, 125, 50, 0.35);
}

.idx-btn--ready:hover:not(:disabled) {
  background: #1b5e20;
}

.idx-btn--cta {
  background: #2e7d32;
  box-shadow: 0 3px 12px rgba(46, 125, 50, 0.35);
  margin-top: 0.25rem;
}

.idx-btn--cta:hover:not(:disabled) {
  background: #1b5e20;
}

body.idx-modal-open {
  overflow: hidden;
}

.idx-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.idx-overlay[hidden] {
  display: none !important;
}

.idx-modal {
  width: 100%;
  max-width: 360px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  padding: 1.25rem 1.15rem 1.15rem;
  max-height: 90vh;
  overflow-y: auto;
}

.idx-modal[hidden] {
  display: none !important;
}

.idx-modal-ico {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #e3f2fd;
  color: #1565c0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.65rem;
}

.idx-modal-ico--rf {
  background: #e8eaf6;
  color: #003157;
}

.idx-modal-title {
  margin: 0 0 0.85rem;
  text-align: center;
  font-size: 1rem;
  line-height: 1.35;
  color: #003157;
}

.idx-steps {
  list-style: none;
  margin: 0 0 0.85rem;
  padding: 0;
}

.idx-step {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.65rem;
  font-size: 0.78rem;
  color: #94a3b8;
  line-height: 1.35;
}

.idx-step::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  background: #fff;
  box-sizing: border-box;
}

.idx-step.active {
  color: #003157;
  font-weight: 600;
}

.idx-step.active::before {
  border-color: #1565c0;
  border-top-color: transparent;
  animation: idx-step-spin 0.8s linear infinite;
}

.idx-step.done {
  color: #2e7d32;
}

.idx-step.done::before {
  border-color: #2e7d32;
  background: #2e7d32 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") center/10px no-repeat;
}

@keyframes idx-step-spin {
  to {
    transform: rotate(360deg);
  }
}

.idx-progress {
  height: 6px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.idx-progress span {
  display: block;
  height: 100%;
  width: 8%;
  background: linear-gradient(90deg, #003157, #1565c0);
  border-radius: inherit;
  transition: width 0.45s ease;
}

.idx-result-meta-block {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
}

.idx-result-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  background: #f1f5f9;
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  font-size: 0.78rem;
  color: #475569;
  margin-bottom: 0;
}

.idx-result-meta strong {
  color: #003157;
}

.idx-result-alert {
  background: #fdecea;
  border-left: 4px solid #d32f2f;
  border-radius: 8px;
  padding: 0.75rem 0.85rem;
  margin-bottom: 0.85rem;
}

.idx-result-alert-title {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 800;
  color: #c62828;
  letter-spacing: 0.02em;
}

.idx-result-alert ul {
  margin: 0;
  padding-left: 1rem;
  color: #b71c1c;
  font-size: 0.72rem;
  line-height: 1.45;
}

.idx-result-foot {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.75rem;
  font-size: 0.65rem;
  color: #607d8b;
}

.idx-result-foot span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.idx-result-foot svg {
  color: #1565c0;
}

.idx-trust {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
}

.idx-trust li {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.68rem;
  color: #607d8b;
  margin-top: 0.35rem;
}

.idx-trust svg {
  color: #1565c0;
  flex-shrink: 0;
}

.idx-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
  margin-bottom: 0.35rem;
}

.idx-feature {
  background: #fff;
  border-radius: 14px;
  padding: 0.85rem 0.5rem 0.95rem;
  text-align: center;
  box-shadow: 0 4px 14px rgba(0, 49, 87, 0.08);
  border: 1px solid #eef2f6;
  border-left-width: 5px;
  border-left-style: solid;
  border-left-color: #003157;
}

.idx-feature--blue {
  border-left-color: #003157;
}

.idx-feature--blue .idx-feature-ico {
  background: transparent;
  color: #003157;
  padding: 0;
  width: auto;
  height: auto;
}

.idx-feature-ico--caminhao {
  margin-bottom: 0.15rem;
}

.idx-feature--green {
  border-left-color: #28a745;
}

.idx-feature--green .idx-feature-ico {
  background: #e8f5ec;
  color: #28a745;
}

.idx-feature--yellow {
  border-left-color: #ffc107;
}

.idx-feature--yellow .idx-feature-ico {
  background: #fff8e1;
  color: #e6a800;
}

.idx-feature-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  margin-bottom: 0.45rem;
}

.idx-feature h2 {
  margin: 0 0 0.35rem;
  font-size: clamp(0.88rem, 2.6vw, 1.02rem);
  font-weight: 800;
  color: #003157;
  line-height: 1.25;
}

.idx-feature p {
  margin: 0;
  font-size: clamp(0.8rem, 2.3vw, 0.94rem);
  line-height: 1.45;
  color: #003157;
  font-weight: 500;
}

.idx-rodape {
  background: url("../images/bg-amarelo.svg") #ffdf00 no-repeat center bottom;
  background-size: 100% auto;
  padding: 1.5rem 1rem 1.25rem;
  margin-top: 0.5rem;
}

.idx-rodape-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}

.idx-rodape-q7m2 {
  height: 2rem;
  width: auto;
}

.idx-rodape-copy {
  margin: 0;
  text-align: center;
  font-size: 0.65rem;
  color: #003157;
  line-height: 1.4;
}

@media (max-width: 420px) {
  .idx-features {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .idx-feature {
    display: flex;
    text-align: left;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 0.75rem;
  }

  .idx-feature-ico {
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .idx-feature h2 {
    font-size: 0.82rem;
  }

  .idx-feature p {
    font-size: 0.72rem;
  }
}

@media (max-width: 380px) {
  .idx-main {
    padding-left: max(0.65rem, env(safe-area-inset-left));
    padding-right: max(0.65rem, env(safe-area-inset-right));
  }

  .idx-overlay {
    padding: 0.65rem;
  }

  .idx-modal {
    padding: 1rem;
    max-height: min(85vh, 640px);
  }

  .idx-hero h1 {
    font-size: 1.2rem;
  }
}

.idx-result-meta {
  flex-wrap: wrap;
  align-items: flex-start;
}

.idx-result-meta span,
.idx-result-meta strong {
  min-width: 0;
  flex: 1 1 8rem;
}

.idx-result-meta strong {
  text-align: right;
  overflow-wrap: anywhere;
}

@media (max-width: 360px) {
  .idx-result-meta strong {
    flex-basis: 100%;
    text-align: left;
  }
}

@media (min-width: 768px) {
  .idx-wrap {
    max-width: 520px;
  }

  .idx-hero h1 {
    font-size: 1.65rem;
  }

  .idx-feature-ico {
    width: 50px;
    height: 50px;
  }
}

@media (min-width: 1024px) {
  .idx-wrap {
    max-width: 560px;
  }
}

/* —— Home portal: qualquer mobile / tablet (iOS + Android) —— */
body.idx-portal {
  -webkit-tap-highlight-color: transparent;
}

body.idx-portal .idx-top {
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

body.idx-portal .idx-top-logo {
  padding-top: max(0.85rem, env(safe-area-inset-top));
}

body.idx-portal main.idx-main {
  box-sizing: border-box;
  max-width: 100%;
  padding-left: max(0.85rem, env(safe-area-inset-left));
  padding-right: max(0.85rem, env(safe-area-inset-right));
  padding-bottom: max(0.85rem, env(safe-area-inset-bottom));
}

body.idx-portal .idx-wrap {
  width: 100%;
  max-width: min(100%, 480px);
}

body.idx-portal .idx-label {
  font-size: clamp(0.92rem, 2.8vw, 1.05rem);
}

body.idx-portal .idx-consulta-urgency,
body.idx-portal .idx-home-a-status {
  font-size: clamp(0.88rem, 2.6vw, 1rem);
}

body.idx-portal .idx-campo-hint,
body.idx-portal .idx-campo-hint--home-a {
  font-size: clamp(0.82rem, 2.4vw, 0.95rem);
}

body.idx-portal .idx-input {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  font-size: max(16px, 1rem);
  min-height: 3rem;
}

body.idx-portal .idx-btn {
  min-height: 3rem;
  font-size: max(0.92rem, 15px);
  touch-action: manipulation;
}

body.idx-portal .idx-ok {
  font-size: clamp(0.82rem, 2.3vw, 0.92rem);
}

body.idx-portal .idx-rodape {
  padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
  padding-left: max(1rem, env(safe-area-inset-left));
  padding-right: max(1rem, env(safe-area-inset-right));
}

@media (max-width: 899px) {
  body.idx-portal .idx-features:not(.idx-features--home-a) {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  body.idx-portal .idx-feature {
    display: flex;
    text-align: left;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.9rem 0.85rem;
  }

  body.idx-portal .idx-feature-ico {
    margin-bottom: 0;
    flex-shrink: 0;
  }
}

@media (max-width: 767px) {
  body.idx-portal main.idx-main {
    min-height: 0 !important;
    padding-top: 0.65rem;
  }

  body.idx-portal .idx-urgency-strip--stacked .idx-urgency-timer {
    font-size: clamp(1.25rem, 6vw, 1.5rem);
  }

  body.idx-portal .idx-card--consulta,
  body.idx-portal .idx-card--home-a {
    padding-left: max(0.85rem, env(safe-area-inset-left));
    padding-right: max(0.85rem, env(safe-area-inset-right));
  }
}
