:root,
html[data-bs-theme="light"],
html[data-bs-theme="dark"],
body[data-bs-theme="light"],
body[data-bs-theme="dark"],
html[data-blr-theme="light"],
html[data-blr-theme="dark"],
body[data-blr-theme="light"],
body[data-blr-theme="dark"] {
  --bs-primary: #f17600;
  --bs-primary-rgb: 241, 118, 0;

  --bs-link-color: #f17600;
  --bs-link-color-rgb: 241, 118, 0;
  --bs-link-hover-color: #ff8a1f;
  --bs-link-hover-color-rgb: 255, 138, 31;

  --bs-focus-ring-color: rgba(241, 118, 0, 0.25);

  --bs-primary-bg-subtle: rgba(241, 118, 0, 0.14);
  --bs-primary-border-subtle: rgba(241, 118, 0, 0.32);

  --blr-transition-base: 0.2s ease;
}

/* -------------------------------------------------------------------------- */
/* Core color tokens                                                          */
/* -------------------------------------------------------------------------- */

body.blr-ba-app,
body.blr-ba-auth {
  background: #f5f7fb !important;
  color: #495057;
}

body.blr-ba-app {
  min-height: 100vh;
}

body.blr-ba-app .wrapper,
body.blr-ba-app .main,
body.blr-ba-app .content,
body.blr-ba-auth .blr-ba-auth-wrap {
  background: #f5f7fb !important;
}

body.blr-ba-app .content {
  flex: 1 0 auto;
  min-height: 0;
}

body.blr-ba-app .card,
body.blr-ba-app .modal-content,
body.blr-ba-app .dropdown-menu,
body.blr-ba-auth .card,
body.blr-ba-auth .modal-content,
body.blr-ba-auth .dropdown-menu {
  background-color: #fff !important;
  color: inherit;
}

body.blr-ba-app .card-header,
body.blr-ba-app .card-body,
body.blr-ba-app .card-footer,
body.blr-ba-auth .card-header,
body.blr-ba-auth .card-body,
body.blr-ba-auth .card-footer {
  background-color: transparent !important;
  color: inherit;
}

body.blr-ba-app .table,
body.blr-ba-app .table > :not(caption) > * > *,
body.blr-ba-auth .table,
body.blr-ba-auth .table > :not(caption) > * > * {
  color: inherit;
}

body.blr-ba-app a:not(.btn),
body.blr-ba-auth a:not(.btn) {
  color: var(--bs-link-color);
}

body.blr-ba-app a:not(.btn):hover,
body.blr-ba-app a:not(.btn):focus,
body.blr-ba-auth a:not(.btn):hover,
body.blr-ba-auth a:not(.btn):focus {
  color: var(--bs-link-hover-color);
}

/* -------------------------------------------------------------------------- */
/* Layout and shell                                                            */
/* -------------------------------------------------------------------------- */

/* Kill the stacking-context issue */
body.blr-ba-app .navbar,
body.blr-ba-auth .navbar {
  isolation: auto;
  position: relative;
  z-index: 1030;
}

body.blr-ba-app .main,
body.blr-ba-auth .main {
  min-width: 0;
  overflow-x: hidden;
  overflow-y: visible;
}

body.blr-ba-app .navbar .dropdown-menu,
body.blr-ba-auth .navbar .dropdown-menu {
  z-index: 1080;
}

/* -------------------------------------------------------------------------- */
/* Buttons, links, pagination, and common interactive chrome                  */
/* -------------------------------------------------------------------------- */

body.blr-ba-app .btn.btn-outline-secondary,
body.blr-ba-auth .btn.btn-outline-secondary {
  color: #6c757d !important;
  background-color: #fff !important;
  border-color: #d7dee7 !important;
  box-shadow: none !important;
  transition: all var(--blr-transition-base);
}

body.blr-ba-app .btn.btn-outline-secondary:hover,
body.blr-ba-app .btn.btn-outline-secondary:focus,
body.blr-ba-auth .btn.btn-outline-secondary:hover,
body.blr-ba-auth .btn.btn-outline-secondary:focus {
  color: var(--bs-primary) !important;
  background-color: rgba(var(--bs-primary-rgb), 0.08) !important;
  border-color: var(--bs-primary) !important;
  box-shadow: 0 0 0 0.2rem var(--bs-focus-ring-color) !important;
}

body.blr-ba-app .btn.btn-outline-secondary:active,
body.blr-ba-app .btn.btn-outline-secondary.active,
body.blr-ba-auth .btn.btn-outline-secondary:active,
body.blr-ba-auth .btn.btn-outline-secondary.active {
  color: #fff !important;
  background-color: var(--bs-primary) !important;
  border-color: var(--bs-primary) !important;
}

body.blr-ba-app .btn.btn-outline-secondary:disabled,
body.blr-ba-auth .btn.btn-outline-secondary:disabled {
  color: #9aa4af !important;
  background-color: #f8f9fa !important;
  border-color: #e3e8ef !important;
  opacity: 1 !important;
}

body.blr-ba-app .btn.btn-outline-secondary.blr-ch-img-btn,
body.blr-ba-app .btn.btn-outline-secondary.blr-ch-img-btn:focus,
body.blr-ba-app .btn.btn-outline-secondary.blr-ch-img-btn:focus-visible,
body.blr-ba-app .btn.btn-outline-secondary.blr-ch-img-btn:active,
body.blr-ba-app .btn.btn-outline-secondary.blr-ch-img-btn.active,
body.blr-ba-auth .btn.btn-outline-secondary.blr-ch-img-btn,
body.blr-ba-auth .btn.btn-outline-secondary.blr-ch-img-btn:focus,
body.blr-ba-auth .btn.btn-outline-secondary.blr-ch-img-btn:focus-visible,
body.blr-ba-auth .btn.btn-outline-secondary.blr-ch-img-btn:active,
body.blr-ba-auth .btn.btn-outline-secondary.blr-ch-img-btn.active {
  color: #6c757d !important;
  background-color: #fff !important;
  border-color: #d7dee7 !important;
  box-shadow: none !important;
  outline: none !important;
}

/* optional: make sure common buttons/badges pick it up hard */
.btn-primary {
  background-color: var(--bs-primary) !important;
  border-color: var(--bs-primary) !important;
  color: #fff !important;
}

.btn-outline-primary {
  color: var(--bs-primary) !important;
  border-color: var(--bs-primary) !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background-color: var(--bs-primary) !important;
  border-color: var(--bs-primary) !important;
  color: #fff !important;
}

a,
.text-primary {
  color: var(--bs-primary) !important;
}

.bg-primary,
.badge.bg-primary {
  background-color: var(--bs-primary) !important;
}

.blr-logo-txt {
  color: #eeeeee;
}

/* -------------------------------------------------------------------------- */
/* Select2, sidebar, and app navigation                                       */
/* -------------------------------------------------------------------------- */

.select2-container .select2-results__options {
  list-style: none;
  margin: 0;
  padding: 4px 0;
  max-height: 260px;
  overflow: auto;
  background-color: #fff !important;
}

.select2-container .select2-search {
  padding: inherit;
}

.sidebar-link,
a.sidebar-link {
  font-weight: 800 !important;
  color: #eeeeee !important;
  transition: all var(--blr-transition-base);
}

.sidebar-link:hover,
a.sidebar-link:hover {
  font-weight: 800 !important;
  color: var(--bs-primary) !important;
  transition: all var(--blr-transition-base);
}

#sidebar .sidebar-item.active .sidebar-link,
#sidebar .sidebar-item.active > .sidebar-link,
#sidebar .sidebar-item.active .sidebar-link:hover,
#sidebar .sidebar-item.active > .sidebar-link:hover {
  color: var(--bs-primary) !important;
  transition: all var(--blr-transition-base);
}

/* -------------------------------------------------------------------------- */
/* Visual media picker and preview surfaces                                   */
/* -------------------------------------------------------------------------- */

.blr-ba-visual-preview {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
}

.blr-ba-visual-preview--fixed {
  height: 320px; /* change this to whatever size you want */
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blr-ba-visual-preview img,
.blr-ba-visual-preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.blr-ba-visual-preview > .text-muted {
  padding: 1rem;
  text-align: center;
}

.blr-ba-audio-preview {
  min-height: 116px;
  padding: 12px;
  border: 1px solid #d7dee7;
  border-radius: 12px;
  background: #fff;
}

.blr-ba-audio-preview-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.blr-ba-audio-preview-title {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
  word-break: break-word;
}

.blr-ba-visual-choice-image--audio {
  object-fit: contain;
  padding: 18px;
  background: #f5f7fb;
}

.blr-ba-horizontal-stack-chart {
  min-height: 240px;
}

.blr-ba-visual-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0px;
}

.blr-ba-visual-picker {
  display: block;
}

.blr-ba-visual-picker-grid {
  max-height: 350px;
  overflow-y: auto;
  padding-right: 4px;
}

.blr-ba-visual-picker-search {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #fff;
}

.blr-ba-visual-choice {
  position: relative;
  display: block;
  margin: 0;
  cursor: pointer;
}

.blr-ba-visual-choice[hidden] {
  display: none !important;
}

.blr-ba-visual-choice-input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.blr-ba-visual-choice-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  min-width: 0;
  padding: 10px;
  background: #fff;
  transition: border-color var(--blr-transition-base), box-shadow var(--blr-transition-base), transform var(--blr-transition-base);
}

.blr-ba-visual-choice:hover .blr-ba-visual-choice-card {
  border-color: #d7dee7;
  box-shadow: none;
  transform: translateY(-1px);
}

.blr-ba-visual-choice-input:focus + .blr-ba-visual-choice-card,
.blr-ba-visual-choice-input:checked + .blr-ba-visual-choice-card {
  border-color: #d7dee7;
  box-shadow: none;
  outline: none;
}

.blr-ba-visual-choice-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  border-radius: 6px;
  background: #f5f7fb;
  overflow: hidden;
}

.blr-ba-visual-choice-image,
.blr-ba-visual-choice-video {
  width: 100%;
  height: 100px;
  object-fit: cover;
  display: block;
}

.blr-ba-visual-choice-media-empty {
  border: 1px dashed #d7dee7;
  color: #8f8f8f;
}

.blr-ba-visual-choice-empty-label {
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
  padding: 0 10px;
}

.blr-ba-visual-choice-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
}

.blr-ba-visual-choice-title {
  color: #212529;
  font-size: .75em;
  font-weight: 300;
  line-height: 1.0;
  display: block;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.blr-ba-visual-choice-subtitle {
  color: #6c757d;
  font-size: 0.8rem;
  line-height: 1.3;
  word-break: break-word;
}

.blr-ba-visual-archive-card {
  overflow: hidden;
}

.blr-ba-visual-archive-media-wrap {
  position: relative;
  background: #eef3f8;
}

.blr-ba-visual-archive-media,
.blr-ba-visual-archive-media-wrap video.blr-ba-visual-archive-media {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #eef3f8;
}

.blr-ba-visual-archive-media-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  color: #8f8f8f;
  font-weight: 600;
  background: linear-gradient(135deg, #f5f7fb 0%, #e9eef5 100%);
}

.blr-ba-visual-archive-kind {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
}

.blr-ba-visual-archive-meta dt,
.blr-ba-visual-archive-meta dd {
  line-height: 1.35;
}

.blr-ba-visual-archive-card .dropdown-toggle::after,
.blr-ba-visual-archive-card .card-actions a::after {
  display: none;
}

.blr-scroll-box {
  max-height: 240px;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
}

.blr-scroll-box-taller {
  max-height: 350px;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
}

.blr-ba-calendar .blr-ba-cal-cell {
  overflow: hidden;
}

#blr-ba-delete-modal {
  position: fixed;
  inset: 0;
}

#blr-ba-delete-modal:not(.show) {
  display: none;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
}

.card-body div#blr-ba-dashboard-bulk-track-upload {
  margin-top: 25px;
  transition: all var(--blr-transition-base);
}
/* -------------------------------------------------------------------------- */
/* Audio player                                                                */
/* -------------------------------------------------------------------------- */

/* Audio player */
.blr-ba-audio-player {
  border: 1px solid #d7dee7;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
  padding: 1rem;
}

.blr-ba-player-shell {
  display: grid;
  grid-template-columns: minmax(0, 160px) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.blr-ba-audio-player--compact .blr-ba-player-shell {
  grid-template-columns: minmax(0, 112px) minmax(0, 1fr);
}

.blr-ba-player-cover {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 4px;
  display: block;
  background: #eef2f7;
}

.blr-ba-player-main {
  min-width: 0;
}

.blr-ba-player-heading {
  margin-bottom: 0;
}

.blr-ba-player-eyebrow,
.blr-ba-player-now-label {
  font-size: 0.75rem;
  line-height: 1.2;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6c757d;
}

.blr-ba-player-title,
.blr-ba-player-now-title {
  font-size: 1.125rem;
  line-height: 1.25;
  font-weight: 700;
  color: #212529;
  word-break: break-word;
}

.blr-ba-audio-player--full .blr-ba-player-title {
  font-size: 1.35rem;
}

.blr-ba-player-subtitle,
.blr-ba-player-now-meta,
.blr-ba-player-status {
  color: #6c757d;
}

.blr-ba-player-now-playing {
  padding: 0;
}

.blr-ba-player-controls {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-top: 1rem;
}

.blr-ba-player-toggle {
  min-width: 92px;
}

.blr-ba-player-progress-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1rem;
}

.blr-ba-player-time {
  font-variant-numeric: tabular-nums;
  font-size: 0.875rem;
  color: #6c757d;
}

.blr-ba-player-progress {
  width: 100%;
}

.blr-ba-player-status {
  margin-top: 0.75rem;
  font-size: 0.925rem;
}

.blr-ba-player-playlist {
  border-radius: 4px;
  overflow: hidden;
}

.blr-ba-player-track {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 0.85rem;
  align-items: center;
  border-left: 0;
  border-right: 0;
  border-radius: 0 !important;
  text-align: left;
}

.blr-ba-player-track:first-child {
  border-top: 1px solid var(--bs-border-color-translucent, rgba(0, 0, 0, 0.125));
}

.blr-ba-player-track-num,
.blr-ba-player-track-duration {
  font-variant-numeric: tabular-nums;
  color: #6c757d;
  font-size: 0.9rem;
}

.blr-ba-player-track-main {
  min-width: 250px;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.blr-ba-player-track-title {
  font-weight: 600;
  color: #212529;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.blr-ba-player-track-subtitle {
  color: #6c757d;
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.blr-ba-player-track-side {
  justify-self: end;
}

.blr-ba-player-track.is-active {
  background: rgba(var(--bs-primary-rgb), 0.08);
  border-color: rgba(var(--bs-primary-rgb), 0.22);
}

.blr-ba-player-track.is-active .blr-ba-player-track-title,
.blr-ba-audio-player.is-playing .blr-ba-player-now-title {
  color: var(--bs-primary);
}

.blr-ba-player-track.is-unavailable {
  opacity: 0.72;
}

.blr-ba-player-track.is-unavailable .blr-ba-player-track-title,
.blr-ba-player-track.is-unavailable .blr-ba-player-track-subtitle {
  color: #7d8794;
}

@media (max-width: 767.98px) {
  .blr-ba-player-shell,
  .blr-ba-audio-player--compact .blr-ba-player-shell {
    grid-template-columns: 1fr;
  }

  .blr-ba-player-cover-wrap {
    width: 100%;
    max-width: none;
  }

  .blr-ba-player-cover {
    width: 100%;
    display: block;
  }

  .blr-ba-player-progress-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .blr-ba-player-time {
    display: flex;
    justify-content: space-between;
  }

  .blr-ba-player-track {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .blr-ba-player-track-side {
    display: none;
  }
}

.card.flex-fill {
  transition: box-shadow var(--blr-transition-base), border-color var(--blr-transition-base);
}

.card.flex-fill:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.10);
}

a.list-group-item.list-group-item-action {
  background: transparent;
  transition: background-color var(--blr-transition-base), color var(--blr-transition-base), border-color var(--blr-transition-base);
}

a.list-group-item.list-group-item-action:hover,
a.list-group-item.list-group-item-action:focus {
  background-color: rgba(66, 66, 66, 0.14);
}

.btn {
  transition: background-color var(--blr-transition-base), color var(--blr-transition-base), border-color var(--blr-transition-base), box-shadow var(--blr-transition-base), transform var(--blr-transition-base);
}

.dropdown-menu.dropdown-menu-end.show a.dropdown-item {
  color: #020202 !important;
}

.blr-health-badge {
  height: 30px;
  width: 30px;
  font-weight: bold;
  font-size: 1.3em;
}

/* Data cleanup checkbox: white box, red checkmark */
.data-cleanup-check .form-check-input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.2rem;
  border: 1px solid #6c757d;
  border-radius: 0.2rem;
  background-color: #fff;
  display: inline-grid;
  place-content: center;
  vertical-align: middle;
  cursor: pointer;
  position: relative;
}

.data-cleanup-check .form-check-input[type="checkbox"]::before {
  content: "";
  width: 0.68rem;
  height: 0.68rem;
  transform: scale(0);
  transform-origin: center;
  transition: transform var(--blr-transition-base);
  background-color: #dc3545;
  clip-path: polygon(14% 44%, 0 59%, 40% 100%, 100% 18%, 84% 4%, 39% 62%);
}

.data-cleanup-check .form-check-input[type="checkbox"]:checked::before {
  transform: scale(1);
}

.data-cleanup-check .form-check-input[type="checkbox"]:checked {
  background-color: #fff;
  border-color: #6c757d;
}

.data-cleanup-check .form-check-input[type="checkbox"]:focus,
.data-cleanup-check .form-check-input[type="checkbox"]:active {
  outline: none !important;
  box-shadow: none !important;
}

/* -------------------------------------------------------------------------- */
/* Alerts, summaries, and utility components                                  */
/* -------------------------------------------------------------------------- */

.blr-ba-sync-notice {
	margin: 0 0 1rem;
	padding: 1rem 3rem 1rem 1rem;
	border: 1px solid #badbcc;
	border-radius: 0.375rem;
	background-color: #d1e7dd;
	color: #0f5132;
	position: relative;
	line-height: 1.5;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.blr-ba-sync-notice .btn-close {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	width: 1rem;
	height: 1rem;
	padding: 0;
	margin: 0;
	float: none;
	background-size: 1rem 1rem;
	opacity: 0.65;
}

.blr-ba-sync-notice .btn-close:hover {
	opacity: 1;
}

.blr-dash-summary-card .card-body {
  min-height: 125px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.blr-dash-summary-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.blr-dash-summary-icon {
  flex: 0 0 auto;
}

.blr-dash-actions-card {
  height: 100%;
}

.blr-dash-actions-grid {
  align-content: start;
}

.blr-dash-action-btn {
  min-height: 48px;
}
.blr-dash-side-card {
  height: 100%;
}

.blr-dash-net-card {
  min-height: 132px;
}

.blr-dash-health-card {
  min-height: 96px;
}

.blr-dash-action-btn {
  min-height: 48px;
}

.summary-card-icon {
  background: var(--bs-primary-bg-subtle);
  width: 2.5em;
  height: auto;
  padding: 6px 6px 8px 9px;
  border-radius: 8px;
}

.blr-ba-profile-page .list-group-item.list-group-item-action {
  border: 0;
  border-radius: 0;
  color: #6c757d;
  background-color: transparent;
  transition: background-color var(--blr-transition-base), color var(--blr-transition-base);
}

.blr-ba-profile-page .list-group-item.list-group-item-action:hover {
  color: var(--bs-primary);
  background-color: rgba(var(--bs-primary-rgb), 0.08);
}

.blr-ba-profile-page .list-group-item.list-group-item-action.active {
  color: var(--bs-primary);
  background-color: rgba(var(--bs-primary-rgb), 0.14);
  border-color: transparent;
}

.blr-ba-profile-page .list-group-item.list-group-item-action:focus,
.blr-ba-profile-page .list-group-item.list-group-item-action:active {
  box-shadow: none;
  outline: none;
}
/* -------------------------------------------------------------------------- */
/* Backline theme tokens                                                      */
/* -------------------------------------------------------------------------- */

html[data-blr-theme="light"] {
  --blr-body-bg: #f5f7fb;
  --blr-footer: #ffffff;
  --blr-surface: #ffffff;
  --blr-surface-2: #f8fafc;
  --blr-surface-3: #eef3f8;
  --blr-text: #495057;
  --blr-heading: #212529;
  --blr-muted: #6c757d;
  --blr-link-muted: #8f8f8f;
  --blr-border: #d7dee7;
  --blr-border-soft: #e6ebf1;
  --blr-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
  --blr-sidebar-bg: #020202;
  --blr-sidebar-surface: #111827;
  --blr-sidebar-text: #eeeeee;
  --blr-sidebar-border: rgba(255, 255, 255, 0.08);
  --blr-sidebar-logo-text: #eeeeee;
  --blr-navbar-bg: #ffffff;
  --blr-navbar-link: #495057;
  --blr-navbar-link-hover: #212529;
  --blr-input-bg: #ffffff;
  --blr-input-text: #495057;
  --blr-input-border: #d7dee7;
  --blr-backdrop: rgba(15, 23, 42, 0.35);
}

html[data-blr-theme="dark"] {
  color-scheme: dark;
  --blr-body-bg: #020202;
  --blr-footer: #020202;
  --blr-surface: #131212;
  --blr-surface-2: #172033;
  --blr-surface-3: #1e293b;
  --blr-text: #d7dee7;
  --blr-heading: #f8fafc;
  --blr-muted: #94a3b8;
  --blr-link-muted: #a7b2c3;
  --blr-border: #3a3d42;
  --blr-border-soft: #1b1b1b;
  --blr-shadow: 0 12px 28px rgba(2, 6, 23, 0.36);
  --blr-sidebar-bg: #020202;
  --blr-sidebar-surface: #0b1220;
  --blr-sidebar-text: #d7dee7;
  --blr-sidebar-border: rgba(148, 163, 184, 0.14);
  --blr-sidebar-logo-text: #f8fafc;
  --blr-navbar-bg: #020202;
  --blr-navbar-link: #d7dee7;
  --blr-navbar-link-hover: #f8fafc;
  --blr-input-bg: #131212;
  --blr-input-text: #d7dee7;
  --blr-input-border: #334155;
  --blr-backdrop: rgba(2, 6, 23, 0.68);
}


html[data-blr-theme] body.blr-ba-app,
html[data-blr-theme] body.blr-ba-auth,
html[data-blr-theme] body.blr-ba-app .wrapper,
html[data-blr-theme] body.blr-ba-app .main,
html[data-blr-theme] body.blr-ba-app .content,
html[data-blr-theme] body.blr-ba-auth .blr-ba-auth-wrap {
  background: var(--blr-body-bg) !important;
  color: var(--blr-text) !important;
}

html[data-blr-theme] body.blr-ba-app .card,
html[data-blr-theme] body.blr-ba-app .modal-content,
html[data-blr-theme] body.blr-ba-app .dropdown-menu,
html[data-blr-theme] body.blr-ba-auth .card,
html[data-blr-theme] body.blr-ba-auth .modal-content,
html[data-blr-theme] body.blr-ba-auth .dropdown-menu,
html[data-blr-theme] body.blr-ba-auth .blr-ba-auth-card {
  background-color: var(--blr-surface) !important;
  color: var(--blr-text) !important;
  border-color: var(--blr-border) !important;
  box-shadow: var(--blr-shadow);
}

html[data-blr-theme] body.blr-ba-app .card-header,
html[data-blr-theme] body.blr-ba-app .card-body,
html[data-blr-theme] body.blr-ba-app .card-footer,
html[data-blr-theme] body.blr-ba-auth .card-header,
html[data-blr-theme] body.blr-ba-auth .card-body,
html[data-blr-theme] body.blr-ba-auth .card-footer {
  color: inherit;
  border-color: var(--blr-border-soft) !important;
}

html[data-blr-theme] body.blr-ba-app .table,
html[data-blr-theme] body.blr-ba-app .table > :not(caption) > * > *,
html[data-blr-theme] body.blr-ba-auth .table,
html[data-blr-theme] body.blr-ba-auth .table > :not(caption) > * > * {
  color: var(--blr-text) !important;
  border-color: var(--blr-border) !important;
}

html[data-blr-theme] body.blr-ba-app h1,
html[data-blr-theme] body.blr-ba-app h2,
html[data-blr-theme] body.blr-ba-app h3,
html[data-blr-theme] body.blr-ba-app h4,
html[data-blr-theme] body.blr-ba-app h5,
html[data-blr-theme] body.blr-ba-app h6,
html[data-blr-theme] body.blr-ba-auth h1,
html[data-blr-theme] body.blr-ba-auth h2,
html[data-blr-theme] body.blr-ba-auth h3,
html[data-blr-theme] body.blr-ba-auth h4,
html[data-blr-theme] body.blr-ba-auth h5,
html[data-blr-theme] body.blr-ba-auth h6,
html[data-blr-theme] body.blr-ba-app .card-title,
html[data-blr-theme] body.blr-ba-auth .card-title {
  color: var(--blr-heading) !important;
}

html[data-blr-theme] body.blr-ba-app a:not(.btn),
html[data-blr-theme] body.blr-ba-auth a:not(.btn) {
  color: var(--bs-link-color) !important;
  text-decoration: none !important;
}

html[data-blr-theme] body.blr-ba-app a:not(.btn):hover,
html[data-blr-theme] body.blr-ba-app a:not(.btn):focus,
html[data-blr-theme] body.blr-ba-auth a:not(.btn):hover,
html[data-blr-theme] body.blr-ba-auth a:not(.btn):focus {
  color: var(--bs-link-hover-color) !important;
}

html[data-blr-theme] body.blr-ba-app .text-muted,
html[data-blr-theme] body.blr-ba-auth .text-muted,
html[data-blr-theme] body.blr-ba-app .form-text,
html[data-blr-theme] body.blr-ba-auth .form-text {
  color: var(--blr-muted) !important;
}

html[data-blr-theme] body.blr-ba-app .form-control,
html[data-blr-theme] body.blr-ba-app .form-select,
html[data-blr-theme] body.blr-ba-app textarea,
html[data-blr-theme] body.blr-ba-auth .form-control,
html[data-blr-theme] body.blr-ba-auth .form-select,
html[data-blr-theme] body.blr-ba-auth textarea,
html[data-blr-theme] .select2-container--default .select2-selection--single,
html[data-blr-theme] .select2-container--default .select2-selection--multiple,
html[data-blr-theme] .select2-dropdown,
html[data-blr-theme] .select2-search__field {
  background: var(--blr-input-bg) !important;
  color: var(--blr-input-text) !important;
  border-color: var(--blr-input-border) !important;
}

html[data-blr-theme] body.blr-ba-app .form-control::placeholder,
html[data-blr-theme] body.blr-ba-app textarea::placeholder,
html[data-blr-theme] body.blr-ba-auth .form-control::placeholder,
html[data-blr-theme] body.blr-ba-auth textarea::placeholder,
html[data-blr-theme] .select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: var(--blr-muted) !important;
}

html[data-blr-theme] .select2-container .select2-results__options,
html[data-blr-theme] .select2-results__option,
html[data-blr-theme] .select2-container--default .select2-selection--single .select2-selection__rendered,
html[data-blr-theme] .select2-container--default .select2-selection--multiple .select2-selection__choice__display {
  background-color: var(--blr-surface) !important;
  color: var(--blr-text) !important;
}

html[data-blr-theme] body.blr-ba-app .navbar.navbar-bg,
html[data-blr-theme] body.blr-ba-auth .navbar.navbar-bg {
  background: var(--blr-navbar-bg) !important;
  border-bottom: 1px solid var(--blr-border) !important;
}

html[data-blr-theme] body.blr-ba-app .navbar .nav-link,
html[data-blr-theme] body.blr-ba-auth .navbar .nav-link,
html[data-blr-theme] body.blr-ba-app .blr-ba-user-name,
html[data-blr-theme] body.blr-ba-auth .blr-ba-user-name,
html[data-blr-theme] body.blr-ba-app .blr-ba-theme-toggle,
html[data-blr-theme] body.blr-ba-auth .blr-ba-theme-toggle {
  color: var(--blr-navbar-link) !important;
}

html[data-blr-theme] body.blr-ba-app .navbar .nav-link:hover,
html[data-blr-theme] body.blr-ba-app .blr-ba-theme-toggle:hover,
html[data-blr-theme] body.blr-ba-auth .navbar .nav-link:hover,
html[data-blr-theme] body.blr-ba-auth .blr-ba-theme-toggle:hover {
  color: var(--blr-navbar-link-hover) !important;
}

html[data-blr-theme] body.blr-ba-app .hamburger,
html[data-blr-theme] body.blr-ba-app .hamburger::before,
html[data-blr-theme] body.blr-ba-app .hamburger::after,
html[data-blr-theme] body.blr-ba-auth .hamburger,
html[data-blr-theme] body.blr-ba-auth .hamburger::before,
html[data-blr-theme] body.blr-ba-auth .hamburger::after {
  background: var(--blr-navbar-link) !important;
}

html[data-blr-theme] body.blr-ba-app #sidebar,
html[data-blr-theme] body.blr-ba-app #sidebar .sidebar-content,
html[data-blr-theme] body.blr-ba-auth #sidebar,
html[data-blr-theme] body.blr-ba-auth #sidebar .sidebar-content {
  background: var(--blr-sidebar-bg) !important;
  border-right: 1px solid var(--blr-sidebar-border) !important;
}

html[data-blr-theme] body.blr-ba-app .sidebar-brand,
html[data-blr-theme] body.blr-ba-auth .sidebar-brand,
html[data-blr-theme] body.blr-ba-app .blr-logo-txt,
html[data-blr-theme] body.blr-ba-auth .blr-logo-txt {
  color: var(--blr-sidebar-logo-text) !important;
}

html[data-blr-theme] body.blr-ba-app .sidebar-link,
html[data-blr-theme] body.blr-ba-app a.sidebar-link,
html[data-blr-theme] body.blr-ba-auth .sidebar-link,
html[data-blr-theme] body.blr-ba-auth a.sidebar-link {
  color: var(--blr-sidebar-text) !important;
}

html[data-blr-theme="light"] body.blr-ba-app .sidebar-link:hover,
html[data-blr-theme="light"] body.blr-ba-app a.sidebar-link:hover,
html[data-blr-theme="light"] body.blr-ba-auth .sidebar-link:hover,
html[data-blr-theme="light"] body.blr-ba-auth a.sidebar-link:hover {
  background: rgba(var(--bs-primary-rgb), 0.08);
}

html[data-blr-theme] body.blr-ba-app .footer,
html[data-blr-theme] body.blr-ba-auth .footer {
  color: var(--blr-muted) !important;
}

html[data-blr-theme] body.blr-ba-app .btn.btn-outline-secondary,
html[data-blr-theme] body.blr-ba-auth .btn.btn-outline-secondary,
html[data-blr-theme] body.blr-ba-app .btn.btn-outline-secondary.blr-ch-img-btn,
html[data-blr-theme] body.blr-ba-auth .btn.btn-outline-secondary.blr-ch-img-btn {
  color: var(--blr-text) !important;
  background-color: var(--blr-surface) !important;
  border-color: var(--blr-border) !important;
}

html[data-blr-theme] body.blr-ba-app .btn.btn-outline-secondary:disabled,
html[data-blr-theme] body.blr-ba-auth .btn.btn-outline-secondary:disabled {
  color: var(--blr-muted) !important;
  background-color: var(--blr-surface-2) !important;
  border-color: var(--blr-border-soft) !important;
}

html[data-blr-theme] body.blr-ba-app .alert,
html[data-blr-theme] body.blr-ba-auth .alert,
html[data-blr-theme] body.blr-ba-app .list-group-item,
html[data-blr-theme] body.blr-ba-auth .list-group-item,
html[data-blr-theme] body.blr-ba-app .modal-header,
html[data-blr-theme] body.blr-ba-app .modal-footer,
html[data-blr-theme] body.blr-ba-auth .modal-header,
html[data-blr-theme] body.blr-ba-auth .modal-footer {
  border-color: var(--blr-border) !important;
}

html[data-blr-theme] body.blr-ba-app .modal-backdrop,
html[data-blr-theme] body.blr-ba-auth .modal-backdrop {
  --bs-backdrop-bg: var(--blr-backdrop);
}

html[data-blr-theme] .blr-ba-visual-preview--fixed,
html[data-blr-theme] .blr-ba-visual-choice-media,
html[data-blr-theme] .blr-ba-visual-archive-media-wrap,
html[data-blr-theme] .blr-ba-visual-archive-media,
html[data-blr-theme] .blr-ba-player-cover {
  background: var(--blr-surface-2) !important;
}

html[data-blr-theme] .blr-ba-visual-picker-search,
html[data-blr-theme] .blr-ba-visual-choice-card,
html[data-blr-theme] .blr-ba-audio-player {
  background: var(--blr-surface) !important;
  color: var(--blr-text) !important;
  border-color: var(--blr-border) !important;
  box-shadow: var(--blr-shadow);
}

html[data-blr-theme] .blr-ba-visual-choice-media-empty,
html[data-blr-theme] .blr-ba-visual-archive-media-empty {
  border-color: var(--blr-border) !important;
  color: var(--blr-muted) !important;
  background: linear-gradient(135deg, var(--blr-surface-2) 0%, var(--blr-surface-3) 100%) !important;
}

html[data-blr-theme] .blr-ba-visual-choice-title,
html[data-blr-theme] .blr-ba-player-title,
html[data-blr-theme] .blr-ba-player-now-title,
html[data-blr-theme] .blr-ba-player-track-title {
  color: var(--blr-heading) !important;
}

html[data-blr-theme] .blr-ba-visual-choice-subtitle,
html[data-blr-theme] .blr-ba-player-eyebrow,
html[data-blr-theme] .blr-ba-player-now-label,
html[data-blr-theme] .blr-ba-player-subtitle,
html[data-blr-theme] .blr-ba-player-now-meta,
html[data-blr-theme] .blr-ba-player-status,
html[data-blr-theme] .blr-ba-player-time,
html[data-blr-theme] .blr-ba-player-track-duration,
html[data-blr-theme] .blr-ba-player-track-subtitle,
html[data-blr-theme] .blr-ba-player-track-num {
  color: var(--blr-muted) !important;
}

html[data-blr-theme] .blr-ba-player-track {
  background: transparent;
  border-color: var(--blr-border) !important;
}

html[data-blr-theme] .blr-ba-player-track.is-unavailable .blr-ba-player-track-title,
html[data-blr-theme] .blr-ba-player-track.is-unavailable .blr-ba-player-track-subtitle {
  color: var(--blr-muted) !important;
}

html[data-blr-theme] a.list-group-item.list-group-item-action:hover,
html[data-blr-theme] a.list-group-item.list-group-item-action:focus {
  background-color: rgba(var(--bs-primary-rgb), 0.12) !important;
}

html[data-blr-theme] .dropdown-menu.dropdown-menu-end.show a.dropdown-item,
html[data-blr-theme] .dropdown-menu .dropdown-item {
  color: var(--blr-text) !important;
}

html[data-blr-theme] .dropdown-menu .dropdown-item:hover,
html[data-blr-theme] .dropdown-menu .dropdown-item:focus {
  background: rgba(var(--bs-primary-rgb), 0.08) !important;
  color: var(--blr-heading) !important;
}

html[data-blr-theme] .data-cleanup-check .form-check-input[type="checkbox"] {
  border-color: var(--blr-border) !important;
  background-color: var(--blr-surface) !important;
}

html[data-blr-theme="dark"] .blr-ba-sync-notice {
  border-color: #1f6b47;
  background-color: rgba(15, 81, 50, 0.24);
  color: #9fe3b8;
}

html[data-blr-theme] .blr-ba-profile-page .list-group-item.list-group-item-action {
  color: var(--blr-muted) !important;
  background-color: transparent !important;
}

html[data-blr-theme] .blr-ba-profile-page .list-group-item.list-group-item-action:hover,
html[data-blr-theme] .blr-ba-profile-page .list-group-item.list-group-item-action.active {
  color: var(--bs-primary) !important;
}

html[data-blr-theme="dark"] body.blr-ba-app .card.flex-fill:hover,
html[data-blr-theme="dark"] body.blr-ba-auth .card.flex-fill:hover {
  box-shadow: 0 8px 22px rgba(2, 6, 23, 0.28);
}

html[data-blr-theme] .blr-ba-calendar .blr-ba-cal-dow,
html[data-blr-theme] .blr-ba-calendar .blr-ba-cal-daynum,
html[data-blr-theme] .blr-ba-calendar .blr-ba-cal-event {
  color: var(--blr-text) !important;
}

html[data-blr-theme] .blr-ba-calendar .blr-ba-cal-dow,
html[data-blr-theme] .blr-ba-calendar .blr-ba-cal-cell {
  border-color: var(--blr-border) !important;
}

html[data-blr-theme="dark"] .blr-ba-calendar .blr-ba-cal-muted {
  opacity: 0.5;
}


html[data-blr-theme="dark"] .blr-dashboard-simple .summary-stat,
html[data-blr-theme="dark"] .blr-dashboard-simple .quick-links-grid .quick-link {
  background: var(--blr-surface-2);
  border-color: #3a3d42;
}

/* -------------------------------------------------------------------------- */
/* Primary-color chrome overrides                                             */
/* -------------------------------------------------------------------------- */

/* Make the primary color visibly drive common UI chrome too */
body.blr-ba-app .page-link,
body.blr-ba-auth .page-link {
  color: var(--bs-link-color);
}

body.blr-ba-app .page-link:hover,
body.blr-ba-app .page-link:focus,
body.blr-ba-auth .page-link:hover,
body.blr-ba-auth .page-link:focus {
  color: #fff;
  background-color: var(--bs-primary);
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 0.2rem var(--bs-focus-ring-color);
}

body.blr-ba-app .page-item.active .page-link,
body.blr-ba-auth .page-item.active .page-link,
body.blr-ba-app .pagination .active > .page-link,
body.blr-ba-auth .pagination .active > .page-link {
  color: #fff;
  background-color: var(--bs-primary);
  border-color: var(--bs-primary);
}

body.blr-ba-app .form-check-input:checked,
body.blr-ba-auth .form-check-input:checked {
  background-color: var(--bs-primary);
  border-color: var(--bs-primary);
}

body.blr-ba-app .form-check-input:focus,
body.blr-ba-auth .form-check-input:focus,
body.blr-ba-app .form-control:focus,
body.blr-ba-app .form-select:focus,
body.blr-ba-app textarea:focus,
body.blr-ba-auth .form-control:focus,
body.blr-ba-auth .form-select:focus,
body.blr-ba-auth textarea:focus {
  border-color: rgba(var(--bs-primary-rgb), 0.55) !important;
  box-shadow: 0 0 0 0.2rem var(--bs-focus-ring-color) !important;
}

body.blr-ba-app .dropdown-item.active,
body.blr-ba-app .dropdown-item:active,
body.blr-ba-auth .dropdown-item.active,
body.blr-ba-auth .dropdown-item:active {
  color: #fff !important;
  background-color: var(--bs-primary) !important;
}

body.blr-ba-app .list-group-item.active,
body.blr-ba-auth .list-group-item.active,
body.blr-ba-app .nav-pills .nav-link.active,
body.blr-ba-auth .nav-pills .nav-link.active {
  background-color: var(--bs-primary) !important;
  border-color: var(--bs-primary) !important;
  color: #fff !important;
}

footer.footer {
  background: var(--blr-footer) !important;
  border-top: 1px solid var(--blr-border-soft) !important;
}

button[data-blr-theme-toggle] svg.feather {
  width: 22px;
  height: 22px;
}

/* -------------------------------------------------------------------------- */
/* Loader, footer, and small shell helpers                                    */
/* -------------------------------------------------------------------------- */

.blr-content-shell {
	position: relative;
}

.blr-content-loader {
	position: absolute;
	inset: 0;
	z-index: 1020;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	opacity: 1;
	visibility: visible;
	pointer-events: all;
	transition: opacity var(--blr-transition-base), visibility var(--blr-transition-base);
}

/* Dark mode background */
html[data-blr-theme="dark"] .blr-content-loader,
body[data-blr-theme="dark"] .blr-content-loader,
html[data-bs-theme="dark"] .blr-content-loader,
body[data-bs-theme="dark"] .blr-content-loader {
	background: #020202;
}

/* Light mode background */
html[data-blr-theme="light"] .blr-content-loader,
body[data-blr-theme="light"] .blr-content-loader,
html[data-bs-theme="light"] .blr-content-loader,
body[data-bs-theme="light"] .blr-content-loader {
	background: #fff;
}

/* Hidden after full page load */
html.blr-page-loaded .blr-content-loader {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

.blr-content-loader__spinner {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 3px solid rgba(127, 127, 127, 0.2);
	border-top-color: var(--bs-primary, #d8932b);
	animation: blr-content-loader-spin 0.8s linear infinite;
}

@keyframes blr-content-loader-spin {
	to {
		transform: rotate(360deg);
	}
}

.sidebar-brand {
  padding: 1.5rem 1.5rem !important;
}

.nav-link.dropdown-toggle::after {
  border: none !important;
}

svg.feather.feather-bell {
  width: 22px;
  height: 22px;
}

.task-priority {
  background: var(--bs-primary-bg-subtle, #d8932b);
  padding:3px 5px;
  border-radius: 3px;
  color: #fff;
  font-size: 0.75rem;
}

        /* -------------------------------------------------------------------------- */
/* Dashboard: simple layout                                                    */
/* -------------------------------------------------------------------------- */

#blr-ba-sidebar-logo-preview img.blr-ba-preview-image {
  width: 75px;
  height: auto;
}

.blr-dashboard-simple .card {
  border: 0;
  box-shadow: 0 0.125rem 0.75rem rgba(17, 24, 39, 0.06);
}

.blr-dashboard-simple .card-header {
  background: transparent;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  padding-bottom: 0.9rem;
}

.blr-dashboard-simple .dashboard-intro {
  margin-bottom: 1rem;
}

.blr-dashboard-simple .dashboard-intro h1,
.blr-dashboard-simple .dashboard-intro h2,
.blr-dashboard-simple .dashboard-intro h3,
.blr-dashboard-simple .dashboard-intro h4,
.blr-dashboard-simple .dashboard-intro h5 {
  letter-spacing: -0.02em;
}

.blr-dashboard-simple .metric-card,
.blr-dashboard-simple .dashboard-main-card,
.blr-dashboard-simple .dashboard-side-card {
  height: 100%;
}

.blr-dashboard-simple .metric-card {
  margin-bottom: 0;
}

.blr-dashboard-simple .metric-card .metric-value {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.375rem;
}

.blr-dashboard-simple .metric-card .metric-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bs-secondary-color);
}

.blr-dashboard-simple .metric-card .metric-meta,
.blr-dashboard-simple .section-muted,
.blr-dashboard-simple .summary-stat-label,
.blr-dashboard-simple .tool-meta,
.blr-dashboard-simple .tool-description,
.blr-dashboard-simple .list-meta,
.blr-dashboard-simple .inline-meta {
  color: var(--bs-secondary-color);
  font-size: 0.875rem;
  line-height: 1.4;
}

.blr-dashboard-simple .metric-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.05);
  color: var(--bs-body-color);
}

.blr-dashboard-simple .stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.blr-dashboard-simple .stat-box {
  background: rgba(15, 23, 42, 0.03);
  border: 1px solid rgba(15, 23, 42, 0.05);
  border-radius: 0.9rem;
  padding: 1rem;
}

.blr-dashboard-simple .stat-box-value {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.35rem;
}

.blr-dashboard-simple .overview-row + .overview-row,
.blr-dashboard-simple .status-row + .status-row {
  margin-top: 1rem;
}

.blr-dashboard-simple .bar-track {
  height: 0.45rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.blr-dashboard-simple .bar-fill {
  height: 100%;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.9;
}

.blr-dashboard-simple .overview-row .bar-fill {
  color: #3b82f6;
}

.blr-dashboard-simple .status-row .bar-fill {
  color: #64748b;
}

.blr-dashboard-simple .summary-shell .card-body {
  padding: 1rem 1rem 0.85rem;
}

.blr-dashboard-simple .summary-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.blr-dashboard-simple .summary-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.blr-dashboard-simple .summary-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 0.15rem;
}

.blr-dashboard-simple .summary-stat {
  min-width: 120px;
  padding: 0.65rem 0.8rem;
  border-radius: 4px;
  background: rgba(15, 23, 42, 0.035);
  border: 1px solid rgba(15, 23, 42, 0.05);
}

.blr-dashboard-simple .summary-stat-value {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.2rem;
}

.blr-dashboard-simple .summary-stat-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.blr-dashboard-simple .section-block + .section-block {
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  margin-top: 1rem;
  padding-top: 1rem;
}

.blr-dashboard-simple .section-block-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.blr-dashboard-simple .section-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.blr-dashboard-simple .list-group-item {
  border-left: 0;
  border-right: 0;
  padding-left: 0;
  padding-right: 0;
}

.blr-dashboard-simple .list-group-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.blr-dashboard-simple .list-group-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.blr-dashboard-simple .module-link,
.blr-dashboard-simple .item-link,
.blr-dashboard-simple .row-link {
  color: inherit;
  text-decoration: none;
}

.blr-dashboard-simple .module-link:hover,
.blr-dashboard-simple .item-link:hover,
.blr-dashboard-simple .row-link:hover {
  color: inherit;
  text-decoration: none;
}

.blr-dashboard-simple .list-title,
.blr-dashboard-simple .tool-name {
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.blr-dashboard-simple .tool-row,
.blr-dashboard-simple .attention-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.blr-dashboard-simple .tool-row {
  padding: 0.8rem 0;
}

.blr-dashboard-simple .attention-row {
  padding: 0.7rem 0;
}

.blr-dashboard-simple .tool-row:first-child,
.blr-dashboard-simple .attention-row:first-child {
  padding-top: 0;
}

.blr-dashboard-simple .tool-row:last-child,
.blr-dashboard-simple .attention-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.blr-dashboard-simple .tool-count,
.blr-dashboard-simple .attention-value {
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.blr-dashboard-simple .tool-count {
  font-size: 1.05rem;
}

.blr-dashboard-simple .attention-value {
  padding-top: 0.2rem;
}

.blr-dashboard-simple .tool-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: var(--bs-secondary-color);
  font-size: 0.75rem;
  font-weight: 600;
}

.blr-dashboard-simple .quick-links-grid .quick-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  min-height: 2.25rem;
  padding: 0.45rem 0.65rem;
  border-radius: 0.65rem;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: var(--bs-body-color);
  transition: background-color var(--blr-transition-base), border-color var(--blr-transition-base), transform var(--blr-transition-base);
}

.blr-dashboard-simple .quick-links-grid .quick-link:hover {
  background: rgba(15, 23, 42, 0.07);
  border-color: rgba(15, 23, 42, 0.14);
  color: var(--bs-body-color);
  text-decoration: none;
  transform: translateY(-1px);
}

.blr-dashboard-simple .quick-links-grid .quick-link i {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
}

.blr-dashboard-simple .quick-links-grid .quick-link span {
  white-space: nowrap;
}

@media (max-width: 991.98px) {
  .blr-dashboard-simple .stat-grid {
    grid-template-columns: 1fr;
  }

  .blr-dashboard-simple .summary-stat {
    min-width: calc(50% - 0.375rem);
  }
}

@media (max-width: 575.98px) {
  .blr-dashboard-simple .summary-stat {
    min-width: 100%;
  }
}

html[data-blr-theme] .blr-dashboard-simple .summary-stat {
  background: var(--blr-surface);
  border-color: var(--blr-border);
  color: var(--blr-text);
}

html[data-blr-theme] .blr-dashboard-simple .summary-stat-label {
  color: var(--blr-muted);
}

html[data-blr-theme] .blr-dashboard-simple .summary-stat-value {
  color: var(--blr-heading);
}



/* -------------------------------------------------------------------------- */
/* Dashboard: finance balance chart                                            */
/* -------------------------------------------------------------------------- */

.blr-dashboard-simple .blr-finance-balance-filter {
  row-gap: 0.5rem;
}

.blr-dashboard-simple .blr-finance-balance-chart-shell {
  padding: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.02);
}

.blr-dashboard-simple .blr-finance-balance-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.blr-dashboard-simple .blr-finance-balance-stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.75rem 0.85rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: rgba(255, 255, 255, 0.72);
}

.blr-dashboard-simple .blr-finance-balance-stat-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bs-secondary-color);
}

.blr-dashboard-simple .blr-finance-balance-stat-value {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
}

.blr-dashboard-simple .blr-finance-balance-chart {
  width: 100%;
}

.blr-dashboard-simple .blr-finance-balance-chart-svg {
  display: block;
  width: 100%;
  height: auto;
}

.blr-dashboard-simple .blr-finance-chart-grid-line,
.blr-dashboard-simple .blr-finance-chart-zero-line {
  stroke: rgba(100, 116, 139, 0.22);
  stroke-width: 1;
}

.blr-dashboard-simple .blr-finance-chart-zero-line {
  stroke: rgba(59, 130, 246, 0.4);
  stroke-dasharray: 4 4;
}

.blr-dashboard-simple .blr-finance-chart-grid-label,
.blr-dashboard-simple .blr-finance-chart-axis-label {
  fill: var(--bs-secondary-color);
  font-size: 11px;
}

.blr-dashboard-simple .blr-finance-chart-line {
  stroke: #2563eb;
  stroke-width: 3;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.blr-dashboard-simple .blr-finance-chart-point {
  fill: #2563eb;
  stroke: #fff;
  stroke-width: 2;
}

@media (max-width: 991.98px) {
  .blr-dashboard-simple .blr-finance-balance-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .blr-dashboard-simple .blr-finance-balance-filter {
    width: 100%;
  }

  .blr-dashboard-simple .blr-finance-balance-filter > div,
  .blr-dashboard-simple .blr-finance-balance-filter .d-flex {
    width: 100%;
  }

  .blr-dashboard-simple .blr-finance-balance-stats {
    grid-template-columns: 1fr;
  }
}

html[data-blr-theme] .blr-dashboard-simple .blr-finance-balance-chart-shell {
  background: var(--blr-surface);
  border-color: var(--blr-border);
}

html[data-blr-theme] .blr-dashboard-simple .blr-finance-balance-stat {
  background: color-mix(in srgb, var(--blr-surface) 90%, white 10%);
  border-color: var(--blr-border);
}

html[data-blr-theme] .blr-dashboard-simple .blr-finance-balance-stat-label,
html[data-blr-theme] .blr-dashboard-simple .blr-finance-chart-grid-label,
html[data-blr-theme] .blr-dashboard-simple .blr-finance-chart-axis-label {
  fill: var(--blr-muted);
  color: var(--blr-muted);
}

/* -------------------------------------------------------------------------- */
/* Layout rules formerly printed inline                                       */
/* -------------------------------------------------------------------------- */

.blr-ba-avatar {
  width: 32px;
  height: 32px;
  object-fit: cover;
  border-radius: 999px;
}

body.blr-ba-auth {
  background: var(--bs-body-bg);
}

.blr-ba-auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.blr-ba-auth-card {
  max-width: 520px;
  width: 100%;
}

body.blr-ba-auth .blr-ba-avatar {
  width: 40px;
  height: 40px;
}

.blr-ba-calendar {
  user-select: none;
}

.blr-ba-calendar .blr-ba-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
}

.blr-ba-calendar .blr-ba-cal-dow {
  font-size: 12px;
  font-weight: 600;
  color: rgba(73, 80, 87, 0.8);
  padding: 0.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.blr-ba-calendar .blr-ba-cal-cell {
  min-height: 110px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  border-right: 1px solid rgba(0, 0, 0, 0.06);
  padding: 0.5rem;
}

.blr-ba-calendar .blr-ba-cal-cell:nth-child(7n) {
  border-right: 0;
}

.blr-ba-calendar .blr-ba-cal-daynum {
  font-size: 12px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.7);
}

.blr-ba-calendar .blr-ba-cal-muted {
  opacity: 0.35;
}

.blr-ba-calendar .blr-ba-cal-event {
  display: block;
  font-size: 12px;
  margin-top: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* BLR Backline local presentation utilities. Keep simple display tweaks in CSS instead of inline style attributes. */
.blr-ba-sidebar-logo {
  max-height: 32px;
  width: auto;
}

.blr-ba-notification-count {
  font-size: .65rem;
  min-width: 1.2rem;
}

.blr-ba-notification-menu {
  min-width: 22rem;
}

.blr-ba-object-cover {
  object-fit: cover;
}

.blr-ba-placeholder-image {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.blr-ba-list-thumb {
  width: 52px;
  height: 52px;
  object-fit: cover;
}

.blr-ba-avatar-image {
  width: 128px;
  height: 128px;
  object-fit: cover;
}

.blr-ba-drag-handle--grab {
  cursor: grab;
}

.blr-ba-log-update-form {
  min-width: 280px;
}

.blr-ba-calendar-more {
  font-size: 12px;
  margin-top: .25rem;
}
