.reurb-portal {
  --reurb-accent: #0b7a5f;
  --reurb-accent-soft: #e6f4ef;
  --reurb-surface: #ffffff;
  --reurb-soft: #f5f6f7;
  --reurb-border: #dedede;
  --reurb-text: #282828;
  --reurb-muted: #606060;
  --reurb-heading: #050505;
  --reurb-home-width: 980px;
  --reurb-home-card: #d5d5d5;
  --reurb-home-card-hover: #e0e0e0;
  --reurb-divider: rgba(0, 0, 0, 0.13);
  --reurb-shadow: 0 14px 30px rgba(0, 0, 0, 0.1);
  display: grid;
  gap: 16px;
  width: min(100%, var(--container-max));
  min-width: 0;
  margin: 0 auto;
  padding-bottom: 38px;
  text-align: left;
}

#justificar.reurb-portal,
#justificar.reurb-portal h1,
#justificar.reurb-portal h2,
#justificar.reurb-portal h3,
#justificar.reurb-portal p,
#justificar.reurb-portal li,
#justificar.reurb-portal td {
  text-align: left;
}

.reurb-portal > [hidden] {
  display: none !important;
}

.reurb-hidden-temporarily {
  display: none !important;
}

.reurb-portal #titulo {
  display: block;
  margin: 10px 0 12px;
  color: var(--reurb-heading);
  font-size: 1.48rem;
  font-weight: 400;
  letter-spacing: 0;
  text-align: center;
}

.reurb-kicker {
  margin: 0 0 8px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reurb-intro,
.reurb-view {
  display: grid;
  gap: clamp(18px, 3vw, 28px);
}

.reurb-model-home {
  width: min(100%, 1080px);
  margin: 0 auto;
  gap: 0;
  padding: 0 0 46px;
}

#justificar.reurb-portal .reurb-model-home #reurb-home-title {
  width: min(100%, var(--reurb-home-width));
  max-width: none;
  margin: 0 auto 18px;
  padding: 0;
  box-sizing: border-box;
  color: var(--reurb-heading);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 800;
  line-height: 1.25;
  text-align: left;
}

.reurb-home-hero {
  width: min(100%, var(--reurb-home-width));
  margin: 0 auto;
  padding: clamp(14px, 2vw, 18px) clamp(18px, 3vw, 28px);
  border-left: 6px solid var(--primary);
  border-radius: 8px;
  background: var(--reurb-home-card);
  box-shadow: var(--reurb-shadow);
}

.reurb-home-hero__kicker,
.reurb-home-docs__kicker {
  margin: 0 0 6px;
  color: var(--reurb-muted);
  font-size: 0.74rem;
  font-weight: 800;
}

#justificar.reurb-portal .reurb-home-hero h1 {
  margin: 0 0 8px;
  color: var(--reurb-heading);
  font-size: clamp(1.55rem, 2.7vw, 2.05rem);
  font-weight: 900;
  line-height: 1.05;
  text-align: left;
}

.reurb-home-hero p {
  max-width: 900px;
  margin: 0;
  color: var(--reurb-text);
  font-size: 0.91rem;
  font-weight: 650;
  line-height: 1.35;
}

.reurb-home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.reurb-home-divider {
  width: min(100%, var(--reurb-home-width));
  height: 1px;
  margin: 16px auto;
  background: var(--reurb-divider);
}

.reurb-home-docs {
  width: min(100%, var(--reurb-home-width));
  margin: 0 auto;
  padding: clamp(18px, 2.6vw, 26px);
  border-radius: 8px;
  background: var(--reurb-surface);
  box-shadow: var(--reurb-shadow);
}

.reurb-home-docs h2 {
  margin: 0 0 10px;
  color: var(--reurb-heading);
  font-size: clamp(1.6rem, 2.8vw, 2.15rem);
  font-weight: 900;
  line-height: 1.08;
}

.reurb-home-docs > p:not(.reurb-home-docs__kicker) {
  margin: 0 0 16px;
  color: var(--reurb-text);
  font-size: 0.92rem;
  font-weight: 650;
}

.reurb-model-cards,
.reurb-model-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-content: center;
  width: min(100%, var(--reurb-home-width));
  margin-right: auto;
  margin-left: auto;
  gap: clamp(26px, 4vw, 44px);
  align-items: start;
}

.reurb-model-card {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: stretch;
  grid-template-rows: auto auto minmax(52px, auto);
  width: 100%;
  max-width: none;
  min-height: 388px;
  justify-self: center;
  overflow: hidden;
  padding: 20px 18px 18px;
  border: 1px solid rgba(30, 30, 30, 0.12);
  border-radius: 10px;
  background: var(--reurb-home-card);
  color: var(--reurb-heading);
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.09);
  transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease, border-color 0.22s ease;
}

.reurb-model-card:hover,
.reurb-model-card:focus-visible,
.reurb-model-action:hover,
.reurb-model-action:focus-visible {
  color: var(--reurb-heading);
  text-decoration: none;
}

.reurb-model-card:hover,
.reurb-model-card:focus-visible {
  border-color: rgba(7, 106, 222, 0.45);
  background: var(--reurb-home-card-hover);
  box-shadow: 0 24px 42px rgba(0, 0, 0, 0.2);
  transform: translateY(-8px) scale(1.025);
}

.reurb-model-card:focus-visible,
.reurb-model-action:focus-visible {
  outline: 3px solid rgba(7, 106, 222, 0.22);
  outline-offset: 3px;
}

.reurb-model-card strong {
  display: block;
  margin: 0 0 14px;
  color: var(--reurb-heading);
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
}

.reurb-model-card img {
  display: block;
  width: 100%;
  height: 246px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.13);
  transition: transform 0.24s ease, filter 0.24s ease;
}

.reurb-model-card:hover img,
.reurb-model-card:focus-visible img {
  filter: saturate(1.08) contrast(1.04);
  transform: scale(1.045);
}

.reurb-model-card span {
  align-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50px;
  margin-top: 18px;
  padding: 13px 18px;
  border: 1px solid rgba(3, 57, 129, 0.24);
  border-radius: 8px;
  background: #f8fbff;
  color: var(--primary);
  font-size: 0.98rem;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  box-shadow: 0 10px 18px rgba(3, 57, 129, 0.12);
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.reurb-model-card::after {
  content: none;
  display: none;
}

.reurb-model-card:hover span,
.reurb-model-card:focus-visible span {
  border-color: var(--primary);
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 14px 26px rgba(3, 57, 129, 0.24);
  transform: translateY(-3px);
}

.reurb-model-actions {
  margin-top: 28px;
}

.reurb-model-action {
  display: grid;
  justify-items: center;
  gap: 9px;
  width: 100%;
  max-width: none;
  justify-self: center;
  color: var(--reurb-heading);
  text-align: center;
  text-decoration: none;
}

.reurb-model-action strong {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  padding: 12px 20px;
  border: 1px solid var(--primary);
  border-radius: 10px;
  background: var(--primary);
  color: #ffffff;
  font-size: 1.22rem;
  font-weight: 900;
  line-height: 1.1;
  box-shadow: 0 12px 24px rgba(3, 57, 129, 0.18);
  overflow: hidden;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.reurb-model-action strong::before {
  content: "";
  position: absolute;
  top: 7%;
  left: 0;
  width: 0;
  height: 86%;
  background: #ffffff;
  box-shadow: 0 0 15px 3px #ffffff;
  opacity: 0;
  pointer-events: none;
  transform: skewX(-20deg);
  animation: reurb-action-shine 2.4s linear infinite;
}

.reurb-model-action strong::after {
  content: none;
  display: none;
}

.reurb-model-action small {
  display: grid;
  place-items: center;
  width: min(100%, 230px);
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 7px;
  background: var(--reurb-soft);
  color: var(--reurb-heading);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.12;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
}

.reurb-model-action:hover strong,
.reurb-model-action:focus-visible strong {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #ffffff;
  box-shadow: 0 16px 30px rgba(3, 57, 129, 0.28);
  transform: translateY(-3px);
}

.reurb-model-action:hover strong::after,
.reurb-model-action:focus-visible strong::after {
  content: none;
  display: none;
}

.reurb-model-action:hover small,
.reurb-model-action:focus-visible small {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@keyframes reurb-action-shine {
  from {
    left: 0%;
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  to {
    left: 100%;
    opacity: 0;
  }
}

.reurb-intro__text {
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid var(--reurb-border);
  border-radius: 8px;
  background: linear-gradient(135deg, #f8f8f8 0%, #eeeeee 100%);
}

.reurb-intro h1,
.reurb-section-heading h2,
.reurb-contact h2 {
  margin: 0;
  color: var(--primary-dark);
  font-weight: 900;
  line-height: 1.1;
}

.reurb-intro h1 {
  max-width: 820px;
  font-size: clamp(1.65rem, 3.4vw, 2.75rem);
}

.reurb-intro p,
.reurb-section-heading p,
.reurb-benefit-grid p,
.reurb-split p,
.reurb-step-card p,
.reurb-contact p,
.reurb-alert p {
  color: var(--reurb-muted);
  line-height: 1.65;
}

.reurb-intro__text p:last-child,
.reurb-section-heading p:last-child,
.reurb-contact p:last-child,
.reurb-alert p:last-child {
  margin-bottom: 0;
}

.reurb-indicators {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.reurb-indicators article {
  display: grid;
  gap: 5px;
  min-height: 112px;
  align-content: center;
  padding: 18px;
  border: 1px solid var(--reurb-border);
  border-radius: 8px;
  background: var(--reurb-surface);
  box-shadow: 0 10px 22px rgba(12, 35, 55, 0.06);
}

.reurb-indicators strong {
  color: var(--primary);
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1;
}

.reurb-indicators span {
  color: var(--reurb-muted);
  font-weight: 700;
}

.reurb-access-grid,
.reurb-action-grid,
.reurb-benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
}

.reurb-access-card,
.reurb-action-card,
.reurb-benefit-grid article,
.reurb-split article,
.reurb-alert,
.reurb-contact {
  border: 1px solid var(--reurb-border);
  border-radius: 8px;
  background: var(--reurb-surface);
  box-shadow: 0 10px 24px rgba(12, 35, 55, 0.07);
}

.reurb-access-card {
  overflow: hidden;
  color: var(--reurb-text);
  text-decoration: none;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.reurb-access-card:hover,
.reurb-access-card:focus-visible,
.reurb-action-card:hover,
.reurb-action-card:focus-visible {
  border-color: var(--primary);
  color: var(--reurb-text);
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(12, 35, 55, 0.12);
}

.reurb-action-card--locked {
  position: relative;
  overflow: hidden;
  cursor: not-allowed;
  opacity: 0.72;
  background:
    repeating-linear-gradient(135deg, rgba(17, 24, 39, 0.04) 0 8px, transparent 8px 16px),
    var(--reurb-surface);
}

.reurb-action-card--locked::after {
  content: "Em Desenvolvimento";
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(31, 35, 40, 0.1);
  color: var(--reurb-muted);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.reurb-action-card--locked:hover,
.reurb-action-card--locked:focus-visible {
  border-color: var(--reurb-border);
  color: var(--reurb-text);
  transform: none;
  box-shadow: 0 10px 24px rgba(12, 35, 55, 0.07);
}

.reurb-action-card--locked i,
.reurb-action-card--locked strong,
.reurb-action-card--locked span {
  color: var(--reurb-muted);
}

.reurb-access-card:focus-visible,
.reurb-action-card:focus-visible,
.reurb-btn:focus-visible,
.reurb-back-link:focus-visible {
  outline: 3px solid rgba(7, 106, 222, 0.2);
  outline-offset: 3px;
}

.reurb-access-card__media {
  display: block;
  aspect-ratio: 1.45 / 1;
  overflow: hidden;
  background: #e8e8e8;
}

.reurb-access-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reurb-access-card__body {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.reurb-access-card__body i,
.reurb-action-card i,
.reurb-benefit-grid i,
.reurb-alert i {
  color: var(--reurb-accent);
  font-size: 1.9rem;
}

.reurb-access-card strong,
.reurb-action-card strong,
.reurb-benefit-grid h3,
.reurb-split h3,
.reurb-step-card h3 {
  margin: 0;
  color: var(--primary-dark);
  font-weight: 900;
  line-height: 1.2;
}

.reurb-access-card small,
.reurb-action-card span {
  color: var(--reurb-muted);
  line-height: 1.45;
}

.reurb-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  max-width: 100%;
  color: var(--primary);
  font-weight: 800;
  text-decoration: none;
}

.reurb-back-link:hover {
  color: var(--primary-dark);
}

.reurb-section-heading {
  width: min(100%, 980px);
  max-width: 980px;
  margin: 0 auto;
}

.reurb-section-heading h2 {
  font-size: clamp(1.45rem, 2.6vw, 2.1rem);
}

.reurb-benefit-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  --reurb-benefit-title-size: clamp(1.45rem, 2vw, 1.9rem);
}

.reurb-explain-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
}

.reurb-explain-grid article {
  display: grid;
  gap: 10px;
  padding: clamp(18px, 2.4vw, 26px);
  border: 1px solid var(--reurb-border);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(12, 35, 55, 0.07);
}

.reurb-explain-grid span {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 900;
}

.reurb-explain-grid h3 {
  margin: 0;
  color: var(--primary-dark);
  font-size: 1.15rem;
  font-weight: 900;
}

.reurb-explain-grid p {
  margin: 0;
  color: var(--reurb-muted);
  line-height: 1.62;
}

.reurb-benefit-grid article,
.reurb-action-card {
  display: grid;
  gap: 10px;
  align-content: start;
  min-width: 0;
  padding: clamp(16px, 2vw, 22px);
  overflow: hidden;
}

.reurb-benefit-grid article > *,
.reurb-action-card > *,
.reurb-access-card__body > *,
.reurb-split article > * {
  min-width: 0;
  max-width: 100%;
}

.reurb-benefit-grid h3,
.reurb-action-card strong,
.reurb-access-card strong,
.reurb-split h3,
.reurb-benefit-grid p,
.reurb-action-card span,
.reurb-access-card small,
.reurb-split p,
.reurb-split li {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.reurb-benefit-grid h3 {
  width: 100%;
  font-size: var(--reurb-benefit-title-size);
  max-width: none;
  overflow-wrap: normal;
  text-wrap: nowrap;
  white-space: nowrap;
}

.reurb-action-card {
  color: var(--reurb-text);
  text-decoration: none;
}

.reurb-action-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.reurb-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
}

.reurb-split article {
  padding: clamp(18px, 2.4vw, 26px);
}

.reurb-ordered-list {
  margin: 12px 0 0;
  padding-left: 1.2rem;
  color: var(--reurb-muted);
  line-height: 1.65;
}

.reurb-ordered-list li + li {
  margin-top: 8px;
}

.reurb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.reurb-btn:hover {
  transform: translateY(-1px);
}

.reurb-btn--primary {
  background: var(--primary);
  color: #ffffff;
}

.reurb-btn--primary:hover,
.reurb-btn--primary:focus-visible {
  background: var(--primary-dark);
  color: #ffffff;
}

.reurb-btn--secondary {
  border-color: #8d9298;
  background: #d8dadd;
  color: #1f2328;
}

.reurb-btn--secondary:hover,
.reurb-btn--secondary:focus-visible {
  border-color: #6f767f;
  background: #c9ccd1;
  color: #111418;
}

.reurb-home-hero__actions .reurb-btn--secondary {
  border-color: #1c1d1d;
  background: #2A2C2C;
  color: #ffffff;
}

.reurb-home-hero__actions .reurb-btn--secondary:hover,
.reurb-home-hero__actions .reurb-btn--secondary:focus-visible {
  border-color: #737b85;
  background: #070707;
  color: #ffffff;
}

.reurb-home-hero__actions .reurb-btn--primary {
  border-color: #9aa1aa;
  background: #eef0f3;
  color: #1d2228;
}

.reurb-home-hero__actions .reurb-btn--primary:hover,
.reurb-home-hero__actions .reurb-btn--primary:focus-visible {
  border-color: #7f8790;
  background: #dde1e6;
  color: #111418;
}

.reurb-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.reurb-alert {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  padding: clamp(16px, 2.2vw, 22px);
  background: var(--reurb-accent-soft);
}

.reurb-alert strong {
  color: var(--primary-dark);
}

.reurb-status-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(18px, 3vw, 28px);
  align-items: center;
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid var(--reurb-border);
  border-radius: 10px;
  background: var(--reurb-surface);
  box-shadow: 0 10px 24px rgba(12, 35, 55, 0.07);
}

.reurb-status-search {
  display: grid;
  gap: 10px;
}

.reurb-status-search label {
  color: var(--primary-dark);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.reurb-status-field {
  position: relative;
  max-width: 620px;
}

.reurb-status-field i {
  position: absolute;
  top: 50%;
  left: 15px;
  color: #6d6d6d;
  transform: translateY(-50%);
}

.reurb-status-field input {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px 12px 44px;
  border: 1px solid #cfcfcf;
  border-radius: 8px;
  background: #f6f6f6;
  color: #606060;
  font-size: 1rem;
}

.reurb-status-search p {
  max-width: 720px;
  margin: 0;
  color: var(--reurb-muted);
  line-height: 1.55;
}

.reurb-status-preview {
  display: grid;
  gap: 10px;
  min-width: 160px;
}

.reurb-status-preview span {
  display: inline-flex;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 900;
}

.reurb-status-preview .is-review {
  background: #fff3cd;
  color: #7a5b00;
}

.reurb-status-preview .is-approved {
  background: #d1e7dd;
  color: #0f5132;
}

.reurb-status-preview .is-rejected {
  background: #f8d7da;
  color: #842029;
}

.reurb-steps {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: 14px;
  align-items: center;
}

.reurb-step-track {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  transition: height 0.25s ease;
}

.reurb-step-card {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  gap: 14px;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid #d5dde7;
  border-radius: 8px;
  background: var(--reurb-soft);
  opacity: 0;
  pointer-events: none;
  transform: translateX(0);
}

.reurb-step-card.is-active {
  opacity: 1;
  pointer-events: auto;
}

.reurb-step-card.is-entering-forward {
  animation: reurb-step-enter-forward 0.5s ease both;
}

.reurb-step-card.is-entering-backward {
  animation: reurb-step-enter-backward 0.5s ease both;
}

.reurb-step-card.is-leaving-forward {
  animation: reurb-step-leave-forward 0.5s ease both;
  z-index: 1;
}

.reurb-step-card.is-leaving-backward {
  animation: reurb-step-leave-backward 0.5s ease both;
  z-index: 1;
}

@keyframes reurb-step-enter-forward {
  from { opacity: 0; transform: translateX(72px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes reurb-step-leave-forward {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(-72px); }
}

@keyframes reurb-step-enter-backward {
  from { opacity: 0; transform: translateX(-72px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes reurb-step-leave-backward {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(72px); }
}

.reurb-step-card__number {
  width: max-content;
  padding: 5px 10px;
  border-radius: 999px;
  background: #e4eefb;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.reurb-step-nav {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 8px;
  background: var(--primary);
  color: #ffffff;
}

.reurb-step-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.reurb-step-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #b9c7d8;
}

.reurb-step-dots button.is-active {
  width: 26px;
  background: var(--primary);
}

.reurb-contact {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: clamp(20px, 3vw, 30px);
  background: linear-gradient(135deg, #f8f8f8, #eeeeee);
}

.reurb-contact > div:first-child {
  flex: 1 1 auto;
}

.reurb-contact__actions {
  display: grid;
  flex: 0 0 220px;
  gap: 12px;
  width: 220px;
}

.reurb-back-to-top {
  position: fixed;
  right: 18px;
  bottom: 84px;
  z-index: 1040;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(5, 35, 75, 0.28);
}

.reurb-back-to-top[hidden] {
  display: none;
}

.reurb-classificacao-content,
.reurb-documentos-content {
  min-width: 0;
}

.reurb-macro-disclosure {
  min-width: 0;
}

.reurb-macro-disclosure__summary {
  display: none;
}

.reurb-macro-disclosure:not([open]) > .macroregioes-lista {
  display: block;
}

.reurb-classificacao-content .macroregioes-card.is-mapa-hover {
  border-color: #f59e0b;
  box-shadow: 0 10px 24px rgba(245, 158, 11, 0.18);
}

.reurb-classificacao-content .macroregioes-card.is-mapa-hover .macroregioes-toggle {
  background: #fff7ed;
  box-shadow: inset 5px 0 0 #f59e0b;
  color: #92400e;
}

.reurb-documentos-content .credenciamento-destaques {
  margin-bottom: clamp(16px, 3vw, 24px);
}

.reurb-home-docs .credenciamento-destaques {
  gap: clamp(34px, 7vw, 78px);
  margin-bottom: clamp(22px, 4vw, 34px);
}

.reurb-home-docs .credenciamento-doc-card {
  width: clamp(184px, 22vw, 230px);
  min-height: clamp(224px, 26vw, 276px);
  border-radius: 7px;
}

.reurb-home-docs .credenciamento-doc-card strong {
  padding: 18px 14px 14px;
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
  line-height: 1.14;
}

.reurb-home-docs .credenciamento-doc-acessar {
  min-height: 40px;
  padding: 10px 12px;
  font-size: 0.82rem;
}

.reurb-home-docs .credenciamento-todos {
  margin-top: 8px;
}

.reurb-home-docs .credenciamento-todos summary {
  width: max-content;
  max-width: 100%;
  color: var(--reurb-heading);
  font-size: 0.86rem;
  font-weight: 900;
}

.reurb-documentos-content .credenciamento-todos {
  margin-bottom: 0;
}

.reurb-documentos-content .credenciamento-categoria + .credenciamento-categoria {
  margin-top: 26px;
}

.reurb-documentos-content .credenciamento-categoria h3 {
  margin: 0 0 12px;
  color: var(--primary-dark);
  font-size: 1.08rem;
  font-weight: 900;
}

.reurb-documentos-content .credenciamento-documentos-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: clamp(20px, 2.6vw, 30px);
  align-items: stretch;
  margin-top: 18px;
}

.reurb-documentos-content .credenciamento-documentos-grid .credenciamento-doc-card {
  width: 100%;
  min-height: clamp(238px, 28vw, 286px);
  border-radius: 8px;
}

.reurb-documentos-content .credenciamento-documentos-grid .credenciamento-doc-preview img {
  object-fit: cover;
  object-position: top center;
}

.reurb-documentos-content .credenciamento-documentos-grid .credenciamento-doc-pelicula {
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.58) 0%, rgba(10, 10, 10, 0.76) 72%, rgba(10, 10, 10, 0.84) 100%);
}

.reurb-documentos-content .credenciamento-documentos-grid .credenciamento-doc-card strong {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 18px 16px 14px;
  font-size: clamp(0.98rem, 1.25vw, 1.12rem);
  font-weight: 800;
  line-height: 1.18;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.reurb-documentos-content .credenciamento-documentos-grid .credenciamento-doc-acessar {
  display: grid;
  place-items: center;
  min-height: 42px;
  padding: 10px 12px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.reurb-classificacao-content .macroregioes-layout {
  align-items: start;
}

.reurb-classificacao-content .macroregioes-mapa-painel {
  position: sticky;
  top: var(--reurb-sticky-top, calc(var(--header-height, 96px) + 18px));
  align-self: start;
  max-height: none;
  height: auto;
  overflow: visible;
  z-index: 2;
}

.reurb-classificacao-content .macroregioes-mapa {
  position: relative;
  z-index: 0;
  isolation: isolate;
  aspect-ratio: auto;
  height: clamp(240px, min(42dvh, calc(100dvh - var(--reurb-header-real, 96px) - 280px)), 500px);
  min-height: 240px;
  max-height: none;
}

.reurb-classificacao-content .macroregioes-card,
.reurb-classificacao-content .macroregioes-tabela tbody tr {
  scroll-margin-top: calc(var(--reurb-sticky-top, 114px) + 6px);
}

.reurb-classificacao-content .macroregioes-mapa .leaflet-pane,
.reurb-classificacao-content .macroregioes-mapa .leaflet-top,
.reurb-classificacao-content .macroregioes-mapa .leaflet-bottom,
.reurb-classificacao-content .macroregioes-mapa .leaflet-control {
  z-index: 20;
}

.reurb-classificacao-content .macroregioes-mapa .leaflet-control-container {
  position: relative;
  z-index: 25;
}

body.tema-escuro .reurb-portal {
  --reurb-surface: #242628;
  --reurb-soft: #303337;
  --reurb-border: #565d65;
  --reurb-text: #f6f6f6;
  --reurb-muted: #d5dbe2;
  --reurb-heading: #ffffff;
  --reurb-accent: #64d8bd;
  --reurb-accent-soft: #263c37;
  --reurb-home-card: #303338;
  --reurb-home-card-hover: #3b4046;
  --reurb-divider: rgba(255, 255, 255, 0.16);
  --reurb-shadow: 0 18px 34px rgba(0, 0, 0, 0.34);
}

body.tema-escuro .reurb-intro__text,
body.tema-escuro .reurb-contact,
body.tema-escuro .reurb-home-hero,
body.tema-escuro .reurb-home-docs {
  background: var(--reurb-surface);
}

body.tema-escuro .reurb-home-hero {
  background: var(--reurb-home-card);
}

body.tema-escuro .reurb-access-card,
body.tema-escuro .reurb-action-card,
body.tema-escuro .reurb-explain-grid article,
body.tema-escuro .reurb-benefit-grid article,
body.tema-escuro .reurb-split article,
body.tema-escuro .reurb-indicators article,
body.tema-escuro .reurb-step-card,
body.tema-escuro .reurb-alert {
  background: var(--reurb-soft);
  border-color: var(--reurb-border);
  color: var(--reurb-text);
}

body.tema-escuro .reurb-intro h1,
body.tema-escuro .reurb-home-hero h1,
body.tema-escuro .reurb-home-docs h2,
body.tema-escuro .reurb-section-heading h2,
body.tema-escuro .reurb-contact h2,
body.tema-escuro .reurb-access-card strong,
body.tema-escuro .reurb-action-card strong,
body.tema-escuro .reurb-explain-grid h3,
body.tema-escuro .reurb-benefit-grid h3,
body.tema-escuro .reurb-split h3,
body.tema-escuro .reurb-step-card h3,
body.tema-escuro .credenciamento-categoria h3 {
  color: #ffffff;
}

body.tema-escuro .reurb-action-card--locked {
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.045) 0 8px, transparent 8px 16px),
    #2b2f34;
  opacity: 0.68;
}

body.tema-escuro .reurb-action-card--locked::after {
  background: rgba(255, 255, 255, 0.12);
  color: #d5dbe2;
}

body.tema-escuro .reurb-action-card--locked i,
body.tema-escuro .reurb-action-card--locked strong,
body.tema-escuro .reurb-action-card--locked span {
  color: #b8c0ca;
}

body.tema-escuro .reurb-btn--secondary {
  border-color: #757d87;
  background: #4c5158;
  color: #ffffff;
}

body.tema-escuro .reurb-btn--secondary:hover,
body.tema-escuro .reurb-btn--secondary:focus-visible {
  border-color: #9aa4b0;
  background: #5a6068;
  color: #ffffff;
}

body.tema-escuro .reurb-home-hero__actions .reurb-btn--secondary {
  border-color: #7d858f;
  background: #4e545c;
  color: #ffffff;
}

body.tema-escuro .reurb-home-hero__actions .reurb-btn--secondary:hover,
body.tema-escuro .reurb-home-hero__actions .reurb-btn--secondary:focus-visible {
  border-color: #9aa4b0;
  background: #5c636d;
  color: #ffffff;
}

body.tema-escuro .reurb-home-hero__actions .reurb-btn--primary {
  border-color: #6f7883;
  background: #383d44;
  color: #f8f9fb;
}

body.tema-escuro .reurb-home-hero__actions .reurb-btn--primary:hover,
body.tema-escuro .reurb-home-hero__actions .reurb-btn--primary:focus-visible {
  border-color: #9aa4b0;
  background: #464c54;
  color: #ffffff;
}

body.tema-escuro #justificar.reurb-portal .reurb-model-home #reurb-home-title,
body.tema-escuro #justificar.reurb-portal .reurb-home-hero h1,
body.tema-escuro .reurb-portal #titulo,
body.tema-escuro .reurb-home-hero__kicker,
body.tema-escuro .reurb-home-docs__kicker,
body.tema-escuro .reurb-home-docs .credenciamento-todos summary,
body.tema-escuro .reurb-model-card strong,
body.tema-escuro .reurb-model-card span,
body.tema-escuro .reurb-model-action strong,
body.tema-escuro .reurb-model-action small {
  color: var(--reurb-heading);
}

body.tema-escuro .reurb-home-hero p,
body.tema-escuro .reurb-home-docs > p:not(.reurb-home-docs__kicker),
body.tema-escuro .reurb-intro p,
body.tema-escuro .reurb-section-heading p,
body.tema-escuro .reurb-benefit-grid p,
body.tema-escuro .reurb-split p,
body.tema-escuro .reurb-step-card p,
body.tema-escuro .reurb-contact p,
body.tema-escuro .reurb-alert p {
  color: var(--reurb-muted);
}

body.tema-escuro .reurb-model-card {
  border-color: var(--reurb-border);
  background: var(--reurb-home-card);
}

body.tema-escuro .reurb-model-action strong {
  border-color: #8fb8ff;
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
}

body.tema-escuro .reurb-model-action strong::after {
  content: none;
  display: none;
}

body.tema-escuro .reurb-model-card span {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.92);
  color: #1f252c;
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.24);
}

body.tema-escuro .reurb-model-card:hover span,
body.tema-escuro .reurb-model-card:focus-visible span {
  border-color: #ffffff;
  background: #ffffff;
  color: #111418;
}

body.tema-escuro .reurb-model-action:hover strong,
body.tema-escuro .reurb-model-action:focus-visible strong {
  border-color: #ffffff;
  background: #ffffff;
  color: #1f252c;
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.3);
}

body.tema-escuro .reurb-model-action:hover strong::after,
body.tema-escuro .reurb-model-action:focus-visible strong::after {
  content: none;
  display: none;
}

body.tema-escuro .reurb-model-card:hover,
body.tema-escuro .reurb-model-card:focus-visible {
  background: var(--reurb-home-card-hover);
  border-color: #8fa3bd;
}

body.tema-escuro .reurb-kicker,
body.tema-escuro .reurb-back-link,
body.tema-escuro .reurb-home-docs .credenciamento-todos summary::before {
  color: #d9e7ff;
}

@media (max-width: 1080px) {
  .reurb-access-grid,
  .reurb-benefit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reurb-classificacao-content .macroregioes-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .reurb-classificacao-content .reurb-macro-disclosure {
    order: 1;
  }

  .reurb-macro-disclosure__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 54px;
    padding: 14px 16px;
    border: 1px solid var(--reurb-border);
    border-radius: 8px;
    background: var(--reurb-surface);
    color: var(--primary-dark);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 800;
    list-style: none;
  }

  .reurb-macro-disclosure__summary::-webkit-details-marker {
    display: none;
  }

  .reurb-macro-disclosure[open] > .reurb-macro-disclosure__summary {
    margin-bottom: 16px;
  }

  .reurb-macro-disclosure:not([open]) > .macroregioes-lista {
    display: none;
  }

  .reurb-classificacao-content .macroregioes-mapa-painel {
    position: static;
    order: 2;
  }

  .reurb-classificacao-content .macroregioes-mapa {
    height: clamp(240px, 44dvh, 390px);
    min-height: 240px;
  }
}

@media (max-width: 860px) {
  .reurb-model-cards,
  .reurb-model-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .reurb-model-card {
    min-height: clamp(292px, 44vw, 340px);
    padding: 16px 14px;
  }

  .reurb-model-card strong {
    font-size: clamp(1.16rem, 3vw, 1.35rem);
  }

  .reurb-model-card span {
    width: 100%;
    min-height: 42px;
    padding: 10px 16px;
    font-size: 0.88rem;
  }

  .reurb-model-card img {
    height: clamp(166px, 27vw, 208px);
  }

  .reurb-model-action strong {
    min-height: 52px;
    font-size: clamp(1.06rem, 2.8vw, 1.24rem);
  }

  .reurb-indicators,
  .reurb-action-grid,
  .reurb-explain-grid,
  .reurb-split,
  .reurb-status-panel {
    grid-template-columns: 1fr;
  }

  .reurb-status-preview {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-width: 0;
  }
}

@media (max-width: 720px) {
  .reurb-access-grid,
  .reurb-benefit-grid {
    grid-template-columns: 1fr;
  }

  .reurb-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .reurb-step-nav {
    width: 100%;
  }

  .reurb-step-nav[data-reurb-step-prev] {
    grid-column: 1;
    grid-row: 2;
  }

  .reurb-step-nav[data-reurb-step-next] {
    grid-column: 2;
    grid-row: 2;
  }

  .reurb-step-track {
    grid-column: 1 / -1;
    grid-row: 1;
    height: auto;
    min-height: 0;
  }

  .reurb-step-card {
    position: relative;
    inset: auto;
    display: none;
    min-height: 0;
    align-content: start;
    padding: clamp(16px, 5vw, 24px);
    opacity: 1;
  }

  .reurb-step-card.is-active,
  .reurb-step-card.is-entering-forward,
  .reurb-step-card.is-entering-backward {
    display: grid;
  }

  .reurb-step-card.is-leaving-forward,
  .reurb-step-card.is-leaving-backward {
    position: absolute;
    inset: 0;
    display: grid;
    pointer-events: none;
  }

  .reurb-contact {
    align-items: stretch;
    flex-direction: column;
  }

  .reurb-contact__actions,
  .reurb-btn {
    width: 100%;
  }

  .reurb-contact__actions {
    flex-basis: auto;
  }
}

@media (max-width: 560px) {
  .reurb-model-home {
    width: min(100%, 360px);
  }

  .reurb-model-cards,
  .reurb-model-actions {
    grid-template-columns: minmax(0, 320px);
    justify-content: center;
    gap: 22px;
  }

  .reurb-model-actions {
    margin-top: 22px;
  }

  .reurb-home-hero__actions,
  .reurb-home-hero__actions .reurb-btn {
    width: 100%;
  }

  .reurb-home-docs .credenciamento-destaques {
    gap: 14px;
  }

  .reurb-home-docs .credenciamento-doc-card {
    width: min(48%, 190px);
    min-height: 210px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reurb-step-card.is-entering-forward,
  .reurb-step-card.is-entering-backward,
  .reurb-step-card.is-leaving-forward,
  .reurb-step-card.is-leaving-backward {
    animation-duration: 0.01ms;
  }
}

.reurb-public-feedback {
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 13px 16px;
  border: 1px solid rgba(11, 122, 95, 0.26);
  border-radius: 8px;
  background: #ecf8f3;
  color: #145341;
  font-weight: 800;
}

.reurb-public-feedback--error {
  border-color: rgba(176, 50, 50, 0.25);
  background: #fff0f0;
  color: #8a2424;
}

.reurb-model-action--button {
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.reurb-form-panel,
.reurb-status-panel,
.reurb-status-disclosure {
  width: min(100%, 980px);
  margin: 0 auto;
  padding: clamp(18px, 2.5vw, 26px);
  border: 1px solid var(--reurb-border);
  border-radius: 8px;
  background: var(--reurb-surface);
  box-shadow: 0 10px 24px rgba(12, 35, 55, 0.07);
}

.reurb-status-panel[hidden] {
  display: none !important;
}

[data-reurb-status-hide][hidden] {
  display: none !important;
}

.reurb-form-title {
  margin-bottom: 18px;
}

.reurb-form-title h2 {
  margin: 0;
  color: var(--primary-dark);
  font-size: clamp(1.35rem, 2.3vw, 1.85rem);
  font-weight: 900;
}

.reurb-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.reurb-form-grid label,
.reurb-field-block {
  display: grid;
  gap: 7px;
  color: var(--reurb-text);
  font-weight: 800;
}

.reurb-form-field--wide {
  grid-column: 1 / -1;
}

.reurb-form-grid input,
.reurb-field-block input,
.reurb-field-block textarea,
.reurb-status-field input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--reurb-border);
  border-radius: 8px;
  background: #ffffff;
  color: var(--reurb-text);
  font: inherit;
  font-weight: 650;
}

.reurb-field-block {
  margin-top: 16px;
}

.reurb-field-block textarea {
  min-height: 128px;
  resize: vertical;
}

.reurb-field-block small {
  color: var(--reurb-muted);
  font-weight: 650;
}

.reurb-macro-fieldset {
  min-width: 0;
  margin: 18px 0 0;
  padding: 18px;
  border: 1px solid var(--reurb-border);
  border-radius: 8px;
  background: #f8fafb;
}

.reurb-macro-fieldset legend {
  float: none;
  width: auto;
  margin: 0 0 14px;
  padding: 0 8px;
  color: var(--primary-dark);
  font-size: 1rem;
  font-weight: 900;
}

.reurb-check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 10px;
  max-height: 430px;
  overflow: auto;
  padding-right: 4px;
  scrollbar-color: #9a9a9a #ececec;
}

.reurb-check-grid::-webkit-scrollbar {
  width: 10px;
}

.reurb-check-grid::-webkit-scrollbar-track {
  background: #ececec;
}

.reurb-check-grid::-webkit-scrollbar-thumb {
  background: #9a9a9a;
  border-radius: 999px;
}

.reurb-check-card {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 12px 14px;
  border: 1px solid #d6d6d6;
  border-radius: 8px;
  background: #ffffff;
  color: var(--reurb-text);
  font-weight: 760;
  line-height: 1.25;
}

.reurb-check-card--choice {
  border-color: #bcbcbc;
  background: #f1f1f1;
}

.reurb-check-card input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #555555;
}

.reurb-check-card span {
  min-width: 0;
  overflow-wrap: break-word;
  hyphens: auto;
  white-space: normal;
  text-wrap: pretty;
}

.reurb-status-field {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.reurb-status-field i {
  color: var(--reurb-muted);
}

.reurb-status-field button {
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid var(--primary);
  border-radius: 8px;
  background: var(--primary);
  color: #ffffff;
  font-weight: 900;
}

.reurb-status-result {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(11, 122, 95, 0.26);
  border-radius: 8px;
  background: #f4fbf8;
}

.reurb-status-result__top {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.reurb-status-result__top span,
.reurb-status-result dt {
  color: var(--reurb-muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.reurb-status-result__top strong {
  display: block;
  color: var(--primary-dark);
  font-size: 1.25rem;
  line-height: 1.2;
}

.reurb-status-result dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.reurb-status-result dd {
  margin: 2px 0 0;
  color: var(--reurb-text);
  font-weight: 800;
}

.reurb-status-result p {
  margin: 14px 0 0;
  color: var(--reurb-text);
}

.reurb-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #e8ecef;
  color: #2d3640;
  font-weight: 900;
  white-space: nowrap;
}

.reurb-status-pill--aprovada,
.reurb-status-pill--credenciada,
.reurb-status-pill--concluida {
  background: #dff5ea;
  color: #155a39;
}

.reurb-status-pill--rejeitada,
.reurb-status-pill--nao_credenciada {
  background: #fde8e8;
  color: #8a2424;
}

.reurb-status-pill--diligencia,
.reurb-status-pill--em_analise {
  background: #fff5d8;
  color: #715211;
}

.reurb-status-disclosure summary {
  cursor: pointer;
  color: var(--primary-dark);
  font-weight: 900;
}

.reurb-status-disclosure .reurb-status-panel {
  width: 100%;
  margin-top: 14px;
  padding: 0;
  border: 0;
  box-shadow: none;
}

.reurb-contratar-modal[hidden],
.reurb-status-modal[hidden],
.reurb-credenciar-toast[hidden] {
  display: none !important;
}

.reurb-contratar-modal,
.reurb-status-modal {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: grid;
  place-items: center;
  padding: 20px;
}

.reurb-contratar-modal__overlay,
.reurb-status-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.reurb-contratar-modal__dialog {
  position: relative;
  width: min(100%, 760px);
  padding: clamp(20px, 3vw, 30px);
  border-radius: 8px;
  background: var(--reurb-surface);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.3);
}

.reurb-contratar-modal__dialog h2 {
  margin: 0 42px 18px 0;
  color: var(--primary-dark);
  font-weight: 900;
}

.reurb-contratar-modal__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.reurb-contratar-modal__actions .reurb-action-card {
  min-height: 172px;
}

.reurb-contratar-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--reurb-border);
  border-radius: 8px;
  background: #ffffff;
  color: var(--reurb-text);
}

.reurb-status-modal__dialog {
  position: relative;
  width: min(100%, 880px);
  max-height: min(86vh, 760px);
  overflow: auto;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid #d7dde3;
  border-radius: 8px;
  background: #ffffff;
  color: #1c252e;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.3);
}

.reurb-status-modal__dialog h2 {
  margin: 0 42px 16px 0;
  color: #102a43;
  font-weight: 900;
}

.reurb-status-modal__message {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #ecf8f3;
  color: #145341;
  font-weight: 800;
}

.reurb-status-modal__message--error {
  background: #fff0f0;
  color: #8a2424;
}

.reurb-status-modal__results {
  display: grid;
  gap: 14px;
}

.reurb-status-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--reurb-border);
  border-radius: 8px;
  background: #ffffff;
  color: var(--reurb-text);
}

.reurb-status-messages {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.reurb-status-messages > strong {
  color: #102a43;
  font-weight: 900;
}

.reurb-status-messages article {
  width: min(100%, 620px);
  padding: 11px 12px;
  border: 1px solid #d7dde3;
  border-radius: 8px;
  background: #ffffff;
}

.reurb-status-messages article.is-sent {
  justify-self: start;
  border-color: #9ec8ff;
  background: #eaf4ff;
}

.reurb-status-messages article.is-received {
  justify-self: end;
  border-color: #8bd4b1;
  background: #e5f8ee;
  text-align: right;
}

.reurb-status-messages article span {
  color: #687586;
  font-size: 0.78rem;
  font-weight: 800;
}

.reurb-status-messages article p {
  margin: 6px 0 0;
}

.reurb-modal-open {
  overflow: hidden;
}

.reurb-credenciar-toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 2400;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px 12px;
  width: min(calc(100% - 28px), 520px);
  padding: 13px 14px;
  border: 2px dashed #0b7a5f;
  border-radius: 8px;
  background: #ffffff;
  color: #153f34;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.22);
  transform: translateX(-50%);
  animation: reurb-toast-border-blink 0.9s steps(2, start) infinite;
}

.reurb-credenciar-toast > button {
  grid-row: 1 / span 2;
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid #d6d6d6;
  border-radius: 8px;
  background: #f7f7f7;
  color: #333333;
}

.reurb-credenciar-toast strong {
  min-width: 0;
  color: inherit;
  font-size: 0.95rem;
  line-height: 1.25;
}

.reurb-credenciar-toast label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #3f4f4a;
  font-size: 0.82rem;
  font-weight: 800;
}

.reurb-credenciar-toast input {
  accent-color: #0b7a5f;
}

@keyframes reurb-toast-border-blink {
  0%, 100% {
    border-color: #0b7a5f;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.22), 0 0 0 0 rgba(11, 122, 95, 0.4);
  }

  50% {
    border-color: #f0b429;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.22), 0 0 0 4px rgba(240, 180, 41, 0.22);
  }
}

body.tema-escuro .reurb-form-panel,
body.tema-escuro .reurb-status-panel,
body.tema-escuro .reurb-status-disclosure,
body.tema-escuro .reurb-macro-fieldset,
body.tema-escuro .reurb-check-card,
body.tema-escuro .reurb-status-result,
body.tema-escuro .reurb-contratar-modal__dialog,
body.tema-escuro .reurb-status-modal__dialog,
body.tema-escuro .reurb-status-messages article {
  border-color: rgba(255, 255, 255, 0.14);
  background: #161b22;
  color: #f2f6f9;
}

body.tema-escuro .reurb-form-grid label,
body.tema-escuro .reurb-field-block,
body.tema-escuro .reurb-status-result dd,
body.tema-escuro .reurb-status-result p,
body.tema-escuro .reurb-alert strong,
body.tema-escuro .reurb-status-messages > strong,
body.tema-escuro .reurb-status-messages article p {
  color: #f2f6f9;
}

body.tema-escuro .reurb-form-title h2,
body.tema-escuro .reurb-macro-fieldset legend,
body.tema-escuro .reurb-status-result__top strong,
body.tema-escuro .reurb-status-disclosure summary,
body.tema-escuro .reurb-contratar-modal__dialog h2,
body.tema-escuro .reurb-status-modal__dialog h2 {
  color: #ffffff;
}

body.tema-escuro .reurb-form-grid input,
body.tema-escuro .reurb-field-block input,
body.tema-escuro .reurb-field-block textarea,
body.tema-escuro .reurb-status-field input,
body.tema-escuro .reurb-contratar-modal__close,
body.tema-escuro .reurb-status-modal__close {
  border-color: rgba(255, 255, 255, 0.16);
  background: #0f141b;
  color: #f2f6f9;
}

body.tema-escuro .reurb-status-modal__message {
  background: #133226;
  color: #dbfff0;
}

body.tema-escuro .reurb-status-modal__message--error {
  background: #35191a;
  color: #ffd9d9;
}

body.tema-escuro .reurb-check-card--choice {
  background: #202731;
}

body.tema-escuro .reurb-public-feedback {
  background: #133226;
  color: #dbfff0;
}

body.tema-escuro .reurb-public-feedback--error {
  background: #35191a;
  color: #ffd9d9;
}

body.tema-escuro .reurb-status-messages article.is-sent {
  border-color: #2f609f;
  background: #10233d;
}

body.tema-escuro .reurb-status-messages article.is-received {
  border-color: #287154;
  background: #102d23;
}

body.tema-escuro .reurb-status-pill {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #2f3a46;
  color: #f8fafc;
}

body.tema-escuro .reurb-status-pill--aprovada,
body.tema-escuro .reurb-status-pill--credenciada,
body.tema-escuro .reurb-status-pill--concluida {
  border-color: #36a270;
  background: #123525;
  color: #bff7d8;
}

body.tema-escuro .reurb-status-pill--rejeitada,
body.tema-escuro .reurb-status-pill--nao_credenciada {
  border-color: #d65d5d;
  background: #3b1717;
  color: #ffd4d4;
}

body.tema-escuro .reurb-status-pill--diligencia,
body.tema-escuro .reurb-status-pill--em_analise {
  border-color: #d6a23f;
  background: #3a2b12;
  color: #ffe2a8;
}

body.tema-escuro .reurb-status-pill--contratacao {
  border-color: #4d87d9;
  background: #132b4d;
  color: #cfe2ff;
}

body.tema-escuro .reurb-credenciar-toast {
  background: #161b22;
  color: #f2f6f9;
}

@media (max-width: 720px) {
  .reurb-form-grid,
  .reurb-status-result dl,
  .reurb-contratar-modal__actions,
  .reurb-check-grid {
    grid-template-columns: 1fr;
  }

  .reurb-status-field {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .reurb-status-field button {
    grid-column: 1 / -1;
    width: 100%;
  }
}

.reurb-contratar-modal__dialog {
  border: 1px solid #d7dde3;
  background: #ffffff;
  color: #1c252e;
}

.reurb-contratar-modal__dialog .reurb-kicker {
  color: #0b7a5f;
}

.reurb-contratar-modal__dialog h2 {
  color: #102a43;
}

.reurb-contratar-modal__actions .reurb-action-card {
  position: relative;
  overflow: hidden;
  z-index: 0;
  border-color: #d7dde3;
  background: #f7fafc;
  color: #1c252e;
  box-shadow: none;
  transform: translateY(0);
  transform-origin: center;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, transform 0.22s ease, filter 0.2s ease;
}

.reurb-contratar-modal__actions .reurb-action-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, transparent 0%, rgba(11, 122, 95, 0.12) 44%, rgba(11, 122, 95, 0.2) 50%, transparent 58%);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-105%);
  transition: opacity 0.18s ease, transform 0.42s ease;
}

.reurb-contratar-modal__actions .reurb-action-card i {
  color: #0b7a5f;
  transition: color 0.18s ease, transform 0.18s ease;
}

.reurb-contratar-modal__actions .reurb-action-card strong {
  color: #102a43;
}

.reurb-contratar-modal__actions .reurb-action-card span {
  color: #4a5568;
}

.reurb-contratar-modal__actions .reurb-action-card:hover,
.reurb-contratar-modal__actions .reurb-action-card:focus-visible {
  z-index: 2;
  border-color: #0b7a5f;
  background: linear-gradient(135deg, #e8fff6 0%, #f6fffb 48%, #eaf3ff 100%);
  color: #102a43;
  box-shadow:
    0 28px 55px rgba(11, 122, 95, 0.24),
    0 10px 22px rgba(16, 42, 67, 0.18);
  filter: saturate(1.05);
  transform: translateY(-10px) scale(1.045);
}

.reurb-contratar-modal__actions .reurb-action-card:hover::after,
.reurb-contratar-modal__actions .reurb-action-card:focus-visible::after {
  opacity: 1;
  transform: translateX(105%);
}

.reurb-contratar-modal__actions .reurb-action-card:hover i,
.reurb-contratar-modal__actions .reurb-action-card:focus-visible i {
  transform: scale(1.12) rotate(-4deg);
}

.reurb-status-field {
  position: static;
  max-width: none;
}

.reurb-status-field i {
  position: static;
  transform: none;
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 46px;
}

.reurb-status-field input {
  padding-left: 12px;
}

body.tema-escuro .reurb-contratar-modal__dialog {
  border-color: rgba(255, 255, 255, 0.16);
  background: #111827;
  color: #e5e7eb;
}

body.tema-escuro .reurb-contratar-modal__dialog .reurb-kicker {
  color: #74d3b6;
}

body.tema-escuro .reurb-contratar-modal__dialog h2,
body.tema-escuro .reurb-contratar-modal__actions .reurb-action-card strong {
  color: #ffffff;
}

body.tema-escuro .reurb-contratar-modal__actions .reurb-action-card {
  border-color: rgba(255, 255, 255, 0.14);
  background: #1f2937;
  color: #e5e7eb;
}

body.tema-escuro .reurb-contratar-modal__actions .reurb-action-card i {
  color: #74d3b6;
}

body.tema-escuro .reurb-contratar-modal__actions .reurb-action-card span {
  color: #cbd5e1;
}

body.tema-escuro .reurb-contratar-modal__actions .reurb-action-card:hover,
body.tema-escuro .reurb-contratar-modal__actions .reurb-action-card:focus-visible {
  border-color: #74d3b6;
  background: linear-gradient(135deg, #18382f 0%, #1f2937 48%, #18314d 100%);
  box-shadow:
    0 30px 58px rgba(116, 211, 182, 0.2),
    0 10px 24px rgba(0, 0, 0, 0.36);
}

body.tema-escuro .reurb-contratar-modal__actions .reurb-action-card::after {
  background: linear-gradient(120deg, transparent 0%, rgba(116, 211, 182, 0.1) 44%, rgba(116, 211, 182, 0.22) 50%, transparent 58%);
}

/* Card de abertura na paleta institucional. */
body:not(.tema-escuro):not(.tema-contraste) .reurb-home-hero {
  border-left-color: #033981;
  background: #e8f1fa;
  box-shadow: 0 14px 30px rgba(16, 57, 95, .12);
}

body:not(.tema-escuro):not(.tema-contraste) .reurb-home-hero__kicker {
  color: #416c9b;
}

body:not(.tema-escuro):not(.tema-contraste) #justificar.reurb-portal .reurb-home-hero h1 {
  color: #10395f;
}

body:not(.tema-escuro):not(.tema-contraste) .reurb-home-hero p {
  color: #354b61;
}

body.tema-escuro:not(.tema-contraste) .reurb-home-hero {
  border-left-color: #78b9f2;
  background: #172f49;
  box-shadow: 0 18px 34px rgba(0, 0, 0, .34);
}

body.tema-escuro:not(.tema-contraste) .reurb-home-hero__kicker {
  color: #9bcaf2;
}

body.tema-escuro:not(.tema-contraste) #justificar.reurb-portal .reurb-home-hero h1 {
  color: #eaf4ff;
}

body.tema-escuro:not(.tema-contraste) .reurb-home-hero p {
  color: #c8d7e6;
}

body:not(.tema-escuro):not(.tema-contraste) .reurb-home-hero__actions .reurb-btn--secondary {
  border-color: #9bb8d5;
  background: #dce9f6;
  color: #10395f;
}

body:not(.tema-escuro):not(.tema-contraste) .reurb-home-hero__actions .reurb-btn--secondary:hover,
body:not(.tema-escuro):not(.tema-contraste) .reurb-home-hero__actions .reurb-btn--secondary:focus-visible {
  border-color: #7397bd;
  background: #c9dcef;
  color: #082c60;
}

body:not(.tema-escuro):not(.tema-contraste) .reurb-home-hero__actions .reurb-btn--primary {
  border-color: #033981;
  background: #033981;
  color: #fff;
}

body:not(.tema-escuro):not(.tema-contraste) .reurb-home-hero__actions .reurb-btn--primary:hover,
body:not(.tema-escuro):not(.tema-contraste) .reurb-home-hero__actions .reurb-btn--primary:focus-visible {
  border-color: #082c60;
  background: #082c60;
  color: #fff;
}

body.tema-escuro:not(.tema-contraste) .reurb-home-hero__actions .reurb-btn--secondary {
  border-color: #6b9bc6;
  background: #203b56;
  color: #eaf4ff;
}

body.tema-escuro:not(.tema-contraste) .reurb-home-hero__actions .reurb-btn--secondary:hover,
body.tema-escuro:not(.tema-contraste) .reurb-home-hero__actions .reurb-btn--secondary:focus-visible {
  border-color: #78b9f2;
  background: #274663;
  color: #fff;
}

body.tema-escuro:not(.tema-contraste) .reurb-home-hero__actions .reurb-btn--primary {
  border-color: #78b9f2;
  background: #37658d;
  color: #fff;
}

body.tema-escuro:not(.tema-contraste) .reurb-home-hero__actions .reurb-btn--primary:hover,
body.tema-escuro:not(.tema-contraste) .reurb-home-hero__actions .reurb-btn--primary:focus-visible {
  border-color: #9bcaf2;
  background: #477eaa;
  color: #fff;
}
