/*
    This page forces .dashboard-card and related base classes to the dark
    theme locally, since dashboard-base.html currently defines them as a
    light/cream card. Once the base template's :root tokens are updated to
    match the app shell, these overrides can be deleted.
  */

:root {
  --bg-app: #080c18;
  --bg-sidebar: #0c1022;
  --bg-sidebar-hover: #141c34;
  --bg-active: #1a2440;
  --bg-header: #0c1022;
  --bg-footer: #0c1022;
  --accent: #0ed8c4;
  --accent-soft: rgba(14, 216, 196, 0.1);
  --text-primary: #e4eaff;
  --text-muted: #6878a0;
  --text-faint: #3a4568;
  --border: #1c2840;
  --border-light: #aaa;
  --danger: #ff6b6b;
  --teal: #0f8f87;
  --sidebar-w: 260px;
  --sidebar-w-collapsed: 76px;
  --header-h: 64px;
  --footer-h: 64px;
  --radius: 10px;
  --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --font:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100dvh;
  font-family: var(--font);
  background: var(--bg-app);
  color: var(--text-primary);
}

.app {
  display: flex;
  height: 100dvh;
  overflow: hidden;
}

::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.btn-spin {
  animation: spin 0.75s linear infinite;
  display: inline-block;
}

.portal-main-wrapper {
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.portal-main {
  max-width: 1100px;
  margin: 0 auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px;
}

/* ---- Page header ---- */
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.page-header .eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--accent, #6c8cff);
  margin-bottom: 6px;
}
.page-header h1 {
  margin: 0 0 4px;
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary, #e8e9ed);
  letter-spacing: 0.1px;
}
.page-header .sub {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-muted, #8a8f9c);
}

.btn-open-dashboard {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  background: linear-gradient(90deg, #0ed8c4 0%, #2d6eff 100%);
  color: #fff;
  border: none;
  border-radius: var(--radius, 10px);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity 200ms cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-open-dashboard:hover {
  opacity: 0.88;
}

/* ---- Shared card (overrides base's light .dashboard-card) ---- */
.dashboard-card {
  background: var(--bg-sidebar, #14161c) !important;
  border: 1px solid var(--border, #22252e) !important;
  border-radius: 14px !important;
  padding: 22px 24px !important;
  color: var(--text-primary, #e8e9ed) !important;
  box-shadow: none !important;
}

.section-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-faint, #565c6b);
  margin-bottom: 14px;
}

/* ---- Overview grid: sources (wide) + billing (narrow) ---- */
.overview-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 20px;
  align-items: start;
}
@media (max-width: 768px) {
  .overview-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Connected sources list ---- */
.source-status-row {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border, #22252e);
  gap: 16px;
}
.source-status-row:last-of-type {
  border-bottom: none;
  padding-bottom: 4px;
}
.source-row-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}
.source-info {
  min-width: 0;
}
.source-info strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary, #e8e9ed);
}
.source-desc {
  font-size: 12px;
  color: var(--text-muted, #8a8f9c);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.source-row-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.badge-connected {
  font-size: 11px;
  font-weight: 600;
  color: #4ade80;
  background: rgba(74, 222, 128, 0.14);
  border-radius: 100px;
  padding: 3px 10px;
  white-space: nowrap;
}
.badge-pending {
  font-size: 11px;
  font-weight: 600;
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.14);
  border-radius: 100px;
  padding: 3px 10px;
  white-space: nowrap;
}
.badge-active {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent, #6c8cff);
  background: var(--accent-soft, rgba(108, 140, 255, 0.15));
  border-radius: 100px;
  padding: 3px 10px;
  white-space: nowrap;
}
.badge-included {
  font-size: 11px;
  font-weight: 600;
  color: #2dd4bf;
  background: rgba(45, 212, 191, 0.14);
  border-radius: 100px;
  padding: 3px 10px;
  white-space: nowrap;
}

.btn-connect-inline {
  padding: 8px 14px;
  background: linear-gradient(90deg, #0ed8c4 0%, #2d6eff 100%);
  color: #fff;
  border: none;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font, inherit);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  transition: opacity 200ms cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-connect-inline:hover:not(:disabled) {
  opacity: 0.88;
}
.btn-connect-inline:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-reconnect-inline {
  font-size: 12px;
  color: var(--text-muted, #8a8f9c);
  text-decoration: none;
  font-weight: 500;
  padding: 7px 10px;
  border: 1px solid var(--border, #22252e);
  border-radius: 7px;
  white-space: nowrap;
  background: transparent;
  cursor: pointer;
  transition:
    background 200ms cubic-bezier(0.4, 0, 0.2, 1),
    color 200ms cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-reconnect-inline:hover {
  background: var(--bg-sidebar-hover, #1e2129);
  color: var(--text-primary, #e8e9ed);
}

.btn-add-sources {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border: 1px solid var(--border, #22252e);
  border-radius: var(--radius, 10px);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-primary, #e8e9ed);
  text-decoration: none;
  background: var(--bg-sidebar-hover, #1e2129);
  transition: border-color 200ms cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-add-sources:hover {
  border-color: var(--text-faint, #565c6b);
}

/* ---- Billing card ---- */
.billing-card .plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 4px;
}
.billing-card .plan-price .amount {
  font-size: 30px;
  font-weight: 700;
  color: var(--text-primary, #e8e9ed);
}
.billing-card .plan-price .period {
  font-size: 13px;
  color: var(--text-muted, #8a8f9c);
}
.billing-card .plan-note {
  font-size: 12.5px;
  color: var(--text-muted, #8a8f9c);
  margin-bottom: 18px;
}

.usage-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--text-muted, #8a8f9c);
  margin-bottom: 6px;
}
.usage-track {
  width: 100%;
  height: 6px;
  border-radius: 100px;
  background: var(--bg-sidebar-hover, #1e2129);
  overflow: hidden;
  margin-bottom: 20px;
}
.usage-fill {
  height: 100%;
  border-radius: 100px;
  background: var(--accent, #6c8cff);
}

.btn-manage-billing {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 11px 16px;
  border-radius: var(--radius, 10px);
  border: 1px solid var(--border, #22252e);
  background: transparent;
  color: var(--text-primary, #e8e9ed);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition:
    background 200ms cubic-bezier(0.4, 0, 0.2, 1),
    border-color 200ms cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-manage-billing:hover {
  background: var(--bg-sidebar-hover, #1e2129);
  border-color: var(--text-faint, #565c6b);
}

/* ---- Card ---- */
.card {
  background: var(--bg-sidebar, #14161c);
  border: 1px solid var(--border, #22252e);
  border-radius: 14px;
}
.card-body {
  padding: 26px 28px;
}

/* ---- Alerts ---- */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.5;
  background: var(--bg-sidebar-hover, #1e2129);
  border: 1px solid var(--border, #22252e);
  border-left: 3px solid transparent;
  color: var(--text-primary, #e8e9ed);
}
.alert-icon {
  flex-shrink: 0;
}
.alert-success {
  border-left-color: #4ade80;
}
.alert-danger {
  border-left-color: var(--danger, #ff6b6b);
}
.alert-info {
  border-left-color: var(--accent, #6c8cff);
}

/* ---- Source sections/rows ---- */
.source-section {
  margin-bottom: 22px;
}
.source-section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-faint, #565c6b);
  margin-bottom: 10px;
}
.section-badge-included {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: #2dd4bf;
  background: rgba(45, 212, 191, 0.14);
  padding: 2px 8px;
  border-radius: 100px;
}

.source-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border, #22252e);
}
.source-row:last-child {
  border-bottom: none;
}
.source-row-disabled {
  opacity: 0.5;
}

.source-row-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}
.source-row-info {
  min-width: 0;
}
.source-row-name {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary, #e8e9ed);
}
.badge-connected-inline {
  font-size: 11px;
  font-weight: 600;
  color: #4ade80;
  background: rgba(74, 222, 128, 0.14);
  padding: 2px 8px;
  border-radius: 100px;
  white-space: nowrap;
}
.source-row-desc {
  font-size: 12px;
  color: var(--text-muted, #8a8f9c);
  margin-top: 2px;
}
.source-row-requires {
  font-size: 11px;
  color: var(--text-faint, #565c6b);
  margin-top: 2px;
}

.source-row-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.source-price-tag {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted, #8a8f9c);
  white-space: nowrap;
}
.source-price-tag.included {
  color: #2dd4bf;
}

.btn-reconnect {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted, #8a8f9c);
  text-decoration: none;
  padding: 7px 10px;
  border: 1px solid var(--border, #22252e);
  border-radius: 7px;
  white-space: nowrap;
  transition:
    background 200ms cubic-bezier(0.4, 0, 0.2, 1),
    color 200ms cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-reconnect:hover {
  background: var(--bg-sidebar-hover, #1e2129);
  color: var(--text-primary, #e8e9ed);
}

.btn-disconnect {
  font-size: 12px;
  font-weight: 500;
  color: var(--danger, #ff6b6b);
  text-decoration: none;
  padding: 7px 10px;
  border: 1px solid rgba(255, 107, 107, 0.3);
  border-radius: 7px;
  white-space: nowrap;
  transition: background 200ms cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-disconnect:hover {
  background: rgba(255, 107, 107, 0.1);
}

.btn-connect-source {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  background: linear-gradient(90deg, #0ed8c4 0%, #2d6eff 100%);
  color: #fff;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 200ms cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-connect-source:hover:not(:disabled) {
  opacity: 0.88;
}
.btn-connect-source:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.toggle-add-plan {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text-muted, #8a8f9c);
  cursor: pointer;
  white-space: nowrap;
}
.toggle-add-plan input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: var(--accent, #6c8cff);
  cursor: pointer;
}

.badge-coming-soon {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-faint, #565c6b);
  background: var(--bg-sidebar-hover, #1e2129);
  padding: 3px 10px;
  border-radius: 100px;
  white-space: nowrap;
}

/* ---- Pricing summary ---- */
.pricing-total {
  background: var(--bg-sidebar-hover, #1e2129);
  border: 1px solid var(--border, #22252e);
  border-radius: 12px;
  padding: 16px 18px;
}
.pricing-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
  color: var(--text-muted, #8a8f9c);
  padding: 6px 0;
}
.pricing-row.total {
  color: var(--text-primary, #e8e9ed);
  font-weight: 700;
  font-size: 15px;
  border-top: 1px solid var(--border, #22252e);
  margin-top: 6px;
  padding-top: 12px;
}

/* ---- Form actions ---- */
.form-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 20px;
  justify-content: flex-end;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  background: linear-gradient(90deg, #0ed8c4 0%, #2d6eff 100%);
  color: #fff;
  border: none;
  border-radius: var(--radius, 10px);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 200ms cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-primary:hover {
  opacity: 0.88;
}
.btn-cancel {
  font-size: 14px;
  color: var(--text-muted, #8a8f9c);
  text-decoration: none;
  transition: color 200ms cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-cancel:hover {
  color: var(--text-primary, #e8e9ed);
}
.form-hint {
  font-size: 12px;
  color: var(--text-faint, #565c6b);
  margin-top: 8px;
  text-align: center;
}

.btn-group {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.cb-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.cb-wrap {
  position: relative;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.cb-wrap input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}
.cb-box {
  position: absolute;
  inset: 0;
  border-radius: 5px;
  border: 1.5px solid var(--border-light, #282a2e);
  background: var(--bg-sidebar-hover, #1e2129);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition:
    background 150ms cubic-bezier(0.4, 0, 0.2, 1),
    border-color 150ms cubic-bezier(0.4, 0, 0.2, 1);
}
.cb-box svg {
  width: 12px;
  height: 12px;
  stroke: #fff;
  stroke-width: 3;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  transform: scale(0.5);
  transition:
    opacity 150ms cubic-bezier(0.4, 0, 0.2, 1),
    transform 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.cb-wrap input:hover ~ .cb-box {
  border-color: var(--text-faint, #565c6b);
}
.cb-wrap input:checked ~ .cb-box {
  background: var(--accent, #6c8cff);
  border-color: var(--accent, #6c8cff);
}
.cb-wrap input:checked ~ .cb-box svg {
  opacity: 1;
  transform: scale(1);
}
.cb-wrap input:focus-visible ~ .cb-box {
  outline: 2px solid var(--accent, #6c8cff);
  outline-offset: 2px;
}
.cb-wrap input:disabled ~ .cb-box {
  opacity: 0.5;
}
.cb-wrap input:disabled {
  cursor: not-allowed;
}

/* ---- Dropdown menus (user + notifications) ---- */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #1c1f27;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  padding: 6px;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition:
    opacity var(--transition),
    transform var(--transition);
  z-index: 300;
  text-align: left;
}
.dropdown-menu.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-header {
  padding: 8px 10px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-faint);
  white-space: nowrap;
}
.dropdown-header strong {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: normal;
  color: var(--text-primary);
}
.dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 6px 2px;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border: none;
  background: transparent;
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  font-family: var(--font);
  transition: background var(--transition);
}
.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.05);
}
.dropdown-item svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.dropdown-item.danger {
  color: var(--danger);
}
.dropdown-item.danger:hover {
  background: rgba(255, 107, 107, 0.1);
}

/* ---- Notifications panel ---- */
.notif-menu {
  width: 300px;
  padding: 0;
  overflow: hidden;
  right: auto;
  left: auto;
}
.notif-menu-title {
  padding: 12px 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
}
.notif-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 32px 20px;
  text-align: center;
}
.notif-empty-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-sidebar-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
}
.notif-empty-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.notif-empty p {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
}
.notif-empty span {
  font-size: 12px;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .btn-group {
    flex-direction: column-reverse;
  }

  .portal-main {
    padding: 16px 8px;
    margin: auto;
  }

  .source-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .source-status-row {
    flex-direction: column;
  }

  .notif-menu {
    right: auto;
    left: calc(-200%);
  }
}

.wizard {
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
}

/* PROGRESS BAR */
.progress-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
  gap: 0;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
}

.step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--text-light);
  position: relative;
  z-index: 1;
  transition: all 0.2s;
}

.progress-step.active .step-circle {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

.progress-step.done .step-circle {
  background: var(--teal-dim);
  border-color: var(--teal);
  color: var(--teal);
}

.step-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-light);
  letter-spacing: 0.04em;
  white-space: nowrap;
  position: absolute;
  top: 32px;
}

.progress-step.active .step-label {
  color: var(--green);
}
.progress-step.done .step-label {
  color: var(--teal);
}

.progress-connector {
  width: 60px;
  height: 1px;
  background: var(--border);
  flex-shrink: 0;
}

.progress-connector.done {
  background: var(--teal);
}

/* ---- Form Elements ---- */
.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.form-label .optional {
  font-weight: 400;
  color: var(--text-faint);
  margin-left: 4px;
}

.form-input {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg-sidebar-hover);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 14px;
  font-family: var(--font);
  outline: none;
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
}

.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-input::placeholder {
  color: var(--text-faint);
}

select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%208a8f9c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}

select.form-input option {
  background: var(--bg-sidebar);
  color: var(--text-primary);
}
