/* Garante que [hidden] sempre esconde, independente de display: grid/flex nas classes */
[hidden] { display: none !important; }

:root {
  --brg-green: #00a34f;
  --brg-green-soft: #b7c958;
  --brg-dark: #13162f;
  --brg-gold: #ffd700;
  --brg-white: #ffffff;
  --ink: #172033;
  --muted: #667085;
  --line: #d9dee8;
  --surface: #f4f7f6;
  --panel: #ffffff;
  --danger: #c62828;
  --warning: #b7791f;
  --ok: #008a43;
  --shadow: 0 18px 50px rgba(19, 22, 47, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
}

body {
  margin: 0;
  font-family: Poppins, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(0, 163, 79, 0.08), transparent 34%),
    linear-gradient(180deg, #f8faf9 0%, #eef3f1 100%);
}

button,
input,
select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    linear-gradient(145deg, rgba(19, 22, 47, 0.96), rgba(19, 22, 47, 0.88)),
    linear-gradient(90deg, var(--brg-green), var(--brg-green-soft));
}

.login-shell {
  width: min(1080px, calc(100% - 32px));
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: stretch;
}

.login-brand,
.login-card {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.login-brand {
  min-height: 430px;
  padding: 42px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--brg-white);
  background:
    linear-gradient(160deg, rgba(0, 163, 79, 0.22), rgba(19, 22, 47, 0.1)),
    rgba(255, 255, 255, 0.04);
}

.login-brand img {
  width: 170px;
  height: auto;
}

.eyebrow {
  display: inline-flex;
  color: var(--brg-green-soft);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.login-brand h1,
.hero-panel h1 {
  margin: 10px 0 8px;
  font-size: clamp(2rem, 5vw, 4.4rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.login-brand p,
.hero-panel p {
  margin: 0;
  max-width: 680px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
}

.login-card {
  padding: 34px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--brg-white);
}

.login-card__header {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--brg-dark);
  font-weight: 700;
}

.login-hint {
  margin: -4px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brg-green);
  box-shadow: 0 0 0 5px rgba(0, 163, 79, 0.12);
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

input,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 11px 12px;
  color: var(--ink);
  background: var(--brg-white);
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--brg-green);
  box-shadow: 0 0 0 3px rgba(0, 163, 79, 0.13);
}

button,
.ghost-button {
  border: 0;
  border-radius: var(--radius);
  padding: 11px 14px;
  background: var(--brg-green);
  color: var(--brg-white);
  font-weight: 800;
  cursor: pointer;
}

.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e8eeeb;
  color: var(--brg-dark);
}

.form-error {
  border-radius: var(--radius);
  padding: 10px 12px;
  background: #fff1f1;
  color: var(--danger);
  font-weight: 700;
}

.dashboard-page {
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 244px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  color: var(--brg-white);
  background: var(--brg-dark);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.brand img {
  width: 88px;
  height: auto;
}

.side-nav {
  display: grid;
  gap: 8px;
}

.nav-item {
  width: 100%;
  text-align: left;
  color: rgba(255, 255, 255, 0.72);
  background: transparent;
  border: 1px solid transparent;
}

.nav-item.is-active,
.nav-item:hover {
  color: var(--brg-white);
  background: rgba(0, 163, 79, 0.18);
  border-color: rgba(0, 163, 79, 0.35);
}

.nav-link {
  display: block;
  width: 100%;
  border-radius: var(--radius);
  padding: 11px 14px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
  border: 1px solid rgba(183, 201, 88, 0.32);
}

.presentation-link {
  color: var(--brg-dark);
  background: linear-gradient(90deg, var(--brg-gold), #fff1a8);
  border-color: rgba(255, 215, 0, 0.76);
  box-shadow: 0 10px 24px rgba(255, 215, 0, 0.16);
}

.logout-link {
  margin-top: auto;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
}

.dashboard {
  margin-left: 244px;
  padding: 24px;
}

.hero-panel {
  min-height: 230px;
  padding: 32px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  color: var(--brg-white);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(0, 163, 79, 0.34), transparent 45%),
    linear-gradient(100deg, var(--brg-dark), #202747);
  box-shadow: var(--shadow);
}

.hero-panel h1 {
  font-size: clamp(2rem, 4vw, 3.6rem);
}

.hero-meta {
  min-width: 180px;
  padding: 16px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-meta span {
  display: block;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.76rem;
  font-weight: 700;
}

.hero-meta strong {
  display: block;
  margin-top: 6px;
  font-size: 1.1rem;
}

.hero-meta small {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.7);
}

.scope-toggle {
  display: inline-flex;
  justify-content: center;
  width: 100%;
  margin-top: 12px;
  border-radius: var(--radius);
  padding: 9px 10px;
  color: var(--brg-dark);
  background: var(--brg-gold);
  font-size: 0.78rem;
  font-weight: 900;
}

.csv-actions {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.csv-actions form {
  margin: 0;
}

.csv-actions button,
.csv-actions a {
  width: 100%;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  padding: 8px 10px;
  font-size: 0.78rem;
  font-weight: 900;
}

.csv-actions button {
  background: var(--brg-green-soft);
  color: var(--brg-dark);
}

.csv-actions a {
  background: rgba(255, 255, 255, 0.16);
  color: var(--brg-white);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.csv-actions .btn-excel {
  background: #1D6F42;
  color: #fff;
  border: none;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.csv-actions small {
  margin: 0;
  text-align: center;
  font-size: 0.72rem;
}

.filter-shell {
  margin: 18px 0;
}

.filter-summary {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 28px rgba(19, 22, 47, 0.06);
}

.filter-toggle {
  min-width: 150px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--brg-dark);
}

.filter-toggle span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
}

.filter-toggle::after {
  content: "▾";
  font-size: 0.8rem;
}

.filter-toggle.is-open::after {
  transform: rotate(180deg);
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.filter-chip,
.clear-filters {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 0.78rem;
  font-weight: 900;
}

.filter-chip {
  color: var(--brg-dark);
  background: #e8eeeb;
  border: 1px solid var(--line);
}

.filter-chip strong {
  color: var(--danger);
  font-size: 1rem;
  line-height: 1;
}

.clear-filters {
  color: var(--brg-white);
  background: var(--danger);
}

.filters {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(6, minmax(140px, 1fr));
  gap: 12px;
  align-items: end;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 28px rgba(19, 22, 47, 0.06);
}

.filters[hidden] {
  display: none !important;
}

.filter-search {
  grid-column: span 2;
}

.check-filter {
  display: flex;
  min-height: 43px;
  flex-direction: row;
  align-items: center;
  gap: 9px;
  color: var(--ink);
}

.check-filter input {
  width: 18px;
  height: 18px;
  accent-color: var(--brg-green);
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(130px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.kpi-card,
.panel,
.aging-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 8px 24px rgba(19, 22, 47, 0.06);
}

.kpi-card {
  padding: 18px;
  border-top: 3px solid var(--brg-green);
}

.kpi-card span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.kpi-card strong {
  display: block;
  margin-top: 8px;
  color: var(--brg-dark);
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  line-height: 1;
}

.kpi-card.danger {
  border-top-color: var(--danger);
}

.kpi-card.accent {
  border-top-color: var(--brg-gold);
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
}

.grid-two,
.alert-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.panel {
  padding: 18px;
  overflow: hidden;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.panel-heading h2 {
  margin: 0;
  color: var(--brg-dark);
  font-size: 1.02rem;
}

.panel-heading span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.bar-list {
  display: grid;
  gap: 14px;
  align-content: start;
}

.bar-list.compact {
  gap: 11px;
}

.bar-row {
  display: grid;
  gap: 8px;
}

.bar-row__label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink);
}

.bar-row__label strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bar-row__label span {
  color: var(--muted);
  white-space: nowrap;
}

.bar-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8eeeb;
}

.bar-track span {
  display: block;
  width: var(--bar);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brg-green), var(--brg-green-soft));
}

.aging-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.aging-card {
  padding: 16px;
  background: #f8faf9;
}

.aging-card span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.aging-card strong {
  display: block;
  margin-top: 6px;
  font-size: 1.7rem;
  color: var(--brg-dark);
}

.table-search {
  max-width: 280px;
}

.table-wrap {
  max-height: 68vh;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.pagination {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.pagination button {
  padding: 8px 12px;
  background: var(--brg-dark);
}

.pagination button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.pagination__label {
  color: var(--muted);
  font-weight: 800;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

th,
td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: var(--brg-white);
  background: var(--brg-dark);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.th-sortable {
  cursor: pointer;
  user-select: none;
}

.th-sortable:hover {
  color: var(--brg-gold);
}

.th--sorted {
  color: var(--brg-green-soft);
}

.sort-indicator {
  font-size: 0.65em;
  margin-left: 4px;
  opacity: 0.9;
}

td small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.badge,
.progress-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 3px 9px;
  color: var(--brg-dark);
  background: #e8eeeb;
  font-size: 0.76rem;
  font-weight: 800;
}

.badge.ok {
  color: var(--ok);
  background: #e9f8ef;
}

.badge.danger {
  color: var(--danger);
  background: #fff1f1;
}

.alert-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.alert-list {
  display: grid;
  gap: 10px;
}

.alert-item {
  padding: 12px;
  border-left: 3px solid var(--brg-green);
  border-radius: var(--radius);
  background: #f8faf9;
}

.alert-item strong,
.alert-item span {
  display: block;
}

.alert-item span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.84rem;
}

.empty {
  margin: 0;
  color: var(--muted);
}

.presentation-page {
  min-height: 100vh;
  color: var(--brg-white);
  background:
    radial-gradient(circle at 12% 14%, rgba(0, 163, 79, 0.3), transparent 26%),
    radial-gradient(circle at 88% 12%, rgba(255, 215, 0, 0.14), transparent 24%),
    linear-gradient(135deg, #0b0e20, var(--brg-dark));
}

.presentation-topbar {
  height: 76px;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.presentation-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
}

.presentation-brand img {
  width: 96px;
}

.presentation-actions {
  display: flex;
  gap: 10px;
}

.presentation-stage {
  min-height: calc(100vh - 156px);
  padding: 0 28px 24px;
  display: grid;
}

.deck-slide {
  display: none;
  min-height: calc(100vh - 180px);
  padding: clamp(26px, 5vw, 58px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.05);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.24);
  overflow: hidden;
}

.deck-slide.is-active {
  display: flex;
  flex-direction: column;
  justify-content: center;
  animation: slideIn 240ms ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cover-slide,
.closing-slide {
  background:
    linear-gradient(135deg, rgba(0, 163, 79, 0.28), transparent 46%),
    linear-gradient(100deg, rgba(19, 22, 47, 0.96), rgba(32, 39, 71, 0.88));
}

.slide-kicker {
  color: var(--brg-green-soft);
  font-size: clamp(0.78rem, 1.3vw, 1rem);
  font-weight: 900;
  text-transform: uppercase;
}

.deck-slide h1,
.deck-slide h2 {
  margin: 12px 0 18px;
  max-width: 1100px;
  letter-spacing: -0.03em;
  line-height: 0.96;
}

.deck-slide h1 {
  font-size: clamp(3rem, 8vw, 7rem);
}

.deck-slide h2 {
  font-size: clamp(2.2rem, 5vw, 4.8rem);
}

.deck-slide p {
  max-width: 920px;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  line-height: 1.6;
}

.slide-number-grid,
.slide-kpi-grid,
.slide-mini-grid {
  display: grid;
  gap: 16px;
}

.slide-number-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 46px;
}

.slide-kpi-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.slide-mini-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 24px;
}

.slide-number-grid article,
.slide-kpi-grid article,
.slide-mini-grid article,
.slide-big-stat,
.slide-card-list article {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.08);
}

.slide-number-grid span,
.slide-kpi-grid span,
.slide-mini-grid span,
.slide-big-stat span {
  display: block;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.slide-number-grid strong,
.slide-kpi-grid strong,
.slide-mini-grid strong,
.slide-big-stat strong {
  display: block;
  margin-top: 8px;
  color: var(--brg-white);
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
}

.slide-kpi-grid small,
.slide-big-stat small {
  display: block;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.68);
}

.slide-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 22px;
  align-items: stretch;
}

.slide-chart,
.slide-card-list,
.slide-table,
.recommendation-list {
  display: grid;
  gap: 12px;
}

.slide-bar-row {
  display: grid;
  grid-template-columns: minmax(170px, 0.7fr) 1fr minmax(140px, 0.4fr);
  align-items: center;
  gap: 14px;
}

.slide-bar-row span,
.slide-card-list span,
.slide-table span {
  color: rgba(255, 255, 255, 0.72);
}

.slide-bar-track {
  height: 16px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.slide-bar-track i {
  display: block;
  width: var(--bar);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brg-green), var(--brg-gold));
}

.slide-big-stat.danger {
  border-color: rgba(198, 40, 40, 0.42);
  background: linear-gradient(135deg, rgba(198, 40, 40, 0.22), rgba(255, 255, 255, 0.06));
}

.slide-card-list.compact {
  align-content: start;
}

.slide-card-list article strong,
.slide-card-list article span {
  display: block;
}

.slide-card-list article span {
  margin-top: 8px;
}

.slide-note {
  margin-top: 24px;
  padding-left: 16px;
  border-left: 4px solid var(--brg-gold);
}

.slide-table {
  gap: 8px;
}

.slide-table div {
  display: grid;
  grid-template-columns: 1.1fr 1fr 0.6fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.recommendation-list {
  max-width: 1100px;
  margin: 0;
  padding-left: 1.4rem;
  font-size: clamp(1.1rem, 2vw, 1.55rem);
  line-height: 1.45;
}

.recommendation-list li {
  margin-bottom: 12px;
}

.deck-controls {
  min-height: 80px;
  padding: 0 28px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.deck-controls button,
.presentation-actions button {
  background: var(--brg-green);
}

.deck-controls button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.deck-dots {
  display: flex;
  gap: 6px;
}

.deck-dots button {
  width: 9px;
  height: 9px;
  min-height: 0;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
}

.deck-dots button.is-active {
  width: 28px;
  background: var(--brg-gold);
}

@media (max-width: 1180px) {
  .filters {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
  }

  .kpi-grid {
    grid-template-columns: repeat(3, minmax(130px, 1fr));
  }
}

@media (max-width: 860px) {
  .login-shell {
    grid-template-columns: 1fr;
  }

  .login-brand {
    min-height: 280px;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 4;
    width: 100%;
    padding: 12px;
    flex-direction: row;
    align-items: center;
    overflow-x: auto;
  }

  .brand span,
  .logout-link {
    display: none;
  }

  .brand img {
    width: 72px;
  }

  .side-nav {
    display: flex;
    gap: 8px;
  }

  .nav-item {
    white-space: nowrap;
  }

  .nav-link {
    white-space: nowrap;
  }

  .dashboard {
    margin-left: 0;
    padding: 14px;
  }

  .hero-panel {
    min-height: 260px;
    align-items: flex-start;
    flex-direction: column;
  }

  .filters,
  .grid-two,
  .alert-grid {
    grid-template-columns: 1fr;
  }

  .filter-search {
    grid-column: auto;
  }

  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .aging-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .panel-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .table-search {
    max-width: none;
  }

  .table-wrap {
    max-height: none;
    border: 0;
  }

  table,
  thead,
  tbody,
  tr,
  th,
  td {
    display: block;
  }

  thead {
    display: none;
  }

  tr {
    margin-bottom: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--brg-white);
    overflow: hidden;
  }

  td {
    display: grid;
    grid-template-columns: 118px 1fr;
    gap: 10px;
    border-bottom: 1px solid #edf0f4;
  }

  td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
  }

  .presentation-topbar {
    height: auto;
    padding: 12px;
    align-items: flex-start;
    flex-direction: column;
  }

  .presentation-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .presentation-stage {
    min-height: auto;
    padding: 0 12px 12px;
  }

  .deck-slide {
    min-height: calc(100vh - 190px);
    padding: 22px;
  }

  .slide-number-grid,
  .slide-kpi-grid,
  .slide-mini-grid,
  .slide-split {
    grid-template-columns: 1fr;
  }

  .slide-bar-row,
  .slide-table div {
    grid-template-columns: 1fr;
  }

  .deck-controls {
    padding: 0 12px 16px;
    flex-wrap: wrap;
  }
}

@media (max-width: 520px) {
  .login-shell {
    width: calc(100% - 20px);
  }

  .login-brand,
  .login-card,
  .hero-panel,
  .panel {
    padding: 18px;
  }

  .kpi-grid {
    grid-template-columns: 1fr;
  }

  td {
    grid-template-columns: 1fr;
  }
}

/* Apresentacao no estilo do PPT modelo_teste.pptx */
.presentation-page {
  min-height: 100vh;
  color: #ffffff;
  background:
    radial-gradient(circle at 15% 10%, rgba(59, 130, 246, 0.22), transparent 26%),
    radial-gradient(circle at 88% 18%, rgba(16, 185, 129, 0.14), transparent 24%),
    linear-gradient(135deg, #0f172a, #111827);
  overflow-x: hidden;
}

.presentation-page .presentation-topbar {
  height: 72px;
  padding: 14px 28px;
  align-items: center;
  flex-direction: row;
  background: rgba(15, 23, 42, 0.92);
  border-bottom: 1px solid rgba(148, 163, 184, 0.24);
}

.presentation-page .presentation-brand {
  color: #ffffff;
  letter-spacing: -0.01em;
}

.presentation-page .presentation-brand img {
  width: 88px;
}

.presentation-page .presentation-actions {
  width: auto;
  flex-wrap: nowrap;
  align-items: center;
}

.presentation-page .presentation-actions .ghost-button {
  min-height: 42px;
  background: rgba(248, 250, 252, 0.1);
  color: #ffffff;
  border: 1px solid rgba(248, 250, 252, 0.2);
}

.presentation-page .presentation-actions .ghost-button:hover {
  background: rgba(248, 250, 252, 0.18);
}

.presentation-page .presentation-fullscreen {
  min-height: 42px;
  color: #13162f;
  background: linear-gradient(90deg, #ffd700, #fff1a8);
  border: 1px solid rgba(255, 215, 0, 0.78);
  box-shadow: 0 12px 26px rgba(255, 215, 0, 0.18);
}

.presentation-page .presentation-stage {
  min-height: calc(100vh - 152px);
  padding: 0 28px 18px;
  display: grid;
  place-items: center;
}

.presentation-page .deck-slide {
  display: none;
  position: relative;
  width: min(1220px, calc(100vw - 56px));
  min-height: 0;
  aspect-ratio: 16 / 9;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  color: #1e293b;
  background: #f7f7f7;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.38);
  font-family: Aptos, Calibri, Poppins, "Segoe UI", sans-serif;
}

.presentation-page .deck-slide.is-active {
  display: block;
  animation: slideIn 180ms ease-out;
}

.presentation-page .deck-slide h1,
.presentation-page .deck-slide h2,
.presentation-page .deck-slide h3,
.presentation-page .deck-slide p {
  margin: 0;
  max-width: none;
  color: inherit;
  letter-spacing: 0;
}

.ppt-header {
  position: absolute;
  inset: 0 0 auto;
  height: 14.2%;
  display: flex;
  align-items: center;
  gap: 2.2%;
  padding: 0 4.1%;
  color: #ffffff;
  background: #1e293b;
}

.ppt-header__code {
  min-width: 12%;
  color: #cbd5e1;
  font-size: clamp(0.72rem, 1.04vw, 1rem);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.ppt-header h2 {
  color: #ffffff;
  font-size: clamp(1.05rem, 2vw, 2rem);
  font-weight: 800;
}

.ppt-blue-line {
  position: absolute;
  top: 14.2%;
  left: 0;
  right: 0;
  height: 0.85%;
  background: #3b82f6;
}

.ppt-footer {
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: 2.1%;
  display: flex;
  justify-content: space-between;
  padding-top: 0.65%;
  border-top: 2px solid #e2e8f0;
  color: #64748b;
  font-size: clamp(0.52rem, 0.82vw, 0.8rem);
  font-weight: 600;
}

.ppt-body {
  position: absolute;
  top: 18%;
  right: 4%;
  bottom: 8.5%;
  left: 4%;
}

.ppt-cover {
  background:
    linear-gradient(90deg, rgba(59, 130, 246, 0.16), transparent 25%),
    #f7f7f7;
}

.ppt-cover__stripe {
  position: absolute;
  inset: 0 auto 0 0;
  width: 14%;
  background: linear-gradient(180deg, #1e293b, #3b82f6 55%, #10b981);
}

.ppt-cover__badge,
.ppt-closing__badge {
  position: absolute;
  top: 6%;
  right: 6%;
  min-width: 7.4%;
  padding: 0.75% 1.2%;
  color: #ffffff;
  background: #1e293b;
  border-radius: 3px;
  text-align: center;
  font-size: clamp(0.72rem, 1vw, 1rem);
  font-weight: 900;
}

.ppt-cover__content {
  position: absolute;
  top: 16%;
  right: 7%;
  left: 22%;
}

.ppt-eyebrow {
  color: #3b82f6;
  font-size: clamp(0.68rem, 1vw, 0.98rem);
  font-weight: 900;
  letter-spacing: 0.08em;
}

.ppt-cover h1 {
  margin-top: 1.8%;
  color: #1e293b;
  font-size: clamp(2.2rem, 5.5vw, 4.65rem);
  font-weight: 900;
  line-height: 0.95;
}

.ppt-cover h2 {
  margin-top: 2.6%;
  color: #3b82f6;
  font-size: clamp(1.35rem, 3vw, 2.8rem);
  font-weight: 900;
}

.ppt-cover__period {
  margin-top: 1.6%;
  color: #475569;
  font-size: clamp(0.82rem, 1.2vw, 1.18rem);
  font-weight: 600;
}

.ppt-cover__kpis {
  position: absolute;
  right: 5%;
  bottom: 11%;
  left: 5%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.4%;
}

.ppt-cover__kpis article,
.ppt-kpi,
.ppt-panel,
.ppt-side-panel,
.ppt-big-number,
.ppt-insight,
.ppt-rec-column,
.ppt-team-column article,
.ppt-person-card,
.ppt-project-line,
.ppt-people-grid article,
.ppt-stat-card {
  border: 1px solid #dbe4ef;
  border-radius: 7px;
  background: #ffffff;
}

.ppt-cover__kpis article {
  position: relative;
  min-height: 92px;
  padding: 2.3% 2.6%;
  background: #eff6ff;
}

.ppt-cover__kpis article::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: #3b82f6;
}

.ppt-cover__kpis span,
.ppt-kpi span,
.ppt-big-number span,
.ppt-insight span,
.ppt-stat-card span {
  display: block;
  color: #64748b;
  font-size: clamp(0.56rem, 0.82vw, 0.78rem);
  font-weight: 900;
  text-transform: uppercase;
}

.ppt-cover__kpis strong,
.ppt-kpi strong,
.ppt-big-number strong,
.ppt-insight strong,
.ppt-stat-card strong {
  display: block;
  margin-top: 1.2%;
  color: var(--accent, #3b82f6);
  font-size: clamp(1.45rem, 3vw, 2.7rem);
  line-height: 1;
}

.ppt-cover__kpis small,
.ppt-kpi small,
.ppt-big-number small,
.ppt-stat-card small {
  display: block;
  margin-top: 1.4%;
  color: #64748b;
  font-size: clamp(0.58rem, 0.82vw, 0.78rem);
}

.ppt-cover__date {
  position: absolute;
  right: 5%;
  bottom: 4.5%;
  color: #64748b;
  font-size: clamp(0.58rem, 0.85vw, 0.82rem);
  font-weight: 600;
}

.ppt-kpi-layout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 3.2%;
}

.ppt-kpi,
.ppt-insight,
.ppt-rec-column,
.ppt-stat-card,
.ppt-big-number {
  position: relative;
  padding: 5.5%;
  background: var(--soft, #f8fafc);
}

.ppt-kpi::before,
.ppt-insight::before,
.ppt-rec-column::before,
.ppt-stat-card::before,
.ppt-big-number::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 7px;
  border-radius: 7px 7px 0 0;
  background: var(--accent, #3b82f6);
}

.ppt-blue {
  --accent: #3b82f6;
  --soft: #eff6ff;
}

.ppt-green {
  --accent: #10b981;
  --soft: #e9f7ef;
}

.ppt-amber {
  --accent: #f59e0b;
  --soft: #fff3cd;
}

.ppt-red {
  --accent: #ef4444;
  --soft: #fdecec;
}

.ppt-purple {
  --accent: #8b5cf6;
  --soft: #f3e8ff;
}

.ppt-dark {
  --accent: #1e293b;
  --soft: #f8fafc;
}

.ppt-two-columns {
  display: grid;
  grid-template-columns: 1.32fr 0.82fr;
  gap: 3%;
}

.ppt-productivity {
  display: grid;
  grid-template-columns: 1fr 0.36fr;
  gap: 3%;
}

.ppt-panel,
.ppt-side-panel {
  min-height: 100%;
  padding: 3.2%;
  background: #ffffff;
}

.ppt-panel h3,
.ppt-side-panel h3,
.ppt-rec-column h3,
.ppt-team-column h3 {
  margin: 0 0 3.2%;
  color: #1e293b;
  font-size: clamp(0.75rem, 1.15vw, 1.15rem);
  font-weight: 900;
  text-transform: uppercase;
}

.ppt-side-panel {
  background: #f8fafc;
}

.ppt-bars {
  display: grid;
  gap: clamp(6px, 1vw, 11px);
}

.ppt-bar-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.9fr) 1fr minmax(58px, 0.3fr);
  align-items: center;
  gap: 2.2%;
}

.ppt-bar-row span,
.ppt-bar-row strong,
.ppt-month-line span,
.ppt-month-line small,
.ppt-person-card span,
.ppt-project-line span,
.ppt-people-grid span,
.ppt-people-grid small,
.ppt-team-column span,
.ppt-team-column small,
.ppt-table-like span {
  color: #475569;
  font-size: clamp(0.56rem, 0.82vw, 0.78rem);
}

.ppt-bar-row span,
.ppt-project-line strong,
.ppt-person-card strong,
.ppt-month-line strong,
.ppt-people-grid strong,
.ppt-team-column strong,
.ppt-table-like strong {
  color: #1e293b;
  font-weight: 800;
}

.ppt-bar-row span,
.ppt-bar-row strong,
.ppt-person-card strong,
.ppt-project-line strong,
.ppt-project-line span,
.ppt-people-grid strong,
.ppt-people-grid span,
.ppt-team-column strong,
.ppt-team-column span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ppt-bar-track,
.ppt-mini-track {
  height: clamp(9px, 1.2vw, 15px);
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}

.ppt-bar-track i,
.ppt-mini-track i {
  display: block;
  width: var(--bar);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #3b82f6, #10b981);
}

.ppt-month-line,
.ppt-person-card,
.ppt-project-line {
  display: grid;
  gap: 4px;
  padding: 3.2%;
  margin-bottom: 2.5%;
}

.ppt-backlog-layout {
  display: grid;
  grid-template-columns: 0.84fr 1.16fr;
  grid-template-rows: 1fr auto;
  gap: 3%;
}

.ppt-big-number {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
}

.ppt-big-number strong {
  margin-top: 5%;
  font-size: clamp(3.2rem, 8vw, 7.5rem);
}

.ppt-aging-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2%;
}

.ppt-aging-grid article {
  padding: 14% 8%;
  border-radius: 6px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  text-align: center;
}

.ppt-aging-grid span {
  color: #64748b;
  font-size: clamp(0.52rem, 0.74vw, 0.7rem);
  font-weight: 800;
}

.ppt-aging-grid strong {
  display: block;
  margin-top: 10%;
  color: #1e293b;
  font-size: clamp(1.15rem, 2.4vw, 2.1rem);
}

.ppt-alert-strip,
.ppt-bottom-ribbon {
  position: absolute;
  right: 4%;
  left: 4%;
  bottom: 8%;
  padding: 1.35% 2%;
  color: #1e293b;
  background: #eff6ff;
  border-left: 7px solid #3b82f6;
  border-radius: 5px;
  font-size: clamp(0.62rem, 0.98vw, 0.92rem);
}

.ppt-alert-strip {
  position: static;
  grid-column: 1 / -1;
  align-self: end;
}

.ppt-positive {
  background: #e9f7ef;
  border-color: #10b981;
}

.ppt-people-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.4%;
}

.ppt-people-grid article,
.ppt-team-column article {
  display: grid;
  gap: 4px;
  padding: 3.4%;
  background: #f8fafc;
}

.ppt-stats-stack {
  display: grid;
  gap: 6%;
}

.ppt-stat-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ppt-project-hours .ppt-side-panel {
  overflow: hidden;
}

.ppt-insights-grid {
  bottom: 18%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3%;
}

.ppt-insight p {
  margin-top: 4%;
  color: #475569;
  font-size: clamp(0.62rem, 0.92vw, 0.9rem);
  line-height: 1.45;
}

.ppt-team-columns,
.ppt-recommendations {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3.2%;
}

.ppt-recommendations {
  grid-template-columns: repeat(3, 1fr);
}

.ppt-team-column {
  overflow: hidden;
  border-radius: 7px;
  background: #ffffff;
  border: 1px solid #dbe4ef;
}

.ppt-team-column h3 {
  margin: 0;
  padding: 2.4% 3.2%;
  color: #ffffff;
  background: #1e293b;
}

.ppt-team-column article {
  margin: 2.2% 3.2%;
}

.ppt-rec-column ol,
.ppt-closing__panel ol {
  margin: 0;
  padding-left: 1.1rem;
  color: #1e293b;
  font-size: clamp(0.62rem, 0.95vw, 0.9rem);
  line-height: 1.45;
}

.ppt-rec-column li,
.ppt-closing__panel li {
  margin-bottom: 0.75rem;
}

.ppt-external-layout {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 3%;
}

.ppt-external-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3%;
}

.ppt-table-like {
  display: grid;
  gap: 1.6%;
}

.ppt-table-like div {
  display: grid;
  grid-template-columns: 0.45fr 1fr;
  gap: 2%;
  padding: 1.8% 0;
  border-bottom: 1px solid #e2e8f0;
}

.ppt-closing {
  background:
    linear-gradient(90deg, rgba(59, 130, 246, 0.14), transparent 30%),
    #f7f7f7;
}

.ppt-closing__title {
  position: absolute;
  top: 12%;
  left: 7%;
}

.ppt-closing__title h2 {
  margin-top: 2%;
  color: #1e293b;
  font-size: clamp(2.2rem, 5.2vw, 4.8rem);
  font-weight: 900;
  line-height: 0.95;
}

.ppt-closing__title span {
  display: block;
  margin-top: 2%;
  color: #64748b;
  font-weight: 700;
}

.ppt-closing__quote {
  position: absolute;
  left: 7%;
  bottom: 27%;
  width: 44%;
  padding: 2.6%;
  color: #1e293b;
  background: #ffffff;
  border-left: 8px solid #3b82f6;
  box-shadow: 0 18px 42px rgba(30, 41, 59, 0.12);
  font-size: clamp(0.82rem, 1.35vw, 1.25rem);
  line-height: 1.45;
}

.ppt-closing__panel {
  position: absolute;
  right: 7%;
  bottom: 18%;
  width: 34%;
  min-height: 42%;
  padding: 2.8%;
  color: #ffffff;
  background: #1e293b;
  border-radius: 6px;
}

.ppt-closing__panel h3 {
  margin: 0 0 7%;
  color: #ffffff;
  font-size: clamp(0.78rem, 1.1vw, 1.05rem);
}

.ppt-closing__panel ol {
  color: #e2e8f0;
}

.ppt-thanks {
  position: absolute;
  left: 7%;
  bottom: 9%;
  color: #3b82f6;
  font-size: clamp(1.7rem, 4vw, 3.6rem);
  font-weight: 900;
}

.presentation-page .deck-controls {
  min-height: 80px;
  padding: 0 28px 22px;
  color: #ffffff;
}

.presentation-page .deck-controls button {
  background: #3b82f6;
}

.presentation-page .deck-controls button:disabled {
  opacity: 0.42;
}

.presentation-page .deck-dots button {
  background: rgba(255, 255, 255, 0.32);
}

.presentation-page .deck-dots button.is-active {
  background: #ffd700;
}

:fullscreen .presentation-topbar,
:fullscreen .deck-controls {
  display: none;
}

:fullscreen .presentation-stage {
  min-height: 100vh;
  padding: 0;
  background: #000000;
}

:fullscreen .deck-slide {
  width: min(100vw, 177.78vh);
  box-shadow: none;
}

@media (max-width: 900px) {
  .presentation-page .presentation-topbar {
    height: auto;
    padding: 12px;
    align-items: flex-start;
    flex-direction: column;
  }

  .presentation-page .presentation-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .presentation-page .presentation-actions .ghost-button,
  .presentation-page .presentation-fullscreen {
    flex: 1 1 180px;
  }

  .presentation-page .presentation-stage {
    min-height: auto;
    padding: 12px 10px;
  }

  .presentation-page .deck-slide {
    width: calc(100vw - 20px);
  }

  .presentation-page .deck-controls {
    padding: 0 10px 16px;
    flex-wrap: wrap;
  }
}

@media (max-width: 560px) {
  .ppt-header h2 {
    font-size: 0.82rem;
  }

  .ppt-header__code,
  .ppt-footer,
  .ppt-bar-row span,
  .ppt-bar-row strong,
  .ppt-month-line span,
  .ppt-month-line small,
  .ppt-person-card span,
  .ppt-project-line span,
  .ppt-people-grid span,
  .ppt-people-grid small,
  .ppt-team-column span,
  .ppt-team-column small,
  .ppt-table-like span {
    font-size: 0.44rem;
  }

  .ppt-panel h3,
  .ppt-side-panel h3,
  .ppt-rec-column h3,
  .ppt-team-column h3 {
    font-size: 0.5rem;
  }

  .ppt-rec-column ol,
  .ppt-closing__panel ol {
    font-size: 0.44rem;
    line-height: 1.25;
  }
}

/* Deck baseado no modelo_teste.html: foco nos mesmos indicadores e cards. */
.presentation-page .model-stage {
  background:
    radial-gradient(circle at 10% 12%, rgba(59, 130, 246, 0.18), transparent 28%),
    radial-gradient(circle at 92% 10%, rgba(255, 215, 0, 0.08), transparent 22%);
}

.presentation-page .model-slide {
  background: #f7f7f7;
  color: #1e293b;
}

.model-header {
  position: absolute;
  inset: 0 0 auto;
  height: 14%;
  display: flex;
  align-items: center;
  gap: 2%;
  padding: 0 4%;
  color: #ffffff;
  background: #1e293b;
  border-bottom: 6px solid #3b82f6;
}

.model-header span {
  min-width: 11%;
  color: #cbd5e1;
  font-weight: 900;
  letter-spacing: 0.04em;
  font-size: clamp(0.68rem, 0.9vw, 0.95rem);
}

.model-header h2 {
  color: #ffffff;
  font-size: clamp(1.05rem, 2vw, 1.95rem);
  font-weight: 900;
  letter-spacing: -0.015em;
}

.model-footer {
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: 2%;
  display: flex;
  justify-content: space-between;
  padding-top: 0.6%;
  color: #64748b;
  border-top: 2px solid #e2e8f0;
  font-size: clamp(0.52rem, 0.78vw, 0.78rem);
  font-weight: 700;
}

.model-body {
  position: absolute;
  top: 18%;
  right: 4%;
  bottom: 8%;
  left: 4%;
}

.model-cover {
  background:
    linear-gradient(90deg, rgba(59, 130, 246, 0.18), transparent 31%),
    #f7f7f7;
}

.model-cover::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 15%;
  background: linear-gradient(180deg, #1e293b 0%, #3b82f6 52%, #10b981 100%);
}

.model-cover__mark,
.model-closing__badge {
  position: absolute;
  top: 7%;
  right: 6%;
  padding: 0.7% 1.1%;
  color: #ffffff;
  background: #1e293b;
  border-radius: 5px;
  font-size: clamp(0.75rem, 1vw, 1rem);
  font-weight: 900;
}

.model-cover__copy {
  position: absolute;
  top: 16%;
  left: 22%;
  right: 7%;
}

.model-cover__copy p {
  color: #3b82f6;
  font-size: clamp(0.7rem, 0.95vw, 0.95rem);
  font-weight: 900;
  letter-spacing: 0.09em;
}

.model-cover__copy h1 {
  margin-top: 2%;
  color: #1e293b;
  font-size: clamp(2.4rem, 5.6vw, 5rem);
  font-weight: 950;
  line-height: 0.92;
}

.model-cover__copy h2 {
  margin-top: 2.3%;
  color: #3b82f6;
  font-size: clamp(1.35rem, 3vw, 2.75rem);
  font-weight: 950;
}

.model-cover__copy span {
  display: block;
  margin-top: 1.6%;
  color: #475569;
  font-size: clamp(0.8rem, 1.15vw, 1.1rem);
  font-weight: 700;
}

.model-cover__metrics {
  position: absolute;
  right: 5%;
  bottom: 11%;
  left: 5%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.2%;
}

.model-cover__foot {
  position: absolute;
  right: 5%;
  bottom: 4.4%;
  color: #64748b;
  font-size: clamp(0.58rem, 0.82vw, 0.78rem);
  font-weight: 700;
}

.model-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 3%;
}

.model-card,
.model-panel,
.model-big-alert,
.model-person-kpi,
.model-rec,
.model-team-column,
.model-next-steps {
  border: 1px solid #dbe4ef;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(30, 41, 59, 0.08);
}

.model-card {
  position: relative;
  min-height: 100%;
  padding: 6.2%;
  overflow: hidden;
  background: var(--model-soft, #eff6ff);
}

.model-card::before,
.model-rec::before,
.model-person-kpi::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 7px;
  background: var(--model-accent, #3b82f6);
}

.model-card span,
.model-big-alert span,
.model-person-kpi span {
  display: block;
  color: #64748b;
  font-size: clamp(0.55rem, 0.78vw, 0.76rem);
  font-weight: 950;
  text-transform: uppercase;
}

.model-card strong,
.model-big-alert strong,
.model-person-kpi strong {
  display: block;
  margin-top: 5%;
  color: var(--model-accent, #3b82f6);
  font-size: clamp(1.7rem, 3.7vw, 3.35rem);
  line-height: 0.95;
  font-weight: 950;
}

.model-card small,
.model-big-alert small,
.model-person-kpi small {
  display: block;
  margin-top: 5%;
  color: #475569;
  font-size: clamp(0.58rem, 0.82vw, 0.8rem);
  line-height: 1.35;
}

.model-card--blue {
  --model-accent: #3b82f6;
  --model-soft: #eff6ff;
}

.model-card--green {
  --model-accent: #10b981;
  --model-soft: #e9f7ef;
}

.model-card--amber {
  --model-accent: #f59e0b;
  --model-soft: #fff3cd;
}

.model-card--red {
  --model-accent: #ef4444;
  --model-soft: #fdecec;
}

.model-card--purple {
  --model-accent: #8b5cf6;
  --model-soft: #f3e8ff;
}

.model-card--dark {
  --model-accent: #1e293b;
  --model-soft: #f8fafc;
}

.model-split {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 3%;
}

.model-split--wide {
  grid-template-columns: 1.32fr 0.82fr;
}

.model-panel {
  min-height: 100%;
  padding: 3.2%;
  overflow: hidden;
}

.model-panel--soft {
  background: #f8fafc;
}

.model-panel h3,
.model-team-column h3,
.model-rec h3,
.model-next-steps h3 {
  margin: 0 0 3%;
  color: #1e293b;
  font-size: clamp(0.72rem, 1.05vw, 1.05rem);
  font-weight: 950;
  text-transform: uppercase;
}

.model-chart {
  display: grid;
  gap: clamp(6px, 0.85vw, 10px);
}

.model-chart--compact {
  gap: clamp(4px, 0.58vw, 7px);
}

.model-bar-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.8fr) 1fr minmax(82px, 0.35fr);
  align-items: center;
  gap: 2%;
}

.model-bar-row span,
.model-bar-row strong {
  overflow: hidden;
  color: #334155;
  font-size: clamp(0.55rem, 0.78vw, 0.76rem);
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.model-bar {
  height: clamp(9px, 1.1vw, 15px);
  overflow: hidden;
  border-radius: 999px;
  background: #dbe4ef;
}

.model-bar i {
  display: block;
  width: var(--bar);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #3b82f6, #10b981);
}

.model-mini-table {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #e2e8f0;
}

.model-mini-table div {
  display: grid;
  grid-template-columns: 1fr 0.45fr 0.45fr 0.45fr;
  gap: 2%;
  padding: 2.2% 2.8%;
  background: #ffffff;
}

.model-mini-table--people div {
  grid-template-columns: 1.2fr 0.35fr 0.35fr 0.35fr;
}

.model-mini-table .is-head {
  color: #ffffff;
  background: #1e293b;
  font-weight: 900;
}

.model-mini-table span {
  overflow: hidden;
  color: #334155;
  font-size: clamp(0.52rem, 0.72vw, 0.72rem);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.model-mini-table .is-head span {
  color: #ffffff;
}

.model-insight,
.model-note-inline {
  margin-top: 3.4%;
  padding: 3%;
  color: #1e293b;
  border-left: 6px solid #3b82f6;
  border-radius: 6px;
  background: #eff6ff;
  font-size: clamp(0.56rem, 0.8vw, 0.78rem);
  line-height: 1.35;
}

.model-insight--warning {
  border-left-color: #f59e0b;
  background: #fff3cd;
}

.model-note {
  position: absolute;
  right: 4%;
  bottom: 8%;
  left: 4%;
  padding: 1.2% 1.7%;
  color: #1e293b;
  border-left: 7px solid #3b82f6;
  border-radius: 8px;
  background: #eff6ff;
  font-size: clamp(0.58rem, 0.82vw, 0.8rem);
  font-weight: 700;
  line-height: 1.35;
}

.model-note--danger {
  border-left-color: #ef4444;
  background: #fdecec;
}

.model-note--target {
  border-left-color: #f59e0b;
  background: #fff3cd;
}

.model-big-alert {
  display: flex;
  position: relative;
  flex-direction: column;
  justify-content: center;
  padding: 7%;
  background: #fdecec;
}

.model-big-alert strong {
  color: #ef4444;
  font-size: clamp(3rem, 8vw, 7.5rem);
}

.model-big-alert em {
  margin-top: 5%;
  color: #991b1b;
  font-size: clamp(0.62rem, 0.92vw, 0.88rem);
  font-style: normal;
  font-weight: 900;
}

.model-aging {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2%;
  min-height: 68%;
  align-items: end;
}

.model-aging article {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 7%;
  min-height: 100%;
  text-align: center;
}

.model-aging strong {
  color: #1e293b;
  font-size: clamp(1rem, 2.3vw, 2.2rem);
  font-weight: 950;
}

.model-aging span {
  color: #64748b;
  font-size: clamp(0.48rem, 0.67vw, 0.66rem);
  font-weight: 850;
}

.model-vertical-bar {
  display: flex;
  align-items: end;
  justify-content: center;
  min-height: 116px;
  border-radius: 7px;
  background: #e2e8f0;
}

.model-vertical-bar i {
  display: block;
  width: 100%;
  height: var(--bar);
  border-radius: inherit;
  background: linear-gradient(180deg, #3b82f6, #10b981);
}

.model-status-pills {
  display: flex;
  gap: 1.5%;
  flex-wrap: wrap;
  margin-top: 3%;
}

.model-status-pills span {
  padding: 1.5% 2%;
  color: #334155;
  border-radius: 999px;
  background: #eef2f7;
  font-size: clamp(0.5rem, 0.7vw, 0.7rem);
  font-weight: 800;
}

.model-stack {
  display: grid;
  gap: 4%;
}

.model-person-kpi {
  position: relative;
  padding: 4.8%;
  background: #e9f7ef;
}

.model-person-kpi.is-warning {
  background: #fff3cd;
}

.model-person-kpi strong {
  font-size: clamp(1.25rem, 2.4vw, 2.3rem);
}

.model-insight-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3%;
  bottom: 18%;
}

.model-team,
.model-recommendations {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3%;
  bottom: 16%;
}

.model-recommendations {
  grid-template-columns: repeat(3, 1fr);
}

.model-team-column {
  overflow: hidden;
  background: #ffffff;
}

.model-team-column h3 {
  margin: 0;
  padding: 2.4% 3%;
  color: #ffffff;
  background: #1e293b;
}

.model-team-column article {
  display: grid;
  gap: 4px;
  margin: 2.2% 3%;
  padding: 2.6% 3%;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.model-team-column strong,
.model-team-column span,
.model-team-column small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.model-team-column strong {
  color: #1e293b;
  font-size: clamp(0.62rem, 0.86vw, 0.84rem);
}

.model-team-column span,
.model-team-column small {
  color: #64748b;
  font-size: clamp(0.52rem, 0.72vw, 0.7rem);
}

.model-rec {
  position: relative;
  padding: 7% 6% 5%;
  background: var(--model-soft, #eff6ff);
}

.model-rec--red {
  --model-accent: #ef4444;
  --model-soft: #fdecec;
}

.model-rec--amber {
  --model-accent: #f59e0b;
  --model-soft: #fff3cd;
}

.model-rec--green {
  --model-accent: #10b981;
  --model-soft: #e9f7ef;
}

.model-rec ol,
.model-next-steps ul {
  margin: 0;
  padding-left: 1.1rem;
  color: #1e293b;
  font-size: clamp(0.58rem, 0.82vw, 0.8rem);
  line-height: 1.45;
}

.model-rec li,
.model-next-steps li {
  margin-bottom: 0.7rem;
}

.model-external {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 3%;
}

.model-external__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3%;
}

.model-external__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3%;
}

.model-task-list {
  display: grid;
  gap: 5px;
}

.model-task-list span {
  overflow: hidden;
  color: #334155;
  font-size: clamp(0.52rem, 0.73vw, 0.72rem);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.model-closing {
  background:
    linear-gradient(90deg, rgba(59, 130, 246, 0.14), transparent 36%),
    #f7f7f7;
}

.model-closing__brand {
  position: absolute;
  top: 12%;
  left: 7%;
}

.model-closing__brand h1 {
  color: #1e293b;
  font-size: clamp(2.4rem, 5.6vw, 5rem);
  font-weight: 950;
  line-height: 0.92;
}

.model-closing__brand span {
  display: block;
  margin-top: 3%;
  color: #475569;
  font-size: clamp(0.72rem, 1vw, 0.96rem);
  font-weight: 850;
}

.model-closing blockquote {
  position: absolute;
  left: 7%;
  bottom: 28%;
  width: 48%;
  margin: 0;
  padding: 2.5%;
  color: #1e293b;
  border-left: 8px solid #3b82f6;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(30, 41, 59, 0.1);
  font-size: clamp(0.78rem, 1.25vw, 1.18rem);
  line-height: 1.45;
  font-weight: 700;
}

.model-next-steps {
  position: absolute;
  right: 7%;
  bottom: 18%;
  width: 34%;
  min-height: 43%;
  padding: 3%;
  color: #ffffff;
  background: #1e293b;
}

.model-next-steps h3,
.model-next-steps ul {
  color: #ffffff;
}

.model-next-steps li {
  color: #e2e8f0;
}

.model-thanks {
  position: absolute;
  left: 7%;
  bottom: 9%;
  color: #3b82f6;
  font-size: clamp(1.8rem, 4vw, 3.7rem);
  font-weight: 950;
}

@media (max-width: 900px) {
  .model-header h2 {
    font-size: 0.95rem;
  }

  .model-card strong,
  .model-big-alert strong {
    font-size: clamp(1.2rem, 5vw, 2.4rem);
  }
}

@media (max-width: 560px) {
  .model-header h2 {
    font-size: 0.7rem;
  }

  .model-header span,
  .model-card span,
  .model-card small,
  .model-bar-row span,
  .model-bar-row strong,
  .model-mini-table span,
  .model-note,
  .model-rec ol,
  .model-team-column strong,
  .model-team-column span,
  .model-team-column small,
  .model-task-list span {
    font-size: 0.42rem;
  }

  .model-panel h3,
  .model-team-column h3,
  .model-rec h3,
  .model-next-steps h3 {
    font-size: 0.48rem;
  }
}

/* Visual premium BRG: industrial-moderno, técnico e corporativo. */
.presentation-page {
  background:
    radial-gradient(circle at 12% 8%, rgba(0, 163, 79, 0.24), transparent 28%),
    radial-gradient(circle at 86% 16%, rgba(255, 215, 0, 0.14), transparent 24%),
    linear-gradient(140deg, #070a18 0%, #13162f 54%, #0b1024 100%);
}

.presentation-page .presentation-topbar {
  backdrop-filter: blur(16px);
  background: rgba(7, 10, 24, 0.72);
  border-bottom: 1px solid rgba(183, 201, 88, 0.22);
}

.presentation-page .presentation-brand span {
  color: #ffffff;
  font-weight: 900;
}

.presentation-page .presentation-actions .ghost-button {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

.presentation-page .presentation-fullscreen {
  background: linear-gradient(135deg, #ffd700, #b7c958);
  box-shadow: 0 16px 36px rgba(255, 215, 0, 0.22);
}

.presentation-page .model-slide {
  border-radius: 28px;
  color: #f8fafc;
  background:
    linear-gradient(115deg, rgba(0, 163, 79, 0.15), transparent 28%),
    radial-gradient(circle at 84% 20%, rgba(255, 215, 0, 0.16), transparent 22%),
    linear-gradient(145deg, #13162f 0%, #0c1026 100%);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.42),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.presentation-page .model-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.24;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.68), transparent 72%);
}

.model-circuit {
  position: absolute;
  inset: auto -8% -22% auto;
  width: 48%;
  aspect-ratio: 1;
  border: 1px solid rgba(183, 201, 88, 0.32);
  border-radius: 50%;
  opacity: 0.9;
  background:
    radial-gradient(circle, transparent 52%, rgba(0, 163, 79, 0.22) 53%, transparent 56%),
    conic-gradient(from 25deg, rgba(0, 163, 79, 0), rgba(0, 163, 79, 0.42), rgba(255, 215, 0, 0.2), rgba(0, 163, 79, 0));
}

.model-circuit::before,
.model-circuit::after {
  content: "";
  position: absolute;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.model-circuit::before {
  inset: 14%;
}

.model-circuit::after {
  inset: 29%;
}

.model-header {
  height: 15%;
  padding: 0 4.2%;
  background:
    linear-gradient(90deg, rgba(0, 163, 79, 0.22), transparent 34%),
    rgba(7, 10, 24, 0.72);
  border-bottom: 1px solid rgba(183, 201, 88, 0.22);
}

.model-header::after {
  content: "";
  position: absolute;
  right: 4.2%;
  bottom: -4px;
  left: 4.2%;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #00a34f, #b7c958, #ffd700);
}

.model-header__brand {
  display: grid;
  gap: 4px;
  min-width: 17%;
}

.model-header__brand span {
  color: #ffd700;
  font-size: clamp(0.72rem, 1.05vw, 1rem);
  font-weight: 950;
}

.model-header__brand small {
  color: rgba(255, 255, 255, 0.62);
  font-size: clamp(0.42rem, 0.62vw, 0.62rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.model-header__title {
  display: grid;
  gap: 2px;
}

.model-header__title small {
  color: #b7c958;
  font-size: clamp(0.48rem, 0.72vw, 0.68rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.model-header__title h2 {
  color: #ffffff;
  font-size: clamp(1rem, 1.75vw, 1.74rem);
  line-height: 1.08;
}

.model-body {
  top: 19%;
  bottom: 9%;
  z-index: 1;
}

.model-footer {
  z-index: 2;
  color: rgba(255, 255, 255, 0.5);
  border-top-color: rgba(183, 201, 88, 0.18);
}

.model-cover {
  background:
    radial-gradient(circle at 83% 26%, rgba(255, 215, 0, 0.18), transparent 22%),
    linear-gradient(120deg, rgba(0, 163, 79, 0.22), transparent 42%),
    linear-gradient(145deg, #13162f 0%, #090d20 100%);
}

.model-cover::before {
  width: 17%;
  background:
    linear-gradient(180deg, #00a34f, #b7c958 58%, #ffd700),
    #00a34f;
  box-shadow: 18px 0 45px rgba(0, 163, 79, 0.22);
}

.model-cover__mark,
.model-closing__badge,
.model-cover__seal {
  z-index: 2;
  color: #13162f;
  background: linear-gradient(135deg, #ffd700, #b7c958);
  box-shadow: 0 14px 34px rgba(255, 215, 0, 0.2);
}

.model-cover__seal {
  position: absolute;
  top: 17%;
  right: 6%;
  padding: 0.8% 1.2%;
  border-radius: 12px;
  text-align: center;
  font-size: clamp(0.45rem, 0.66vw, 0.64rem);
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.model-cover__copy {
  z-index: 2;
}

.model-cover__copy p {
  color: #b7c958;
}

.model-cover__copy h1 {
  color: #ffffff;
  text-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

.model-cover__copy h2 {
  color: #ffd700;
}

.model-cover__copy span {
  color: rgba(255, 255, 255, 0.72);
}

.model-cover__signature {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 22%;
  width: 48%;
  padding: 1.6% 2%;
  border: 1px solid rgba(183, 201, 88, 0.22);
  border-left: 6px solid #00a34f;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.model-cover__signature strong,
.model-cover__signature span {
  display: block;
}

.model-cover__signature strong {
  color: #ffffff;
  font-size: clamp(0.72rem, 1.05vw, 1rem);
}

.model-cover__signature span {
  margin-top: 0.8%;
  color: rgba(255, 255, 255, 0.68);
  font-size: clamp(0.56rem, 0.78vw, 0.76rem);
}

.model-cover__metrics {
  z-index: 2;
}

.model-cover__foot {
  z-index: 2;
  color: rgba(255, 255, 255, 0.56);
}

.model-card,
.model-panel,
.model-big-alert,
.model-person-kpi,
.model-rec,
.model-team-column,
.model-next-steps {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.94)),
    #ffffff;
  box-shadow:
    0 20px 46px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.model-card {
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), var(--model-soft, #eff6ff));
}

.model-card::before,
.model-rec::before,
.model-person-kpi::before {
  height: 6px;
  background: linear-gradient(90deg, var(--model-accent, #00a34f), rgba(255, 255, 255, 0));
}

.model-card span,
.model-big-alert span,
.model-person-kpi span {
  color: #4b5563;
  letter-spacing: 0.06em;
}

.model-card strong,
.model-big-alert strong,
.model-person-kpi strong {
  color: var(--model-accent, #00a34f);
  letter-spacing: -0.04em;
}

.model-card em {
  display: inline-flex;
  margin-top: 5%;
  padding: 5px 8px;
  color: #334155;
  border-radius: 999px;
  background: rgba(19, 22, 47, 0.06);
  font-size: clamp(0.48rem, 0.66vw, 0.66rem);
  font-style: normal;
  font-weight: 800;
}

.model-card--blue {
  --model-accent: #00a34f;
  --model-soft: #e9f7ef;
}

.model-card--green {
  --model-accent: #00a34f;
  --model-soft: #e9f7ef;
}

.model-card--amber {
  --model-accent: #ffd700;
  --model-soft: #fff7cc;
}

.model-card--red {
  --model-accent: #c62828;
  --model-soft: #fff1f1;
}

.model-card--purple,
.model-card--dark {
  --model-accent: #13162f;
  --model-soft: #eef2f7;
}

.model-panel {
  border-radius: 20px;
}

.model-panel--soft {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(232, 245, 233, 0.94));
}

.model-panel h3,
.model-team-column h3,
.model-rec h3,
.model-next-steps h3 {
  color: #13162f;
  letter-spacing: 0.04em;
}

.model-bar {
  background: rgba(19, 22, 47, 0.1);
}

.model-bar i {
  background: linear-gradient(90deg, #00a34f, #b7c958, #ffd700);
  box-shadow: 0 0 18px rgba(0, 163, 79, 0.25);
}

.model-mini-table {
  border-color: rgba(19, 22, 47, 0.08);
  background: rgba(19, 22, 47, 0.08);
}

.model-mini-table .is-head,
.model-team-column h3 {
  background: linear-gradient(90deg, #13162f, #20274b);
}

.model-insight,
.model-note-inline,
.model-note,
.model-meta-bar {
  color: #13162f;
  border-left-color: #00a34f;
  background:
    linear-gradient(90deg, rgba(183, 201, 88, 0.28), rgba(255, 255, 255, 0.94)),
    #ffffff;
}

.model-meta-bar {
  position: absolute;
  z-index: 2;
  right: 4%;
  bottom: 8%;
  left: 4%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2%;
  padding: 1% 1.2%;
  border: 1px solid rgba(183, 201, 88, 0.22);
  border-left-width: 7px;
  border-radius: 16px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.16);
}

.model-meta-bar span {
  overflow: hidden;
  color: #13162f;
  font-size: clamp(0.52rem, 0.72vw, 0.72rem);
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.model-body.model-kpi-grid {
  bottom: 20%;
}

.model-note {
  z-index: 2;
  border-radius: 16px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.16);
}

.model-note--danger {
  border-left-color: #c62828;
  background: linear-gradient(90deg, rgba(198, 40, 40, 0.12), rgba(255, 255, 255, 0.96));
}

.model-note--target {
  border-left-color: #ffd700;
  background: linear-gradient(90deg, rgba(255, 215, 0, 0.22), rgba(255, 255, 255, 0.96));
}

.model-big-alert {
  border-color: rgba(198, 40, 40, 0.22);
  background:
    radial-gradient(circle at 86% 14%, rgba(198, 40, 40, 0.15), transparent 26%),
    linear-gradient(180deg, #ffffff, #fff1f1);
}

.model-aging article {
  padding: 5% 4%;
  border-radius: 16px;
  background: rgba(19, 22, 47, 0.035);
}

.model-vertical-bar {
  background: rgba(19, 22, 47, 0.09);
}

.model-vertical-bar i {
  background: linear-gradient(180deg, #ffd700, #b7c958, #00a34f);
}

.model-status-pills span {
  color: #13162f;
  background: rgba(0, 163, 79, 0.1);
}

.model-person-kpi {
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #e9f7ef);
}

.model-person-kpi.is-warning {
  background: linear-gradient(180deg, #ffffff, #fff7cc);
}

.model-rec {
  border-radius: 20px;
}

.model-rec--red {
  --model-accent: #c62828;
  --model-soft: #fff1f1;
}

.model-rec--amber {
  --model-accent: #ffd700;
  --model-soft: #fff7cc;
}

.model-rec--green {
  --model-accent: #00a34f;
  --model-soft: #e9f7ef;
}

.model-team-column {
  border-radius: 22px;
}

.model-team-column article {
  background: linear-gradient(180deg, #ffffff, #f4f8f6);
}

.model-external__cards {
  z-index: 1;
}

.model-closing {
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 215, 0, 0.18), transparent 24%),
    linear-gradient(120deg, rgba(0, 163, 79, 0.22), transparent 40%),
    linear-gradient(145deg, #13162f 0%, #090d20 100%);
}

.model-closing::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 16%;
  background: linear-gradient(180deg, #00a34f, #b7c958, #ffd700);
}

.model-closing__brand,
.model-closing blockquote,
.model-next-steps,
.model-thanks,
.model-closing__badge {
  z-index: 2;
}

.model-closing__brand h1 {
  color: #ffffff;
}

.model-closing__brand span {
  color: rgba(255, 255, 255, 0.66);
}

.model-closing blockquote {
  color: #13162f;
  border-left-color: #00a34f;
}

.model-next-steps {
  border-color: rgba(183, 201, 88, 0.2);
  background:
    linear-gradient(160deg, rgba(0, 163, 79, 0.18), transparent 44%),
    #13162f;
}

.model-thanks {
  color: #ffd700;
}

.presentation-page .deck-controls {
  color: #ffffff;
}

.presentation-page .deck-controls button {
  background: linear-gradient(135deg, #00a34f, #0f7f42);
}

.presentation-page .deck-dots button.is-active {
  background: #ffd700;
}

@media (max-width: 900px) {
  .model-meta-bar {
    grid-template-columns: 1fr;
  }
}

/* Correcoes de legibilidade e alinhamento da apresentacao. */
.presentation-page .model-slide {
  isolation: isolate;
}

.presentation-page .model-slide::after {
  z-index: 0;
  opacity: 0.12;
}

.model-header,
.model-body,
.model-footer,
.model-note,
.model-meta-bar,
.model-cover__copy,
.model-cover__signature,
.model-cover__metrics,
.model-cover__foot,
.model-cover__mark,
.model-cover__seal,
.model-closing__brand,
.model-closing blockquote,
.model-next-steps,
.model-thanks,
.model-closing__badge {
  z-index: 2;
}

.model-body {
  top: 19%;
  bottom: 10.5%;
}

.model-body--with-note {
  bottom: 20%;
}

.model-body.model-kpi-grid {
  bottom: 21.5%;
}

.model-note {
  bottom: 8.4%;
  min-height: 7.2%;
  display: flex;
  align-items: center;
}

.model-meta-bar {
  bottom: 8.4%;
}

.model-kpi-grid {
  gap: 2.2%;
}

.model-card {
  display: flex;
  min-height: 0;
  flex-direction: column;
  justify-content: center;
  padding: 4.6%;
}

.model-cover__metrics .model-card {
  padding: 3.7%;
}

.model-card span,
.model-card small,
.model-card em,
.model-panel,
.model-panel *,
.model-big-alert,
.model-big-alert *,
.model-person-kpi,
.model-person-kpi *,
.model-rec,
.model-rec *,
.model-team-column,
.model-team-column *,
.model-task-list span,
.model-mini-table span,
.model-insight,
.model-insight *,
.model-note,
.model-note *,
.model-note-inline,
.model-note-inline *,
.model-meta-bar,
.model-meta-bar * {
  text-shadow: none;
}

.model-card span,
.model-big-alert span,
.model-person-kpi span {
  color: #253047;
}

.model-card small,
.model-person-kpi small,
.model-big-alert small,
.model-mini-table span,
.model-bar-row span,
.model-bar-row strong,
.model-task-list span,
.model-team-column span,
.model-team-column small,
.model-insight span,
.model-note-inline,
.model-note,
.model-meta-bar span {
  color: #1f2937;
}

.model-card strong {
  font-size: clamp(1.45rem, 3.05vw, 2.9rem);
}

.model-cover__metrics .model-card strong {
  font-size: clamp(1.35rem, 2.7vw, 2.55rem);
}

.model-card em {
  color: #13162f;
  background: rgba(19, 22, 47, 0.09);
}

.model-panel h3,
.model-rec h3,
.model-team-column h3,
.model-next-steps h3 {
  color: #13162f;
}

.model-team-column h3,
.model-mini-table .is-head span {
  color: #ffffff;
}

.model-mini-table div,
.model-team-column article,
.model-people-grid article {
  min-width: 0;
}

.model-panel,
.model-card,
.model-big-alert,
.model-rec,
.model-team-column,
.model-person-kpi {
  overflow: hidden;
}

.model-chart {
  align-content: start;
}

.model-split,
.model-split--wide,
.model-team,
.model-recommendations,
.model-external__content,
.model-external__cards {
  align-items: stretch;
}

.model-cover__signature span,
.model-cover__foot,
.model-header__brand small {
  color: rgba(255, 255, 255, 0.82);
}

.model-footer {
  color: rgba(255, 255, 255, 0.72);
}

.model-cover__copy span,
.model-closing__brand span {
  color: rgba(255, 255, 255, 0.86);
}

.model-next-steps h3 {
  color: #ffffff;
}

.model-next-steps ul,
.model-next-steps li {
  color: #f8fafc;
}

.model-next-steps li {
  margin-bottom: 0.55rem;
}

.model-closing blockquote {
  color: #13162f;
}

@media (max-width: 900px) {
  .model-body--with-note {
    bottom: 23%;
  }

  .model-note {
    min-height: 9%;
  }
}

/* Refinamento final: contraste alto, camadas previsiveis e cards alinhados. */
.presentation-page .model-slide,
.presentation-page .model-slide *,
.presentation-page .model-slide *::before,
.presentation-page .model-slide *::after {
  box-sizing: border-box;
}

.model-circuit,
.model-cover::before,
.model-closing::before {
  z-index: 1;
}

.model-split > *,
.model-team > *,
.model-recommendations > *,
.model-external > *,
.model-external__cards > *,
.model-external__content > *,
.model-insight-grid > *,
.model-kpi-grid > * {
  min-width: 0;
  min-height: 0;
}

.model-card,
.model-panel,
.model-big-alert,
.model-person-kpi,
.model-rec,
.model-team-column,
.model-next-steps {
  color: #13162f;
}

.model-card::before,
.model-rec::before,
.model-person-kpi::before {
  background: linear-gradient(90deg, var(--model-strip, var(--model-accent, #00a34f)), rgba(255, 255, 255, 0));
}

.model-card--amber,
.model-rec--amber {
  --model-accent: #7a5c00;
  --model-strip: #ffd700;
  --model-soft: #fff8db;
}

.model-card--red,
.model-rec--red {
  --model-accent: #9f1d1d;
  --model-strip: #c62828;
  --model-soft: #fff1f1;
}

.model-card--purple,
.model-card--dark {
  --model-accent: #13162f;
  --model-strip: #b7c958;
  --model-soft: #eef2f7;
}

.model-card strong,
.model-person-kpi strong,
.model-big-alert strong {
  color: var(--model-accent, #00a34f);
}

.model-card--amber strong,
.model-rec--amber h3,
.model-insight--warning strong,
.model-person-kpi.is-warning strong {
  color: #7a5c00;
}

.model-panel {
  display: flex;
  flex-direction: column;
}

.model-panel > .model-chart,
.model-panel > .model-mini-table,
.model-panel > .model-task-list {
  min-height: 0;
}

.model-panel > .model-chart {
  flex: 1 1 auto;
}

.model-mini-table,
.model-task-list,
.model-chart {
  max-width: 100%;
}

.model-bar-row {
  min-height: clamp(22px, 2.1vw, 34px);
}

.model-bar-row span,
.model-bar-row strong,
.model-mini-table span,
.model-task-list span {
  color: #111827;
}

.model-mini-table .is-head span,
.model-team-column h3 {
  color: #ffffff;
}

.model-insight,
.model-note-inline,
.model-note,
.model-meta-bar {
  color: #13162f;
  border: 1px solid rgba(19, 22, 47, 0.1);
  border-left-width: 7px;
}

.model-insight strong,
.model-note strong,
.model-note-inline strong,
.model-meta-bar strong {
  color: #111827;
}

.model-note {
  max-height: 9.8%;
  overflow: hidden;
  font-size: clamp(0.56rem, 0.78vw, 0.78rem);
  line-height: 1.28;
}

.model-note--danger {
  color: #5f1212;
  border-left-color: #c62828;
}

.model-note--target {
  color: #4f3d00;
  border-left-color: #ffd700;
}

.model-body--with-note {
  bottom: 21%;
}

.model-body.model-kpi-grid {
  bottom: 22%;
}

.model-cover__signature {
  top: 47.5%;
}

.model-cover__metrics {
  bottom: 10.5%;
}

.model-cover__metrics .model-card {
  justify-content: center;
}

.model-cover__foot {
  bottom: 3.6%;
}

.model-team-column article,
.model-rec,
.model-person-kpi,
.model-card,
.model-panel {
  backdrop-filter: none;
}

.model-rec ol,
.model-next-steps ul {
  max-height: 100%;
  overflow: hidden;
}

.model-rec li {
  margin-bottom: 0.55rem;
  color: #111827;
}

.model-next-steps li {
  color: #f8fafc;
}

.presentation-page .model-slide .empty {
  color: #334155;
}

@media (max-width: 900px) {
  .model-body--with-note {
    bottom: 25%;
  }

  .model-note {
    max-height: 12%;
    min-height: 9%;
  }

  .model-cover__signature {
    top: 46%;
    width: 54%;
  }
}
