/* ==========================================================================
   GlobalGigz Dashboard
   Sidebar / navbar / cards / stats / command palette

   This file is loaded AFTER Bootstrap and FontAwesome so we can
   override their defaults with our brand palette.

   Naming convention: every custom class is prefixed `gg-` so it never
   collides with Bootstrap utility classes.
   ========================================================================== */

/* ── 1. Brand palette (CSS variables) ────────────────────────────────── */

:root {
  --gg-dark:           #14213d;
  --gg-text:           #243447;
  --gg-muted:          #6b778d;
  --gg-border:         #dde6f0;
  --gg-surface:        #f6f9fc;
  --gg-card:           #ffffff;
  --gg-primary:        #14213d;
  --gg-primary-soft:   #eef1f8;
  --gg-secondary:      #4b41e1;
  --gg-secondary-soft: #f0eeff;
  --gg-accent:         #14b8a6;
  --gg-accent-soft:    #e4fbf7;
  --gg-success:        #16a34a;
  --gg-warning:        #f59e0b;
  --gg-danger:         #dc2626;
  --gg-info:           #2563eb;
  --gg-button-hover:   #eff6ff;

  --gg-sidebar-width:  270px;
  --gg-navbar-height:  64px;
  --gg-radius-card:    16px;
  --gg-radius-pill:    999px;
  --gg-shadow-card:    0 1px 2px rgba(20, 33, 61, .06),
                        0 4px 12px rgba(20, 33, 61, .04);
  --gg-shadow-pop:     0 10px 25px rgba(20, 33, 61, .12);
}

/* ── 2. Bootstrap variable overrides ─────────────────────────────────── */

:root {
  --bs-primary:        var(--gg-primary);
  --bs-secondary:      var(--gg-secondary);
  --bs-success:        var(--gg-success);
  --bs-danger:         var(--gg-danger);
  --bs-warning:        var(--gg-warning);
  --bs-info:           var(--gg-info);
  --bs-body-bg:        var(--gg-surface);
  --bs-body-color:     var(--gg-text);
  --bs-border-color:   var(--gg-border);
  --bs-link-color:     var(--gg-primary);
  --bs-link-hover-color: var(--gg-secondary);
}

body {
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Inter",
               "Segoe UI", Roboto, sans-serif;
  color: var(--gg-text);
  background: var(--gg-surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Manrope", sans-serif;
  color: var(--gg-dark);
  letter-spacing: -0.01em;
}

/* ── 3. Layout shell ─────────────────────────────────────────────────── */

.gg-shell {
  display: flex;
  min-height: 100vh;
}

.gg-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--gg-sidebar-width);
  background: var(--gg-card);
  border-right: 1px solid var(--gg-border);
  overflow-y: auto;
  z-index: 1040;
  transform: translateX(0);
  transition: transform .25s ease;
}

.gg-sidebar.is-offcanvas {
  position: fixed;
  transform: translateX(-100%);
}

.gg-sidebar.is-offcanvas.show {
  transform: translateX(0);
}

.gg-main {
  flex: 1;
  margin-left: var(--gg-sidebar-width);
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

@media (max-width: 991.98px) {
  .gg-sidebar {
    transform: translateX(-100%);
  }
  .gg-sidebar.show {
    transform: translateX(0);
  }
  .gg-main {
    margin-left: 0;
  }
}

.gg-navbar {
  position: sticky;
  top: 0;
  z-index: 1020;
  background: var(--gg-card);
  border-bottom: 1px solid var(--gg-border);
  height: var(--gg-navbar-height);
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  gap: 1rem;
}

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

@media (min-width: 768px) {
  .gg-content { padding: 2rem 2rem 3rem; }
}
@media (min-width: 1200px) {
  .gg-content { padding: 2.5rem 2.5rem 3.5rem; }
}

/* ── 4. Sidebar components ────────────────────────────────────────────── */

.gg-sidebar-brand {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--gg-border);
  display: flex;
  align-items: center;
  gap: .75rem;
  font-weight: 800;
  font-size: 1.125rem;
  color: var(--gg-dark);
}

.gg-sidebar-kicker {
  font-size: .6875rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--gg-muted);
  font-weight: 700;
  padding: 0 1.5rem;
  margin: 1.5rem 0 .5rem;
}

.gg-sidebar-section {
  padding: 0 1rem;
}

.gg-nav-link {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .625rem .875rem;
  border-radius: .5rem;
  color: var(--gg-text);
  text-decoration: none;
  font-weight: 500;
  font-size: .9375rem;
  margin-bottom: .125rem;
  transition: background-color .15s, color .15s;
}

.gg-nav-link:hover {
  background: var(--gg-button-hover);
  color: var(--gg-primary);
}

.gg-nav-link.is-active {
  background: var(--gg-primary-soft);
  color: var(--gg-primary);
  font-weight: 600;
}

.gg-nav-link .gg-nav-icon {
  width: 1.25rem;
  text-align: center;
  font-size: 1.0625rem;
}

.gg-nav-link .gg-nav-badge {
  margin-left: auto;
  font-size: .6875rem;
  padding: .125rem .5rem;
  border-radius: var(--gg-radius-pill);
  background: var(--gg-accent);
  color: var(--gg-card);
  font-weight: 700;
}

.gg-sidebar-footer {
  margin-top: auto;
  padding: 1rem;
  border-top: 1px solid var(--gg-border);
  font-size: .8125rem;
  color: var(--gg-muted);
}

/* ── 5. Navbar components ────────────────────────────────────────────── */

.gg-navbar-search {
  flex: 1;
  max-width: 480px;
  margin-left: 1rem;
}

.gg-search-input {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: var(--gg-surface);
  border: 1px solid var(--gg-border);
  border-radius: var(--gg-radius-pill);
  padding: .375rem .875rem;
  font-size: .875rem;
  color: var(--gg-muted);
  cursor: pointer;
  transition: border-color .15s, background-color .15s;
}

.gg-search-input:hover,
.gg-search-input:focus-within {
  border-color: var(--gg-secondary);
  background: var(--gg-card);
}

.gg-search-kbd {
  margin-left: auto;
  font-size: .6875rem;
  font-family: monospace;
  background: var(--gg-card);
  border: 1px solid var(--gg-border);
  border-radius: .25rem;
  padding: 0 .375rem;
  color: var(--gg-muted);
}

.gg-navbar-actions {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.gg-icon-btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  border-radius: .5rem;
  color: var(--gg-text);
  cursor: pointer;
  position: relative;
}

.gg-icon-btn:hover {
  background: var(--gg-button-hover);
  color: var(--gg-primary);
}

.gg-icon-btn .gg-icon-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gg-danger);
  border: 2px solid var(--gg-card);
}

/* ── 6. Page header ──────────────────────────────────────────────────── */

.gg-page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.gg-page-header-title {
  margin: 0;
  font-size: 1.875rem;
  font-weight: 800;
  color: var(--gg-dark);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.gg-page-header-subtitle {
  margin: .25rem 0 0;
  color: var(--gg-muted);
  font-size: .9375rem;
}

.gg-breadcrumb {
  display: flex;
  gap: .375rem;
  font-size: .8125rem;
  color: var(--gg-muted);
  margin-bottom: .5rem;
  list-style: none;
  padding: 0;
}

.gg-breadcrumb-item:not(:last-child)::after {
  content: "›";
  margin-left: .375rem;
  color: var(--gg-muted);
}

.gg-page-header-actions {
  display: flex;
  gap: .5rem;
  align-items: center;
}

/* ── 7. Stat card ─────────────────────────────────────────────────────── */

.gg-stat-card {
  background: var(--gg-card);
  border: 1px solid var(--gg-border);
  border-radius: var(--gg-radius-card);
  padding: 1.5rem;
  box-shadow: var(--gg-shadow-card);
  display: flex;
  flex-direction: column;
  gap: .5rem;
  position: relative;
  overflow: hidden;
}

.gg-stat-card-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: .75rem;
  background: var(--gg-primary-soft);
  color: var(--gg-primary);
  font-size: 1.125rem;
}

.gg-stat-card-icon.is-accent  { background: var(--gg-accent-soft);  color: var(--gg-accent); }
.gg-stat-card-icon.is-secondary { background: var(--gg-secondary-soft); color: var(--gg-secondary); }
.gg-stat-card-icon.is-warning { background: #fef3c7; color: var(--gg-warning); }
.gg-stat-card-icon.is-danger  { background: #fee2e2; color: var(--gg-danger); }

.gg-stat-card-value {
  font-size: 1.875rem;
  font-weight: 800;
  color: var(--gg-dark);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: .5rem 0 0;
}

.gg-stat-card-label {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--gg-muted);
  font-weight: 700;
}

.gg-stat-card-delta {
  font-size: .8125rem;
  font-weight: 600;
}

.gg-stat-card-delta.is-up   { color: var(--gg-success); }
.gg-stat-card-delta.is-down { color: var(--gg-danger); }

/* ── 8. Status badge ─────────────────────────────────────────────────── */

.gg-badge {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  padding: .1875rem .625rem;
  border-radius: var(--gg-radius-pill);
  font-size: .75rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.gg-badge-dot {
  width: .4375rem;
  height: .4375rem;
  border-radius: 50%;
  background: currentColor;
}

.gg-badge.is-success { background: #dcfce7; color: #166534; }
.gg-badge.is-warning { background: #fef3c7; color: #92400e; }
.gg-badge.is-danger  { background: #fee2e2; color: #991b1b; }
.gg-badge.is-info    { background: var(--gg-button-hover); color: var(--gg-primary); }
.gg-badge.is-muted   { background: var(--gg-primary-soft); color: var(--gg-muted); }
.gg-badge.is-accent  { background: var(--gg-accent-soft); color: var(--gg-accent); }

/* ── 9. Avatar ────────────────────────────────────────────────────────── */

.gg-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--gg-primary);
  color: var(--gg-card);
  font-weight: 700;
  font-size: .875rem;
  overflow: hidden;
  flex-shrink: 0;
}

.gg-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gg-avatar.is-sm { width: 1.75rem; height: 1.75rem; font-size: .75rem; }
.gg-avatar.is-lg { width: 3rem;    height: 3rem;    font-size: 1.125rem; }
.gg-avatar.is-xl { width: 4.5rem;  height: 4.5rem;  font-size: 1.5rem; }

/* ── 10. Empty state ─────────────────────────────────────────────────── */

.gg-empty {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--gg-card);
  border: 1px dashed var(--gg-border);
  border-radius: var(--gg-radius-card);
}

.gg-empty-icon {
  font-size: 2.5rem;
  color: var(--gg-muted);
  margin-bottom: 1rem;
}

.gg-empty-title {
  margin: 0 0 .5rem;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--gg-dark);
}

.gg-empty-body {
  color: var(--gg-muted);
  margin: 0 0 1.25rem;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

/* ── 11. Data table ───────────────────────────────────────────────────── */

.gg-table-wrap {
  background: var(--gg-card);
  border: 1px solid var(--gg-border);
  border-radius: var(--gg-radius-card);
  overflow: hidden;
  box-shadow: var(--gg-shadow-card);
}

.gg-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9375rem;
}

.gg-table th {
  text-align: left;
  font-size: .6875rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 700;
  color: var(--gg-muted);
  padding: .875rem 1rem;
  border-bottom: 1px solid var(--gg-border);
  background: var(--gg-surface);
}

.gg-table td {
  padding: .875rem 1rem;
  border-bottom: 1px solid var(--gg-border);
  color: var(--gg-text);
}

.gg-table tr:last-child td { border-bottom: 0; }

.gg-table tr:hover td {
  background: var(--gg-primary-soft);
}

.gg-table-actions {
  display: flex;
  gap: .25rem;
  justify-content: flex-end;
}

/* ── 12. Buttons (Bootstrap-compatible) ──────────────────────────────── */

.gg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .5rem 1rem;
  border-radius: .5rem;
  font-weight: 600;
  font-size: .9375rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color .15s, border-color .15s, color .15s;
}

.gg-btn.is-primary {
  background: var(--gg-primary);
  color: var(--gg-card);
}

.gg-btn.is-primary:hover {
  background: var(--gg-dark);
}

.gg-btn.is-secondary {
  background: var(--gg-card);
  color: var(--gg-primary);
  border-color: var(--gg-border);
}

.gg-btn.is-secondary:hover {
  background: var(--gg-button-hover);
  border-color: var(--gg-primary);
}

.gg-btn.is-ghost {
  background: transparent;
  color: var(--gg-text);
}

.gg-btn.is-ghost:hover {
  background: var(--gg-button-hover);
  color: var(--gg-primary);
}

.gg-btn.is-sm { padding: .3125rem .625rem; font-size: .8125rem; }
.gg-btn.is-lg { padding: .625rem 1.25rem; font-size: 1rem; }

/* ── 13. Command palette ────────────────────────────────────────────── */

.gg-palette-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 33, 61, .55);
  backdrop-filter: blur(4px);
  z-index: 1080;
  display: none;
}

.gg-palette-backdrop.is-open {
  display: block;
}

.gg-palette {
  position: fixed;
  top: 12vh;
  left: 50%;
  transform: translateX(-50%);
  width: min(92vw, 640px);
  max-height: 70vh;
  background: var(--gg-card);
  border-radius: var(--gg-radius-card);
  box-shadow: var(--gg-shadow-pop);
  z-index: 1090;
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.gg-palette.is-open {
  display: flex;
}

.gg-palette-input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--gg-border);
  padding: 1.125rem 1.25rem;
  font-size: 1.0625rem;
  background: transparent;
  color: var(--gg-text);
  outline: none;
  font-family: inherit;
}

.gg-palette-results {
  overflow-y: auto;
  flex: 1;
}

.gg-palette-section {
  font-size: .6875rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 700;
  color: var(--gg-muted);
  padding: .875rem 1.25rem .375rem;
}

.gg-palette-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .625rem 1.25rem;
  color: var(--gg-text);
  text-decoration: none;
  cursor: pointer;
  font-size: .9375rem;
}

.gg-palette-item:hover,
.gg-palette-item.is-active {
  background: var(--gg-button-hover);
  color: var(--gg-primary);
}

.gg-palette-item .gg-palette-icon {
  width: 1.5rem;
  text-align: center;
  color: var(--gg-muted);
}

.gg-palette-empty {
  padding: 2rem 1.25rem;
  text-align: center;
  color: var(--gg-muted);
  font-size: .875rem;
}

/* ── 14. Messages (Django flash) ─────────────────────────────────────── */

.gg-message {
  padding: .75rem 1rem;
  border-radius: .5rem;
  border-left: 3px solid var(--gg-info);
  background: var(--gg-card);
  margin-bottom: .5rem;
  display: flex;
  align-items: center;
  gap: .625rem;
}

.gg-message.is-success { border-left-color: var(--gg-success); }
.gg-message.is-warning { border-left-color: var(--gg-warning); }
.gg-message.is-error   { border-left-color: var(--gg-danger); }

/* ── 15. Footer ──────────────────────────────────────────────────────── */

.gg-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--gg-border);
  font-size: .8125rem;
  color: var(--gg-muted);
  background: var(--gg-card);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ── 16. Utility helpers ─────────────────────────────────────────────── */

.gg-text-muted   { color: var(--gg-muted); }
.gg-text-dark    { color: var(--gg-dark); }
.gg-text-accent  { color: var(--gg-accent); }
.gg-text-success { color: var(--gg-success); }
.gg-text-warning { color: var(--gg-warning); }
.gg-text-danger  { color: var(--gg-danger); }

.gg-flex { display: flex; }
.gg-flex-col { display: flex; flex-direction: column; }
.gg-items-center { align-items: center; }
.gg-justify-between { justify-content: space-between; }
.gg-gap-1 { gap: .25rem; }
.gg-gap-2 { gap: .5rem; }
.gg-gap-3 { gap: .75rem; }
.gg-gap-4 { gap: 1rem; }
.gg-gap-6 { gap: 1.5rem; }

.gg-mt-0 { margin-top: 0; }
.gg-mb-1 { margin-bottom: .25rem; }
.gg-mb-2 { margin-bottom: .5rem; }
.gg-mb-3 { margin-bottom: .75rem; }
.gg-mb-4 { margin-bottom: 1rem; }

.gg-grid {
  display: grid;
  gap: 1rem;
}

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

@media (min-width: 768px)  { .gg-grid-cols-2, .gg-grid-cols-3, .gg-grid-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 992px)  { .gg-grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .gg-grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Material Symbols fallback (loaded via Google Fonts in head.html). */
.material-symbols-outlined {
  font-family: "Material Symbols Outlined", "Material Symbols Rounded",
               "Material Icons", sans-serif;
  font-weight: normal;
  font-style: normal;
}

/* ===== Font Awesome 6 force-render ===== */
/* FA6 uses CSS variables, but some browsers inherit body font. Force font directly. */
.fa, .fa-solid, .fa-regular, .fa-brands, .fas, .far, .fab {
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands", sans-serif !important;
  font-style: normal !important;
  font-variant: normal !important;
  line-height: 1 !important;
  text-rendering: auto !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  display: inline-block !important;
}
.fa-solid, .fas { font-weight: 900 !important; }
.fa-regular, .far { font-weight: 400 !important; }
.fa-brands, .fab { font-family: "Font Awesome 6 Brands" !important; font-weight: 400 !important; }

/* ===== Admin Panel: Manage everything cards ===== */
/* Self-contained rules so Bootstrap .py-5 / .p-* overrides cannot bleed in. */
.ap-section { display: grid; gap: 24px; }
.ap-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ap-section-head h2 {
  font-size: 1.875rem; font-weight: 900; color: #14213d;
  letter-spacing: -0.02em; line-height: 1.1;
}
.ap-section-head p { color: #64748b; font-size: 0.875rem; margin-top: 6px; }
.ap-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 768px)  { .ap-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .ap-grid { grid-template-columns: repeat(3, 1fr); } }
.ap-card {
  background: #ffffff; border-radius: 16px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 4px 12px rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(15, 23, 42, 0.04);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease;
}
.ap-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(15, 23, 42, 0.06), 0 12px 28px rgba(15, 23, 42, 0.10);
}
.ap-card-head {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}
.ap-icon-box {
  width: 48px; height: 48px; border-radius: 12px;
  background: #4b41e1; color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ap-icon-box i {
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 900 !important;
  font-size: 22px !important;
  line-height: 1 !important;
}
.ap-card-meta { min-width: 0; flex: 1; }
.ap-card-meta h3 {
  font-size: 1.0625rem; font-weight: 800; color: #14213d;
  margin: 0; line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ap-card-meta .ap-count {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em;
  color: #94a3b8; margin-top: 4px; display: block;
}
.ap-list { list-style: none; margin: 0; padding: 0; }
.ap-list li { border-top: 1px solid rgba(15, 23, 42, 0.04); }
.ap-list li:first-child { border-top: none; }
.ap-list a.ap-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 20px;
  color: #14213d; text-decoration: none;
  transition: background .12s ease;
}
.ap-list a.ap-row:hover { background: rgba(75, 65, 225, 0.04); }
.ap-list a.ap-row .ap-name {
  flex: 1; min-width: 0;
  font-size: 0.875rem; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ap-list a.ap-row:hover .ap-name { color: #4b41e1; }
.ap-list a.ap-row .ap-actions {
  display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0;
}
.ap-list a.ap-row .ap-add {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(75, 65, 225, 0.08); color: #4b41e1;
  font-size: 0.6875rem; font-weight: 800; letter-spacing: 0.02em;
  text-decoration: none;
  transition: background .12s ease;
}
.ap-list a.ap-row .ap-add:hover { background: #4b41e1; color: #fff; }
.ap-list a.ap-row .ap-add .material-symbols-outlined {
  font-size: 14px !important; line-height: 1 !important;
}
.ap-list a.ap-row .ap-chev {
  font-family: "Material Symbols Outlined", sans-serif !important;
  font-size: 18px !important; line-height: 1 !important;
  color: #cbd5e1; transition: color .12s ease;
}
.ap-list a.ap-row:hover .ap-chev { color: #4b41e1; }
.ap-li {
  position: relative;
  border-top: 1px solid rgba(15, 23, 42, 0.04);
  display: flex; align-items: center;
}
.ap-li:first-child { border-top: none; }
.ap-li .ap-row { flex: 1; border-top: none !important; }
.ap-li .ap-add-btn {
  display: inline-flex; align-items: center; gap: 4px;
  margin-right: 12px;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(75, 65, 225, 0.08); color: #4b41e1;
  font-size: 0.6875rem; font-weight: 800; letter-spacing: 0.02em;
  text-decoration: none;
  transition: background .12s ease, color .12s ease;
}
.ap-li .ap-add-btn:hover { background: #4b41e1; color: #fff; }
.ap-li .ap-add-btn .material-symbols-outlined {
  font-size: 14px !important; line-height: 1 !important;
}
