:root {
  --bg-main: #f4f5f8;
  --bg-card: #ffffff;
  --bg-sidebar: #0c1631;
  --bg-sidebar-accent: #111a3d;

  --text-main: #111827;
  --text-muted: #6b7280;
  --text-light: #d1d5db;

  --primary: #2563eb;
  --primary-soft: #e0ecff;
  --accent-green: #16a34a;
  --accent-purple: #7c3aed;
  --accent-orange: #ea580c;
  --accent-navy: #1f2937;

  --border-subtle: #e5e7eb;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--text-main);
  background: var(--bg-main);
}

body {
  min-height: 100vh;
}

.app {
  display: flex;
  min-height: 100vh;
}

/* SIDEBAR */

.sidebar {
  width: 270px;
  background: radial-gradient(circle at top left, #172554 0, #020617 55%);
  color: white;
  display: flex;
  flex-direction: column;
  padding: 20px 18px;
}

.sidebar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.8);
  margin-bottom: 24px;
}

.sidebar__logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563eb, #22c55e);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
}

.sidebar__logo-text {
  display: flex;
  flex-direction: column;
}

.sidebar__logo-title {
  font-weight: 600;
  font-size: 16px;
}

.sidebar__logo-subtitle {
  font-size: 11px;
  color: rgba(209, 213, 219, 0.75);
}

.sidebar__nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
}

.sidebar__nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  margin: 2px 0;
  border-radius: 10px;
  color: rgba(229, 231, 235, 0.9);
  text-decoration: none;
  font-size: 13px;
  transition: background 0.15s ease, color 0.15s ease;
}

.sidebar__nav-item i {
  width: 18px;
  text-align: center;
  font-size: 13px;
}

.sidebar__nav-item:hover {
  background: rgba(15, 23, 42, 0.9);
}

.sidebar__nav-item--active {
  background: linear-gradient(135deg, #2563eb, #22c55e);
  color: #e5e7eb;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.35);
}

.sidebar__footer {
  margin-top: 16px;
  padding-top: 10px;
  border-top: 1px solid rgba(30, 64, 175, 0.7);
}

.sidebar__badge {
  display: flex;
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.85);
}

.sidebar__badge i {
  font-size: 16px;
  color: #facc15;
}

.sidebar__badge-title {
  font-size: 12px;
  font-weight: 600;
}

.sidebar__badge-text {
  font-size: 11px;
  color: #9ca3af;
}

/* MAIN */

.main {
  flex: 1;
  padding: 18px 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* HEADER */

.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.main-header__left h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
}

.main-header__left p {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}

.main-header__right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border-radius: 999px;
  padding: 7px 10px;
  border: 1px solid var(--border-subtle);
}

.search-box i {
  font-size: 13px;
  color: var(--text-muted);
}

.search-box input {
  border: none;
  outline: none;
  font-size: 13px;
  width: 220px;
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border-radius: 999px;
  padding: 6px 10px;
  border: 1px solid var(--border-subtle);
}

.user-menu__avatar {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: white;
}

.user-menu__info {
  display: flex;
  flex-direction: column;
}

.user-menu__name {
  font-size: 12px;
  font-weight: 500;
}

.user-menu__role {
  font-size: 11px;
  color: var(--text-muted);
}

.user-menu__chevron {
  font-size: 10px;
  color: var(--text-muted);
}

/* SUMMARY CARDS */

.summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.summary-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 12px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #e5e7eb;
}

.summary-card__icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.summary-card__icon--blue {
  background: linear-gradient(135deg, #2563eb, #38bdf8);
}

.summary-card__icon--green {
  background: linear-gradient(135deg, #16a34a, #22c55e);
}

.summary-card__icon--purple {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
}

.summary-card__icon--orange {
  background: linear-gradient(135deg, #ea580c, #f97316);
}

.summary-card__content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.summary-card__label {
  font-size: 11px;
  color: var(--text-muted);
}

.summary-card__value {
  font-size: 17px;
  font-weight: 600;
}

.summary-card__meta {
  font-size: 11px;
  color: var(--text-muted);
}

/* GRID LAYOUT */

.grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 16px;
  align-items: flex-start;
}

.grid-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* PANELS */

.panel {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 14px 14px 12px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.panel__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.panel__header h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.panel__header p {
  margin: 3px 0 0;
  font-size: 12px;
  color: var(--text-muted);
}

.panel__header--compact {
  margin-bottom: 6px;
}

/* BUTTONS */

.btn {
  border-radius: 999px;
  border: none;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.btn--primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.3);
}

.btn--primary:hover {
  filter: brightness(1.03);
}

.btn--ghost {
  background: transparent;
  border: 1px solid #d1d5db;
  color: #111827;
}

.btn--ghost:hover {
  background: #f9fafb;
}

.btn--icon-only {
  padding: 6px;
  border-radius: 999px;
  width: 30px;
  height: 30px;
  justify-content: center;
}

/* CLIENT CARD */

.client-card {
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  padding: 12px 12px 10px;
  background: linear-gradient(145deg, #ffffff, #f9fafb);
}

.client-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.client-card__header h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.client-card__header p {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--text-muted);
}

.client-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 10px;
}

.client-card__label {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
}

.client-card__value {
  font-size: 12px;
  font-weight: 500;
}

.client-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.client-card__footer {
  display: flex;
  gap: 8px;
}

.tag {
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.tag--status {
  background: #f97316;
  color: #fff7ed;
}

.tag--danger {
  background: #fee2e2;
  color: #b91c1c;
}

.tag--warning {
  background: #fef3c7;
  color: #92400e;
}

.tag--low {
  background: #e0f2fe;
  color: #075985;
}

.chip {
  background: #e5f0ff;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  color: #1e40af;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.chip i {
  font-size: 8px;
}

/* WIZARD */

.wizard {
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  padding: 10px 10px 8px;
  background: #f9fafb;
}

.wizard__steps {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  overflow-x: auto;
}

.wizard__step {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px dashed #d1d5db;
  font-size: 11px;
  color: #6b7280;
}

.wizard__step--active {
  border-style: solid;
  border-color: var(--primary);
  background: #e0ecff;
  color: #1d4ed8;
}

.wizard__step-number {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
}

.wizard__body {
  background: #ffffff;
  border-radius: 10px;
  padding: 10px;
  border: 1px solid #e5e7eb;
}

.wizard__question {
  margin-bottom: 10px;
}

.wizard__question label {
  font-size: 12px;
  font-weight: 500;
  display: block;
  margin-bottom: 6px;
}

.wizard__options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.wizard__recommendation h3 {
  margin: 0 0 4px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.wizard__recommendation h3 i {
  color: var(--accent-green);
}

.wizard__recommendation p {
  margin: 0 0 4px;
  font-size: 12px;
  color: var(--text-muted);
}

.wizard__recommendation ul {
  margin: 0;
  padding-left: 16px;
  font-size: 12px;
  color: var(--text-muted);
}

.wizard__footer {
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
}

.pill {
  border-radius: 999px;
  border: 1px solid #d1d5db;
  padding: 4px 9px;
  font-size: 11px;
  background: white;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.pill--active {
  background: var(--primary-soft);
  border-color: var(--primary);
  color: #1d4ed8;
}

.pill--outline {
  background: transparent;
  border-color: #cbd5f5;
  color: #1d4ed8;
}

/* TABLE */

.table-wrapper {
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.table thead {
  background: #f9fafb;
}

.table th,
.table td {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

.table th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.table tbody tr:hover {
  background: #f9fafb;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 500;
  color: white;
}

.badge--navy {
  background: var(--accent-navy);
}

.badge--orange {
  background: var(--accent-orange);
}

.badge--blue {
  background: #0ea5e9;
}

.badge--green {
  background: #16a34a;
}

.badge--purple {
  background: #7c3aed;
}

/* STATUS DOTS */

.status-dot {
  font-size: 11px;
  padding-left: 18px;
  position: relative;
}

.status-dot::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 7px;
  height: 7px;
  border-radius: 999px;
}

.status-dot--pending::before {
  background: #f97316;
}

.status-dot--progress::before {
  background: #2563eb;
}

.status-dot--notstarted::before {
  background: #9ca3af;
}

.status-dot--completed::before {
  background: #16a34a;
}

/* SPLIT PANEL */

.panel--split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 10px;
}

.panel__split-column--bordered {
  border-left: 1px solid #e5e7eb;
  padding-left: 10px;
}

/* TASK LIST */

.task-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.task {
  display: flex;
  gap: 8px;
  padding: 7px 6px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  margin-bottom: 6px;
  background: #f9fafb;
}

.task--muted {
  opacity: 0.7;
}

.task__status {
  width: 8px;
  border-radius: 999px;
  background: #d1d5db;
}

.task__status--high {
  background: #ef4444;
}

.task__status--medium {
  background: #f97316;
}

.task__status--low {
  background: #0ea5e9;
}

.task__status--done {
  background: #16a34a;
}

.task__body {
  flex: 1;
}

.task__title {
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 2px;
}

.task__meta {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  gap: 10px;
}

.task__meta i {
  font-size: 10px;
}

/* TIMELINE */

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.timeline__item {
  display: flex;
  gap: 8px;
  padding: 7px 2px 7px 0;
  border-bottom: 1px dashed #e5e7eb;
}

.timeline__item:last-child {
  border-bottom: none;
}

.timeline__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  margin-top: 4px;
}

.timeline__dot--blue {
  background: #2563eb;
}

.timeline__dot--purple {
  background: #7c3aed;
}

.timeline__dot--green {
  background: #16a34a;
}

.timeline__content {
  flex: 1;
}

.timeline__title {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 2px;
}

.timeline__meta {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  gap: 8px;
  margin-bottom: 3px;
}

.timeline__content p {
  margin: 0 0 4px;
  font-size: 11px;
  color: var(--text-main);
}

/* KB GRID */

.kb-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.kb-card {
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  padding: 10px 10px 8px;
  background: #f9fafb;
}

.kb-card__header {
  margin-bottom: 4px;
}

.kb-card__tag {
  display: inline-block;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 600;
  color: white;
}

.kb-card__tag--navy {
  background: var(--accent-navy);
}

.kb-card__tag--orange {
  background: var(--accent-orange);
}

.kb-card__tag--purple {
  background: var(--accent-purple);
}

.kb-card__header h3 {
  margin: 4px 0 0;
  font-size: 13px;
}

.kb-card p {
  margin: 4px 0 4px;
  font-size: 11px;
  color: var(--text-muted);
}

.kb-card__list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 11px;
  color: var(--text-main);
}

.kb-card__list li {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}

.kb-card__list i {
  font-size: 10px;
  color: var(--text-muted);
}

/* RESPONSIVE */

@media (max-width: 1080px) {
  .sidebar {
    display: none;
  }

  .main {
    padding: 14px 14px 20px;
  }

  .summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .panel--split {
    grid-template-columns: minmax(0, 1fr);
  }

  .panel__split-column--bordered {
    border-left: none;
    border-top: 1px solid #e5e7eb;
    padding-left: 0;
    padding-top: 8px;
    margin-top: 8px;
  }

  .kb-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .main-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-header__right {
    width: 100%;
    justify-content: space-between;
  }

  .summary {
    grid-template-columns: minmax(0, 1fr);
  }

  .kb-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .search-box input {
    width: 140px;
  }
}
/* === CLIENTS & ENGAGEMENTS PAGE EXTRAS === */

.page-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.page-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.page-tab {
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  font-size: 11px;
  padding: 5px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: #4b5563;
}

.page-tab i {
  font-size: 11px;
}

.page-tab--active {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: #1d4ed8;
}

.page-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.page-filter-select {
  border-radius: 999px;
  border: 1px solid #d1d5db;
  padding: 5px 10px;
  font-size: 11px;
  background: #ffffff;
}

/* Narrower grid variant */
.grid--clients {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
}

/* Client list */

.client-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.client-row {
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  padding: 10px 10px;
  background: #ffffff;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.client-row--active {
  border-color: var(--primary);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.16);
  background: linear-gradient(135deg, #ffffff, #eff6ff);
}

.client-row:hover {
  background: #f9fafb;
}

.client-row__primary h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.client-row__primary p {
  margin: 3px 0 4px;
  font-size: 12px;
  color: var(--text-muted);
}

.client-row__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.client-row__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 170px;
  align-items: flex-end;
  justify-content: center;
}

.client-row__label {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
}

.client-row__value {
  font-size: 12px;
  font-weight: 500;
}

/* Sector badge */

.badge--sector {
  background: #ecfdf5;
  color: #166534;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 600;
}

/* Smaller regulator badges reuse existing colors */

.badge--sm {
  font-size: 9px;
  padding: 2px 7px;
}

/* Engagement summary */

.engagement-summary {
  border-radius: 10px;
  border: 1px dashed #d1d5db;
  padding: 8px 10px;
  background: #f9fafb;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.engagement-summary__item {
  font-size: 12px;
}

.engagement-summary__label {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
}

.engagement-summary__value {
  font-size: 12px;
  font-weight: 500;
}

/* Engagement list */

.engagement-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.engagement {
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  padding: 9px 10px;
  background: #ffffff;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.engagement--muted {
  opacity: 0.75;
}

.engagement__left {
  flex: 1;
}

.engagement__right {
  min-width: 120px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 6px;
}

.engagement__title {
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
}

.engagement__meta {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}

.engagement__meta i {
  font-size: 10px;
}

.engagement__desc {
  margin: 0;
  font-size: 11px;
  color: #4b5563;
}

.engagement__label {
  font-size: 11px;
  color: var(--text-muted);
}

.engagement__value {
  font-size: 13px;
  font-weight: 600;
}

.btn--small {
  padding: 4px 10px;
  font-size: 11px;
}

/* Engagement status pills */

.engagement__pill {
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 600;
}

.engagement__pill--active {
  background: #dcfce7;
  color: #166534;
}

.engagement__pill--planning {
  background: #e0f2fe;
  color: #075985;
}

.engagement__pill--closed {
  background: #f3f4f6;
  color: #4b5563;
}

/* Responsive tweaks for clients page */

@media (max-width: 960px) {
  .grid--clients {
    grid-template-columns: minmax(0, 1fr);
  }

  .client-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .client-row__meta {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    margin-top: 4px;
  }

  .engagement {
    flex-direction: column;
  }

  .engagement__right {
    align-items: flex-start;
  }
}
/* === BUSINESS SETUP WIZARD PAGE EXTRAS === */

.page-bar--wizard {
  margin-top: 6px;
  margin-bottom: 8px;
  align-items: flex-start;
}

/* Info note */

.wizard-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  max-width: 520px;
}

.wizard-note i {
  color: #16a34a;
  font-size: 14px;
  margin-top: 2px;
}

.wizard-note__title {
  font-size: 12px;
  font-weight: 600;
  color: #166534;
}

.wizard-note__text {
  font-size: 11px;
  color: #166534;
}

/* Stage indicator on right */

.wizard-stage {
  padding: 6px 10px;
  border-radius: 999px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.wizard-stage__label {
  font-weight: 600;
  color: #1d4ed8;
}

.wizard-stage__value {
  color: #1f2937;
}

/* Layout override */

.grid--wizard {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.05fr);
}

/* Wizard tweaks */

.wizard--full {
  background: #f9fafb;
}

.wizard-hint {
  margin: 2px 0 6px;
  font-size: 11px;
  color: #6b7280;
}

.wizard__options--wrap {
  gap: 6px;
}

.wizard-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.wizard-two-col__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wizard-label {
  font-size: 11px;
  font-weight: 500;
  color: #4b5563;
}

.wizard__question--muted {
  border-radius: 10px;
  padding: 8px;
  background: #f3f4f6;
}

.wizard-preview-box {
  border-radius: 10px;
  border: 1px dashed #d1d5db;
  background: #ffffff;
  padding: 8px 9px;
  font-size: 12px;
  color: #4b5563;
}

.wizard-preview-tag {
  display: inline-block;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 600;
  background: #e5f0ff;
  color: #1d4ed8;
  margin-bottom: 4px;
}

.wizard__footer--between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.wizard__footer-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.wizard-progress-label {
  font-size: 11px;
  color: #6b7280;
}

.wizard-progress-bar {
  width: 90px;
  height: 6px;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
  position: relative;
}

.wizard-progress-bar__fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563eb, #22c55e);
}

.wizard-progress-text {
  font-size: 11px;
  color: #4b5563;
}

/* Setup summary */

.setup-summary {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.setup-summary__card {
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  padding: 10px;
  background: #f9fafb;
}

.setup-summary__header h3 {
  margin: 4px 0 4px;
  font-size: 14px;
}

.setup-summary__header p {
  margin: 0;
  font-size: 11px;
  color: #4b5563;
}

.setup-summary__chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 600;
  background: #dcfce7;
  color: #166534;
}

.setup-summary__chip i {
  font-size: 10px;
}

.setup-summary__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 6px;
}

.setup-summary__item {
  font-size: 12px;
}

.setup-summary__label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #4b5563;
  margin-bottom: 2px;
}

.setup-summary__item ul {
  margin: 0;
  padding-left: 16px;
  font-size: 11px;
  color: #4b5563;
}

.setup-summary__alternatives {
  border-radius: 10px;
  border: 1px dashed #e5e7eb;
  padding: 8px 9px;
  background: #ffffff;
}

.setup-summary__alt-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 4px;
}

.setup-alt__title {
  font-size: 12px;
  font-weight: 500;
}

.setup-alt__note {
  font-size: 11px;
  color: #6b7280;
}

/* Checklist & fees */

.setup-checklist {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checklist {
  margin: 0;
  padding-left: 18px;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.checklist__title {
  font-weight: 500;
}

.checklist__meta {
  font-size: 11px;
  color: #6b7280;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.checklist__meta i {
  font-size: 10px;
}

/* Fee summary */

.fee-summary {
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  padding: 8px 9px;
  background: #f9fafb;
}

.fee-summary__header h3 {
  margin: 0 0 3px;
  font-size: 13px;
}

.fee-summary__header p {
  margin: 0 0 6px;
  font-size: 11px;
  color: #6b7280;
}

.fee-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.fee-table th,
.fee-table td {
  padding: 4px 6px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
}

.fee-table th {
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 10px;
  color: #6b7280;
}

.fee-summary__cta {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Responsive adjustments */

@media (max-width: 960px) {
  .wizard-two-col {
    grid-template-columns: minmax(0, 1fr);
  }

  .grid--wizard {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* === OBLIGATIONS & CHECKLISTS PAGE EXTRAS === */

.obligations-bar {
  margin-top: 6px;
  margin-bottom: 8px;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.obligation-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.obligation-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Layout override */
.grid--obligations {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.95fr);
}

/* Table–client styling */

.obligations-table-wrapper {
  max-height: 295px;
  overflow: auto;
}

.table--obligations tbody tr.table-row--highlight {
  background: #f9fafb;
}

.table--obligations tbody tr.table-row--highlight:hover {
  background: #eff6ff;
}

.table-client {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.table-client__name {
  font-size: 12px;
  font-weight: 500;
}

.table-client__tag {
  font-size: 11px;
  color: #6b7280;
}

/* Checklist card */

.checklist-card {
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  padding: 9px 10px;
  background: #f9fafb;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.checklist-card__meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.checklist-card__label {
  display: block;
  font-size: 11px;
  color: #6b7280;
}

.checklist-card__value {
  font-size: 12px;
  font-weight: 500;
}

.checklist--card {
  margin-top: 4px;
}

.checklist-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  border-top: 1px dashed #e5e7eb;
  padding-top: 6px;
}

.checklist-status-label {
  font-size: 11px;
  color: #4b5563;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.checklist-status-label i {
  color: #22c55e;
}

.checklist-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Due soon list */

.due-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.due-item {
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  padding: 8px 9px;
  background: #ffffff;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.due-item--critical {
  border-color: #fecaca;
  background: #fef2f2;
}

.due-item__left {
  flex: 1;
}

.due-item__title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 2px;
}

.due-item__meta {
  font-size: 11px;
  color: #6b7280;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.due-item__right {
  min-width: 70px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
}

.due-item__date {
  font-size: 12px;
  font-weight: 600;
}

/* Regulator summary */

.reg-summary {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}

.reg-summary__row {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 2fr) auto;
  align-items: center;
  gap: 6px;
  font-size: 11px;
}

.reg-summary__label {
  display: flex;
  align-items: center;
  gap: 6px;
}

.reg-summary__text {
  color: #4b5563;
}

.reg-summary__bar {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
}

.reg-summary__fill {
  height: 100%;
  border-radius: 999px;
}

.reg-summary__fill--orange {
  background: linear-gradient(135deg, #f97316, #fbbf24);
}

.reg-summary__fill--navy {
  background: linear-gradient(135deg, #1f2937, #4b5563);
}

.reg-summary__fill--blue {
  background: linear-gradient(135deg, #0ea5e9, #38bdf8);
}

.reg-summary__fill--green {
  background: linear-gradient(135deg, #16a34a, #22c55e);
}

.reg-summary__fill--purple {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
}

.reg-summary__count {
  font-size: 11px;
  font-weight: 600;
  color: #111827;
}

.reg-summary__footer {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

/* Responsive tweaks */

@media (max-width: 960px) {
  .grid--obligations {
    grid-template-columns: minmax(0, 1fr);
  }

  .checklist-card__meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reg-summary__row {
    grid-template-columns: minmax(0, 1.8fr) minmax(0, 2.2fr);
    grid-auto-flow: row;
  }

  .reg-summary__count {
    justify-self: flex-start;
  }
}

@media (max-width: 720px) {
  .checklist-card__meta {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* === CONTRACTS MANAGEMENT PAGE EXTRAS === */

.contracts-bar {
  margin-top: 6px;
  margin-bottom: 8px;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.contracts-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.contracts-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Layout override */
.grid--contracts {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.95fr);
}

/* Portfolio table */

.table--contracts tbody tr.table-row--highlight {
  background: #f9fafb;
}

.table--contracts tbody tr.table-row--highlight:hover {
  background: #eff6ff;
}

.contract-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contract-cell__title {
  font-size: 12px;
  font-weight: 500;
}

.contract-cell__badge {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  border-radius: 999px;
  padding: 2px 8px;
  background: #eef2ff;
  color: #4338ca;
}

.contract-cell__badge--alert {
  background: #fef3c7;
  color: #92400e;
}

/* Status pill */

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 600;
}

.status-pill--review {
  background: #eff6ff;
  color: #1d4ed8;
}

.status-pill--active {
  background: #dcfce7;
  color: #166534;
}

.status-pill--closed {
  background: #e5e7eb;
  color: #4b5563;
}

/* Status dots reused from obligations */

.status-dot {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.status-dot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
}

.status-dot--pending {
  background: #fef3c7;
  color: #92400e;
}

.status-dot--pending::before {
  background: #f59e0b;
}

.status-dot--progress {
  background: #e0f2fe;
  color: #075985;
}

.status-dot--progress::before {
  background: #0ea5e9;
}

.status-dot--notstarted {
  background: #f3f4f6;
  color: #4b5563;
}

.status-dot--notstarted::before {
  background: #9ca3af;
}

.status-dot--completed {
  background: #dcfce7;
  color: #166534;
}

.status-dot--completed::before {
  background: #22c55e;
}

/* Renewals mini timeline */

.renewal-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.renewal-item {
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  padding: 8px 9px;
  background: #ffffff;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.renewal-item--soon {
  border-color: #fecaca;
  background: #fef2f2;
}

.renewal-item__left {
  flex: 1;
}

.renewal-item__title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 2px;
}

.renewal-item__meta {
  font-size: 11px;
  color: #6b7280;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.renewal-item__right {
  min-width: 80px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
}

.renewal-item__date {
  font-size: 12px;
  font-weight: 600;
}

/* Contract detail */

.contract-detail {
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  padding: 9px 10px;
  background: #f9fafb;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contract-detail__header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.contract-detail__header h3 {
  margin: 0 0 3px;
  font-size: 14px;
}

.contract-detail__header p {
  margin: 0;
  font-size: 11px;
  color: #6b7280;
}

.contract-detail__labels {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: flex-end;
}

.contract-detail__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.contract-detail__item {
  font-size: 12px;
}

.contract-detail__label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #4b5563;
  margin-bottom: 2px;
}

.contract-detail__value {
  color: #4b5563;
}

.contract-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag--outline {
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  font-size: 11px;
  padding: 3px 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #374151;
}

.contract-reminders {
  border-top: 1px dashed #d1d5db;
  padding-top: 6px;
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contract-reminders__label {
  display: block;
  font-size: 11px;
  color: #6b7280;
}

.contract-reminders__value {
  font-size: 12px;
  font-weight: 500;
}

/* Review feed */

.review-feed {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.review-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: flex-start;
  padding: 7px 8px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
}

.review-item__icon {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #ffffff;
}

.review-item__icon--upload {
  background: #0ea5e9;
}

.review-item__icon--analysis {
  background: #f97316;
}

.review-item__icon--draft {
  background: #22c55e;
}

.review-item__icon--reminder {
  background: #6366f1;
}

.review-item__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px;
}

.review-item__title {
  font-size: 12px;
  font-weight: 600;
}

.review-item__meta {
  font-size: 10px;
  color: #6b7280;
}

.review-item__text {
  margin: 2px 0 0;
  font-size: 11px;
  color: #4b5563;
}

.review-item__list {
  margin: 3px 0 0;
  padding-left: 16px;
  font-size: 11px;
  color: #4b5563;
}

.review-tags {
  margin-top: 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Responsive tweaks */

@media (max-width: 960px) {
  .grid--contracts {
    grid-template-columns: minmax(0, 1fr);
  }

  .contract-detail__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .contract-detail__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .renewal-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .renewal-item__right {
    align-items: flex-start;
  }
}
/* === TASKS & WORKFLOWS PAGE EXTRAS === */

.tasks-bar {
  margin-top: 6px;
  margin-bottom: 8px;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.tasks-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tasks-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Layout */

.grid--tasks {
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.9fr);
}

/* Kanban board */

.kanban {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  overflow-x: auto;
}

.kanban-column {
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  display: flex;
  flex-direction: column;
  max-height: 420px;
}

.kanban-column__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 8px;
  border-bottom: 1px solid #e5e7eb;
}

.kanban-column__title {
  font-size: 12px;
  font-weight: 600;
  color: #111827;
}

.kanban-column__count {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e5e7eb;
  color: #374151;
}

.kanban-column__body {
  padding: 7px 8px 8px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  overflow-y: auto;
}

/* Kanban card */

.kanban-card {
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  padding: 7px 8px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 11px;
}

.kanban-card--active {
  border-color: #2563eb;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.17);
  background: linear-gradient(135deg, #ffffff, #eff6ff);
}

.kanban-card--muted {
  opacity: 0.75;
}

.kanban-card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 6px;
}

.kanban-card__title {
  font-size: 12px;
  font-weight: 600;
  color: #111827;
}

.kanban-card__client {
  margin: 0;
  color: #4b5563;
}

.kanban-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #6b7280;
}

.kanban-card__meta i {
  font-size: 10px;
}

.kanban-card__footer {
  margin-top: 3px;
  padding-top: 4px;
  border-top: 1px dashed #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}

/* Priority pills */

.pill--priority-high {
  background: #fef3c7;
  color: #92400e;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 600;
}

.pill--priority-medium {
  background: #e0f2fe;
  color: #075985;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 600;
}

.pill--priority-low {
  background: #ecfdf5;
  color: #166534;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 600;
}

/* Task assignee */

.task-assignee {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.task-avatar {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #2563eb;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
}

.task-avatar--small {
  width: 20px;
  height: 20px;
  font-size: 10px;
}

.task-assignee__name {
  font-size: 11px;
  color: #374151;
}

.task-tag {
  font-size: 10px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  padding: 2px 7px;
  color: #4b5563;
}

/* My Day */

.myday-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.myday-item {
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  padding: 7px 8px;
  background: #ffffff;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
}

.myday-item--focus {
  border-color: #2563eb;
  background: #eff6ff;
}

.myday-item__left {
  flex: 1;
}

.myday-item__title {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 2px;
}

.myday-item__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #6b7280;
}

.myday-item__right {
  min-width: 90px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

/* Workflow templates */

.workflow-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.workflow-item {
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  padding: 8px 9px;
  background: #ffffff;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.workflow-item__info {
  flex: 1;
}

.workflow-item__title {
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.workflow-item__title i {
  font-size: 12px;
  color: #2563eb;
}

.workflow-item p {
  margin: 3px 0 4px;
  font-size: 11px;
  color: #4b5563;
}

.workflow-item__meta {
  font-size: 10px;
  color: #6b7280;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Responsive tweaks */

@media (max-width: 1100px) {
  .kanban {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .grid--tasks {
    grid-template-columns: minmax(0, 1fr);
  }

  .kanban {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .kanban {
    grid-template-columns: minmax(0, 1fr);
  }

  .workflow-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .myday-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .myday-item__right {
    align-items: flex-start;
  }
}
/* === REGULATOR KNOWLEDGE BASE PAGE EXTRAS === */

.regkb-bar {
  margin-top: 6px;
  margin-bottom: 8px;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.regkb-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.regkb-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Layout */

.grid--regkb {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.95fr);
}

/* Regulator list */

.reg-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.reg-card {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  padding: 7px 8px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  font-size: 11px;
  text-align: left;
  cursor: pointer;
}

.reg-card--active {
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.15);
}

.reg-card__icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 14px;
}

.reg-card__icon--navy {
  background: #1f2937;
}

.reg-card__icon--orange {
  background: #f97316;
}

.reg-card__icon--blue {
  background: #0ea5e9;
}

.reg-card__icon--green {
  background: #16a34a;
}

.reg-card__icon--purple {
  background: #7c3aed;
}

.reg-card__icon--teal {
  background: #14b8a6;
}

.reg-card__icon--indigo {
  background: #4f46e5;
}

.reg-card__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.reg-card__title {
  font-size: 12px;
  font-weight: 600;
  color: #111827;
}

.reg-card__subtitle {
  color: #4b5563;
}

.reg-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.reg-tag {
  font-size: 10px;
  border-radius: 999px;
  padding: 2px 7px;
  background: #eef2ff;
  color: #4338ca;
}

.reg-card__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}

.reg-card__stat {
  font-size: 10px;
  color: #4b5563;
}

.reg-card__link {
  font-size: 10px;
  color: #2563eb;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Regulator detail */

.reg-detail {
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  padding: 9px 10px;
  background: #f9fafb;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.reg-detail__meta {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.5fr) minmax(0, 1.3fr);
  gap: 8px;
  font-size: 12px;
}

.reg-detail__label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #4b5563;
  margin-bottom: 2px;
}

.reg-detail__value {
  color: #4b5563;
}

.reg-detail__sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.reg-detail__block h3 {
  margin: 0 0 3px;
  font-size: 12px;
}

.reg-detail-list {
  margin: 0;
  padding-left: 16px;
  font-size: 11px;
  color: #4b5563;
}

.reg-detail__footer {
  border-top: 1px dashed #d1d5db;
  padding-top: 6px;
  margin-top: 4px;
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
}

/* Quick reference */

.regkb-quick {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.regkb-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.regkb-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #374151;
}

.regkb-pill--active {
  border-color: #2563eb;
  background: #eff6ff;
  color: #1d4ed8;
}

.regkb-pill i {
  font-size: 11px;
}

.regkb-quick__content h3 {
  margin: 0 0 4px;
  font-size: 13px;
}

.regkb-steps {
  margin: 0;
  padding-left: 16px;
  font-size: 11px;
  color: #4b5563;
}

.regkb-steps li + li {
  margin-top: 3px;
}

.regkb-steps-note {
  margin: 5px 0 0;
  font-size: 11px;
  color: #6b7280;
}

/* Internal notes */

.regkb-notes {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.regkb-note {
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  padding: 7px 8px;
  background: #ffffff;
  font-size: 11px;
}

.regkb-note__header {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  align-items: baseline;
}

.regkb-note__title {
  font-size: 12px;
  font-weight: 600;
}

.regkb-note__meta {
  font-size: 10px;
  color: #6b7280;
}

.regkb-note__text {
  margin: 3px 0 4px;
  color: #4b5563;
}

.regkb-note__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.regkb-notes__footer {
  margin-top: 4px;
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
}

/* Responsive */

@media (max-width: 960px) {
  .grid--regkb {
    grid-template-columns: minmax(0, 1fr);
  }

  .reg-detail__meta {
    grid-template-columns: minmax(0, 1fr);
  }

  .reg-detail__sections {
    grid-template-columns: minmax(0, 1fr);
  }

  .reg-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .reg-card__right {
    align-items: flex-start;
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .regkb-note__header {
    flex-direction: column;
    align-items: flex-start;
  }
}
/* === REGULATORY WATCH PAGE EXTRAS === */

.regwatch-bar {
  margin-top: 6px;
  margin-bottom: 8px;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.regwatch-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.regwatch-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Layout */

.grid--regwatch {
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.95fr);
}

/* Alerts feed */

.regwatch-feed {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.regwatch-alert {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: flex-start;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  padding: 8px 9px;
  background: #ffffff;
  font-size: 11px;
}

.regwatch-alert--high {
  border-color: #fecaca;
  background: #fef2f2;
}

.regwatch-alert--medium {
  border-color: #fee2e2;
}

.regwatch-alert--low {
  border-style: dashed;
}

.regwatch-alert__icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #ffffff;
  background: #4b5563;
}

.regwatch-alert--high .regwatch-alert__icon {
  background: #dc2626;
}

.regwatch-alert--medium .regwatch-alert__icon {
  background: #f97316;
}

.regwatch-alert--low .regwatch-alert__icon {
  background: #6b7280;
}

.regwatch-alert__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.regwatch-alert__header {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  align-items: flex-start;
}

.regwatch-alert__header h3 {
  margin: 0 0 2px;
  font-size: 13px;
}

.regwatch-alert__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #6b7280;
  font-size: 10px;
}

.regwatch-alert__text {
  margin: 2px 0 0;
  color: #4b5563;
}

.regwatch-alert__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.regwatch-tag {
  font-size: 10px;
  border-radius: 999px;
  padding: 2px 7px;
  background: #eef2ff;
  color: #4338ca;
}

.regwatch-alert__footer {
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px dashed #e5e7eb;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.regwatch-alert__source {
  font-size: 10px;
  color: #6b7280;
}

.regwatch-alert__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Impact badges */

.regwatch-badge {
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}

.regwatch-badge--high {
  background: #b91c1c;
  color: #fef2f2;
}

.regwatch-badge--medium {
  background: #f97316;
  color: #fffbeb;
}

.regwatch-badge--low {
  background: #e5e7eb;
  color: #374151;
}

/* Timeline */

.regwatch-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid #e5e7eb;
  margin-left: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.regwatch-timeline__item {
  position: relative;
  padding-left: 10px;
}

.regwatch-timeline__dot {
  position: absolute;
  left: -12px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #9ca3af;
  border: 2px solid #ffffff;
}

.regwatch-timeline__item--high .regwatch-timeline__dot {
  background: #dc2626;
}

.regwatch-timeline__content {
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  padding: 6px 8px;
  font-size: 11px;
}

.regwatch-timeline__row {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  align-items: center;
  margin-bottom: 2px;
}

.regwatch-timeline__date {
  font-size: 11px;
  font-weight: 600;
  color: #111827;
}

.regwatch-timeline__title {
  font-size: 12px;
  font-weight: 600;
}

.regwatch-timeline__meta {
  font-size: 10px;
  color: #6b7280;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Impact snapshot */

.regwatch-impact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.regwatch-impact__summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.regwatch-impact__stat {
  flex: 1;
  min-width: 90px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  padding: 6px 8px;
  background: #f9fafb;
}

.regwatch-impact__label {
  display: block;
  font-size: 10px;
  color: #6b7280;
  margin-bottom: 2px;
}

.regwatch-impact__value {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
}

.regwatch-impact__value--high {
  color: #b91c1c;
}

.regwatch-impact__table-wrapper {
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  overflow: hidden;
}

.regwatch-impact__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.regwatch-impact__table th,
.regwatch-impact__table td {
  padding: 6px 7px;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

.regwatch-impact__table th {
  background: #f9fafb;
  font-weight: 600;
  color: #4b5563;
}

/* Topics & keywords */

.regwatch-topics {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.regwatch-topics__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.regwatch-chip {
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 11px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #374151;
}

.regwatch-chip--active {
  border-color: #2563eb;
  background: #eff6ff;
  color: #1d4ed8;
}

.regwatch-topics__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.regwatch-topic {
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  padding: 7px 8px;
  background: #ffffff;
  font-size: 11px;
}

.regwatch-topic__header {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  align-items: baseline;
}

.regwatch-topic__title {
  font-size: 12px;
  font-weight: 600;
}

.regwatch-topic__meta {
  font-size: 10px;
  color: #6b7280;
}

.regwatch-topic__text {
  margin: 3px 0 4px;
  color: #4b5563;
}

.regwatch-topic__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

/* Settings */

.regwatch-settings {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.regwatch-settings__row {
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  padding: 7px 8px;
  background: #ffffff;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: flex-start;
  font-size: 11px;
}

.regwatch-settings__label {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 2px;
}

.regwatch-settings__hint {
  font-size: 10px;
  color: #6b7280;
}

.regwatch-settings__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.regwatch-pill-toggle {
  border-radius: 999px;
  border: 1px solid #d1d5db;
  padding: 3px 8px;
  font-size: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #4b5563;
  background: #ffffff;
}

.regwatch-pill-toggle--on {
  border-color: #2563eb;
  background: #eff6ff;
  color: #1d4ed8;
}

/* Responsive */

@media (max-width: 960px) {
  .grid--regwatch {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .regwatch-alert {
    grid-template-columns: minmax(0, 1fr);
  }

  .regwatch-alert__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .regwatch-timeline {
    margin-left: 8px;
  }

  .regwatch-impact__summary {
    flex-direction: column;
  }

  .regwatch-topic__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .regwatch-settings__row {
    flex-direction: column;
    align-items: flex-start;
  }

  .regwatch-settings__actions {
    justify-content: flex-start;
  }
}
/* === TEMPLATES & DOCUMENTS PAGE EXTRAS === */

.templ-bar {
  margin-top: 6px;
  margin-bottom: 8px;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.templ-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.templ-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Layout */

.grid--templates {
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.95fr);
}

/* Category pills */

.templ-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.templ-pill {
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  padding: 4px 10px;
  font-size: 11px;
  background: #ffffff;
  color: #374151;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.templ-pill--active {
  border-color: #2563eb;
  background: #eff6ff;
  color: #1d4ed8;
}

.templ-pill i {
  font-size: 11px;
}

/* Template list */

.templ-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.templ-card {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  padding: 7px 8px;
  background: #ffffff;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: flex-start;
  font-size: 11px;
  text-align: left;
  cursor: pointer;
}

.templ-card--active {
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.15);
}

.templ-card__icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 14px;
}

.templ-card__icon--blue {
  background: #2563eb;
}

.templ-card__icon--navy {
  background: #1f2937;
}

.templ-card__icon--green {
  background: #16a34a;
}

.templ-card__icon--purple {
  background: #7c3aed;
}

.templ-card__icon--orange {
  background: #f97316;
}

.templ-card__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.templ-card__title {
  font-size: 12px;
  font-weight: 600;
  color: #111827;
}

.templ-card__subtitle {
  color: #4b5563;
}

.templ-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.templ-tag {
  font-size: 10px;
  border-radius: 999px;
  padding: 2px 7px;
  background: #eef2ff;
  color: #4338ca;
}

.templ-card__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}

.templ-card__badge {
  font-size: 10px;
  font-weight: 600;
  border-radius: 999px;
  padding: 2px 8px;
  background: #111827;
  color: #f9fafb;
}

.templ-card__note {
  font-size: 10px;
  color: #6b7280;
}

/* Template detail */

.templ-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.templ-detail {
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  padding: 9px 10px;
  background: #f9fafb;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 11px;
}

.templ-detail__meta {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.2fr) minmax(0, 1.4fr);
  gap: 8px;
}

.templ-detail__label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #4b5563;
  margin-bottom: 2px;
}

.templ-detail__value {
  color: #4b5563;
}

.templ-detail__sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.templ-detail__block h3 {
  margin: 0 0 3px;
  font-size: 12px;
}

.templ-detail-list {
  margin: 0;
  padding-left: 16px;
  font-size: 11px;
  color: #4b5563;
}

.templ-detail__footer {
  border-top: 1px dashed #d1d5db;
  padding-top: 6px;
  margin-top: 4px;
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
}

/* Recently used */

.templ-recent {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.templ-recent__item {
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  padding: 7px 8px;
  background: #ffffff;
  font-size: 11px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.templ-recent__info {
  flex: 1;
}

.templ-recent__title {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 2px;
}

.templ-recent__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #6b7280;
}

/* Packs */

.templ-packs {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.templ-pack {
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  padding: 7px 8px;
  background: #ffffff;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  font-size: 11px;
}

.templ-pack__info {
  flex: 1;
}

.templ-pack__title {
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.templ-pack__title i {
  font-size: 13px;
  color: #2563eb;
}

.templ-pack p {
  margin: 3px 0 4px;
  color: #4b5563;
}

.templ-pack__meta {
  font-size: 10px;
  color: #6b7280;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Upload & versioning */

.templ-upload {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11px;
}

.templ-upload__row {
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  padding: 7px 8px;
  background: #ffffff;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: flex-start;
}

.templ-upload__label {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 2px;
}

.templ-upload__hint {
  font-size: 10px;
  color: #6b7280;
}

/* Responsive */

@media (max-width: 960px) {
  .grid--templates {
    grid-template-columns: minmax(0, 1fr);
  }

  .templ-detail__meta {
    grid-template-columns: minmax(0, 1fr);
  }

  .templ-detail__sections {
    grid-template-columns: minmax(0, 1fr);
  }

  .templ-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .templ-card__right {
    align-items: flex-start;
    grid-column: 1 / -1;
  }

  .templ-pack {
    flex-direction: column;
    align-items: flex-start;
  }

  .templ-upload__row {
    flex-direction: column;
    align-items: flex-start;
  }

  .templ-recent__item {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .templ-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}
/* === MOBILE NAVIGATION === */

/* Hidden by default (desktop) */
.mobile-header,
.mobile-nav {
  display: none;
}

/* Top mobile header bar */
.mobile-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  height: 52px;
  padding: 0 12px;
  background: #0b1120; /* dark navy to match sidebar */
  color: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI',
    sans-serif;
}

.mobile-header__left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-header__logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2563eb, #1f2937);
  font-weight: 700;
  font-size: 14px;
}

.mobile-header__logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.mobile-header__logo-title {
  font-size: 13px;
  font-weight: 600;
}

.mobile-header__logo-subtitle {
  font-size: 10px;
  color: #9ca3af;
}

.mobile-header__toggle {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid #1f2937;
  background: #020617;
  color: #e5e7eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.mobile-header__toggle i {
  font-size: 14px;
}

/* Toggle "X" icon state (simple visual) */
.mobile-header__toggle.is-open i::before {
  content: "\f00d"; /* Font Awesome 'times' icon */
}

/* Slide-down mobile menu */
.mobile-nav {
  position: fixed;
  top: 52px; /* below header */
  left: 0;
  right: 0;
  z-index: 35;
  background: #020617;
  border-bottom: 1px solid #111827;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.24s ease-out;
}

.mobile-nav--open {
  max-height: 400px; /* enough for menu items; adjust if needed */
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.7);
}

.mobile-nav__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  font-size: 13px;
  color: #e5e7eb;
  text-decoration: none;
  border-top: 1px solid rgba(15, 23, 42, 0.9);
}

.mobile-nav__item:first-child {
  border-top: none;
}

.mobile-nav__item i {
  font-size: 14px;
  width: 18px;
  text-align: center;
}

.mobile-nav__item:hover {
  background: #111827;
}

/* SMALL SCREEN BEHAVIOUR:
   - Hide sidebar
   - Show mobile header/nav
   - Add top padding to main content so it isn't under the header
*/
/* Show mobile nav only on small screens (phones / small tablets) */
@media (max-width: 768px) {
  .sidebar {
    display: none;
  }

  .mobile-header {
    display: flex;
  }

  .mobile-nav {
    display: block;
  }

  .main {
    padding-top: 60px; /* clears fixed header */
  }

  .app {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* Force-hide mobile header/nav on wider screens */
@media (min-width: 769px) {
  .mobile-header,
  .mobile-nav {
    display: none !important;
  }

  .main {
    padding-top: 0;
  }
}
