.painel-equipe {
  --painel-fundo: #13262c;
  --painel-borda: #355159;
  --painel-texto: #f5f9fa;
  --painel-secundario: #bfcfd5;
  --painel-destaque: #93e5c0;
  display: grid;
  gap: 16px;
  min-width: 0;
  color: var(--painel-texto);
  container-type: inline-size;
}

.painel-equipe > .hero-mini,
.painel-equipe > .cards4,
.painel-equipe > .cards3,
.painel-equipe > .layout2,
.painel-equipe > .birthday-alert-panel {
  margin: 0 !important;
}

.painel-equipe .hero-mini,
.painel-equipe .glass,
.painel-equipe .white-card {
  min-width: 0;
  padding: clamp(14px, 2cqw, 22px);
  border: 1px solid var(--painel-borda);
  border-radius: 15px;
  background: var(--painel-fundo);
  box-shadow: none;
  color: var(--painel-texto);
}

.painel-equipe .hero-mini {
  background: linear-gradient(115deg, #1b3b40, #13262c 75%);
}
.painel-equipe .hero-mini h3 { font-size: clamp(1.24rem, 2.9cqw, 1.85rem); }
.painel-equipe .hero-mini p,
.painel-equipe .muted,
.painel-equipe .white-card h4,
.painel-equipe .white-card p { color: var(--painel-secundario); }
.painel-equipe .white-card .num {
  margin-block: .35rem;
  color: var(--painel-destaque);
  font-size: clamp(1.35rem, 2.6cqw, 1.95rem);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.painel-equipe .layout2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.painel-equipe .cards4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.painel-equipe .cards3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.painel-equipe .section-head { align-items: center; gap: 10px; }
.painel-equipe .section-head h3 { margin: 0; font-size: 1.06rem; }

.painel-equipe .glass table {
  display: table;
  width: 100%;
  min-width: max-content;
  max-height: none;
  overflow: visible;
}
.painel-equipe .table-wrap {
  max-height: 22rem;
  min-height: 0;
  overflow: auto;
  scrollbar-color: #718d91 #172d33;
}
.painel-equipe .table-wrap th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #203941;
  color: #e3eff1;
}
.painel-equipe .table-wrap th,
.painel-equipe .table-wrap td { padding: 10px; vertical-align: middle; font-size: .85rem; }
.painel-equipe .table-wrap tbody tr:nth-child(even) { background: #182f35; }

.painel-equipe .actions-inline { align-items: center; gap: .38rem; }
.painel-equipe .btn {
  width: auto;
  min-height: 40px !important;
  padding: .52rem .75rem !important;
  font-size: .84rem !important;
  font-weight: 700;
  line-height: 1.2;
  border: 1px solid #516d75;
  border-radius: 8px !important;
  background: #263e46;
  color: #f5fafb;
}
body .painel-equipe .btn-primary,
.painel-equipe .btn-green { background: #9de8c5; border-color: #9de8c5; color: #102d23; }
.painel-equipe .btn-gold { background: #3d3528; border-color: #897447; color: #ffdda3; }
.painel-equipe .btn-red { background: #46292e; border-color: #94616a; color: #ffd5d9; }
.painel-equipe .btn:hover { filter: brightness(1.14); transform: none; }
.painel-equipe .btn:focus-visible { outline: 2px solid #a6f4da; outline-offset: 3px; }
.painel-equipe .birthday-alert-panel { width: 100%; background: #342c22; }
.painel-equipe .birthday-alert-panel.blink { animation: none; }

@container (max-width: 920px) {
  .painel-equipe .layout2 { grid-template-columns: minmax(0, 1fr); }
}
@container (max-width: 700px) {
  .painel-equipe .cards4,
  .painel-equipe .cards3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .painel-equipe .btn { min-height: 44px !important; }
}
@container (max-width: 350px) {
  .painel-equipe .cards4,
  .painel-equipe .cards3 { grid-template-columns: minmax(0, 1fr); }
}

.painel-equipe .birthday-alert-compact { max-width: none; }

.prof-panel {
  gap: 18px;
}

.prof-panel .prof-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 1fr);
  gap: 18px;
  align-items: stretch;
}

.prof-panel .eyebrow {
  margin: 0 0 6px;
  color: #a8dbc3;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.prof-panel .prof-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.prof-panel .white-card {
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
}

.prof-panel .prof-form-card,
.prof-panel .prof-list-card {
  background: linear-gradient(180deg, rgba(17,46,51,.96), rgba(14,35,40,.96));
}

.prof-panel .prof-form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.prof-panel .prof-form-grid .field { margin: 0; }
.prof-panel .prof-form-grid .field-span-2 { grid-column: span 2; }
.prof-panel .prof-form-grid input,
.prof-panel .prof-form-grid select {
  min-height: 48px;
  border-radius: 12px;
  background: rgba(255,255,255,.05);
  border-color: #4b6d69;
}

.prof-panel .prof-form-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 16px;
}

.prof-panel .prof-list-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.prof-panel .prof-counter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #527076;
  background: rgba(255,255,255,.05);
  color: #e7f5f2;
  font-size: .84rem;
  font-weight: 700;
}

.prof-panel .prof-table-wrap {
  margin-top: 12px;
  border: 1px solid #355159;
  border-radius: 14px;
}

.prof-panel .prof-name-cell {
  display: grid;
  gap: 6px;
}

.prof-panel .prof-course-badge,
.prof-panel .prof-phone {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(138,195,178,.22);
}

.prof-panel .prof-actions {
  flex-wrap: wrap;
}

.prof-panel .table-wrap tbody tr:hover {
  background: #223a41;
}

@container (max-width: 980px) {
  .prof-panel .prof-hero,
  .prof-panel .prof-form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .prof-panel .prof-form-grid .field-span-2 { grid-column: auto; }
}

@container (max-width: 700px) {
  .prof-panel .prof-stats {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .prof-panel .prof-list-head {
    flex-direction: column;
    gap: 10px;
  }
}

@container (max-width: 520px) {
  .prof-panel .prof-stats {
    grid-template-columns: minmax(0, 1fr);
  }
}
