:root {
  --brand-orange: #F08030;
  --brand-orange-hover: #E06E1C;
  --brand-navy: #304090;
  --brand-navy-deep: #1E2A5C;
  --brand-navy-soft: #3D4FA8;
  --ink: #141B3A;
  --muted: #5A6488;
  --surface: #F5F6FB;
  --white: #FFFFFF;
  --danger: #C43C3C;
  --success: #1F8A5B;
  --font-display: "Chakra Petch", "Space Grotesk", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "Space Grotesk", monospace;
  --action-edit: #C9A227;
  --action-edit-hover: #B08E1C;
  --action-lock: #304090;
  --action-lock-hover: #263574;
  --action-delete: #C43C3C;
  --action-delete-hover: #A83232;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  scrollbar-width: thin;
  scrollbar-color: var(--brand-orange) transparent;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
  background: transparent;
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
  background: var(--brand-orange);
  border-radius: 999px;
}

html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover {
  background: var(--brand-orange-hover);
}

.brand-mark {
  display: block;
  width: min(280px, 72vw);
  height: auto;
  margin: 0 auto 1.25rem;
  animation: brandIn 0.7s ease-out both;
}

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

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

@keyframes softPulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 0.75; }
}

.btn-brand {
  background: var(--brand-orange);
  color: var(--white);
  border: none;
  border-radius: 0.75rem;
  font-weight: 600;
  font-family: var(--font-display);
  letter-spacing: 0.01em;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-brand:hover {
  background: var(--brand-orange-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(240, 128, 48, 0.35);
}

.btn-logout {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--white);
  border-radius: 0.5rem;
  padding: 0.4rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: var(--font-display);
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-logout:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--brand-orange);
}

.nav-brand {
  background: linear-gradient(120deg, var(--brand-navy-deep) 0%, var(--brand-navy) 55%, #3A4E9E 100%);
}

.badge-root,
.badge-admin,
.badge-professor,
.badge-ativo,
.badge-inativo,
.badge-pendente {
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.badge-root {
  background: rgba(48, 64, 144, 0.12);
  color: var(--brand-navy);
}

.badge-admin {
  background: rgba(61, 79, 168, 0.14);
  color: var(--brand-navy-soft);
}

.badge-professor {
  background: rgba(240, 128, 48, 0.15);
  color: #C45A12;
}

.badge-ativo {
  background: rgba(31, 138, 91, 0.12);
  color: var(--success);
}

.badge-inativo {
  background: rgba(196, 60, 60, 0.12);
  color: var(--danger);
}

.badge-pendente {
  background: rgba(240, 128, 48, 0.16);
  color: #C45A12;
}

.input-brand {
  width: 100%;
  border: 1px solid #D5DAEA;
  border-radius: 0.75rem;
  padding: 0.65rem 0.9rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: var(--white);
}

.input-brand:focus {
  border-color: var(--brand-orange);
  box-shadow: 0 0 0 3px rgba(240, 128, 48, 0.18);
}

.input-dark {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.75rem;
  padding: 0.7rem 0.95rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  color: var(--white);
  background: rgba(10, 14, 35, 0.55);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-dark:focus {
  border-color: var(--brand-orange);
  box-shadow: 0 0 0 3px rgba(240, 128, 48, 0.22);
}

.label-muted {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
  font-family: var(--font-display);
  letter-spacing: 0.01em;
}

.panel {
  background: var(--white);
  border: 1px solid #E4E8F4;
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(30, 42, 92, 0.06);
}

/* ---- Shell do sistema (sidebar + topbar) ---- */
.app-shell {
  --sidebar-width: 260px;
  --sidebar-width-collapsed: 76px;
  display: flex;
  min-height: 100vh;
  background: var(--surface);
}

.app-sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  background: #2A2D88;
  color: var(--white);
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  transition: transform 0.25s ease, width 0.25s ease;
}

.app-sidebar__brand {
  position: relative;
  padding: 1.15rem 2.75rem 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  min-height: 4.75rem;
}

.app-sidebar__logo {
  height: 48px;
  width: auto;
  max-width: 78%;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 0 12px rgba(240, 128, 48, 0.22));
  animation: sidebarLogoGlow 3.2s ease-in-out infinite;
  transition: opacity 0.2s ease, transform 0.2s ease, filter 0.2s ease;
}

@keyframes sidebarLogoGlow {
  0%, 100% {
    filter: drop-shadow(0 0 8px rgba(240, 128, 48, 0.15)) drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
    transform: translateY(0);
  }
  50% {
    filter: drop-shadow(0 0 18px rgba(240, 128, 48, 0.4)) drop-shadow(0 6px 16px rgba(0, 0, 0, 0.25));
    transform: translateY(-1px);
  }
}

.app-sidebar__mark {
  display: none;
  width: 2.1rem;
  height: 2.1rem;
  object-fit: contain;
  margin: 0 auto;
  filter: drop-shadow(0 0 10px rgba(240, 128, 48, 0.35));
}

.app-sidebar__collapse {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.85);
  width: 2rem;
  height: 2rem;
  border-radius: 0.55rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.app-sidebar__collapse:hover {
  background: rgba(240, 128, 48, 0.18);
  border-color: rgba(240, 128, 48, 0.45);
  color: #fff;
}

.app-sidebar__collapse svg {
  width: 1.05rem;
  height: 1.05rem;
  transition: transform 0.25s ease;
}

.app-sidebar__nav {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  scrollbar-width: thin;
  scrollbar-color: var(--brand-orange) transparent;
}

.app-sidebar__nav::-webkit-scrollbar {
  width: 5px;
}

.app-sidebar__nav::-webkit-scrollbar-track {
  background: transparent;
  margin: 0.5rem 0;
}

.app-sidebar__nav::-webkit-scrollbar-thumb {
  background: var(--brand-orange);
  border-radius: 999px;
}

.app-sidebar__nav::-webkit-scrollbar-thumb:hover {
  background: var(--brand-orange-hover);
}

.app-nav-group {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-top: 0.85rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.app-nav-group.is-hidden {
  display: none !important;
}

.app-nav-group__label {
  margin: 0 0 0.25rem;
  padding: 0 0.85rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
  font-family: var(--font-display);
}

.app-nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.68rem 0.85rem;
  border-radius: 0.75rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-display);
  letter-spacing: 0.01em;
  transition: background 0.15s ease, color 0.15s ease;
}

.app-nav-link svg {
  width: 1.35rem;
  height: 1.35rem;
  flex-shrink: 0;
  opacity: 0.9;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-nav-link svg.app-nav-icon--bot {
  width: 1.45rem;
  height: 1.45rem;
}

.app-nav-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.app-nav-link.is-active {
  background: var(--brand-orange);
  color: var(--white);
  box-shadow: 0 8px 18px rgba(240, 128, 48, 0.28);
}

.app-nav-link.is-active::before {
  display: none;
}

.app-nav-link.is-active svg {
  opacity: 1;
  color: var(--white);
}

@keyframes botPulse {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(255, 255, 255, 0)); }
  50% { filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.45)); }
}

.app-nav-link.is-active svg.app-nav-icon--bot {
  animation: botPulse 2.4s ease-in-out infinite;
}

.app-nav-link.is-hidden {
  display: none !important;
}

#btn-cert-novo[hidden],
#btn-cert-novo.is-hidden {
  display: none !important;
}

.app-nav-link__text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-sidebar__foot {
  padding: 1rem 1.25rem 1.3rem;
  border-top: none;
}

.app-sidebar__tagline {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.02em;
  font-family: var(--font-display);
}

.app-sidebar__accent {
  height: 3px;
  width: 100%;
  border-radius: 999px;
  margin-bottom: 0.75rem;
  background: var(--brand-orange);
}

.app-main {
  flex: 1;
  margin-left: var(--sidebar-width, 260px);
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: margin-left 0.25s ease;
}

/* ---- Sidebar recolhida (desktop) ---- */
@media (min-width: 769px) {
  body.sidebar-collapsed .app-sidebar {
    width: var(--sidebar-width-collapsed);
  }

  body.sidebar-collapsed .app-main {
    margin-left: var(--sidebar-width-collapsed);
  }

  body.sidebar-collapsed .app-sidebar__brand {
    justify-content: center;
    flex-direction: column;
    padding: 0.85rem 0.5rem 0.75rem;
    gap: 0.55rem;
    min-height: auto;
  }

  body.sidebar-collapsed .app-sidebar__logo {
    display: none;
  }

  body.sidebar-collapsed .app-sidebar__mark {
    display: block;
  }

  body.sidebar-collapsed .app-sidebar__collapse {
    position: static;
    transform: none;
  }

  body.sidebar-collapsed .app-sidebar__collapse svg {
    transform: rotate(180deg);
  }

  body.sidebar-collapsed .app-sidebar__nav {
    padding: 0.75rem 0.55rem;
    align-items: center;
  }

  body.sidebar-collapsed .app-nav-group {
    width: 100%;
    align-items: center;
    margin-top: 0.55rem;
    padding-top: 0.45rem;
  }

  body.sidebar-collapsed .app-nav-group__label {
    display: none;
  }

  body.sidebar-collapsed .app-nav-link,
  body.sidebar-collapsed .app-nav-link.is-active {
    width: 2.75rem;
    height: 2.75rem;
    min-width: 2.75rem;
    min-height: 2.75rem;
    max-width: 2.75rem;
    max-height: 2.75rem;
    padding: 0 !important;
    justify-content: center;
    align-items: center;
    gap: 0;
    border-radius: 0.7rem;
    flex: 0 0 2.75rem;
    box-sizing: border-box;
    overflow: hidden;
  }

  body.sidebar-collapsed .app-nav-link svg {
    width: 1.35rem;
    height: 1.35rem;
    margin: 0;
    flex-shrink: 0;
  }

  body.sidebar-collapsed .app-nav-link svg.app-nav-icon--bot {
    width: 1.4rem;
    height: 1.4rem;
  }

  body.sidebar-collapsed .app-nav-link__text {
    display: none !important;
    width: 0;
    height: 0;
    overflow: hidden;
  }

  body.sidebar-collapsed .app-sidebar__foot {
    padding: 0.75rem 0.5rem 1rem;
    display: flex;
    justify-content: center;
  }

  body.sidebar-collapsed .app-sidebar__tagline {
    display: none;
  }

  body.sidebar-collapsed .app-sidebar__accent {
    width: 1.5rem;
    margin: 0 auto 0;
  }
}

.app-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #F5F6FB;
  backdrop-filter: none;
  border-bottom: 1px solid #E4E8F4;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 1rem;
  width: 100%;
  box-sizing: border-box;
  isolation: isolate;
}

.app-topbar__right {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-left: auto;
  position: relative;
  z-index: 1;
}

.app-breadcrumb {
  flex: 1;
  min-width: 0;
  margin: 0 0.5rem;
}

.app-breadcrumb__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.15rem 0.35rem;
  min-width: 0;
}

.app-breadcrumb__item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  font-family: var(--font-display);
  font-size: 0.92rem;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.app-breadcrumb__item:not(:last-child)::after {
  content: "";
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  margin-left: 0.15rem;
  border-right: 1.5px solid #9AA3C0;
  border-top: 1.5px solid #9AA3C0;
  transform: rotate(45deg);
  flex-shrink: 0;
  opacity: 0.7;
}

.app-breadcrumb__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: none;
  background: transparent;
  padding: 0.2rem 0.25rem;
  margin: 0;
  color: var(--brand-navy-deep);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  border-radius: 0.35rem;
  max-width: 100%;
}

.app-breadcrumb__link:hover {
  color: var(--brand-orange);
}

.app-breadcrumb__link:focus-visible {
  outline: 2px solid var(--brand-orange);
  outline-offset: 2px;
}

.app-breadcrumb__current {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #7A84A6;
  font-weight: 500;
  padding: 0.2rem 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: min(42vw, 280px);
}

.app-breadcrumb__home {
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .app-breadcrumb {
    margin: 0 0.15rem;
  }

  .app-breadcrumb__item {
    font-size: 0.82rem;
  }

  .app-breadcrumb__current {
    max-width: 46vw;
  }
}

.trein-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.trein-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: left;
  border: 1px solid #E4E8F4;
  background: #fff;
  border-radius: 1rem;
  padding: 0.85rem;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease;
  font-family: var(--font-display);
  color: var(--brand-navy-deep);
}

.trein-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(30, 42, 92, 0.1);
}

.trein-card__thumb {
  aspect-ratio: 16/10;
  border-radius: 0.7rem;
  overflow: hidden;
  background: linear-gradient(145deg, #304090, #1E2A5C);
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.7);
  font-size: 0.85rem;
}

.trein-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trein-aulas-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.85rem;
}

.trein-modulo {
  margin-bottom: 1.5rem;
  padding: 1.15rem 1.2rem 1.25rem;
  border-radius: 1rem;
  border: 1px solid #E4E8F4;
  background: linear-gradient(180deg, #FFFFFF 0%, #F7F8FC 100%);
}

.trein-modulo__head {
  margin-bottom: 0.9rem;
}

.trein-modulo__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brand-navy-deep);
}

.trein-modulo__desc {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.45;
}

.trein-aula-item {
  display: grid;
  grid-template-columns: 7.2rem 1fr;
  align-items: stretch;
  gap: 0;
  width: 100%;
  text-align: left;
  border: 1px solid #E4E8F4;
  background: #fff;
  border-radius: 0.9rem;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  font-family: var(--font-body);
  box-shadow: 0 6px 16px rgba(30, 42, 92, 0.04);
  transition: transform .15s ease, box-shadow .2s ease, border-color .15s ease;
}

.trein-aula-item:not(.is-locked):hover {
  border-color: rgba(240, 128, 48, 0.55);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(30, 42, 92, 0.1);
}

.trein-aula-item.is-done {
  border-color: rgba(34, 140, 90, 0.35);
}

.trein-aula-item.is-locked {
  opacity: 0.62;
  cursor: not-allowed;
}

.trein-aula-item__media {
  position: relative;
  min-height: 5.4rem;
  background: linear-gradient(145deg, #304090, #1E2A5C);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.trein-aula-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  z-index: 1;
}

.trein-aula-item__media::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(11, 16, 38, 0.15), rgba(11, 16, 38, 0.55));
  pointer-events: none;
}

.trein-aula-item__index {
  position: relative;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.88);
}

.trein-aula-item__media:has(img) .trein-aula-item__index {
  display: none;
}

.trein-aula-item__play {
  position: absolute;
  z-index: 3;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--brand-orange);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.trein-aula-item__play svg {
  width: 0.85rem;
  height: 0.85rem;
  margin-left: 1px;
}

.trein-aula-item__badge {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  z-index: 3;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  background: rgba(255, 255, 255, 0.95);
  color: var(--brand-navy-deep);
}

.trein-aula-item__badge.is-done {
  background: #22C55E;
  color: #fff;
}

.trein-aula-item__body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
  padding: 0.7rem 0.8rem;
  justify-content: center;
}

.trein-aula-item__body strong {
  color: var(--brand-navy-deep);
  font-size: 0.9rem;
  line-height: 1.3;
}

.trein-aula-item__meta,
.trein-aula-item__state {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.35;
}

.trein-aula-item__state {
  color: var(--brand-orange);
  font-weight: 600;
}

.trein-aula-item.is-done .trein-aula-item__state {
  color: #15803D;
}

.trein-aula-item.is-locked .trein-aula-item__state {
  color: var(--muted);
}

.trein-player {
  position: relative;
  padding-top: 56.25%;
  border-radius: 0.85rem;
  overflow: hidden;
  background: #0B1026;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.14);
}

.trein-player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.trein-video-stack {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.trein-video-card {
  border: 1px solid #E4E8F4;
  border-radius: 1rem;
  background: #fff;
  padding: 1rem 1.1rem 1.15rem;
  box-shadow: 0 8px 22px rgba(30, 42, 92, 0.05);
}

.trein-video-card.is-watched {
  border-color: rgba(34, 140, 90, 0.35);
}

.trein-video-card__head {
  margin-bottom: 0.85rem;
}

.trein-video-card__index {
  display: inline-block;
  margin-bottom: 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-orange);
  font-weight: 700;
}

.trein-video-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brand-navy-deep);
  line-height: 1.3;
}

.trein-video-card__meta {
  margin: 0.3rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.trein-video-card__desc {
  margin: 0.45rem 0 0;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.45;
}

.trein-video-card__mats {
  margin-top: 0.9rem;
  padding-top: 0.85rem;
  border-top: 1px solid #EEF1F7;
}

.trein-video-card__mats-label {
  margin: 0 0 0.55rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand-navy);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.trein-mats-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.trein-mat-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  max-width: 100%;
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  border: 1px solid #E4E8F4;
  background: #F7F8FC;
  text-decoration: none;
  color: var(--brand-navy-deep);
  font-size: 0.8rem;
  transition: border-color .15s ease, background .15s ease;
}

.trein-mat-chip:hover {
  border-color: rgba(240, 128, 48, 0.5);
  background: #FFF8F2;
}

.trein-mat-chip__tipo {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--brand-orange);
}

.trein-mat-chip__titulo {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 14rem;
}

.trein-auto-progress {
  padding: 0.9rem 1rem;
  border-radius: 0.85rem;
  background: #EEFBF3;
  border: 1px solid rgba(34, 140, 90, 0.28);
  color: #0F5132;
  font-size: 0.88rem;
  line-height: 1.4;
}

.trein-empty-videos {
  background: #F8F9FC;
}

.trein-mats {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.88rem;
}

.trein-mats a {
  color: var(--brand-navy);
}

@media (max-width: 640px) {
  .trein-aulas-list {
    grid-template-columns: 1fr;
  }
  .trein-aula-item {
    grid-template-columns: 5.5rem 1fr;
  }
}

.trein-avaliacao-lock {
  position: relative;
}

.trein-avaliacao-lock.is-locked .trein-avaliacao-lock__body {
  opacity: 0.45;
  pointer-events: none;
  user-select: none;
  filter: grayscale(0.15);
}

.trein-avaliacao-lock__banner {
  display: none;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  background: #FFF8F2;
  border: 1px solid rgba(240, 128, 48, 0.35);
  color: var(--brand-navy-deep);
  font-size: 0.88rem;
  line-height: 1.4;
}

.trein-avaliacao-lock.is-locked .trein-avaliacao-lock__banner {
  display: flex;
}

.trein-avaliacao-lock__banner svg {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  color: var(--brand-orange);
  margin-top: 0.1rem;
}

.trein-avaliacao-gate__banner {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  background: #F4F6FB;
  border: 1px solid #D8DDEA;
  color: var(--brand-navy-deep);
  font-size: 0.88rem;
  line-height: 1.4;
}
.trein-avaliacao-gate.is-locked .trein-avaliacao-gate__banner {
  background: #FFF8F2;
  border-color: rgba(240, 128, 48, 0.35);
}
.trein-avaliacao-gate__banner svg {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  color: var(--brand-orange);
  margin-top: 0.1rem;
}
.trein-avaliacao-gate__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}
.trein-avaliacao-gate.is-locked #btn-trein-iniciar-avaliacao {
  opacity: 0.55;
  cursor: not-allowed;
}
.trein-avaliacao-page fieldset:last-of-type {
  border-bottom: 0 !important;
  margin-bottom: 0.5rem !important;
  padding-bottom: 0 !important;
}

.app-topbar__cluster {
  display: flex;
  align-items: center;
  gap: 0;
  min-height: 2.85rem;
  padding: 0.25rem 0.55rem 0.25rem 0.4rem;
  border-radius: 999px;
  border: 1px solid #D8DDEA;
  background: var(--white);
  box-shadow: 0 6px 18px rgba(30, 42, 92, 0.06);
  position: relative;
  flex-shrink: 0;
}

.app-topbar__divider {
  width: 1px;
  height: 1.5rem;
  background: #E6EAF4;
  flex-shrink: 0;
  margin: 0 0.45rem;
}

.app-icon-btn {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  border: none;
  background: transparent;
  display: grid;
  place-items: center;
  color: var(--brand-navy);
  cursor: pointer;
  position: relative;
  transition: background 0.15s ease, color 0.15s ease;
}

.app-icon-btn:hover {
  background: #FFF7F0;
  color: var(--brand-orange);
}

.app-icon-btn svg {
  width: 1.1rem;
  height: 1.1rem;
}

.app-icon-btn__dot {
  position: absolute;
  top: 0.32rem;
  right: 0.36rem;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: #E24B4B;
  border: 1.5px solid var(--white);
}

.app-icon-btn__badge {
  position: absolute;
  top: 0.1rem;
  right: 0.05rem;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 0.28rem;
  border-radius: 999px;
  background: #E24B4B;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.1rem;
  text-align: center;
  border: 1.5px solid var(--white);
  pointer-events: none;
}

/* ---- Notificações: painel + toast ---- */
.notif-panel {
  position: absolute;
  top: calc(100% + 0.55rem);
  right: 0;
  width: min(380px, calc(100vw - 2rem));
  background: var(--white);
  border: 1px solid #E2E6F0;
  border-radius: 1rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
  z-index: 80;
  overflow: hidden;
}

.notif-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #EEF1F8;
}

.notif-panel__head strong {
  font-family: var(--font-display);
  color: var(--brand-navy-deep);
  font-size: 0.95rem;
}

.notif-panel__list {
  max-height: min(420px, 55vh);
  overflow-y: auto;
  padding: 0.35rem;
}

.notif-panel__empty {
  margin: 0;
  padding: 1.25rem 1rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
}

.notif-item {
  padding: 0.75rem 0.85rem;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: background 0.15s ease;
}

.notif-item:hover { background: #F7F8FC; }

.notif-item.is-unread {
  background: rgba(240, 128, 48, 0.06);
}

.notif-item__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.notif-item__head strong {
  font-size: 0.88rem;
  color: var(--brand-navy-deep);
}

.notif-item__dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--brand-orange);
  flex-shrink: 0;
}

.notif-item p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
}

.notif-item__link {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: var(--brand-orange);
  font-weight: 600;
}

.app-topbar__right {
  position: relative;
  /* Nunca fixar o chip do usuário — isso soltava o topbar sobre a sidebar/conteúdo */
  inset: auto !important;
  top: auto !important;
  right: auto !important;
  left: auto !important;
  bottom: auto !important;
  transform: none !important;
}

.app-topbar__cluster {
  position: relative !important;
  inset: auto !important;
  transform: none !important;
  flex-shrink: 0;
  max-width: 100%;
}

.notif-toast-host {
  position: fixed;
  top: 5.5rem;
  right: 1.25rem;
  z-index: 12000;
  width: min(380px, calc(100vw - 2rem));
}

.notif-toast {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 1rem 1rem 1rem 1.05rem;
  border-radius: 1rem;
  background: linear-gradient(160deg, #ffffff 0%, #F8F9FD 100%);
  border: 1px solid #E2E6F0;
  box-shadow: 0 18px 42px rgba(30, 42, 92, 0.18);
  animation: notifToastIn 0.35s ease-out both;
}

.notif-toast.is-alta {
  border-color: rgba(240, 128, 48, 0.45);
  box-shadow: 0 18px 42px rgba(240, 128, 48, 0.18);
}

.notif-toast__eyebrow {
  margin: 0 0 0.2rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-orange);
}

.notif-toast__title {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--brand-navy-deep);
  margin-bottom: 0.25rem;
}

.notif-toast__text {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
}

.notif-toast__link {
  display: inline-block;
  margin-top: 0.45rem;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brand-orange);
  cursor: pointer;
  text-align: left;
  text-decoration: none;
}

.notif-toast__close {
  border: 0;
  background: transparent;
  color: #94A3B8;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.1rem 0.25rem;
  border-radius: 0.4rem;
}

.notif-toast__close:hover {
  color: var(--brand-navy-deep);
  background: #EEF1F8;
}

.notif-toast__body { flex: 1; min-width: 0; }

.notif-leitura__eyebrow {
  margin: 0 0 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-orange);
}

.notif-leitura__mensagem {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--brand-navy-deep);
  white-space: pre-wrap;
}

@keyframes notifToastIn {
  from { opacity: 0; transform: translateY(-10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.badge-pendente {
  background: rgba(201, 162, 39, 0.15);
  color: #8A7014;
}

.app-user-chip {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.15rem 0.55rem 0.15rem 0.2rem;
  border: none;
  background: transparent;
  border-radius: 999px;
  min-width: 0;
}

.app-user-chip__avatar {
  width: 2.05rem;
  height: 2.05rem;
  border-radius: 999px;
  background: linear-gradient(145deg, #304090 0%, #1E2A5C 100%);
  color: var(--white);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.app-user-chip__avatar.has-photo {
  background: transparent;
  padding: 0;
}

.app-user-chip__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.app-user-chip__meta {
  display: none;
  padding-right: 0.15rem;
  min-width: 0;
}

.app-user-chip__meta strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--brand-navy-deep);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 14rem;
}

.app-user-chip__meta span {
  display: inline-block;
  margin-top: 0.12rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--brand-orange);
  background: rgba(240, 128, 48, 0.12);
  padding: 0.08rem 0.4rem;
  border-radius: 999px;
  line-height: 1.2;
}

.app-logout-btn {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--brand-navy);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.app-logout-btn:hover {
  background: #FFF7F0;
  color: var(--brand-orange);
}

.app-content {
  padding: 1.5rem;
  flex: 1;
}

.app-view[hidden] {
  display: none !important;
}

.app-banner {
  position: relative;
  width: 100%;
  aspect-ratio: 2400 / 500;
  border-radius: 1.1rem;
  overflow: hidden;
  background: #3F3D89;
  color: var(--white);
  box-shadow: 0 10px 28px rgba(30, 42, 92, 0.14);
}

.app-banner__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}

.app-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(63, 61, 137, 0.28) 0%, rgba(63, 61, 137, 0.1) 42%, transparent 72%);
  pointer-events: none;
}

.app-banner__content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1rem clamp(1rem, 2.5vw, 1.75rem);
  max-width: 32rem;
}

.app-banner__content h1 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.15;
}

.app-banner__content h1 span {
  color: var(--brand-orange);
  text-shadow: 0 0 18px rgba(240, 128, 48, 0.55);
}

.app-banner__content p {
  margin: 0 0 0.7rem;
  font-size: clamp(0.75rem, 1.15vw, 0.88rem);
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.82);
  max-width: 26rem;
}

.app-banner__content .btn-brand {
  align-self: flex-start;
  padding: 0.45rem 1rem;
  font-size: 0.8rem;
}

.app-banner__placeholder {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 2;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.55);
  background: rgba(0, 0, 0, 0.28);
  padding: 0.25rem 0.55rem;
  border-radius: 0.4rem;
}

.app-placeholder {
  background: var(--white);
  border: 1px dashed #C9D0E6;
  border-radius: 1rem;
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: var(--muted);
}

.app-placeholder h2 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  color: var(--brand-navy-deep);
  font-size: 1.25rem;
}

.app-placeholder p {
  margin: 0;
  font-size: 0.92rem;
}

.app-menu-toggle {
  display: none;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.7rem;
  border: 1px solid #D5DAEA;
  background: var(--white);
  color: var(--brand-navy);
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
}

.app-menu-toggle svg {
  width: 1.2rem;
  height: 1.2rem;
}

.app-sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 20, 40, 0.45);
  z-index: 35;
}

body.sidebar-open .app-sidebar-backdrop {
  display: block;
}

@media (min-width: 769px) {
  .app-user-chip__meta {
    display: block;
  }

  .app-sidebar {
    transform: none !important;
  }

  .app-main {
    margin-left: var(--sidebar-width, 260px);
  }

  body.sidebar-collapsed .app-main {
    margin-left: var(--sidebar-width-collapsed, 76px);
  }

  .app-menu-toggle {
    display: none !important;
  }

  .app-sidebar__collapse {
    display: grid;
  }
}

@media (max-width: 768px) {
  .app-sidebar {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: auto;
    max-height: min(86vh, 780px);
    transform: translateY(110%);
    border-radius: 1.5rem 1.5rem 0 0;
  }

  body.sidebar-open .app-sidebar {
    transform: translateY(0);
  }

  .app-main {
    margin-left: 0 !important;
  }

  .app-sidebar__collapse {
    display: none;
  }

  body.sidebar-collapsed .app-sidebar__logo {
    display: block;
  }

  body.sidebar-collapsed .app-sidebar__mark {
    display: none;
  }

  body.sidebar-collapsed .app-nav-link__text,
  body.sidebar-collapsed .app-nav-group__label,
  body.sidebar-collapsed .app-sidebar__tagline {
    display: initial;
  }

  body.sidebar-collapsed .app-nav-link {
    width: 100%;
    height: auto;
    padding: 0.68rem 0.85rem;
    justify-content: flex-start;
    gap: 0.8rem;
  }

  .app-menu-toggle {
    display: grid;
  }
}

@media (max-width: 640px) {
  .app-topbar {
    padding: 0.75rem 1rem;
  }

  .app-content {
    padding: 1rem;
  }
}

/* ---- Usuários: toolbar, tabela e modal ---- */
.users-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.list-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.15rem;
  align-items: center;
}

.list-filters__search {
  position: relative;
  flex: 1 1 280px;
  min-width: min(100%, 260px);
}

.list-filters__search svg {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  color: var(--muted);
  pointer-events: none;
}

.list-filters__search input {
  width: 100%;
  border: 1px solid #D5DAEA;
  background: var(--white);
  border-radius: 0.75rem;
  padding: 0.65rem 0.9rem 0.65rem 2.35rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.list-filters__search input:focus {
  border-color: var(--brand-orange);
  box-shadow: 0 0 0 3px rgba(240, 128, 48, 0.15);
}

.list-filters select {
  border: 1px solid #D5DAEA;
  background: var(--white);
  border-radius: 0.75rem;
  padding: 0.65rem 2rem 0.65rem 0.85rem;
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--ink);
  min-width: 140px;
  outline: none;
}

.list-filters select:focus {
  border-color: var(--brand-orange);
  box-shadow: 0 0 0 3px rgba(240, 128, 48, 0.15);
}

.form-section {
  margin-bottom: 1.35rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid #E8ECF5;
}

.form-section:last-of-type {
  border-bottom: none;
  margin-bottom: 0.5rem;
  padding-bottom: 0;
}

.form-section__title {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--brand-navy-deep);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 0.9rem;
}

.form-grid .span-2 {
  grid-column: 1 / -1;
}

.field-hint {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.req {
  color: #D64545;
  font-weight: 700;
}

.segmented {
  display: inline-flex;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}

.segmented label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid #D5DAEA;
  border-radius: 0.65rem;
  padding: 0.45rem 0.85rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--brand-navy);
  cursor: pointer;
  background: var(--white);
}

.segmented input {
  accent-color: var(--brand-orange);
}

.segmented label:has(input:checked) {
  border-color: var(--brand-orange);
  background: #FFF7F0;
  color: var(--brand-orange);
}

.app-modal__dialog--lg {
  width: min(1100px, 96vw);
}

.app-modal__dialog--xl {
  width: min(1400px, 96vw);
  max-height: min(94vh, 980px);
}

.perm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.perm-table th,
.perm-table td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid #E8ECF5;
  text-align: left;
}

.perm-table thead th {
  background: #F8F9FD;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.perm-table td:not(:first-child),
.perm-table th:not(:first-child) {
  text-align: center;
  width: 110px;
}

.perm-table input[type="checkbox"] {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--brand-orange);
  cursor: pointer;
}

.check-panel {
  border: 1px solid #E2E6F0;
  border-radius: 0.85rem;
  background: #FBFBFE;
  padding: 0.85rem 1rem;
}

.check-panel--scroll {
  max-height: 220px;
  overflow-y: auto;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem 1rem;
}

.check-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem 1.25rem;
}

.check-cols__col {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.88rem;
  color: var(--ink);
  line-height: 1.35;
}

.check-item input {
  margin-top: 0.15rem;
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--brand-orange);
  flex-shrink: 0;
  cursor: pointer;
}

@media (max-width: 640px) {
  .check-grid,
  .check-cols {
    grid-template-columns: 1fr;
  }
}

.btn-link {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--brand-navy);
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  padding: 0.15rem 0.25rem;
}

.btn-link:hover {
  color: var(--brand-orange);
}

.btn-link--danger {
  color: #C43C3C;
}

.btn-link--danger:hover {
  color: #9E2F2F;
}

.table-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.4rem;
  justify-content: flex-end;
  white-space: nowrap;
}

.btn-icon {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.05rem;
  height: 2.05rem;
  padding: 0;
  border: none;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.15s ease, background 0.15s ease;
}

.btn-icon svg {
  width: 0.95rem;
  height: 0.95rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.15;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.btn-icon:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.btn-icon:active {
  transform: translateY(0);
}

.btn-icon:focus-visible {
  outline: 2px solid var(--brand-orange);
  outline-offset: 2px;
}

.btn-icon--edit {
  background: var(--action-edit);
  box-shadow: 0 4px 10px rgba(201, 162, 39, 0.35);
}

.btn-icon--edit:hover {
  background: var(--action-edit-hover);
}

.btn-icon--lock {
  background: var(--action-lock);
  box-shadow: 0 4px 10px rgba(48, 64, 144, 0.35);
}

.btn-icon--lock:hover {
  background: var(--action-lock-hover);
}

.btn-icon--delete {
  background: var(--action-delete);
  box-shadow: 0 4px 10px rgba(196, 60, 60, 0.35);
}

.btn-icon--delete:hover {
  background: var(--action-delete-hover);
}

.btn-icon--mail {
  background: #304090;
  box-shadow: 0 4px 10px rgba(48, 64, 144, 0.35);
  color: #fff;
}

.btn-icon--mail:hover {
  background: #24356E;
}

.btn-icon--key {
  background: #C45A12;
  box-shadow: 0 4px 10px rgba(196, 90, 18, 0.35);
  color: #fff;
}

.btn-icon--key:hover {
  background: #A34A0E;
}

.user-name-cell {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.user-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(145deg, #304090 0%, #1E2A5C 100%);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  font-family: var(--font-display);
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.perfil-layout {
  display: grid;
  grid-template-columns: minmax(200px, 240px) minmax(0, 1fr);
  gap: 1.1rem;
  align-items: start;
}

.perfil-photo-card {
  padding: 1.35rem 1.1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
}

.perfil-photo-wrap {
  position: relative;
  width: 7.5rem;
  height: 7.5rem;
}

.perfil-photo,
.perfil-photo-img {
  width: 7.5rem;
  height: 7.5rem;
  border-radius: 999px;
  object-fit: cover;
}

.perfil-photo {
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #304090 0%, #1E2A5C 100%);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  box-shadow: inset 0 0 0 3px rgba(255,255,255,0.12);
}

.perfil-photo-img {
  display: block;
  box-shadow: 0 8px 24px rgba(30, 42, 92, 0.18);
}

.perfil-photo-hint {
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted);
}

.perfil-info-card .input-brand[readonly] {
  background: #F3F5FB;
  color: #3a4466;
  cursor: default;
}

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

@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.users-empty {
  margin: 0;
  padding: 2rem 1.25rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.data-table thead {
  background: #F8F9FD;
}

.data-table th,
.data-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #E8ECF5;
  font-size: 0.9rem;
}

.data-table tbody tr:hover {
  background: rgba(240, 128, 48, 0.05);
}

.th-sort {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: none;
  background: transparent;
  padding: 0;
  font: inherit;
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.01em;
  cursor: pointer;
  text-transform: none;
}

.th-sort:hover {
  color: var(--brand-navy);
}

.th-sort.is-active {
  color: var(--brand-navy-deep);
}

.th-sort__icon::before {
  content: "↕";
  font-size: 0.72rem;
  opacity: 0.45;
}

.th-sort.is-asc .th-sort__icon::before {
  content: "↑";
  opacity: 1;
  color: var(--brand-orange);
}

.th-sort.is-desc .th-sort__icon::before {
  content: "↓";
  opacity: 1;
  color: var(--brand-orange);
}

.btn-ghost {
  appearance: none;
  border: 1px solid #D5DAEA;
  background: var(--white);
  color: var(--brand-navy);
  border-radius: 0.75rem;
  padding: 0.55rem 1rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn-ghost:hover {
  border-color: var(--brand-orange);
  background: #FFF7F0;
  color: var(--brand-orange);
}

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

.app-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.app-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 20, 40, 0.52);
  backdrop-filter: blur(2px);
}

.app-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  max-height: min(92vh, 900px);
  overflow: auto;
  padding: 0;
  animation: fadeUp 0.28s ease-out both;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.app-modal__dialog.app-modal__dialog--lg {
  width: min(1100px, 96vw);
}

.app-modal__dialog.app-modal__dialog--xl {
  width: min(1400px, 96vw);
  max-height: min(94vh, 980px);
}

.app-modal__dialog::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.app-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.35rem 0.85rem;
  border-bottom: 1px solid #E8ECF5;
}

.app-modal__close {
  appearance: none;
  border: none;
  background: #F3F5FB;
  color: var(--brand-navy);
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.app-modal__close:hover {
  background: #FFF0E5;
  color: var(--brand-orange);
}

.app-modal__body {
  padding: 1.15rem 1.35rem 1.35rem;
}

.app-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.65rem;
  padding-top: 0.35rem;
}

/* Modal com formulário longo: corpo rola, ações ficam fixas embaixo */
.app-modal__dialog--form {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  width: min(560px, 96vw);
  max-height: min(92vh, 900px);
}
.app-modal__form {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
}
.app-modal__dialog--form .app-modal__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding-bottom: 1rem;
}
.app-modal__actions--sticky {
  flex-shrink: 0;
  margin: 0;
  padding: 0.9rem 1.35rem 1.15rem;
  border-top: 1px solid #E8ECF5;
  background: #fff;
  position: relative;
  z-index: 2;
}

body.modal-open {
  overflow: hidden;
}
/* Evita que overflow:hidden no body “descole” sticky do topbar em alguns browsers */
body.modal-open .app-topbar {
  position: sticky;
}

/* ---- Toast (marca Informinas: laranja + azul) ---- */
.toast-container {
  position: fixed;
  top: 1.1rem;
  right: 1.1rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: min(380px, calc(100vw - 1.5rem));
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 0.7rem;
  padding: 0.9rem 0.95rem 1.05rem;
  border-radius: 0.9rem;
  background: linear-gradient(135deg, #FFF4EB 0%, #FFE8D4 55%, #FFDFC4 100%);
  border: 1.5px solid var(--brand-orange);
  box-shadow:
    0 12px 28px rgba(240, 128, 48, 0.28),
    0 2px 0 rgba(255, 255, 255, 0.55) inset;
  overflow: hidden;
  opacity: 0;
  transform: translateX(18px) translateY(-4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  font-family: var(--font-body);
}

.toast--in {
  opacity: 1;
  transform: translateX(0) translateY(0);
}

.toast--out {
  opacity: 0;
  transform: translateX(18px);
}

.toast__icon {
  width: 1.4rem;
  height: 1.4rem;
  margin-top: 0.05rem;
  color: var(--brand-orange);
}

.toast__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.toast__message {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--brand-navy);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.toast__close {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--brand-navy);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 0.35rem;
  opacity: 0.7;
  transition: background 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.toast__close:hover {
  background: rgba(240, 128, 48, 0.2);
  color: var(--brand-navy);
  opacity: 1;
}

.toast__progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  transform-origin: left center;
  background: var(--brand-orange);
  animation: toastProgress linear forwards;
}

@keyframes toastProgress {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}

.toast--success,
.toast--error,
.toast--info,
.toast--warning {
  background: linear-gradient(135deg, #FFF4EB 0%, #FFE8D4 55%, #FFDFC4 100%);
  border-color: var(--brand-orange);
}

.toast--success .toast__icon,
.toast--error .toast__icon,
.toast--info .toast__icon,
.toast--warning .toast__icon {
  color: var(--brand-orange);
}

.toast--success .toast__progress,
.toast--error .toast__progress,
.toast--info .toast__progress,
.toast--warning .toast__progress {
  background: var(--brand-orange);
}

/* BNCC */
.bncc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.95fr);
  gap: 1rem;
  align-items: start;
}

.bncc-cards {
  display: flex;
  flex-direction: column;
  max-height: min(70vh, 720px);
  overflow-y: auto;
}

.bncc-card {
  appearance: none;
  width: 100%;
  text-align: left;
  border: none;
  border-bottom: 1px solid #E8ECF5;
  background: transparent;
  padding: 1rem 1.1rem;
  cursor: pointer;
  transition: background 0.15s ease;
  font-family: var(--font-body);
}

.bncc-card:hover,
.bncc-card.is-active {
  background: rgba(240, 128, 48, 0.07);
}

.bncc-card__top {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.65rem;
  align-items: center;
  margin-bottom: 0.35rem;
}

.bncc-card__code {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--brand-navy-deep);
}

.bncc-card__desc {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.bncc-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  background: #EEF0F7;
  color: var(--muted);
}

.bncc-chip--eixo {
  background: rgba(48, 64, 144, 0.1);
  color: var(--brand-navy);
}

.bncc-detail {
  padding: 1.15rem 1.25rem 1.4rem;
  position: sticky;
  top: 0.5rem;
  max-height: min(78vh, 820px);
  overflow-y: auto;
}

.bncc-detail__head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.bncc-detail__code {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--brand-navy-deep);
}

.bncc-detail__meta {
  margin: 0.25rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.bncc-detail__title {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.45;
}

.bncc-detail__block {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid #E8ECF5;
}

.bncc-detail__block h4 {
  margin: 0 0 0.55rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand-navy);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.bncc-detail__block p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink);
  line-height: 1.55;
}

.bncc-example,
.bncc-material {
  padding: 0.7rem 0.8rem;
  border-radius: 0.7rem;
  background: #F8F9FD;
  margin-bottom: 0.55rem;
}

.bncc-example__tipo {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--brand-orange);
  margin-bottom: 0.35rem;
}

.bncc-example p,
.bncc-material p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--ink);
}

.bncc-material a {
  color: var(--brand-navy);
  font-weight: 600;
  word-break: break-all;
}

.bncc-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid #E8ECF5;
  background: #FBFBFE;
}

.bncc-pager .btn-ghost:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

@media (max-width: 980px) {
  .bncc-layout {
    grid-template-columns: 1fr;
  }

  .bncc-detail {
    position: static;
    max-height: none;
  }

  .bncc-cards {
    max-height: 50vh;
  }
}

@media (max-width: 480px) {
  .toast-container {
    top: auto;
    bottom: 1rem;
    right: 0.75rem;
    left: 0.75rem;
    width: auto;
  }

  .toast {
    transform: translateY(12px);
  }

  .toast--in {
    transform: translateY(0);
  }

  .toast--out {
    transform: translateY(12px);
  }
}

/* Robótica cadastro */
.entity-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 1.15rem;
  padding: 0.25rem;
  background: #EEF1F8;
  border-radius: 0.75rem;
  width: fit-content;
  max-width: 100%;
}

.entity-tabs--compact {
  margin-bottom: 0.75rem;
}

.entity-tabs__btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.5rem 0.95rem;
  border-radius: 0.55rem;
  cursor: pointer;
}

.entity-tabs__btn:hover:not(:disabled) {
  color: var(--brand-navy-deep);
}

.entity-tabs__btn.is-active {
  background: #fff;
  color: var(--brand-navy-deep);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.entity-tabs__btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.skill-picker {
  border: 1px solid #E2E8F0;
  border-radius: 0.85rem;
  padding: 0.9rem;
  background: #F8FAFC;
}

.pick-results {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-height: 160px;
  overflow: auto;
  margin-bottom: 0.65rem;
}

.pick-result {
  text-align: left;
  border: 1px solid #E2E8F0;
  background: #fff;
  border-radius: 0.55rem;
  padding: 0.45rem 0.65rem;
  cursor: pointer;
  font-family: inherit;
}

.pick-result strong {
  display: block;
  color: var(--brand-navy-deep);
  font-size: 0.85rem;
}

.pick-result span {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
}

.pick-result:hover {
  border-color: var(--brand-orange);
}

.skill-chip-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.skill-chip {
  position: relative;
  background: #fff;
  border: 1px solid #D5DAEA;
  border-radius: 0.65rem;
  padding: 0.65rem 2rem 0.65rem 0.75rem;
}

.skill-chip__code {
  font-weight: 700;
  color: var(--brand-navy-deep);
  font-size: 0.9rem;
}

.skill-chip__meta {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.15rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
}

.skill-summary {
  border: 1px solid #D5DAEA;
  border-radius: 0.85rem;
  padding: 0.9rem;
  background: #fff;
  margin-top: 0.25rem;
}

#pick-bncc-lista,
#pick-crmg-lista {
  min-height: 9rem;
  padding: 0.35rem;
}

.criterios-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem;
}

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

@media (min-width: 900px) {
  .criterios-grid--cols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.criterio-check {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.9rem;
  color: var(--brand-navy-deep);
  padding: 0.45rem 0.65rem;
  border: 1px solid #E2E8F0;
  border-radius: 0.55rem;
  background: #fff;
  cursor: pointer;
}

.criterio-check input {
  accent-color: var(--brand-orange);
}

.robo-hero {
  border-radius: 1.1rem;
  min-height: 220px;
  background: linear-gradient(110deg, var(--brand-navy-deep), var(--brand-navy));
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 1.75rem 1.5rem;
  display: flex;
  align-items: flex-end;
}

.robo-hero__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.85;
}

.robo-hero__title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  font-weight: 700;
}

.robo-hero__text {
  margin: 0 0 1rem;
  max-width: 36rem;
  opacity: 0.92;
  font-size: 0.95rem;
}

.robo-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.robo-hero__ghost {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
}

.robo-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

/* ---- Carrossel / posters estilo Netflix ---- */
.robo-row {
  position: relative;
  margin: 0 -0.25rem;
}

.robo-row__track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 0.35rem 0.25rem 1rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.robo-row__track::-webkit-scrollbar {
  display: none;
}

.robo-row__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-58%);
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: none;
  background: rgba(20, 27, 58, 0.88);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, background 0.15s ease;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.25);
}

.robo-row:hover .robo-row__nav:not([hidden]),
.robo-row:focus-within .robo-row__nav:not([hidden]) {
  opacity: 1;
  pointer-events: auto;
}

.robo-row__nav:hover {
  background: var(--brand-orange);
}

.robo-row__nav--prev { left: 0.15rem; }
.robo-row__nav--next { right: 0.15rem; }

.robo-row__nav svg {
  width: 1.15rem;
  height: 1.15rem;
}

.robo-poster {
  flex: 0 0 300px;
  width: 300px;
  max-width: 86vw;
  aspect-ratio: 16 / 9;
  position: relative;
  border: 1px solid rgba(240, 128, 48, 0);
  border-radius: 0.75rem;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  scroll-snap-align: start;
  background: #1E2A5C;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.14);
  transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.robo-poster::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 55%;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.32) 50%, transparent 100%);
  transform: translateX(-220%);
  transition: transform 0.65s ease;
  pointer-events: none;
  mix-blend-mode: soft-light;
}

.robo-poster:hover,
.robo-poster:focus-visible {
  transform: scale(1.045);
  border-color: rgba(240, 128, 48, 0.85);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.28), 0 0 22px rgba(240, 128, 48, 0.4);
  z-index: 1;
  outline: none;
}

.robo-poster:hover::before,
.robo-poster:focus-visible::before {
  transform: translateX(220%);
}

.robo-poster__media {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #304090, #1E2A5C);
  background-size: cover;
  background-position: center;
}

.robo-poster__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 32%, rgba(10, 14, 35, 0.92) 100%);
  pointer-events: none;
}

.robo-poster__info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.85rem 0.95rem 0.95rem;
  color: #fff;
  z-index: 1;
}

.robo-poster__badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--brand-orange);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-bottom: 0.2rem;
}

.robo-poster__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.robo-poster__meta {
  margin: 0.3rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.78);
}

.robo-poster-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

.robo-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1rem;
  margin: 0 0 0.25rem;
}

.robo-filters__search {
  position: relative;
  flex: 1 1 220px;
  min-width: min(100%, 220px);
  max-width: 340px;
}

.robo-filters__search svg {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.05rem;
  height: 1.05rem;
  color: var(--muted);
  pointer-events: none;
}

.robo-filters__search input {
  width: 100%;
  height: 2.55rem;
  padding: 0 0.9rem 0 2.45rem;
  border: 1px solid #E2E6F0;
  border-radius: 0.75rem;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.robo-filters__search input:focus {
  border-color: rgba(240, 128, 48, 0.65);
  box-shadow: 0 0 0 3px rgba(240, 128, 48, 0.15);
}

.robo-filters__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.robo-filter-chip {
  appearance: none;
  border: 1px solid #E2E6F0;
  background: var(--white);
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.robo-filter-chip:hover {
  border-color: rgba(240, 128, 48, 0.45);
  color: var(--brand-navy-deep);
}

.robo-filter-chip.is-active {
  background: var(--brand-orange);
  border-color: var(--brand-orange);
  color: #fff;
}

.robo-filter-chip.is-active:hover {
  background: var(--brand-orange-hover);
  border-color: var(--brand-orange-hover);
  color: #fff;
}

.robo-poster-grid .robo-poster {
  flex: none;
  width: 100%;
  max-width: none;
}

@media (max-width: 1024px) {
  .robo-poster-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .robo-poster {
    flex-basis: 260px;
    width: 260px;
  }

  .robo-row__nav {
    display: none;
  }

  .robo-poster-grid {
    grid-template-columns: 1fr;
  }
}

.robo-card {
  text-align: left;
  border: 1px solid #E2E8F0;
  background: #fff;
  border-radius: 0.9rem;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.robo-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.robo-card__thumb {
  height: 120px;
  background: linear-gradient(135deg, #304090, #1E2A5C);
  background-size: cover;
  background-position: center;
}

.robo-card--compact .robo-card__thumb {
  display: none;
}

.robo-card__body {
  padding: 0.85rem 0.95rem 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.robo-card__badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--brand-orange);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
}

.robo-card__title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-navy-deep);
}

.robo-card__desc,
.robo-card__meta,
.robo-card__count {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.01em;
  color: var(--muted);
}

.robo-card__count {
  margin-top: auto;
  padding-top: 0.5rem;
}

.robo-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin: 0.45rem 0;
}

.robo-chip {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: #EEF1F8;
  color: var(--brand-navy);
}

.robo-player {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 0.9rem;
  overflow: hidden;
  background: #0f172a;
}

.robo-player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.robo-poster-play {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  cursor: pointer;
  font: inherit;
  background: #0f172a;
  color: #fff;
}

.robo-poster-play__media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: #1E2A5C;
}

.robo-poster-play__shade {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(15, 23, 42, 0.15) 0%, rgba(15, 23, 42, 0.45) 100%);
  transition: background 0.25s ease;
}

.robo-poster-play__btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(240, 128, 48, 0.95);
  color: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.35);
  transition: transform 0.2s ease, background 0.2s ease;
}

.robo-poster-play__btn svg {
  width: 1.6rem;
  height: 1.6rem;
  margin-left: 0.15rem;
}

.robo-poster-play:hover .robo-poster-play__btn,
.robo-poster-play:focus-visible .robo-poster-play__btn {
  transform: translate(-50%, -50%) scale(1.06);
  background: #F08030;
}

.robo-poster-play:hover .robo-poster-play__shade,
.robo-poster-play:focus-visible .robo-poster-play__shade {
  background: radial-gradient(ellipse at center, rgba(15, 23, 42, 0.05) 0%, rgba(15, 23, 42, 0.35) 100%);
}

.robo-poster-play:focus-visible {
  outline: 2px solid #F08030;
  outline-offset: 3px;
}

.inicio-comece {
  margin-top: 0.25rem;
}

.inicio-comece__frame {
  width: 100%;
  max-width: 960px;
}

.inicio-comece__frame .robo-player {
  border-radius: 0.75rem;
}

.inicio-comece__frame .robo-poster-play__btn {
  width: 3rem;
  height: 3rem;
}

.inicio-comece__frame .robo-poster-play__btn svg {
  width: 1.2rem;
  height: 1.2rem;
}

@media (max-width: 768px) {
  .app-banner {
    aspect-ratio: 16 / 10;
    min-height: 12.5rem;
  }

  .app-banner__content {
    max-width: none;
    padding: 1.15rem 1.1rem;
    justify-content: flex-end;
  }

  .app-banner__content h1 {
    font-size: clamp(1.15rem, 5.2vw, 1.45rem);
    line-height: 1.2;
  }

  .app-banner__content p {
    font-size: 0.86rem;
    -webkit-line-clamp: 3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .app-banner__overlay {
    background: linear-gradient(180deg, rgba(20, 27, 58, 0.15) 0%, rgba(20, 27, 58, 0.72) 100%);
  }

  .app-banner__media {
    object-position: center center;
  }

  .inicio-comece__frame {
    max-width: none;
  }

  .inicio-comece__frame .robo-poster-play__btn {
    width: 4.25rem;
    height: 4.25rem;
  }

  .inicio-comece__frame .robo-poster-play__btn svg {
    width: 1.55rem;
    height: 1.55rem;
  }
}

.skill-chip__desc {
  font-size: 0.8rem;
  color: #475569;
  margin-top: 0.25rem;
}

.skill-chip__remove {
  position: absolute;
  top: 0.35rem;
  right: 0.45rem;
  border: 0;
  background: transparent;
  color: #94A3B8;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.skill-chip__remove:hover {
  color: #DC2626;
}

.robo-thumb-preview {
  max-width: 280px;
  width: 100%;
  border-radius: 0.75rem;
  display: block;
}

.robo-thumb-mini {
  width: 48px;
  height: 32px;
  object-fit: cover;
  border-radius: 0.35rem;
}

.robo-tree {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.robo-tree__trilha {
  padding: 0.85rem 1rem;
}

.robo-tree__trilha summary {
  cursor: pointer;
  list-style: none;
}

.robo-tree__body {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-left: 0.35rem;
}

.robo-tree__aulas {
  margin: 0;
  padding-left: 1.1rem;
  color: #475569;
  font-size: 0.9rem;
}

.thumb-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.thumb-uploader {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.thumb-uploader__input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.thumb-uploader__zone {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 148px;
  border: 1.5px dashed #C9D0E3;
  border-radius: 0.85rem;
  background: linear-gradient(180deg, #FBFBFE 0%, #F4F6FB 100%);
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.thumb-uploader__zone:hover,
.thumb-uploader__zone:focus-visible {
  border-color: var(--brand-orange);
  background: #FFF8F2;
  box-shadow: 0 0 0 3px rgba(240, 128, 48, 0.12);
  outline: none;
}

.thumb-uploader__zone.is-filled {
  border-style: solid;
  border-color: #D7DCEA;
  background: #fff;
}

.thumb-uploader__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 1rem;
  text-align: center;
  color: var(--brand-navy-deep);
}

.thumb-uploader__empty svg {
  width: 2rem;
  height: 2rem;
  color: var(--brand-orange);
  margin-bottom: 0.15rem;
}

.thumb-uploader__empty strong {
  font-size: 0.92rem;
  font-weight: 650;
}

.thumb-uploader__empty small {
  font-size: 0.78rem;
  color: var(--muted);
}

.thumb-uploader__zone.is-filled .thumb-uploader__empty {
  display: none;
}

.thumb-uploader__preview {
  display: block;
  width: 100%;
  height: 148px;
  object-fit: cover;
}

.thumb-uploader__preview[hidden] {
  display: none !important;
}

.thumb-uploader__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.thumb-uploader__name {
  font-size: 0.82rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.thumb-field .robo-thumb-preview {
  max-width: 220px;
  max-height: 140px;
  object-fit: cover;
}

.thumb-uploader--sm .thumb-uploader__zone {
  min-height: 112px;
}

.thumb-uploader--sm .thumb-uploader__preview {
  height: 112px;
}

.thumb-uploader--sm .thumb-uploader__empty strong {
  font-size: 0.86rem;
}

.thumb-uploader--sm .thumb-uploader__empty svg {
  width: 1.65rem;
  height: 1.65rem;
}

.thumb-uploader--cert .thumb-uploader__zone {
  min-height: 0;
  aspect-ratio: 16 / 10;
}
.thumb-uploader--cert .thumb-uploader__preview {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f1f5f9;
}

/* ---- Editor visual de certificado ---- */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/Montserrat-Regular.ttf") format("truetype");
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/Montserrat-Bold.ttf") format("truetype");
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/OpenSans-Regular.ttf") format("truetype");
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/OpenSans-Bold.ttf") format("truetype");
}
@font-face {
  font-family: "DejaVu Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/DejaVuSans.ttf") format("truetype");
}
@font-face {
  font-family: "DejaVu Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/DejaVuSans-Bold.ttf") format("truetype");
}

.cert-editor-dialog {
  max-width: min(1180px, 96vw);
  width: 100%;
}
.cert-editor {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.cert-editor__dados > summary {
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand-deep, #1E2A5C);
}
.cert-editor__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.cert-editor__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.cert-editor__workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: 1rem;
  align-items: start;
}
@media (max-width: 900px) {
  .cert-editor__workspace {
    grid-template-columns: 1fr;
  }
}
.cert-editor__stage-wrap {
  background: #e8ecf4;
  border-radius: 0.85rem;
  padding: 0.75rem;
  overflow: auto;
}
.cert-stage {
  position: relative;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  background: #fff;
  border-radius: 0.4rem;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(16, 24, 51, 0.12);
  user-select: none;
  touch-action: none;
}
.cert-stage__img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: top;
}
.cert-stage__fields {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.cert-stage__field {
  position: absolute;
  pointer-events: auto;
  cursor: grab;
  max-width: 90%;
  padding: 0.1em 0.25em;
  line-height: 1.25;
  font-family: "DejaVu Sans", Arial, Helvetica, sans-serif;
  border: 1.5px dashed transparent;
  border-radius: 0.25rem;
  outline: none;
}
.cert-stage__field:hover {
  border-color: rgba(240, 128, 48, 0.45);
  background: rgba(255, 248, 242, 0.35);
}
.cert-stage__field.is-selected {
  border-color: var(--brand-orange, #F08030);
  background: rgba(255, 248, 242, 0.55);
  box-shadow: 0 0 0 2px rgba(240, 128, 48, 0.2);
  cursor: grabbing;
  z-index: 2;
}
.cert-stage__empty {
  margin: 0;
  padding: 3rem 1.5rem;
  text-align: center;
  color: #64748b;
  font-size: 0.9rem;
}
.cert-editor__panel {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.85rem;
  padding: 0.9rem 1rem 1.1rem;
}
.cert-editor__panel-title {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
  font-weight: 650;
  color: var(--brand-deep, #1E2A5C);
}
.cert-editor__field-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0.75rem 0 1rem;
}
.cert-editor__field-btn {
  text-align: left;
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 0.55rem;
  padding: 0.45rem 0.65rem;
  font-size: 0.82rem;
  color: #334155;
  cursor: pointer;
}
.cert-editor__field-btn:hover,
.cert-editor__field-btn.is-active {
  border-color: var(--brand-orange, #F08030);
  color: var(--brand-deep, #1E2A5C);
  background: #FFF8F2;
}
.cert-editor__controls {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.cert-editor__row {
  display: grid;
  grid-template-columns: 1fr 4.5rem;
  gap: 0.5rem;
  align-items: center;
}
.cert-editor__row input[type="range"] {
  width: 100%;
}
.cert-editor__color {
  padding: 0.15rem 0.25rem;
  height: 2.4rem;
  cursor: pointer;
}
.cert-editor__check {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.875rem;
  color: #334155;
  cursor: pointer;
}
.cert-preview-pdf {
  border-top: 1px solid #e2e8f0;
  padding-top: 0.75rem;
}
.cert-preview-pdf iframe {
  width: 100%;
  height: 420px;
  border: 0;
  border-radius: 0.65rem;
  background: #fff;
  box-shadow: inset 0 0 0 1px #e2e8f0;
}

/* ---- CAE portal ---- */
.cae-hero {
  position: relative;
  overflow: hidden;
  border-radius: 1.15rem;
  padding: 1.6rem 1.5rem 1.5rem;
  margin-bottom: 1.5rem;
  color: #fff;
  background:
    radial-gradient(ellipse 60% 80% at 90% 10%, rgba(240, 128, 48, 0.28), transparent 55%),
    linear-gradient(135deg, #101833 0%, #1E2A5C 48%, #24356E 100%);
  box-shadow: 0 14px 36px rgba(16, 24, 51, 0.22);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.cae-hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(90deg, #000 20%, transparent 85%);
  pointer-events: none;
}

.cae-hero__content {
  position: relative;
  z-index: 1;
  max-width: 44rem;
}

.cae-hero__eyebrow {
  margin: 0 0 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.cae-hero__title {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.15;
}

.cae-hero__sub {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.78);
}

.cae-hero__stats {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.cae-stat {
  min-width: 6.5rem;
  padding: 0.55rem 0.75rem;
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cae-stat strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.15rem;
  color: var(--brand-orange);
}

.cae-stat span {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cae-hero__admin {
  position: relative;
  z-index: 1;
  align-self: flex-start;
}

.cae-section {
  margin-bottom: 1.75rem;
}

.cae-section__head {
  margin-bottom: 0.85rem;
}

.cae-section__head h2 {
  margin: 0 0 0.2rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--brand-navy-deep);
}

.cae-section__head p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.cae-grid,
.cae-featured-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.cae-card {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 0.95rem;
  padding: 1rem 1.05rem 1.1rem;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.cae-card:hover {
  transform: translateY(-2px);
  border-color: rgba(240, 128, 48, 0.45);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.1);
}

.cae-card.is-featured {
  border-color: rgba(240, 128, 48, 0.35);
  background: linear-gradient(180deg, #FFF8F2 0%, #fff 55%);
}

.cae-card__glow {
  position: absolute;
  inset: auto -20% -40% auto;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 128, 48, 0.16), transparent 70%);
  pointer-events: none;
}

.cae-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
}

.cae-card__badge {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-orange);
}

.cae-card__fonte {
  font-size: 0.72rem;
  color: var(--muted);
}

.cae-card__title {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--brand-navy-deep);
  line-height: 1.3;
}

.cae-card__resumo {
  margin: 0 0 0.7rem;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--muted);
  flex: 1;
}

.cae-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-bottom: 0.85rem;
}

.cae-tag {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.03em;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: #EEF1F8;
  color: var(--brand-navy);
}

.cae-card__actions {
  margin-top: auto;
}

.cae-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.9rem;
  font-size: 0.82rem;
  text-decoration: none;
}

.cae-ref-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.cae-ref {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.9rem;
  align-items: center;
  padding: 0.95rem 1rem;
  border-radius: 0.9rem;
  border: 1px solid #E2E8F0;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.cae-ref:hover {
  transform: translateY(-1px);
  border-color: rgba(48, 64, 144, 0.35);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.cae-ref.is-featured {
  background: linear-gradient(90deg, #F7F8FC 0%, #fff 40%);
  border-color: rgba(48, 64, 144, 0.2);
}

.cae-ref__icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.7rem;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #1E2A5C, #304090);
  color: #fff;
  flex-shrink: 0;
}

.cae-ref__icon svg {
  width: 1.15rem;
  height: 1.15rem;
}

.cae-ref__meta {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.2rem;
}

.cae-ref__title {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-navy-deep);
}

.cae-ref__resumo {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
}

.cae-ref__go {
  font-size: 1.2rem;
  color: var(--brand-orange);
  font-weight: 700;
}

@media (max-width: 640px) {
  .cae-ref {
    grid-template-columns: auto 1fr;
  }
  .cae-ref__go { display: none; }
}

/* ---- Aula: vídeos + materiais (consulta) ---- */
.aula-hero {
  margin: 0 0 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #E8ECF5;
}

.aula-hero__eyebrow {
  margin: 0 0 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-orange);
}

.aula-hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 700;
  color: var(--brand-navy-deep);
  letter-spacing: 0.01em;
  line-height: 1.25;
}

.aula-hero__desc {
  margin: 0.65rem 0 0;
  max-width: 46rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--muted);
}

.aula-block {
  margin-bottom: 2rem;
  padding: 1.25rem 1.35rem 1.4rem;
  background: linear-gradient(165deg, #ffffff 0%, #F7F8FC 100%);
  border: 1px solid #E4E8F4;
  border-radius: 1rem;
  box-shadow: 0 10px 28px rgba(30, 42, 92, 0.05);
}

.aula-block__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.aula-block__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--brand-navy-deep);
}

.aula-block__sub {
  margin: 0.25rem 0 0;
  font-size: 0.84rem;
  color: var(--muted);
}

.aula-block__count {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-navy);
  background: #EEF1F8;
  border: 1px solid #DDE3F0;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
}

.aula-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.85rem;
}

.aula-video-grid.is-single {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  max-width: none;
}

.aula-video-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #E2E6F0;
  border-radius: 0.85rem;
  overflow: hidden;
  background: #fff;
  padding: 0;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.aula-video-card:hover,
.aula-video-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(240, 128, 48, 0.55);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.1);
  outline: none;
}

.aula-video-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background: linear-gradient(145deg, #304090, #1E2A5C);
  background-size: cover;
  background-position: center;
}

.aula-video-card__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 14, 35, 0.05) 20%, rgba(10, 14, 35, 0.55) 100%);
}

.aula-video-card__play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(240, 128, 48, 0.96);
  color: #fff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.32);
  transition: transform 0.2s ease;
  z-index: 1;
}

.aula-video-card__play svg {
  width: 0.95rem;
  height: 0.95rem;
  margin-left: 0.1rem;
}

.aula-video-card:hover .aula-video-card__play {
  transform: translate(-50%, -50%) scale(1.06);
}

.aula-video-card__duration {
  position: absolute;
  right: 0.5rem;
  bottom: 0.5rem;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  color: #fff;
  background: rgba(10, 14, 35, 0.72);
  border-radius: 0.35rem;
  padding: 0.15rem 0.4rem;
}

.aula-video-card__index {
  position: absolute;
  left: 0.5rem;
  top: 0.5rem;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(240, 128, 48, 0.92);
  border-radius: 999px;
  padding: 0.18rem 0.48rem;
}

.aula-video-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.7rem 0.8rem 0.8rem;
}

.aula-video-card__title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--brand-navy-deep);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.aula-video-card__cta {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--brand-orange);
}

.aula-mat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.aula-mat-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.85rem;
  align-items: center;
  padding: 0.95rem 1rem;
  background: #fff;
  border: 1px solid #E2E6F0;
  border-radius: 0.85rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.aula-mat-card:hover {
  border-color: rgba(48, 64, 144, 0.35);
  box-shadow: 0 8px 18px rgba(30, 42, 92, 0.07);
}

.aula-mat-card__icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.7rem;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  background: var(--brand-navy);
}

.aula-mat-card__icon.is-pdf { background: linear-gradient(145deg, #C44536, #9B2C2C); }
.aula-mat-card__icon.is-ppt { background: linear-gradient(145deg, #E06E1C, #C2550A); }
.aula-mat-card__icon.is-doc { background: linear-gradient(145deg, #3B6EA5, #2A4F7A); }
.aula-mat-card__icon.is-zip { background: linear-gradient(145deg, #5B6478, #3E4555); }
.aula-mat-card__icon.is-link { background: linear-gradient(145deg, #304090, #1E2A5C); }
.aula-mat-card__icon.is-outro { background: linear-gradient(145deg, #4A5568, #2D3748); }

.aula-mat-card__title {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--brand-navy-deep);
  line-height: 1.3;
  margin-bottom: 0.35rem;
}

.aula-mat-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.aula-mat-card__chip {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--brand-navy);
  background: #EEF1F8;
  border-radius: 999px;
  padding: 0.18rem 0.5rem;
}

.aula-mat-card__action {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
  padding: 0.55rem 0.85rem;
  border: 0;
  border-radius: 0.65rem;
  background: var(--brand-orange);
  color: #fff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.aula-mat-card__action svg {
  width: 1rem;
  height: 1rem;
}

.aula-mat-card__action:hover {
  background: #E06E1C;
  color: #fff;
}

@media (max-width: 900px) {
  .aula-mat-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .aula-video-grid,
  .aula-video-grid.is-single {
    grid-template-columns: 1fr;
    max-width: none;
  }
}

@media (max-width: 560px) {
  .aula-block {
    padding: 1rem;
  }
  .aula-mat-card {
    grid-template-columns: auto 1fr;
  }
  .aula-mat-card__action {
    grid-column: 1 / -1;
    justify-content: center;
  }
}

/* Player da tela de vídeo — cabe na viewport */
.aula-player-head {
  margin: 0 0 0.85rem;
}

.aula-player-head__eyebrow {
  margin: 0 0 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--brand-orange);
}

.aula-player-head__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 700;
  color: var(--brand-navy-deep);
  line-height: 1.25;
}

.aula-player-head__meta {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.aula-player-frame {
  width: min(100%, 720px, calc((100vh - 12.5rem) * 16 / 9));
  max-width: 100%;
}

.aula-player-frame .robo-player {
  border-radius: 0.85rem;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.14);
}

.aula-player-frame .robo-poster-play__btn {
  width: 3.5rem;
  height: 3.5rem;
}

.aula-player-frame .robo-poster-play__btn svg {
  width: 1.35rem;
  height: 1.35rem;
}

/* ---- Relatórios / panorama + engajamento ---- */
#view-relatorios .panel[data-rel-pane] {
  background: linear-gradient(180deg, #F8F9FC 0%, #EEF1F8 100%);
  border: 1px solid #E2E8F4;
  box-shadow: 0 10px 28px rgba(30, 42, 92, 0.06);
}

#view-relatorios .rel-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem 0.85rem;
  margin: 0 0 0.85rem;
  padding: 0.85rem 1rem;
  background: #fff;
  border: 1px solid #E4E9F4;
  border-radius: 1rem;
  box-shadow: 0 4px 14px rgba(30, 42, 92, 0.04);
}

#view-relatorios .rel-filters > div {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  min-width: 7.5rem;
  flex: 1 1 7.5rem;
  max-width: 14rem;
}

/* Mais específico que `> div` para não empilhar os botões em coluna */
#view-relatorios .rel-filters > .rel-filters__actions {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  align-self: flex-end;
  gap: 0.45rem;
  flex: 0 0 auto;
  min-width: 0;
  max-width: none;
  margin-left: auto;
  padding-bottom: 0.05rem;
}

#view-relatorios .rel-filters .label-muted {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5A6488;
}

#view-relatorios .rel-filters select.input-brand,
#view-relatorios .rel-filters select {
  width: 100%;
  min-width: 0;
  border: 1px solid #D5DAEA;
  background: #fff;
  border-radius: 0.7rem;
  padding: 0.55rem 2rem 0.55rem 0.75rem;
  font-size: 0.86rem;
  color: #1E2A5C;
}

#view-relatorios .rel-filters__actions {
  /* legado: regras principais em `> .rel-filters__actions` */
}

#view-relatorios .rel-filters__actions .btn-brand,
#view-relatorios .rel-filters__actions .btn-ghost {
  white-space: nowrap;
  padding: 0.55rem 0.9rem;
  font-size: 0.82rem;
  line-height: 1.2;
  min-height: 2.45rem;
  box-sizing: border-box;
}

#rel-panorama #rel-panorama-status {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #5A6488;
}

#rel-panorama .rel-section-title {
  margin: 0.35rem 0 0.75rem;
  font-family: "Chakra Petch", "Space Grotesk", sans-serif;
  font-size: 0.95rem;
  font-weight: 650;
  color: #1E2A5C;
}

#rel-panorama .rel-kpi-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 0 0 1.35rem;
}

#rel-panorama .rel-kpi {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid #E4E9F4;
  border-radius: 1rem;
  padding: 1rem 1.05rem 0.95rem;
  box-shadow: 0 6px 18px rgba(30, 42, 92, 0.05);
}

#rel-panorama .rel-kpi::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #F08030, #304090);
}

#rel-panorama .rel-kpi:nth-child(2)::before { background: linear-gradient(180deg, #304090, #1E2A5C); }
#rel-panorama .rel-kpi:nth-child(3)::before { background: linear-gradient(180deg, #5A6488, #304090); }
#rel-panorama .rel-kpi:nth-child(4)::before { background: linear-gradient(180deg, #E8A86B, #F08030); }
#rel-panorama .rel-kpi:nth-child(5)::before { background: linear-gradient(180deg, #6B7FD7, #304090); }
#rel-panorama .rel-kpi:nth-child(6)::before { background: linear-gradient(180deg, #F08030, #E8A86B); }
#rel-panorama .rel-kpi:nth-child(7)::before { background: linear-gradient(180deg, #1E2A5C, #5A6488); }
#rel-panorama .rel-kpi:nth-child(8)::before { background: linear-gradient(180deg, #304090, #F08030); }

#rel-panorama .rel-kpi__label {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #5A6488;
}

#rel-panorama .rel-kpi__value {
  margin: 0.35rem 0 0;
  font-family: "Chakra Petch", "Space Grotesk", sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: #1E2A5C;
  line-height: 1.1;
}

#rel-panorama .rel-kpi__sub {
  margin: 0.35rem 0 0;
  font-size: 0.74rem;
  color: #64748b;
}

#rel-panorama .rel-charts {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

#rel-panorama .rel-chart-card {
  background: #fff;
  border: 1px solid #E4E9F4;
  border-radius: 1rem;
  padding: 0.85rem 0.9rem 0.7rem;
  height: 17rem;
  box-shadow: 0 6px 18px rgba(30, 42, 92, 0.05);
  position: relative;
}

#rel-panorama .rel-chart-card canvas {
  max-width: 100% !important;
  max-height: 100% !important;
}

#rel-panorama .rel-chart-card--wide {
  grid-column: 1 / -1;
  height: 19rem;
}

@media (max-width: 1100px) {
  #rel-panorama .rel-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  #rel-panorama .rel-charts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #view-relatorios .rel-filters > div {
    max-width: none;
  }
}

@media (max-width: 720px) {
  #rel-panorama .rel-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #rel-panorama .rel-charts {
    grid-template-columns: 1fr;
  }
  #rel-panorama .rel-chart-card,
  #rel-panorama .rel-chart-card--wide {
    height: 16rem;
  }
  #view-relatorios .rel-filters > .rel-filters__actions {
    margin-left: 0;
    width: 100%;
    justify-content: flex-start;
  }
}

/* Engajamento por professor */
.rel-engaj-card {
  background: #fff;
  border: 1px solid #E4E9F4;
  border-radius: 1rem;
  padding: 1rem 1.1rem;
  margin-bottom: 0.85rem;
  box-shadow: 0 6px 18px rgba(30, 42, 92, 0.05);
}
.rel-engaj-card__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #EEF1F8;
}
.rel-engaj-card__head strong {
  display: block;
  font-family: "Chakra Petch", "Space Grotesk", sans-serif;
  color: #1E2A5C;
  font-size: 1.05rem;
}
.rel-engaj-card__head span {
  font-size: 0.78rem;
  color: #64748b;
}
.rel-engaj-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: flex-start;
}
.rel-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
}
.rel-badge--ok { background: #E8F7EF; color: #166534; }
.rel-badge--warn { background: #FFF4E5; color: #9A3412; }
.rel-badge--info { background: #EEF2FF; color: #304090; }
.rel-engaj-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}
.rel-engaj-col h4 {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #5A6488;
}
.rel-engaj-ul {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 12rem;
  overflow: auto;
}
.rel-engaj-ul li {
  padding: 0.4rem 0;
  border-bottom: 1px solid #F1F5F9;
  font-size: 0.82rem;
  color: #1E2A5C;
}
.rel-engaj-ul li strong { display: block; }
.rel-engaj-ul li span {
  display: block;
  font-size: 0.72rem;
  color: #64748b;
  margin-top: 0.1rem;
}
.rel-engaj-empty {
  margin: 0;
  font-size: 0.78rem;
  color: #94a3b8;
}
@media (max-width: 900px) {
  .rel-engaj-grid { grid-template-columns: 1fr; }
}

.rel-engaj-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 1100px) {
  .rel-engaj-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.rel-presenca {
  display: grid;
  grid-template-columns: minmax(14rem, 0.9fr) minmax(0, 1.4fr);
  gap: 1rem;
  margin: 0 0 1.25rem;
  align-items: stretch;
}
.rel-presenca__col {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.rel-presenca__col--wide { min-width: 0; }
.rel-presenca__box {
  background: #fff;
  border: 1px solid #E4E9F4;
  border-radius: 1rem;
  padding: 0.85rem 1rem;
  box-shadow: 0 6px 18px rgba(30, 42, 92, 0.05);
  height: 16rem;
  max-height: 16rem;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.rel-presenca__box--scroll {
  height: 16rem;
  max-height: 16rem;
}
.rel-online-ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.rel-online-ul li {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  padding: 0.45rem 0;
  border-bottom: 1px solid #F1F5F9;
}
.rel-online-ul li:last-child { border-bottom: 0; }
.rel-online-ul strong {
  display: block;
  font-size: 0.88rem;
  color: #1E2A5C;
}
.rel-online-ul span {
  font-size: 0.72rem;
  color: #64748b;
}
.rel-online-dot {
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0.4rem;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
  flex-shrink: 0;
}
.rel-login-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}
.rel-login-table th {
  text-align: left;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #5A6488;
  padding: 0.35rem 0.4rem 0.55rem;
  border-bottom: 1px solid #E4E9F4;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}
.rel-login-table td {
  padding: 0.5rem 0.4rem;
  border-bottom: 1px solid #F1F5F9;
  vertical-align: top;
  color: #1E2A5C;
}
.rel-login-table td strong {
  display: block;
  font-size: 0.86rem;
}
.rel-login-table td span {
  display: block;
  font-size: 0.72rem;
  color: #64748b;
}
@media (max-width: 900px) {
  .rel-presenca {
    grid-template-columns: 1fr;
  }
}

/* Central de Ajuda (FAQ) */
.ajuda-faq {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.ajuda-cat__title {
  margin: 0 0 0.55rem;
  font-family: "Chakra Petch", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #1E2A5C;
}
.ajuda-acc {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.ajuda-acc__item {
  background: #fff;
  border: 1px solid #E4E9F4;
  border-radius: 0.85rem;
  padding: 0 0.95rem;
  box-shadow: 0 4px 14px rgba(30, 42, 92, 0.04);
}
.ajuda-acc__item summary {
  cursor: pointer;
  list-style: none;
  padding: 0.85rem 0;
  font-weight: 600;
  color: #1E2A5C;
  font-size: 0.92rem;
}
.ajuda-acc__item summary::-webkit-details-marker { display: none; }
.ajuda-acc__item summary::after {
  content: "+";
  float: right;
  color: #F08030;
  font-weight: 700;
}
.ajuda-acc__item[open] summary::after { content: "–"; }
.ajuda-acc__body {
  padding: 0 0 0.95rem;
  color: #475569;
  font-size: 0.9rem;
  line-height: 1.55;
  border-top: 1px solid #F1F5F9;
  padding-top: 0.75rem;
}

/* ---- Estatísticas (GA4) — Root ---- */
#view-estatisticas .rel-section-title {
  margin: 1.25rem 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5A6488;
}
#view-estatisticas .rel-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
}
#view-estatisticas .rel-kpi {
  position: relative;
  background: #fff;
  border: 1px solid #E8ECF4;
  border-radius: 12px;
  padding: 0.9rem 1rem 0.9rem 1.1rem;
  overflow: hidden;
}
#view-estatisticas .rel-kpi::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #F08030, #E8A86B);
}
#view-estatisticas .rel-kpi:nth-child(2)::before { background: linear-gradient(180deg, #304090, #1E2A5C); }
#view-estatisticas .rel-kpi:nth-child(3)::before { background: linear-gradient(180deg, #5A6488, #304090); }
#view-estatisticas .rel-kpi:nth-child(4)::before { background: linear-gradient(180deg, #E8A86B, #F08030); }
#view-estatisticas .rel-kpi:nth-child(5)::before { background: linear-gradient(180deg, #6B7FD7, #304090); }
#view-estatisticas .rel-kpi:nth-child(6)::before { background: linear-gradient(180deg, #F08030, #E8A86B); }
#view-estatisticas .rel-kpi:nth-child(7)::before { background: linear-gradient(180deg, #1E2A5C, #5A6488); }
#view-estatisticas .rel-kpi__label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
#view-estatisticas .rel-kpi__value {
  margin: 0.35rem 0 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: #1E2A5C;
  line-height: 1.2;
}
#view-estatisticas .rel-kpi__sub {
  margin: 0.2rem 0 0;
  font-size: 0.72rem;
  color: #94A3B8;
}
#view-estatisticas .ga-charts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 0.5rem;
}
#view-estatisticas .rel-chart-card {
  background: #fff;
  border: 1px solid #E8ECF4;
  border-radius: 12px;
  padding: 0.85rem;
  min-height: 220px;
}
#view-estatisticas .rel-chart-card canvas {
  width: 100% !important;
  height: 190px !important;
}
#view-estatisticas .rel-chart-card--wide {
  grid-column: 1 / -1;
  min-height: 260px;
}
#view-estatisticas .rel-chart-card--wide canvas {
  height: 230px !important;
}
#view-estatisticas .ga-tables {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
}
#view-estatisticas .ga-table-card {
  background: #fff;
  border: 1px solid #E8ECF4;
  border-radius: 12px;
  padding: 0.75rem 1rem 1rem;
}
#view-estatisticas .ga-table-card .data-table {
  width: 100%;
  font-size: 0.85rem;
}
#view-estatisticas .ga-table-card code {
  font-size: 0.78rem;
  color: #304090;
}
@media (max-width: 900px) {
  #view-estatisticas .ga-charts,
  #view-estatisticas .ga-tables {
    grid-template-columns: 1fr;
  }
  #view-estatisticas .rel-chart-card--wide {
    grid-column: auto;
  }
}

/* ---- Implantações (GitHub) — Root ---- */
#view-implantacoes .dep-card__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
#view-implantacoes .dep-card__identity {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}
#view-implantacoes .dep-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(145deg, #1E2A5C, #304090);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
#view-implantacoes .dep-avatar svg {
  width: 22px;
  height: 22px;
}
#view-implantacoes .dep-repo {
  margin: 0;
  font-weight: 700;
  font-size: 1.05rem;
  color: #1E2A5C;
}
#view-implantacoes .dep-owner {
  margin: 0.15rem 0 0;
  font-size: 0.82rem;
  color: #64748B;
}
#view-implantacoes .dep-connected {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #304090;
  text-decoration: none;
}
#view-implantacoes .dep-connected:hover {
  text-decoration: underline;
}
#view-implantacoes .dep-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: #F1F5F9;
  color: #64748B;
  border: 1px solid #E2E8F0;
}
#view-implantacoes .dep-badge.is-on {
  background: #ECFDF5;
  color: #047857;
  border-color: #A7F3D0;
}
#view-implantacoes .dep-badge.is-on::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10B981;
}
#view-implantacoes .dep-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}
#view-implantacoes .dep-list-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #1E2A5C;
}
#view-implantacoes .dep-table .dep-commit {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 0.65rem;
}
#view-implantacoes .dep-sha {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  font-weight: 700;
  color: #304090;
  text-decoration: none;
}
#view-implantacoes .dep-sha:hover {
  text-decoration: underline;
}
#view-implantacoes .dep-msg {
  color: #334155;
  font-size: 0.9rem;
}
#view-implantacoes .dep-branch {
  font-size: 0.8rem;
  background: #F1F5F9;
  color: #1E2A5C;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
}
#view-implantacoes .dep-time {
  white-space: nowrap;
  color: #64748B;
  font-size: 0.85rem;
}
#view-implantacoes .dep-pill {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #F08030;
  background: #FFF4EB;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
}

/* Upload de material (robótica) — feedback de progresso */
.mat-upload-status {
  margin-top: 0.75rem;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
}
.mat-upload-status.is-done {
  background: #ECFDF5;
  border-color: #A7F3D0;
}
.mat-upload-status.is-error {
  background: #FEF2F2;
  border-color: #FECACA;
}
.mat-upload-status__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.45rem;
}
.mat-upload-status__msg {
  font-size: 0.85rem;
  font-weight: 600;
  color: #1E2A5C;
}
.mat-upload-status.is-done .mat-upload-status__msg { color: #047857; }
.mat-upload-status.is-error .mat-upload-status__msg { color: #B91C1C; }
.mat-upload-status__pct {
  font-size: 0.78rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #64748B;
  flex-shrink: 0;
}
.mat-upload-status__track {
  height: 8px;
  border-radius: 999px;
  background: #E2E8F0;
  overflow: hidden;
}
.mat-upload-status__bar {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #F08030, #E06E1C);
  transition: width 0.15s ease-out;
}
.mat-upload-status.is-done .mat-upload-status__bar {
  background: #10B981;
}
.mat-upload-status.is-error .mat-upload-status__bar {
  background: #EF4444;
}
.mat-upload-status__path {
  margin: 0.55rem 0 0;
  font-size: 0.75rem;
  line-height: 1.35;
  color: #047857;
  word-break: break-all;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}


