@charset "UTF-8";
/* ================================================================
   Per-page component styles — extracted from HTML <style> blocks
   ================================================================ */
/* ── Analytics (analytics.html) ── */
.prog-bar-wrap {
  height: 5px;
  background: var(--body-border);
  border-radius: 999px;
  overflow: hidden;
}

.prog-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.6s ease;
}

.modal-content {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
}

.modal-header, .modal-footer {
  border-color: var(--body-border);
}

/* stat-delta */
.stat-delta {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  margin-top: 0.75rem;
}

.delta-up {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
}

.delta-down {
  background: rgba(239, 68, 68, 0.1);
  color: #DC2626;
}

/* chart containers */
.chart-box {
  display: flex;
  gap: 0.375rem;
  height: 160px;
  align-items: flex-end;
}

.chart-eng {
  position: relative;
  height: 160px;
}

/* ── Announcements (announcements.html) ── */
.ann-tab {
  padding: 0.45rem 0.875rem;
  border-radius: 0.375rem;
  border: none;
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s;
  background: transparent;
  color: var(--body-text-muted);
}

.ann-tab.active {
  background: #5B8FF9;
  color: #fff;
}

.ann-tab:hover:not(.active) {
  background: rgba(91, 143, 249, 0.1);
  color: #5B8FF9;
}

.ann-card {
  border: 1.5px solid var(--card-border) !important;
}

.ann-input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  border: 1.5px solid var(--body-border);
  background: var(--card-bg);
  color: var(--body-text);
  font-size: 0.85rem;
  outline: none;
  font-family: var(--font);
}

.ann-input:focus {
  border-color: #5B8FF9;
  box-shadow: 0 0 0 3px rgba(91, 143, 249, 0.15);
}

.tr-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

#enrollOverlay.d-none,
#quizOverlay.d-none,
#certOverlay.d-none,
#addCourseOverlay.d-none,
#viewModalOverlay.d-none,
#newModalOverlay.d-none {
  display: none;
}

.tr-modal {
  background: var(--card-bg);
  border-radius: 1.25rem;
  width: 100%;
  overflow: hidden;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.ann-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

/* ── Blog Detail (blog-detail.html) ── */
/* ── Blog shared styles ─────────────────────────────── */
.blog-card {
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.blog-card-list {
  cursor: pointer;
  transition: transform 0.2s;
  overflow: hidden;
}

.blog-card-list:hover {
  transform: translateX(4px);
}

/* ── blog-grid (blog-grid.html) ── */
/* ── Blog shared styles ─────────────────────────────── */
.blog-card {
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.blog-card-list {
  cursor: pointer;
  transition: transform 0.2s;
  overflow: hidden;
}

.blog-card-list:hover {
  transform: translateX(4px);
}

/* ── blog-list (blog-list.html) ── */
/* ── Blog shared styles ─────────────────────────────── */
.blog-card {
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.blog-card-list {
  cursor: pointer;
  transition: transform 0.2s;
  overflow: hidden;
}

.blog-card-list:hover {
  transform: translateX(4px);
}

/* ── bootstrap-icons (bootstrap-icons.html) ── */
.ic-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  padding: 0.75rem 0.5rem;
  border-radius: 0.625rem;
  border: 1.5px solid var(--body-border);
  background: var(--card-bg);
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.ic-card.copied {
  border-color: #10B981 !important;
  background: rgba(16, 185, 129, 0.06) !important;
}

.ic-name {
  font-size: 0.62rem;
  color: var(--body-text-muted);
  text-align: center;
  line-height: 1.3;
  word-break: break-all;
  max-width: 100%;
}

.cat-pill {
  padding: 0.35rem 0.75rem;
  border-radius: 0.4rem;
  border: 1.5px solid var(--body-border);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  background: transparent;
  color: var(--body-text-muted);
  transition: all 0.15s;
  font-family: var(--font);
}

.copy-toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  padding: 0.625rem 1.25rem;
  border-radius: 0.625rem;
  background: #10B981;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}

.copy-toast.hidden {
  opacity: 0;
  transform: translateY(8px);
}

/* ── Calendar (calendar.html) ── */
/* ══ Layout ═══════════════════════════════════════════════════════ */
.cal-layout {
  display: grid;
  grid-template-columns: 1fr 288px;
  gap: 1.25rem;
  align-items: start;
}

@media (max-width: 1100px) {
  .cal-layout {
    grid-template-columns: 1fr;
  }
  .cal-right {
    display: none;
  }
}
.cal-right {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ══ Nav month button ═════════════════════════════════════════════ */
.nav-month-btn {
  width: 34px;
  height: 34px;
  border: 1.5px solid var(--body-border);
  border-radius: 0.5rem;
  background: var(--card-bg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--body-text-muted);
  transition: all 0.15s;
}

.nav-month-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-primary-light);
}

/* ══ View toggle ══════════════════════════════════════════════════ */
.view-toggle {
  display: inline-flex;
  border: 1.5px solid var(--body-border);
  border-radius: 0.5rem;
  overflow: hidden;
  background: var(--card-bg);
}

.view-btn {
  padding: 0.4rem 0.875rem;
  border: none;
  border-right: 1px solid var(--body-border);
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  font-family: var(--font);
  color: var(--body-text-muted);
  background: transparent;
}

.view-btn:last-child {
  border-right: none;
}

.view-btn.active {
  background: #5B8FF9;
  color: #fff;
}

.view-btn:hover:not(.active) {
  background: rgba(91, 143, 249, 0.07);
  color: var(--color-primary);
}

/* ══ Month grid ═══════════════════════════════════════════════════ */
.cal-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.cal-cell {
  min-height: 80px;
  padding: 0.5rem;
  cursor: pointer;
  transition: background 0.15s;
  overflow: hidden;
}

.cal-cell.empty {
  cursor: default;
  background: var(--body-bg) !important;
  opacity: 0.35;
}

.cal-cell:not(.empty):hover {
  background: rgba(91, 143, 249, 0.04) !important;
}

.day-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.25rem;
  font-size: 0.82rem;
  font-weight: 700;
  transition: background 0.2s;
}

.ev-pill {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.1rem 0.4rem;
  border-radius: 0.25rem;
  margin-bottom: 0.15rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  transition: opacity 0.15s;
}

.ev-pill:hover {
  opacity: 0.8;
}

.more-pill {
  font-size: 0.65rem;
  color: var(--body-text-muted);
  font-weight: 600;
  padding: 0.1rem 0.2rem;
}

/* ══ Week view ════════════════════════════════════════════════════ */
.week-grid {
  display: grid;
  grid-template-columns: 60px repeat(7, 1fr);
  overflow-x: auto;
}

.week-hdr {
  display: grid;
  grid-template-columns: 60px repeat(7, 1fr);
  border-bottom: 1.5px solid var(--body-border);
}

.week-time-lbl {
  height: 56px;
  border-bottom: 1px solid var(--body-border);
  padding: 0.25rem 0.5rem;
  font-size: 0.68rem;
  color: var(--body-text-muted);
  font-weight: 600;
}

/* ══ Agenda ═══════════════════════════════════════════════════════ */
.agenda-ev {
  transition: box-shadow 0.15s, transform 0.15s;
}

.agenda-ev:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

/* ══ Selected day panel ═══════════════════════════════════════════ */
.sel-day-wrap {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  padding: 1.25rem;
  margin-top: 1rem;
  box-shadow: var(--card-shadow);
}

/* ══ Right panel: upcoming ════════════════════════════════════════ */
.upcoming-ev {
  transition: box-shadow 0.12s, transform 0.12s;
}

.upcoming-ev:hover {
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

/* ══ Right panel: mini calendar ═══════════════════════════════════ */
.mini-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.mini-day {
  border-radius: 0.35rem;
  transition: background 0.12s;
}

.mini-day:hover {
  background: var(--color-primary-light) !important;
}

/* ══ Modals ═══════════════════════════════════════════════════════ */
.modal-backdrop-custom {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(2px);
}

#evOverlay.d-none,
#newEvOverlay.d-none {
  display: none;
}

.ev-modal {
  background: var(--card-bg);
  border-radius: 1rem;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.22);
  overflow: hidden;
  animation: modalIn 0.2s ease;
}

.new-ev-modal {
  background: var(--card-bg);
  border-radius: 1rem;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.22);
  overflow: hidden;
  animation: modalIn 0.2s ease;
}

@keyframes modalIn {
  from {
    transform: scale(0.95) translateY(8px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}
.hr-inp {
  width: 100%;
  padding: 0.6rem 0.875rem;
  border-radius: 0.5rem;
  border: 1.5px solid var(--body-border);
  background: var(--card-bg);
  color: var(--body-text);
  font-size: 0.875rem;
  outline: none;
  box-sizing: border-box;
  font-family: var(--font);
  transition: border-color 0.15s;
}

.hr-inp:focus {
  border-color: #5B8FF9;
  box-shadow: 0 0 0 3px rgba(91, 143, 249, 0.14);
}

.form-lbl {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--body-text-muted);
  display: block;
  margin-bottom: 0.375rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.spinner-sm {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
}

/* ══ Legend dots ══════════════════════════════════════════════════ */
.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

/* ── Card Designs (card-designs.html) ── */
/* ── Card base overrides & custom variants ─────────────────── */
.demo-card {
  border-radius: var(--card-radius);
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: transform 0.18s, box-shadow 0.18s;
}

.demo-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

/* ── Stat card ─────────────────────────────────────────────── */
.stat-mini {
  padding: 1.25rem;
  border-radius: var(--card-radius);
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  box-shadow: var(--card-shadow);
}

.stat-mini .icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  margin-bottom: 0.875rem;
}

.stat-mini .val {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--body-text);
  line-height: 1;
}

.stat-mini .lbl {
  font-size: 0.8125rem;
  color: var(--body-text-muted);
  margin-top: 0.25rem;
}

.stat-mini .delta {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 0.5rem;
}

.delta-up {
  color: #10B981;
}

.delta-dn {
  color: #EF4444;
}

/* ── Profile card ──────────────────────────────────────────── */
.profile-card {
  padding: 1.5rem;
  text-align: center;
}

.profile-card .avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: 0 auto 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.375rem;
  font-weight: 800;
}

.profile-card .name {
  font-weight: 800;
  font-size: 1.0625rem;
  color: var(--body-text);
}

.profile-card .role {
  font-size: 0.8125rem;
  color: var(--body-text-muted);
  margin-top: 0.2rem;
}

.profile-card .divider {
  height: 1px;
  background: var(--body-border);
  margin: 1rem 0;
}

.profile-card .stat-row {
  display: flex;
  justify-content: space-around;
}

.profile-card .stat-item .val {
  font-weight: 800;
  font-size: 1.125rem;
  color: var(--body-text);
}

.profile-card .stat-item .key {
  font-size: 0.72rem;
  color: var(--body-text-muted);
  margin-top: 0.125rem;
}

/* ── Gradient card ─────────────────────────────────────────── */
.grad-card {
  border-radius: var(--card-radius);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  color: #fff;
  transition: transform 0.18s, box-shadow 0.18s;
}

.grad-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.grad-card .orb {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.grad-card .title {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 0.375rem;
}

.grad-card .sub {
  font-size: 0.8125rem;
  opacity: 0.75;
  margin-bottom: 1.25rem;
}

.grad-card .big-num {
  font-size: 2.25rem;
  font-weight: 900;
  line-height: 1;
}

.grad-card .caption {
  font-size: 0.75rem;
  opacity: 0.65;
  margin-top: 0.25rem;
}

/* ── Task card ─────────────────────────────────────────────── */
.task-card {
  padding: 1.125rem;
  border-radius: var(--card-radius);
  border: 1px solid var(--body-border);
  background: var(--card-bg);
  transition: all 0.18s;
  cursor: pointer;
}

.task-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 4px 16px rgba(91, 143, 249, 0.15);
  transform: translateY(-2px);
}

/* ── Notification card ─────────────────────────────────────── */
.notif-card {
  padding: 1rem 1.25rem;
  border-radius: 0.875rem;
  border: 1px solid var(--body-border);
  background: var(--card-bg);
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  transition: background 0.15s;
  cursor: pointer;
}

.notif-card:hover {
  background: var(--body-bg);
}

.notif-card.unread {
  border-left: 3px solid var(--color-primary);
}

/* ── Timeline card ─────────────────────────────────────────── */
.timeline-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding-bottom: 1.25rem;
  position: relative;
}

.timeline-item:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 36px;
  width: 2px;
  height: calc(100% - 12px);
  background: var(--body-border);
}

.timeline-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.8rem;
}

/* ── Progress card ─────────────────────────────────────────── */
.prog-card {
  padding: 1.125rem;
  border-radius: var(--card-radius);
  border: 1px solid var(--body-border);
  background: var(--card-bg);
}

.prog-track {
  height: 8px;
  background: var(--body-border);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 0.5rem;
}

.prog-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Pricing card ──────────────────────────────────────────── */
.price-card {
  border-radius: var(--card-radius);
  border: 1.5px solid var(--body-border);
  background: var(--card-bg);
  padding: 1.75rem 1.5rem;
  transition: all 0.2s;
}

.price-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 8px 32px rgba(91, 143, 249, 0.15);
}

.price-card.featured {
  border-color: var(--color-primary);
  background: linear-gradient(135deg, rgba(91, 143, 249, 0.04) 0%, rgba(124, 58, 237, 0.04) 100%);
}

/* ── Flip card ─────────────────────────────────────────────── */
.flip-wrapper {
  perspective: 1000px;
  height: 200px;
}

.flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.flip-wrapper:hover .flip-inner {
  transform: rotateY(180deg);
}

.flip-front, .flip-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--card-radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
}

.flip-back {
  transform: rotateY(180deg);
}

/* ── Glass card ────────────────────────────────────────────── */
.glass-wrap {
  border-radius: var(--card-radius);
  padding: 1.5rem;
  background: linear-gradient(135deg, #1a1c3a 0%, #13142B 100%);
  position: relative;
  overflow: hidden;
}

.glass-card {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.875rem;
  padding: 1.25rem;
  color: #fff;
  position: relative;
  z-index: 1;
}

/* ── Activity feed card ────────────────────────────────────── */
.feed-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--body-border);
}

.feed-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* ── Rating card ───────────────────────────────────────────── */
.star {
  color: #F59E0B;
  font-size: 0.875rem;
}

.star.empty {
  color: var(--body-border);
}

/* ── Hover reveal card ─────────────────────────────────────── */
.hover-reveal {
  position: relative;
  border-radius: var(--card-radius);
  overflow: hidden;
  border: 1px solid var(--body-border);
}

.hover-reveal .overlay {
  position: absolute;
  inset: 0;
  background: rgba(79, 110, 247, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: #fff;
  padding: 1.5rem;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.25s ease;
}

.hover-reveal:hover .overlay {
  opacity: 1;
  transform: translateY(0);
}

/* ── Bordered top accent ───────────────────────────────────── */
.accent-top {
  border-top: 4px solid transparent;
  border-radius: var(--card-radius);
  padding: 1.25rem;
  border-left: 1px solid var(--body-border);
  border-right: 1px solid var(--body-border);
  border-bottom: 1px solid var(--body-border);
  background: var(--card-bg);
}

/* ── Section label ─────────────────────────────────────────── */
.section-lbl {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--body-text-muted);
  margin: 2rem 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-lbl::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--body-border);
}

/* ── Chart Libraries (chart-libs.html) ── */
/* ── Chart bars hover ──────────────────── */
.chart-bar {
  cursor: pointer;
  transition: opacity 0.15s;
}

.chart-bar:hover {
  opacity: 0.75;
}

/* ── Gauge Widget ──────────────────────── */
.gauge-widget {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.25rem 0.75rem;
  border-radius: 0.875rem;
  border: 1.5px solid var(--body-border);
  background: var(--card-bg);
  cursor: pointer;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}

.gauge-widget:hover {
  border-color: var(--gauge-color, #5B8FF9);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.gauge-widget.selected {
  border-color: var(--gauge-color, #5B8FF9);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--gauge-color, #5B8FF9) 20%, transparent);
}

.gauge-label-main {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--body-text);
  text-align: center;
}

.gauge-sub {
  font-size: 0.68rem;
  color: var(--body-text-muted);
  text-align: center;
}

/* ── Main gauge display ─────────────────── */
.gauge-main-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.gauge-needle {
  position: absolute;
  bottom: 8%;
  left: 50%;
  transform-origin: bottom center;
  width: 3px;
  height: 44%;
  background: var(--body-text);
  border-radius: 2px 2px 0 0;
  margin-left: -1.5px;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.gauge-needle::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--body-text);
}

.gauge-value-display {
  position: absolute;
  text-align: center;
}

.gauge-pct {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}

.gauge-pct-label {
  font-size: 0.7rem;
  color: var(--body-text-muted);
  font-weight: 600;
}

/* ── Trend indicator ──────────────────── */
.trend-up {
  color: #10B981;
}

.trend-down {
  color: #EF4444;
}

/* ── Tooltip ───────────────────────────── */
.chart-tooltip {
  position: fixed;
  z-index: 9999;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 0.5rem;
  padding: 0.5rem 0.875rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--body-text);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  pointer-events: none;
  transition: opacity 0.15s;
  opacity: 0;
}

.chart-tooltip.visible {
  opacity: 1;
}

/* ── Chat (chat.html) ── */
/* ── Chat layout — exact React ─────────────────────────────────── */
.chat-wrap {
  display: flex;
  height: calc(100vh - 220px);
  min-height: 500px;
  overflow: hidden;
}

/* Left sidebar */
.chat-sidebar {
  width: 240px;
  flex-shrink: 0;
  border-right: 1px solid var(--body-border);
  display: flex;
  flex-direction: column;
  background: var(--body-bg);
}

.ch-section-label {
  padding: 0.5rem 0.75rem 0.25rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--body-text-muted);
}

.ch-item, .dm-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 0.5rem;
  margin: 0 0 0.125rem;
  font-family: var(--font);
  transition: background 0.15s;
  color: var(--body-text);
}

.ch-item:hover, .dm-item:hover {
  background: rgba(79, 110, 247, 0.05);
}

.ch-item.active, .dm-item.active {
  background: var(--color-primary-light);
}

.ch-item.active .ch-label, .ch-item.active i, .dm-item.active .dm-name {
  color: var(--color-primary);
  font-weight: 700;
}

.ch-label, .dm-name {
  flex: 1;
  font-size: 0.8125rem;
  font-weight: 500;
  text-align: left;
  color: var(--body-text);
}

.ch-item i {
  color: var(--body-text-muted);
  font-size: 0.875rem;
}

.ch-item.active i {
  color: var(--color-primary);
}

.online-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid var(--body-bg);
}

/* Message pane */
.chat-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.chat-header {
  height: 56px;
  border-bottom: 1px solid var(--body-border);
  display: flex;
  align-items: center;
  padding: 0 1.25rem;
  gap: 0.75rem;
  flex-shrink: 0;
}

.msgs-pane {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.chat-input-area {
  padding: 0.75rem 1.25rem;
  border-top: 1px solid var(--body-border);
  flex-shrink: 0;
}

.chat-input-wrap {
  display: flex;
  gap: 0.5rem;
  align-items: flex-end;
  background: var(--body-bg);
  border-radius: 0.875rem;
  border: 1.5px solid var(--body-border);
  padding: 0.5rem 0.625rem;
  transition: border-color 0.15s;
}

.chat-input-wrap:focus-within {
  border-color: var(--color-primary);
}

.chat-input-wrap input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-size: 0.875rem;
  color: var(--body-text);
  font-family: var(--font);
  padding: 0.25rem 0;
}

.send-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--body-border);
  border: none;
  color: var(--body-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
  transition: all 0.15s;
  flex-shrink: 0;
}

.send-btn.active {
  background: var(--color-primary);
  color: white;
  cursor: pointer;
}

/* modal */
.modal-content {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
}

.modal-header, .modal-footer {
  border-color: var(--body-border);
}

/* ── Email (email.html) ── */
/* ── Email 3-panel layout ─────────────────────────────────────────── */
.email-wrap {
  display: flex;
  height: calc(100vh - 210px);
  min-height: 560px;
  overflow: hidden;
  border-radius: var(--card-radius);
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  box-shadow: var(--card-shadow);
}

/* ── Left sidebar: folders + labels (200px) ──────────────────────── */
.email-sidebar {
  width: 200px;
  flex-shrink: 0;
  border-right: 1px solid var(--body-border);
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  background: var(--body-bg);
  overflow-y: auto;
}

/* ── Middle panel: email list (320px) ────────────────────────────── */
.email-list-panel {
  width: 320px;
  flex-shrink: 0;
  border-right: 1px solid var(--body-border);
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
}

/* ── Right panel: read/compose/empty ─────────────────────────────── */
.email-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow-y: auto;
}

/* ── Folder button ───────────────────────────────────────────────── */
.folder-btn {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  width: 100%;
  padding: 0.5rem 0.625rem;
  border: none;
  background: transparent;
  border-radius: 0.5rem;
  cursor: pointer;
  font-family: var(--font);
  transition: background 0.15s;
}

.folder-btn:hover {
  background: rgba(79, 110, 247, 0.06);
}

.folder-btn.active {
  background: var(--color-primary-light) !important;
}

.folder-btn.active .folder-icon {
  color: var(--color-primary) !important;
}

.folder-btn.active .folder-label {
  font-weight: 700 !important;
  color: var(--color-primary) !important;
}

/* ── Email list row ──────────────────────────────────────────────── */
.email-row {
  transition: background 0.15s;
}

.email-row:hover {
  background: var(--body-bg) !important;
}

.email-row.selected {
  background: var(--color-primary-light) !important;
}

/* ── Compose field row ───────────────────────────────────────────── */
.compose-field {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--body-border);
  padding: 0.625rem 1.5rem;
  gap: 0.75rem;
}

.compose-label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--body-text-muted);
  flex-shrink: 0;
}

.compose-input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.875rem;
  color: var(--body-text);
  font-family: var(--font);
}

/* ── Formatting toolbar button ───────────────────────────────────── */
.fmt-btn {
  background: none;
  border: none;
  color: var(--body-text-muted);
  cursor: pointer;
  padding: 0.375rem 0.45rem;
  border-radius: 0.375rem;
  font-size: 0.9rem;
  transition: all 0.15s;
}

.fmt-btn:hover {
  background: var(--body-bg);
  color: var(--body-text);
}

/* ── Attachment pill ─────────────────────────────────────────────── */
.att-pill {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 0.875rem;
  background: var(--body-bg);
  border-radius: 0.625rem;
  border: 1px solid var(--body-border);
  cursor: pointer;
  transition: border-color 0.15s;
}

.att-pill:hover {
  border-color: var(--color-primary);
}

/* ── Full-screen compose overlay ─────────────────────────────────── */
.compose-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 8000;
  background: var(--card-bg);
  display: flex;
  flex-direction: column;
}

.compose-fullscreen .compose-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Label dot buttons ────────────────────────────────────────────── */
.label-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.375rem 0.625rem;
  border: none;
  background: transparent;
  border-radius: 0.5rem;
  cursor: pointer;
  font-family: var(--font);
  transition: background 0.15s;
}

.label-btn:hover {
  background: rgba(79, 110, 247, 0.06);
}

/* ── Quick reply box ─────────────────────────────────────────────── */
.quick-reply-box {
  margin-top: 1.5rem;
  border: 1px solid var(--body-border);
  border-radius: 1rem;
  overflow: hidden;
}

.quick-reply-header {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--body-border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--body-bg);
}

/* ── Files (files.html) ── */
/* ── File Manager specific ─────────────────────────────────── */
.fm-filter-btn {
  font-family: var(--font);
  transition: all 0.15s;
}

.fm-filter-btn:hover {
  border-color: #5B8FF9 !important;
  color: #5B8FF9 !important;
}

.fm-view-btn {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.4rem;
  border: 1.5px solid;
  cursor: pointer;
  transition: all 0.15s;
  font-family: var(--font);
}

.fm-view-btn.active {
  border-color: #5B8FF9;
  background: rgba(91, 143, 249, 0.1);
  color: #5B8FF9;
}

.fm-view-btn.inactive {
  border-color: var(--body-border);
  background: transparent;
  color: var(--body-text-muted);
}

.fm-view-btn:hover {
  border-color: #5B8FF9;
  color: #5B8FF9;
}

/* LIST table ─────────────────────────────────────────────── */
#fileListTable {
  width: 100%;
  border-collapse: collapse;
}

#fileListTable thead tr {
  border-bottom: 1.5px solid var(--body-border);
}

#fileListTable thead th {
  padding: 0.625rem 1.25rem;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--body-text-muted);
  white-space: nowrap;
}

.fm-action-btn {
  transition: background 0.15s;
}

.fm-action-btn:hover {
  background: var(--body-bg) !important;
}

/* GRID cards ────────────────────────────────────────────── */
.fm-grid-card {
  transition: border-color 0.2s;
}

.fm-grid-card:hover {
  border-color: #5B8FF9 !important;
}

/* Folder hover ──────────────────────────────────────────── */
.fm-folder {
  transition: transform 0.2s, box-shadow 0.2s;
}

/* Modal overlay ─────────────────────────────────────────── */
.fm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
}

#newFileOverlay.d-none {
  display: none;
}

.fm-modal {
  background: var(--card-bg);
  border-radius: 1.25rem;
  padding: 2rem;
  width: 100%;
  max-width: 440px;
  border: 1.5px solid var(--body-border);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.25);
}

/* File type button in modal ─────────────────────────────── */
.fm-type-btn {
  padding: 0.875rem 0.5rem;
  border-radius: 0.625rem;
  border: 2px solid var(--body-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  cursor: pointer;
  background: transparent;
  transition: all 0.15s;
  font-family: var(--font);
}

.fm-type-btn.active { /* set dynamically via JS */ }

.fm-type-btn:hover {
  opacity: 0.9;
}

/* Empty state ───────────────────────────────────────────── */
.fm-empty {
  padding: 3rem;
  text-align: center;
  color: var(--body-text-muted);
  display: none;
}

.fm-empty i {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
  opacity: 0.35;
}

.fm-empty p {
  font-weight: 700;
  margin: 0;
}

/* Starred stat updates ─────────────────────────────────── */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
}
.star-pulse {
  animation: pulse 0.25s ease;
}

/* ── flaticon-icons (flaticon-icons.html) ── */
.ic-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  padding: 0.75rem 0.5rem;
  border-radius: 0.625rem;
  border: 1.5px solid var(--body-border);
  background: var(--card-bg);
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.ic-card.copied {
  border-color: #10B981 !important;
  background: rgba(16, 185, 129, 0.06) !important;
}

.ic-name {
  font-size: 0.62rem;
  color: var(--body-text-muted);
  text-align: center;
  line-height: 1.3;
  word-break: break-all;
  max-width: 100%;
}

.cat-pill {
  padding: 0.35rem 0.75rem;
  border-radius: 0.4rem;
  border: 1.5px solid var(--body-border);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  background: transparent;
  color: var(--body-text-muted);
  transition: all 0.15s;
  font-family: var(--font);
}

.copy-toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  padding: 0.625rem 1.25rem;
  border-radius: 0.625rem;
  background: #10B981;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}

.copy-toast.hidden {
  opacity: 0;
  transform: translateY(8px);
}

.fi-card {
  padding: 0.875rem;
  border-radius: 0.75rem;
  border: 1.5px solid var(--body-border);
  background: var(--card-bg);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.fi-card:hover {
  border-color: #FF6B2B;
  box-shadow: 0 4px 16px rgba(255, 107, 43, 0.1333333333);
  transform: translateY(-2px);
}

.fi-card.copied {
  border-color: #10B981;
  background: rgba(16, 185, 129, 0.06);
}

.fi-row {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.625rem 0.875rem;
  border-radius: 0.625rem;
  border: 1px solid var(--body-border);
  cursor: pointer;
  transition: all 0.15s;
}

.fi-row:hover {
  border-color: #FF6B2B;
  background: rgba(255, 107, 43, 0.031372549);
}

.fi-cat-btn {
  transition: all 0.15s;
}

.fi-view-btn {
  padding: 0.5rem 0.75rem;
  border: none;
  background: transparent;
  color: var(--body-text);
  cursor: pointer;
  font-size: 0.875rem;
  transition: all 0.15s;
}

.fi-view-btn.on {
  background: #FF6B2B;
  color: #fff;
}

/* ── fontawesome-icons (fontawesome-icons.html) ── */
.ic-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  padding: 0.75rem 0.5rem;
  border-radius: 0.625rem;
  border: 1.5px solid var(--body-border);
  background: var(--card-bg);
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.ic-card.copied {
  border-color: #10B981 !important;
  background: rgba(16, 185, 129, 0.06) !important;
}

.ic-name {
  font-size: 0.62rem;
  color: var(--body-text-muted);
  text-align: center;
  line-height: 1.3;
  word-break: break-all;
  max-width: 100%;
}

.cat-pill {
  padding: 0.35rem 0.75rem;
  border-radius: 0.4rem;
  border: 1.5px solid var(--body-border);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  background: transparent;
  color: var(--body-text-muted);
  transition: all 0.15s;
  font-family: var(--font);
}

.copy-toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  padding: 0.625rem 1.25rem;
  border-radius: 0.625rem;
  background: #10B981;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}

.copy-toast.hidden {
  opacity: 0;
  transform: translateY(8px);
}

/* ── form-elements (form-elements.html) ── */
/* ── Shared sub-section card ─────────────────── */
.sub-card {
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
}

.sub-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--body-text);
  margin: 0 0 0.25rem;
}

.sub-subtitle {
  font-size: 0.78rem;
  color: var(--body-text-muted);
  margin: 0 0 1.25rem;
}

.sub-divider {
  height: 1px;
  background: var(--body-border);
  margin-bottom: 1.25rem;
}

/* custom checkbox/radio */
.cb-box {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  border: 2px solid var(--body-border);
  background: var(--body-bg);
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.06);
}

.cb-box.checked {
  background: #5B8FF9;
  border-color: #5B8FF9;
  box-shadow: 0 0 0 3px rgba(91, 143, 249, 0.22);
}

.cb-box.checked::after {
  content: "";
  width: 5px;
  height: 9px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translate(-1px, -1px);
  display: block;
}

.cb-box.success.checked {
  background: #10B981;
  border-color: #10B981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.22);
}

.cb-box.danger.checked {
  background: #EF4444;
  border-color: #EF4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.22);
}

.cb-box.warning.checked {
  background: #F59E0B;
  border-color: #F59E0B;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.22);
}

.cb-box.info.checked {
  background: #0EA5E9;
  border-color: #0EA5E9;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.22);
}

.cb-box.purple.checked {
  background: #7C3AED;
  border-color: #7C3AED;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.22);
}

.rb-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--body-border);
  background: var(--body-bg);
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.rb-dot.checked {
  border-color: #5B8FF9;
  box-shadow: 0 0 0 3px rgba(91, 143, 249, 0.22);
}

.rb-dot.checked::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #5B8FF9;
  display: block;
}

.rb-dot.success.checked {
  border-color: #10B981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.22);
}

.rb-dot.success.checked::after {
  background: #10B981;
}

.rb-dot.danger.checked {
  border-color: #EF4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.22);
}

.rb-dot.danger.checked::after {
  background: #EF4444;
}

.rb-dot.warning.checked {
  border-color: #F59E0B;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.22);
}

.rb-dot.warning.checked::after {
  background: #F59E0B;
}

/* toggle switch */
.tgl-track {
  width: 44px;
  height: 24px;
  border-radius: 12px;
  background: var(--body-border);
  cursor: pointer;
  position: relative;
  transition: background 0.2s;
  flex-shrink: 0;
}

.tgl-track.on {
  background: #5B8FF9;
}

.tgl-track.success.on {
  background: #10B981;
}

.tgl-track.danger.on {
  background: #EF4444;
}

.tgl-track.warning.on {
  background: #F59E0B;
}

.tgl-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  top: 3px;
  left: 3px;
  transition: left 0.2s;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.tgl-track.on .tgl-thumb {
  left: 23px;
}

/* range */
.hr-range {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--body-border);
  outline: none;
  cursor: pointer;
}

.hr-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #5B8FF9;
  cursor: pointer;
  box-shadow: 0 0 0 3px rgba(91, 143, 249, 0.2);
  transition: box-shadow 0.15s;
}

.hr-range::-webkit-slider-thumb:hover {
  box-shadow: 0 0 0 5px rgba(91, 143, 249, 0.25);
}

.hr-range.success::-webkit-slider-thumb {
  background: #10B981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.hr-range.danger::-webkit-slider-thumb {
  background: #EF4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.hr-range.warning::-webkit-slider-thumb {
  background: #F59E0B;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

/* input styles */
.hr-input-el {
  width: 100%;
  padding: 0.6rem 0.875rem;
  border: 1.5px solid var(--body-border);
  border-radius: 0.5rem;
  background: var(--body-bg);
  color: var(--body-text);
  font-size: 0.875rem;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.hr-input-el:focus {
  border-color: #5B8FF9;
  box-shadow: 0 0 0 3px rgba(91, 143, 249, 0.15);
}

.hr-input-el.success {
  border-color: #10B981;
}

.hr-input-el.error {
  border-color: #EF4444;
}

.hr-input-el.sm {
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
}

.hr-input-el.lg {
  padding: 0.75rem 1rem;
  font-size: 1rem;
}

.hr-input-el:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.hr-select-el {
  width: 100%;
  padding: 0.6rem 0.875rem;
  border: 1.5px solid var(--body-border);
  border-radius: 0.5rem;
  background: var(--body-bg);
  color: var(--body-text);
  font-size: 0.875rem;
  font-family: var(--font);
  outline: none;
  cursor: pointer;
  transition: border-color 0.15s;
}

.hr-select-el:focus {
  border-color: #5B8FF9;
  box-shadow: 0 0 0 3px rgba(91, 143, 249, 0.15);
}

.form-label-hr {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--body-text);
  margin-bottom: 0.375rem;
}

.form-hint {
  font-size: 0.75rem;
  color: var(--body-text-muted);
  margin-top: 0.325rem;
}

.form-hint.success {
  color: #10B981;
}

.form-hint.error {
  color: #EF4444;
}

/* file drop */
.file-drop {
  border: 2px dashed var(--body-border);
  border-radius: 0.75rem;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--body-bg);
}

.file-drop:hover {
  border-color: #5B8FF9;
  background: rgba(91, 143, 249, 0.04);
}

.file-drop.dragover {
  border-color: #5B8FF9;
  background: rgba(91, 143, 249, 0.08);
}

/* size preview */
.size-demo {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cb-label {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  cursor: pointer;
  user-select: none;
  font-size: 0.875rem;
  color: var(--body-text);
}

.cb-label.reverse {
  flex-direction: row-reverse;
  justify-content: space-between;
}

/* ── form-layouts (form-layouts.html) ── */
/* ── Shared sub-section card ─────────────────── */
.sub-card {
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
}

.sub-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--body-text);
  margin: 0 0 0.25rem;
}

.sub-subtitle {
  font-size: 0.78rem;
  color: var(--body-text-muted);
  margin: 0 0 1.25rem;
}

.sub-divider {
  height: 1px;
  background: var(--body-border);
  margin-bottom: 1.25rem;
}

.fl-input {
  width: 100%;
  padding: 0.6rem 0.875rem;
  border: 1.5px solid var(--body-border);
  border-radius: 0.5rem;
  background: var(--body-bg);
  color: var(--body-text);
  font-size: 0.875rem;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.fl-input:focus {
  border-color: #5B8FF9;
  box-shadow: 0 0 0 3px rgba(91, 143, 249, 0.15);
}

.fl-input.is-valid {
  border-color: #10B981;
}

.fl-input.is-invalid {
  border-color: #EF4444;
}

.fl-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--body-text);
  margin-bottom: 0.375rem;
}

.fl-select {
  width: 100%;
  padding: 0.6rem 0.875rem;
  border: 1.5px solid var(--body-border);
  border-radius: 0.5rem;
  background: var(--body-bg);
  color: var(--body-text);
  font-size: 0.875rem;
  font-family: var(--font);
  outline: none;
  cursor: pointer;
  transition: border-color 0.15s;
}

.fl-select:focus {
  border-color: #5B8FF9;
  box-shadow: 0 0 0 3px rgba(91, 143, 249, 0.15);
}

.fl-hint {
  font-size: 0.75rem;
  margin-top: 0.325rem;
}

.fl-hint.valid {
  color: #10B981;
}

.fl-hint.invalid {
  color: #EF4444;
}

.fl-hint.muted {
  color: var(--body-text-muted);
}

/* floating labels */
.fl-float-wrap {
  position: relative;
  margin-bottom: 0;
}

.fl-float-input {
  width: 100%;
  padding: 1.25rem 0.875rem 0.375rem;
  border: 1.5px solid var(--body-border);
  border-radius: 0.5rem;
  background: var(--body-bg);
  color: var(--body-text);
  font-size: 0.875rem;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.fl-float-input:focus {
  border-color: #5B8FF9;
  box-shadow: 0 0 0 3px rgba(91, 143, 249, 0.15);
}

.fl-float-label {
  position: absolute;
  left: 0.875rem;
  top: 0.875rem;
  font-size: 0.875rem;
  color: var(--body-text-muted);
  pointer-events: none;
  transition: all 0.15s;
  background: transparent;
}

.fl-float-input:focus ~ .fl-float-label,
.fl-float-input:not(:placeholder-shown) ~ .fl-float-label {
  top: 0.35rem;
  font-size: 0.7rem;
  color: #5B8FF9;
  font-weight: 700;
}

/* step form */
.step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--body-border);
  background: var(--card-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--body-text-muted);
  flex-shrink: 0;
  transition: all 0.3s;
}

.step-circle.active {
  border-color: #5B8FF9;
  background: #5B8FF9;
  color: #fff;
}

.step-circle.done {
  border-color: #10B981;
  background: #10B981;
  color: #fff;
}

.step-line {
  flex: 1;
  height: 2px;
  background: var(--body-border);
  transition: background 0.3s;
}

.step-line.done {
  background: #10B981;
}

.step-panel {
  display: none;
}

.step-panel.active {
  display: block;
}

/* ── icons-bootstrap (icons-bootstrap.html) ── */
.ic-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  padding: 0.75rem 0.5rem;
  border-radius: 0.625rem;
  border: 1.5px solid var(--body-border);
  background: var(--card-bg);
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.ic-card.copied {
  border-color: #10B981 !important;
  background: rgba(16, 185, 129, 0.06) !important;
}

.ic-name {
  font-size: 0.62rem;
  color: var(--body-text-muted);
  text-align: center;
  line-height: 1.3;
  word-break: break-all;
  max-width: 100%;
}

.cat-pill {
  padding: 0.35rem 0.75rem;
  border-radius: 0.4rem;
  border: 1.5px solid var(--body-border);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  background: transparent;
  color: var(--body-text-muted);
  transition: all 0.15s;
  font-family: var(--font);
}

.copy-toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  padding: 0.625rem 1.25rem;
  border-radius: 0.625rem;
  background: #10B981;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}

.copy-toast.hidden {
  opacity: 0;
  transform: translateY(8px);
}

/* ── icons-flaticon (icons-flaticon.html) ── */
.ic-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  padding: 0.75rem 0.5rem;
  border-radius: 0.625rem;
  border: 1.5px solid var(--body-border);
  background: var(--card-bg);
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.ic-card.copied {
  border-color: #10B981 !important;
  background: rgba(16, 185, 129, 0.06) !important;
}

.ic-name {
  font-size: 0.62rem;
  color: var(--body-text-muted);
  text-align: center;
  line-height: 1.3;
  word-break: break-all;
  max-width: 100%;
}

.cat-pill {
  padding: 0.35rem 0.75rem;
  border-radius: 0.4rem;
  border: 1.5px solid var(--body-border);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  background: transparent;
  color: var(--body-text-muted);
  transition: all 0.15s;
  font-family: var(--font);
}

.copy-toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  padding: 0.625rem 1.25rem;
  border-radius: 0.625rem;
  background: #10B981;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}

.copy-toast.hidden {
  opacity: 0;
  transform: translateY(8px);
}

.fi-card {
  padding: 0.875rem;
  border-radius: 0.75rem;
  border: 1.5px solid var(--body-border);
  background: var(--card-bg);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.fi-card:hover {
  border-color: #FF6B2B;
  box-shadow: 0 4px 16px rgba(255, 107, 43, 0.1333333333);
  transform: translateY(-2px);
}

.fi-card.copied {
  border-color: #10B981;
  background: rgba(16, 185, 129, 0.06);
}

.fi-row {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.625rem 0.875rem;
  border-radius: 0.625rem;
  border: 1px solid var(--body-border);
  cursor: pointer;
  transition: all 0.15s;
}

.fi-row:hover {
  border-color: #FF6B2B;
  background: rgba(255, 107, 43, 0.031372549);
}

.fi-cat-btn {
  transition: all 0.15s;
}

.fi-view-btn {
  padding: 0.5rem 0.75rem;
  border: none;
  background: transparent;
  color: var(--body-text);
  cursor: pointer;
  font-size: 0.875rem;
  transition: all 0.15s;
}

.fi-view-btn.on {
  background: #FF6B2B;
  color: #fff;
}

/* ── icons-fontawesome (icons-fontawesome.html) ── */
.ic-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  padding: 0.75rem 0.5rem;
  border-radius: 0.625rem;
  border: 1.5px solid var(--body-border);
  background: var(--card-bg);
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.ic-card.copied {
  border-color: #10B981 !important;
  background: rgba(16, 185, 129, 0.06) !important;
}

.ic-name {
  font-size: 0.62rem;
  color: var(--body-text-muted);
  text-align: center;
  line-height: 1.3;
  word-break: break-all;
  max-width: 100%;
}

.cat-pill {
  padding: 0.35rem 0.75rem;
  border-radius: 0.4rem;
  border: 1.5px solid var(--body-border);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  background: transparent;
  color: var(--body-text-muted);
  transition: all 0.15s;
  font-family: var(--font);
}

.copy-toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  padding: 0.625rem 1.25rem;
  border-radius: 0.625rem;
  background: #10B981;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}

.copy-toast.hidden {
  opacity: 0;
  transform: translateY(8px);
}

/* ── icons-lucide (icons-lucide.html) ── */
.ic-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  padding: 0.75rem 0.5rem;
  border-radius: 0.625rem;
  border: 1.5px solid var(--body-border);
  background: var(--card-bg);
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.ic-card.copied {
  border-color: #10B981 !important;
  background: rgba(16, 185, 129, 0.06) !important;
}

.ic-name {
  font-size: 0.62rem;
  color: var(--body-text-muted);
  text-align: center;
  line-height: 1.3;
  word-break: break-all;
  max-width: 100%;
}

.cat-pill {
  padding: 0.35rem 0.75rem;
  border-radius: 0.4rem;
  border: 1.5px solid var(--body-border);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  background: transparent;
  color: var(--body-text-muted);
  transition: all 0.15s;
  font-family: var(--font);
}

.copy-toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  padding: 0.625rem 1.25rem;
  border-radius: 0.625rem;
  background: #10B981;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}

.copy-toast.hidden {
  opacity: 0;
  transform: translateY(8px);
}

/* ── Leaves (leaves.html) ── */
/* ── Exact React CSS for request cards ─────────────────────────── */
.req-meta-label {
  font-size: 0.7rem;
  color: var(--body-text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.2rem;
}

/* ── Progress bar ─────────────────────────────────────────────── */
.prog-bar-wrap {
  height: 5px;
  background: var(--body-border);
  border-radius: 999px;
  overflow: hidden;
}

.prog-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 1s ease;
}

/* ── btn variants ─────────────────────────────────────────────── */
.btn-success-hr {
  background: rgba(16, 185, 129, 0.08);
  color: #059669;
  border-color: transparent;
}

.btn-success-hr:hover {
  background: #10B981;
  color: white;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.btn-danger-hr {
  background: rgba(239, 68, 68, 0.08);
  color: #DC2626;
  border-color: transparent;
}

.btn-danger-hr:hover {
  background: #EF4444;
  color: white;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

/* ── Modal ────────────────────────────────────────────────────── */
.modal-content {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
}

.modal-header, .modal-footer {
  border-color: var(--body-border);
}

/* ── Leave request card hover ──────────────────────────────────── */
.leave-req-card {
  transition: box-shadow 0.13s ease;
}

.leave-req-card:hover {
  box-shadow: var(--card-shadow-hover);
}

/* ── Calendar sticky name col ─────────────────────────────────── */
.cal-name-col {
  position: sticky;
  left: 0;
  background: var(--card-bg);
  z-index: 1;
}

/* ── Filter count badge ────────────────────────────────────────── */
#reqCount {
  font-size: 0.8125rem;
  color: var(--body-text-muted);
  margin-left: auto;
}

/* ── lucide-icons (lucide-icons.html) ── */
.ic-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  padding: 0.75rem 0.5rem;
  border-radius: 0.625rem;
  border: 1.5px solid var(--body-border);
  background: var(--card-bg);
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.ic-card.copied {
  border-color: #10B981 !important;
  background: rgba(16, 185, 129, 0.06) !important;
}

.ic-name {
  font-size: 0.62rem;
  color: var(--body-text-muted);
  text-align: center;
  line-height: 1.3;
  word-break: break-all;
  max-width: 100%;
}

.cat-pill {
  padding: 0.35rem 0.75rem;
  border-radius: 0.4rem;
  border: 1.5px solid var(--body-border);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  background: transparent;
  color: var(--body-text-muted);
  transition: all 0.15s;
  font-family: var(--font);
}

.copy-toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  padding: 0.625rem 1.25rem;
  border-radius: 0.625rem;
  background: #10B981;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}

.copy-toast.hidden {
  opacity: 0;
  transform: translateY(8px);
}

/* ── Map Libraries (map-libs.html) ── */
@keyframes ping {
  0% {
    box-shadow: 0 0 0 0 rgba(91, 143, 249, 0.6);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(91, 143, 249, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(91, 143, 249, 0);
  }
}
/* ── Payroll (payroll.html) ── */
.prog-bar-wrap {
  height: 5px;
  background: var(--body-border);
  border-radius: 999px;
  overflow: hidden;
}

.prog-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.6s ease;
}

.badge-st {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.625rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.badge-st::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}

.st-paid {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
}

.st-paid::before {
  background: #10B981;
}

.st-processing {
  background: rgba(245, 158, 11, 0.12);
  color: #D97706;
}

.st-processing::before {
  background: #F59E0B;
}

.st-pending {
  background: rgba(100, 116, 139, 0.1);
  color: #64748B;
}

.st-pending::before {
  background: #94A3B8;
}

/* modal */
.modal-content {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
}

.modal-header, .modal-footer {
  border-color: var(--body-border);
}

/* payslip modal table */
.payslip-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--body-border);
  font-size: 0.875rem;
}

.payslip-row:last-child {
  border-bottom: none;
}

.pay-stat {
  background: var(--card-bg);
  border-radius: var(--card-radius);
  padding: 1.375rem;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--card-border);
}

.pay-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.875rem;
}

.pay-stat-val {
  font-size: 1.625rem;
  font-weight: 800;
  color: var(--body-text);
  letter-spacing: -0.03em;
}

.pay-stat-lbl {
  font-size: 0.8125rem;
  color: var(--body-text-muted);
  margin-top: 0.25rem;
}

.tab-count {
  background: var(--body-border);
  color: var(--body-text-muted);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  margin-left: 0.3rem;
}

.tab-btn.active .tab-count {
  background: rgba(255, 255, 255, 0.25);
  color: inherit;
}

/* ── Performance (performance.html) ── */
.prog-bar-wrap {
  height: 5px;
  background: var(--body-border);
  border-radius: 999px;
  overflow: hidden;
}

.prog-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.6s ease;
}

.modal-content {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
}

.modal-header, .modal-footer {
  border-color: var(--body-border);
}

.score-tier {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.78rem;
  font-weight: 600;
}

.score-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

/* ── Profile (profile.html) ── */
.prog-bar-wrap {
  height: 5px;
  background: var(--body-border);
  border-radius: 999px;
  overflow: hidden;
}

.prog-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.6s ease;
}

.badge-status.badge-active {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}

/* ── Recruitment (recruitment.html) ── */
/* === Kanban board — exact React CSS === */
.kanban-board {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  align-items: start;
  padding-bottom: 1rem;
}

.kanban-col {
  background: var(--body-bg);
  border-radius: var(--card-radius);
  padding: 1rem;
  border: 1px solid var(--body-border);
  min-width: 270px;
  flex-shrink: 0;
  transition: outline 0.13s, background 0.13s;
}

.kanban-col.drag-over {
  outline: 2px dashed var(--color-primary);
  background: rgba(79, 110, 247, 0.03);
}

.kanban-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.875rem;
}

.kanban-title {
  font-size: 0.845rem;
  font-weight: 700;
  color: var(--body-text);
}

.kanban-count {
  background: var(--body-border);
  color: var(--body-text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.125rem 0.5rem;
  border-radius: 999px;
}

.kcard {
  background: var(--card-bg);
  border-radius: 0.75rem;
  padding: 0.9375rem;
  margin-bottom: 0.5rem;
  box-shadow: 0 1px 3px rgba(79, 110, 247, 0.05);
  cursor: grab;
  transition: all 0.13s ease;
  border: 1px solid var(--card-border);
}

.kcard:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 24px rgba(79, 110, 247, 0.14), 0 1px 4px rgba(30, 35, 90, 0.06);
  border-color: rgba(79, 110, 247, 0.25);
}

.kcard:active {
  cursor: grabbing;
}

.kcard.dragging {
  opacity: 0.4;
  transform: scale(0.98);
}

.kcard-title {
  font-size: 0.845rem;
  font-weight: 600;
  color: var(--body-text);
  margin-bottom: 0.375rem;
  line-height: 1.4;
}

.kcard-meta {
  font-size: 0.75rem;
  color: var(--body-text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.625rem;
}

.kprio {
  font-size: 0.66rem;
  font-weight: 700;
  padding: 0.1875rem 0.5rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.kprio-high {
  background: rgba(239, 68, 68, 0.09);
  color: #DC2626;
}

.kprio-med {
  background: rgba(245, 158, 11, 0.09);
  color: #B45309;
}

.kprio-low {
  background: rgba(16, 185, 129, 0.09);
  color: #059669;
}

/* Stacked avatars inside kanban card */
.kcard-avatars {
  display: flex;
  align-items: center;
}

.kcard-avatars .kav {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--card-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  font-weight: 700;
  color: #fff;
  margin-left: -6px;
}

.kcard-avatars .kav:first-child {
  margin-left: 0;
}

/* Avatar colour palette */
.av-AT {
  background: linear-gradient(135deg, #5B8FF9, #0EA5E9);
}

.av-LZ {
  background: linear-gradient(135deg, #7C3AED, #EC4899);
}

.av-MJ {
  background: linear-gradient(135deg, #10B981, #0EA5E9);
}

.av-SC {
  background: linear-gradient(135deg, #5B8FF9, #7C3AED);
}

.av-PN {
  background: linear-gradient(135deg, #F59E0B, #EF4444);
}

.av-ER {
  background: linear-gradient(135deg, #7C3AED, #EC4899);
}

.av-DK {
  background: linear-gradient(135deg, #0EA5E9, #5B8FF9);
}

.av-TN {
  background: linear-gradient(135deg, #EF4444, #F59E0B);
}

.av-AP {
  background: linear-gradient(135deg, #10B981, #7C3AED);
}

.av-default {
  background: linear-gradient(135deg, #64748B, #334155);
}

/* Candidate table avatar */
.tav {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

/* Stage chip — exact React .chip */
.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  gap: 0.375rem;
  background: var(--color-primary-light);
  color: var(--color-primary);
}

/* Progress bar */
.prog-wrap {
  height: 5px;
  background: var(--body-border);
  border-radius: 999px;
  overflow: hidden;
}

.prog-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.4s;
}

/* Stat mini-card */
.recruit-stat {
  background: var(--card-bg);
  border-radius: var(--card-radius);
  padding: 1.125rem;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.recruit-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.25rem;
}

.recruit-stat-val {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--body-text);
  line-height: 1;
}

.recruit-stat-lbl {
  font-size: 0.8125rem;
  color: var(--body-text-muted);
  margin-top: 0.125rem;
}

/* btn-success-hr */
.btn-success-hr {
  background: rgba(16, 185, 129, 0.08);
  color: #059669;
  border-color: transparent;
}

.btn-success-hr:hover {
  background: rgba(16, 185, 129, 0.16);
  color: #047857;
}

/* Modal */
.modal-content {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
}

.modal-header, .modal-footer {
  border-color: var(--body-border);
}

/* ── Reports (reports.html) ── */
.prog-bar-wrap {
  height: 5px;
  background: var(--body-border);
  border-radius: 999px;
  overflow: hidden;
}

.prog-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.6s;
}

.modal-content {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
}

.modal-header, .modal-footer {
  border-color: var(--body-border);
}

/* Report library grid */
#reportGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

/* Main tab bar — exact React style */
.rep-tab-bar {
  display: flex;
  gap: 0.25rem;
  background: var(--body-bg);
  border-radius: 0.625rem;
  padding: 0.25rem;
  border: 1px solid var(--body-border);
  width: fit-content;
  margin-bottom: 1.5rem;
}

.rep-tab-btn {
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  border: none;
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  color: var(--body-text-muted);
}

.rep-tab-btn.active {
  background: #5B8FF9;
  color: #fff;
}

/* Generate loading spinner */
.generating-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

#generatingOverlay.d-none {
  display: none;
}

.generating-box {
  background: var(--card-bg);
  border-radius: 1.25rem;
  padding: 2rem;
  text-align: center;
  max-width: 320px;
  width: 90%;
}

/* ── Sidebar Menu (sidebar-menu.html) ── */
/* ── Section label ──────────────────────────────────────────── */
.sl {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--body-text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 2rem 0 1rem;
}

.sl::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--body-border);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   Demo sidebar shell (self-contained, scoped to .demo-sb)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.demo-sb {
  width: 240px;
  background: var(--card-bg);
  border: 1px solid var(--body-border);
  border-radius: 1rem;
  padding: 0.625rem;
  flex-shrink: 0;
  max-height: 480px;
  overflow-y: auto;
}

.demo-sb.dark {
  background: #13142B;
  border-color: rgba(255, 255, 255, 0.08);
}

/* Top-level link */
.dsb-link {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.55rem 0.75rem;
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 0.845rem;
  font-weight: 500;
  color: var(--body-text);
  transition: all 0.15s;
  text-decoration: none;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  font-family: var(--font);
}

.dsb-link:hover {
  background: var(--body-bg);
}

.dsb-link.active {
  background: var(--color-primary);
  color: #fff;
}

.demo-sb.dark .dsb-link {
  color: rgba(255, 255, 255, 0.7);
}

.demo-sb.dark .dsb-link:hover {
  background: rgba(255, 255, 255, 0.06);
}

.demo-sb.dark .dsb-link.active {
  background: var(--color-primary);
  color: #fff;
}

.dsb-icon {
  width: 18px;
  flex-shrink: 0;
  font-size: 0.9rem;
  text-align: center;
}

.dsb-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dsb-badge {
  font-size: 0.62rem;
  font-weight: 800;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  background: #EF4444;
  color: #fff;
  flex-shrink: 0;
}

/* Dropdown group header — button that expands/collapses */
.dsb-group-hd {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.55rem 0.75rem;
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 0.845rem;
  font-weight: 500;
  color: var(--body-text);
  transition: all 0.15s;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  font-family: var(--font);
}

.dsb-group-hd:hover {
  background: var(--body-bg);
}

.dsb-group-hd.open {
  font-weight: 700;
  color: var(--color-primary);
}

.demo-sb.dark .dsb-group-hd {
  color: rgba(255, 255, 255, 0.7);
}

.demo-sb.dark .dsb-group-hd:hover {
  background: rgba(255, 255, 255, 0.06);
}

.demo-sb.dark .dsb-group-hd.open {
  color: #7ba7ff;
}

.dsb-chevron {
  margin-left: auto;
  font-size: 0.7rem;
  transition: transform 0.25s;
  flex-shrink: 0;
}

.dsb-group-hd.open .dsb-chevron {
  transform: rotate(90deg);
}

/* Dropdown body — collapsible via max-height */
.dsb-group-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.dsb-group-body.open {
  max-height: 400px;
}

.dsb-group-inner {
  padding: 0.2rem 0 0.35rem 0.25rem;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

/* Child link — indented, smaller, left border accent */
.dsb-child {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.45rem 0.75rem 0.45rem 1.75rem;
  border-radius: 0.4rem;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--body-text-muted);
  text-decoration: none;
  transition: all 0.15s;
  position: relative;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  font-family: var(--font);
}

.dsb-child::before {
  content: "";
  position: absolute;
  left: 1.05rem;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--body-border);
}

.dsb-child:hover {
  background: var(--body-bg);
  color: var(--body-text);
}

.dsb-child.active {
  color: var(--color-primary);
  font-weight: 700;
  background: var(--color-primary-light);
}

.demo-sb.dark .dsb-child {
  color: rgba(255, 255, 255, 0.5);
}

.demo-sb.dark .dsb-child::before {
  background: rgba(255, 255, 255, 0.12);
}

.demo-sb.dark .dsb-child:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.demo-sb.dark .dsb-child.active {
  color: #7ba7ff;
  background: rgba(91, 143, 249, 0.15);
}

/* Nested (2nd-level) dropdown inside a child */
.dsb-sub-hd {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.75rem 0.4rem 1.75rem;
  border-radius: 0.4rem;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--body-text-muted);
  position: relative;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  font-family: var(--font);
  transition: all 0.15s;
}

.dsb-sub-hd::before {
  content: "";
  position: absolute;
  left: 1.05rem;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--body-border);
}

.dsb-sub-hd:hover {
  background: var(--body-bg);
}

.dsb-sub-hd.open {
  color: var(--color-primary);
}

.dsb-sub-chevron {
  margin-left: auto;
  font-size: 0.6rem;
  transition: transform 0.25s;
}

.dsb-sub-hd.open .dsb-sub-chevron {
  transform: rotate(90deg);
}

.dsb-sub-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.dsb-sub-body.open {
  max-height: 200px;
}

.dsb-sub-child {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem 0.35rem 2.5rem;
  border-radius: 0.4rem;
  cursor: pointer;
  font-size: 0.76rem;
  color: var(--body-text-muted);
  text-decoration: none;
  transition: all 0.15s;
  position: relative;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  font-family: var(--font);
}

.dsb-sub-child::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--body-text-muted);
  flex-shrink: 0;
  opacity: 0.5;
}

.dsb-sub-child:hover {
  background: var(--body-bg);
  color: var(--body-text);
}

.dsb-sub-child.active {
  color: var(--color-primary);
  font-weight: 700;
}

.dsb-sub-child.active::before {
  background: var(--color-primary);
  opacity: 1;
}

/* Section title divider inside sidebar */
.dsb-section {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--body-text-muted);
  padding: 0.75rem 0.75rem 0.35rem;
  opacity: 0.7;
}

.demo-sb.dark .dsb-section {
  color: rgba(255, 255, 255, 0.4);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   Variant 2 — Flyout (hover popout) dropdown, collapsed rail
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.rail-sb {
  width: 64px;
  background: var(--card-bg);
  border: 1px solid var(--body-border);
  border-radius: 1rem;
  padding: 0.625rem 0.5rem;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.rail-item {
  position: relative;
}

.rail-btn {
  width: 44px;
  height: 44px;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--body-text-muted);
  background: transparent;
  border: none;
  font-size: 1.05rem;
  transition: all 0.15s;
  margin: 0 auto;
}

.rail-btn:hover {
  background: var(--body-bg);
  color: var(--color-primary);
}

.rail-item.flyout-open .rail-btn {
  background: var(--color-primary-light);
  color: var(--color-primary);
}

.rail-flyout {
  position: absolute;
  left: calc(100% + 10px);
  top: 0;
  min-width: 200px;
  background: var(--card-bg);
  border: 1px solid var(--body-border);
  border-radius: 0.75rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
  padding: 0.5rem;
  display: none;
  z-index: 50;
}

.rail-item.flyout-open .rail-flyout {
  display: block;
}

.rail-flyout-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--body-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.375rem 0.625rem 0.5rem;
}

.rail-flyout-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.625rem;
  border-radius: 0.45rem;
  font-size: 0.825rem;
  font-weight: 500;
  color: var(--body-text);
  cursor: pointer;
  transition: background 0.15s;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  font-family: var(--font);
}

.rail-flyout-link:hover {
  background: var(--body-bg);
}

.rail-flyout-link.active {
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-weight: 700;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   Variant — Mega dropdown (grid of links, multi-column)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.mega-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.mega-body.open {
  max-height: 600px;
}

.mega-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.25rem;
  padding: 0.375rem 0.25rem 0.5rem 1.75rem;
}

.mega-col-title {
  grid-column: 1/-1;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--body-text-muted);
  padding: 0.4rem 0.5rem 0.1rem;
  opacity: 0.7;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   Variant — Accordion (multi-open) badge counters
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.dsb-count {
  font-size: 0.62rem;
  font-weight: 700;
  padding: 0.08rem 0.4rem;
  border-radius: 999px;
  background: var(--body-bg);
  color: var(--body-text-muted);
  margin-left: auto;
  flex-shrink: 0;
}

.dsb-group-hd .dsb-count {
  margin-left: 0;
}

/* ── tables-bootstrap (tables-bootstrap.html) ── */
/* ── Shared sub-section card ─────────────────── */
.sub-card {
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
}

.sub-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--body-text);
  margin: 0 0 0.25rem;
}

.sub-subtitle {
  font-size: 0.78rem;
  color: var(--body-text-muted);
  margin: 0 0 1.25rem;
}

.sub-divider {
  height: 1px;
  background: var(--body-border);
  margin-bottom: 1.25rem;
}

.emp-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.625rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.badge-active {
  background: rgba(16, 185, 129, 0.1);
  color: #10B981;
}

.badge-leave {
  background: rgba(245, 158, 11, 0.1);
  color: #D97706;
}

.badge-inactive {
  background: rgba(100, 116, 139, 0.1);
  color: #64748B;
}

.perf-excellent {
  background: rgba(91, 143, 249, 0.1);
  color: #5B8FF9;
}

.perf-good {
  background: rgba(16, 185, 129, 0.1);
  color: #10B981;
}

.perf-avg {
  background: rgba(245, 158, 11, 0.1);
  color: #D97706;
}

.bs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.bs-table th {
  padding: 0.75rem 1rem;
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--body-text-muted);
  border-bottom: 2px solid var(--body-border);
  white-space: nowrap;
  background: var(--card-bg);
}

.bs-table td {
  padding: 0.75rem 1rem;
  color: var(--body-text);
  border-bottom: 1px solid var(--body-border);
  vertical-align: middle;
}

.bs-table tbody tr:last-child td {
  border-bottom: none;
}

.bs-table.striped tbody tr:nth-child(even) td {
  background: var(--body-bg);
}

.bs-table.bordered th, .bs-table.bordered td {
  border: 1px solid var(--body-border);
}

.bs-table.hover tbody tr:hover td {
  background: rgba(91, 143, 249, 0.04);
  cursor: pointer;
}

.bs-table.dark-head th {
  background: #13142B;
  color: rgba(255, 255, 255, 0.85);
}

.bs-table.sm th {
  padding: 0.5rem 0.875rem;
}

.bs-table.sm td {
  padding: 0.5rem 0.875rem;
}

.bs-table.lg th {
  padding: 1rem 1.25rem;
}

.bs-table.lg td {
  padding: 1rem 1.25rem;
}

.tbl-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tbl-caption {
  font-size: 0.78rem;
  color: var(--body-text-muted);
  padding: 0.625rem 1rem;
  font-style: italic;
}

/* ── tables-datatable (tables-datatable.html) ── */
/* ── Shared sub-section card ─────────────────── */
.sub-card {
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
}

.sub-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--body-text);
  margin: 0 0 0.25rem;
}

.sub-subtitle {
  font-size: 0.78rem;
  color: var(--body-text-muted);
  margin: 0 0 1.25rem;
}

.sub-divider {
  height: 1px;
  background: var(--body-border);
  margin-bottom: 1.25rem;
}

.dt-search-wrap {
  position: relative;
}

.dt-search-wrap .bi-search {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--body-text-muted);
  pointer-events: none;
}

.dt-search {
  width: 100%;
  max-width: 280px;
  padding: 0.5rem 0.75rem 0.5rem 2.1rem;
  border: 1.5px solid var(--body-border);
  border-radius: 0.5rem;
  background: var(--body-bg);
  color: var(--body-text);
  font-size: 0.82rem;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.15s;
}

.dt-search:focus {
  border-color: #5B8FF9;
  box-shadow: 0 0 0 3px rgba(91, 143, 249, 0.15);
}

.dt-pp {
  padding: 0.45rem 0.75rem;
  border: 1.5px solid var(--body-border);
  border-radius: 0.5rem;
  background: var(--body-bg);
  color: var(--body-text);
  font-size: 0.82rem;
  font-family: var(--font);
  outline: none;
  cursor: pointer;
}

.dt-col-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.dt-col-btn {
  padding: 0.3rem 0.7rem;
  border-radius: 0.375rem;
  border: 1.5px solid var(--body-border);
  background: transparent;
  color: var(--body-text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  font-family: var(--font);
}

.dt-col-btn.vis {
  border-color: #5B8FF9;
  background: rgba(91, 143, 249, 0.1);
  color: #5B8FF9;
}

.dt-sort-icon {
  opacity: 0.4;
  font-size: 0.7rem;
  margin-left: 0.25rem;
  transition: opacity 0.15s;
}

th:hover .dt-sort-icon {
  opacity: 1;
}

.dt-sort-asc .dt-sort-icon::before {
  content: "↑";
}

.dt-sort-desc .dt-sort-icon::before {
  content: "↓";
}

.dt-pag-btn {
  width: 34px;
  height: 34px;
  border: 1.5px solid var(--body-border);
  border-radius: 0.4rem;
  background: transparent;
  color: var(--body-text);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  font-family: var(--font);
}

.dt-pag-btn:hover {
  border-color: #5B8FF9;
  color: #5B8FF9;
}

.dt-pag-btn.active {
  background: #5B8FF9;
  border-color: #5B8FF9;
  color: #fff;
}

.dt-pag-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.dt-info {
  font-size: 0.78rem;
  color: var(--body-text-muted);
}

.emp-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.625rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.badge-active {
  background: rgba(16, 185, 129, 0.1);
  color: #10B981;
}

.badge-leave {
  background: rgba(245, 158, 11, 0.1);
  color: #D97706;
}

.badge-inactive {
  background: rgba(100, 116, 139, 0.1);
  color: #64748B;
}

.perf-excellent {
  background: rgba(91, 143, 249, 0.1);
  color: #5B8FF9;
}

.perf-good {
  background: rgba(16, 185, 129, 0.1);
  color: #10B981;
}

.perf-avg {
  background: rgba(245, 158, 11, 0.1);
  color: #D97706;
}

/* ── Tasks (tasks.html) ── */
/* ── Progress bar ──────────────────────────────────────────── */
.prog-bar-wrap {
  height: 5px;
  background: var(--body-border);
  border-radius: 999px;
  overflow: hidden;
}

.prog-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.6s ease;
}

/* ── btn variants ──────────────────────────────────────────── */
.btn-success-hr {
  background: rgba(16, 185, 129, 0.08);
  color: #059669;
  border-color: transparent;
}

.btn-success-hr:hover {
  background: #10B981;
  color: white;
}

.btn-danger-hr {
  background: rgba(239, 68, 68, 0.08);
  color: #DC2626;
  border-color: transparent;
}

.btn-danger-hr:hover {
  background: #EF4444;
  color: white;
}

/* ── Kanban board layout — exact React grid ────────────────── */
.task-kanban-board {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  align-items: start;
}

/* ── Modal ─────────────────────────────────────────────────── */
.modal-content {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
}

.modal-header, .modal-footer {
  border-color: var(--body-border);
}

/* ── Filter bar divider ─────────────────────────────────────── */
.filter-divider {
  width: 1px;
  height: 24px;
  background: var(--body-border);
  flex-shrink: 0;
}

/* ── View toggle active ─────────────────────────────────────── */
#viewToggle .btn-hr.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

/* ── Training (training.html) ── */
.tab-pill {
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  border: none;
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  color: var(--body-text-muted);
}

.tab-pill.active {
  background: #5B8FF9;
  color: #fff;
}

.tab-pill:hover:not(.active) {
  background: rgba(91, 143, 249, 0.1);
  color: #5B8FF9;
}

.cat-filter-btn {
  transition: all 0.15s;
}

.cat-filter-btn.active {
  background: rgba(91, 143, 249, 0.12) !important;
  color: #5B8FF9 !important;
  border-color: #5B8FF9 !important;
}

.course-card {
  border: 1.5px solid var(--body-border);
}

/* quiz modal */
.quiz-opt {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 0.625rem;
  border: 1.5px solid var(--body-border);
  cursor: pointer;
  transition: all 0.15s;
  margin-bottom: 0.5rem;
  background: transparent;
}

.quiz-opt:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
}

.quiz-opt.selected {
  border-color: #5B8FF9;
  background: rgba(91, 143, 249, 0.08);
}

.quiz-opt.correct {
  border-color: #10B981;
  background: rgba(16, 185, 129, 0.08);
}

.quiz-opt.wrong {
  border-color: #EF4444;
  background: rgba(239, 68, 68, 0.08);
}

/* input style */
.tr-input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  border: 1.5px solid var(--body-border);
  background: var(--card-bg);
  color: var(--body-text);
  font-size: 0.85rem;
  outline: none;
  font-family: var(--font);
}

.tr-input:focus {
  border-color: #5B8FF9;
  box-shadow: 0 0 0 3px rgba(91, 143, 249, 0.15);
}

/* modal */
.tr-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.tr-modal {
  background: var(--card-bg);
  border-radius: 1rem;
  width: 100%;
  overflow: hidden;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.tr-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* ── UI Accordion (ui-accordion.html) ── */
/* ── Accordion custom styles ─────────────────────────────── */
.acc-item {
  border: 1px solid var(--body-border);
  border-radius: 0.75rem;
  margin-bottom: 0.5rem;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.acc-item:hover {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.acc-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--card-bg);
  border: none;
  cursor: pointer;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--body-text);
  text-align: left;
  font-family: var(--font);
  transition: all 0.15s;
}

.acc-trigger.open {
  background: var(--body-bg);
  font-weight: 700;
  color: var(--color-primary);
}

.acc-trigger .acc-icon {
  flex-shrink: 0;
  transition: transform 0.25s;
}

.acc-trigger.open .acc-icon {
  transform: rotate(180deg);
}

.acc-body {
  display: none;
  padding: 0 1.25rem 1rem;
  font-size: 0.9rem;
  color: var(--body-text-muted);
  line-height: 1.75;
}

.acc-body.show {
  display: block;
}

/* ── Flush ───────────────────────────────────────────────── */
.acc-flush .acc-item {
  border: none;
  border-bottom: 1px solid var(--body-border);
  border-radius: 0;
  margin-bottom: 0;
  background: transparent;
}

.acc-flush .acc-item:last-child {
  border-bottom: none;
}

.acc-flush .acc-trigger {
  padding: 0.875rem 0;
  font-size: 0.9rem;
  background: transparent;
}

.acc-flush .acc-trigger.open {
  background: transparent;
  color: var(--color-primary);
}

.acc-flush .acc-body {
  padding: 0 0 0.875rem;
}

/* ── Bordered coloured ───────────────────────────────────── */
.acc-colored .acc-item {
  border-left: 4px solid transparent;
}

.acc-colored .acc-item.blue {
  border-left-color: #5B8FF9;
}

.acc-colored .acc-item.green {
  border-left-color: #10B981;
}

.acc-colored .acc-item.amber {
  border-left-color: #F59E0B;
}

.acc-colored .acc-item.red {
  border-left-color: #EF4444;
}

.acc-colored .acc-item.purple {
  border-left-color: #7C3AED;
}

/* ── Icon left variant ───────────────────────────────────── */
.acc-icon-left .acc-trigger {
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 0.875rem;
}

.acc-icon-left .acc-trigger .acc-icon {
  margin-left: auto;
}

/* ── Filled / solid header ───────────────────────────────── */
.acc-filled .acc-trigger.open {
  background: var(--color-primary);
  color: #fff;
}

.acc-filled .acc-item {
  border-color: transparent;
}

/* ── Shadow card ─────────────────────────────────────────── */
.acc-shadow .acc-item {
  border: none;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.08);
  margin-bottom: 0.75rem;
}

.acc-shadow .acc-item:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

/* ── Step / timeline ─────────────────────────────────────── */
.acc-steps .acc-item {
  position: relative;
  padding-left: 3rem;
  border: none;
  border-bottom: 1px solid var(--body-border);
  border-radius: 0;
  margin-bottom: 0;
}

.acc-steps .acc-item:last-child {
  border-bottom: none;
}

.acc-steps .step-num {
  position: absolute;
  left: 0;
  top: 1rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-primary-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
}

.acc-steps .acc-item.done .step-num {
  background: #10B981;
  color: #fff;
}

.acc-steps .acc-trigger {
  padding-left: 0;
  background: transparent;
}

.acc-steps .acc-trigger.open {
  background: transparent;
}

.acc-steps .acc-body {
  padding-left: 0;
}

/* ── FAQ style ───────────────────────────────────────────── */
.acc-faq .acc-item {
  background: var(--body-bg);
  border: 1.5px solid var(--body-border);
  border-radius: 1rem;
}

.acc-faq .acc-trigger {
  background: transparent;
  font-size: 0.9375rem;
  font-weight: 600;
}

.acc-faq .acc-trigger.open {
  background: transparent;
  color: var(--color-primary);
}

.acc-faq .q-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 800;
  flex-shrink: 0;
}

.acc-faq .acc-trigger.open .q-badge {
  background: var(--color-primary);
  color: #fff;
}

/* ── Nested ──────────────────────────────────────────────── */
.acc-nested .acc-item {
  margin-bottom: 0.375rem;
}

.acc-nested-child {
  margin: 0.5rem 0 0.25rem 1.25rem;
  border-left: 2px solid var(--body-border);
  padding-left: 0.875rem;
}

.acc-nested-child .acc-item {
  border-radius: 0.5rem;
  font-size: 0.875rem;
}

/* ── Dark / inverted ─────────────────────────────────────── */
.acc-dark .acc-item {
  background: var(--sidebar-bg, #13142B);
  border-color: rgba(255, 255, 255, 0.08);
}

.acc-dark .acc-trigger {
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
}

.acc-dark .acc-trigger.open {
  background: rgba(91, 143, 249, 0.15);
  color: #7ba7ff;
}

.acc-dark .acc-body {
  color: rgba(255, 255, 255, 0.55);
}

/* ── Multi-open ──────────────────────────────────────────── */
/* handled by JS flag, same CSS as default */
/* ── Smooth animation using max-height ───────────────────── */
.acc-animated .acc-body {
  display: block;
  max-height: 0;
  overflow: hidden;
  padding-top: 0;
  padding-bottom: 0;
  transition: max-height 0.3s ease, padding 0.25s ease;
}

.acc-animated .acc-body.show {
  max-height: 400px;
  padding-bottom: 1rem;
}

/* ── UI Carousel (ui-carousel.html) ── */
/* ── shared carousel shell ─────────────────────────────────────── */
.hc-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 0.875rem;
  user-select: none;
}

.hc-track {
  display: flex;
  will-change: transform;
  transition: transform 0.42s cubic-bezier(0.4, 0, 0.2, 1);
}

.hc-slide {
  flex-shrink: 0;
  min-width: 100%;
}

/* prev/next */
.hc-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: #fff;
  cursor: pointer;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
  transition: background 0.15s;
}

.hc-btn:hover {
  background: rgba(255, 255, 255, 0.38);
}

.hc-btn.lft {
  left: 12px;
}

.hc-btn.rgt {
  right: 12px;
}

/* dots */
.hc-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 4;
}

.hc-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.28s;
}

.hc-dot.on {
  width: 22px;
  border-radius: 4px;
  background: #fff;
}

.hc-dots.dk .hc-dot {
  background: rgba(0, 0, 0, 0.18);
}

.hc-dots.dk .hc-dot.on {
  background: var(--color-primary);
}

/* fade variant */
.hc-fade {
  position: relative;
}

.hc-fade .hc-track {
  display: block;
}

.hc-fade .hc-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s;
  min-width: 100%;
}

.hc-fade .hc-slide.vis {
  opacity: 1;
  position: relative;
}

/* card carousel */
.cc-outer {
  position: relative;
  overflow: hidden;
  padding: 0 0.25rem;
}

.cc-track {
  display: flex;
  gap: 1rem;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.cc-card {
  flex-shrink: 0;
  width: calc(33.333% - 0.667rem);
}

@media (max-width: 900px) {
  .cc-card {
    width: calc(50% - 0.5rem);
  }
}
@media (max-width: 600px) {
  .cc-card {
    width: 100%;
  }
}
.cc-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 1px solid var(--body-border);
  color: var(--body-text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 4;
  transition: all 0.15s;
}

.cc-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.cc-btn.lft {
  left: -14px;
}

.cc-btn.rgt {
  right: -14px;
}

/* progress indicator */
.prog-rail {
  display: flex;
  gap: 4px;
  margin-top: 0.75rem;
}

.prog-seg {
  flex: 1;
  height: 3px;
  border-radius: 999px;
  background: var(--body-border);
  cursor: pointer;
  overflow: hidden;
  transition: background 0.2s;
}

.prog-fill {
  height: 100%;
  width: 0%;
  background: var(--color-primary);
  border-radius: 999px;
}

/* vertical carousel */
.vc-port {
  height: 200px;
  overflow: hidden;
  border-radius: 0.875rem;
}

.vc-track {
  transition: transform 0.42s cubic-bezier(0.4, 0, 0.2, 1);
}

.vc-slide {
  height: 200px;
}

/* announcement ticker */
.ticker-item {
  display: none;
  align-items: center;
  gap: 0.875rem;
  padding: 0.875rem 1.375rem;
}

.ticker-item.on {
  display: flex;
}

.ticker-dots {
  display: flex;
  gap: 4px;
}

.ticker-dot {
  height: 4px;
  width: 8px;
  border-radius: 2px;
  background: var(--body-border);
  cursor: pointer;
  transition: all 0.25s;
}

.ticker-dot.on {
  width: 20px;
  background: var(--color-primary);
}

/* lightbox */
.lb-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}

.lb-overlay.open {
  display: flex;
}

.lb-card {
  position: relative;
  width: min(92vw, 860px);
  border-radius: 1.25rem;
  overflow: hidden;
}

.lb-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.lb-nav.lft {
  left: 16px;
}

.lb-nav.rgt {
  right: 16px;
}

.lb-close {
  position: fixed;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.lb-foot {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 1rem;
}

.lb-fd {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.25s;
}

.lb-fd.on {
  width: 22px;
  border-radius: 4px;
  background: #fff;
}

/* section label */
.sl {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--body-text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 2rem 0 1rem;
}

.sl::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--body-border);
}

/* ── UI Modal (ui-modal.html) ── */
/* ── Modal shell overrides ──────────────────────────────────────── */
.modal-content {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 1rem;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.22);
}

.modal-header {
  border-color: var(--body-border);
  padding: 1.25rem 1.5rem;
}

.modal-body {
  padding: 1.375rem 1.5rem;
}

.modal-footer {
  border-color: var(--body-border);
  padding: 1rem 1.5rem;
  gap: 0.5rem;
}

.modal-title {
  font-weight: 800;
  color: var(--body-text);
  font-size: 1rem;
}

.btn-close {
  filter: var(--btn-close-filter, none);
}

/* ── Section label ─────────────────────────────────────────────── */
.sl {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--body-text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 2rem 0 1rem;
}

.sl::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--body-border);
}

/* ── hr-input (used in modal forms) ───────────────────────────── */
.hr-inp {
  width: 100%;
  padding: 0.6rem 0.875rem;
  border-radius: 0.5rem;
  border: 1.5px solid var(--body-border);
  background: var(--body-bg);
  color: var(--body-text);
  font-size: 0.875rem;
  outline: none;
  box-sizing: border-box;
  font-family: var(--font);
  transition: border-color 0.15s;
}

.hr-inp:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(91, 143, 249, 0.12);
}

.hr-inp::placeholder {
  color: var(--body-text-muted);
}

.hr-lbl {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--body-text-muted);
  display: block;
  margin-bottom: 0.375rem;
}

/* ── Drawer (side modal) ───────────────────────────────────────── */
.modal-drawer .modal-dialog {
  margin: 0;
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
}

.modal-drawer .modal-content {
  border-radius: 1.25rem 0 0 1.25rem;
  height: 100%;
  overflow-y: auto;
}

/* ── Fullscreen modal ──────────────────────────────────────────── */
.modal-fullscreen .modal-content {
  border-radius: 0;
}

/* ── Wizard steps ──────────────────────────────────────────────── */
.wiz-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  position: relative;
}

.wiz-step:not(:last-child)::after {
  content: "";
  flex: 1;
  height: 2px;
  background: var(--body-border);
  margin: 0 0.5rem;
}

.wiz-step.done::after {
  background: var(--color-primary);
}

.wiz-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--body-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--body-text-muted);
  background: var(--card-bg);
  flex-shrink: 0;
  transition: all 0.2s;
}

.wiz-step.active .wiz-num {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-primary-light);
}

.wiz-step.done .wiz-num {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: #fff;
}

.wiz-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--body-text-muted);
}

.wiz-step.active .wiz-label {
  color: var(--color-primary);
  font-weight: 700;
}

/* ── Toast / alert style modal ────────────────────────────────── */
.modal-toast .modal-dialog {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  top: auto;
  left: auto;
  margin: 0;
  max-width: 360px;
}

.modal-toast .modal-content {
  border-radius: 0.875rem;
}

/* ── Spinner ───────────────────────────────────────────────────── */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.spin-sm {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  animation: spin 0.75s linear infinite;
  display: inline-block;
}

/* ── Rating stars ──────────────────────────────────────────────── */
.star-pick {
  cursor: pointer;
  font-size: 1.375rem;
  color: var(--body-border);
  transition: color 0.15s;
}

.star-pick.lit {
  color: #F59E0B;
}

/* ── UI Tabs (ui-tabs.html) ── */
/* ── Section label ──────────────────────────────────────────── */
.sl {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--body-text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 2rem 0 1rem;
}

.sl::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--body-border);
}

/* ── Tab content hide/show ──────────────────────────────────── */
.ht-pane {
  display: none;
}

.ht-pane.on {
  display: block;
}

/* ── 1. Default pill tabs ───────────────────────────────────── */
.ht-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
}

.ht-btn {
  padding: 0.45rem 0.875rem;
  border: none;
  border-radius: 0.5rem;
  background: transparent;
  color: var(--body-text-muted);
  font-weight: 600;
  font-size: 0.845rem;
  cursor: pointer;
  font-family: var(--font);
  transition: all 0.18s;
  white-space: nowrap;
}

.ht-btn:hover:not(.on) {
  background: var(--body-bg);
  color: var(--body-text);
}

.ht-btn.on {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(91, 143, 249, 0.28);
}

/* ── 2. Underline tabs ──────────────────────────────────────── */
.ht-ul {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 2px solid var(--body-border);
}

.ht-ul-btn {
  padding: 0.6rem 1rem;
  border: none;
  background: transparent;
  color: var(--body-text-muted);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  font-family: var(--font);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.18s;
  white-space: nowrap;
}

.ht-ul-btn:hover:not(.on) {
  color: var(--body-text);
}

.ht-ul-btn.on {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.ht-ul-content {
  padding: 1.25rem;
  border: 1px solid var(--body-border);
  border-top: none;
  border-radius: 0 0 0.75rem 0.75rem;
}

/* ── 3. Segmented control ───────────────────────────────────── */
.ht-seg {
  display: inline-flex;
  border: 1.5px solid var(--body-border);
  border-radius: 0.625rem;
  overflow: hidden;
  background: var(--body-bg);
  margin-bottom: 0.875rem;
}

.ht-seg-btn {
  padding: 0.4rem 0.875rem;
  border: none;
  background: transparent;
  color: var(--body-text-muted);
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  font-family: var(--font);
  border-right: 1px solid var(--body-border);
  transition: all 0.15s;
}

.ht-seg-btn:last-child {
  border-right: none;
}

.ht-seg-btn.on {
  background: var(--color-primary);
  color: #fff;
}

.ht-seg-btn:hover:not(.on) {
  background: var(--color-primary-light);
  color: var(--color-primary);
}

/* ── 4. Pill outline ────────────────────────────────────────── */
.ht-pill {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-bottom: 0.875rem;
}

.ht-pill-btn {
  padding: 0.4rem 0.875rem;
  border: 1.5px solid var(--body-border);
  border-radius: 999px;
  background: transparent;
  color: var(--body-text-muted);
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  font-family: var(--font);
  transition: all 0.18s;
}

.ht-pill-btn:hover:not(.on) {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.ht-pill-btn.on {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(91, 143, 249, 0.28);
}

/* ── 5. Icon tabs ───────────────────────────────────────────── */
.ht-icon-bar {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--body-border);
  margin-bottom: 0.75rem;
}

.ht-icon-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.625rem 1rem;
  border: none;
  background: transparent;
  color: var(--body-text-muted);
  font-weight: 600;
  font-size: 0.72rem;
  cursor: pointer;
  font-family: var(--font);
  border-radius: 0.5rem 0.5rem 0 0;
  transition: all 0.18s;
  min-width: 72px;
}

.ht-icon-btn i {
  font-size: 1.1rem;
  transition: color 0.18s;
}

.ht-icon-btn:hover:not(.on) {
  background: var(--body-bg);
}

.ht-icon-btn.on {
  background: var(--color-primary-light);
  color: var(--color-primary);
}

.ht-icon-btn.on i {
  color: var(--color-primary);
}

/* ── 6. Vertical tabs ───────────────────────────────────────── */
.ht-vert-bar {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 160px;
  flex-shrink: 0;
}

.ht-vert-btn {
  padding: 0.5rem 0.875rem;
  border: none;
  border-left: 2.5px solid transparent;
  background: transparent;
  color: var(--body-text-muted);
  font-weight: 600;
  font-size: 0.845rem;
  cursor: pointer;
  font-family: var(--font);
  text-align: left;
  border-radius: 0 0.375rem 0.375rem 0;
  transition: all 0.18s;
  white-space: nowrap;
}

.ht-vert-btn:hover:not(.on) {
  background: var(--body-bg);
  color: var(--body-text);
}

.ht-vert-btn.on {
  border-left-color: var(--color-primary);
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-weight: 700;
}

/* ── 7. Badge tabs ──────────────────────────────────────────── */
.tab-bdg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  font-size: 0.6rem;
  font-weight: 800;
  background: rgba(239, 68, 68, 0.12);
  color: #EF4444;
  margin-left: 0.35rem;
  transition: all 0.18s;
}

.ht-btn.on .tab-bdg {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

/* ── 8. Card/boxed tabs ─────────────────────────────────────── */
.ht-card-bar {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--body-border);
}

.ht-card-btn {
  padding: 0.625rem 1rem;
  border: 1px solid transparent;
  border-radius: 0.5rem 0.5rem 0 0;
  background: transparent;
  color: var(--body-text-muted);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  font-family: var(--font);
  border-bottom: none;
  margin-bottom: -1px;
  transition: all 0.18s;
}

.ht-card-btn:hover:not(.on) {
  border-color: var(--body-border);
  background: var(--body-bg);
}

.ht-card-btn.on {
  border-color: var(--body-border);
  background: var(--card-bg);
  color: var(--color-primary);
  font-weight: 700;
  border-bottom-color: var(--card-bg);
}

.ht-card-content {
  padding: 1.25rem;
  border: 1px solid var(--body-border);
  border-top: none;
  border-radius: 0 0 0.75rem 0.75rem;
}

/* ── 9. Colour-coded tabs ───────────────────────────────────── */
.ht-color-btn {
  padding: 0.45rem 0.875rem;
  border: none;
  border-radius: 0.5rem;
  background: transparent;
  color: var(--body-text-muted);
  font-weight: 600;
  font-size: 0.845rem;
  cursor: pointer;
  font-family: var(--font);
  transition: all 0.18s;
}

/* ── 10. Scrollable ─────────────────────────────────────────── */
.ht-scroll-wrap {
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.ht-scroll-wrap::-webkit-scrollbar {
  display: none;
}

/* ── 11. Responsive tabs (collapse on mobile) ───────────────── */
.ht-resp-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
}

@media (max-width: 576px) {
  .ht-resp-bar {
    flex-direction: column;
  }
  .ht-resp-bar .ht-btn {
    text-align: left;
    border-radius: 0.375rem;
  }
}
/* ── 12. Step tabs (wizard) ─────────────────────────────────── */
.ht-step-bar {
  display: flex;
  align-items: center;
  margin-bottom: 1.25rem;
}

.ht-step-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
}

.ht-step-item:not(:last-child)::after {
  content: "";
  flex: 1;
  height: 2px;
  background: var(--body-border);
  margin: 0 0.5rem;
  transition: background 0.3s;
}

.ht-step-item.done::after {
  background: var(--color-primary);
}

.ht-step-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--body-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--body-text-muted);
  background: var(--card-bg);
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.25s;
}

.ht-step-item.active .ht-step-num {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-primary-light);
}

.ht-step-item.done .ht-step-num {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: #fff;
}

.ht-step-lbl {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--body-text-muted);
  white-space: nowrap;
}

.ht-step-item.active .ht-step-lbl, .ht-step-item.done .ht-step-lbl {
  color: var(--color-primary);
}

/* ── Shared content box ─────────────────────────────────────── */
.tcb {
  padding: 1.25rem;
  background: var(--body-bg);
  border-radius: 0.75rem;
  border: 1px solid var(--body-border);
}

/* ── Mini stat ──────────────────────────────────────────────── */
.ms {
  padding: 0.875rem;
  background: var(--card-bg);
  border-radius: 0.625rem;
  border: 1px solid var(--body-border);
  text-align: center;
}

.ms .v {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--body-text);
  line-height: 1;
}

.ms .l {
  font-size: 0.72rem;
  color: var(--body-text-muted);
  margin-top: 0.2rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes pulse-dot {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}
/* ── UI Typography (ui-typography.html) ── */
/* ── Section label ────────────────────────────────────────────── */
.sl {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--body-text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 2rem 0 1rem;
}

.sl::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--body-border);
}

/* ── Type scale row ──────────────────────────────────────────── */
.ts-row {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--body-border);
}

.ts-row:last-child {
  border-bottom: none;
}

.ts-meta {
  min-width: 80px;
  flex-shrink: 0;
}

.ts-size {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--body-text-muted);
  display: block;
}

.ts-name {
  font-size: 0.65rem;
  color: var(--body-text-muted);
  opacity: 0.7;
}

/* ── Font weight sample ──────────────────────────────────────── */
.fw-row {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--body-border);
}

.fw-row:last-child {
  border-bottom: none;
}

.fw-num {
  font-size: 0.72rem;
  color: var(--body-text-muted);
  font-weight: 500;
  min-width: 40px;
  flex-shrink: 0;
}

/* ── Inline code ─────────────────────────────────────────────── */
.ic {
  font-size: 0.875rem;
  background: rgba(91, 143, 249, 0.08);
  color: #5B8FF9;
  padding: 0.2rem 0.5rem;
  border-radius: 0.375rem;
  font-family: monospace;
}

/* ── Blockquote style ────────────────────────────────────────── */
.bq {
  border-left: 4px solid var(--color-primary);
  padding: 0.875rem 1.25rem;
  background: rgba(91, 143, 249, 0.05);
  border-radius: 0 0.625rem 0.625rem 0;
  margin: 0;
}

.bq-text {
  font-size: 1.0625rem;
  font-style: italic;
  color: var(--body-text);
  line-height: 1.75;
  margin-bottom: 0.5rem;
}

.bq-cite {
  font-size: 0.8125rem;
  color: var(--body-text-muted);
  font-weight: 600;
}

.bq.success {
  border-left-color: #10B981;
  background: rgba(16, 185, 129, 0.05);
}

.bq.warning {
  border-left-color: #F59E0B;
  background: rgba(245, 158, 11, 0.05);
}

.bq.danger {
  border-left-color: #EF4444;
  background: rgba(239, 68, 68, 0.05);
}

/* ── Text colour swatches ────────────────────────────────────── */
.tc-swatch {
  padding: 0.75rem 1rem;
  border-radius: 0.625rem;
  border: 1px solid var(--body-border);
  font-size: 0.875rem;
}

/* ── List styles ─────────────────────────────────────────────── */
.hr-list {
  padding-left: 0;
  list-style: none;
  margin: 0;
}

.hr-list li {
  padding: 0.375rem 0;
  border-bottom: 1px solid var(--body-border);
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.9rem;
}

.hr-list li:last-child {
  border-bottom: none;
}

.hr-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
  flex-shrink: 0;
  margin-top: 0.45rem;
}

.hr-list.check li::before {
  content: none;
}

.hr-list.check li .chk {
  font-size: 0.9rem;
  margin-top: 0.05rem;
  flex-shrink: 0;
}

/* ── Label / tag styles ──────────────────────────────────────── */
.lbl-upper {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--body-text-muted);
}

.lbl-section {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--body-text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lbl-section::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--body-border);
}

/* ── Text truncation demo ────────────────────────────────────── */
.trunc-box {
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.9rem;
  color: var(--body-text);
  padding: 0.5rem 0.75rem;
  background: var(--body-bg);
  border-radius: 0.5rem;
  border: 1px solid var(--body-border);
}

/* ── Highlight / mark ────────────────────────────────────────── */
mark.hr-mark {
  background: rgba(245, 158, 11, 0.18);
  color: var(--body-text);
  border-radius: 0.25rem;
  padding: 0.05rem 0.3rem;
}

/* ── Code block ──────────────────────────────────────────────── */
.code-block {
  background: var(--body-bg);
  border: 1px solid var(--body-border);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  font-size: 0.8125rem;
  font-family: monospace;
  color: var(--body-text);
  line-height: 1.7;
  overflow-x: auto;
}

.code-block .kw {
  color: #7C3AED;
}

.code-block .str {
  color: #10B981;
}

.code-block .cm {
  color: var(--body-text-muted);
}

.code-block .num {
  color: #F59E0B;
}

/* ── under-construction-3 (under-construction-3.html) ── */
@keyframes pulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
  100% {
    opacity: 1;
  }
}
.fin-bar-track {
  height: 8px;
  border-radius: 999px;
  background: var(--body-border);
  overflow: hidden;
}

.fin-bar-fill {
  height: 100%;
  border-radius: 999px;
}

.cost-item {
  padding: 0.75rem;
  border-radius: 0.625rem;
  background: var(--body-bg);
}

.avatar-stack {
  display: flex;
  align-items: center;
}
.avatar-stack .av-item {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--card-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  margin-left: -9px;
  flex-shrink: 0;
}
.avatar-stack .av-item:first-child {
  margin-left: 0;
}

.la-row {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--body-border);
}
.la-row:last-child {
  border-bottom: none;
}

.ai-bubble {
  background: var(--body-bg);
  border-radius: 0.875rem;
  padding: 0.875rem 1rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--body-text);
}

.ai-bubble-out {
  background: var(--color-primary);
  border-radius: 0.875rem;
  padding: 0.875rem 1rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: #fff;
  margin-left: auto;
  max-width: 80%;
}

.ai-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1.5px solid var(--body-border);
  border-radius: 999px;
  padding: 0.5rem 0.5rem 0.5rem 1rem;
}
.ai-input-wrap input {
  border: none;
  outline: none;
  background: transparent;
  flex: 1;
  font-size: 0.8125rem;
  color: var(--body-text);
  font-family: inherit;
}

.ai-send-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #16181F;
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
}

.online-badge-lt {
  font-size: 0.68rem;
  font-weight: 700;
  color: #10B981;
  background: rgba(16, 185, 129, 0.1);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.online-badge-lt::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10B981;
}

.scatter-legend,
.legend-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--body-text-muted);
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.kpi-spark {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 36px;
  margin-top: 0.875rem;
}
.kpi-spark span {
  flex: 1;
  background: var(--body-border);
  border-radius: 2px 2px 0 0;
  min-height: 3px;
  align-self: flex-end;
}
.kpi-spark span.hl {
  background: var(--bar-color, #4F6EF7);
}

.env-tabs {
  display: inline-flex;
  background: var(--body-bg);
  border: 1px solid var(--body-border);
  border-radius: 0.625rem;
  padding: 0.2rem;
}

.env-tab {
  padding: 0.375rem 0.875rem;
  border-radius: 0.4375rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--body-text-muted);
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.13s ease;
}
.env-tab.active {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(79, 110, 247, 0.28);
}

.storage-bars {
  display: flex;
  align-items: flex-end;
  gap: 1.25rem;
  height: 240px;
  padding: 0 0.5rem;
}

.storage-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
}

.storage-track {
  position: relative;
  width: 100%;
  max-width: 56px;
  height: 100%;
  background: var(--body-bg2);
  border-radius: 0.5rem 0.5rem 0 0;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.storage-fill {
  width: 100%;
  border-radius: 0.5rem 0.5rem 0 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 0.5rem;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  transition: height 0.8s ease;
}

.storage-label {
  margin-top: 0.625rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--body-text-muted);
}

.module-card {
  padding: 0.875rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid var(--body-border);
  background: var(--body-bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.mfa-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.mfa-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--body-border);
}
.mfa-dot.on {
  background: linear-gradient(135deg, #F59E0B, #F97316);
}

.qa-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: center;
  padding: 0.5rem;
}
.qa-btn:hover .qa-icon {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.qa-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #16181F;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  transition: transform 0.13s ease;
}

.qa-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--body-text);
  line-height: 1.25;
}

.hour-card {
  padding: 0.875rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid var(--body-border);
  background: var(--body-bg);
}

.hour-bar {
  height: 6px;
  border-radius: 999px;
  background: var(--body-border);
  overflow: hidden;
  margin-top: 0.625rem;
}

.hour-fill {
  height: 100%;
  border-radius: 999px;
}

.heatmap-grid {
  display: grid;
  grid-template-columns: repeat(24, 1fr);
  gap: 4px;
}

.heatmap-cell {
  aspect-ratio: 1;
  border-radius: 3px;
  background: var(--body-border);
}

.role-bar-seg {
  height: 14px;
}
.role-bar-seg:first-child {
  border-radius: 999px 0 0 999px;
}
.role-bar-seg:last-child {
  border-radius: 0 999px 999px 0;
}

.col-lg-2-4 {
  position: relative;
  width: 100%;
  padding-right: calc(var(--bs-gutter-x, 1.5rem) * 0.5);
  padding-left: calc(var(--bs-gutter-x, 1.5rem) * 0.5);
}
@media (min-width: 992px) {
  .col-lg-2-4 {
    flex: 0 0 auto;
    width: 20%;
  }
}

.fin-topbar-card {
  background: var(--card-bg);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  border: 1px solid var(--card-border);
  transition: box-shadow 0.13s ease, border-color 0.13s ease;
}
.fin-topbar-card:hover {
  box-shadow: var(--card-shadow-hover);
  border-color: rgba(79, 110, 247, 0.2);
}
.fin-topbar-card {
  padding: 1.25rem;
  position: relative;
  overflow: hidden;
  height: 100%;
}

.fin-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: #fff;
}

.fin-spark {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 40px;
}
.fin-spark span {
  flex: 1;
  border-radius: 2px 2px 0 0;
  min-height: 3px;
}

.diverge-chart {
  display: flex;
  align-items: stretch;
  gap: 0.625rem;
  height: 260px;
}

.diverge-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.diverge-top {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.diverge-bottom {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.diverge-bar {
  width: 60%;
  max-width: 14px;
  border-radius: 3px;
}

.diverge-baseline {
  height: 1px;
  background: var(--body-border);
}

.gauge-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-card {
  background: var(--card-bg);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  border: 1px solid var(--card-border);
  transition: box-shadow 0.13s ease, border-color 0.13s ease;
}
.ai-card:hover {
  box-shadow: var(--card-shadow-hover);
  border-color: rgba(79, 110, 247, 0.2);
}
.ai-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.ai-avatar {
  width: 38px;
  height: 38px;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #8B5CF6, #EC4899);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.upsell-card {
  border-radius: 1rem;
  background: linear-gradient(145deg, #0B0E1A 0%, #151933 55%, #0B0E1A 100%);
  padding: 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  color: #fff;
}
.upsell-card::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -30%;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 110, 247, 0.35), transparent 70%);
}

.fh-bars {
  display: flex;
  align-items: flex-end;
  gap: 0.625rem;
  height: 170px;
}

.fh-bar {
  flex: 1;
  border-radius: 0.4rem 0.4rem 0 0;
  background: linear-gradient(180deg, #94A3B8, #CBD5E1);
}

.ov-stat {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.125rem;
  border-radius: 0.875rem;
  background: var(--body-bg);
  height: 100%;
}

.ov-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #fff;
  flex-shrink: 0;
}

.att-bars {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  height: 280px;
  padding: 0 0.25rem;
  margin-top: 2rem;
}

.att-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
  position: relative;
}

.att-track {
  position: relative;
  width: 100%;
  max-width: 44px;
  height: 100%;
  display: flex;
  align-items: flex-end;
}

.att-fill {
  width: 100%;
  border-radius: 0.4rem 0.4rem 0 0;
}

.att-label {
  margin-top: 0.625rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--body-text-muted);
}

.att-peak-badge {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: #16181F;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  border-radius: 0.4rem;
  white-space: nowrap;
}

.status-dark-card {
  border-radius: 1rem;
  background: linear-gradient(145deg, #0B0E1A 0%, #151933 60%, #0B0E1A 100%);
  padding: 1.5rem;
  height: 100%;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.status-dark-card::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -20%;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.3), transparent 70%);
}

.wd-track {
  display: flex;
  gap: 4px;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  margin: 1rem 0 1.25rem;
}

.wd-seg {
  flex: 1;
  border-radius: 2px;
}

.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.status-row:last-child {
  border-bottom: none;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.viol-bars {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
  height: 100px;
}

.vb {
  width: 28px;
  border-radius: 0.3rem 0.3rem 0 0;
  position: relative;
}
.vb .vb-label {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--body-text);
  white-space: nowrap;
}

.la-mini-bar {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 22px;
}
.la-mini-bar span {
  width: 4px;
  border-radius: 1px 1px 0 0;
  background: #F97316;
}

.ai-dark-card {
  border-radius: 1rem;
  background: #0B0E1A;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #fff;
}

.ai-dark-hd {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.125rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ai-dark-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #16181F;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.online-badge {
  font-size: 0.68rem;
  font-weight: 700;
  color: #10B981;
  background: rgba(16, 185, 129, 0.15);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.online-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10B981;
}

.ai-dark-bubble {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 0.875rem;
  padding: 0.875rem 1rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
}

.suggest-chip {
  display: inline-block;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 0.5rem 0.875rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 0.25rem 0.375rem 0.25rem 0;
  cursor: pointer;
}

.ai-dark-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 0.5rem 0.5rem 0.5rem 1rem;
  margin: auto 1.25rem 1.25rem;
}
.ai-dark-input-wrap input {
  border: none;
  outline: none;
  background: transparent;
  flex: 1;
  font-size: 0.8125rem;
  color: #fff;
  font-family: inherit;
}
.ai-dark-input-wrap input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.ai-dark-send {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #F97316;
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
}

.hire-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  padding: 0.4rem 0.5rem;
  border-radius: 0.5rem;
  color: #fff;
  font-weight: 800;
  font-size: 0.8125rem;
}
.hire-pill.empty {
  background: var(--body-bg2);
  color: transparent;
}

.hire-table-hd, .hire-table-row {
  display: grid;
  grid-template-columns: 1.6fr repeat(5, 1fr);
  gap: 0.5rem;
}

.hire-table-hd {
  padding: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--body-text-muted);
  border-bottom: 1px solid var(--body-border);
  margin-bottom: 0.75rem;
}

.hire-table-row {
  align-items: center;
  padding: 0.625rem 0;
}

.gauge-ring-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gauge-center-val {
  position: absolute;
  text-align: center;
}

.reminder-card {
  border-radius: 1rem;
  background: linear-gradient(135deg, #0E3A52 0%, #164E63 100%);
  padding: 1.5rem;
  color: #fff;
  position: relative;
  overflow: hidden;
  height: 100%;
}
.reminder-card::before {
  content: "";
  position: absolute;
  bottom: -40%;
  right: -20%;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 70%);
}

.stat-icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin: 0 auto 0.75rem;
}

.ai-recruit-card {
  background: var(--card-bg);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  border: 1px solid var(--card-border);
  transition: box-shadow 0.13s ease, border-color 0.13s ease;
}
.ai-recruit-card:hover {
  box-shadow: var(--card-shadow-hover);
  border-color: rgba(79, 110, 247, 0.2);
}
.ai-recruit-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
}

.ai-recruit-icon {
  width: 64px;
  height: 64px;
  border-radius: 1rem;
  background: linear-gradient(135deg, #F97316, #EF4444);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: #fff;
  margin: 0 auto 0.875rem;
}

.tth-bars {
  display: flex;
  align-items: flex-end;
  gap: 1.5rem;
  height: 180px;
  padding: 0 0.5rem;
}

.tth-col {
  flex: 1;
  display: flex;
  flex-direction: column-reverse;
  max-width: 70px;
  margin: 0 auto;
  border-radius: 0.4rem 0.4rem 0 0;
  overflow: hidden;
}

.tth-seg {
  width: 100%;
}

.sched-date-badge {
  width: 52px;
  height: 52px;
  border-radius: 0.625rem;
  background: var(--body-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stage-card {
  background: var(--card-bg);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  border: 1px solid var(--card-border);
  transition: box-shadow 0.13s ease, border-color 0.13s ease;
}
.stage-card:hover {
  box-shadow: var(--card-shadow-hover);
  border-color: rgba(79, 110, 247, 0.2);
}
.stage-card {
  padding: 1.125rem;
  height: 100%;
}

.app-card {
  background: var(--card-bg);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  border: 1px solid var(--card-border);
  transition: box-shadow 0.13s ease, border-color 0.13s ease;
}
.app-card:hover {
  box-shadow: var(--card-shadow-hover);
  border-color: rgba(79, 110, 247, 0.2);
}
.app-card {
  padding: 1rem;
  margin-bottom: 0.75rem;
}
.app-card:last-child {
  margin-bottom: 0;
}

.priority-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 0.35rem;
  display: inline-block;
  margin-top: 0.2rem;
}

.rev-chart {
  width: 100%;
  display: block;
}

/*# sourceMappingURL=hrnexus-pages.css.map */
