:root {
  /* Brand ramp from the Monarch logo: royal blue #243e79 + vivid yellow #ffe900. */
  --brand-950: #16264c;
  --brand-900: #243e79;
  --brand-800: #2f4d92;
  --brand-700: #33518f;
  --brand-500: #ffe900;
  --brand-200: #fff3a0;
  --brand-100: #fffdf0;
  --ink: #13203a;
  --muted: #6b7488;
  --surface: rgba(255, 255, 255, 0.84);
  /* subtle navy tint used for table header strips, row striping, inset panels */
  --rail: rgba(13, 34, 72, 0.04);
  --rail-strong: rgba(13, 34, 72, 0.08);
}

html, body {
  /* vh, not %: body must always fill the viewport or short pages show the
     bare canvas below the themed gradient (white gap in dark mode). */
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(255, 233, 0, 0.14), transparent 26%),
    radial-gradient(circle at right 15%, rgba(36, 62, 121, 0.10), transparent 22%),
    linear-gradient(180deg, #f5f7fc 0%, #eef2f8 100%);
  color: var(--ink);
  font-family: "Avenir Next", "Segoe UI", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.brand-nav {
  background: linear-gradient(90deg, var(--brand-950), var(--brand-900));
  box-shadow: 0 12px 30px rgba(7, 22, 47, 0.22);
}

.brand-panel,
.hero-card,
.panel-card,
.stat-card,
.project-card,
.project-pill,
.mini-stat {
  backdrop-filter: blur(10px);
}

.brand-panel {
  background: linear-gradient(160deg, var(--brand-950), var(--brand-900));
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-card {
  background:
    radial-gradient(circle at top right, rgba(255, 233, 0, 0.12), transparent 28%),
    linear-gradient(135deg, rgba(36, 62, 121, 0.98), rgba(22, 38, 76, 0.96));
  color: white;
  border: 1px solid rgba(255, 233, 0, 0.22);
  box-shadow: 0 20px 42px rgba(7, 22, 47, 0.18);
}

.panel-card,
.stat-card,
.project-card,
.project-pill,
.mini-stat {
  background: var(--surface);
  border: 1px solid rgba(13, 34, 72, 0.08);
  box-shadow: 0 12px 30px rgba(13, 34, 72, 0.08);
}

.panel-card {
  overflow: hidden;
}

.stat-card {
  padding: 1rem;
  border-radius: 1.25rem;
}

.stat-label,
.eyebrow,
.text-muted {
  color: var(--muted) !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
}

p, .lead {
  text-wrap: pretty;
}

.tabular-nums,
.stat-value {
  font-variant-numeric: tabular-nums;
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
}

.btn-accent {
  background: var(--brand-500);
  border-color: var(--brand-500);
  color: #10203c;
}

.btn-accent:hover {
  background: #e6c200;
  border-color: #e6c200;
  color: #10203c;
}

.btn,
.nav-link,
.dropdown-item {
  transition-property: transform, opacity, background-color, color, border-color, box-shadow;
  transition-duration: 160ms;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}

.btn:active,
.dropdown-item:active {
  transform: scale(0.96);
}

/* Buttons with icons: center content and keep icon+label spaced evenly */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

/* Icon-only buttons: a bare icon, no button chrome — just the glyph with a
   subtle round hover. Keeps the variant's colour (red trash, grey pen, etc.). */
.btn.btn-icon {
  --bs-btn-bg: transparent;
  --bs-btn-border-color: transparent;
  --bs-btn-hover-bg: rgba(128, 128, 128, 0.16);
  --bs-btn-hover-border-color: transparent;
  --bs-btn-hover-color: var(--bs-btn-color);
  --bs-btn-active-bg: rgba(128, 128, 128, 0.24);
  --bs-btn-active-border-color: transparent;
  --bs-btn-active-color: var(--bs-btn-color);
  gap: 0;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border-radius: 50%;
  box-shadow: none;
}
.btn.btn-sm.btn-icon { width: 1.85rem; height: 1.85rem; }
.btn.btn-icon i { font-size: 0.95rem; line-height: 1; }

.auth-shell {
  max-width: 520px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  letter-spacing: 0.01em;
}

.brand-mark-badge {
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 0.7rem;
  background: #fff;
  padding: 2px;
  object-fit: contain;
  box-shadow: 0 6px 16px rgba(7, 22, 47, 0.25);
}

.nav-user {
  opacity: 0.9;
}

.project-card,
.project-pill {
  text-decoration: none;
  color: inherit;
  border-radius: 1.1rem;
  padding: 1rem 1.1rem;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.project-card:hover,
.project-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(13, 34, 72, 0.12);
}

.project-pill {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.table-darkish thead th {
  color: #35507d;
  border-bottom-color: rgba(13, 34, 72, 0.1);
}

.table-darkish tbody tr:hover {
  background: rgba(36, 62, 121, 0.06);
}

.mini-stat {
  padding: 0.85rem 1rem;
  border-radius: 0.95rem;
}

.map-picker-canvas {
  min-height: 420px;
  background: linear-gradient(135deg, rgba(36, 62, 121, 0.10), rgba(255, 233, 0, 0.10));
  border: 1px solid rgba(36, 62, 121, 0.12);
}

@media (max-width: 767px) {
  .display-6 {
    font-size: 2rem;
  }

  .brand-mark span:last-child {
    display: none;
  }

  .hero-card,
  .panel-card,
  .brand-panel {
    border-radius: 1.2rem !important;
  }
}

/* ── Mobile bottom tab bar (phones only) ─────────────────────────────── */
.mobile-tabbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1030;
  display: flex;
  background: #ffffff;
  border-top: 1px solid rgba(13, 34, 72, 0.12);
  box-shadow: 0 -2px 14px rgba(13, 34, 72, 0.08);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.mtab {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 60px;
  padding: 8px 2px;
  border: 0;
  background: transparent;
  color: #6b7488;
  text-decoration: none;
  font-size: 0.68rem;
  font-weight: 500;
}
.mtab:active { background: rgba(13, 34, 72, 0.05); }
.mtab .mtab-ico { font-size: 1.3rem; line-height: 1; }
.mtab.active { color: var(--brand-700, #1a4a8a); font-weight: 700; }

/* ── "More" sheet grid ───────────────────────────────────────────────── */
.mobile-more { height: auto; max-height: 85vh; }
.more-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.more-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 16px 8px;
  border-radius: 14px;
  background: rgba(13, 34, 72, 0.04);
  color: var(--ink, #0d2248);
  text-decoration: none;
  font-size: 0.8rem;
  text-align: center;
  min-height: 84px;
}
.more-item:active { background: rgba(13, 34, 72, 0.10); }
.more-item .ico { font-size: 1.6rem; line-height: 1; }

/* ── Global mobile polish ────────────────────────────────────────────── */
@media (max-width: 991.98px) {
  body { overflow-x: hidden; }
  main { padding-bottom: 88px !important; }   /* clear the fixed tab bar */
  .btn { min-height: 42px; }                  /* easier tap targets */
  .btn-sm { min-height: 34px; }               /* compact buttons stay compact, not stretched */
  .form-control, .form-select { min-height: 42px; font-size: 1rem; }  /* avoid iOS zoom + bigger touch */
  h1.display-6 { font-size: 1.6rem; }
}

/* Mobile lead cards (phones) */
.lead-card {
  padding: 14px 16px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(13, 34, 72, 0.10);
  box-shadow: 0 1px 6px rgba(13, 34, 72, 0.05);
}
.lead-card:active { background: rgba(36, 62, 121, 0.06); }

/* ── Dark theme ──────────────────────────────────────────────────────── */
/* Bootstrap 5.3 themes its own components from data-bs-theme="dark"; these
   rules cover this app's custom surfaces (body, panels, mobile chrome). */
.theme-toggle {
  color: rgba(255, 255, 255, 0.75);
  border: 0;
  background: transparent;
  line-height: 1;
}
.theme-toggle:hover,
.theme-toggle:focus { color: #ffffff; }

[data-bs-theme="dark"] {
  --ink: #e6ebf5;
  --muted: #97a1b6;
  --surface: rgba(24, 32, 52, 0.92);
  --rail: rgba(255, 255, 255, 0.05);
  --rail-strong: rgba(255, 255, 255, 0.10);
}
/* Neutralize fixed Bootstrap "light" utilities so they don't glare in dark mode. */
[data-bs-theme="dark"] .bg-white {
  background-color: var(--surface) !important;
}
[data-bs-theme="dark"] .bg-light {
  background-color: var(--rail) !important;
}
[data-bs-theme="dark"] .table-light,
[data-bs-theme="dark"] .table-light th,
[data-bs-theme="dark"] .table-light > :not(caption) > * > * {
  background-color: var(--rail) !important;
  color: var(--ink) !important;
}
/* outline-dark buttons read as invisible on a dark page — flip them to light. */
[data-bs-theme="dark"] .btn-outline-dark {
  --bs-btn-color: #e6ebf5;
  --bs-btn-border-color: rgba(255, 255, 255, 0.4);
  --bs-btn-hover-bg: #e6ebf5;
  --bs-btn-hover-color: #0d2248;
  --bs-btn-hover-border-color: #e6ebf5;
  --bs-btn-active-bg: #e6ebf5;
  --bs-btn-active-color: #0d2248;
  --bs-btn-active-border-color: #e6ebf5;
}
html[data-bs-theme="dark"],
[data-bs-theme="dark"] body {
  background:
    radial-gradient(circle at top left, rgba(255, 233, 0, 0.08), transparent 26%),
    radial-gradient(circle at right 15%, rgba(47, 77, 146, 0.16), transparent 22%),
    linear-gradient(180deg, #0a1124 0%, #0b1322 100%);
  color: var(--ink);
}
[data-bs-theme="dark"] .panel-card,
[data-bs-theme="dark"] .stat-card,
[data-bs-theme="dark"] .project-card,
[data-bs-theme="dark"] .project-pill,
[data-bs-theme="dark"] .mini-stat,
[data-bs-theme="dark"] .lead-card {
  background: var(--surface);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}
[data-bs-theme="dark"] .lead-card:active { background: rgba(255, 233, 0, 0.10); }
[data-bs-theme="dark"] .mobile-tabbar {
  background: #0c1322;
  border-top-color: rgba(255, 255, 255, 0.08);
}
[data-bs-theme="dark"] .mtab { color: #97a1b6; }
[data-bs-theme="dark"] .mtab.active { color: var(--brand-200); }
[data-bs-theme="dark"] .more-item {
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
}
[data-bs-theme="dark"] .more-item:active { background: rgba(255, 255, 255, 0.10); }

/* ── App shell: left sidebar (desktop) + content ─────────────────────── */
.app-shell { display: block; }
.app-main { min-width: 0; }

/* Mobile top strip — stands in for the old top navbar on phones. */
.app-topbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  background: linear-gradient(90deg, var(--brand-950), var(--brand-900));
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1030;
  box-shadow: 0 8px 22px rgba(7, 22, 47, 0.22);
}
.app-topbar .brand-mark { color: #fff; text-decoration: none; }
.app-topbar .theme-toggle { color: rgba(255, 255, 255, 0.8); }

@media (min-width: 992px) {
  .app-shell { display: flex; align-items: flex-start; min-height: 100vh; }
  .app-sidebar {
    width: 244px;
    flex: 0 0 244px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;               /* nav scrolls internally; brand + foot stay pinned */
    padding: 1rem 0.75rem 1rem;
    background: linear-gradient(170deg, var(--brand-950), var(--brand-900));
    box-shadow: 0 12px 30px rgba(7, 22, 47, 0.22);
  }
  .app-main { flex: 1 1 auto; }
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
  padding: 0.25rem 0.5rem 0.75rem;
}

.sidebar-search {
  position: relative;
  margin: 0 0.25rem 0.75rem;
}
.sidebar-search i {
  position: absolute;
  left: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
  pointer-events: none;
}
.sidebar-search input {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  color: #fff;
  padding-left: 2rem;
}
.sidebar-search input::placeholder { color: rgba(255, 255, 255, 0.5); }
.sidebar-search input:focus {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--brand-500);
  color: #fff;
  box-shadow: none;
}

.sidebar-nav {
  overflow-y: auto;
  min-height: 0;
  scrollbar-width: thin;                                    /* Firefox */
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}
.sidebar-nav::-webkit-scrollbar { width: 6px; }
.sidebar-nav::-webkit-scrollbar-track { background: transparent; }
.sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px; /* unslop-ignore: scrollbar thumb idiom */
}
.sidebar-nav:hover::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.3); }
.sidebar-nav::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.4); }
.side-section {
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.9rem 0.75rem 0.35rem;
}
.side-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.5rem 0.75rem;
  margin: 0.1rem 0.25rem;
  border-radius: 0.7rem;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;   /* keeps labels on one line while the rail animates */
  transition: background-color 140ms ease, color 140ms ease;
}
.side-link i { width: 1.2rem; text-align: center; font-size: 0.95rem; opacity: 0.85; }
.side-link:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.side-link.active {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  box-shadow: inset 3px 0 0 var(--brand-500);
}
.side-link.active i { opacity: 1; color: var(--brand-200); }

.sidebar-foot {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 0.5rem;
  margin-top: 0.5rem;
}
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.6rem 0.25rem;
}
.sidebar-user-info { flex: 1 1 auto; min-width: 0; }
.sidebar-user-name { color: #fff; font-size: 0.82rem; font-weight: 600; }
.sidebar-user-role { color: rgba(255, 255, 255, 0.5); font-size: 0.68rem; }
.sidebar-user .theme-toggle { color: rgba(255, 255, 255, 0.7); }
.sidebar-user .theme-toggle:hover { color: #fff; }

/* ── Retractable sidebar ─────────────────────────────────────────────── */
.sidebar-toggle {
  position: absolute;
  top: 12px;
  right: -11px;
  z-index: 6;
  width: 22px;
  height: 22px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: var(--brand-900, #10254c);
  color: rgba(255, 255, 255, 0.85);
  display: none;                 /* shown only on desktop, where the sidebar exists */
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(7, 22, 47, 0.35);
}
.sidebar-toggle:hover { background: var(--brand-700, #25518f); color: #fff; }

@media (min-width: 992px) {
  .sidebar-toggle { display: inline-flex; }

  /* Smooth slide when the toggle button collapses/expands the sidebar. */
  .app-sidebar { transition: width 200ms ease, flex-basis 200ms ease, padding 200ms ease; }

  /* Collapsed = the SAME sidebar, just narrower: text hidden, icons kept,
     section separators and every control preserved. */
  html.sidebar-collapsed .app-sidebar { width: 76px; flex: 0 0 76px; padding-left: 0.4rem; padding-right: 0.4rem; }

  html.sidebar-collapsed .sidebar-brand span,
  html.sidebar-collapsed .side-link span,
  html.sidebar-collapsed .sidebar-foot .side-link span,
  html.sidebar-collapsed .sidebar-user-name,
  html.sidebar-collapsed .sidebar-user-role,
  html.sidebar-collapsed .sidebar-search input { display: none; }

  html.sidebar-collapsed .sidebar-brand { justify-content: center; padding-left: 0; padding-right: 0; }
  html.sidebar-collapsed .side-link { justify-content: center; gap: 0; margin-left: 0.2rem; margin-right: 0.2rem; }
  html.sidebar-collapsed .side-link.active { box-shadow: none; }

  /* Section label -> a divider line, so the grouping/separator stays. */
  html.sidebar-collapsed .side-section {
    height: 0;
    padding: 0;
    margin: 0.55rem 0.6rem;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
  }

  /* Search stays, collapsed to just its icon. */
  html.sidebar-collapsed .sidebar-search { text-align: center; }
  html.sidebar-collapsed .sidebar-search i {
    position: static;
    transform: none;
    display: inline-block;
    padding: 0.5rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
  }

  /* Foot keeps the avatar + toggles (as icons); wrap to fit the narrow rail. */
  html.sidebar-collapsed .sidebar-user { justify-content: center; flex-wrap: wrap; }
}

/* ── Lead workspace (single-screen; panels scroll internally, page doesn't) ── */
.lead-workspace { display: flex; flex-direction: column; gap: 0.85rem; }
.lead-facts { row-gap: 0.35rem; }
.lead-facts > span { display: inline-flex; align-items: center; white-space: nowrap; }
.lead-grid { display: grid; grid-template-columns: 1fr; gap: 0.85rem; }
.lead-col { display: flex; flex-direction: column; min-height: 0; }
.lead-col-scroll { min-height: 0; }
.lead-col-scroll::-webkit-scrollbar { width: 6px; }
.lead-col-scroll::-webkit-scrollbar-thumb { background: var(--rail-strong); border-radius: 999px; } /* unslop-ignore: scrollbar thumb idiom */

@media (min-width: 992px) {
  .lead-workspace { height: calc(100vh - 3rem); }
  .lead-grid { flex: 1 1 auto; min-height: 0; grid-template-columns: 5fr 4fr 3fr; }
  .lead-col { overflow: hidden; }
  .lead-col-scroll { flex: 1 1 auto; overflow-y: auto; padding-right: 0.35rem; }
}

@media (max-width: 991.98px) {
  /* On phones the agent's next action (log a call, schedule a visit) comes
     right under the header — before the timeline, not buried below it. */
  .lead-grid > .lead-col:nth-child(2) { order: -1; }

  /* Kanban card ⋯ menu needs a real touch target. */
  .kanban-card .dropdown > .btn {
    min-width: 2.2rem;
    min-height: 2rem;
    font-size: 1.05rem;
  }
}

/* ── Calendar month (wall) view ──────────────────────────────────────── */
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: var(--rail-strong);
  border: 1px solid var(--rail-strong);
  border-radius: 0.9rem;
  overflow: hidden;
}
.cal-dow {
  background: var(--rail);
  padding: 0.45rem 0.5rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}
.cal-day {
  background: var(--surface);
  min-height: 96px;
  padding: 0.35rem 0.4rem;
  overflow: hidden;
}
.cal-other { opacity: 0.45; }
.cal-today { background: rgba(255, 233, 0, 0.08); }
.cal-day-num {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.2rem;
}
.cal-today .cal-day-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--brand-900);
  color: #fff;
}
.cal-chip {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  padding: 0.1rem 0.3rem;
  margin-bottom: 2px;
  border-radius: 0.4rem;
  background: rgba(36, 62, 121, 0.10);
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.cal-chip i { font-size: 0.65rem; color: var(--brand-700, #1a4a8a); flex-shrink: 0; }
.cal-chip-lbl { overflow: hidden; text-overflow: ellipsis; }
.cal-chip:hover { background: rgba(36, 62, 121, 0.22); color: var(--ink); }
.cal-chip-overdue { background: rgba(220, 38, 38, 0.12); }
.cal-chip-overdue i { color: #b91c1c; }
.cal-more { font-size: 0.65rem; color: var(--muted); padding-left: 0.3rem; }

[data-bs-theme="dark"] .cal-chip { background: rgba(120, 150, 220, 0.16); }
[data-bs-theme="dark"] .cal-chip:hover { background: rgba(120, 150, 220, 0.3); }
[data-bs-theme="dark"] .cal-chip i { color: #9db8e8; }
[data-bs-theme="dark"] .cal-chip-overdue { background: rgba(220, 38, 38, 0.28); }
[data-bs-theme="dark"] .cal-chip-overdue i { color: #f08c8c; }
[data-bs-theme="dark"] .cal-today { background: rgba(255, 233, 0, 0.05); }

@media (max-width: 767.98px) {
  .cal-day { min-height: 64px; padding: 0.25rem; }
  .cal-chip { padding: 0.15rem; justify-content: center; }
  .cal-chip-lbl { display: none; }   /* icons only on phones; tap for the lead */
}

/* ── Settings hub page ───────────────────────────────────────────────── */
.settings-ico {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.6rem;
  background: rgba(37, 81, 143, 0.12);
  color: var(--brand-700);
  flex-shrink: 0;
}
.settings-list .list-group-item {
  background: transparent;
  border-color: var(--rail-strong);
  padding-left: 0.25rem;
  padding-right: 0.25rem;
}
.settings-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9rem;
}
.settings-item:hover { color: var(--brand-700); }
.settings-chev { font-size: 0.7rem; color: var(--muted); opacity: 0.6; }

[data-bs-theme="dark"] .settings-ico {
  background: rgba(255, 233, 0, 0.14);
  color: var(--brand-200);
}
[data-bs-theme="dark"] .settings-item:hover { color: var(--brand-200); }
