/* ============================================================
   UNIVERSIDADE SINERGISA — DARK THEME
   ============================================================ */

:root {
  --us-bg:          #04060d;
  --us-card-bg:     #0b1220;
  --us-card-bg-2:   #10213d;
  --us-card-bg-3:   #16376b;
  --us-border:      rgba(155, 155, 165, 0.22);
  --us-accent-1:    #001d7a;
  --us-accent-2:    #002fa8;
  --us-accent-3:    #0047cc;
  --us-accent-hover:#2f6fff;
  --us-accent-soft: rgba(0, 71, 204, 0.18);
  --us-accent-soft-2: rgba(0, 47, 168, 0.28);
  --us-accent-glow: rgba(0, 71, 204, 0.55);
  --us-text:        #e2e8f0;
  --us-text-muted:  #94a3b8;
  --us-success:     #10b981;
  --us-warning:     #f59e0b;
  --us-danger:      #ef4444;
}

/* ── Base ──────────────────────────────────────────────────── */
[data-bs-theme="dark"] {
  --bs-body-bg:          var(--us-bg);
  --bs-body-color:       var(--us-text);
  --bs-card-bg:          var(--us-card-bg);
  --bs-border-color:     var(--us-border);
  --bs-link-color:       var(--us-accent-2);
  --bs-link-hover-color: var(--us-accent-hover);
}

body {
  background-color: var(--us-bg);
  color: var(--us-text);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* ── App Layout ────────────────────────────────────────────── */
.app-layout {
  display: flex;
  min-height: 100vh;
}

.app-layout.is-sidebar-collapsed .sidebar {
  width: 76px;
  min-width: 76px;
}

.app-layout.is-sidebar-collapsed .sidebar-brand {
  justify-content: center;
  padding-inline: 0.75rem;
}

.app-layout.is-sidebar-collapsed .sidebar-brand-text,
.app-layout.is-sidebar-collapsed .sidebar-link span,
.app-layout.is-sidebar-collapsed .sidebar-section-label {
  display: none;
}

.app-layout.is-sidebar-collapsed .sidebar-link {
  justify-content: center;
  padding-inline: 0.75rem;
}

.app-layout.is-sidebar-collapsed .sidebar-divider {
  margin-inline: 0.65rem;
}

/* ── Sidebar ───────────────────────────────────────────────── */
.sidebar {
  width: 225px;
  min-width: 225px;
  background: #05070e;
  border-right: 1px solid var(--us-border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 1030;
  overflow-y: auto;
  transition: width 0.28s ease, min-width 0.28s ease, transform 0.28s ease;
}

.sidebar-brand {
  padding: 1.1rem 1rem;
  border-bottom: 1px solid var(--us-border);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #fff;
  text-decoration: none;
  flex-shrink: 0;
}
.sidebar-brand:hover { color: #fff; text-decoration: none; }

.sidebar-brand-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--us-accent-1), var(--us-accent-3));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
  color: #fff;
}

.sidebar-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 0.1rem;
  min-width: 0;
}
.sidebar-brand-sub {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--us-text-muted);
}
.sidebar-brand-name {
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
}

.sidebar-nav {
  padding: 0.85rem 0.65rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.85rem;
  border-radius: 8px;
  color: var(--us-text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
  border-left: 3px solid transparent;
}
.sidebar-link:hover {
  background: rgba(0, 47, 168, 0.16);
  color: #e2e8f0;
  text-decoration: none;
}
.sidebar-link.active {
  background: rgba(0, 47, 168, 0.24);
  color: #fff;
  border-left-color: var(--us-accent-1);
}
.sidebar-link i {
  font-size: 1.05rem;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}

.sidebar-divider {
  height: 1px;
  background: var(--us-border);
  margin: 0.65rem 0.2rem;
}

.sidebar-section-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--us-text-muted);
  padding: 0.2rem 0.85rem 0.35rem;
}

/* Mobile overlay */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1029;
}
.sidebar-overlay.show { display: block; }

/* ── Main area ─────────────────────────────────────────────── */
.main-area {
  margin-left: 225px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-width: 0;
  transition: margin-left 0.28s ease;
}

.app-layout.is-sidebar-collapsed .main-area {
  margin-left: 76px;
}

/* ── Topbar ────────────────────────────────────────────────── */
.topbar {
  background: #05070e;
  border-bottom: 1px solid var(--us-border);
  padding: 0.6rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 1020;
}

.topbar-search {
  flex: 1;
  max-width: 380px;
}

.topbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.topbar-profile {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.topbar-profile:hover { text-decoration: none; }

.topbar-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--us-accent-1), var(--us-accent-3));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: #fff;
  font-weight: 700;
  flex-shrink: 0;
}

.topbar-profile-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
}
.topbar-profile-role {
  font-size: 0.7rem;
  color: var(--us-text-muted);
}
.topbar-chevron {
  font-size: 0.7rem;
  color: var(--us-text-muted);
}

.sidebar-toggle {
  background: transparent;
  border: 1px solid var(--us-border);
  color: var(--us-text-muted);
  border-radius: 6px;
  padding: 0.35rem 0.5rem;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}
.sidebar-toggle:hover { color: #fff; border-color: var(--us-accent-1); }

/* Content area */
.content-area {
  padding: 1.5rem;
  flex: 1;
}

/* Responsive */
@media (max-width: 991.98px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.show {
    transform: translateX(0);
    box-shadow: 4px 0 30px rgba(0, 0, 0, 0.5);
  }
  .main-area {
    margin-left: 0;
  }
  .content-area {
    padding: 1rem;
  }
}

/* Search in topbar */
.search-input {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid var(--us-border) !important;
  color: var(--us-text) !important;
  border-radius: 8px;
  font-size: 0.875rem;
  min-width: 220px;
}
.search-input:focus {
  background: rgba(0, 47, 168, 0.12) !important;
  border-color: var(--us-accent-1) !important;
  box-shadow: 0 0 0 3px rgba(0, 47, 168, 0.18) !important;
  color: var(--us-text) !important;
}
.search-input::placeholder { color: var(--us-text-muted); }

/* ── Cards ─────────────────────────────────────────────────── */
.course-card {
  background: var(--us-card-bg);
  border: 1px solid var(--us-border);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}
.course-card:hover {
  transform: translateY(-5px);
  border-color: var(--us-accent-1);
  box-shadow: 0 12px 36px rgba(0, 47, 168, 0.28);
  color: inherit;
  text-decoration: none;
}
.course-card .card-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--us-card-bg-2), var(--us-card-bg-3));
}
.course-card .card-img-placeholder {
  width: 100%;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--us-card-bg-2) 0%, var(--us-card-bg-3) 100%);
  font-size: 2.5rem;
  color: var(--us-accent-1);
}
.course-card .card-body {
  padding: 1rem 1.1rem 1.2rem;
}
.course-card .card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--us-text);
  margin-bottom: 0.3rem;
  line-height: 1.3;
}
.course-card .card-desc {
  font-size: 0.8rem;
  color: var(--us-text-muted);
  margin-bottom: 0.8rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.course-card .badge-pda {
  background: linear-gradient(135deg, var(--us-accent-1), var(--us-accent-3));
  color: #fff;
  font-size: 0.7rem;
  padding: 0.25em 0.6em;
  border-radius: 20px;
}

/* ── Progress Bars ─────────────────────────────────────────── */
.progress {
  background-color: rgba(45, 45, 78, 0.8);
  height: 7px;
  border-radius: 4px;
  overflow: visible;
}
.progress-bar {
  background: linear-gradient(90deg, var(--us-accent-1), var(--us-accent-3));
  border-radius: 4px;
  transition: width 0.6s ease;
}
.progress-label {
  font-size: 0.78rem;
  color: var(--us-text-muted);
}
.progress-pct {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--us-accent-2);
}

.badge-pda {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.38rem 0.8rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(0, 71, 204, 0.22), rgba(47, 111, 255, 0.2));
  border: 1px solid rgba(86, 139, 255, 0.3);
  color: #dbe8ff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.catalog-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.38rem 0.78rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1;
}

.catalog-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.75rem;
  border-radius: 24px;
  border: 1px solid var(--us-border);
  background:
    radial-gradient(circle at top right, rgba(47, 111, 255, 0.18), transparent 30%),
    linear-gradient(135deg, rgba(8, 12, 24, 0.96), rgba(12, 20, 40, 0.96));
}

.catalog-eyebrow {
  display: inline-block;
  margin-bottom: 0.55rem;
  color: #9bbcff;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.catalog-list-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
}

.catalog-list-heading {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.catalog-list-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.catalog-search-field {
  position: relative;
  display: block;
  width: min(100%, 340px);
}

.catalog-search-field input {
  width: 100%;
  height: 44px;
  padding: 0 2.9rem 0 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.06);
  color: var(--us-text);
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.catalog-search-field input::placeholder {
  color: var(--us-text-muted);
}

.catalog-search-field input:focus {
  border-color: rgba(86, 139, 255, 0.42);
  box-shadow: 0 0 0 3px rgba(47, 111, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
}

.catalog-search-field i {
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  color: var(--us-text-muted);
  pointer-events: none;
}

.pda-shelf {
  margin-bottom: 1.75rem;
  padding: 1.25rem 0 0;
}

.pda-shelf-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pda-shelf-copy {
  max-width: 760px;
}

.pda-shelf-kicker {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.pda-shelf-title {
  font-size: 1.85rem;
  line-height: 1.05;
  margin: 0 0 0.55rem;
  color: #fff;
}

.pda-shelf-description {
  max-width: 880px;
  margin: 0;
  color: var(--us-text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.pda-shelf-meta {
  margin-top: 0.8rem;
  color: var(--us-text-muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.pda-shelf-side {
  min-width: min(100%, 420px);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pda-shelf-overview {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) max-content;
  gap: 2.5rem;
  align-items: end;
}

.pda-shelf-progress-metric strong,
.pda-shelf-completion-metric strong {
  display: block;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 0.35rem;
}

.pda-shelf-progress-metric strong {
  text-align: center;
}

.pda-shelf-completion-metric {
  min-width: 88px;
}

.pda-shelf-completion-metric span {
  display: block;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.1;
}

.pda-shelf-progress .progress,
.process-card-progress .progress {
  height: 8px;
}

.pda-shelf-progress {
  width: 100%;
}

.pda-shelf-empty {
  padding: 1.25rem 0 0.15rem;
  color: var(--us-text-muted);
  font-size: 0.98rem;
}

.process-card-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(245px, 270px);
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  cursor: grab;
  scroll-behavior: smooth;
  user-select: none;
}

.process-card-strip.is-dragging {
  cursor: grabbing;
  user-select: none;
  scroll-behavior: auto;
}

.process-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.process-card-grid-item {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.process-card {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  border-radius: 22px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: #05070e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.28);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.process-card:hover,
.process-card:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(86, 139, 255, 0.34);
  box-shadow: 0 28px 56px rgba(0, 18, 74, 0.35);
  color: inherit;
  text-decoration: none;
}

.process-card--grid,
.process-card-add {
  aspect-ratio: auto;
  min-height: 570px;
}

.process-card-face {
  position: absolute;
  inset: 0;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.process-card-face--cover {
  opacity: 1;
}

.process-card-face--details {
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
}

.process-card:hover .process-card-face--cover,
.process-card:focus-visible .process-card-face--cover {
  opacity: 0;
  transform: scale(1.04);
}

.process-card:hover .process-card-face--details,
.process-card:focus-visible .process-card-face--details {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.process-card-image,
.process-card-placeholder {
  width: 100%;
  height: 100%;
  display: block;
}

.process-card-image {
  object-fit: cover;
  -webkit-user-drag: none;
  user-select: none;
}

.process-card-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 30%, rgba(47, 111, 255, 0.28), transparent 35%),
    linear-gradient(135deg, rgba(14, 20, 36, 1), rgba(8, 12, 24, 1));
  color: rgba(255, 255, 255, 0.9);
  font-size: 2.4rem;
}

.process-card-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 6, 13, 0.05) 8%, rgba(4, 6, 13, 0.22) 42%, rgba(4, 6, 13, 0.94) 100%);
}

.process-card-badges {
  position: absolute;
  top: 0.95rem;
  left: 0.95rem;
  right: 0.95rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.55rem;
  flex-wrap: wrap;
  z-index: 2;
}

.process-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.42rem 0.8rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
}

.process-card-badge--success {
  color: #c4ffe6;
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.32);
}

.process-card-caption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 2;
}

.process-card-caption-pda {
  display: inline-block;
  margin-bottom: 0.4rem;
  color: rgba(226, 232, 240, 0.78);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.075em;
  line-height: 1.15;
  text-transform: uppercase;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.process-card-title {
  margin: 0;
  color: #fff;
  font-size: 1.52rem;
  line-height: 1.06;
  font-weight: 800;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.52rem * 1.06 * 3);
  text-wrap: pretty;
  max-width: 96%;
}

.process-card-details-bg,
.process-card-details-overlay {
  position: absolute;
  inset: 0;
}

.process-card-details-bg .process-card-image,
.process-card-details-bg .process-card-placeholder {
  filter: blur(8px) brightness(0.44);
  transform: scale(1.08);
}

.process-card-details-overlay {
  background: linear-gradient(180deg, rgba(4, 6, 13, 0.72) 0%, rgba(4, 6, 13, 0.95) 100%);
  backdrop-filter: blur(14px);
}

.process-card-details-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.2rem;
  gap: 1rem;
}

.process-card-pill {
  align-self: flex-start;
  padding: 0.42rem 0.78rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.065em;
  text-transform: uppercase;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.process-card-description {
  margin: 0;
  color: rgba(226, 232, 240, 0.92);
  font-size: 0.92rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 8;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.process-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  font-size: 0.78rem;
  color: var(--us-text-muted);
}

.process-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.38rem 0.72rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.process-card-progress {
  margin-top: auto;
}

.process-card-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.process-card-admin {
  display: flex;
  gap: 0.7rem;
}

.process-card-admin a {
  flex: 1;
  justify-content: center;
}

.catalog-card-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.45rem 1.2rem;
  border-radius: 8px;
  border: 1px solid rgba(239, 68, 68, 0.38);
  background: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
  text-decoration: none;
}

.catalog-card-danger:hover {
  background: rgba(239, 68, 68, 0.16);
  color: #fecaca;
}

.process-card-add {
  border-radius: 22px;
  border: 1px dashed rgba(86, 139, 255, 0.3);
  background: linear-gradient(180deg, rgba(10, 16, 32, 0.98), rgba(6, 10, 20, 0.98));
  color: var(--us-text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.process-card-add i {
  font-size: 2rem;
  color: #9bbcff;
}

.process-card-add:hover {
  transform: translateY(-4px);
  border-color: rgba(86, 139, 255, 0.48);
  color: #fff;
}

@media (max-width: 991.98px) {
  .catalog-list-header,
  .catalog-hero,
  .pda-shelf-header {
    flex-direction: column;
    align-items: stretch;
  }

  .pda-shelf-side {
    min-width: 0;
  }

  .pda-shelf-overview {
    grid-template-columns: minmax(0, 1fr) max-content;
    gap: 1.4rem;
  }

  .catalog-search-field {
    width: 100%;
  }

  .process-card-strip {
    grid-auto-columns: minmax(240px, 72vw);
  }
}

@media (max-width: 767.98px), (hover: none) {
  .catalog-hero,
  .pda-shelf {
    padding: 1rem 0 0;
  }

  .pda-shelf-title {
    font-size: 1.45rem;
  }

  .pda-shelf-overview {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .pda-shelf-progress-metric strong {
    text-align: left;
  }

  .process-card-strip {
    grid-auto-flow: row;
    grid-auto-columns: initial;
    grid-template-columns: minmax(0, 1fr);
    overflow-x: visible;
    gap: 0.9rem;
    cursor: default;
    padding-bottom: 0;
  }

  .process-card,
  .process-card--grid,
  .process-card-add {
    aspect-ratio: auto;
    min-height: auto;
  }

  .process-card-face {
    position: relative;
    inset: auto;
  }

  .process-card-face--cover {
    min-height: 220px;
  }

  .process-card-face--details {
    opacity: 1;
    pointer-events: auto;
    transform: none;
    min-height: 260px;
  }

  .process-card-title {
    font-size: 1.3rem;
    min-height: calc(1.3rem * 1.06 * 3);
  }

  .process-card:hover,
  .process-card:focus-visible {
    transform: none;
  }

  .process-card:hover .process-card-face--cover,
  .process-card:focus-visible .process-card-face--cover {
    opacity: 1;
    transform: none;
  }

  .process-card-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn-sinergisa {
  background: linear-gradient(135deg, var(--us-accent-1) 0%, var(--us-accent-2) 50%, var(--us-accent-3) 100%);
  border: none;
  color: #fff;
  border-radius: 8px;
  padding: 0.5rem 1.4rem;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 0 24px rgba(0, 71, 204, 0.36), 0 8px 24px rgba(0, 47, 168, 0.28);
  transition: opacity 0.2s, transform 0.1s, box-shadow 0.18s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.btn-sinergisa:hover  {
  opacity: 0.94;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 0 34px rgba(0, 71, 204, 0.5), 0 12px 30px rgba(0, 47, 168, 0.34);
}
.btn-sinergisa:active {
  transform: translateY(0);
  box-shadow: 0 0 18px rgba(0, 71, 204, 0.26), 0 4px 16px rgba(0, 47, 168, 0.24);
}

.btn-sinergisa-outline {
  background: transparent;
  border: 1px solid rgba(0, 71, 204, 0.5);
  color: #8cb9ff;
  border-radius: 8px;
  padding: 0.45rem 1.2rem;
  font-weight: 500;
  font-size: 0.9rem;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.btn-sinergisa-outline:hover {
  background: rgba(0, 47, 168, 0.14);
  color: var(--us-accent-hover);
}

/* ── Section titles ────────────────────────────────────────── */
.section-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.3rem;
}
.section-subtitle {
  font-size: 0.875rem;
  color: var(--us-text-muted);
}

/* ── Info panel (trilha header etc) ────────────────────────── */
.info-panel {
  background: var(--us-card-bg);
  border: 1px solid var(--us-border);
  border-radius: 14px;
  padding: 1.5rem;
}
.info-panel .panel-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--us-accent-1), var(--us-accent-3));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}

/* ── Lesson list item ──────────────────────────────────────── */
.lesson-item {
  background: var(--us-card-bg);
  border: 1px solid var(--us-border);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  color: var(--us-text);
  transition: border-color 0.15s, background 0.15s;
}
.lesson-item:hover {
  border-color: var(--us-accent-1);
  background: rgba(0, 47, 168, 0.08);
  color: var(--us-text);
  text-decoration: none;
}
.lesson-item.completed { border-color: var(--us-success); }
.lesson-item.active    { border-color: var(--us-accent-1); background: rgba(0,47,168,0.12); }
.lesson-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.lesson-icon.youtube { background: rgba(255,0,0,0.15); color: #ff4444; }
.lesson-icon.vimeo   { background: rgba(26,183,234,0.15); color: #1ab7ea; }
.lesson-icon.external { background: rgba(59,130,246,0.16); color: #8eb8ff; }
.lesson-icon.pdf     { background: rgba(239,68,68,0.15); color: #ef4444; }
.lesson-icon.done    { background: rgba(16,185,129,0.15); color: var(--us-success); }

/* ── Video container ───────────────────────────────────────── */
.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}
.video-wrapper iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

.video-wrapper--player {
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
}

.learning-page {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 1.2rem;
  align-items: start;
}

.learning-sidebar {
  position: sticky;
  top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.learning-sidebar-panel,
.learning-content-panel,
.learning-stage {
  border: 1px solid rgba(255, 255, 255, 0.07);
  background:
    radial-gradient(circle at top right, rgba(90, 53, 255, 0.12), transparent 22%),
    linear-gradient(180deg, rgba(22, 24, 38, 0.96) 0%, rgba(13, 15, 26, 0.98) 100%);
}

.learning-sidebar-panel {
  border-radius: 22px;
  overflow: hidden;
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.learning-sidebar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.learning-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.learning-back-link:hover {
  color: #d9e5ff;
}

.learning-sidebar-toggle {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  flex-shrink: 0;
  transition: all 0.18s ease;
}

.learning-sidebar-toggle:hover {
  background: rgba(108, 44, 255, 0.18);
  border-color: rgba(114, 75, 255, 0.35);
}

.learning-progress-card {
  padding: 1.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.learning-progress-kicker,
.learning-kicker,
.learning-module-label {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9cbcff;
}

.learning-progress-title {
  font-size: 1.65rem;
  line-height: 1.05;
  margin: 0.65rem 0 1.15rem;
  color: #fff;
}

.learning-progress-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-bottom: 0.95rem;
}

.learning-progress-metrics strong {
  display: block;
  font-size: 1.9rem;
  line-height: 1;
  color: #fff;
}

.learning-progress-metrics span,
.learning-progress-footer {
  color: var(--us-text-muted);
  font-size: 0.8rem;
}

.learning-progress-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.learning-progress-track--muted {
  margin-top: 0.55rem;
  height: 6px;
}

.learning-progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6c2cff 0%, #2f7fff 100%);
}

.learning-progress-fill--muted {
  background: linear-gradient(90deg, rgba(80, 121, 255, 0.55) 0%, rgba(123, 53, 255, 0.82) 100%);
}

.learning-progress-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.8rem;
}

.learning-module-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0.75rem;
}

.learning-module {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.02);
}

.learning-module + .learning-module {
  margin-top: 0.75rem;
}

.learning-module[open],
.learning-module.is-current {
  border-color: rgba(114, 75, 255, 0.35);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
}

.learning-module-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  padding: 1rem 1.15rem;
}

.learning-module-summary::-webkit-details-marker {
  display: none;
}

.learning-module-copy {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
}

.learning-module-copy strong {
  color: #fff;
  font-size: 1rem;
  line-height: 1.25;
}

.learning-module-count {
  min-width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}

.learning-module-items {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.learning-lesson {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 0.8rem;
  align-items: start;
  text-decoration: none;
  padding: 0.92rem 1.15rem;
  color: #d9def1;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.learning-lesson:first-child {
  border-top: 0;
}

.learning-lesson:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.learning-lesson.is-active {
  background: linear-gradient(90deg, rgba(102, 44, 255, 0.24), rgba(62, 17, 170, 0.12));
  color: #fff;
}

.learning-lesson.is-complete .learning-lesson-icon {
  color: #9d8bff;
}

.learning-lesson-icon {
  color: #b8bfd8;
  font-size: 1rem;
  line-height: 1.2;
  padding-top: 0.15rem;
}

.learning-lesson-copy {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
}

.learning-lesson-copy strong {
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
}

.learning-lesson-copy small {
  color: var(--us-text-muted);
  font-size: 0.75rem;
}

.learning-main {
  min-width: 0;
  max-width: 980px;
}

.learning-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin-bottom: 0.7rem;
  color: var(--us-text-muted);
  font-size: 0.74rem;
}

.learning-breadcrumb a {
  color: var(--us-text-muted);
  text-decoration: none;
}

.learning-breadcrumb a:hover {
  color: #fff;
}

.learning-breadcrumb i {
  font-size: 0.6rem;
}

.learning-main-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.learning-title {
  margin: 0.35rem 0 0;
  color: #fff;
  font-size: clamp(1.65rem, 2.5vw, 2.15rem);
  line-height: 1.12;
}

.learning-head-actions,
.learning-content-actions,
.learning-download-actions,
.learning-nav-row,
.learning-inline-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.learning-head-actions {
  justify-content: flex-end;
}

.learning-stage {
  border-radius: 26px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.learning-stage-toolbar {
  display: flex;
  justify-content: flex-end;
  margin: -0.1rem 0 1.2rem;
}

.learning-stage-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.learning-stage--media,
.learning-stage--document {
  padding: 1rem;
}

.learning-stage--document iframe,
.learning-pdf-object {
  width: 100%;
  min-height: 76vh;
  border: 0;
  border-radius: 18px;
  background: #fff;
}

.learning-pdf-fallback {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  text-align: center;
  padding: 2rem;
  color: #0f172a;
}

.learning-inline-actions {
  justify-content: center;
  margin-top: 0.25rem;
}

.learning-stage--download {
  padding: 1.4rem;
}

.learning-download-card {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.learning-download-icon {
  width: 70px;
  height: 70px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #fff;
  background: linear-gradient(135deg, rgba(108, 44, 255, 0.92), rgba(37, 99, 235, 0.72));
  box-shadow: 0 18px 40px rgba(72, 56, 255, 0.28);
}

.learning-download-copy h2 {
  margin: 0.3rem 0 0.55rem;
  color: #fff;
  font-size: 1.22rem;
  line-height: 1.3;
  word-break: break-word;
}

.learning-download-copy p,
.learning-content-head p,
.learning-content-body p {
  color: #ccd2e7;
  font-size: 0.95rem;
  line-height: 1.55;
}

.learning-content-panel {
  border-radius: 20px;
  padding: 1.1rem;
}

.learning-content-panel--document {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.learning-panel-section {
  padding: 1rem 0;
}

.learning-panel-section--hero {
  padding-top: 0;
}

.learning-panel-section--spread {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.learning-panel-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.learning-content-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.learning-content-head--inline {
  padding-top: 1rem;
}

.learning-content-head h2 {
  margin: 0;
  color: #fff;
  font-size: 1.25rem;
}

.learning-content-body {
  padding-top: 1rem;
}

.learning-download-description {
  margin-top: 0.8rem;
  color: #dbe2f5;
  font-size: 0.92rem;
  line-height: 1.6;
}

.learning-download-actions--inline {
  margin-top: 1.15rem;
  justify-content: flex-start;
}

.learning-download-actions--compact {
  gap: 0.55rem;
  align-items: center;
}

.learning-download-actions--compact .btn-sinergisa,
.learning-download-actions--compact .btn-sinergisa-outline {
  min-width: 150px;
  min-height: 42px;
  padding: 0.66rem 0.95rem;
}

.learning-complete-action {
  margin-top: 0.55rem;
}

.learning-complete-action .btn-sinergisa,
.learning-complete-action .btn-sinergisa-outline {
  min-width: 220px;
  min-height: 42px;
  padding: 0.66rem 0.95rem;
}

.learning-stage--document-preview {
  margin-top: 0.95rem;
}

.learning-stage--document-preview iframe {
  min-height: 68vh;
  border-radius: 16px;
}

.learning-panel-section--compact {
  padding: 0.95rem 0 0.4rem;
}

.learning-nav-row--compact {
  margin-top: 0;
}

.learning-content-actions {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  min-width: 220px;
}

.learning-head-actions .btn-sinergisa-outline,
.learning-stage-toolbar-actions .btn-sinergisa,
.learning-stage-toolbar-actions .btn-sinergisa-outline,
.learning-content-actions .btn-sinergisa,
.learning-content-actions .btn-sinergisa-outline,
.learning-download-actions .btn-sinergisa,
.learning-download-actions .btn-sinergisa-outline,
.learning-inline-actions .btn-sinergisa,
.learning-inline-actions .btn-sinergisa-outline,
.learning-nav-row .btn-sinergisa,
.learning-nav-row .btn-sinergisa-outline {
  min-height: 44px;
  padding: 0.7rem 1rem;
}

.learning-content-actions .btn-sinergisa,
.learning-content-actions .btn-sinergisa-outline {
  width: 100%;
  justify-content: center;
}

.learning-download-actions--inline .btn-sinergisa,
.learning-download-actions--inline .btn-sinergisa-outline,
.learning-inline-actions .btn-sinergisa,
.learning-inline-actions .btn-sinergisa-outline {
  min-width: 176px;
  justify-content: center;
}

.learning-nav-row {
  justify-content: space-between;
  margin-top: 1.4rem;
}

.process-detail-page {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.process-detail-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.8rem;
  color: var(--us-text-muted);
}

.process-detail-breadcrumb a {
  color: var(--us-text-muted);
  text-decoration: none;
}

.process-detail-breadcrumb a:hover {
  color: #fff;
}

.process-detail-hero {
  position: relative;
  min-height: 480px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    radial-gradient(circle at top right, rgba(255, 214, 102, 0.12), transparent 24%),
    linear-gradient(135deg, rgba(9, 11, 20, 1) 0%, rgba(14, 16, 28, 1) 100%);
}

.process-detail-hero-media,
.process-detail-hero-overlay {
  position: absolute;
  inset: 0;
}

.process-detail-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.process-detail-hero-overlay {
  background:
    linear-gradient(90deg, rgba(6, 8, 16, 0.94) 0%, rgba(7, 9, 18, 0.9) 34%, rgba(7, 9, 18, 0.54) 68%, rgba(7, 9, 18, 0.78) 100%);
}

.process-detail-hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.6rem;
}

.process-detail-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.process-detail-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
}

.process-detail-back:hover {
  color: #fff;
  opacity: 0.88;
}

.process-detail-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.7fr);
  gap: 1.5rem;
  align-items: end;
  margin-top: auto;
}

.process-detail-kicker {
  display: inline-flex;
  align-items: center;
  padding: 0.36rem 0.7rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(230, 236, 248, 0.88);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.process-detail-title {
  margin: 0 0 0.9rem;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.04;
  font-weight: 800;
  max-width: 14ch;
}

.process-detail-summary {
  max-width: 62ch;
  margin: 0 0 1.15rem;
  color: rgba(226, 232, 240, 0.88);
  font-size: 1rem;
  line-height: 1.7;
}

.process-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-bottom: 1.4rem;
}

.process-detail-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: rgba(230, 236, 248, 0.9);
  font-size: 0.92rem;
}

.process-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.process-detail-progress-card {
  padding: 1.2rem;
  border-radius: 14px;
  background: rgba(10, 14, 27, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.process-detail-progress-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.process-detail-progress-head span {
  color: var(--us-text-muted);
  font-size: 0.86rem;
}

.process-detail-progress-head strong {
  color: #fff;
  font-size: 2rem;
  line-height: 1;
}

.process-detail-progress-bar {
  height: 10px;
  margin-bottom: 0.9rem;
}

.process-detail-progress-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  color: var(--us-text-muted);
  font-size: 0.82rem;
}

.process-detail-progress-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 1rem 0;
}

.process-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.process-detail-panel {
  border-radius: 14px;
}

.process-detail-panel--sticky {
  position: static;
}

.process-detail-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.process-detail-panel-title {
  margin: 0 0 0.2rem;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
}

.process-detail-panel-subtitle {
  margin: 0;
  color: var(--us-text-muted);
  font-size: 0.88rem;
}

.process-detail-richtext {
  color: rgba(230, 236, 248, 0.94);
  font-size: 1rem;
  line-height: 1.8;
}

.process-detail-module-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.process-detail-module {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.process-detail-module:hover {
  border-color: rgba(86, 139, 255, 0.28);
  background: rgba(0, 47, 168, 0.08);
  transform: translateY(-1px);
}

.process-detail-module.is-complete {
  border-color: rgba(16, 185, 129, 0.24);
}

.process-detail-module-toggle {
  list-style: none;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 28px;
  gap: 0.9rem;
  align-items: center;
  padding: 0.95rem 1rem;
  cursor: pointer;
}

.process-detail-module-toggle::-webkit-details-marker {
  display: none;
}

.process-detail-module-index {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 1.15rem;
}

.process-detail-module-copy {
  min-width: 0;
}

.process-detail-module-title {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0;
}

.process-detail-module-subtitle {
  margin-top: 0.25rem;
  color: var(--us-text-muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

.process-detail-module-status {
  color: #a5b4fc;
  font-size: 1.15rem;
  justify-self: end;
  transition: transform 0.18s ease, color 0.18s ease;
}

.process-detail-module.is-complete .process-detail-module-status {
  color: #34d399;
}

.process-detail-module[open] .process-detail-module-status {
  transform: rotate(180deg);
}

.process-detail-module.is-complete[open] .process-detail-module-status {
  transform: none;
}

.process-detail-module-body {
  padding: 0 1rem 1rem 5.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.process-detail-module-text {
  margin: 0;
  padding-top: 1rem;
  color: rgba(226, 232, 240, 0.88);
  font-size: 0.94rem;
  line-height: 1.65;
}

.process-detail-content-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding-top: 1rem;
}

.process-detail-content-item {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 0.8rem;
  align-items: center;
  padding: 0.8rem 0.9rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.process-detail-content-item:hover {
  color: inherit;
  text-decoration: none;
  border-color: rgba(86, 139, 255, 0.28);
  background: rgba(0, 47, 168, 0.08);
}

.process-detail-content-item.is-complete {
  border-color: rgba(16, 185, 129, 0.22);
}

.process-detail-content-icon {
  color: #c7d2fe;
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.process-detail-content-item.is-complete .process-detail-content-icon {
  color: #34d399;
}

.process-detail-content-copy {
  min-width: 0;
}

.process-detail-content-title {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.45;
}

.process-detail-content-meta {
  margin-top: 0.2rem;
  color: var(--us-text-muted);
  font-size: 0.78rem;
}

.process-detail-module-empty {
  margin: 0;
  padding-top: 1rem;
  color: var(--us-text-muted);
  font-size: 0.9rem;
}

/* ── Mark complete button ──────────────────────────────────── */
#mark-complete-btn {
  min-width: 200px;
  transition: all 0.2s;
}
#mark-complete-btn.completed {
  background: linear-gradient(135deg, var(--us-success), #059669);
  cursor: default;
}

/* ── Badge / tag ───────────────────────────────────────────── */
.tag {
  display: inline-block;
  padding: 0.2em 0.7em;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.tag-sector {
  background: rgba(59, 130, 246, 0.15);
  color: var(--us-accent-2);
  border: 1px solid rgba(59, 130, 246, 0.3);
}
.tag-pda {
  background: linear-gradient(135deg, var(--us-accent-1), var(--us-accent-3));
  color: #fff;
}

/* ── Dashboard stat cards ──────────────────────────────────── */
.stat-card {
  background: var(--us-card-bg);
  border: 1px solid var(--us-border);
  border-radius: 14px;
  padding: 1.2rem 1.4rem;
}
.stat-card .stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.stat-card .stat-label {
  font-size: 0.8rem;
  color: var(--us-text-muted);
  margin-top: 0.3rem;
}
.stat-card .stat-icon {
  font-size: 1.8rem;
  opacity: 0.7;
}

.dashboard-page {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.dashboard-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.dashboard-metrics-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

.dashboard-metric-card {
  background: linear-gradient(180deg, rgba(27, 28, 40, 0.98) 0%, rgba(24, 25, 36, 0.98) 100%);
  border: 1px solid var(--us-border);
  border-radius: 16px;
  padding: 1.15rem 1.2rem;
  min-height: 138px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.02);
}

.dashboard-metric-card--rose { border-bottom-color: rgba(244, 88, 122, 0.9); }
.dashboard-metric-card--violet { border-bottom-color: rgba(143, 61, 255, 0.9); }
.dashboard-metric-card--gold { border-bottom-color: rgba(214, 163, 26, 0.9); }
.dashboard-metric-card--sand { border-bottom-color: rgba(194, 175, 148, 0.9); }
.dashboard-metric-card--blue { border-bottom-color: rgba(111, 127, 255, 0.9); }

.dashboard-metric-top {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.dashboard-metric-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.dashboard-metric-card--rose .dashboard-metric-icon { background: rgba(244, 88, 122, 0.16); color: #ff89a3; }
.dashboard-metric-card--violet .dashboard-metric-icon { background: rgba(143, 61, 255, 0.16); color: #b78cff; }
.dashboard-metric-card--gold .dashboard-metric-icon { background: rgba(214, 163, 26, 0.16); color: #f0c54b; }
.dashboard-metric-card--sand .dashboard-metric-icon { background: rgba(194, 175, 148, 0.16); color: #e6d4bb; }
.dashboard-metric-card--blue .dashboard-metric-icon { background: rgba(111, 127, 255, 0.16); color: #a9b3ff; }

.dashboard-metric-main {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.dashboard-metric-main strong {
  font-size: 2.05rem;
  line-height: 1;
  color: #fff;
  font-weight: 800;
}

.dashboard-metric-label {
  color: #dce2f4;
  font-size: 0.92rem;
  font-weight: 500;
}

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

.dashboard-chart-card {
  background: linear-gradient(180deg, rgba(27, 28, 40, 0.98) 0%, rgba(24, 25, 36, 0.98) 100%);
  border: 1px solid var(--us-border);
  border-radius: 16px;
  padding: 1.35rem 1.45rem 1.2rem;
}

.dashboard-chart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.dashboard-chart-head h2 {
  margin: 0;
  color: #fff;
  font-size: 1.12rem;
}

.dashboard-chart-head p {
  margin: 0.35rem 0 0;
  color: var(--us-text-muted);
  font-size: 0.84rem;
}

.dashboard-chart-total {
  color: #f8fbff;
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
}

.dashboard-chart-frame {
  border-radius: 14px;
  padding: 0.4rem 0 0;
}

.dashboard-chart-svg {
  width: 100%;
  height: 280px;
  display: block;
}

.dashboard-grid-line {
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 1;
  stroke-dasharray: 3 5;
}

.dashboard-line {
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dashboard-line--rose { stroke: #f4587a; }
.dashboard-line--violet { stroke: #8f3dff; }

.dashboard-area {
  stroke: none;
  opacity: 0.3;
}

.dashboard-area--rose { fill: url(#roseGradient); }
.dashboard-area--violet { fill: url(#violetGradient); }

.dashboard-point {
  stroke: #151623;
  stroke-width: 3;
}

.dashboard-point--rose { fill: #f4587a; }
.dashboard-point--violet { fill: #8f3dff; }

.dashboard-point-label {
  font-size: 12px;
  font-weight: 700;
}

.dashboard-point-label--rose { fill: #ffd5df; }
.dashboard-point-label--violet { fill: #e1d0ff; }

.dashboard-chart-labels {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.5rem;
  color: #cfd6ea;
  font-size: 0.78rem;
  margin-top: -0.1rem;
}

.dashboard-bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 1.2rem;
}

.dashboard-pda-list,
.dashboard-activity-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.dashboard-pda-row,
.dashboard-activity-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.025);
  text-decoration: none;
  transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.dashboard-pda-row:hover,
.dashboard-activity-row:hover {
  border-color: rgba(59, 130, 246, 0.32);
  background: rgba(59, 130, 246, 0.05);
  transform: translateY(-1px);
}

.dashboard-pda-row-copy,
.dashboard-activity-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
}

.dashboard-pda-row-copy strong,
.dashboard-activity-copy strong {
  color: #fff;
  font-size: 0.96rem;
}

.dashboard-pda-row-copy span,
.dashboard-activity-copy small,
.dashboard-activity-date {
  color: var(--us-text-muted);
  font-size: 0.8rem;
}

.dashboard-pda-row-progress {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 210px;
}

.dashboard-pda-row-progress .progress {
  width: 100%;
  height: 10px;
}

.dashboard-activity-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(143, 61, 255, 0.14);
  color: #b78cff;
  flex-shrink: 0;
}

@media (max-width: 1399.98px) {
  .dashboard-metrics-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .dashboard-chart-grid,
  .dashboard-bottom-grid {
    grid-template-columns: minmax(0, 1fr);
  }

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

@media (max-width: 767.98px) {
  .dashboard-metrics-grid,
  .dashboard-chart-grid,
  .dashboard-bottom-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .dashboard-pda-row,
  .dashboard-activity-row,
  .dashboard-chart-head,
  .dashboard-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .dashboard-pda-row-progress {
    min-width: 0;
    width: 100%;
    margin-left: 0;
  }

  .dashboard-chart-labels {
    font-size: 0.72rem;
  }
}

/* ── Form controls dark ────────────────────────────────────── */
.form-control, .form-select {
  background-color: rgba(255,255,255,0.05) !important;
  border-color: var(--us-border) !important;
  color: var(--us-text) !important;
  border-radius: 8px;
}
.form-control:focus, .form-select:focus {
  background-color: rgba(0,47,168,0.08) !important;
  border-color: var(--us-accent-1) !important;
  box-shadow: 0 0 0 3px rgba(0,47,168,0.18) !important;
  color: var(--us-text) !important;
}
.form-label { color: var(--us-text-muted); font-size: 0.875rem; }
.form-check-input { background-color: var(--us-card-bg-2); border-color: var(--us-border); }

.admin-form-page .form-label {
  color: #d7ddf3;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.admin-form-page .form-control,
.admin-form-page .form-select {
  min-height: 48px;
  padding-top: 0.72rem;
  padding-bottom: 0.72rem;
  background-color: rgba(13, 20, 38, 0.92) !important;
  border-color: rgba(59, 130, 246, 0.22) !important;
  color: #f3f6ff !important;
}

.admin-form-page .form-select {
  background-image: var(--bs-form-select-bg-img), linear-gradient(180deg, rgba(18, 27, 48, 0.96) 0%, rgba(13, 20, 38, 0.96) 100%);
  background-repeat: no-repeat, no-repeat;
  background-position: right 0.9rem center, 0 0;
  background-size: 16px 12px, 100% 100%;
}

.admin-form-page .form-select option,
.admin-form-page select option {
  background: #0f1729;
  color: #f3f6ff;
}

.admin-form-page .form-text {
  color: #94a3b8;
  margin-top: 0.45rem;
}

.admin-form-page .admin-page-header--split {
  align-items: center;
  margin-bottom: 1.75rem;
}

.admin-form-page .admin-header-copy--compact {
  max-width: 820px;
}

.admin-form-page .admin-header-actions--split {
  align-self: center;
}

/* ── Certificate (HTML print) ──────────────────────────────── */
.certificate-html {
  background: linear-gradient(135deg, #04060d 0%, #10213d 100%);
  border: 3px solid var(--us-accent-1);
  border-radius: 16px;
  padding: 3rem;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
  position: relative;
}
.certificate-html::after {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(0, 47, 168, 0.32);
  border-radius: 10px;
  pointer-events: none;
}
.certificate-html .cert-title {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.certificate-html .cert-name {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  margin: 0.5rem 0;
}
.certificate-html .cert-track {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--us-accent-hover);
}

/* ── Alerts / Messages ─────────────────────────────────────── */
.messages-container { position: fixed; top: 65px; right: 1rem; z-index: 9999; min-width: 300px; }

/* ── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--us-bg); }
::-webkit-scrollbar-thumb { background: var(--us-border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--us-accent-1); }

/* ── Print ─────────────────────────────────────────────────── */
@media print {
  .sidebar, .topbar, .no-print, .btn { display: none !important; }
  body { background: #fff !important; color: #000 !important; }
  .certificate-html {
    background: #fff !important;
    color: #000 !important;
    border-color: var(--us-accent-2) !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

.admin-stat-note {
  font-size: 0.72rem;
  color: var(--us-warning);
  margin-top: 0.2rem;
}

.admin-page-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  text-align: center;
}

.admin-page-header--split {
  justify-content: space-between;
  align-items: flex-end;
  text-align: left;
}

.admin-page-header--flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  justify-content: normal;
  column-gap: 2rem;
  row-gap: 1.5rem;
  text-align: left;
}

.admin-header-copy {
  max-width: none;
}

.admin-header-copy--compact {
  flex: 1 1 auto;
  max-width: 760px;
}

.admin-header-eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.9rem;
  border: 1px solid rgba(59, 130, 246, 0.28);
  background: rgba(0, 71, 204, 0.14);
  color: #9ec5ff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
  flex: 0 0 auto;
}

.admin-header-actions--split {
  justify-content: flex-end;
}

.admin-overview-card {
  background: linear-gradient(180deg, rgba(26, 26, 46, 0.98) 0%, rgba(16, 16, 31, 0.98) 100%);
  border: 1px solid var(--us-border);
  border-radius: 16px;
  padding: 1.35rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}

.admin-overview-card--flow {
  align-items: flex-start;
  text-align: left;
  justify-content: space-between;
  min-height: 100%;
}

.admin-flow-card-label {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--us-border);
  color: var(--us-text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-overview-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0, 29, 122, 0.35), rgba(0, 71, 204, 0.28));
  color: #fff;
  font-size: 1.25rem;
}

.admin-overview-body h2 {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 0.45rem;
}

.admin-overview-body p {
  font-size: 0.84rem;
  color: var(--us-text-muted);
  margin-bottom: 0.85rem;
  line-height: 1.55;
}

.admin-overview-card--flow .admin-overview-body h2 {
  font-size: 1.18rem;
}

.admin-overview-card--flow .admin-overview-body p {
  margin-bottom: 0;
}

.admin-overview-meta {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
}

.admin-overview-card--flow .admin-overview-meta {
  justify-content: flex-start;
}

.admin-overview-meta span,
.metric-chip {
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--us-border);
  font-size: 0.78rem;
  color: var(--us-text-muted);
}

.admin-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.admin-summary-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric-chip {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  border-radius: 18px;
  padding: 1rem 1.05rem;
  min-height: 92px;
  background: linear-gradient(180deg, rgba(18, 20, 34, 0.96) 0%, rgba(14, 16, 28, 0.98) 100%);
}

.admin-page-header--flow .admin-summary-grid {
  grid-column: 1 / -1;
  max-width: none;
  width: 100%;
}

.admin-metric-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0, 47, 168, 0.24), rgba(0, 71, 204, 0.14));
  border: 1px solid rgba(59, 130, 246, 0.2);
  color: #dce8ff;
  font-size: 1rem;
  flex-shrink: 0;
}

.admin-metric-copy {
  display: flex;
  flex-direction: column;
}

.metric-chip strong {
  font-size: 1.75rem;
  color: #fff;
  line-height: 1;
}

.metric-chip-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
}

.admin-filter-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(180px, 1fr) auto;
  gap: 1rem;
  align-items: end;
}

.admin-filter-grid--wide {
  grid-template-columns: minmax(0, 2fr) minmax(180px, 1fr) minmax(220px, 1.1fr) auto;
}

.admin-filter-grid--xl {
  grid-template-columns: minmax(0, 2fr) minmax(180px, 1fr) minmax(180px, 1fr) minmax(240px, 1.2fr) auto;
}

.admin-filter-actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.admin-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.admin-panel-heading--pda {
  align-items: center;
  margin-bottom: 1.25rem;
}

.admin-panel-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.2rem;
}

.admin-panel-title-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.admin-panel-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.32rem 0.72rem;
  border-radius: 999px;
  background: rgba(0, 71, 204, 0.14);
  border: 1px solid rgba(59, 130, 246, 0.22);
  color: #9ec5ff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.admin-panel-subtitle {
  font-size: 0.95rem;
  color: var(--us-text-muted);
  margin-bottom: 0;
  max-width: 780px;
}

.admin-help-trigger {
  all: unset;
  box-sizing: border-box;
  min-height: 40px;
  border: 1px solid rgba(59, 130, 246, 0.24);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(18, 27, 48, 0.98) 0%, rgba(13, 20, 38, 0.98) 100%);
  color: #d6e5ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.55rem 0.95rem;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  transition: all 0.18s ease, box-shadow 0.22s ease, transform 0.18s ease;
}

.admin-help-trigger:hover {
  background: linear-gradient(180deg, rgba(21, 34, 62, 1) 0%, rgba(14, 24, 46, 1) 100%);
  border-color: rgba(59, 130, 246, 0.42);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 47, 168, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.admin-help-trigger:focus,
.admin-help-trigger:focus-visible {
  outline: none;
  border-color: rgba(96, 165, 250, 0.58);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.14);
}

.admin-help-trigger i {
  font-size: 0.92rem;
}

.admin-pda-note {
  color: var(--us-text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-pda-note i {
  color: #9ec5ff;
  font-size: 1rem;
  margin-top: 0.1rem;
}

.admin-overview-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.admin-step-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: 100%;
}

.admin-step-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  border: 1px solid var(--us-border);
  background: rgba(255, 255, 255, 0.03);
}

.admin-step-item strong {
  color: #fff;
  font-size: 0.9rem;
}

.admin-step-item span {
  color: var(--us-text-muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.admin-table {
  border-color: var(--us-border);
  margin-bottom: 0;
}

.admin-table th,
.admin-table td {
  border-color: var(--us-border);
  vertical-align: middle;
}

.admin-table thead th {
  color: var(--us-text-muted);
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(255, 255, 255, 0.03);
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.admin-table tbody tr {
  transition: background 0.16s ease, transform 0.16s ease;
}

.admin-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.admin-table tbody td {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.admin-table-shell {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.02);
}

.admin-row-title {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
}

.admin-row-meta {
  margin-top: 0.3rem;
}

.admin-row-order {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--us-text-muted);
  font-size: 0.72rem;
}

.admin-empty-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.72rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--us-text-muted);
  font-size: 0.76rem;
}

.admin-count-chip {
  min-width: 42px;
  min-height: 42px;
  padding: 0.35rem 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(0, 71, 204, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.18);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
}

.admin-count-chip--muted {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 84px;
  padding: 0.24rem 0.68rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  border: 1px solid transparent;
}

.status-pill--success {
  color: #34d399;
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.28);
}

.status-pill--draft {
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.28);
}

.status-pill--info {
  color: #60a5fa;
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.28);
}

.admin-actions {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.admin-table-actions {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.admin-table-actions form {
  margin: 0;
}

.admin-action-btn {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--us-text-muted);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--us-border);
  font-size: 0.82rem;
  transition: all 0.15s ease;
}

.btn-sinergisa--sm,
.btn-sinergisa-outline--sm {
  min-height: 38px;
  padding: 0.55rem 0.9rem;
  font-size: 0.82rem;
}

.admin-action-btn:hover {
  color: #fff;
  background: rgba(0, 47, 168, 0.2);
  border-color: var(--us-accent-1);
  text-decoration: none;
}

.admin-action-btn--danger:hover {
  color: var(--us-danger);
  background: rgba(239, 68, 68, 0.1);
  border-color: var(--us-danger);
}

.admin-action-btn--disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.admin-action-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.empty-state-panel {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.75rem;
  color: var(--us-text-muted);
}

.empty-state-panel i {
  font-size: 2.5rem;
  color: var(--us-accent-1);
}

.empty-state-panel h3 {
  color: #fff;
  font-size: 1.05rem;
  margin: 0;
}

.empty-state-panel p {
  max-width: 480px;
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.55;
}

.admin-stack-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.admin-stack-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  border: 1px solid var(--us-border);
  background: rgba(255, 255, 255, 0.03);
}

.admin-stack-item-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.admin-stack-item-title {
  color: #fff;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.35;
}

.admin-stack-item-subtitle {
  color: #d7ddf3;
  font-size: 0.84rem;
  line-height: 1.45;
}

.admin-stack-item-meta {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  color: var(--us-text-muted);
  font-size: 0.76rem;
}

.admin-flow-modal .modal-dialog {
  max-width: 620px;
}

.admin-flow-modal .modal-content {
  background: linear-gradient(180deg, rgba(26, 26, 46, 0.99) 0%, rgba(16, 16, 31, 0.99) 100%);
  border: 1px solid var(--us-border);
  border-radius: 20px;
  color: #fff;
}

.admin-flow-modal .modal-header {
  border-bottom: 1px solid var(--us-border);
  padding: 1.25rem 1.25rem 1rem;
  align-items: flex-start;
}

.admin-flow-modal .modal-body {
  padding: 1.25rem;
}

.admin-flow-modal-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0.85rem 0 0;
}

.admin-flow-modal-copy {
  color: var(--us-text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
  margin-bottom: 1.1rem;
}

.admin-dashboard-page .btn-sinergisa,
.admin-dashboard-page .btn-sinergisa-outline {
  border-radius: 10px;
}

.admin-dashboard-page .info-panel {
  border-radius: 12px;
}

.admin-dashboard-page .admin-header-eyebrow {
  border-radius: 10px;
}

.admin-dashboard-page .metric-chip {
  border-radius: 12px;
}

.admin-dashboard-page .admin-metric-icon {
  border-radius: 10px;
}

.admin-dashboard-page .admin-panel-badge {
  border-radius: 10px;
}

.admin-dashboard-page .admin-help-trigger {
  border-radius: 10px;
}

.admin-dashboard-page .admin-pda-note {
  border-radius: 10px;
}

.admin-dashboard-page .admin-flow-card-label {
  border-radius: 10px;
}

.admin-dashboard-page .admin-step-item {
  border-radius: 10px;
}

.admin-dashboard-page .admin-table-shell {
  border-radius: 12px;
}

.admin-dashboard-page .admin-row-order,
.admin-dashboard-page .admin-empty-chip,
.admin-dashboard-page .admin-count-chip,
.admin-dashboard-page .status-pill {
  border-radius: 10px;
}

.admin-dashboard-page .admin-flow-modal .modal-content {
  border-radius: 14px;
}

/* Hierarquia de conteúdo */
.admin-hierarchy-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem;
}

.admin-hierarchy-step {
  background: var(--us-surface-2);
  border: 1px solid var(--us-border);
  border-radius: 12px;
  padding: 1rem;
}

.admin-hierarchy-step-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.admin-hierarchy-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.8rem;
  height: 1.8rem;
  min-width: 1.8rem;
  background: var(--us-primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 50%;
}

.admin-hierarchy-title {
  font-weight: 600;
  color: var(--us-text);
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.admin-hierarchy-desc {
  font-size: 0.8rem;
  color: var(--us-text-muted);
  line-height: 1.4;
}

.admin-hierarchy-arrow {
  color: var(--us-text-muted);
  font-size: 1.1rem;
  text-align: center;
}

@media (max-width: 991.98px) {
  .admin-hierarchy-grid {
    grid-template-columns: 1fr 1fr;
  }
  .admin-hierarchy-arrow {
    display: none;
  }
}

@media (max-width: 1199.98px) {
  .learning-page {
    grid-template-columns: minmax(0, 1fr);
  }

  .learning-sidebar {
    position: static;
  }

  .learning-main-head,
  .learning-content-head,
  .learning-panel-section--spread {
    flex-direction: column;
  }

  .learning-stage--document iframe {
    min-height: 62vh;
  }

  .process-detail-hero-grid,
  .process-detail-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .process-detail-panel--sticky {
    position: static;
  }

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

  .admin-filter-grid,
  .admin-filter-grid--wide,
  .admin-filter-grid--xl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-page-header--flow {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-page-header--split {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-header-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 767.98px) {
  .learning-progress-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .learning-download-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .learning-download-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
  }

  .learning-stage--media,
  .learning-stage--document,
  .learning-stage--download,
  .learning-content-panel,
  .learning-progress-card {
    padding: 1rem;
  }

  .learning-panel-section {
    padding: 1rem 0;
  }

  .learning-title {
    font-size: 1.55rem;
  }

  .learning-nav-row,
  .learning-head-actions,
  .learning-stage-toolbar-actions,
  .learning-content-actions,
  .learning-download-actions,
  .learning-complete-action,
  .learning-inline-actions,
  .learning-download-actions--inline {
    width: 100%;
  }

  .learning-nav-row .btn-sinergisa,
  .learning-nav-row .btn-sinergisa-outline,
  .learning-head-actions .btn-sinergisa,
  .learning-head-actions .btn-sinergisa-outline,
  .learning-stage-toolbar-actions .btn-sinergisa,
  .learning-stage-toolbar-actions .btn-sinergisa-outline,
  .learning-content-actions .btn-sinergisa,
  .learning-content-actions .btn-sinergisa-outline,
  .learning-download-actions .btn-sinergisa,
  .learning-download-actions .btn-sinergisa-outline,
  .learning-complete-action .btn-sinergisa,
  .learning-complete-action .btn-sinergisa-outline,
  .learning-inline-actions .btn-sinergisa,
  .learning-inline-actions .btn-sinergisa-outline,
  .learning-download-actions--inline .btn-sinergisa,
  .learning-download-actions--inline .btn-sinergisa-outline {
    width: 100%;
    justify-content: center;
  }

  .learning-stage-toolbar {
    justify-content: stretch;
  }

  .process-detail-hero {
    min-height: auto;
  }

  .process-detail-hero-content {
    padding: 1.1rem;
  }

  .process-detail-hero-top {
    margin-bottom: 1.4rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .process-detail-title {
    max-width: none;
  }

  .process-detail-progress-card {
    padding: 1rem;
  }

  .process-detail-module-toggle {
    grid-template-columns: 40px minmax(0, 1fr) 24px;
    gap: 0.7rem;
    padding: 0.85rem;
  }

  .process-detail-module-index {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .process-detail-module-body {
    padding: 0 0.85rem 0.85rem;
  }

  .process-detail-content-item {
    padding: 0.72rem 0.75rem;
    grid-template-columns: 22px minmax(0, 1fr);
  }

  .process-detail-module-title,
  .process-detail-content-title {
    overflow-wrap: anywhere;
  }

  .admin-summary-grid,
  .admin-filter-grid,
  .admin-filter-grid--wide,
  .admin-filter-grid--xl {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-filter-actions {
    width: 100%;
  }

  .admin-filter-actions .btn-sinergisa,
  .admin-filter-actions .btn-sinergisa-outline {
    justify-content: center;
    width: 100%;
  }

  .metric-chip {
    min-height: unset;
  }

  .admin-header-actions,
  .admin-overview-actions {
    width: 100%;
  }

  .admin-table-actions {
    justify-content: flex-end;
  }

  .admin-header-actions .btn-sinergisa,
  .admin-header-actions .btn-sinergisa-outline,
  .admin-overview-actions .btn-sinergisa,
  .admin-overview-actions .btn-sinergisa-outline {
    width: 100%;
    justify-content: center;
  }

  .admin-stack-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-table-actions {
    width: 100%;
    justify-content: stretch;
  }

  .admin-table-actions .btn-sinergisa,
  .admin-table-actions .btn-sinergisa-outline {
    width: 100%;
    justify-content: center;
  }

  .admin-panel-title-row {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .admin-help-trigger {
    width: 100%;
    justify-content: center;
  }
}

/* ── Sidebar locked item & badge ──────────────────────────── */
.sidebar-link--locked {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  color: var(--us-text-muted);
  margin: 0.1rem 0.5rem;
  text-decoration: none;
}

.sidebar-badge-soon {
  margin-left: auto;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: var(--us-accent-soft);
  color: var(--us-accent-hover);
  border: 1px solid var(--us-accent-3);
  border-radius: 999px;
  padding: 2px 7px;
  white-space: nowrap;
}

/* ── PDA Cover Card Grid ───────────────────────────────────── */
.pda-cover-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
}

.pda-cover-card {
  display: flex;
  flex-direction: column;
  width: 220px;
  flex-shrink: 0;
  background: var(--us-card-bg);
  border: 1px solid var(--us-border);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none !important;
  color: var(--us-text) !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.pda-cover-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
  border-color: var(--us-accent-3);
}

.pda-cover-card__thumb {
  position: relative;
  width: 220px;
  height: 140px;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--us-card-bg-2);
}

.pda-cover-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.pda-cover-card:hover .pda-cover-card__img {
  transform: scale(1.04);
}

/* locked card */
.pda-cover-card--locked {
  cursor: default;
  opacity: 0.6;
  filter: grayscale(0.45);
}
.pda-cover-card--locked:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--us-border);
}
.pda-cover-card__scrim--heavy {
  background: rgba(4, 6, 13, 0.72) !important;
}
.pda-cover-card__lock-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.pda-cover-card__lock-icon {
  font-size: 1.8rem;
  color: rgba(255,255,255,0.55);
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.7));
}
.pda-cover-card__cta--locked {
  color: var(--us-text-muted) !important;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 500;
}

.pda-cover-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--us-accent-3);
  background: linear-gradient(135deg, var(--us-card-bg-2), var(--us-card-bg-3));
}

.pda-cover-card__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(4,6,13,0.6) 0%, transparent 55%);
  pointer-events: none;
}

.pda-cover-card__badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
}

.pda-cover-card__badge--done {
  background: rgba(16, 185, 129, 0.2);
  color: var(--us-success);
  border: 1px solid rgba(16, 185, 129, 0.45);
}

.pda-cover-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.7rem 0.8rem 0.65rem;
  flex: 1;
}

.pda-cover-card__sector {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--us-accent-hover) !important;
  text-decoration: none !important;
}

.pda-cover-card__title {
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
  color: var(--us-text) !important;
  text-decoration: none !important;
}

.pda-cover-card__desc {
  font-size: 0.72rem;
  color: var(--us-text-muted) !important;
  line-height: 1.45;
  margin: 0;
  text-decoration: none !important;
}

.pda-cover-card__meta {
  font-size: 0.7rem;
  color: var(--us-text-muted) !important;
  display: flex;
  gap: 0.5rem;
  text-decoration: none !important;
}

.pda-cover-card__meta i {
  margin-right: 2px;
}

.pda-cover-card__progress {
  margin-top: auto;
  padding-top: 0.4rem;
}

.pda-cover-card__pct {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--us-accent-hover) !important;
}

.pda-cover-card__courses-done {
  font-size: 0.65rem;
  color: var(--us-text-muted) !important;
}

.pda-cover-card__bar {
  height: 3px;
  border-radius: 999px;
  background: var(--us-card-bg-2);
}

.pda-cover-card__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--us-accent-hover) !important;
  padding-top: 0.45rem;
  border-top: 1px solid var(--us-border);
  margin-top: 0.35rem;
  text-decoration: none !important;
}

.pda-cover-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--us-text-muted);
  font-size: 0.9rem;
}

@media (max-width: 575px) {
  .pda-cover-card,
  .pda-cover-card__thumb {
    width: 100%;
  }
  .pda-cover-card__thumb {
    height: 160px;
  }
}

/* ── User Access PDA Checklist ─────────────────────────────── */
.user-access-pda-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.user-access-pda-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--us-border);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  user-select: none;
}

.user-access-pda-item:hover {
  background: var(--us-accent-soft);
  border-color: var(--us-accent-3);
}

.user-access-pda-item.is-checked {
  background: rgba(0, 71, 204, 0.14);
  border-color: rgba(88, 146, 255, 0.58);
}

.user-access-pda-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--us-accent-3);
  flex-shrink: 0;
}

.user-access-pda-item input[type="checkbox"]:checked ~ .user-access-check-icon {
  opacity: 1;
  color: var(--us-success);
}

.user-access-pda-label {
  flex: 1;
}

.user-access-pda-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--us-text);
}

.user-access-check-icon {
  font-size: 1rem;
  opacity: 0;
  transition: opacity 0.15s;
  color: var(--us-success);
}

/* New user page */
.user-create-page .admin-page-header {
  margin-bottom: 1.2rem;
}

.user-create-form {
  display: block;
}

.user-create-panel {
  background: linear-gradient(180deg, rgba(10, 22, 48, 0.86) 0%, rgba(8, 17, 34, 0.94) 100%);
  border-color: rgba(73, 133, 252, 0.2);
}

.user-create-panel-head {
  margin-bottom: 1rem;
}

.user-create-panel-head .section-subtitle {
  max-width: 58ch;
}

.user-create-input {
  min-height: 42px;
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: var(--us-border) !important;
  color: #f1f6ff !important;
  color-scheme: dark;
}

.user-create-input::placeholder {
  color: #8ea0bf;
}

.user-create-input option {
  background: #f4f7ff;
  color: #0b1730;
}

.user-create-input option:checked {
  background: #9ec5ff;
  color: #04112a;
}

.user-create-input:focus {
  border-color: rgba(92, 150, 255, 0.85) !important;
  box-shadow: 0 0 0 0.2rem rgba(0, 71, 204, 0.18) !important;
}

.user-create-hint {
  color: var(--us-text-muted);
  font-size: 0.76rem;
  margin-top: 0.4rem;
}

.user-create-pda-list {
  gap: 0.65rem;
  max-height: 360px;
  overflow: auto;
  padding-right: 0.25rem;
}

.user-create-pda-item {
  background: rgba(255, 255, 255, 0.02);
}

.user-create-actions {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--us-border);
}

@media (max-width: 991.98px) {
  .user-create-pda-list {
    max-height: none;
  }
}

/* Access edit page */
.access-edit-page .admin-page-header {
  margin-bottom: 1.2rem;
}

.access-user-card {
  background: linear-gradient(170deg, rgba(14, 32, 70, 0.9) 0%, rgba(8, 18, 38, 0.95) 100%);
  border-color: rgba(80, 140, 255, 0.22);
}

.access-user-card-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.access-user-avatar,
.access-user-avatar-image {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  flex-shrink: 0;
}

.access-user-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(140deg, var(--us-accent-1), #4b9dff);
  border: 1px solid rgba(158, 195, 255, 0.45);
}

.access-user-avatar-image {
  object-fit: cover;
  border: 1px solid rgba(158, 195, 255, 0.45);
}

.access-user-head-copy {
  min-width: 0;
}

.access-user-head-copy h2 {
  margin: 0;
  font-size: 1.28rem;
  color: #fff;
}

.access-user-username {
  font-size: 0.78rem;
  color: var(--us-text-muted);
  margin-top: 0.2rem;
}

.access-user-badges {
  margin-top: 0.55rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.access-user-sector {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.18rem 0.6rem;
  font-size: 0.74rem;
  color: #cbdaf7;
}

.access-user-meta {
  display: grid;
  gap: 0.75rem;
}

.access-user-meta-item {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 0.72rem 0.8rem;
}

.access-user-meta-label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #8fa2c5;
  margin-bottom: 0.2rem;
}

.access-user-meta-item strong {
  display: block;
  font-size: 0.92rem;
  color: #fff;
  line-height: 1.35;
  word-break: break-word;
}

.access-user-note {
  margin-top: 0.9rem;
}

.access-edit-panel {
  background: linear-gradient(180deg, rgba(10, 24, 52, 0.9) 0%, rgba(7, 17, 34, 0.95) 100%);
  border-color: rgba(80, 140, 255, 0.22);
}

.access-edit-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.access-edit-counts {
  min-width: 102px;
  text-align: center;
  border: 1px solid rgba(110, 165, 255, 0.35);
  background: rgba(0, 71, 204, 0.14);
  border-radius: 12px;
  padding: 0.45rem 0.7rem;
}

.access-edit-counts span {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.access-edit-counts small {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.68rem;
  color: #c7d6f2;
}

.access-edit-pda-list {
  gap: 0.65rem;
}

.access-edit-pda-item {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 11px;
  min-height: 54px;
}

.access-edit-pda-item:hover {
  transform: translateY(-1px);
}

.access-edit-actions {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--us-border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.access-remove-btn {
  border-color: var(--us-danger);
  color: #ff6e7f;
}

.access-remove-btn:hover {
  background: rgba(239, 68, 68, 0.13);
  border-color: #ff5a6f;
  color: #ff8895;
}

@media (max-width: 991.98px) {
  .access-edit-head {
    flex-direction: column;
    align-items: stretch;
  }

  .access-edit-counts {
    width: 100%;
  }
}

/* Profile pages */
.profile-page {
  display: block;
}

.profile-card {
  position: relative;
  background: linear-gradient(160deg, rgba(0, 28, 80, 0.78), rgba(6, 12, 24, 0.94));
  border: 1px solid rgba(67, 133, 255, 0.28);
  border-radius: 16px;
  overflow: hidden;
  height: 100%;
}

.profile-card-glow {
  position: absolute;
  inset: -35% auto auto -20%;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(70, 134, 255, 0.35), rgba(70, 134, 255, 0));
  pointer-events: none;
}

.profile-card-body {
  position: relative;
  z-index: 1;
  padding: 1.65rem;
}

.profile-avatar,
.profile-avatar-image {
  width: 112px;
  height: 112px;
  border-radius: 50%;
}

.profile-avatar {
  background: linear-gradient(135deg, var(--us-accent-1), var(--us-accent-3));
  border: 3px solid rgba(150, 188, 255, 0.4);
  color: #fff;
  font-size: 2.2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-avatar-image {
  object-fit: cover;
  border: 3px solid rgba(150, 188, 255, 0.4);
}

.profile-name {
  margin: 1rem 0 0.1rem;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1.2;
  font-weight: 800;
}

.profile-username {
  color: var(--us-text-muted);
  font-size: 0.88rem;
  margin-bottom: 1rem;
}

.profile-role-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.profile-sector {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid var(--us-border);
  border-radius: 999px;
  padding: 0.22rem 0.65rem;
  color: var(--us-text-muted);
  font-size: 0.76rem;
}

.profile-meta {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.profile-meta > div {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.83rem;
  color: #d6e4ff;
}

.profile-meta > div i {
  color: var(--us-accent-hover);
}

.profile-bio {
  color: var(--us-text-muted);
  font-size: 0.86rem;
  line-height: 1.6;
  margin-bottom: 1.05rem;
}

.profile-edit-btn {
  width: 100%;
  justify-content: center;
}

.profile-cert-panel {
  min-height: 100%;
}

.profile-cert-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.profile-cert-count {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--us-border);
  padding: 0.22rem 0.7rem;
  font-size: 0.75rem;
  color: #cad9f5;
  white-space: nowrap;
}

.profile-cert-grid {
  display: grid;
  gap: 0.65rem;
}

.profile-cert-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  border: 1px solid var(--us-border);
  border-radius: 10px;
  background: rgba(10, 18, 36, 0.78);
  padding: 0.8rem 0.9rem;
  text-decoration: none;
  color: var(--us-text);
  transition: border-color 0.18s, background 0.18s, transform 0.18s;
}

.profile-cert-item:hover {
  border-color: rgba(73, 133, 252, 0.65);
  background: rgba(8, 24, 54, 0.88);
  color: #fff;
  transform: translateY(-1px);
}

.profile-cert-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(66, 132, 255, 0.2);
  color: #9ac0ff;
  flex-shrink: 0;
}

.profile-cert-copy {
  flex: 1;
  min-width: 0;
}

.profile-cert-copy strong {
  display: block;
  color: #fff;
  font-size: 0.9rem;
  line-height: 1.3;
}

.profile-cert-copy span {
  display: block;
  color: var(--us-text-muted);
  font-size: 0.76rem;
}

.profile-empty {
  border: 1px dashed var(--us-border);
  border-radius: 12px;
  padding: 1.5rem 1rem;
  text-align: center;
  color: var(--us-text-muted);
}

.profile-empty i {
  font-size: 1.4rem;
  color: #8fb9ff;
  margin-bottom: 0.5rem;
}

.profile-empty p {
  margin: 0;
}

.profile-edit-page {
  display: block;
}

.profile-edit-card {
  padding: 1.4rem;
}

.profile-edit-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
  margin-bottom: 1.05rem;
}

.profile-edit-form .form-control {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--us-border);
  color: var(--us-text);
}

.profile-edit-form .form-control:focus {
  border-color: var(--us-accent-1);
  box-shadow: 0 0 0 0.2rem rgba(0, 71, 204, 0.2);
}

.profile-edit-actions {
  margin-top: 1.15rem;
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

@media (max-width: 991.98px) {
  .profile-name {
    font-size: 1.32rem;
  }

  .profile-edit-head {
    flex-direction: column;
    align-items: stretch;
  }

  .profile-edit-head .btn-sinergisa-outline {
    justify-content: center;
  }
}

/* ── Responsividade global adicional ───────────────────────── */

/* Topbar: ocultar busca em telas muito pequenas */
@media (max-width: 480px) {
  .topbar-search { display: none; }
  .topbar { padding: 0.5rem 0.75rem; gap: 0.5rem; }
  .content-area { padding: 0.75rem; }
}

/* Tabelas: scroll horizontal em mobile */
.table-responsive-always {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  min-width: 100%;
}

@media (max-width: 767.98px) {
  .table-wrapper,
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Títulos de página menores */
  h1 { font-size: 1.4rem; }
  h2 { font-size: 1.2rem; }

  /* Espaçamento de cards em mobile */
  .content-area .row { --bs-gutter-x: 0.75rem; }
}

/* Garantir que imagens não estourem o container */
img { max-width: 100%; height: auto; }

/* Admin panels em mobile */
@media (max-width: 991.98px) {
  .admin-panel-header {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  .admin-panel-header .btn,
  .admin-panel-header a {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

/* Botões de ação em mobile */
@media (max-width: 575.98px) {
  .btn-group-mobile-stack {
    flex-direction: column;
    width: 100%;
  }
  .btn-group-mobile-stack .btn { width: 100%; }
}
