:root {
  --uli-sidebar-width: 20.5rem;
  --uli-sidebar-mini-width: 6.5rem;
  --uli-sidebar-gap: 1.25rem;
  --uli-sidebar-mini-gap: 1.25rem;
  --sidebar-expanded: 20.5rem;
  --sidebar-collapsed: 6.5rem;
  --content-max: 1200px;
  --status-connected-green: #15803d;
  --sidebar-width: var(--sidebar-expanded);
}

body.sidebar-collapsed {
  --sidebar-width: var(--sidebar-collapsed);
}

body:not(.sidebar-collapsed) {
  --sidebar-width: var(--sidebar-expanded);
}

body.app-mode {
  min-height: 100dvh;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

body.app-mode .header {
  top: env(safe-area-inset-top, 0px);
}

body.app-mode .mobile-header-top {
  min-height: 56px;
}

body.app-mode .content-body {
  min-height: calc(100dvh - 56px);
}

body.app-mode .content-body .container-fluid {
  padding-top: 0.85rem;
  padding-left: 1rem;
  padding-right: 1rem;
}

body.app-mode .authincation .container-fluid {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

body.app-mode .authincation-content {
  padding-top: 0.5rem;
  padding-bottom: 1rem;
}

body.app-mode .footer,
body.app-mode .landing-footer {
  display: none !important;
}

/* Increase default light-theme text contrast slightly across the app. */
body[data-theme-version="light"] {
  --primary: #3eb8ae;
  --primary-hover: #2ea79d;
  --primary-dark: #1f6f69;
  --bs-primary: #3eb8ae;
  --bs-primary-rgb: 62, 184, 174;
  --bs-link-color: #2e9f97;
  --bs-link-hover-color: #237f79;
  --bs-success: #2f9e4f;
  --bs-success-rgb: 47, 158, 79;
  --status-connected-green: #2f9e4f;
  --bs-body-color: #4b5563;
  --bs-secondary-color: #5f6b7a;
  color: var(--bs-body-color);
}

.top-movers-section-header {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.95rem 1.7rem 0.7rem;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.top-movers-filters-card-header {
  padding: 0.72rem 1rem !important;
  min-height: 0;
}

.top-movers-filters-card-header h6 {
  font-size: 0.95rem;
}

.top-movers-filters-card-header .btn {
  min-height: 2.2rem;
  padding: 0.3rem 0.85rem;
  font-size: 0.82rem;
}

.top-movers-section-accent {
  width: 0.52rem;
  height: 0.52rem;
  border-radius: 50%;
}

body[data-theme-version="light"] .top-movers-section-header--earners {
  color: #1f7f43;
}

body[data-theme-version="light"] .top-movers-section-header--earners .top-movers-section-accent {
  background: #2f9e4f;
  box-shadow: 0 0 0 4px rgba(47, 158, 79, 0.16);
}

body[data-theme-version="light"] .top-movers-section-header--losers {
  color: #b42338;
}

body[data-theme-version="light"] .top-movers-section-header--losers .top-movers-section-accent {
  background: #ef4f67;
  box-shadow: 0 0 0 4px rgba(239, 79, 103, 0.14);
}

body[data-theme-version="dark"] .top-movers-section-header--earners {
  color: #86efac;
}

body[data-theme-version="dark"] .top-movers-section-header--earners .top-movers-section-accent {
  background: #4ade80;
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.2);
}

body[data-theme-version="dark"] .top-movers-section-header--losers {
  color: #fca5a5;
}

body[data-theme-version="dark"] .top-movers-section-header--losers .top-movers-section-accent {
  background: #f87171;
  box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.24);
}

.top-movers-table th:first-child,
.top-movers-table td:first-child {
  padding-left: 0.85rem !important;
}

.top-movers-table th:last-child,
.top-movers-table td:last-child {
  padding-right: 0.65rem !important;
}

.top-movers-symbol {
  color: #1f2937;
}

body[data-theme-version="dark"] .top-movers-symbol {
  color: #dbe3f0;
}

.top-movers-record {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.top-movers-symbol-primary {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.2;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.top-movers-symbol-secondary {
  display: -webkit-box;
  overflow: hidden;
  font-size: 0.74rem;
  line-height: 1.25;
  color: rgba(59, 89, 129, 0.74);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body[data-theme-version="dark"] .top-movers-symbol-secondary {
  color: rgba(188, 210, 239, 0.76);
}

.top-movers-change-pill {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.78rem;
  line-height: 1.1;
}

body[data-theme-version="light"] .top-movers-change-positive {
  background: rgba(22, 163, 74, 0.16);
  color: #166534;
}

body[data-theme-version="light"] .top-movers-change-negative {
  background: rgba(220, 38, 38, 0.14);
  color: #991b1b;
}

body[data-theme-version="dark"] .top-movers-change-positive {
  background: rgba(34, 197, 94, 0.2);
  color: #86efac;
}

body[data-theme-version="dark"] .top-movers-change-negative {
  background: rgba(239, 68, 68, 0.22);
  color: #fca5a5;
}

.top-movers-rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 1.65rem;
  padding: 0 0.48rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1;
}

body[data-theme-version="light"] .top-movers-rank-badge {
  color: #234978;
  background: rgba(56, 146, 242, 0.14);
  border: 1px solid rgba(56, 146, 242, 0.28);
}

body[data-theme-version="dark"] .top-movers-rank-badge {
  color: #d3e6ff;
  background: rgba(96, 165, 250, 0.2);
  border: 1px solid rgba(125, 181, 251, 0.3);
}

.top-movers-kv-label {
  display: none;
}

.top-movers-filter-segmented {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  flex-wrap: wrap;
  padding: 0.34rem;
  border-radius: 0.92rem;
  border: 1px solid rgba(132, 162, 203, 0.34);
  background: rgba(242, 247, 255, 0.84);
}

.top-movers-filter-segmented--exchange .top-movers-filter-segmented-btn {
  flex: 1 1 0;
  justify-content: center;
  min-width: 92px;
}

.top-movers-filter-segmented--lookback .top-movers-filter-segmented-btn {
  flex: 1 1 auto;
  min-width: 54px;
}

.top-movers-filter-segmented-btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 0.68rem;
  background: transparent;
  color: rgba(26, 55, 93, 0.9);
  font-size: 0.79rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.01em;
  padding: 0.42rem 0.68rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}

.top-movers-filter-segmented-btn:hover,
.top-movers-filter-segmented-btn:focus {
  color: #0f2f55;
  border-color: rgba(81, 129, 194, 0.42);
  background: rgba(255, 255, 255, 0.72);
}

.top-movers-filter-segmented-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 0.16rem rgba(56, 189, 248, 0.28);
}

.top-movers-filter-segmented-btn.is-active {
  color: #052437;
  border-color: rgba(58, 171, 187, 0.5);
  background: linear-gradient(130deg, #a3f7ff, #6ce4d6 58%, #47d2c2);
  box-shadow: 0 8px 16px rgba(53, 171, 185, 0.24);
}

#top-movers-filters-body {
  --top-movers-toolbar-control-height: calc((1rem * 1.5) + (0.938rem * 2) + 2px);
}

#top-movers-filters-body .top-movers-filter-segmented {
  align-items: stretch;
  min-height: var(--top-movers-toolbar-control-height);
  box-sizing: border-box;
  gap: 0.22rem;
  padding: 0.22rem;
  border-radius: 999px;
}

#top-movers-filters-body .top-movers-filter-segmented-btn {
  align-self: stretch;
  border-radius: 999px;
  padding: 0 0.88rem;
}

#top-movers-filters-body #top-movers-refresh {
  min-height: var(--top-movers-toolbar-control-height);
  border-radius: 999px;
}

body[data-theme-version="dark"] .top-movers-filter-segmented {
  border-color: rgba(105, 138, 181, 0.45);
  background: rgba(8, 22, 48, 0.7);
}

body[data-theme-version="dark"] .top-movers-filter-segmented-btn {
  color: rgba(198, 220, 246, 0.94);
}

body[data-theme-version="dark"] .top-movers-filter-segmented-btn:hover,
body[data-theme-version="dark"] .top-movers-filter-segmented-btn:focus {
  color: #f0f7ff;
  border-color: rgba(111, 183, 255, 0.48);
  background: rgba(17, 35, 65, 0.86);
}

body[data-theme-version="dark"] .top-movers-filter-segmented-btn.is-active {
  color: #052437;
  border-color: rgba(74, 211, 203, 0.56);
  background: linear-gradient(130deg, #93f8ff, #4ddad1 58%, #22c6bc);
  box-shadow: 0 10px 20px rgba(22, 178, 192, 0.32);
}

.analytics-symbol-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.analytics-timeframe-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

#analytics-filters .analytics-choice-chip {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3.2rem;
  margin: 0;
  padding: 0.82rem 0.95rem;
  border-radius: 1rem;
  border: 1px solid rgba(98, 146, 188, 0.34);
  background: linear-gradient(180deg, #ffffff 0%, #f5fbff 100%);
  box-shadow: 0 10px 22px rgba(19, 34, 61, 0.06);
  color: #35536d !important;
  text-align: center;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

#analytics-filters .analytics-choice-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(62, 177, 193, 0.44);
  box-shadow: 0 14px 28px rgba(37, 128, 163, 0.12);
  color: #153d52 !important;
}

#analytics-filters .analytics-choice-chip:focus-within {
  outline: none;
  border-color: rgba(43, 179, 196, 0.5);
  box-shadow: 0 0 0 0.17rem rgba(68, 199, 214, 0.18);
}

#analytics-filters .analytics-choice-chip.active {
  color: #0b3a4e !important;
  border-color: rgba(53, 185, 185, 0.54);
  background: linear-gradient(135deg, rgba(122, 232, 221, 0.9), rgba(96, 205, 235, 0.82));
  box-shadow: 0 16px 30px rgba(44, 168, 190, 0.18);
}

#analytics-filters .analytics-choice-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  border: 0;
}

#analytics-filters .analytics-symbol-tile {
  min-height: 5.4rem;
  width: 100%;
  max-width: none !important;
  flex: initial !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  justify-self: stretch;
}

#analytics-filters .analytics-symbol-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

#analytics-filters .analytics-symbol-name,
#analytics-filters .analytics-symbol-other-label,
#analytics-filters .analytics-timeframe-chip {
  font-weight: 700;
  letter-spacing: 0.01em;
}

#analytics-filters .analytics-symbol-name {
  font-size: 1.02rem;
}

#analytics-filters .analytics-symbol-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  width: 100%;
  margin-top: 0.35rem;
  font-size: 0.93rem;
  color: #64748b;
}

#analytics-filters .analytics-symbol-meta .price {
  font-variant-numeric: tabular-nums;
}

#analytics-filters .analytics-symbol-meta .value-positive {
  color: #129a63;
  font-weight: 700;
}

#analytics-filters .analytics-symbol-meta .value-negative {
  color: #d94d3f;
  font-weight: 700;
}

#analytics-filters .analytics-symbol-other {
  width: 100%;
  min-height: 3.7rem;
}

body[data-theme-version="dark"] #analytics-filters .analytics-choice-chip {
  border-color: rgba(99, 136, 176, 0.42);
  background: linear-gradient(180deg, rgba(17, 30, 55, 0.92), rgba(13, 24, 46, 0.94));
  box-shadow: 0 14px 28px rgba(2, 8, 18, 0.32);
  color: rgba(214, 228, 244, 0.94) !important;
}

body[data-theme-version="dark"] #analytics-filters .analytics-choice-chip:hover {
  border-color: rgba(96, 178, 235, 0.48);
  box-shadow: 0 16px 30px rgba(4, 13, 28, 0.4);
  color: #f1f7ff !important;
}

body[data-theme-version="dark"] #analytics-filters .analytics-choice-chip.active {
  color: #052437 !important;
  border-color: rgba(74, 211, 203, 0.56);
  background: linear-gradient(130deg, #93f8ff, #4ddad1 58%, #22c6bc);
  box-shadow: 0 12px 24px rgba(22, 178, 192, 0.32);
}

body[data-theme-version="dark"] #analytics-filters .analytics-symbol-meta {
  color: rgba(178, 199, 220, 0.78);
}

body[data-theme-version="dark"] #analytics-filters .analytics-choice-chip.active .analytics-symbol-meta {
  color: rgba(5, 36, 55, 0.72);
}

body[data-theme-version="dark"] #analytics-filters .analytics-choice-chip.active .analytics-symbol-meta .value-positive {
  color: #0d7b58;
}

body[data-theme-version="dark"] #analytics-filters .analytics-choice-chip.active .analytics-symbol-meta .value-negative {
  color: #a53a2f;
}

@media (max-width: 575.98px) {
  .analytics-timeframe-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.top-movers-mobile-actions {
  display: none;
}

.top-movers-table {
  width: 100%;
  table-layout: fixed;
  min-width: 640px;
}

.top-movers-table thead th {
  white-space: nowrap;
}

.top-movers-table th:nth-child(1),
.top-movers-table td:nth-child(1) {
  width: 56px;
}

.top-movers-table th:nth-child(3),
.top-movers-table td:nth-child(3) {
  width: 92px;
}

.top-movers-table th:nth-child(4),
.top-movers-table td:nth-child(4) {
  width: 104px;
}

.top-movers-table th:nth-child(5),
.top-movers-table td:nth-child(5) {
  width: 110px;
}

.top-movers-actions-col,
.top-movers-actions-cell {
  width: 152px;
  min-width: 152px;
}

.top-movers-action-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem;
  width: 100%;
  max-width: 144px;
  margin-left: auto;
}

.top-movers-action-btn {
  width: 100%;
  text-align: center;
  border-radius: 0.62rem;
  padding: 0.38rem 0.48rem;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.15;
  white-space: normal;
  letter-spacing: 0.01em;
}

.top-movers-action-btn--wide {
  grid-column: 1 / -1;
}

.top-movers-table {
  table-layout: auto;
  min-width: 0;
}

.top-movers-table thead {
  display: none;
}

.top-movers-table th:nth-child(1),
.top-movers-table td:nth-child(1),
.top-movers-table th:nth-child(3),
.top-movers-table td:nth-child(3),
.top-movers-table th:nth-child(4),
.top-movers-table td:nth-child(4),
.top-movers-table th:nth-child(5),
.top-movers-table td:nth-child(5),
.top-movers-actions-col,
.top-movers-actions-cell {
  width: auto;
  min-width: 0;
}

.top-movers-table th:first-child,
.top-movers-table td:first-child,
.top-movers-table th:last-child,
.top-movers-table td:last-child {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.top-movers-table tbody {
  display: grid;
  gap: 0.78rem;
  padding: 0.86rem 0.92rem 1rem;
}

.top-movers-table tbody tr.top-movers-data-row {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "rank symbol change"
    "rank last volume"
    "actions actions actions";
  gap: 0.55rem 0.72rem;
  padding: 0.88rem 0.96rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(129, 163, 205, 0.34);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.95), rgba(241, 248, 255, 0.92));
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.09);
}

#top-earners-body .top-movers-data-row::before,
#top-losers-body .top-movers-data-row::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0.72rem;
  right: 0.72rem;
  height: 2px;
  border-radius: 999px;
}

#top-earners-body .top-movers-data-row::before {
  background: linear-gradient(90deg, rgba(34, 197, 94, 0.88), rgba(34, 197, 94, 0));
}

#top-losers-body .top-movers-data-row::before {
  background: linear-gradient(90deg, rgba(251, 113, 133, 0.88), rgba(251, 113, 133, 0));
}

.top-movers-table tbody tr.top-movers-data-row td {
  border: 0;
  padding: 0 !important;
  min-width: 0;
  background: transparent;
}

.top-movers-cell-rank {
  grid-area: rank;
  align-self: center;
}

.top-movers-cell-symbol {
  grid-area: symbol;
  align-self: center;
  font-size: 0.94rem;
}

.top-movers-cell-change {
  grid-area: change;
  align-self: start;
  justify-self: end;
}

.top-movers-cell-last {
  grid-area: last;
}

.top-movers-cell-volume {
  grid-area: volume;
  justify-self: end;
  text-align: right;
}

.top-movers-kv {
  display: inline-flex;
  flex-direction: column;
  gap: 0.14rem;
}

.top-movers-kv-label {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(59, 89, 129, 0.74);
}

.top-movers-kv-value {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.top-movers-cell-actions {
  grid-area: actions;
  width: 100%;
  text-align: left !important;
  padding-top: 0.18rem !important;
}

.top-movers-action-stack {
  max-width: none;
  margin-left: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.42rem;
}

.top-movers-action-btn {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.top-movers-empty-row {
  display: block;
}

.top-movers-empty-row td {
  display: block;
  border: 1px dashed rgba(128, 157, 200, 0.45);
  border-radius: 0.85rem;
  background: rgba(246, 250, 255, 0.88);
  padding: 0.75rem 0.82rem !important;
}

body[data-theme-version="dark"] .top-movers-table tbody tr.top-movers-data-row {
  border-color: rgba(108, 141, 180, 0.42);
  background: linear-gradient(150deg, rgba(9, 22, 48, 0.94), rgba(8, 17, 36, 0.92));
  box-shadow: 0 14px 24px rgba(2, 6, 23, 0.46);
}

body[data-theme-version="dark"] .top-movers-kv-label {
  color: rgba(176, 201, 232, 0.78);
}

body[data-theme-version="dark"] .top-movers-kv-value {
  color: #deecff;
}

body[data-theme-version="dark"] .top-movers-empty-row td {
  border-color: rgba(106, 136, 176, 0.54);
  background: rgba(8, 19, 42, 0.72);
  color: #d0dff3 !important;
}

@media only screen and (max-width: 1400px) {
  #top-movers-filters-body {
    --top-movers-toolbar-control-height: calc((0.813rem * 1.5) + (0.625rem * 2) + 2px);
  }
}

@media (max-width: 767.98px) {
  .top-movers-split-col {
    border-right: 0 !important;
  }

  .top-movers-split-col + .top-movers-split-col {
    border-top: 1px solid rgba(148, 163, 184, 0.24);
  }

  .top-movers-section-header {
    padding: 0.9rem 0.95rem 0.64rem;
  }

  .top-movers-filter-segmented {
    gap: 0.35rem;
    padding: 0.3rem;
  }

  .top-movers-filter-segmented-btn {
    font-size: 0.73rem;
    padding: 0.38rem 0.5rem;
  }

  .top-movers-filter-segmented--exchange .top-movers-filter-segmented-btn {
    min-width: 0;
  }

  .top-movers-filter-segmented--lookback .top-movers-filter-segmented-btn {
    min-width: 0;
    flex: 1 1 calc(33.333% - 0.35rem);
  }

  .top-movers-table {
    min-width: 0;
  }

  .top-movers-table tbody tr.top-movers-data-row {
    grid-template-areas:
      "rank symbol change"
      "last volume volume"
      "actions actions actions";
    gap: 0.46rem 0.56rem;
    padding: 0.72rem 0.74rem;
  }

  .top-movers-cell-rank {
    grid-area: rank;
    align-self: center;
  }

  .top-movers-cell-symbol {
    grid-area: symbol;
    align-self: center;
    font-size: 0.92rem;
  }

  .top-movers-symbol-primary {
    font-size: 0.88rem;
  }

  .top-movers-symbol-secondary {
    font-size: 0.7rem;
  }

  .top-movers-cell-change {
    grid-area: change;
    align-self: center;
    justify-self: end;
  }

  .top-movers-cell-last {
    grid-area: last;
  }

  .top-movers-cell-volume {
    grid-area: volume;
    justify-self: end;
    text-align: right;
  }

  .top-movers-kv-label {
    font-size: 0.62rem;
  }

  .top-movers-kv-value {
    font-size: 0.88rem;
  }

  .top-movers-cell-actions {
    grid-area: actions;
    width: 100%;
    text-align: left !important;
    padding-top: 0.18rem !important;
  }

  .top-movers-actions-desktop {
    display: none !important;
  }

  .top-movers-mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 0.44rem;
    width: 100%;
  }

  .top-movers-mobile-action {
    width: 100%;
    padding: 0.42rem 0.5rem;
    font-size: 0.73rem;
  }

  .top-movers-cell-actions .top-movers-action-stack {
    grid-template-columns: minmax(0, 1fr);
  }

  body[data-theme-version="dark"] .top-movers-split-col + .top-movers-split-col {
    border-top-color: rgba(107, 131, 168, 0.38);
  }
}

.opportunities-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 1.15rem;
  padding: 1.15rem 1.2rem;
  background:
    radial-gradient(110% 120% at 95% -15%, rgba(67, 205, 200, 0.25), transparent 54%),
    radial-gradient(90% 110% at -10% 105%, rgba(56, 189, 248, 0.2), transparent 52%),
    linear-gradient(136deg, rgba(8, 22, 52, 0.92), rgba(10, 29, 68, 0.95));
}

.opportunities-hero.dashboard-page-hero,
.opportunities-hero.trades-page-hero {
  overflow: visible;
}

.opportunities-hero-title h1 {
  color: #f8fbff;
}

.opportunities-hero-title p {
  color: rgba(224, 238, 255, 0.72) !important;
}

.opportunities-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.65rem;
  --opportunities-toolbar-control-height: calc((1rem * 1.5) + (0.938rem * 2) + 2px);
}

.opportunities-toolbar-host {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.65rem;
}

.opportunities-toolbar--top-movers {
  justify-content: flex-end;
}

#opportunities-page #top-movers-filters-card {
  display: none;
}

#opportunities-page.is-top-movers-view #opportunities-toolbar {
  display: none;
}

#opportunities-page.is-top-movers-view #top-movers-filters-card:not(.d-none) {
  display: flex;
}

.opportunities-direction-field {
  position: relative;
  min-width: 238px;
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
}

.opportunities-direction-label {
  color: rgba(224, 238, 255, 0.78);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.opportunities-direction-toggle {
  display: inline-flex;
  align-items: stretch;
  gap: 0.22rem;
  padding: 0.22rem;
  min-height: var(--opportunities-toolbar-control-height);
  box-sizing: border-box;
  border-radius: 999px;
  border: 1px solid rgba(123, 170, 225, 0.34);
  background: rgba(7, 19, 43, 0.58);
  box-shadow: inset 0 1px 0 rgba(226, 240, 255, 0.08);
  backdrop-filter: blur(8px);
}

.opportunities-direction-chip {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(222, 236, 255, 0.76);
  min-width: 70px;
  align-self: stretch;
  padding: 0 0.88rem;
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.38rem;
  transition: color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.opportunities-direction-chip-dot {
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 999px;
  background: rgba(149, 185, 233, 0.72);
  transition: background-color 0.16s ease;
}

.opportunities-direction-chip:hover {
  color: #f2f8ff;
}

.opportunities-direction-chip:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 0.18rem rgba(56, 189, 248, 0.34);
}

.opportunities-direction-chip.is-active {
  color: #052437;
  background: linear-gradient(130deg, #93f8ff, #4ddad1 58%, #22c6bc);
  box-shadow: 0 8px 18px rgba(22, 178, 192, 0.38);
}

.opportunities-direction-chip.is-active .opportunities-direction-chip-dot {
  background: rgba(5, 36, 55, 0.58);
}

.opportunities-direction-chip:active {
  transform: translateY(1px);
}

@media only screen and (max-width: 1400px) {
  .opportunities-toolbar {
    --opportunities-toolbar-control-height: calc((0.813rem * 1.5) + (0.625rem * 2) + 2px);
  }
}

.opportunities-direction-native {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.opportunities-view-switch,
.opportunities-hero-switch-row {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem;
  border-radius: 999px;
  border: 1px solid rgba(138, 185, 235, 0.34);
  background: rgba(8, 20, 44, 0.45);
}

.opportunities-view-switch-btn {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(223, 237, 255, 0.84);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 0.86rem;
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: background-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.opportunities-view-switch-btn:hover {
  color: #f5fbff;
  text-decoration: none;
}

.opportunities-view-switch-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 0.18rem rgba(56, 189, 248, 0.34);
}

.opportunities-view-switch-btn.is-active {
  color: #052437;
  background: linear-gradient(130deg, #93f8ff, #4ddad1 58%, #22c6bc);
  box-shadow: 0 8px 18px rgba(22, 178, 192, 0.38);
}

.opportunities-hub-section {
  border: 1px solid rgba(97, 143, 194, 0.24);
  border-radius: 1rem;
  padding: 1rem;
  background: linear-gradient(155deg, rgba(15, 30, 62, 0.6), rgba(14, 27, 56, 0.74));
  box-shadow: 0 10px 22px rgba(3, 8, 19, 0.24);
}

.opportunities-hub-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.9rem;
}

.opportunities-hub-head h2 {
  color: #eef7ff;
}

.opportunities-hub-head p {
  color: rgba(191, 214, 240, 0.8) !important;
}

.opportunities-hub-section .card {
  box-shadow: none !important;
}

.graph-analysis-hero .opportunities-meta-chip {
  min-width: 136px;
}

.graph-analysis-hub-section .card {
  border: 1px solid rgba(102, 146, 197, 0.24);
  border-radius: 0.95rem;
  background: linear-gradient(160deg, rgba(11, 22, 49, 0.72), rgba(9, 20, 44, 0.82));
}

.graph-analysis-hub-section .card-header {
  border-bottom-color: rgba(123, 165, 211, 0.25);
  background: rgba(9, 22, 48, 0.28);
}

.graph-analysis-hub-section .card-title,
.graph-analysis-hub-section .card-header h6 {
  color: #e8f4ff;
}

.graph-analysis-hub-section .card-body {
  color: rgba(221, 236, 255, 0.9);
}

.graph-analysis-hub-section .text-muted {
  color: rgba(174, 200, 232, 0.84) !important;
}

.liquidity-compass-hero {
  background:
    radial-gradient(120% 120% at 100% -20%, rgba(13, 148, 136, 0.22), transparent 52%),
    radial-gradient(90% 110% at -10% 110%, rgba(56, 189, 248, 0.2), transparent 52%),
    linear-gradient(138deg, rgba(10, 31, 70, 0.92), rgba(7, 24, 54, 0.95));
}

.liquidity-compass-hub-section .card {
  border: 1px solid rgba(108, 154, 209, 0.25);
  border-radius: 0.95rem;
  background: linear-gradient(160deg, rgba(10, 22, 49, 0.73), rgba(8, 19, 44, 0.84));
}

.liquidity-compass-hub-section .card-title {
  color: #e8f4ff;
}

.liquidity-compass-hub-section .form-label {
  color: rgba(218, 235, 255, 0.84);
}

.liquidity-compass-hero-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.liquidity-compass-hero-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.liquidity-compass-hero-market {
  display: flex;
  flex-direction: column;
  gap: 0.16rem;
}

.liquidity-compass-hero-symbol {
  font-size: 1.16rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.liquidity-compass-hero-exchange {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(183, 210, 243, 0.88);
}

.liquidity-compass-hero-price {
  font-size: 0.84rem;
  color: rgba(208, 228, 252, 0.94);
}

.liquidity-compass-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.46rem;
}

.liquidity-compass-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem 0.66rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.liquidity-compass-badge--long {
  background: rgba(18, 184, 134, 0.24);
  color: #8cf0cd;
  border-color: rgba(110, 247, 204, 0.42);
}

.liquidity-compass-badge--short {
  background: rgba(251, 113, 133, 0.2);
  color: #ffd0d9;
  border-color: rgba(254, 163, 181, 0.35);
}

.liquidity-compass-badge--neutral {
  background: rgba(96, 165, 250, 0.18);
  color: #d5e8ff;
  border-color: rgba(157, 200, 255, 0.34);
}

.liquidity-compass-badge--wait {
  background: rgba(250, 204, 21, 0.18);
  color: #fef3c7;
  border-color: rgba(253, 224, 71, 0.34);
}

.liquidity-compass-badge--posture {
  background: rgba(77, 129, 193, 0.18);
  color: #d8e9ff;
  border-color: rgba(145, 187, 242, 0.3);
}

.liquidity-compass-badge--confidence {
  background: rgba(250, 204, 21, 0.2);
  color: #ffe9a5;
  border-color: rgba(255, 227, 128, 0.34);
}

.liquidity-compass-hero-summary {
  margin: 0;
  color: rgba(219, 235, 255, 0.93);
  line-height: 1.45;
  font-size: 0.9rem;
}

.liquidity-compass-kv-list {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
}

.liquidity-compass-kv-row {
  display: flex;
  gap: 0.5rem;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px dashed rgba(130, 169, 215, 0.24);
  padding-bottom: 0.28rem;
}

.liquidity-compass-kv-key {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(180, 204, 233, 0.82);
}

.liquidity-compass-kv-value {
  font-size: 0.86rem;
  font-weight: 600;
  color: rgba(230, 241, 255, 0.95);
  text-align: right;
}

.liquidity-compass-map {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.liquidity-compass-map-row {
  display: grid;
  grid-template-columns: minmax(82px, auto) 1fr minmax(58px, auto);
  align-items: center;
  gap: 0.45rem;
}

.liquidity-compass-map-price,
.liquidity-compass-map-side {
  font-size: 0.74rem;
  color: rgba(188, 211, 240, 0.86);
}

.liquidity-compass-map-side {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: right;
}

.liquidity-compass-map-bar-wrap {
  width: 100%;
  height: 0.65rem;
  border-radius: 999px;
  background: rgba(79, 114, 158, 0.28);
  overflow: hidden;
}

.liquidity-compass-map-bar {
  height: 100%;
  border-radius: 999px;
}

.liquidity-compass-map-bar--small {
  background: linear-gradient(90deg, #4aa7ff, #3b82f6);
}

.liquidity-compass-map-bar--medium {
  background: linear-gradient(90deg, #34d399, #10b981);
}

.liquidity-compass-map-bar--large {
  background: linear-gradient(90deg, #facc15, #f59e0b);
}

.liquidity-compass-path-list,
.liquidity-compass-risk-list {
  padding-left: 1.1rem;
  color: rgba(219, 236, 255, 0.92);
}

.liquidity-compass-path-list li,
.liquidity-compass-risk-list li {
  margin-bottom: 0.48rem;
  padding: 0.36rem 0.5rem;
  border-radius: 0.5rem;
  background: rgba(33, 64, 99, 0.24);
}

.lc-input-head {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.6rem;
}

.lc-input-head .card-title {
  margin-right: auto;
}

.lc-input-layout {
  align-items: start;
}

.lc-input-left-col,
.lc-input-right-col {
  height: 100%;
}

#lc-trade-style-group,
#lc-risk-bias-group {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.42rem;
  width: 100%;
  flex-wrap: nowrap;
}

#lc-trade-style-group .top-movers-filter-segmented-btn,
#lc-risk-bias-group .top-movers-filter-segmented-btn {
  width: 100%;
  min-width: 0;
}

.lc-form-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  border: 1px solid rgba(123, 168, 221, 0.42);
  border-radius: 999px;
  background: rgba(20, 57, 98, 0.34);
  color: rgba(214, 236, 255, 0.95);
  padding: 0.36rem 0.78rem;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1;
}

.lc-form-toggle-btn i {
  font-size: 0.82rem;
}

.lc-form-toggle-btn:hover,
.lc-form-toggle-btn:focus {
  background: rgba(29, 72, 121, 0.45);
  color: rgba(236, 247, 255, 0.98);
}

.lc-form-toggle-btn.is-collapsed {
  background: rgba(11, 92, 148, 0.34);
  border-color: rgba(95, 188, 243, 0.52);
}

.lc-indicator-panel {
  display: flex;
  flex-direction: column;
  gap: 0.78rem;
}

.lc-indicator-title {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(158, 199, 239, 0.92);
  font-weight: 700;
}

.lc-indicator-chip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.52rem;
}

.lc-indicator-chip {
  border: 1px solid rgba(112, 155, 204, 0.3);
  border-radius: 0.65rem;
  background: rgba(8, 31, 60, 0.48);
  padding: 0.52rem 0.58rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.lc-indicator-chip-label {
  font-size: 0.69rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(165, 203, 240, 0.85);
}

.lc-indicator-chip-value {
  font-size: 0.82rem;
  line-height: 1.2;
  color: rgba(231, 243, 255, 0.96);
}

.lc-indicator-chip--positive {
  border-color: rgba(90, 202, 165, 0.4);
}

.lc-indicator-chip--positive .lc-indicator-chip-value {
  color: #9df4cf;
}

.lc-indicator-chip--negative {
  border-color: rgba(245, 134, 151, 0.35);
}

.lc-indicator-chip--negative .lc-indicator-chip-value {
  color: #ffd3db;
}

.lc-indicator-chip--neutral {
  border-color: rgba(122, 169, 224, 0.32);
}

.lc-indicator-note {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.45;
  color: rgba(216, 233, 250, 0.92);
}

.lc-trade-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.lc-trade-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.6rem;
}

.lc-trade-tile {
  border: 1px solid rgba(112, 157, 210, 0.3);
  border-radius: 0.72rem;
  background: rgba(10, 30, 58, 0.5);
  padding: 0.56rem 0.66rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.lc-trade-tile-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(164, 202, 239, 0.84);
}

.lc-trade-tile-value {
  font-size: 0.84rem;
  line-height: 1.35;
  color: rgba(234, 244, 255, 0.96);
}

.lc-trade-note-block {
  display: grid;
  gap: 0.56rem;
}

.lc-trade-note-row {
  border-left: 2px solid rgba(102, 168, 233, 0.52);
  padding-left: 0.62rem;
}

.lc-trade-note-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(164, 204, 243, 0.86);
  margin-bottom: 0.16rem;
}

.lc-trade-note-value {
  margin: 0;
  color: rgba(220, 236, 255, 0.93);
  font-size: 0.83rem;
  line-height: 1.45;
}

.lc-level-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.lc-level-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  border: 1px solid transparent;
  font-size: 0.75rem;
  line-height: 1.2;
  font-weight: 700;
}

.lc-level-pill-tag {
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.9;
}

.lc-level-pill-value {
  font-size: 0.78rem;
}

.lc-level-pill--entry {
  background: rgba(56, 189, 248, 0.17);
  border-color: rgba(56, 189, 248, 0.42);
  color: #bceeff;
}

.lc-level-pill--tp {
  background: rgba(45, 212, 191, 0.16);
  border-color: rgba(45, 212, 191, 0.44);
  color: #a8f5e7;
}

.lc-level-pill--sl {
  background: rgba(248, 113, 113, 0.18);
  border-color: rgba(248, 113, 113, 0.42);
  color: #ffd0d0;
}

.lc-trade-level-empty {
  font-size: 0.78rem;
  color: rgba(170, 201, 236, 0.9);
}

.lc-trade-chart-shell {
  border: 1px solid rgba(113, 158, 209, 0.3);
  border-radius: 0.78rem;
  background: rgba(8, 28, 56, 0.5);
  padding: 0.68rem;
}

.lc-trade-chart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.lc-trade-chart-title {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(162, 204, 244, 0.88);
}

.lc-trade-chart-subtitle {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  color: rgba(229, 241, 255, 0.96);
}

.lc-trade-chart-tf-group .btn {
  min-width: 56px;
  font-size: 0.74rem;
  font-weight: 700;
  border-radius: 0.55rem;
}

.lc-trade-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 0.55rem;
}

.lc-trade-chart-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
  font-size: 0.73rem;
  color: rgba(187, 214, 243, 0.94);
}

.lc-level-dot {
  width: 0.58rem;
  height: 0.58rem;
  border-radius: 999px;
  display: inline-block;
}

.lc-level-dot--entry {
  background: #38bdf8;
}

.lc-level-dot--tp {
  background: #22c55e;
}

.lc-level-dot--sl {
  background: #ef4444;
}

.lc-trade-chart-stage {
  position: relative;
  border-radius: 0.7rem;
  overflow: hidden;
  border: 1px solid rgba(113, 157, 210, 0.28);
  background: rgba(6, 22, 44, 0.78);
}

.lc-trade-chart-canvas {
  width: 100%;
  height: 340px;
}

.lc-trade-chart-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  text-align: center;
  font-size: 0.86rem;
  font-weight: 600;
  background: rgba(7, 22, 43, 0.72);
}

@media (max-width: 767.98px) {
  .lc-trade-chart-head {
    flex-direction: column;
    align-items: stretch;
  }

  .lc-trade-chart-tf-group {
    width: 100%;
  }

  .lc-trade-chart-tf-group .btn {
    flex: 1 1 0;
    min-width: 0;
  }

  .lc-trade-chart-canvas {
    height: 280px;
  }
}

.lc-history-item {
  border: 1px solid rgba(112, 157, 209, 0.22);
  background: rgba(9, 28, 55, 0.46);
}

.lc-history-item.is-active {
  border-color: rgba(98, 182, 238, 0.52);
  box-shadow: 0 0 0 1px rgba(69, 157, 223, 0.2) inset;
}

.lc-history-preview {
  color: rgba(207, 228, 250, 0.9);
}

.lc-history-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.liquidity-compass-heatmap-panel {
  border: 1px dashed rgba(120, 168, 223, 0.28);
  border-radius: 0.85rem;
  background: linear-gradient(170deg, rgba(8, 22, 45, 0.58), rgba(9, 28, 56, 0.46));
  padding: 0.85rem;
}

.lc-recommend-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.16rem 0.58rem;
  border-radius: 999px;
  border: 1px solid rgba(79, 170, 253, 0.5);
  background: rgba(17, 103, 178, 0.28);
  color: rgba(186, 228, 255, 0.94);
  font-size: 0.71rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.lc-coinglass-helper-link {
  display: inline-flex;
  align-items: center;
  color: rgba(142, 217, 255, 0.94);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
}

.lc-coinglass-helper-link:hover,
.lc-coinglass-helper-link:focus {
  color: rgba(204, 240, 255, 0.98);
  text-decoration: underline;
}

.lc-coinglass-helper-link i {
  margin-left: 0.3rem;
}

#lc-heatmap-processing {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.38rem;
  margin-top: 0.75rem;
  min-height: 5.5rem;
  padding: 1rem 1.1rem;
  border-radius: 0.85rem;
  border: 1px dashed rgba(117, 170, 226, 0.34);
  background:
    linear-gradient(180deg, rgba(12, 31, 57, 0.72), rgba(8, 22, 43, 0.82));
  box-shadow: inset 0 1px 0 rgba(199, 227, 255, 0.08);
  color: rgba(153, 223, 255, 0.95);
}

#lc-heatmap-processing .spinner-border {
  width: 0.88rem;
  height: 0.88rem;
  border-width: 0.12rem;
}

#lc-heatmap-dropzone.is-processing {
  opacity: 0.76;
  pointer-events: none;
  cursor: progress;
  filter: saturate(0.86);
}

.lc-heatmap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.72rem;
}

.lc-heatmap-item {
  border: 1px solid rgba(125, 173, 226, 0.25);
  border-radius: 0.8rem;
  padding: 0.62rem;
  background: rgba(8, 24, 49, 0.5);
  display: flex;
  gap: 0.62rem;
}

.lc-heatmap-thumb-wrap {
  position: relative;
  flex: 0 0 90px;
  width: 90px;
  height: 90px;
  border-radius: 0.65rem;
  border: 1px solid rgba(138, 184, 235, 0.24);
  overflow: visible;
  background: rgba(4, 16, 35, 0.75);
}

.lc-heatmap-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
  cursor: zoom-in;
}

.lc-heatmap-remove-btn {
  position: absolute;
  top: 0;
  right: 0;
  width: 1.5rem;
  height: 1.5rem;
  transform: translate(50%, -50%);
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.88);
  background: rgba(15, 23, 42, 0.96);
  color: #e2e8f0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  z-index: 2;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
  box-shadow: 0 6px 14px rgba(2, 8, 23, 0.38);
}

.lc-heatmap-remove-btn:hover,
.lc-heatmap-remove-btn:focus {
  background: rgba(185, 28, 28, 0.92);
  border-color: rgba(248, 113, 113, 0.9);
  color: #fee2e2;
  transform: translate(50%, -50%) scale(1.04);
}

.lc-heatmap-remove-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: translate(50%, -50%);
}

.lc-heatmap-preview-image {
  max-height: calc(100vh - 12.5rem);
  border-radius: 0.65rem;
  border: 1px solid rgba(134, 179, 228, 0.32);
  background: rgba(7, 20, 42, 0.84);
}

.lc-heatmap-meta {
  min-width: 0;
  flex: 1 1 auto;
}

.lc-progress-bar-wrap {
  width: 100%;
  height: 0.82rem;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(31, 70, 116, 0.55), rgba(20, 44, 76, 0.58));
  border: 1px solid rgba(124, 171, 222, 0.28);
  box-shadow: inset 0 1px 0 rgba(200, 228, 255, 0.12);
  overflow: hidden;
}

.lc-progress-bar-fill {
  height: 100%;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0)),
    linear-gradient(100deg, #0ea5e9, #22c55e 48%, #f59e0b);
  background-size: 220% 220%, 100% 100%;
  animation: lc-progress-shimmer 1.9s linear infinite;
  box-shadow: 0 0 20px rgba(45, 212, 191, 0.36);
  transition: width 0.42s cubic-bezier(0.2, 0.7, 0.2, 1);
}

#lc-progress-percent {
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(175, 214, 250, 0.94);
}

#lc-progress-status {
  color: rgba(166, 202, 240, 0.9) !important;
  letter-spacing: 0.01em;
}

@keyframes lc-progress-shimmer {
  0% {
    background-position: 0% 50%, 0% 0%;
  }
  100% {
    background-position: 220% 50%, 0% 0%;
  }
}

.lc-progress-milestones {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.lc-progress-milestones li {
  position: relative;
  border: 1px solid rgba(103, 149, 206, 0.26);
  border-radius: 0.88rem;
  padding: 0.78rem 0.9rem 0.8rem 0.78rem;
  background:
    radial-gradient(135% 140% at 96% -8%, rgba(45, 212, 191, 0.08), transparent 54%),
    linear-gradient(168deg, rgba(7, 19, 40, 0.88), rgba(8, 25, 48, 0.66));
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  align-items: start;
  column-gap: 0.72rem;
  min-width: 0;
  overflow: hidden;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.lc-progress-milestones li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, rgba(117, 169, 229, 0.56), rgba(54, 116, 182, 0.08));
  border-radius: 999px;
}

.lc-progress-milestones .lc-step-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.62rem;
  border: 1px solid rgba(126, 169, 220, 0.58);
  background: linear-gradient(160deg, rgba(17, 43, 80, 0.9), rgba(14, 34, 63, 0.84));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.86rem;
  line-height: 1;
  font-weight: 700;
  color: rgba(189, 218, 250, 0.92);
  margin-top: 0.02rem;
  box-shadow: inset 0 1px 0 rgba(199, 225, 255, 0.14);
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.lc-progress-milestones .lc-step-glyph {
  line-height: 1;
}

.lc-progress-milestones .lc-step-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.lc-progress-milestones .lc-step-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.lc-progress-milestones .lc-step-title-wrap {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 0.48rem;
}

.lc-progress-milestones .lc-step-order {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.45rem;
  height: 1.2rem;
  padding: 0 0.32rem;
  border-radius: 999px;
  border: 1px solid rgba(115, 163, 223, 0.45);
  background: rgba(32, 68, 116, 0.44);
  color: rgba(177, 209, 243, 0.94);
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.lc-progress-milestones .lc-step-title {
  font-size: 0.82rem;
  color: rgba(231, 241, 253, 0.95);
  font-weight: 650;
  line-height: 1.2;
  word-break: break-word;
}

.lc-progress-milestones li .state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.14rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(128, 173, 223, 0.46);
  background: rgba(22, 45, 79, 0.62);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(173, 205, 241, 0.9);
  white-space: nowrap;
}

.lc-progress-milestones .lc-step-detail {
  font-size: 0.74rem;
  color: rgba(176, 204, 236, 0.88);
  line-height: 1.35;
  word-break: break-word;
}

.lc-progress-milestones .lc-step-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.lc-progress-milestones .lc-step-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(112, 162, 219, 0.38);
  background: rgba(17, 44, 80, 0.48);
  color: rgba(186, 216, 248, 0.9);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.lc-progress-milestones li.is-pending .lc-step-icon {
  border-color: rgba(128, 171, 223, 0.48);
  color: rgba(177, 211, 247, 0.9);
}

.lc-progress-milestones li.is-active {
  border-color: rgba(69, 195, 243, 0.56);
  box-shadow: 0 0 0 1px rgba(79, 181, 244, 0.22) inset, 0 12px 28px rgba(2, 19, 46, 0.35);
  transform: translateY(-1px);
}

.lc-progress-milestones li.is-active::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 12%, rgba(56, 189, 248, 0.14) 48%, transparent 86%);
  animation: lc-step-scan 1.8s linear infinite;
  pointer-events: none;
}

.lc-progress-milestones li.is-active .lc-step-icon {
  border-color: rgba(71, 203, 255, 0.92);
  background: linear-gradient(160deg, rgba(15, 124, 187, 0.96), rgba(34, 197, 222, 0.96));
  color: #ecfaff;
  animation: lc-step-pulse 1.2s ease-out infinite, lc-step-orbit 2.8s linear infinite;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.15);
}

.lc-progress-milestones li.is-active .state {
  border-color: rgba(75, 197, 255, 0.62);
  background: rgba(12, 96, 157, 0.34);
  color: #8ddcff;
}

.lc-progress-milestones li.is-active .lc-step-chip {
  border-color: rgba(89, 197, 255, 0.48);
  background: rgba(14, 93, 153, 0.33);
  color: rgba(186, 235, 255, 0.94);
}

.lc-progress-milestones li.is-done .lc-step-icon {
  border-color: rgba(66, 209, 155, 0.95);
  background: linear-gradient(165deg, rgba(34, 197, 94, 0.98), rgba(20, 184, 166, 0.98));
  color: #062e23;
  animation: lc-step-check-pop 0.28s ease-out;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.14);
}

.lc-progress-milestones li.is-done .state {
  border-color: rgba(66, 209, 155, 0.56);
  background: rgba(9, 95, 66, 0.34);
  color: #96f4cb;
}

.lc-progress-milestones li.is-done .lc-step-chip {
  border-color: rgba(68, 205, 157, 0.38);
  background: rgba(13, 84, 62, 0.34);
  color: rgba(161, 242, 213, 0.92);
}

.lc-progress-milestones li.is-skipped .lc-step-icon {
  border-color: rgba(245, 177, 76, 0.85);
  background: rgba(191, 124, 15, 0.4);
  color: #ffd89f;
}

.lc-progress-milestones li.is-skipped .state {
  border-color: rgba(245, 177, 76, 0.52);
  background: rgba(152, 94, 16, 0.36);
  color: #f4d9a9;
}

.lc-progress-milestones li.is-skipped .lc-step-chip {
  border-color: rgba(245, 177, 76, 0.35);
  background: rgba(145, 98, 22, 0.28);
  color: rgba(249, 223, 175, 0.9);
}

@keyframes lc-step-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(54, 188, 255, 0.45);
    transform: scale(1);
  }
  65% {
    box-shadow: 0 0 0 14px rgba(54, 188, 255, 0);
    transform: scale(1.02);
  }
}

@keyframes lc-step-orbit {
  0% {
    filter: saturate(100%);
  }
  50% {
    filter: saturate(128%);
  }
  100% {
    filter: saturate(100%);
  }
}

@keyframes lc-step-scan {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

@keyframes lc-step-check-pop {
  0% {
    transform: scale(0.84);
  }
  100% {
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .lc-progress-bar-fill,
  .lc-progress-milestones li,
  .lc-progress-milestones .lc-step-icon,
  .lc-progress-milestones li.is-active::after {
    animation: none;
    transition: none;
  }
}

body[data-theme-version="light"] .liquidity-compass-hero,
[data-theme="light"] .liquidity-compass-hero {
  background:
    radial-gradient(120% 120% at 100% -20%, rgba(13, 148, 136, 0.12), transparent 56%),
    radial-gradient(90% 110% at -10% 110%, rgba(56, 189, 248, 0.1), transparent 56%),
    linear-gradient(138deg, #f8fcff, #ecf5ff);
}

body[data-theme-version="light"] .liquidity-compass-hub-section .card,
[data-theme="light"] .liquidity-compass-hub-section .card {
  border-color: rgba(122, 156, 203, 0.34);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.94), rgba(244, 250, 255, 0.97));
}

body[data-theme-version="light"] .liquidity-compass-hub-section .card-title,
body[data-theme-version="light"] .liquidity-compass-kv-value,
[data-theme="light"] .liquidity-compass-hub-section .card-title,
[data-theme="light"] .liquidity-compass-kv-value {
  color: #1d3b63;
}

body[data-theme-version="light"] .liquidity-compass-hero-exchange,
[data-theme="light"] .liquidity-compass-hero-exchange {
  color: rgba(44, 78, 119, 0.74);
}

body[data-theme-version="light"] .liquidity-compass-hero-price,
[data-theme="light"] .liquidity-compass-hero-price {
  color: rgba(31, 62, 101, 0.85);
}

body[data-theme-version="light"] .liquidity-compass-badge--long,
[data-theme="light"] .liquidity-compass-badge--long {
  background: rgba(16, 185, 129, 0.15);
  color: #0f766e;
  border-color: rgba(15, 118, 110, 0.26);
}

body[data-theme-version="light"] .liquidity-compass-badge--short,
[data-theme="light"] .liquidity-compass-badge--short {
  background: rgba(251, 113, 133, 0.14);
  color: #b4234f;
  border-color: rgba(180, 35, 79, 0.24);
}

body[data-theme-version="light"] .liquidity-compass-badge--neutral,
[data-theme="light"] .liquidity-compass-badge--neutral {
  background: rgba(96, 165, 250, 0.15);
  color: #2556a6;
  border-color: rgba(37, 86, 166, 0.24);
}

body[data-theme-version="light"] .liquidity-compass-badge--wait,
[data-theme="light"] .liquidity-compass-badge--wait {
  background: rgba(250, 204, 21, 0.16);
  color: #9a6700;
  border-color: rgba(154, 103, 0, 0.24);
}

body[data-theme-version="light"] .liquidity-compass-badge--posture,
[data-theme="light"] .liquidity-compass-badge--posture {
  background: rgba(59, 130, 246, 0.12);
  color: #274f8e;
  border-color: rgba(39, 79, 142, 0.22);
}

body[data-theme-version="light"] .liquidity-compass-badge--confidence,
[data-theme="light"] .liquidity-compass-badge--confidence {
  background: rgba(234, 179, 8, 0.16);
  color: #885804;
  border-color: rgba(136, 88, 4, 0.24);
}

body[data-theme-version="light"] .liquidity-compass-hero-summary,
[data-theme="light"] .liquidity-compass-hero-summary {
  color: rgba(29, 59, 99, 0.93);
}

body[data-theme-version="light"] .liquidity-compass-path-list,
body[data-theme-version="light"] .liquidity-compass-risk-list,
[data-theme="light"] .liquidity-compass-path-list,
[data-theme="light"] .liquidity-compass-risk-list {
  color: rgba(29, 59, 99, 0.94);
}

body[data-theme-version="light"] .liquidity-compass-path-list li,
body[data-theme-version="light"] .liquidity-compass-risk-list li,
[data-theme="light"] .liquidity-compass-path-list li,
[data-theme="light"] .liquidity-compass-risk-list li {
  background: rgba(219, 236, 255, 0.55);
}

body[data-theme-version="light"] .lc-form-toggle-btn,
[data-theme="light"] .lc-form-toggle-btn {
  border-color: rgba(96, 148, 207, 0.45);
  background: rgba(224, 238, 255, 0.9);
  color: rgba(28, 74, 126, 0.95);
}

body[data-theme-version="light"] .lc-form-toggle-btn:hover,
body[data-theme-version="light"] .lc-form-toggle-btn:focus,
[data-theme="light"] .lc-form-toggle-btn:hover,
[data-theme="light"] .lc-form-toggle-btn:focus {
  background: rgba(206, 228, 252, 0.96);
  color: rgba(23, 67, 116, 0.96);
}

body[data-theme-version="light"] .lc-indicator-title,
[data-theme="light"] .lc-indicator-title {
  color: rgba(38, 85, 136, 0.86);
}

body[data-theme-version="light"] .lc-indicator-chip,
[data-theme="light"] .lc-indicator-chip,
body[data-theme-version="light"] .lc-trade-tile,
[data-theme="light"] .lc-trade-tile,
body[data-theme-version="light"] .lc-history-item,
[data-theme="light"] .lc-history-item {
  border-color: rgba(113, 161, 213, 0.35);
  background: rgba(255, 255, 255, 0.92);
}

body[data-theme-version="light"] .lc-indicator-chip-label,
[data-theme="light"] .lc-indicator-chip-label,
body[data-theme-version="light"] .lc-trade-tile-label,
[data-theme="light"] .lc-trade-tile-label,
body[data-theme-version="light"] .lc-trade-note-label,
[data-theme="light"] .lc-trade-note-label {
  color: rgba(47, 84, 126, 0.9);
}

body[data-theme-version="light"] .lc-indicator-chip-value,
[data-theme="light"] .lc-indicator-chip-value,
body[data-theme-version="light"] .lc-indicator-note,
[data-theme="light"] .lc-indicator-note,
body[data-theme-version="light"] .lc-trade-tile-value,
[data-theme="light"] .lc-trade-tile-value,
body[data-theme-version="light"] .lc-trade-note-value,
[data-theme="light"] .lc-trade-note-value,
body[data-theme-version="light"] .lc-history-preview,
[data-theme="light"] .lc-history-preview {
  color: rgba(28, 61, 101, 0.94);
}

body[data-theme-version="light"] .liquidity-compass-hub-section .form-label,
body[data-theme-version="light"] .liquidity-compass-kv-key,
body[data-theme-version="light"] .liquidity-compass-map-price,
body[data-theme-version="light"] .liquidity-compass-map-side,
[data-theme="light"] .liquidity-compass-hub-section .form-label,
[data-theme="light"] .liquidity-compass-kv-key,
[data-theme="light"] .liquidity-compass-map-price,
[data-theme="light"] .liquidity-compass-map-side {
  color: rgba(41, 70, 105, 0.9);
}

body[data-theme-version="light"] .liquidity-compass-map-bar-wrap,
[data-theme="light"] .liquidity-compass-map-bar-wrap {
  background: rgba(156, 183, 220, 0.35);
}

body[data-theme-version="light"] .liquidity-compass-heatmap-panel,
[data-theme="light"] .liquidity-compass-heatmap-panel {
  border-color: rgba(121, 162, 211, 0.34);
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.95), rgba(243, 249, 255, 0.96));
}

body[data-theme-version="light"] .lc-recommend-pill,
[data-theme="light"] .lc-recommend-pill {
  border-color: rgba(76, 145, 215, 0.46);
  background: rgba(214, 234, 255, 0.92);
  color: rgba(28, 85, 148, 0.9);
}

body[data-theme-version="light"] .lc-coinglass-helper-link,
[data-theme="light"] .lc-coinglass-helper-link {
  color: rgba(16, 101, 177, 0.92);
}

body[data-theme-version="light"] #lc-heatmap-processing,
[data-theme="light"] #lc-heatmap-processing {
  border-color: rgba(103, 156, 211, 0.28);
  background:
    linear-gradient(180deg, rgba(235, 244, 255, 0.92), rgba(225, 238, 255, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  color: rgba(22, 108, 183, 0.95);
}

body[data-theme-version="light"] .lc-coinglass-helper-link:hover,
body[data-theme-version="light"] .lc-coinglass-helper-link:focus,
[data-theme="light"] .lc-coinglass-helper-link:hover,
[data-theme="light"] .lc-coinglass-helper-link:focus {
  color: rgba(13, 79, 139, 0.95);
}

body[data-theme-version="light"] .lc-heatmap-item,
[data-theme="light"] .lc-heatmap-item {
  border-color: rgba(123, 163, 212, 0.35);
  background: rgba(255, 255, 255, 0.9);
}

body[data-theme-version="light"] .lc-heatmap-remove-btn,
[data-theme="light"] .lc-heatmap-remove-btn {
  border-color: rgba(15, 23, 42, 0.88);
  background: rgba(15, 23, 42, 0.96);
  color: #e2e8f0;
}

body[data-theme-version="light"] .lc-heatmap-remove-btn:hover,
body[data-theme-version="light"] .lc-heatmap-remove-btn:focus,
[data-theme="light"] .lc-heatmap-remove-btn:hover,
[data-theme="light"] .lc-heatmap-remove-btn:focus {
  background: rgba(220, 38, 38, 0.96);
  border-color: rgba(185, 28, 28, 0.8);
}

body[data-theme-version="light"] .lc-heatmap-preview-image,
[data-theme="light"] .lc-heatmap-preview-image {
  border-color: rgba(121, 165, 215, 0.42);
  background: rgba(242, 248, 255, 0.98);
}

body[data-theme-version="light"] .lc-progress-bar-wrap,
[data-theme="light"] .lc-progress-bar-wrap {
  background: linear-gradient(180deg, rgba(203, 223, 248, 0.82), rgba(177, 202, 235, 0.76));
  border-color: rgba(114, 152, 203, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

body[data-theme-version="light"] #lc-progress-percent,
[data-theme="light"] #lc-progress-percent {
  color: rgba(36, 92, 148, 0.9);
}

body[data-theme-version="light"] #lc-progress-status,
[data-theme="light"] #lc-progress-status {
  color: rgba(45, 96, 151, 0.86) !important;
}

body[data-theme-version="light"] .lc-progress-milestones li,
[data-theme="light"] .lc-progress-milestones li {
  border-color: rgba(122, 161, 207, 0.38);
  background:
    radial-gradient(132% 130% at 96% -8%, rgba(45, 212, 191, 0.09), transparent 52%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(243, 249, 255, 0.92));
}

body[data-theme-version="light"] .lc-progress-milestones li::before,
[data-theme="light"] .lc-progress-milestones li::before {
  background: linear-gradient(180deg, rgba(87, 151, 224, 0.58), rgba(87, 151, 224, 0.16));
}

body[data-theme-version="light"] .lc-progress-milestones .lc-step-icon,
[data-theme="light"] .lc-progress-milestones .lc-step-icon {
  border-color: rgba(117, 160, 212, 0.62);
  background: linear-gradient(160deg, rgba(232, 243, 255, 0.95), rgba(212, 230, 250, 0.88));
  color: rgba(25, 86, 153, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

body[data-theme-version="light"] .lc-progress-milestones .lc-step-order,
[data-theme="light"] .lc-progress-milestones .lc-step-order {
  border-color: rgba(128, 167, 214, 0.62);
  background: rgba(220, 236, 255, 0.86);
  color: rgba(24, 82, 142, 0.94);
}

body[data-theme-version="light"] .lc-progress-milestones .lc-step-title,
[data-theme="light"] .lc-progress-milestones .lc-step-title {
  color: rgba(22, 58, 102, 0.95);
}

body[data-theme-version="light"] .lc-progress-milestones .lc-step-detail,
[data-theme="light"] .lc-progress-milestones .lc-step-detail {
  color: rgba(41, 87, 136, 0.84);
}

body[data-theme-version="light"] .lc-progress-milestones .lc-step-chip,
[data-theme="light"] .lc-progress-milestones .lc-step-chip {
  border-color: rgba(132, 172, 218, 0.56);
  background: rgba(232, 244, 255, 0.92);
  color: rgba(25, 86, 146, 0.88);
}

body[data-theme-version="light"] .lc-progress-milestones li .state,
[data-theme="light"] .lc-progress-milestones li .state {
  border-color: rgba(126, 168, 216, 0.6);
  background: rgba(225, 240, 255, 0.82);
  color: rgba(30, 79, 129, 0.82);
}

body[data-theme-version="light"] .lc-progress-milestones li.is-active,
[data-theme="light"] .lc-progress-milestones li.is-active {
  border-color: rgba(66, 168, 241, 0.64);
  box-shadow: 0 0 0 1px rgba(79, 181, 244, 0.24) inset, 0 12px 24px rgba(137, 180, 224, 0.34);
}

body[data-theme-version="light"] .lc-progress-milestones li.is-active .lc-step-icon,
[data-theme="light"] .lc-progress-milestones li.is-active .lc-step-icon {
  border-color: rgba(30, 146, 230, 0.9);
  background: linear-gradient(160deg, rgba(14, 165, 233, 0.92), rgba(45, 212, 191, 0.92));
  color: #f5fdff;
}

body[data-theme-version="light"] .lc-progress-milestones li.is-active .state,
[data-theme="light"] .lc-progress-milestones li.is-active .state {
  border-color: rgba(39, 151, 232, 0.56);
  background: rgba(185, 230, 255, 0.76);
  color: rgba(11, 120, 194, 0.92);
}

body[data-theme-version="light"] .lc-progress-milestones li.is-active .lc-step-chip,
[data-theme="light"] .lc-progress-milestones li.is-active .lc-step-chip {
  border-color: rgba(73, 175, 242, 0.56);
  background: rgba(206, 239, 255, 0.84);
  color: rgba(11, 120, 194, 0.92);
}

body[data-theme-version="light"] .lc-progress-milestones li.is-done .lc-step-icon,
[data-theme="light"] .lc-progress-milestones li.is-done .lc-step-icon {
  border-color: rgba(28, 184, 123, 0.8);
  background: linear-gradient(165deg, rgba(74, 222, 128, 0.95), rgba(20, 184, 166, 0.95));
  color: #064e3b;
}

body[data-theme-version="light"] .lc-progress-milestones li.is-done .state,
[data-theme="light"] .lc-progress-milestones li.is-done .state {
  border-color: rgba(44, 185, 126, 0.52);
  background: rgba(200, 246, 225, 0.76);
  color: rgba(12, 130, 87, 0.9);
}

body[data-theme-version="light"] .lc-progress-milestones li.is-done .lc-step-chip,
[data-theme="light"] .lc-progress-milestones li.is-done .lc-step-chip {
  border-color: rgba(66, 189, 142, 0.5);
  background: rgba(219, 249, 236, 0.86);
  color: rgba(13, 128, 90, 0.9);
}

body[data-theme-version="light"] .lc-progress-milestones li.is-skipped .lc-step-icon,
[data-theme="light"] .lc-progress-milestones li.is-skipped .lc-step-icon {
  border-color: rgba(214, 142, 34, 0.74);
  background: rgba(251, 214, 153, 0.9);
  color: rgba(141, 72, 8, 0.92);
}

body[data-theme-version="light"] .lc-progress-milestones li.is-skipped .state,
[data-theme="light"] .lc-progress-milestones li.is-skipped .state {
  border-color: rgba(215, 147, 41, 0.54);
  background: rgba(253, 232, 199, 0.86);
  color: rgba(161, 96, 14, 0.88);
}

body[data-theme-version="light"] .lc-progress-milestones li.is-skipped .lc-step-chip,
[data-theme="light"] .lc-progress-milestones li.is-skipped .lc-step-chip {
  border-color: rgba(214, 142, 34, 0.46);
  background: rgba(255, 239, 213, 0.92);
  color: rgba(161, 96, 14, 0.88);
}

body[data-theme-version="light"] .lc-level-pill--entry,
[data-theme="light"] .lc-level-pill--entry {
  background: rgba(56, 189, 248, 0.18);
  border-color: rgba(2, 132, 199, 0.32);
  color: #075985;
}

body[data-theme-version="light"] .lc-level-pill--tp,
[data-theme="light"] .lc-level-pill--tp {
  background: rgba(34, 197, 94, 0.14);
  border-color: rgba(22, 163, 74, 0.34);
  color: #166534;
}

body[data-theme-version="light"] .lc-level-pill--sl,
[data-theme="light"] .lc-level-pill--sl {
  background: rgba(248, 113, 113, 0.15);
  border-color: rgba(220, 38, 38, 0.32);
  color: #991b1b;
}

body[data-theme-version="light"] .lc-trade-level-empty,
[data-theme="light"] .lc-trade-level-empty {
  color: rgba(52, 89, 132, 0.78);
}

body[data-theme-version="light"] .lc-trade-chart-shell,
[data-theme="light"] .lc-trade-chart-shell {
  border-color: rgba(122, 160, 206, 0.36);
  background: rgba(255, 255, 255, 0.9);
}

body[data-theme-version="light"] .lc-trade-chart-title,
[data-theme="light"] .lc-trade-chart-title {
  color: rgba(43, 92, 145, 0.84);
}

body[data-theme-version="light"] .lc-trade-chart-subtitle,
[data-theme="light"] .lc-trade-chart-subtitle {
  color: rgba(28, 61, 101, 0.95);
}

body[data-theme-version="light"] .lc-trade-chart-legend-item,
[data-theme="light"] .lc-trade-chart-legend-item {
  color: rgba(35, 72, 114, 0.86);
}

body[data-theme-version="light"] .lc-trade-chart-stage,
[data-theme="light"] .lc-trade-chart-stage {
  border-color: rgba(122, 161, 209, 0.35);
  background: rgba(244, 250, 255, 0.97);
}

body[data-theme-version="light"] .lc-trade-chart-overlay,
[data-theme="light"] .lc-trade-chart-overlay {
  background: rgba(245, 250, 255, 0.92);
}

.trades-page-hero .trades-exchange-label,
.dashboard-page-hero .dashboard-page-updated {
  color: rgba(224, 238, 255, 0.78);
}

.dashboard-page-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  text-align: right;
}

.dashboard-page-meta .btn {
  align-self: flex-end;
}

.trades-page-hub .trades-card:last-of-type {
  margin-bottom: 0 !important;
}

#opportunities-run-btn,
#opportunities-refresh-btn {
  border-radius: 0.82rem;
  min-height: 42px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body[data-theme-version="dark"] #opportunities-run-btn,
[data-theme="dark"] #opportunities-run-btn,
body[data-theme-version="dark"] #opportunities-run-btn:hover,
body[data-theme-version="dark"] #opportunities-run-btn:focus,
body[data-theme-version="dark"] #opportunities-run-btn:active,
body[data-theme-version="dark"] #opportunities-run-btn:disabled,
[data-theme="dark"] #opportunities-run-btn:hover,
[data-theme="dark"] #opportunities-run-btn:focus,
[data-theme="dark"] #opportunities-run-btn:active,
[data-theme="dark"] #opportunities-run-btn:disabled {
  color: #042a39;
}

body[data-theme-version="dark"] #lc-analyze-btn,
[data-theme="dark"] #lc-analyze-btn,
body[data-theme-version="dark"] #lc-analyze-btn:hover,
body[data-theme-version="dark"] #lc-analyze-btn:focus,
body[data-theme-version="dark"] #lc-analyze-btn:active,
body[data-theme-version="dark"] #lc-analyze-btn:disabled,
[data-theme="dark"] #lc-analyze-btn:hover,
[data-theme="dark"] #lc-analyze-btn:focus,
[data-theme="dark"] #lc-analyze-btn:active,
[data-theme="dark"] #lc-analyze-btn:disabled {
  color: #042a39;
}

.btn-tutorial-video {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1.5px solid transparent;
  border-radius: 999px;
  padding: 0.54rem 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #ffffff;
  background:
    linear-gradient(120deg, #0284c7 0%, #2563eb 55%, #1d4ed8 100%) padding-box,
    linear-gradient(110deg, rgba(255, 255, 255, 0.98), rgba(186, 230, 253, 0.9), rgba(125, 211, 252, 0.95), rgba(255, 255, 255, 0.98)) border-box;
  background-size: 100% 100%, 260% 260%;
  background-position: 0 0, 0% 50%;
  box-shadow: 0 10px 22px rgba(28, 78, 216, 0.28);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
  animation: tutorialVideoBorderShift 5.4s ease-in-out infinite;
  white-space: nowrap;
}

.btn-tutorial-video i {
  font-size: 0.9rem;
}

@keyframes tutorialVideoBorderShift {
  0%,
  100% {
    background-position: 0 0, 0% 50%;
  }

  50% {
    background-position: 0 0, 100% 50%;
  }
}

.btn-tutorial-video:hover {
  color: #ffffff;
  transform: translateY(-1px);
  filter: brightness(1.02);
  box-shadow: 0 14px 26px rgba(18, 66, 184, 0.35);
  animation-play-state: paused;
}

.btn-tutorial-video:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(56, 189, 248, 0.36), 0 14px 26px rgba(18, 66, 184, 0.28);
  animation-play-state: paused;
}

.btn-tutorial-video .tutorial-video-pill {
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 0.08rem 0.42rem;
  font-size: 0.68rem;
  line-height: 1.2;
  font-weight: 700;
}

.btn-tutorial-video .tutorial-video-label-mobile {
  display: none;
}

.tutorial-video-modal {
  --tutorial-video-ratio: 0.5625;
}

.tutorial-video-modal .tutorial-video-modal-dialog {
  width: fit-content;
  max-width: min(96vw, calc((90dvh - 8.75rem) * var(--tutorial-video-ratio) + 2rem));
  margin: 5dvh auto;
}

.tutorial-video-modal .modal-content {
  max-height: 90dvh;
  overflow: hidden;
}

.tutorial-video-modal .modal-body {
  max-height: calc(90dvh - 4.8rem);
  overflow: auto;
}

.tutorial-video-wrap,
.opportunities-tutorial-video-wrap,
.ai-manage-tutorial-video-wrap {
  border-radius: 12px;
  overflow: hidden;
  background: #000000;
  display: flex;
  justify-content: center;
}

.tutorial-video-modal video,
#opportunitiesTutorialVideo,
#aiManageTutorialVideo {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: calc(90dvh - 10.5rem);
  height: auto;
  background: #000000;
}

.opportunities-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.opportunities-run-progress {
  border: 1px solid rgba(137, 203, 255, 0.28);
  border-radius: 0.82rem;
  padding: 0.58rem 0.68rem 0.62rem;
  background: rgba(6, 18, 39, 0.52);
  backdrop-filter: blur(6px);
}

.opportunities-run-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
  color: #dbecff;
  font-size: 0.78rem;
  line-height: 1.2;
}

#opportunities-run-progress-percent {
  font-weight: 700;
  color: #f8fcff;
}

.opportunities-run-progress-track {
  height: 0.56rem;
  border-radius: 999px;
  background: rgba(148, 186, 231, 0.24);
  overflow: hidden;
}

.opportunities-run-progress-bar {
  border-radius: 999px;
  background: linear-gradient(90deg, #22d3ee 0%, #38bdf8 46%, #60a5fa 100%);
}

.opportunities-meta-chip {
  display: inline-flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 104px;
  padding: 0.45rem 0.65rem;
  border-radius: 0.7rem;
  border: 1px solid rgba(137, 203, 255, 0.28);
  background: rgba(8, 20, 44, 0.44);
  backdrop-filter: blur(6px);
}

.opportunities-meta-label {
  font-size: 0.64rem;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(186, 214, 245, 0.78);
}

.opportunities-meta-chip strong {
  font-size: 0.81rem;
  line-height: 1.15;
  color: #f3f8ff;
}

.opportunities-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.opportunities-history {
  border: 1px solid rgba(97, 143, 194, 0.28);
  border-radius: 1rem;
  padding: 1rem;
  background: linear-gradient(155deg, rgba(15, 30, 62, 0.72), rgba(14, 27, 56, 0.86));
  box-shadow: 0 10px 24px rgba(3, 8, 19, 0.26);
}

.opportunities-history-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.9rem;
}

.opportunities-history-title-wrap p {
  margin-top: 0.2rem;
  font-size: 0.82rem;
  color: rgba(191, 214, 240, 0.8) !important;
}

.opportunities-history-title-wrap h2 {
  color: #eef7ff;
}

.opportunities-history-body {
  margin-top: 0.8rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(125, 165, 211, 0.25);
}

.opportunities-history-table {
  color: rgba(226, 238, 255, 0.93);
}

.opportunities-history-table thead th {
  border-bottom-color: rgba(125, 165, 211, 0.3);
  color: rgba(171, 198, 230, 0.9);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.opportunities-history-table td {
  border-color: rgba(125, 165, 211, 0.2);
}

.opportunities-history-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.16rem 0.5rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.opportunities-history-status.is-success {
  background: rgba(34, 197, 94, 0.2);
  color: #86efac;
}

.opportunities-history-status.is-failed {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
}

.opportunities-history-status.is-running {
  background: rgba(59, 130, 246, 0.24);
  color: #93c5fd;
}

.opportunities-history-status.is-cancelled {
  background: rgba(234, 179, 8, 0.22);
  color: #fde68a;
}

.opportunities-history-status.is-queued {
  background: rgba(56, 189, 248, 0.24);
  color: #a5f3fc;
}

.opportunities-history-status.is-neutral {
  background: rgba(148, 163, 184, 0.25);
  color: #cbd5e1;
}

.opportunities-history-candidates-col {
  min-width: 13.5rem;
}

.opportunities-history-candidates {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.opportunities-history-candidates-total {
  min-width: 3.15rem;
  padding: 0.28rem 0.5rem;
  border-radius: 0.7rem;
  border: 1px solid rgba(123, 160, 206, 0.34);
  background: rgba(32, 58, 102, 0.42);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.04;
}

.opportunities-history-candidates-total strong {
  font-size: 0.96rem;
  font-weight: 800;
  color: #eff7ff;
}

.opportunities-history-candidates-total small {
  margin-top: 0.04rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(174, 204, 238, 0.8);
}

.opportunities-history-candidates-breakdown {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
}

.opportunities-history-candidates-pills {
  display: flex;
  align-items: center;
  gap: 0.34rem;
}

.opportunities-history-candidates-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.12rem 0.44rem;
  border: 1px solid transparent;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.1;
}

.opportunities-history-candidates-pill.is-long {
  background: rgba(34, 197, 94, 0.18);
  border-color: rgba(34, 197, 94, 0.36);
  color: #9ff0c4;
}

.opportunities-history-candidates-pill.is-short {
  background: rgba(248, 113, 113, 0.18);
  border-color: rgba(248, 113, 113, 0.36);
  color: #fecaca;
}

.opportunities-history-candidates-bar {
  width: 100%;
  height: 0.34rem;
  display: flex;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(91, 122, 166, 0.28);
}

.opportunities-history-candidates-bar-long {
  display: block;
  background: linear-gradient(90deg, rgba(34, 197, 94, 0.82), rgba(74, 222, 128, 0.9));
}

.opportunities-history-candidates-bar-short {
  display: block;
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.78), rgba(252, 165, 165, 0.86));
}

.opportunities-history-candidates-bar-unknown {
  display: block;
  background: rgba(148, 163, 184, 0.45);
}

.opportunities-history-candidates.is-empty {
  opacity: 0.78;
}

.opportunities-empty {
  border: 1px solid rgba(89, 133, 184, 0.28);
  border-radius: 1rem;
  padding: 1.2rem;
  background:
    linear-gradient(120deg, rgba(20, 38, 82, 0.52), rgba(17, 41, 95, 0.36));
}

.opportunities-empty h2 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  color: #f3f9ff;
}

.opportunities-empty p {
  margin: 0;
  color: rgba(190, 214, 240, 0.85);
}

.opportunity-card {
  position: relative;
  border: 1px solid rgba(97, 143, 194, 0.28);
  border-radius: 1rem;
  padding: 1rem 1rem 0.95rem;
  background:
    linear-gradient(155deg, rgba(15, 30, 62, 0.88), rgba(14, 27, 56, 0.95));
  box-shadow: 0 14px 28px rgba(3, 8, 19, 0.34);
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
  animation: opportunitiesCardIn 240ms ease both;
}

.opportunity-card:hover {
  transform: translateY(-2px);
  border-color: rgba(95, 206, 214, 0.5);
  box-shadow: 0 18px 32px rgba(3, 8, 19, 0.42);
}

.opportunity-card-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.85rem;
}

.opportunity-card-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.2rem;
}

.opportunity-card-title-row h5 {
  color: #eef7ff;
}

.opportunity-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.26rem 0.58rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.opportunity-pill-exchange {
  background: rgba(151, 182, 222, 0.2);
  color: #dbe9ff;
}

.opportunity-pill-setup {
  background: rgba(49, 106, 212, 0.23);
  color: #9cc1ff;
}

.opportunity-direction-long {
  background: rgba(45, 197, 121, 0.18);
  color: #8ff1c4;
}

.opportunity-direction-short {
  background: rgba(240, 90, 90, 0.18);
  color: #ffc2c2;
}

.opportunity-subline {
  font-size: 0.83rem;
  color: rgba(177, 201, 229, 0.82);
}

.opportunity-score-wrap {
  text-align: right;
}

.opportunity-score-head {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.opportunity-score-info-btn {
  width: 1.7rem;
  height: 1.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(110, 173, 255, 0.42);
  border-radius: 999px;
  background: rgba(29, 78, 216, 0.2);
  color: #cce2ff;
  font-size: 0.8rem;
  transition: all 0.16s ease;
}

.opportunity-score-info-btn:hover,
.opportunity-score-info-btn:focus-visible {
  border-color: rgba(94, 234, 212, 0.72);
  color: #8ef4e8;
  background: rgba(13, 148, 136, 0.28);
  outline: none;
}

.opportunity-score {
  font-size: 1.95rem;
  font-weight: 800;
  line-height: 1;
  color: #35d8cf;
}

.opportunity-score-label {
  font-size: 0.82rem;
  color: rgba(177, 201, 229, 0.75);
}

.opportunity-score-track {
  width: 112px;
  height: 0.34rem;
  border-radius: 999px;
  margin-top: 0.36rem;
  margin-left: auto;
  background: rgba(76, 110, 150, 0.32);
  overflow: hidden;
}

.opportunity-score-fill {
  height: 100%;
  background: linear-gradient(90deg, #0ea5e9, #2dd4bf);
}

.opportunity-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
  margin-top: 0.42rem;
}

.opportunity-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #d9ecff;
  background: rgba(78, 123, 183, 0.28);
  border: 1px solid rgba(120, 168, 223, 0.32);
}

.opportunity-stats-grid {
  margin-top: 0.95rem;
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.opportunity-stat {
  border: 1px solid rgba(102, 146, 197, 0.22);
  border-radius: 0.72rem;
  padding: 0.58rem 0.7rem;
  background: rgba(8, 18, 43, 0.48);
}

.opportunity-kv-label {
  font-size: 0.64rem;
  color: rgba(163, 191, 222, 0.72);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.2rem;
}

.opportunity-kv-value {
  font-size: 0.97rem;
  font-weight: 700;
  color: #ecf6ff;
  white-space: nowrap;
}

.opportunity-actions {
  margin-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.48rem;
}

.opportunity-card-extra {
  padding: 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(105, 145, 196, 0.3);
  background: rgba(9, 23, 51, 0.48);
}

.opportunity-chart-modal-dialog {
  width: 90vw;
  max-width: none;
  height: 90vh;
  margin: 5vh auto;
}

.opportunity-chart-modal-content {
  height: 100%;
  border-radius: 1rem;
  border: 1px solid rgba(105, 145, 196, 0.42);
  background: linear-gradient(160deg, rgba(9, 22, 49, 0.96), rgba(8, 18, 41, 0.98));
  box-shadow: 0 24px 44px rgba(3, 8, 19, 0.52);
  overflow: hidden;
}

.opportunity-chart-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.75rem 0.9rem 0.55rem;
}

.opportunity-chart-modal-title-wrap {
  min-width: 0;
}

.opportunity-chart-modal-title {
  color: #e6f1ff;
  font-size: 0.95rem;
  font-weight: 700;
}

.opportunity-chart-modal-subtitle {
  margin-top: 0.2rem;
  font-size: 0.74rem;
  color: rgba(192, 216, 245, 0.86);
}

.opportunity-chart-modal .btn-close {
  opacity: 1;
  filter: invert(1) grayscale(100%) brightness(280%);
  border-radius: 999px;
  background-color: rgba(236, 245, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(177, 206, 242, 0.28);
}

.opportunity-chart-modal .btn-close:hover {
  opacity: 1;
  background-color: rgba(236, 245, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(198, 222, 252, 0.36);
}

.opportunity-chart-modal-body {
  display: flex;
  flex-direction: column;
  gap: 0.68rem;
  height: calc(100% - 48px);
  padding: 0.45rem 0.7rem 0.8rem;
  background: rgba(7, 17, 39, 0.78);
}

.opportunity-chart-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.opportunity-chart-toolbar-label {
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(177, 208, 244, 0.88);
  font-weight: 700;
}

.opportunity-chart-timeframes {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.opportunity-chart-tf-btn {
  border: 1px solid rgba(126, 148, 182, 0.45);
  background: rgba(245, 249, 255, 0.88);
  color: #385989;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.34rem 0.7rem;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.opportunity-chart-tf-btn:hover {
  border-color: rgba(69, 121, 204, 0.72);
  transform: translateY(-1px);
}

.opportunity-chart-tf-btn.is-active {
  border-color: rgba(63, 123, 221, 0.82);
  background: rgba(66, 133, 244, 0.18);
  color: #264f90;
}

.opportunity-chart-shell {
  position: relative;
  border: 1px solid rgba(129, 153, 190, 0.26);
  border-radius: 12px;
  min-height: 460px;
  background: linear-gradient(180deg, rgba(249, 252, 255, 0.97) 0%, rgba(241, 247, 255, 0.96) 100%);
  overflow: hidden;
  flex: 1;
}

.opportunity-chart-canvas {
  width: 100%;
  height: 100%;
  min-height: 460px;
}

.top-movers-chart-stack {
  display: flex;
  flex-direction: column;
  gap: 0.68rem;
  flex: 1;
  min-height: 0;
}

.top-movers-chart-shell-main {
  min-height: 340px;
}

.top-movers-chart-shell-main .opportunity-chart-canvas {
  min-height: 340px;
}

.top-movers-indicator-shell {
  display: flex;
  flex-direction: column;
  flex: 0 0 190px;
  min-height: 190px;
  border: 1px solid rgba(129, 153, 190, 0.26);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(249, 252, 255, 0.97) 0%, rgba(241, 247, 255, 0.96) 100%);
  overflow: hidden;
}

.top-movers-indicator-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.55rem 0.75rem 0.3rem;
  border-bottom: 1px solid rgba(129, 153, 190, 0.18);
}

.top-movers-indicator-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #4f6d94;
}

.top-movers-indicator-meta {
  font-size: 0.72rem;
  color: rgba(79, 109, 148, 0.84);
  text-align: right;
}

.top-movers-macd-canvas {
  width: 100%;
  flex: 1;
  min-height: 140px;
}

.opportunity-chart-state {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.9rem;
  color: #567198;
  font-weight: 600;
  background: rgba(247, 251, 255, 0.92);
  z-index: 2;
}

.opportunity-chart-state.opportunity-chart-state--error {
  color: #b4233f;
  background: rgba(255, 244, 247, 0.95);
}

.opportunity-ai-plan {
  padding: 0.75rem;
  border: 1px solid rgba(13, 148, 136, 0.25);
  border-radius: 0.75rem;
  background: rgba(45, 212, 191, 0.08);
}

.opportunity-ai-plan-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #78efe5;
}

[data-theme-version="light"] .opportunities-hero,
[data-theme="light"] .opportunities-hero {
  border-color: rgba(9, 30, 66, 0.12);
  background:
    radial-gradient(110% 120% at 95% -15%, rgba(24, 168, 165, 0.16), transparent 56%),
    radial-gradient(90% 110% at -10% 105%, rgba(14, 116, 244, 0.11), transparent 54%),
    linear-gradient(136deg, #f9fcff, #ecf5ff);
}

body[data-theme-version="light"] .opportunities-hero-title h1,
[data-theme="light"] .opportunities-hero-title h1 {
  color: #102746;
}

body[data-theme-version="light"] .opportunities-hero-title p,
[data-theme="light"] .opportunities-hero-title p {
  color: rgba(43, 75, 114, 0.78) !important;
}

body[data-theme-version="light"] .opportunities-view-switch,
body[data-theme-version="light"] .opportunities-hero-switch-row,
[data-theme="light"] .opportunities-view-switch,
[data-theme="light"] .opportunities-hero-switch-row {
  border-color: rgba(123, 166, 216, 0.42);
  background: rgba(226, 241, 255, 0.72);
}

body[data-theme-version="light"] .opportunities-view-switch-btn,
[data-theme="light"] .opportunities-view-switch-btn {
  color: rgba(22, 52, 87, 0.88);
}

body[data-theme-version="light"] .opportunities-view-switch-btn.is-active,
[data-theme="light"] .opportunities-view-switch-btn.is-active {
  color: #07303f;
  background: linear-gradient(130deg, #a3f7ff, #6ce4d6 58%, #47d2c2);
  box-shadow: 0 8px 18px rgba(53, 171, 185, 0.28);
}

body[data-theme-version="light"] .opportunities-hub-section,
[data-theme="light"] .opportunities-hub-section {
  border-color: rgba(134, 170, 214, 0.35);
  background: linear-gradient(145deg, rgba(240, 248, 255, 0.9), rgba(235, 245, 255, 0.98));
  box-shadow: 0 10px 24px rgba(27, 76, 135, 0.1);
}

body[data-theme-version="light"] .graph-analysis-hub-section .card,
[data-theme="light"] .graph-analysis-hub-section .card {
  border-color: rgba(124, 157, 202, 0.34);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.94), rgba(244, 250, 255, 0.96));
}

body[data-theme-version="light"] .graph-analysis-hub-section .card-header,
[data-theme="light"] .graph-analysis-hub-section .card-header {
  border-bottom-color: rgba(126, 162, 208, 0.32);
  background: rgba(234, 245, 255, 0.78);
}

body[data-theme-version="light"] .graph-analysis-hub-section .card-title,
body[data-theme-version="light"] .graph-analysis-hub-section .card-header h6,
[data-theme="light"] .graph-analysis-hub-section .card-title,
[data-theme="light"] .graph-analysis-hub-section .card-header h6 {
  color: #133157;
}

body[data-theme-version="light"] .graph-analysis-hub-section .card-body,
[data-theme="light"] .graph-analysis-hub-section .card-body {
  color: #213d60;
}

body[data-theme-version="light"] .graph-analysis-hub-section .text-muted,
[data-theme="light"] .graph-analysis-hub-section .text-muted {
  color: rgba(57, 88, 126, 0.82) !important;
}

body[data-theme-version="light"] .trades-page-hero .trades-exchange-label,
body[data-theme-version="light"] .dashboard-page-hero .dashboard-page-updated,
[data-theme="light"] .trades-page-hero .trades-exchange-label,
[data-theme="light"] .dashboard-page-hero .dashboard-page-updated {
  color: rgba(43, 75, 114, 0.78);
}

body[data-theme-version="light"] .opportunities-hub-head h2,
[data-theme="light"] .opportunities-hub-head h2 {
  color: #11294b;
}

body[data-theme-version="light"] .opportunities-hub-head p,
[data-theme="light"] .opportunities-hub-head p {
  color: rgba(44, 74, 113, 0.78) !important;
}

body[data-theme-version="light"] .opportunities-direction-label,
[data-theme="light"] .opportunities-direction-label {
  color: rgba(43, 75, 114, 0.78);
}

body[data-theme-version="light"] .opportunities-direction-toggle,
[data-theme="light"] .opportunities-direction-toggle {
  border-color: rgba(108, 145, 199, 0.4);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

body[data-theme-version="light"] .opportunities-direction-chip,
[data-theme="light"] .opportunities-direction-chip {
  color: rgba(31, 76, 129, 0.78);
}

body[data-theme-version="light"] .opportunities-direction-chip:hover,
[data-theme="light"] .opportunities-direction-chip:hover {
  color: #153f72;
}

body[data-theme-version="light"] .opportunities-direction-chip-dot,
[data-theme="light"] .opportunities-direction-chip-dot {
  background: rgba(83, 126, 184, 0.56);
}

body[data-theme-version="light"] .opportunities-direction-chip.is-active,
[data-theme="light"] .opportunities-direction-chip.is-active {
  color: #07303f;
  background: linear-gradient(130deg, #a3f7ff, #6ce4d6 58%, #47d2c2);
  box-shadow: 0 8px 18px rgba(53, 171, 185, 0.28);
}

body[data-theme-version="light"] .opportunities-direction-chip.is-active .opportunities-direction-chip-dot,
[data-theme="light"] .opportunities-direction-chip.is-active .opportunities-direction-chip-dot {
  background: rgba(7, 48, 63, 0.55);
}

body[data-theme-version="light"] .opportunities-meta-chip,
[data-theme="light"] .opportunities-meta-chip {
  border-color: rgba(124, 157, 202, 0.34);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(5px);
}

body[data-theme-version="light"] .opportunities-run-progress,
[data-theme="light"] .opportunities-run-progress {
  border-color: rgba(124, 157, 202, 0.34);
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(5px);
}

body[data-theme-version="light"] .opportunities-run-progress-head,
[data-theme="light"] .opportunities-run-progress-head {
  color: #26466f;
}

body[data-theme-version="light"] #opportunities-run-progress-percent,
[data-theme="light"] #opportunities-run-progress-percent {
  color: #0f2d56;
}

body[data-theme-version="light"] .opportunities-run-progress-track,
[data-theme="light"] .opportunities-run-progress-track {
  background: rgba(90, 129, 184, 0.22);
}

body[data-theme-version="light"] .opportunities-meta-label,
[data-theme="light"] .opportunities-meta-label {
  color: rgba(57, 88, 126, 0.78);
}

body[data-theme-version="light"] .opportunities-meta-chip strong,
[data-theme="light"] .opportunities-meta-chip strong {
  color: #173560;
}

[data-theme-version="light"] .opportunity-card,
[data-theme="light"] .opportunity-card {
  border-color: rgba(120, 149, 189, 0.28);
  background: linear-gradient(160deg, #ffffff, #f3f8ff);
  box-shadow: 0 12px 24px rgba(26, 43, 74, 0.08);
}

[data-theme-version="light"] .opportunity-card:hover,
[data-theme="light"] .opportunity-card:hover {
  border-color: rgba(79, 169, 195, 0.44);
  box-shadow: 0 16px 30px rgba(26, 43, 74, 0.12);
}

[data-theme-version="light"] .opportunities-history,
[data-theme="light"] .opportunities-history {
  border-color: rgba(120, 149, 189, 0.28);
  background: linear-gradient(160deg, #ffffff, #f3f8ff);
  box-shadow: 0 12px 24px rgba(26, 43, 74, 0.08);
}

[data-theme-version="light"] .opportunities-history-title-wrap h2,
[data-theme="light"] .opportunities-history-title-wrap h2 {
  color: #0f274b;
}

[data-theme-version="light"] .opportunities-history-title-wrap p,
[data-theme="light"] .opportunities-history-title-wrap p {
  color: rgba(44, 74, 113, 0.72) !important;
}

[data-theme-version="light"] .opportunities-history-body,
[data-theme="light"] .opportunities-history-body {
  border-top-color: rgba(136, 165, 205, 0.32);
}

[data-theme-version="light"] .opportunities-history-table,
[data-theme="light"] .opportunities-history-table {
  color: #102746;
}

[data-theme-version="light"] .opportunities-history-table thead th,
[data-theme="light"] .opportunities-history-table thead th {
  border-bottom-color: rgba(136, 165, 205, 0.32);
  color: rgba(44, 74, 113, 0.78);
}

[data-theme-version="light"] .opportunities-history-table td,
[data-theme="light"] .opportunities-history-table td {
  border-color: rgba(136, 165, 205, 0.22);
}

[data-theme-version="light"] .opportunities-history-status.is-success,
[data-theme="light"] .opportunities-history-status.is-success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid rgba(22, 101, 52, 0.22);
}

[data-theme-version="light"] .opportunities-history-candidates-total,
[data-theme="light"] .opportunities-history-candidates-total {
  border-color: rgba(129, 156, 194, 0.34);
  background: linear-gradient(180deg, #f2f7ff, #e8f1ff);
}

[data-theme-version="light"] .opportunities-history-candidates-total strong,
[data-theme="light"] .opportunities-history-candidates-total strong {
  color: #102746;
}

[data-theme-version="light"] .opportunities-history-candidates-total small,
[data-theme="light"] .opportunities-history-candidates-total small {
  color: rgba(52, 84, 126, 0.72);
}

[data-theme-version="light"] .opportunities-history-candidates-pill.is-long,
[data-theme="light"] .opportunities-history-candidates-pill.is-long {
  background: rgba(34, 197, 94, 0.2);
  border-color: rgba(22, 163, 74, 0.36);
  color: #166534;
}

[data-theme-version="light"] .opportunities-history-candidates-pill.is-short,
[data-theme="light"] .opportunities-history-candidates-pill.is-short {
  background: rgba(239, 68, 68, 0.16);
  border-color: rgba(220, 38, 38, 0.3);
  color: #991b1b;
}

[data-theme-version="light"] .opportunities-history-candidates-bar,
[data-theme="light"] .opportunities-history-candidates-bar {
  background: rgba(137, 167, 207, 0.28);
}

[data-theme-version="light"] .opportunities-history-candidates-bar-unknown,
[data-theme="light"] .opportunities-history-candidates-bar-unknown {
  background: rgba(148, 163, 184, 0.4);
}

[data-theme-version="light"] .opportunity-card-title-row h5,
[data-theme="light"] .opportunity-card-title-row h5 {
  color: #0f274b;
}

[data-theme-version="light"] .opportunity-subline,
[data-theme-version="light"] .opportunity-score-label,
[data-theme-version="light"] .opportunity-kv-label,
[data-theme="light"] .opportunity-subline,
[data-theme="light"] .opportunity-score-label,
[data-theme="light"] .opportunity-kv-label {
  color: rgba(44, 74, 113, 0.72);
}

[data-theme-version="light"] .opportunity-kv-value,
[data-theme="light"] .opportunity-kv-value {
  color: #102746;
}

[data-theme-version="light"] .opportunity-score,
[data-theme="light"] .opportunity-score {
  color: #0a9a9f;
}

[data-theme-version="light"] .opportunity-score-track,
[data-theme="light"] .opportunity-score-track {
  background: rgba(120, 159, 205, 0.4);
}

[data-theme-version="light"] .opportunity-stat,
[data-theme="light"] .opportunity-stat {
  border-color: rgba(136, 165, 205, 0.32);
  background: linear-gradient(155deg, #f7fbff, #eef5ff);
}

[data-theme-version="light"] .opportunity-pill-exchange,
[data-theme="light"] .opportunity-pill-exchange {
  background: rgba(76, 111, 164, 0.14);
  color: #284a79;
}

[data-theme-version="light"] .opportunity-pill-setup,
[data-theme="light"] .opportunity-pill-setup {
  background: rgba(53, 121, 229, 0.16);
  color: #1f55a6;
}

[data-theme-version="light"] .opportunity-tag,
[data-theme="light"] .opportunity-tag {
  border-color: rgba(127, 164, 214, 0.35);
  background: rgba(223, 236, 251, 0.75);
  color: #23456f;
}

[data-theme-version="light"] .opportunity-direction-long,
[data-theme="light"] .opportunity-direction-long {
  background: rgba(16, 185, 129, 0.16);
  color: #0f766e;
}

[data-theme-version="light"] .opportunity-direction-short,
[data-theme="light"] .opportunity-direction-short {
  background: rgba(239, 68, 68, 0.14);
  color: #b91c1c;
}

[data-theme-version="light"] .opportunity-card-extra,
[data-theme="light"] .opportunity-card-extra {
  border-color: rgba(132, 164, 207, 0.34);
  background: rgba(241, 247, 255, 0.86);
}

[data-theme-version="light"] .opportunity-chart-modal-content,
[data-theme="light"] .opportunity-chart-modal-content {
  border-color: rgba(105, 145, 196, 0.42);
  background: linear-gradient(160deg, rgba(9, 22, 49, 0.96), rgba(8, 18, 41, 0.98));
  box-shadow: 0 24px 44px rgba(3, 8, 19, 0.52);
}

[data-theme-version="light"] .opportunity-chart-modal-title,
[data-theme="light"] .opportunity-chart-modal-title {
  color: #e6f1ff;
}

[data-theme-version="light"] .opportunity-chart-modal-subtitle,
[data-theme="light"] .opportunity-chart-modal-subtitle {
  color: rgba(192, 216, 245, 0.86);
}

[data-theme-version="light"] .opportunity-chart-modal-body,
[data-theme="light"] .opportunity-chart-modal-body {
  background: rgba(4, 10, 24, 0.92);
}

[data-theme-version="light"] .opportunity-chart-modal .btn-close,
[data-theme="light"] .opportunity-chart-modal .btn-close {
  filter: invert(1) grayscale(100%) brightness(280%);
}

body[data-theme-version="dark"] .opportunity-chart-modal .btn-close,
[data-theme="dark"] .opportunity-chart-modal .btn-close {
  filter: invert(1) grayscale(100%) brightness(320%);
  background-color: rgba(236, 245, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(190, 216, 249, 0.34);
}

body[data-theme-version="dark"] .opportunity-chart-modal .btn-close:hover,
[data-theme="dark"] .opportunity-chart-modal .btn-close:hover {
  background-color: rgba(236, 245, 255, 0.2);
  box-shadow: inset 0 0 0 1px rgba(209, 228, 252, 0.42);
}

[data-theme-version="light"] .opportunity-chart-shell,
[data-theme="light"] .opportunity-chart-shell {
  border-color: rgba(129, 153, 190, 0.26);
  background: linear-gradient(180deg, rgba(249, 252, 255, 0.97) 0%, rgba(241, 247, 255, 0.96) 100%);
}

[data-theme-version="light"] .opportunity-chart-tf-btn,
[data-theme="light"] .opportunity-chart-tf-btn {
  border-color: rgba(126, 148, 182, 0.45);
  background: rgba(245, 249, 255, 0.88);
  color: #385989;
}

[data-theme-version="light"] .opportunity-chart-state,
[data-theme="light"] .opportunity-chart-state {
  color: #567198;
  background: rgba(247, 251, 255, 0.92);
}

[data-theme-version="dark"] .opportunity-chart-modal-content,
[data-theme="dark"] .opportunity-chart-modal-content {
  background: linear-gradient(160deg, rgba(9, 22, 49, 0.98), rgba(8, 18, 41, 0.99));
}

[data-theme-version="dark"] .opportunity-chart-modal-body,
[data-theme="dark"] .opportunity-chart-modal-body {
  background: rgba(4, 10, 24, 0.92);
}

[data-theme-version="dark"] .opportunity-chart-modal-subtitle,
[data-theme="dark"] .opportunity-chart-modal-subtitle {
  color: rgba(198, 222, 248, 0.8);
}

[data-theme-version="dark"] .opportunity-chart-modal .btn-close,
[data-theme="dark"] .opportunity-chart-modal .btn-close {
  opacity: 1;
  filter: invert(1) grayscale(100%) brightness(320%);
  background-color: rgba(236, 245, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(190, 216, 249, 0.34);
}

[data-theme-version="dark"] .opportunity-chart-shell,
[data-theme="dark"] .opportunity-chart-shell {
  border-color: rgba(88, 117, 162, 0.38);
  background: linear-gradient(180deg, rgba(9, 17, 33, 0.97) 0%, rgba(10, 20, 38, 0.97) 100%);
}

[data-theme-version="dark"] .opportunity-chart-tf-btn,
[data-theme="dark"] .opportunity-chart-tf-btn {
  border-color: rgba(106, 149, 201, 0.42);
  background: rgba(22, 36, 58, 0.92);
  color: #b6d2f4;
}

[data-theme-version="dark"] .opportunity-chart-tf-btn.is-active,
[data-theme="dark"] .opportunity-chart-tf-btn.is-active {
  border-color: rgba(82, 162, 255, 0.88);
  background: rgba(59, 130, 246, 0.24);
  color: #e5f1ff;
}

[data-theme-version="dark"] .opportunity-chart-state,
[data-theme="dark"] .opportunity-chart-state {
  color: #b9d1ee;
  background: rgba(6, 14, 28, 0.9);
}

body.opportunity-chart-open .modal-backdrop.show {
  background-color: #020617;
  opacity: 0.86;
}

.opportunity-score-modal-copy {
  color: #e2e8f0;
  font-size: 0.9rem;
}

.opportunity-score-modal-copy p {
  color: #d6e4ff;
}

.opportunity-score-modal-copy li {
  margin-bottom: 0.3rem;
  color: #c8d7ef;
}

.opportunity-score-breakdown {
  display: grid;
  gap: 0.68rem;
}

.opportunity-score-formula {
  border: 1px solid rgba(96, 165, 250, 0.28);
  border-radius: 0.8rem;
  background: linear-gradient(150deg, rgba(11, 32, 68, 0.55), rgba(11, 42, 83, 0.42));
  padding: 0.55rem 0.65rem;
}

.opportunity-score-formula-label {
  display: block;
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(158, 190, 228, 0.86);
  margin-bottom: 0.16rem;
}

.opportunity-score-formula-value {
  display: block;
  font-weight: 700;
  color: #e5effc;
  line-height: 1.35;
  font-size: 0.86rem;
}

.opportunity-score-breakdown-grid {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.opportunity-score-breakdown-item {
  border: 1px solid rgba(93, 130, 176, 0.3);
  border-radius: 0.72rem;
  padding: 0.48rem 0.56rem;
  background: rgba(9, 20, 46, 0.42);
}

.opportunity-score-breakdown-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.45rem;
  margin-bottom: 0.14rem;
}

.opportunity-score-breakdown-title {
  font-size: 0.73rem;
  font-weight: 700;
  color: #d8e8fb;
}

.opportunity-score-breakdown-points {
  font-size: 0.86rem;
  font-weight: 800;
  color: #8ef4e8;
}

.opportunity-score-breakdown-points small {
  margin-left: 0.08rem;
  color: rgba(160, 184, 213, 0.9);
  font-size: 0.64rem;
}

.opportunity-score-breakdown-item p {
  margin: 0;
  color: rgba(178, 201, 229, 0.92);
  font-size: 0.76rem;
  line-height: 1.35;
}

.opportunity-score-breakdown-item.is-warning .opportunity-score-breakdown-points {
  color: #fca5a5;
}

.opportunity-score-breakdown-total {
  border: 1px solid rgba(45, 212, 191, 0.34);
  border-radius: 0.8rem;
  padding: 0.52rem 0.62rem;
  background: linear-gradient(150deg, rgba(8, 40, 53, 0.66), rgba(6, 28, 47, 0.58));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
}

.opportunity-score-breakdown-total strong {
  color: #d7f9f0;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.opportunity-score-breakdown-total span {
  color: #5ce8dc;
  font-size: 1.08rem;
  font-weight: 800;
}

.opportunity-score-breakdown-total small {
  display: block;
  margin-top: 0.02rem;
  color: rgba(183, 210, 239, 0.86);
  font-size: 0.68rem;
  text-align: right;
}

[data-theme-version="light"] .opportunity-score-info-btn,
[data-theme="light"] .opportunity-score-info-btn {
  border-color: rgba(61, 118, 210, 0.35);
  background: rgba(53, 121, 229, 0.14);
  color: #1d4f94;
}

[data-theme-version="light"] .opportunity-score-info-btn:hover,
[data-theme-version="light"] .opportunity-score-info-btn:focus-visible,
[data-theme="light"] .opportunity-score-info-btn:hover,
[data-theme="light"] .opportunity-score-info-btn:focus-visible {
  border-color: rgba(13, 148, 136, 0.6);
  color: #0f766e;
  background: rgba(20, 184, 166, 0.18);
}

[data-theme-version="light"] .opportunity-score-modal-copy,
[data-theme="light"] .opportunity-score-modal-copy,
[data-theme-version="light"] .opportunity-score-modal-copy p,
[data-theme="light"] .opportunity-score-modal-copy p,
[data-theme-version="light"] .opportunity-score-modal-copy li,
[data-theme="light"] .opportunity-score-modal-copy li {
  color: #334155;
}

[data-theme-version="light"] .opportunity-score-formula,
[data-theme="light"] .opportunity-score-formula {
  border-color: rgba(126, 159, 197, 0.38);
  background: linear-gradient(145deg, rgba(247, 252, 255, 0.96), rgba(234, 246, 255, 0.88));
}

[data-theme-version="light"] .opportunity-score-formula-label,
[data-theme="light"] .opportunity-score-formula-label {
  color: rgba(56, 88, 128, 0.82);
}

[data-theme-version="light"] .opportunity-score-formula-value,
[data-theme="light"] .opportunity-score-formula-value {
  color: #143861;
}

[data-theme-version="light"] .opportunity-score-breakdown-item,
[data-theme="light"] .opportunity-score-breakdown-item {
  border-color: rgba(135, 166, 203, 0.34);
  background: rgba(255, 255, 255, 0.88);
}

[data-theme-version="light"] .opportunity-score-breakdown-title,
[data-theme="light"] .opportunity-score-breakdown-title {
  color: #1d456f;
}

[data-theme-version="light"] .opportunity-score-breakdown-points,
[data-theme="light"] .opportunity-score-breakdown-points {
  color: #0f766e;
}

[data-theme-version="light"] .opportunity-score-breakdown-item.is-warning .opportunity-score-breakdown-points,
[data-theme="light"] .opportunity-score-breakdown-item.is-warning .opportunity-score-breakdown-points {
  color: #b91c1c;
}

[data-theme-version="light"] .opportunity-score-breakdown-points small,
[data-theme="light"] .opportunity-score-breakdown-points small,
[data-theme-version="light"] .opportunity-score-breakdown-item p,
[data-theme="light"] .opportunity-score-breakdown-item p {
  color: rgba(57, 89, 127, 0.82);
}

[data-theme-version="light"] .opportunity-score-breakdown-total,
[data-theme="light"] .opportunity-score-breakdown-total {
  border-color: rgba(20, 184, 166, 0.36);
  background: linear-gradient(145deg, rgba(236, 253, 245, 0.92), rgba(227, 248, 255, 0.9));
}

[data-theme-version="light"] .opportunity-score-breakdown-total strong,
[data-theme="light"] .opportunity-score-breakdown-total strong {
  color: #134e4a;
}

[data-theme-version="light"] .opportunity-score-breakdown-total span,
[data-theme="light"] .opportunity-score-breakdown-total span {
  color: #0f766e;
}

[data-theme-version="light"] .opportunity-score-breakdown-total small,
[data-theme="light"] .opportunity-score-breakdown-total small {
  color: rgba(46, 78, 117, 0.8);
}

[data-theme-version="light"] .opportunities-empty,
[data-theme="light"] .opportunities-empty {
  border-color: rgba(120, 149, 189, 0.28);
  background: linear-gradient(160deg, #ffffff, #f4f8ff);
}

[data-theme-version="light"] .opportunities-empty h2,
[data-theme="light"] .opportunities-empty h2 {
  color: #11294b;
}

[data-theme-version="light"] .opportunities-empty p,
[data-theme="light"] .opportunities-empty p {
  color: rgba(44, 74, 113, 0.78);
}

[data-theme-version="dark"] .opportunity-chart-figure {
  background: #1f2937;
  border-color: rgba(148, 163, 184, 0.3);
}

[data-theme-version="dark"] .opportunity-chart-missing {
  color: #c6d7eb;
}

[data-theme-version="dark"] .opportunity-chart-figure figcaption {
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.5);
}

[data-theme-version="dark"] .btn-tutorial-video,
[data-theme="dark"] .btn-tutorial-video {
  box-shadow: 0 12px 24px rgba(7, 21, 51, 0.6);
}

@media (prefers-reduced-motion: reduce) {
  .btn-tutorial-video {
    animation: none;
    background-position: 0 0, 50% 50%;
  }
}

@media (max-width: 1200px) {
  .opportunity-stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .opportunities-hero {
    padding: 1rem;
  }

  .opportunities-toolbar {
    width: 100%;
    gap: 0.55rem;
  }

  .opportunities-toolbar-host {
    width: 100%;
    align-items: stretch;
  }

  .opportunities-direction-field {
    min-width: 100%;
  }

  .opportunities-direction-toggle {
    width: 100%;
  }

  .opportunities-direction-chip {
    flex: 1 1 0;
    min-width: 0;
  }

  #opportunities-run-btn,
  #opportunities-refresh-btn,
  #top-movers-refresh {
    flex: 1 1 auto;
    min-width: 132px;
  }

  .opportunities-hub-section {
    padding: 0.85rem;
  }

  .opportunities-view-switch,
  .opportunities-hero-switch-row {
    width: 100%;
    display: flex;
  }

  .opportunities-view-switch-btn {
    flex: 1 1 0;
    justify-content: center;
    min-width: 0;
  }

  .graph-analysis-hero .opportunities-meta-chip {
    flex: 1 1 calc(50% - 0.55rem);
    min-width: 0;
  }

  .liquidity-compass-hero-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .liquidity-compass-map-row {
    grid-template-columns: minmax(72px, auto) 1fr minmax(48px, auto);
  }

  .lc-heatmap-item {
    flex-direction: column;
  }

  .lc-heatmap-thumb-wrap {
    width: 100%;
    flex: 0 0 auto;
    height: 140px;
  }

  .lc-progress-milestones li {
    grid-template-columns: 1.85rem minmax(0, 1fr);
    padding: 0.72rem 0.74rem 0.74rem 0.68rem;
    column-gap: 0.62rem;
  }

  .lc-progress-milestones .lc-step-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.28rem;
  }

  .lc-progress-milestones .lc-step-title {
    font-size: 0.79rem;
  }

  .lc-progress-milestones .lc-step-detail {
    font-size: 0.72rem;
  }

  .opportunities-history-head {
    flex-direction: column;
  }

  #opportunities-history-toggle-btn {
    width: 100%;
  }

  .opportunity-score-wrap {
    text-align: left;
  }

  .opportunity-score {
    font-size: 1.6rem;
  }

  .opportunity-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .opportunity-score-breakdown-grid {
    grid-template-columns: 1fr;
  }

  .opportunity-chart-modal-dialog {
    width: 94vw;
    height: 92vh;
    margin: 4vh auto;
  }

  .opportunity-chart-shell {
    min-height: 340px;
  }

  .opportunity-chart-canvas {
    min-height: 340px;
  }

  .btn-tutorial-video .tutorial-video-label-desktop {
    display: none;
  }

  .btn-tutorial-video .tutorial-video-label-mobile {
    display: inline;
  }

  .btn-tutorial-video .tutorial-video-pill {
    display: none;
  }

  .btn-tutorial-video {
    min-height: 40px;
    border-radius: 12px;
    padding: 0.46rem 0.72rem;
    box-shadow: 0 8px 18px rgba(28, 78, 216, 0.22);
  }

  .tutorial-video-modal .tutorial-video-modal-dialog {
    max-width: min(96vw, calc((90dvh - 9.25rem) * var(--tutorial-video-ratio) + 1.2rem));
    margin: 5dvh auto;
  }

  .tutorial-video-modal .modal-body {
    padding: 0.75rem;
    max-height: calc(90dvh - 4.4rem);
  }

  .tutorial-video-modal video,
  #opportunitiesTutorialVideo,
  #aiManageTutorialVideo {
    max-height: calc(90dvh - 9.75rem);
  }
}

@media (max-width: 520px) {
  .opportunities-meta-chip {
    min-width: 47%;
  }

  .opportunities-run-progress-head {
    font-size: 0.74rem;
  }

  .opportunity-stats-grid {
    grid-template-columns: 1fr;
  }

  .opportunity-actions .btn {
    width: 100%;
  }
}

@keyframes opportunitiesCardIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Bootstrap 4 utility compatibility used by legacy templates/JS. */
.mr-1 { margin-right: 0.25rem !important; }
.mr-2 { margin-right: 0.5rem !important; }
.ml-2 { margin-left: 0.5rem !important; }
.badge-pill { border-radius: 999px !important; }
.font-weight-bold { font-weight: 700 !important; }
.text-gray-800 { color: #1f2937 !important; }
.border-left-info { border-left: 0.25rem solid #36b9cc !important; }
.badge.badge-success { background-color: #198754; color: #ffffff; }
.badge.badge-secondary { background-color: #6c757d; color: #ffffff; }
.badge.badge-warning { background-color: #f59f00; color: #111827; }

.form-row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -0.75rem;
  margin-left: -0.75rem;
}
.form-row > .col,
.form-row > [class*="col-"],
.form-row > .form-group {
  padding-right: 0.75rem;
  padding-left: 0.75rem;
}
.form-group {
  margin-bottom: 1rem;
}

.logo-dark { display: none; }
[data-theme-version="dark"] .logo-light { display: none !important; }
[data-theme-version="dark"] .logo-dark { display: inline-block !important; }
.nav-header .brand-logo img {
  max-height: 42px;
  width: auto;
  object-fit: contain;
}

.card { border-radius: 1rem; }

/* Improve card/background separation in dark mode using the existing palette tones. */
[data-theme-version="dark"] .card:not(.transparent-card):not(.perf-kpi-card),
[data-theme="dark"] .card:not(.transparent-card):not(.perf-kpi-card) {
  background-color: #262a40;
  border-color: rgba(112, 159, 186, 0.34);
  box-shadow: 0 12px 26px rgba(6, 10, 22, 0.35);
}

[data-theme-version="dark"] .card:not(.transparent-card):not(.perf-kpi-card) .card-header,
[data-theme-version="dark"] .card:not(.transparent-card):not(.perf-kpi-card) .card-footer,
[data-theme="dark"] .card:not(.transparent-card):not(.perf-kpi-card) .card-header,
[data-theme="dark"] .card:not(.transparent-card):not(.perf-kpi-card) .card-footer {
  border-color: rgba(112, 159, 186, 0.26);
}

.ser-control-bar {
  background: #ffffff;
  border-radius: 1rem;
  padding: 12px 16px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}
[data-theme-version="dark"] .ser-control-bar { background: #0f172a; }
.ser-control-status span { color: #475569; }
[data-theme-version="dark"] .ser-control-status span { color: #cbd5e1; }
.ser-control-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

@media (min-width: 769px) {
  .ser-control-status {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 16px;
    row-gap: 8px;
  }

  .ser-control-status .ser-status-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }

  .ser-control-status .ser-status-started {
    display: inline-flex;
    align-items: center;
    gap: 4px;
  }

  .ser-control-status .ser-status-item span,
  .ser-control-status .ser-status-started span {
    margin-left: 0 !important;
  }
}

/* Robust accordion chevrons drawn in CSS (no glyph/font dependency). */
.dlabnav .metismenu li > a.has-arrow {
  position: relative;
  display: flex;
  align-items: center;
}
.dlabnav .metismenu li > a.has-arrow:after,
.dlabnav .metismenu li > a.has-arrow:before {
  content: none !important;
  display: none !important;
}
.dlabnav .metismenu li > a.has-arrow .menu-arrow {
  margin-left: auto;
  margin-right: 0.2rem;
  width: 8px;
  height: 8px;
  border-right: 2px solid #b3bcc2;
  border-bottom: 2px solid #b3bcc2;
  transform: rotate(-45deg);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.dlabnav .metismenu li > a.has-arrow[aria-expanded="true"] .menu-arrow,
.dlabnav .metismenu li.mm-active > a.has-arrow .menu-arrow {
  border-right-color: #1eb6ad;
  border-bottom-color: #1eb6ad;
  transform: rotate(45deg);
}

body[data-theme-version="light"] .dlabnav .metismenu > li.mm-active > a,
body[data-theme-version="light"] .dlabnav .metismenu > li:hover > a,
body[data-theme-version="light"] .dlabnav .metismenu > li > ul a.mm-active,
body[data-theme-version="light"] .dlabnav .metismenu > li > ul a:hover,
body[data-theme-version="light"] .dlabnav .metismenu > li > ul a:focus {
  background: rgba(62, 184, 174, 0.23);
  color: #1f5f5a;
}

body[data-theme-version="light"] .dlabnav .metismenu > li.mm-active > a i,
body[data-theme-version="light"] .dlabnav .metismenu > li:hover > a i,
body[data-theme-version="light"] .dlabnav .metismenu > li > ul a.mm-active i,
body[data-theme-version="light"] .dlabnav .metismenu > li > ul a:hover i,
body[data-theme-version="light"] .dlabnav .metismenu > li > ul a:focus i {
  color: #2e9f97;
}

.dlabnav .metismenu li[data-sidebar-section="admin"] > ul a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.dlabnav .metismenu li[data-sidebar-section="admin"] > ul a i,
.dlabnav .metismenu li[data-sidebar-section="admin"] > ul a svg {
  flex: 0 0 1rem;
  width: 1rem;
  text-align: center;
}

.dlabnav .metismenu li[data-sidebar-section="admin"] > ul a .nav-text {
  margin: 0;
  text-align: left;
}

/* Desktop minimized sidebar polish */
@media (min-width: 768px) {
  /* Expanded sidebar (not manually minimized): reduce submenu left indent. */
  body[data-sidebar-style="full"][data-layout="vertical"] #main-wrapper:not(.menu-toggle) .dlabnav .metismenu > li > ul a {
    padding-left: 2rem;
  }

  body[data-sidebar-style="full"] #main-wrapper.menu-toggle .dlabnav .metismenu > li > a.has-arrow .menu-arrow {
    display: none !important;
  }

  body[data-sidebar-style="full"] #main-wrapper.menu-toggle .dlabnav .metismenu > li {
    padding: 0 18px !important;
  }

  body[data-sidebar-style="full"] #main-wrapper.menu-toggle .dlabnav .metismenu > li > a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center;
    padding: 20px 0 !important;
    min-height: 0;
    border-radius: 3rem;
  }

  body[data-sidebar-style="full"] #main-wrapper.menu-toggle .dlabnav .metismenu > li > a > i,
  body[data-sidebar-style="full"] #main-wrapper.menu-toggle .dlabnav .metismenu > li > a > svg {
    margin: 0 !important;
  }

  body[data-sidebar-style="full"] #main-wrapper.menu-toggle .dlabnav .metismenu > li > ul {
    display: none !important;
  }

  body[data-sidebar-style="full"] #main-wrapper.menu-toggle .dlabnav .metismenu > li > ul.mm-show,
  body[data-sidebar-style="full"] #main-wrapper.menu-toggle .dlabnav .metismenu > li > ul.show {
    display: none !important;
  }

  body[data-sidebar-style="full"] #main-wrapper.menu-toggle .dlabnav .metismenu > li:hover > ul.mm-show,
  body[data-sidebar-style="full"] #main-wrapper.menu-toggle .dlabnav .metismenu > li:hover > ul.show,
  body[data-sidebar-style="full"] #main-wrapper.menu-toggle .dlabnav .metismenu > li:hover > ul {
    display: block !important;
  }

  body[data-sidebar-style="full"] #main-wrapper.menu-toggle .dlabnav .metismenu li > ul {
    width: 14rem;
  }

  body[data-sidebar-style="full"] #main-wrapper.menu-toggle .dlabnav .metismenu li > ul a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    white-space: nowrap;
  }

  body[data-sidebar-style="full"] #main-wrapper.menu-toggle .dlabnav .metismenu li > ul .nav-text {
    display: inline-block !important;
  }

  body[data-sidebar-style="full"] #main-wrapper.menu-toggle .dlabnav .metismenu li > ul a i,
  body[data-sidebar-style="full"] #main-wrapper.menu-toggle .dlabnav .metismenu li > ul a svg {
    flex: 0 0 1rem;
    width: 1rem;
    margin: 0;
  }

}

@media (min-width: 768px) and (max-width: 1199px) {
  /* Small desktop auto-minimized sidebar (data-sidebar-style="mini"). */
  body[data-sidebar-style="mini"][data-layout="vertical"] .dlabnav .metismenu > li > a.has-arrow .menu-arrow {
    display: none;
  }

  body[data-sidebar-style="mini"][data-layout="vertical"] .dlabnav .metismenu > li > a.has-arrow {
    display: block !important;
    text-align: center;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  body[data-sidebar-style="mini"][data-layout="vertical"] .dlabnav .metismenu > li > a > i,
  body[data-sidebar-style="mini"][data-layout="vertical"] .dlabnav .metismenu > li > a > svg {
    margin-left: auto !important;
    margin-right: auto !important;
  }

  body[data-sidebar-style="mini"][data-layout="vertical"] .dlabnav .metismenu > li:hover > ul a {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    white-space: nowrap;
  }

  body[data-sidebar-style="mini"][data-layout="vertical"] .dlabnav .metismenu > li:hover > ul .nav-text {
    display: inline-block !important;
  }

  body[data-sidebar-style="mini"][data-layout="vertical"] .dlabnav .metismenu > li:hover > ul a i,
  body[data-sidebar-style="mini"][data-layout="vertical"] .dlabnav .metismenu > li:hover > ul a svg {
    flex: 0 0 1rem;
    width: 1rem;
    margin: 0;
  }
}

@media (max-width: 767px) {
  /* Mobile overlay/full menu: keep submenu indent compact. */
  body[data-layout="vertical"] .dlabnav .metismenu > li > ul a {
    padding-left: 2rem;
  }
}

/* Footer legal copy: centered and readable across all pages. */
.footer .copyright {
  text-align: center;
}

.footer .copyright p {
  margin-left: auto;
  margin-right: auto;
  max-width: 980px;
}

/* Keep desktop collapsed sidebar visible (icon rail) when toggled. */
@media (min-width: 768px) {
  body[data-layout="vertical"] #main-wrapper.menu-toggle .dlabnav {
    left: 21px !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
  }

  body[data-layout="vertical"] #main-wrapper.menu-toggle .dlabnav .dlabnav-scroll,
  body[data-layout="vertical"] #main-wrapper.menu-toggle .dlabnav .slimScrollDiv {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}

/* Sidebar should push content (expanded + collapsed states). */
body[data-sidebar-style="full"] .content-body,
body[data-sidebar-style="full"] .footer {
  margin-left: calc(var(--uli-sidebar-width) + var(--uli-sidebar-gap));
}

body[data-sidebar-style="mini"] .content-body,
body[data-sidebar-style="mini"] .footer,
body[data-sidebar-style="icon-hover"] .content-body,
body[data-sidebar-style="icon-hover"] .footer,
body[data-sidebar-style="full"] #main-wrapper.menu-toggle .footer {
  margin-left: calc(var(--uli-sidebar-mini-width) + var(--uli-sidebar-mini-gap));
}

@media (min-width: 992px) {
  body[data-sidebar-style="overlay"] .content-body,
  body[data-sidebar-style="overlay"] .footer {
    margin-left: calc(var(--uli-sidebar-width) + var(--uli-sidebar-gap));
  }
}

/* Keep collapsed full-sidebar layout aligned with theme defaults. */
body[data-sidebar-style="full"][data-layout="vertical"] #main-wrapper.menu-toggle .content-body {
  margin-left: 7.5rem !important;
}

/* Keep footer centered; base theme already handles footer padding offsets. */
.footer {
  padding-left: 0 !important;
}

body[data-sidebar-style="full"] .footer,
body[data-sidebar-style="mini"] .footer,
body[data-sidebar-style="icon-hover"] .footer,
body[data-sidebar-style="full"] #main-wrapper.menu-toggle .footer,
body[data-sidebar-style="overlay"] .footer {
  margin-left: 0 !important;
}

.content-body {
  min-height: calc(100vh - 70px);
}

.content-body .container-fluid {
  padding-top: 1.25rem;
  padding-left: 2rem;
  padding-right: 1.5rem;
}

@media (min-width: 1200px) {
  .content-body .container-fluid {
    padding-left: 2.5rem;
  }
}

.chart-wrapper {
  height: 260px;
}
.chart-wrapper canvas {
  width: 100% !important;
  height: 100% !important;
}

.nav-label {
  padding: 10px 18px 6px;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: #94a3b8;
}

.nav-header .brand-logo {
  padding-left: 1rem;
  padding-right: 1rem;
}

.nav-header .brand-logo .logo-abbr {
  max-height: 40px;
  width: auto;
}

.nav-header .brand-logo .brand-title h4 {
  font-weight: 700;
  font-size: 18px;
  margin: 0;
}

body[data-theme-version="light"] .nav-header .brand-logo .brand-title h4 {
  color: #111827 !important;
}

body[data-theme-version="dark"] .nav-header .brand-logo .brand-title h4 {
  color: #ffffff !important;
}

/* Keep icon + label spacing consistent on all buttons. */
.btn i[class^="fa"],
.btn i[class*=" fa"],
.btn i[class^="flaticon-"],
.btn i[class*=" flaticon-"],
.btn i.bi {
  margin-right: 0.35rem;
}
.btn i:only-child {
  margin-right: 0;
}

.dashboard-funding-check {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.dashboard-funding-check .form-check-input {
  margin: 0;
  width: 1.05rem;
  height: 1.05rem;
  border: 1px solid #6f7f9a;
  border-radius: 0.25rem;
  background-color: transparent;
  cursor: pointer;
}

.dashboard-funding-check .form-check-input:checked {
  border-color: var(--primary);
  background-color: var(--primary);
}

.dashboard-funding-check .form-check-label {
  margin: 0;
  color: #cbd5e1;
  font-size: 0.95rem;
  cursor: pointer;
}

[data-theme-version="light"] .dashboard-funding-check .form-check-label {
  color: #374151;
}

/* Prevent oversized empty cards on pages with collapsible sections. */
#entry-automation-page .card,
.manual-order-paste-card {
  height: auto !important;
}

/* Match select height/radius with themed text inputs. */
.form-select {
  height: 3.5rem;
  border-radius: 1rem;
  padding-top: 0.3125rem;
  padding-bottom: 0.3125rem;
}

.form-select.form-select-sm {
  height: 2.5rem;
}

.form-select.form-select-lg {
  height: 4.5rem;
}

/* Manual order exit management cards */
.sizing-mode-segmented {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  padding: 0.35rem;
  border: 1px solid #d7deed;
  border-radius: 0.95rem;
  background: #f8fbff;
}

.sizing-mode-option {
  margin: 0;
  cursor: pointer;
}

.sizing-mode-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.sizing-mode-option span {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.58rem 0.8rem;
  border-radius: 0.72rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #4b5563;
  transition: all 0.18s ease;
}

.sizing-mode-option input:checked + span {
  background: linear-gradient(135deg, #5bcfc5, #4da3ff);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(77, 163, 255, 0.26);
}

.sizing-card {
  border: 1px solid #d7deed;
  border-radius: 1rem;
  padding: 0.75rem 0.8rem 0.7rem;
  background: #ffffff;
}

.sizing-card .form-control {
  border: 1px solid #cfd8ea;
  border-radius: 0.9rem;
  height: 3rem;
  font-size: 1rem;
}

.sizing-derived-card {
  border: 1px solid #d7deed;
  border-radius: 1rem;
  background: #f9fbff;
  padding: 0.35rem 0.9rem;
}

.sizing-derived-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  flex-wrap: nowrap;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid #e0e8f7;
  white-space: nowrap;
}

.sizing-derived-row:last-child {
  border-bottom: 0;
}

.sizing-derived-label {
  color: #495a74;
  font-size: 0.9rem;
  font-weight: 500;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sizing-derived-value {
  color: #1f2d44;
  font-size: 0.96rem;
  font-weight: 700;
  white-space: nowrap;
}

[data-theme-version="dark"] .sizing-mode-segmented {
  border-color: #324565;
  background: rgba(15, 23, 42, 0.72);
}

[data-theme-version="dark"] .sizing-mode-option span {
  color: #b8c6de;
}

[data-theme-version="dark"] .sizing-mode-option input:checked + span {
  box-shadow: 0 10px 22px rgba(15, 38, 64, 0.5);
}

[data-theme-version="dark"] .sizing-card {
  border-color: #31405d;
  background: rgba(15, 23, 42, 0.72);
}

[data-theme-version="dark"] .sizing-card .form-control {
  border-color: #41547a;
  background: rgba(15, 23, 42, 0.9);
  color: #e5edf9;
}

[data-theme-version="dark"] .sizing-derived-card {
  border-color: #31405d;
  background: rgba(12, 22, 42, 0.62);
}

[data-theme-version="dark"] .sizing-derived-row {
  border-bottom-color: #2a3a58;
}

[data-theme-version="dark"] .sizing-derived-label {
  color: #9fb0cb;
}

[data-theme-version="dark"] .sizing-derived-value {
  color: #e6eefb;
}

#exit-mgmt-section .exit-mgmt-shell {
  border-color: #d7deed !important;
  background: #f9fbff;
}

#exit-mgmt-section .exit-mgmt-option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

#exit-mgmt-section .exit-mgmt-option-card {
  position: relative;
  display: block;
  min-height: 108px;
  padding: 0.875rem 0.875rem 0.875rem 2.95rem;
  border: 1px solid #d7deed;
  border-radius: 0.9rem;
  background: #ffffff;
  color: #1f2937;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

#exit-mgmt-section .exit-mgmt-option-card:hover {
  border-color: rgba(91, 207, 197, 0.8);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

#exit-mgmt-section .exit-mgmt-option-card.is-selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(91, 207, 197, 0.15);
}

#exit-mgmt-section .exit-mgmt-option-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

#exit-mgmt-section .exit-mgmt-option-check {
  position: absolute;
  top: 0.95rem;
  left: 0.85rem;
  width: 1.35rem;
  height: 1.35rem;
  border: 1px solid #9aa7be;
  border-radius: 0.38rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: transparent;
}

#exit-mgmt-section .exit-mgmt-option-check i {
  font-size: 0.72rem;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

#exit-mgmt-section .exit-mgmt-option-card.is-selected .exit-mgmt-option-check {
  border-color: var(--primary);
  background: var(--primary);
}

#exit-mgmt-section .exit-mgmt-option-card.is-selected .exit-mgmt-option-check i {
  opacity: 1;
  transform: scale(1);
}

/* Performance dashboard */
.dashboard-filter-switch {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44px;
}

.dashboard-filter-switch .dashboard-toggle-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.dashboard-filter-switch .dashboard-toggle-pill {
  position: relative;
  width: 3.7rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid rgba(118, 141, 170, 0.46);
  background: linear-gradient(180deg, rgba(229, 236, 248, 0.95) 0%, rgba(215, 226, 242, 0.95) 100%);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.33rem;
  transition: border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease, transform 0.18s ease;
  user-select: none;
}

.dashboard-filter-switch .dashboard-toggle-pill:hover {
  border-color: rgba(82, 161, 255, 0.65);
  transform: translateY(-1px);
}

.dashboard-filter-switch .dashboard-toggle-icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.58rem;
  line-height: 1;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.dashboard-filter-switch .dashboard-toggle-icon-off {
  left: 0.6rem;
  color: rgba(71, 85, 105, 0.75);
  opacity: 1;
}

.dashboard-filter-switch .dashboard-toggle-icon-on {
  right: 0.6rem;
  color: rgba(15, 23, 42, 0.55);
  opacity: 0.35;
}

.dashboard-filter-switch .dashboard-toggle-knob {
  width: 1.38rem;
  height: 1.38rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff 0%, #e2e8f0 100%);
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 4px 9px rgba(15, 23, 42, 0.16);
  transform: translateX(-0.82rem);
  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.dashboard-filter-switch .dashboard-toggle-input:focus-visible + .dashboard-toggle-pill {
  box-shadow: 0 0 0 0.2rem rgba(82, 161, 255, 0.24);
  border-color: rgba(82, 161, 255, 0.82);
}

.dashboard-filter-switch .dashboard-toggle-input:checked + .dashboard-toggle-pill {
  border-color: rgba(72, 181, 177, 0.95);
  background: linear-gradient(135deg, rgba(97, 206, 195, 0.85) 0%, rgba(86, 159, 255, 0.88) 100%);
  box-shadow: 0 8px 18px rgba(82, 161, 255, 0.28);
}

.dashboard-filter-switch .dashboard-toggle-input:checked + .dashboard-toggle-pill .dashboard-toggle-knob {
  transform: translateX(0.82rem);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 6px 13px rgba(15, 23, 42, 0.2);
}

.dashboard-filter-switch .dashboard-toggle-input:checked + .dashboard-toggle-pill .dashboard-toggle-icon-off {
  color: rgba(255, 255, 255, 0.45);
  opacity: 0.55;
}

.dashboard-filter-switch .dashboard-toggle-input:checked + .dashboard-toggle-pill .dashboard-toggle-icon-on {
  color: rgba(255, 255, 255, 0.95);
  opacity: 1;
}

#dashboard-filters #filter-accounts[multiple] {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  opacity: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  pointer-events: none;
  border: 0;
}

#dashboard-filters .dashboard-account-filter {
  position: relative;
}

#dashboard-filters .dashboard-account-selector.is-open {
  z-index: 48;
}

#dashboard-filters .dashboard-account-trigger {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(15, 23, 42, 0.16);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  padding: 0.5rem 0.7rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  text-align: left;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

#dashboard-filters .dashboard-account-trigger:hover {
  border-color: rgba(82, 161, 255, 0.55);
  transform: translateY(-1px);
}

#dashboard-filters .dashboard-account-selector.is-open .dashboard-account-trigger,
#dashboard-filters .dashboard-account-trigger:focus-visible {
  border-color: rgba(82, 161, 255, 0.8);
  box-shadow: 0 0 0 0.2rem rgba(82, 161, 255, 0.2);
  outline: 0;
}

#dashboard-filters .dashboard-account-trigger-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

#dashboard-filters .dashboard-account-summary {
  color: #0f172a;
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#dashboard-filters .dashboard-account-meta {
  color: #64748b;
  font-size: 0.74rem;
  line-height: 1.2;
  margin-top: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#dashboard-filters .dashboard-account-trigger-icon {
  color: #64748b;
  font-size: 0.76rem;
  transition: transform 0.2s ease;
}

#dashboard-filters .dashboard-account-selector.is-open .dashboard-account-trigger-icon {
  transform: rotate(180deg);
}

#dashboard-filters .dashboard-account-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.16);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.15);
  z-index: 40;
  overflow: hidden;
}

#dashboard-filters .dashboard-account-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  color: #475569;
  font-size: 0.75rem;
  font-weight: 600;
}

#dashboard-filters .dashboard-account-menu-close {
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: #ffffff;
  color: #334155;
  border-radius: 999px;
  padding: 0.16rem 0.55rem;
  font-size: 0.7rem;
  font-weight: 600;
}

#dashboard-filters .dashboard-account-options {
  max-height: 220px;
  overflow-y: auto;
  padding: 0.35rem;
}

#dashboard-filters .dashboard-account-option {
  width: 100%;
  border: 0;
  background: transparent;
  border-radius: 10px;
  padding: 0.5rem 0.45rem;
  display: grid;
  grid-template-columns: 1.1rem minmax(0, 1fr);
  align-items: center;
  gap: 0.55rem;
  text-align: left;
  transition: background-color 0.15s ease;
}

#dashboard-filters .dashboard-account-option:hover {
  background: rgba(82, 161, 255, 0.12);
}

#dashboard-filters .dashboard-account-option-indicator {
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 0.36rem;
  border: 1px solid rgba(118, 141, 170, 0.5);
  color: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
}

#dashboard-filters .dashboard-account-option-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

#dashboard-filters .dashboard-account-option-label {
  color: #0f172a;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#dashboard-filters .dashboard-account-option-hint {
  color: #64748b;
  font-size: 0.7rem;
  line-height: 1.2;
  margin-top: 0.15rem;
}

#dashboard-filters .dashboard-account-option.is-selected {
  background: rgba(82, 161, 255, 0.15);
}

#dashboard-filters .dashboard-account-option.is-selected .dashboard-account-option-indicator {
  border-color: rgba(82, 161, 255, 0.92);
  background: rgba(82, 161, 255, 0.95);
  color: #ffffff;
}

[data-theme-version="dark"] #dashboard-filters .dashboard-account-trigger {
  border-color: rgba(120, 145, 175, 0.38);
  background: linear-gradient(180deg, #0f172a 0%, #111b30 100%);
}

[data-theme-version="dark"] #dashboard-filters .dashboard-account-summary {
  color: #dbe3f0;
}

[data-theme-version="dark"] #dashboard-filters .dashboard-account-meta,
[data-theme-version="dark"] #dashboard-filters .dashboard-account-trigger-icon {
  color: #94a9c8;
}

[data-theme-version="dark"] #dashboard-filters .dashboard-account-menu {
  border-color: rgba(120, 145, 175, 0.38);
  background: #0f172a;
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.45);
}

[data-theme-version="dark"] #dashboard-filters .dashboard-account-menu-head {
  border-bottom-color: rgba(120, 145, 175, 0.24);
  color: #a8bad4;
}

[data-theme-version="dark"] #dashboard-filters .dashboard-account-menu-close {
  border-color: rgba(120, 145, 175, 0.38);
  background: #13203a;
  color: #dbe3f0;
}

[data-theme-version="dark"] #dashboard-filters .dashboard-account-option:hover {
  background: rgba(91, 172, 255, 0.2);
}

[data-theme-version="dark"] #dashboard-filters .dashboard-account-option-label {
  color: #dbe3f0;
}

[data-theme-version="dark"] #dashboard-filters .dashboard-account-option-hint {
  color: #94a9c8;
}

[data-theme-version="dark"] #dashboard-filters .dashboard-account-option-indicator {
  border-color: rgba(120, 145, 175, 0.52);
}

@media (min-width: 1200px) {
  #dashboard-filters .dashboard-account-col {
    padding-right: 1.2rem;
  }

  #dashboard-filters .dashboard-funding-col {
    padding-left: 1rem;
  }
}

[data-theme-version="dark"] .dashboard-filter-switch .dashboard-toggle-pill {
  border-color: rgba(120, 145, 175, 0.55);
  background: linear-gradient(180deg, rgba(25, 36, 57, 0.95) 0%, rgba(16, 27, 45, 0.95) 100%);
}

[data-theme-version="dark"] .dashboard-filter-switch .dashboard-toggle-icon-off {
  color: rgba(148, 169, 200, 0.82);
}

[data-theme-version="dark"] .dashboard-filter-switch .dashboard-toggle-icon-on {
  color: rgba(148, 169, 200, 0.6);
}

[data-theme-version="dark"] .dashboard-filter-switch .dashboard-toggle-knob {
  background: linear-gradient(180deg, #dbe3f0 0%, #a8bad4 100%);
  border-color: rgba(120, 145, 175, 0.58);
}

[data-theme-version="dark"] .dashboard-filter-switch .dashboard-toggle-input:checked + .dashboard-toggle-pill {
  border-color: rgba(94, 188, 255, 0.88);
  background: linear-gradient(135deg, rgba(75, 205, 192, 0.78) 0%, rgba(87, 141, 255, 0.88) 100%);
  box-shadow: 0 10px 22px rgba(59, 130, 246, 0.38);
}

[data-theme-version="dark"] .dashboard-filter-switch .dashboard-toggle-input:checked + .dashboard-toggle-pill .dashboard-toggle-knob {
  border-color: rgba(219, 227, 240, 0.65);
}

#dashboard-filters-card .input-group-text {
  color: var(--bs-secondary-color);
  background: var(--bs-body-bg);
  border-right: 0;
}

#dashboard-filters-card #filter-date-range {
  border-left: 0;
  cursor: pointer;
  background: var(--bs-body-bg, #ffffff);
  color: var(--bs-body-color, #1e293b);
  opacity: 1;
  pointer-events: auto !important;
}

#dashboard-filters-card #filter-date-range.form-control[readonly] {
  background: var(--bs-body-bg, #ffffff);
  color: var(--bs-body-color, #1e293b);
  opacity: 1;
}

#dashboard-filters-card #filter-date-range:focus {
  box-shadow: none;
}

#dashboard-filters-card .input-group:focus-within .input-group-text {
  border-color: var(--primary);
}

#dashboard-filters-card .input-group-text {
  pointer-events: auto !important;
}

#dashboard-filters .dashboard-filter-actions .btn {
  min-height: 44px;
}

.daterangepicker {
  z-index: 1100;
}

@media (min-width: 1200px) {
  #dashboard-filters .dashboard-filter-actions .btn {
    width: auto !important;
  }
}

.perf-content-dim {
  opacity: 0.45;
  pointer-events: none;
}

#perf-kpi-grid .perf-kpi-card {
  border-radius: 1.6rem;
  color: #ffffff;
  border: 0 !important;
  box-shadow: 0 14px 28px rgba(19, 34, 68, 0.16);
}

#perf-kpi-grid .perf-kpi-card .card-body {
  display: flex;
  align-items: center;
  padding: 1.24rem 1.35rem 1.08rem;
}

#perf-kpi-grid .perf-kpi-card .card-body > .d-flex {
  width: 100%;
}

#perf-kpi-grid .perf-kpi-icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.34);
  color: #f4f8ff;
  font-size: 1.26rem;
}

body[data-theme-version="dark"] #perf-kpi-grid .perf-kpi-card.bg-warning,
body[data-theme="dark"] #perf-kpi-grid .perf-kpi-card.bg-warning,
html[data-theme-version="dark"] #perf-kpi-grid .perf-kpi-card.bg-warning,
html[data-theme="dark"] #perf-kpi-grid .perf-kpi-card.bg-warning {
  background-color: #5b3c1f !important;
  background-image: none !important;
}

body[data-theme-version="dark"] #perf-kpi-grid .perf-kpi-card.bg-success,
body[data-theme="dark"] #perf-kpi-grid .perf-kpi-card.bg-success,
html[data-theme-version="dark"] #perf-kpi-grid .perf-kpi-card.bg-success,
html[data-theme="dark"] #perf-kpi-grid .perf-kpi-card.bg-success {
  background-color: #2a6729 !important;
  background-image: none !important;
}

body[data-theme-version="dark"] #perf-kpi-grid .perf-kpi-card.bg-info,
body[data-theme="dark"] #perf-kpi-grid .perf-kpi-card.bg-info,
html[data-theme-version="dark"] #perf-kpi-grid .perf-kpi-card.bg-info,
html[data-theme="dark"] #perf-kpi-grid .perf-kpi-card.bg-info {
  background-color: #4c276a !important;
  background-image: none !important;
}

body[data-theme-version="dark"] #perf-kpi-grid .perf-kpi-card.bg-secondary,
body[data-theme="dark"] #perf-kpi-grid .perf-kpi-card.bg-secondary,
html[data-theme-version="dark"] #perf-kpi-grid .perf-kpi-card.bg-secondary,
html[data-theme="dark"] #perf-kpi-grid .perf-kpi-card.bg-secondary {
  background-color: #1c3e52 !important;
  background-image: none !important;
}

[data-theme-version="dark"] #dashboard-filters-card .input-group-text,
[data-theme-version="dark"] #dashboard-filters-card #filter-date-range {
  background: #0f172a !important;
  color: #dbe3f0 !important;
  border-color: rgba(120, 145, 175, 0.38) !important;
}

[data-theme-version="dark"] #dashboard-filters-card #filter-date-range.form-control[readonly] {
  background: #0f172a !important;
  color: #dbe3f0 !important;
  border-color: rgba(120, 145, 175, 0.38) !important;
  opacity: 1;
}

[data-theme-version="dark"] #dashboard-filters-card #filter-date-range::placeholder {
  color: rgba(219, 227, 240, 0.62);
}

[data-theme-version="dark"] #dashboard-filters-card .input-group-text i {
  color: rgba(219, 227, 240, 0.78);
}

.dashboard-range-fallback {
  position: absolute;
  z-index: 1200;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.16);
  border-radius: 12px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.2);
  padding: 10px;
}

.dashboard-range-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.dashboard-range-presets button,
.dashboard-range-actions button {
  border: 1px solid rgba(15, 23, 42, 0.16);
  background: #ffffff;
  color: #334155;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
}

.dashboard-range-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.dashboard-range-fields label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: #475569;
}

.dashboard-range-fields input {
  border: 1px solid rgba(15, 23, 42, 0.16);
  border-radius: 8px;
  height: 34px;
  padding: 0 8px;
}

.dashboard-range-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

[data-theme-version="dark"] .dashboard-range-fallback {
  background: #0f172a;
  border-color: rgba(120, 145, 175, 0.38);
  box-shadow: 0 12px 26px rgba(2, 8, 23, 0.5);
}

[data-theme-version="dark"] .dashboard-range-presets button,
[data-theme-version="dark"] .dashboard-range-actions button,
[data-theme-version="dark"] .dashboard-range-fields input {
  background: #131f36;
  color: #dbe3f0;
  border-color: rgba(120, 145, 175, 0.38);
}

[data-theme-version="dark"] .dashboard-range-fields label {
  color: #b9c8df;
}

.datepicker table tr td.day,
.datepicker table tr td.today,
.datepicker table tr td.range,
.datepicker table tr td.active {
  cursor: pointer !important;
}

#perf-kpi-grid .perf-kpi-card .perf-kpi-value {
  font-size: clamp(2.15rem, 1.65vw, 2.85rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.18rem;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#perf-kpi-grid .perf-kpi-card .perf-kpi-label {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.08rem;
  line-height: 1.25;
  max-width: 100%;
}

#perf-kpi-grid .perf-kpi-card .perf-kpi-meta {
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.74);
  margin-bottom: 0.14rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#perf-kpi-grid .perf-kpi-card .perf-kpi-delta {
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.perf-kpi-delta.is-positive {
  color: #d8ffe7;
}

.perf-kpi-delta.is-negative {
  color: #ffdbe3;
}

.perf-kpi-delta.is-neutral {
  color: rgba(255, 255, 255, 0.88);
}

@media (max-width: 1600px) {
  #perf-kpi-grid .perf-kpi-card .card-body {
    padding: 1.16rem 1.24rem 1rem;
  }

  #perf-kpi-grid .perf-kpi-card .perf-kpi-value {
    font-size: clamp(1.9rem, 1.45vw, 2.45rem);
  }

  #perf-kpi-grid .perf-kpi-card .perf-kpi-label {
    font-size: 0.94rem;
  }

  #perf-kpi-grid .perf-kpi-card .perf-kpi-meta {
    font-size: 0.78rem;
  }

  #perf-kpi-grid .perf-kpi-card .perf-kpi-delta {
    font-size: 0.72rem;
  }
}

@media (max-width: 991.98px) {
  #perf-kpi-grid .perf-kpi-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    font-size: 1.18rem;
  }

  #perf-kpi-grid .perf-kpi-card .card-body {
    padding: 1.08rem 1.08rem 0.94rem;
  }

  #perf-kpi-grid .perf-kpi-card .perf-kpi-value {
    font-size: clamp(1.85rem, 4vw, 2.3rem);
  }

  #perf-kpi-grid .perf-kpi-card .perf-kpi-label {
    font-size: 0.92rem;
  }

  #perf-kpi-grid .perf-kpi-card .perf-kpi-meta {
    font-size: 0.76rem;
  }

  #perf-kpi-grid .perf-kpi-card .perf-kpi-delta {
    font-size: 0.7rem;
  }
}

@media (max-width: 575.98px) {
  #perf-kpi-grid .perf-kpi-card .card-body {
    padding: 0.98rem 0.96rem 0.84rem;
  }

  #perf-kpi-grid .perf-kpi-card .perf-kpi-value {
    font-size: clamp(1.7rem, 8vw, 2rem);
  }

  #perf-kpi-grid .perf-kpi-card .perf-kpi-label {
    font-size: 0.88rem;
  }

  #perf-kpi-grid .perf-kpi-card .perf-kpi-meta,
  #perf-kpi-grid .perf-kpi-card .perf-kpi-delta {
    font-size: 0.68rem;
  }
}

body[data-theme-version="light"] #performance-dashboard-content .text-success,
body[data-theme-version="light"] #perf-kpi-grid .text-success,
body[data-theme-version="light"] #perf-kpi-grid .perf-kpi-delta.text-success {
  color: #2f9e4f !important;
}

.perf-chart-tall {
  min-height: 360px;
}

.perf-chart-short {
  min-height: 220px;
}

.perf-chart-medium {
  min-height: 260px;
}

/* Dompet sets global card height to calc(100% - 30px); keep dashboard cards content-driven. */
#performance-dashboard-content .card {
  height: auto !important;
}

#performance-dashboard-content .card.h-100 {
  height: 100% !important;
}

/* Prevent Apex chart layers from bleeding into adjacent cards on some breakpoints. */
.dashboard-chart-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.dashboard-chart-card .chart-wrapper,
.dashboard-chart-card .chart-wrapper > div {
  position: relative;
  z-index: 1;
}

/* Remove Apex dark-mode default gray chart surface and grid band fills. */
html[data-theme="dark"] .apexcharts-canvas svg,
html[data-theme-version="dark"] .apexcharts-canvas svg,
body[data-theme-version="dark"] .apexcharts-canvas svg {
  background: transparent !important;
}

html[data-theme="dark"] .apexcharts-grid-row,
html[data-theme-version="dark"] .apexcharts-grid-row,
body[data-theme-version="dark"] .apexcharts-grid-row,
html[data-theme="dark"] .apexcharts-grid-column,
html[data-theme-version="dark"] .apexcharts-grid-column,
body[data-theme-version="dark"] .apexcharts-grid-column {
  fill: transparent !important;
  fill-opacity: 0 !important;
}

html[data-theme="dark"] .apexcharts-tooltip.apexcharts-theme-dark,
html[data-theme-version="dark"] .apexcharts-tooltip.apexcharts-theme-dark,
body[data-theme-version="dark"] .apexcharts-tooltip.apexcharts-theme-dark,
html[data-theme="dark"] .apexcharts-xaxistooltip,
html[data-theme-version="dark"] .apexcharts-xaxistooltip,
body[data-theme-version="dark"] .apexcharts-xaxistooltip {
  background: #0f172a !important;
  border: 1px solid #334155 !important;
  color: #e2e8f0 !important;
  box-shadow: 0 18px 36px rgba(2, 6, 23, 0.35) !important;
}

html[data-theme="dark"] .apexcharts-tooltip.apexcharts-theme-dark .apexcharts-tooltip-title,
html[data-theme-version="dark"] .apexcharts-tooltip.apexcharts-theme-dark .apexcharts-tooltip-title,
body[data-theme-version="dark"] .apexcharts-tooltip.apexcharts-theme-dark .apexcharts-tooltip-title {
  background: rgba(15, 23, 42, 0.96) !important;
  border-bottom: 1px solid #334155 !important;
  color: #e2e8f0 !important;
}

html[data-theme="dark"] .apexcharts-tooltip.apexcharts-theme-dark .apexcharts-tooltip-text,
html[data-theme="dark"] .apexcharts-tooltip.apexcharts-theme-dark .apexcharts-tooltip-text-y-label,
html[data-theme="dark"] .apexcharts-tooltip.apexcharts-theme-dark .apexcharts-tooltip-text-y-value,
html[data-theme="dark"] .apexcharts-tooltip.apexcharts-theme-dark .apexcharts-tooltip-text-z-label,
html[data-theme="dark"] .apexcharts-tooltip.apexcharts-theme-dark .apexcharts-tooltip-text-z-value,
html[data-theme="dark"] .apexcharts-xaxistooltip-text,
html[data-theme-version="dark"] .apexcharts-tooltip.apexcharts-theme-dark .apexcharts-tooltip-text,
html[data-theme-version="dark"] .apexcharts-tooltip.apexcharts-theme-dark .apexcharts-tooltip-text-y-label,
html[data-theme-version="dark"] .apexcharts-tooltip.apexcharts-theme-dark .apexcharts-tooltip-text-y-value,
html[data-theme-version="dark"] .apexcharts-tooltip.apexcharts-theme-dark .apexcharts-tooltip-text-z-label,
html[data-theme-version="dark"] .apexcharts-tooltip.apexcharts-theme-dark .apexcharts-tooltip-text-z-value,
html[data-theme-version="dark"] .apexcharts-xaxistooltip-text,
body[data-theme-version="dark"] .apexcharts-tooltip.apexcharts-theme-dark .apexcharts-tooltip-text,
body[data-theme-version="dark"] .apexcharts-tooltip.apexcharts-theme-dark .apexcharts-tooltip-text-y-label,
body[data-theme-version="dark"] .apexcharts-tooltip.apexcharts-theme-dark .apexcharts-tooltip-text-y-value,
body[data-theme-version="dark"] .apexcharts-tooltip.apexcharts-theme-dark .apexcharts-tooltip-text-z-label,
body[data-theme-version="dark"] .apexcharts-tooltip.apexcharts-theme-dark .apexcharts-tooltip-text-z-value,
body[data-theme-version="dark"] .apexcharts-xaxistooltip-text {
  color: #e2e8f0 !important;
  fill: #e2e8f0 !important;
}

html[data-theme="dark"] .apexcharts-legend-text,
html[data-theme-version="dark"] .apexcharts-legend-text,
body[data-theme-version="dark"] .apexcharts-legend-text {
  color: #e2e8f0 !important;
  fill: #e2e8f0 !important;
}

.perf-mini-bar {
  width: 100%;
  height: 5px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(148, 163, 184, 0.25);
  margin-top: 0.3rem;
}

.perf-mini-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
}

.perf-mini-bar-pos {
  background: rgba(34, 197, 94, 0.9);
}

.perf-mini-bar-neg {
  background: rgba(239, 68, 68, 0.9);
}

.perf-row-positive td:first-child {
  border-left: 3px solid rgba(34, 197, 94, 0.62);
}

.perf-row-negative td:first-child {
  border-left: 3px solid rgba(239, 68, 68, 0.62);
}

.admin-notif-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 104px;
}

.admin-notif-actions .btn {
  width: 100%;
}

.perf-mini-stat {
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 0.8rem;
  padding: 0.6rem 0.7rem;
}

.skeleton-line {
  height: 11px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.18), rgba(148, 163, 184, 0.36), rgba(148, 163, 184, 0.18));
  background-size: 200% 100%;
  animation: perfShimmer 1.4s infinite linear;
}

.skeleton-block {
  width: 100%;
  min-height: 260px;
  border-radius: 1rem;
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.16), rgba(148, 163, 184, 0.34), rgba(148, 163, 184, 0.16));
  background-size: 220% 100%;
  animation: perfShimmer 1.4s infinite linear;
}

.skeleton-block-sm {
  min-height: 190px;
}

@keyframes perfShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@media (max-width: 767px) {
  .perf-chart-tall {
    min-height: 300px;
  }
}

#exit-mgmt-section .exit-mgmt-option-content {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

#exit-mgmt-section .exit-mgmt-option-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
  font-weight: 600;
  line-height: 1.3;
}

#exit-mgmt-section .exit-mgmt-option-subtitle {
  color: #64748b;
  font-size: 0.82rem;
  line-height: 1.35;
}

[data-theme-version="dark"] #exit-mgmt-section .exit-mgmt-shell {
  border-color: #2d3a55 !important;
  background: rgba(12, 22, 42, 0.55);
}

[data-theme-version="dark"] #exit-mgmt-section .exit-mgmt-option-card {
  border-color: #2f3f60;
  background: rgba(15, 23, 42, 0.66);
  color: #e2e8f0;
}

[data-theme-version="dark"] #exit-mgmt-section .exit-mgmt-option-card:hover {
  border-color: rgba(91, 207, 197, 0.9);
  box-shadow: 0 8px 18px rgba(2, 6, 23, 0.45);
}

[data-theme-version="dark"] #exit-mgmt-section .exit-mgmt-option-check {
  border-color: #71809b;
}

[data-theme-version="dark"] #exit-mgmt-section .exit-mgmt-option-subtitle {
  color: #93a4c0;
}

@media (max-width: 767.98px) {
  #exit-mgmt-section .exit-mgmt-option-grid {
    grid-template-columns: 1fr;
  }
}

/* Auth page polish */
.auth-brand-logo {
  width: auto;
  max-height: 44px;
}

.auth-side-logo {
  width: auto;
  max-height: 48px;
}

.auth-side-copy {
  color: #334155;
  line-height: 1.45;
}

.auth-side-illustration {
  max-height: 420px;
}

.auth-form .form-check-input {
  margin-top: 0;
}

.auth-form .form-control.is-valid {
  border-right: 1px solid #68e365 !important;
}

.auth-form .form-control.is-invalid {
  border-right: 1px solid #f72b50 !important;
}

.auth-form .auth-password-input {
  padding-right: 2.9rem;
}

.auth-form .auth-password-input.is-valid,
.auth-form .auth-password-input.is-invalid {
  padding-right: 4.9rem !important;
  background-position: right 2.35rem center !important;
}

.auth-form .auth-password-wrap {
  position: relative;
}

.auth-form .auth-password-toggle,
.auth-form .auth-password-toggle.btn-link {
  position: absolute;
  right: 0.55rem !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 3;
  width: 2rem;
  height: 2rem;
  padding: 0;
  margin: 0;
  border: 0 !important;
  background: transparent !important;
  color: #6b7280;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: none !important;
}

.auth-form .auth-password-toggle i {
  line-height: 1;
  pointer-events: none;
}

.auth-form .auth-password-toggle:hover,
.auth-form .auth-password-toggle:focus,
.auth-form .auth-password-toggle:active {
  color: #4b5563;
  background: transparent !important;
  box-shadow: none !important;
}

.auth-form .auth-feedback {
  white-space: normal;
  font-size: 0.8rem;
}

.auth-password-checklist {
  list-style: none;
  display: grid;
  gap: 0.3rem;
  margin: 0;
}

.auth-password-checklist li {
  display: flex;
  align-items: center;
  gap: 0.68rem;
  color: #6b7280;
  font-size: 0.82rem;
  line-height: 1.25;
}

.auth-password-checklist li i {
  width: 0.95rem;
  min-width: 0.95rem;
  text-align: center;
  font-size: 0.72rem;
  color: #9aa5b1;
}

.auth-password-checklist li.is-valid {
  color: #4b5563;
}

.auth-password-checklist li.is-valid i {
  color: #22c55e !important;
}

.auth-social-btn {
  width: 42px;
  height: 42px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.auth-social-btn i {
  margin-right: 0 !important;
}

.auth-social-stack {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.auth-social-btn-wide {
  width: 100%;
  height: 46px;
  border-radius: 0.65rem;
  justify-content: flex-start;
  padding: 0 0.95rem;
  font-weight: 600;
  font-size: 0.92rem;
}

.auth-social-btn-wide i {
  width: 1.25rem;
  text-align: center;
  margin-right: 0.6rem !important;
}

.authincation {
  background: radial-gradient(circle at top right, #e7f1ff 0%, #f6f9ff 45%, #f3f7ff 100%);
}

.authincation-bg {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.2), rgba(229, 238, 255, 0.32));
}

.auth-form {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.auth-divider-label {
  background: #ffffff;
}

.auth-divider-line {
  height: 1px;
  background: rgba(15, 23, 42, 0.12);
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
}

[data-theme-version="dark"] .authincation {
  background: radial-gradient(circle at top right, #202738 0%, #171622 50%, #101018 100%);
}

[data-theme-version="dark"] .authincation-bg {
  background: linear-gradient(145deg, rgba(33, 33, 48, 0.48), rgba(14, 14, 22, 0.64));
}

[data-theme-version="dark"] .auth-form {
  background: rgba(23, 22, 34, 0.92);
  border-color: #2e2e42;
  box-shadow: none;
}

[data-theme-version="dark"] .auth-side-copy {
  color: #e2e8f0;
}

[data-theme-version="dark"] .auth-form .auth-password-toggle {
  color: #9ca3af;
}

[data-theme-version="dark"] .auth-form .auth-password-toggle:hover,
[data-theme-version="dark"] .auth-form .auth-password-toggle:focus,
[data-theme-version="dark"] .auth-form .auth-password-toggle:active {
  color: #d1d5db;
}

[data-theme-version="dark"] .auth-password-checklist li {
  color: #9ca3af;
}

[data-theme-version="dark"] .auth-password-checklist li i {
  color: #6b7280;
}

[data-theme-version="dark"] .auth-password-checklist li.is-valid,
[data-theme-version="dark"] .auth-password-checklist li.is-valid i {
  color: #22c55e !important;
}

[data-theme-version="dark"] .auth-divider-label {
  background: #171622;
}

[data-theme-version="dark"] .auth-divider-line {
  background: rgba(255, 255, 255, 0.12);
}

[data-theme-version="dark"] .auth-social-btn.btn-outline-secondary {
  border-color: #3f3f57;
  color: #d8d8e6;
  background: #212130;
}

[data-theme-version="dark"] .auth-social-btn.btn-outline-secondary:hover {
  border-color: #5c5c7a;
  color: #ffffff;
  background: #2a2a3d;
}

@media (prefers-color-scheme: dark) {
  body.vh-100 .authincation {
    background: radial-gradient(circle at top right, #202738 0%, #171622 50%, #101018 100%);
  }

  body.vh-100 .authincation-bg {
    background: linear-gradient(145deg, rgba(33, 33, 48, 0.48), rgba(14, 14, 22, 0.64));
  }

  body.vh-100 .auth-form {
    background: rgba(23, 22, 34, 0.92);
    border-color: #2e2e42;
    box-shadow: none;
  }

  body.vh-100 .auth-side-copy {
    color: #e2e8f0;
  }

  body.vh-100 .auth-password-checklist li {
    color: #9ca3af;
  }

  body.vh-100 .auth-password-checklist li i {
    color: #6b7280;
  }

  body.vh-100 .auth-password-checklist li.is-valid,
  body.vh-100 .auth-password-checklist li.is-valid i {
    color: #22c55e !important;
  }

  body.vh-100 .auth-divider-label {
    background: #171622;
  }

  body.vh-100 .auth-divider-line {
    background: rgba(255, 255, 255, 0.12);
  }

  body.vh-100 .auth-social-btn.btn-outline-secondary {
    border-color: #3f3f57;
    color: #d8d8e6;
    background: #212130;
  }

  body.vh-100 .auth-social-btn.btn-outline-secondary:hover {
    border-color: #5c5c7a;
    color: #ffffff;
    background: #2a2a3d;
  }

  body.vh-100 .logo-light {
    display: none !important;
  }

  body.vh-100 .logo-dark {
    display: inline-block !important;
  }
}

@media (max-width: 576px) {
  .auth-form .auth-feedback {
    font-size: 0.76rem;
  }

  .auth-password-checklist li {
    font-size: 0.78rem;
  }
}

/* Top-right logged user trigger (blank profile icon, stable colors). */
.header .header-right .user-menu-trigger {
  border-radius: 0.75rem;
  border: 1px solid #d7dde8;
  background: #f3f4f6;
  color: #1f2937;
  font-weight: 600;
  padding: 0.4rem 0.55rem 0.4rem 0.7rem;
}

.header .header-right .user-menu-trigger:hover,
.header .header-right .user-menu-trigger:focus {
  background: #e9edf4;
  color: #111827;
}

.header .header-right .user-menu-trigger .user-menu-name {
  line-height: 1;
}

.header .header-right .user-menu-trigger .user-menu-avatar {
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #c9d2e3;
  color: #6b7280;
  background: #ffffff;
}

.header .header-right .user-menu-trigger--mobile-icon {
  width: 40px;
  height: 40px;
  padding: 0 !important;
  border-radius: 12px;
  justify-content: center;
}

.header .header-right .user-menu-trigger--mobile-icon .user-menu-avatar {
  margin: 0;
}

body[data-theme-version="dark"] .header .header-right .user-menu-trigger {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

body[data-theme-version="dark"] .header .header-right .user-menu-trigger:hover,
body[data-theme-version="dark"] .header .header-right .user-menu-trigger:focus {
  background: rgba(255, 255, 255, 0.24);
  color: #ffffff;
}

body[data-theme-version="dark"] .header .header-right .user-menu-trigger .user-menu-avatar {
  border-color: rgba(255, 255, 255, 0.32);
  color: #e2e8f0;
  background: rgba(2, 6, 23, 0.38);
}

.header .header-right .user-pill .uli-user-menu {
  width: min(320px, 92vw);
  padding: 0.38rem;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.34);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 249, 255, 0.97) 100%);
  box-shadow: 0 20px 42px rgba(15, 23, 42, 0.2);
  backdrop-filter: blur(14px);
}

.header .header-right .user-pill .uli-user-menu .uli-user-menu-head {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.7rem 0.78rem 0.62rem;
  margin: 0 0.2rem 0.28rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
}

.header .header-right .user-pill .uli-user-menu .uli-user-menu-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
}

.header .header-right .user-pill .uli-user-menu .uli-user-menu-subtitle {
  font-size: 0.74rem;
  color: #64748b;
  line-height: 1.3;
}

.header .header-right .user-pill .uli-user-menu .uli-user-menu-item {
  display: flex;
  align-items: center;
  gap: 0.74rem;
  border-radius: 11px;
  margin: 0.18rem 0.2rem;
  padding: 0.72rem 0.82rem;
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.32;
  color: #1f2937;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
}

.header .header-right .user-pill .uli-user-menu .uli-user-menu-item i {
  width: 1rem;
  text-align: center;
  color: #2563eb;
  opacity: 0.9;
}

.header .header-right .user-pill .uli-user-menu .uli-user-menu-item:hover,
.header .header-right .user-pill .uli-user-menu .uli-user-menu-item:focus {
  color: #0f172a;
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.14);
}

.header .header-right .user-pill .uli-user-menu .uli-user-menu-item.is-active {
  color: #042a39;
  background: linear-gradient(130deg, #a3f7ff, #6ce4d6 58%, #47d2c2);
  box-shadow: 0 8px 18px rgba(53, 171, 185, 0.26);
}

.header .header-right .user-pill .uli-user-menu .uli-user-menu-item.is-active i {
  color: rgba(6, 61, 77, 0.9);
}

.header .header-right .user-pill .uli-user-menu .uli-user-menu-item-copy {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
}

.header .header-right .user-pill .uli-user-menu .uli-user-menu-item-title {
  line-height: 1.15;
  font-weight: 400;
}

.header .header-right .user-pill .uli-user-menu .uli-user-menu-item-meta {
  margin-top: 0.16rem;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.25;
  color: #64748b;
}

.header .header-right .user-pill .uli-user-menu .uli-user-menu-item-state {
  flex: 0 0 auto;
  margin-left: 0.6rem;
  border-radius: 999px;
  padding: 0.26rem 0.58rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0f4f8f;
  background: rgba(73, 136, 231, 0.14);
}

.header .header-right .user-pill .uli-user-menu .uli-user-menu-control {
  margin: 0.18rem 0.2rem 0.12rem;
  padding: 0.68rem 0.74rem 0.72rem;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(255, 255, 255, 0.58);
}

.header .header-right .user-pill .uli-user-menu .uli-user-menu-control-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  margin-bottom: 0.62rem;
}

.header .header-right .user-pill .uli-user-menu .uli-user-menu-control-title {
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
  font-size: 0.88rem;
  font-weight: 400;
  color: #1f2937;
  line-height: 1.15;
}

.header .header-right .user-pill .uli-user-menu .uli-user-menu-control-title i {
  width: 1rem;
  text-align: center;
  color: #2563eb;
  opacity: 0.9;
}

.header .header-right .user-pill .uli-user-menu .uli-user-menu-control-current {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #0f4f8f;
}

.header .header-right .user-pill .uli-user-menu .uli-user-menu-control .uli-lang-toggle-shell--menu {
  display: flex;
  width: 100%;
  justify-content: space-between;
  height: 36px;
  padding: 2px;
  border-radius: 11px;
  box-shadow: none;
}

.header .header-right .user-pill .uli-user-menu .uli-user-menu-control .uli-lang-toggle-shell--menu .uli-lang-toggle-btn {
  flex: 1 1 0;
  min-width: 0;
  height: 30px;
  padding: 0 0.45rem;
}

.header .header-right .user-pill .uli-user-menu .uli-user-menu-control.is-loading .uli-lang-toggle-btn {
  opacity: 0.72;
  pointer-events: none;
}

.header .header-right .user-pill .uli-user-menu .uli-user-menu-divider {
  margin: 0.38rem 0.5rem 0.24rem;
  border-top-color: rgba(148, 163, 184, 0.3);
}

.header .header-right .user-pill .uli-user-menu .uli-user-menu-item--signout {
  color: #b42318;
}

.header .header-right .user-pill .uli-user-menu .uli-user-menu-item--signout i {
  color: #dc2626;
}

body[data-theme-version="dark"] .header .header-right .user-pill .uli-user-menu {
  border-color: rgba(124, 151, 186, 0.44);
  background: linear-gradient(180deg, rgba(17, 28, 48, 0.97) 0%, rgba(12, 22, 39, 0.97) 100%);
  box-shadow: 0 24px 50px rgba(2, 6, 23, 0.58);
}

body[data-theme-version="dark"] .header .header-right .user-pill .uli-user-menu .uli-user-menu-head {
  border-bottom-color: rgba(124, 151, 186, 0.32);
}

body[data-theme-version="dark"] .header .header-right .user-pill .uli-user-menu .uli-user-menu-title {
  color: #e5edf8;
}

body[data-theme-version="dark"] .header .header-right .user-pill .uli-user-menu .uli-user-menu-subtitle {
  color: #9db0c8;
}

body[data-theme-version="dark"] .header .header-right .user-pill .uli-user-menu .uli-user-menu-item {
  color: #dbe7f7;
}

body[data-theme-version="dark"] .header .header-right .user-pill .uli-user-menu .uli-user-menu-item i {
  color: #7dd3fc;
}

body[data-theme-version="dark"] .header .header-right .user-pill .uli-user-menu .uli-user-menu-item:hover,
body[data-theme-version="dark"] .header .header-right .user-pill .uli-user-menu .uli-user-menu-item:focus {
  color: #eff6ff;
  background: rgba(22, 40, 66, 0.9);
  box-shadow: 0 10px 22px rgba(2, 8, 23, 0.5);
}

body[data-theme-version="dark"] .header .header-right .user-pill .uli-user-menu .uli-user-menu-item.is-active {
  color: #052437;
  background: linear-gradient(130deg, #93f8ff, #4ddad1 58%, #22c6bc);
  box-shadow: 0 10px 22px rgba(22, 178, 192, 0.34);
}

body[data-theme-version="dark"] .header .header-right .user-pill .uli-user-menu .uli-user-menu-item.is-active i {
  color: rgba(7, 52, 69, 0.92);
}

body[data-theme-version="dark"] .header .header-right .user-pill .uli-user-menu .uli-user-menu-item-meta {
  color: #9db0c8;
}

body[data-theme-version="dark"] .header .header-right .user-pill .uli-user-menu .uli-user-menu-item-state {
  color: #d8ebff;
  background: rgba(88, 162, 255, 0.18);
}

body[data-theme-version="dark"] .header .header-right .user-pill .uli-user-menu .uli-user-menu-control {
  border-color: rgba(124, 151, 186, 0.28);
  background: rgba(18, 33, 58, 0.55);
}

body[data-theme-version="dark"] .header .header-right .user-pill .uli-user-menu .uli-user-menu-control-title {
  color: #dbe7f7;
}

body[data-theme-version="dark"] .header .header-right .user-pill .uli-user-menu .uli-user-menu-control-title i {
  color: #7dd3fc;
}

body[data-theme-version="dark"] .header .header-right .user-pill .uli-user-menu .uli-user-menu-control-current {
  color: #d8ebff;
}

body[data-theme-version="dark"] .header .header-right .user-pill .uli-user-menu .uli-user-menu-divider {
  border-top-color: rgba(124, 151, 186, 0.35);
}

body[data-theme-version="dark"] .header .header-right .user-pill .uli-user-menu .uli-user-menu-item--signout {
  color: #fca5a5;
}

body[data-theme-version="dark"] .header .header-right .user-pill .uli-user-menu .uli-user-menu-item--signout i {
  color: #fda4af;
}

.mobile-header-left,
.mobile-header-title {
  min-width: 0;
  display: none;
}

.mobile-header-logo img {
  width: auto;
  height: 28px;
}

[data-theme-version="dark"] .mobile-header-logo .logo-light {
  display: none !important;
}

[data-theme-version="dark"] .mobile-header-logo .logo-dark {
  display: inline-block !important;
}

.mobile-header-actions .analytics-link,
.mobile-header-actions .polling-label {
  display: inline-flex;
}

/* Top header controls should be right-aligned without analytics/polling links. */
.header .mobile-header-top {
  justify-content: flex-end !important;
  width: 100%;
}

.header .header-right .analytics-link,
.header .header-right .polling-label {
  display: none !important;
}

@media (min-width: 769px) {
  .header .header-content {
    display: flex;
    justify-content: flex-end;
  }

  .header .mobile-header-top .header-right {
    margin-left: auto !important;
  }

  .uli-status-dock {
    left: calc(var(--uli-sidebar-width) + var(--uli-sidebar-gap) + 16px);
    right: 16px;
    bottom: 16px;
  }

  body[data-sidebar-style="mini"] .uli-status-dock,
  body[data-sidebar-style="icon-hover"] .uli-status-dock,
  #main-wrapper.menu-toggle .uli-status-dock {
    left: calc(var(--uli-sidebar-mini-width) + var(--uli-sidebar-mini-gap) + 16px);
  }
}

/* Never show logo inside top header */
.header .brand-logo,
.header img[alt*="Ulibot"],
.header img[src*="ulibot"] {
  display: none !important;
}

.uli-status-dock {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 9999;
  pointer-events: none;
}

.uli-status-fab {
  pointer-events: auto;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(10px);
  color: #1f2937;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

[data-theme-version="dark"] .uli-status-fab {
  color: #ffffff;
}

.uli-status-fab-icon {
  font-size: 18px;
  line-height: 1;
  transition: transform 0.25s ease;
}

.uli-status-dock.is-expanded .uli-status-fab-icon {
  transform: rotate(180deg);
}

.uli-status-panel {
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 18px;
  padding: 10px 12px 60px 12px;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.14), 0 2px 8px rgba(15, 23, 42, 0.08);
  transform-origin: bottom center;
  transition: opacity 0.2s ease, transform 0.2s ease;
  max-height: min(72vh, 560px);
  overflow: auto;
}

[data-theme-version="dark"] .uli-status-panel {
  background: rgba(15, 23, 42, 0.74);
  border-color: rgba(148, 163, 184, 0.30);
  box-shadow: 0 18px 36px rgba(2, 6, 23, 0.44), 0 2px 10px rgba(2, 6, 23, 0.25);
}

.uli-status-dock.is-collapsed .uli-status-panel {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  visibility: hidden;
}

.uli-status-dock.is-expanded .uli-status-panel {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.uli-status-panel .ser-control-bar {
  position: static;
  left: auto;
  right: auto;
  bottom: auto;
  z-index: auto;
  border-top: 0;
  box-shadow: none;
  max-width: none;
  width: 100%;
  margin-bottom: 0 !important;
}

.uli-status-panel .ser-control-inner {
  display: block;
  max-width: none;
  margin: 0;
  padding: 0;
}

.uli-status-panel .ser-status-accounts-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.uli-status-panel .ser-status-accounts-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.uli-status-panel .ser-status-accounts-title {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

.uli-status-panel .ser-account-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.uli-status-panel .ser-account-card {
  border: 1px solid #d7e2f0;
  border-radius: 14px;
  background: #f8fbff;
  padding: 10px 12px;
  min-width: 0;
}

[data-theme-version="dark"] .uli-status-panel .ser-account-card {
  border-color: rgba(148, 163, 184, 0.26);
  background: rgba(15, 23, 42, 0.65);
}

.uli-status-panel .ser-account-exchange {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.68rem;
  color: #64748b;
  margin-bottom: 4px;
}

[data-theme-version="dark"] .uli-status-panel .ser-account-exchange {
  color: #a8b6ca;
}

.uli-status-panel .ser-account-name {
  font-weight: 600;
  color: #0f172a;
  line-height: 1.2;
  margin-bottom: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

[data-theme-version="dark"] .uli-status-panel .ser-account-name {
  color: #e2e8f0;
}

.uli-status-panel .ser-account-footer {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.uli-status-panel .ser-account-footer .badge.bg-success {
  background-color: var(--status-connected-green) !important;
}

[data-theme-version="dark"] .uli-status-panel .ser-account-footer .badge.bg-success {
  background-color: var(--status-connected-green) !important;
}

.uli-status-panel .ser-status-empty {
  padding: 4px 2px 2px;
}

.uli-impersonation-box{
  margin: 12px 14px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 165, 0, 0.12);
  border: 1px solid rgba(255, 165, 0, 0.25);
}

.uli-impersonation-icon{
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 165, 0, 0.24);
  color: #f59e0b;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.uli-impersonation-label{
  font-size: 12px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

@media (min-width: 769px) {
  body[data-sidebar-style="mini"] .uli-impersonation-box,
  body[data-sidebar-style="icon-hover"] .uli-impersonation-box,
  body[data-sidebar-style="full"] #main-wrapper.menu-toggle .uli-impersonation-box {
    margin: 12px auto;
    padding: 8px;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  body[data-sidebar-style="mini"] .uli-impersonation-icon,
  body[data-sidebar-style="icon-hover"] .uli-impersonation-icon,
  body[data-sidebar-style="full"] #main-wrapper.menu-toggle .uli-impersonation-icon {
    display: inline-flex;
  }

  body[data-sidebar-style="mini"] .uli-impersonation-label,
  body[data-sidebar-style="icon-hover"] .uli-impersonation-label,
  body[data-sidebar-style="full"] #main-wrapper.menu-toggle .uli-impersonation-label,
  body[data-sidebar-style="mini"] .uli-impersonation-box .btn,
  body[data-sidebar-style="icon-hover"] .uli-impersonation-box .btn,
  body[data-sidebar-style="full"] #main-wrapper.menu-toggle .uli-impersonation-box .btn {
    display: none !important;
  }
}

@media (max-width: 768px) {
  body.has-sidebar .dlabnav .metismenu {
    gap: 0.6rem;
    padding: 0.8rem 0.75rem;
  }

  body.has-sidebar .dlabnav .metismenu > li > a,
  body.has-sidebar .dlabnav .metismenu > li > ul a,
  body.has-sidebar .uli-sidebar-mobile-actions .metismenu > li > a {
    min-height: 3.15rem;
    padding-top: 0.8rem !important;
    padding-bottom: 0.8rem !important;
  }

  body.has-sidebar .dlabnav .metismenu > li > ul {
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
  }

  body.has-sidebar .dlabnav .metismenu > li > ul a {
    padding-left: 0.95rem !important;
    padding-right: 0.95rem !important;
  }

  /* Mobile: add a bit more space between menu icons and labels. */
  body.has-sidebar .dlabnav .metismenu > li > a,
  body.has-sidebar .dlabnav .metismenu > li > ul a {
    gap: 0.85rem !important;
  }

  body.has-sidebar .dlabnav .metismenu > li > a .nav-text,
  body.has-sidebar .dlabnav .metismenu > li > ul a .nav-text {
    margin-left: 0.15rem !important;
  }

  .uli-hide-mobile {
    display: none !important;
  }

  .uli-desktop-only {
    display: none !important;
  }

  .uli-mobile-only {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }

  /* Keep nav-header from swallowing taps across the top bar on mobile. */
  body.has-sidebar .nav-header {
    pointer-events: none;
  }

  body.has-sidebar .nav-header .logo-home-link {
    pointer-events: auto;
  }

  body.has-sidebar .nav-header .brand-title {
    pointer-events: none;
  }

  .mobile-header-left {
    display: flex;
  }

  .mobile-header-top {
    align-items: center !important;
  }

  .mobile-header-left {
    flex: 0 0 auto;
  }

  .mobile-header-actions {
    flex: 0 0 auto;
  }

  .header-right .polling-label,
  .header-right .analytics-link {
    display: none !important;
  }

  .header-right .user-pill .user-menu-name {
    display: none !important;
  }

  .header-right .user-pill .user-menu-trigger {
    padding: 6px 10px !important;
    border-radius: 12px !important;
  }

  .header-right .user-pill .user-menu-trigger.user-menu-trigger--mobile-icon {
    width: 40px;
    height: 40px;
    padding: 0 !important;
  }

  #themeToggle {
    width: 44px;
    height: 40px;
    padding: 0 !important;
  }

  .header .header-content {
    padding-left: 12px;
    padding-right: 12px;
  }

  .dashboard-mobile-utility {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 12px 0 14px;
  }

  .dashboard-mobile-utility .btn {
    width: 100%;
    padding: 12px 14px;
    border-radius: 14px;
    font-weight: 600;
  }

  .card .card-body {
    padding: 14px !important;
  }

  .form-label {
    margin-bottom: 6px;
  }

  .form-control,
  .form-select {
    height: 44px;
    border-radius: 14px;
  }

  .dashboard-filter-actions {
    flex-direction: column;
    align-items: stretch !important;
    gap: 10px;
  }

  .dashboard-filter-actions .btn {
    width: 100%;
  }

  #analytics-filters,
  #analytics-report,
  #analytics-placeholder,
  #recent-analyses {
    position: static !important;
    transform: none !important;
  }

  #analytics-report {
    margin-top: 14px;
  }

  #recent-analyses {
    margin-bottom: 12px;
  }

  /* Analytics cards should shrink to content on mobile (avoid large blank footer area). */
  #analytics-filters .card,
  #analytics-report .card {
    height: auto !important;
  }

  .uli-status-dock {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 9999;
    pointer-events: none;
  }

  .uli-status-fab {
    pointer-events: auto;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    border: 0;
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(10px);
    color: #1f2937;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  }

  [data-theme-version="dark"] .uli-status-fab {
    color: #ffffff;
  }

  .uli-status-fab-icon {
    font-size: 18px;
    line-height: 1;
    transition: transform 0.25s ease;
  }

  .uli-status-dock.is-expanded .uli-status-fab-icon {
    transform: rotate(180deg);
  }

  .uli-status-panel {
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.90);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 18px;
    padding: 10px 12px 60px 12px;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.14), 0 2px 8px rgba(15, 23, 42, 0.08);
    transform-origin: bottom center;
    max-height: 78vh;
  }

  [data-theme-version="dark"] .uli-status-panel {
    background: rgba(15, 23, 42, 0.78);
    border-color: rgba(148, 163, 184, 0.30);
    box-shadow: 0 18px 36px rgba(2, 6, 23, 0.44), 0 2px 10px rgba(2, 6, 23, 0.25);
  }

  .uli-status-panel .ser-account-grid {
    grid-template-columns: 1fr;
  }

  .uli-status-panel .ser-status-accounts-head {
    align-items: center;
  }

  .content-body {
    padding-bottom: 88px;
  }

  #entry-automation-page .d-sm-flex > .badge,
  #entry-automation-page .d-sm-flex > .btn,
  #config-page .d-sm-flex > div {
    margin-top: 0.75rem;
  }
}

[data-theme-version="dark"] #entry-automation-page > .d-sm-flex .btn.btn-primary,
[data-theme-version="dark"] #entry-automation-page > .d-sm-flex .btn.btn-primary:hover,
[data-theme-version="dark"] #entry-automation-page > .d-sm-flex .btn.btn-primary:focus,
[data-theme-version="dark"] #entry-automation-page > .d-sm-flex .btn.btn-primary:active {
  color: #04283a;
}

#entry-automation-page .automation-page-hero .btn.btn-primary {
  border-radius: 0.82rem;
  min-height: 42px;
  font-weight: 700;
}

[data-theme-version="dark"] #entry-automation-page .automation-page-hero .btn.btn-primary,
[data-theme-version="dark"] #entry-automation-page .automation-page-hero .btn.btn-primary:hover,
[data-theme-version="dark"] #entry-automation-page .automation-page-hero .btn.btn-primary:focus,
[data-theme-version="dark"] #entry-automation-page .automation-page-hero .btn.btn-primary:active {
  color: #04283a;
}

#entry-automation-page .automation-summary-shell .card,
#entry-automation-page .automation-strategies-shell .card {
  background: transparent;
}

#entry-automation-page .automation-summary-shell #automation-performance-summary-ranges {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  padding: 0.22rem;
  border-radius: 999px;
  border: 1px solid rgba(123, 170, 225, 0.34);
  background: rgba(7, 19, 43, 0.58);
}

#entry-automation-page .automation-summary-shell #automation-performance-summary-ranges .btn {
  border: 0;
  border-radius: 999px;
  min-width: 52px;
  font-weight: 700;
}

#entry-automation-page .automation-summary-shell #automation-performance-summary-ranges .btn.btn-outline-secondary {
  color: rgba(223, 237, 255, 0.84);
  background: transparent;
}

#entry-automation-page .automation-summary-shell #automation-performance-summary-ranges .btn.btn-primary {
  color: #052437;
  border-color: transparent;
  background: linear-gradient(130deg, #93f8ff, #4ddad1 58%, #22c6bc);
  box-shadow: 0 8px 18px rgba(22, 178, 192, 0.38);
}

body[data-theme-version="light"] #entry-automation-page .automation-summary-shell #automation-performance-summary-ranges,
[data-theme="light"] #entry-automation-page .automation-summary-shell #automation-performance-summary-ranges {
  border-color: rgba(108, 145, 199, 0.4);
  background: rgba(255, 255, 255, 0.8);
}

body[data-theme-version="light"] #entry-automation-page .automation-summary-shell #automation-performance-summary-ranges .btn.btn-outline-secondary,
[data-theme="light"] #entry-automation-page .automation-summary-shell #automation-performance-summary-ranges .btn.btn-outline-secondary {
  color: rgba(22, 52, 87, 0.88);
}

body[data-theme-version="light"] #entry-automation-page .automation-summary-shell #automation-performance-summary-ranges .btn.btn-primary,
[data-theme="light"] #entry-automation-page .automation-summary-shell #automation-performance-summary-ranges .btn.btn-primary {
  color: #07303f;
  background: linear-gradient(130deg, #a3f7ff, #6ce4d6 58%, #47d2c2);
  box-shadow: 0 8px 18px rgba(53, 171, 185, 0.28);
}

[data-theme-version="dark"] #automation-performance-summary-ranges .btn.btn-primary,
[data-theme-version="dark"] #automation-performance-summary-ranges .btn.btn-primary:hover,
[data-theme-version="dark"] #automation-performance-summary-ranges .btn.btn-primary:focus,
[data-theme-version="dark"] #automation-performance-summary-ranges .btn.btn-primary:active {
  color: #04283a;
}

[data-theme-version="dark"] #automation-performance-summary-ranges .btn.btn-outline-secondary {
  color: rgba(214, 232, 255, 0.9);
  border-color: rgba(121, 162, 214, 0.52);
}

[data-theme-version="dark"] #automation-performance-summary-ranges .btn.btn-outline-secondary:hover,
[data-theme-version="dark"] #automation-performance-summary-ranges .btn.btn-outline-secondary:focus,
[data-theme-version="dark"] #automation-performance-summary-ranges .btn.btn-outline-secondary:active {
  color: #04283a;
  border-color: rgba(93, 212, 202, 0.72);
  background: linear-gradient(130deg, #93f8ff, #4ddad1 58%, #22c6bc);
}

@media (max-width: 767.98px) {
  #entry-automation-page .automation-summary-shell .automation-performance-summary-toolbar {
    width: 100%;
  }

  #entry-automation-page .automation-summary-shell #automation-performance-summary-ranges {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    gap: 0.35rem;
    padding: 0.35rem;
    border-radius: 1rem;
  }

  #entry-automation-page .automation-summary-shell #automation-performance-summary-ranges .btn {
    min-width: 0;
    width: 100%;
    padding: 0.5rem 0.35rem;
    white-space: nowrap;
    line-height: 1.1;
  }
}

@media (min-width: 769px) {
  .uli-desktop-only {
    display: block;
  }

  #config-page .integration-card-actions {
    gap: 0.5rem;
  }

  #config-page .integration-card .btn[id$="-test"] {
    margin-right: 0.85rem !important;
  }
}

#config-page .integration-card-actions {
  row-gap: 0.5rem;
}

.ai-usage-chart-wrap {
  position: relative;
  width: 100%;
  min-height: 220px;
}

.ai-usage-chart-wrap.ai-usage-chart-wrap-md {
  height: 280px;
}

.ai-usage-chart-wrap.ai-usage-chart-wrap-lg {
  height: 300px;
}

.ai-usage-chart-wrap.ai-usage-chart-wrap-xl {
  height: 340px;
}

.ai-usage-chart-wrap > canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

@media (max-width: 768px) {
  .ai-usage-chart-wrap.ai-usage-chart-wrap-md,
  .ai-usage-chart-wrap.ai-usage-chart-wrap-lg,
  .ai-usage-chart-wrap.ai-usage-chart-wrap-xl {
    height: 240px;
  }
}

#config-page .uli-account-imp-card {
  border: 1px solid rgba(40, 184, 181, 0.22);
}

#config-page .uli-account-imp-tile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  margin: 0;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid #e1e9f4;
  background: linear-gradient(135deg, #f7fbff 0%, #ffffff 62%);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

#config-page .uli-account-imp-tile:hover {
  border-color: #b8cced;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

#config-page .uli-account-imp-switch-input:focus + .uli-account-imp-switch,
#config-page .uli-account-imp-tile:focus-within .uli-account-imp-switch {
  box-shadow: 0 0 0 4px rgba(40, 184, 181, 0.18);
}

#config-page .uli-account-imp-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

#config-page .uli-account-imp-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0f7c79;
  background: rgba(40, 184, 181, 0.16);
  flex: 0 0 auto;
}

#config-page .uli-account-imp-meta {
  min-width: 0;
}

#config-page .uli-account-imp-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}

#config-page .uli-account-imp-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  color: #19273a;
}

#config-page .uli-account-imp-copy {
  display: block;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #5f6f86;
}

#config-page .uli-account-imp-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 0.72rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 6px 10px;
  background: #ffe7e8;
  color: #b4232c;
}

#config-page .uli-account-imp-badge.is-enabled {
  background: #dcfce7;
  color: #166534;
}

#config-page .uli-account-imp-switch-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

#config-page .uli-account-imp-switch-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

#config-page .uli-account-imp-switch {
  position: relative;
  width: 52px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid #c9d5e8;
  background: #dbe5f3;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

#config-page .uli-account-imp-switch-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease;
}

#config-page .uli-account-imp-switch-input:checked + .uli-account-imp-switch {
  background: linear-gradient(90deg, #1fb6b2 0%, #21c4b3 100%);
  border-color: #1fb6b2;
}

#config-page .uli-account-imp-switch-input:checked + .uli-account-imp-switch .uli-account-imp-switch-knob {
  transform: translateX(22px);
}

#config-page .uli-account-imp-switch-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #4f6078;
}

#config-page .uli-account-imp-note {
  font-size: 0.82rem;
  color: #6b7a90;
  margin-left: 56px;
}

[data-theme-version="dark"] #config-page .uli-account-imp-card {
  border-color: rgba(41, 183, 180, 0.38);
}

[data-theme-version="dark"] #config-page .uli-account-imp-tile {
  border-color: rgba(148, 163, 184, 0.26);
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.88) 0%, rgba(15, 23, 42, 0.82) 62%);
}

[data-theme-version="dark"] #config-page .uli-account-imp-tile:hover {
  border-color: rgba(45, 212, 191, 0.52);
  box-shadow: 0 12px 28px rgba(2, 6, 23, 0.35);
}

[data-theme-version="dark"] #config-page .uli-account-imp-title {
  color: #e2e8f0;
}

[data-theme-version="dark"] #config-page .uli-account-imp-copy {
  color: #94a3b8;
}

[data-theme-version="dark"] #config-page .uli-account-imp-icon {
  color: #57dbd7;
  background: rgba(45, 212, 191, 0.18);
}

[data-theme-version="dark"] #config-page .uli-account-imp-switch {
  border-color: rgba(148, 163, 184, 0.38);
  background: rgba(100, 116, 139, 0.6);
}

[data-theme-version="dark"] #config-page .uli-account-imp-switch-label {
  color: #cbd5e1;
}

[data-theme-version="dark"] #config-page .uli-account-imp-note {
  color: #9aa8ba;
}

[data-theme-version="dark"] #exchange-connections-manager .bg-light {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.86) 64%) !important;
  border-color: rgba(148, 163, 184, 0.28) !important;
}

[data-theme-version="dark"] #exchange-connections-manager .bg-light .font-weight-semibold {
  color: #e2e8f0;
}

[data-theme-version="dark"] #exchange-connections-manager .bg-light .text-muted,
[data-theme-version="dark"] #exchange-connections-manager .bg-light .small,
[data-theme-version="dark"] #exchange-connections-manager .bg-light .small .text-muted {
  color: #9fb0c5 !important;
}

@media (max-width: 768px) {
  #config-page .uli-account-imp-tile {
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
  }

  #config-page .uli-account-imp-switch-wrap {
    justify-content: flex-end;
  }

  #config-page .uli-account-imp-note {
    margin-left: 0;
  }
}

@media (max-width: 576px) {
  .kpi-row > [class*="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .kpi-card {
    border-radius: 18px;
  }
}

/* Status dock toggle placement: top-center when expanded (desktop + mobile). */
.uli-status-fab {
  z-index: 2;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
  transition: transform 0.22s ease, top 0.22s ease, bottom 0.22s ease, background-color 0.22s ease, color 0.22s ease;
}

[data-theme-version="dark"] .uli-status-fab {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(15, 23, 42, 0.82);
  color: #f8fafc;
}

.uli-status-dock.is-expanded .uli-status-fab {
  top: 0;
  bottom: auto;
  transform: translate(-50%, -50%);
}

.uli-status-dock.is-collapsed .uli-status-fab {
  top: auto;
  bottom: -26px;
  transform: translateX(-50%);
}

.uli-status-dock.is-expanded .uli-status-panel {
  padding: 28px 12px 12px 12px;
}

/* Keep status toggle icon unrotated; JS swaps up/down glyph classes. */
.uli-status-dock.is-expanded .uli-status-fab-icon,
.uli-status-dock.is-collapsed .uli-status-fab-icon {
  transform: none !important;
}

/* Keep toggle visible when expanded so users can collapse from the panel. */
.uli-status-dock.is-expanded .uli-status-fab {
  display: flex !important;
}

.uli-notification-shell {
  position: relative;
}

#notificationBellButton {
  width: 40px;
  height: 40px;
  padding: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#notificationBellButton i {
  margin-right: 0 !important;
}

.uli-app-lang-dropdown {
  position: relative;
}

.uli-app-lang-dropdown .landing-lang-trigger {
  min-width: 72px;
  height: 40px;
  padding: 0 0.72rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(108, 132, 169, 0.34);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(241, 246, 255, 0.9));
  color: #1d3a61;
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(24, 59, 110, 0.08);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.uli-app-lang-dropdown .landing-lang-trigger:hover,
.uli-app-lang-dropdown .landing-lang-trigger:focus {
  border-color: rgba(53, 117, 211, 0.5);
  box-shadow: 0 12px 20px rgba(20, 61, 123, 0.13);
  color: #194783;
  transform: translateY(-1px);
}

.uli-app-lang-dropdown .landing-lang-trigger:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 0.18rem rgba(73, 136, 231, 0.24),
    0 12px 20px rgba(20, 61, 123, 0.15);
}

.uli-app-lang-dropdown .landing-lang-trigger__icon {
  font-size: 0.84rem;
}

.uli-app-lang-dropdown .landing-lang-trigger__label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  line-height: 1;
}

.uli-app-lang-dropdown .landing-lang-trigger.dropdown-toggle::after {
  margin-left: 0.42rem;
  margin-right: -0.1rem;
}

.uli-app-lang-dropdown .landing-lang-menu {
  min-width: 7.5rem;
  margin-top: 0.38rem;
  padding: 0.35rem;
  border-radius: 0.82rem;
  border: 1px solid rgba(109, 134, 172, 0.32);
  background: rgba(251, 253, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 34px rgba(17, 47, 93, 0.14);
}

.uli-app-lang-dropdown .landing-lang-menu .dropdown-item {
  width: 100%;
  border: 0;
  background: transparent;
  border-radius: 0.58rem;
  padding: 0.45rem 0.55rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #1f3f67;
}

.uli-app-lang-dropdown .landing-lang-menu .dropdown-item i {
  font-size: 0.72rem;
  opacity: 0;
  transition: opacity 0.16s ease;
}

.uli-app-lang-dropdown .landing-lang-menu .dropdown-item:hover,
.uli-app-lang-dropdown .landing-lang-menu .dropdown-item:focus {
  color: #0f4f8f;
  background: rgba(73, 136, 231, 0.12);
}

.uli-app-lang-dropdown .landing-lang-menu .dropdown-item.active,
.uli-app-lang-dropdown .landing-lang-menu .dropdown-item:active {
  color: #0f4f8f;
  background: rgba(73, 136, 231, 0.2);
}

.uli-app-lang-dropdown .landing-lang-menu .dropdown-item.active i,
.uli-app-lang-dropdown .landing-lang-menu .dropdown-item:active i {
  opacity: 1;
}

.uli-app-lang-dropdown.is-loading .landing-lang-trigger,
.uli-app-lang-dropdown.is-loading .landing-lang-menu .dropdown-item {
  opacity: 0.72;
  pointer-events: none;
}

[data-theme-version="dark"] .uli-app-lang-dropdown .landing-lang-trigger {
  border-color: rgba(108, 144, 199, 0.44);
  background: linear-gradient(180deg, rgba(15, 32, 60, 0.95), rgba(12, 26, 49, 0.9));
  color: #d6e5ff;
  box-shadow: 0 10px 20px rgba(1, 6, 18, 0.42);
}

[data-theme-version="dark"] .uli-app-lang-dropdown .landing-lang-trigger:hover,
[data-theme-version="dark"] .uli-app-lang-dropdown .landing-lang-trigger:focus {
  border-color: rgba(94, 164, 255, 0.62);
  color: #eff6ff;
  box-shadow: 0 14px 24px rgba(2, 9, 24, 0.5);
}

[data-theme-version="dark"] .uli-app-lang-dropdown .landing-lang-trigger:focus-visible {
  box-shadow:
    0 0 0 0.18rem rgba(94, 164, 255, 0.24),
    0 14px 24px rgba(2, 9, 24, 0.52);
}

[data-theme-version="dark"] .uli-app-lang-dropdown .landing-lang-menu {
  border-color: rgba(95, 130, 183, 0.48);
  background: rgba(10, 24, 46, 0.96);
  box-shadow: 0 20px 34px rgba(1, 5, 16, 0.66);
}

[data-theme-version="dark"] .uli-app-lang-dropdown .landing-lang-menu .dropdown-item {
  color: #d2e4ff;
}

[data-theme-version="dark"] .uli-app-lang-dropdown .landing-lang-menu .dropdown-item:hover,
[data-theme-version="dark"] .uli-app-lang-dropdown .landing-lang-menu .dropdown-item:focus {
  color: #eff6ff;
  background: rgba(88, 162, 255, 0.22);
}

[data-theme-version="dark"] .uli-app-lang-dropdown .landing-lang-menu .dropdown-item.active,
[data-theme-version="dark"] .uli-app-lang-dropdown .landing-lang-menu .dropdown-item:active {
  color: #eff6ff;
  background: rgba(88, 162, 255, 0.3);
}

.uli-lang-toggle-shell {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 40px;
  padding: 3px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.44);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.96), rgba(242, 247, 255, 0.9));
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
}

.uli-lang-toggle-btn {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: #334155;
  min-width: 34px;
  height: 32px;
  padding: 0 9px;
  border-radius: 10px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.16s ease, color 0.16s ease, background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.uli-lang-toggle-btn:hover,
.uli-lang-toggle-btn:focus {
  color: #0f172a;
  border-color: rgba(96, 165, 250, 0.34);
  background: rgba(255, 255, 255, 0.92);
}

.uli-lang-toggle-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 0.16rem rgba(56, 189, 248, 0.28);
}

.uli-lang-toggle-btn.is-active {
  color: #052437;
  border-color: rgba(58, 171, 187, 0.54);
  background: linear-gradient(130deg, #a3f7ff, #6ce4d6 58%, #47d2c2);
  box-shadow: 0 8px 16px rgba(53, 171, 185, 0.24);
}

.uli-lang-toggle-shell.is-loading .uli-lang-toggle-btn {
  opacity: 0.72;
  pointer-events: none;
}

[data-theme-version="dark"] .uli-lang-toggle-shell {
  border-color: rgba(124, 151, 186, 0.48);
  background: linear-gradient(160deg, rgba(17, 28, 48, 0.9), rgba(12, 22, 39, 0.9));
  box-shadow: 0 12px 24px rgba(2, 8, 23, 0.42);
}

[data-theme-version="dark"] .uli-lang-toggle-btn {
  color: #dbe7f7;
}

[data-theme-version="dark"] .uli-lang-toggle-btn:hover,
[data-theme-version="dark"] .uli-lang-toggle-btn:focus {
  color: #f8fafc;
  border-color: rgba(125, 211, 252, 0.42);
  background: rgba(20, 38, 64, 0.88);
}

[data-theme-version="dark"] .uli-lang-toggle-btn.is-active {
  color: #052437;
  border-color: rgba(74, 211, 203, 0.56);
  background: linear-gradient(130deg, #93f8ff, #4ddad1 58%, #22c6bc);
  box-shadow: 0 10px 20px rgba(22, 178, 192, 0.34);
}

@media (max-width: 768px) {
  .uli-lang-toggle-shell {
    height: 40px;
    border-radius: 13px;
  }

  .uli-lang-toggle-btn {
    min-width: 31px;
    height: 30px;
    padding: 0 7px;
    font-size: 0.68rem;
  }

  .uli-sidebar-mobile-actions .uli-mobile-lang-menu-item {
    padding: 0 10px 4px;
  }

  .uli-sidebar-mobile-actions .uli-mobile-lang-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.26);
    background: rgba(255, 255, 255, 0.06);
    min-height: 3.15rem;
    padding: 12px 12px;
  }

  .uli-sidebar-mobile-actions .uli-mobile-lang-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: #1f2937;
    letter-spacing: 0.01em;
  }

  .uli-lang-toggle-shell.uli-lang-toggle-shell--sidebar {
    height: 34px;
    padding: 2px;
    border-radius: 11px;
    box-shadow: none;
    border-color: rgba(148, 163, 184, 0.34);
  }

  .uli-lang-toggle-shell.uli-lang-toggle-shell--sidebar .uli-lang-toggle-btn {
    min-width: 28px;
    height: 28px;
    padding: 0 6px;
    font-size: 0.64rem;
  }

  [data-theme-version="dark"] .uli-sidebar-mobile-actions .uli-mobile-lang-row {
    border-color: rgba(124, 151, 186, 0.42);
    background: rgba(18, 33, 58, 0.55);
  }

  [data-theme-version="dark"] .uli-sidebar-mobile-actions .uli-mobile-lang-label {
    color: #dbe7f7;
  }
}

.uli-notification-badge {
  position: absolute;
  top: -8px;
  right: -9px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: #dc2626;
  color: #ffffff;
  font-size: 0.68rem;
  line-height: 18px;
  font-weight: 700;
  text-align: center;
}

.uli-notification-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #dc2626;
}

.uli-notification-menu {
  width: min(460px, 94vw);
  padding: 0.35rem;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 250, 255, 0.97) 100%);
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.2);
  backdrop-filter: blur(14px);
  overflow: hidden;
}

.uli-notification-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0.7rem 0.8rem 0.62rem;
  margin: 0 0.25rem 0.35rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.28);
  font-weight: 700;
  color: #0f172a;
}

.uli-notification-menu-head span {
  font-size: 0.95rem;
}

.uli-notification-menu-head a {
  font-size: 0.78rem;
  font-weight: 700;
  color: #2563eb;
  text-decoration: none;
}

.uli-notification-menu-head a:hover {
  text-decoration: underline;
}

.uli-notification-list {
  max-height: 420px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.25rem 0.4rem 0.5rem;
}

.uli-notification-item {
  white-space: normal;
  padding: 0.74rem 0.78rem;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  line-height: 1.4;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.uli-notification-item:last-child {
  border-bottom: 0;
}

.uli-notification-item:hover,
.uli-notification-item:focus {
  transform: translateY(-1px);
  border-color: rgba(59, 130, 246, 0.45);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.14);
}

.uli-notification-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.uli-notification-source {
  font-size: 0.8rem;
  color: #5b6b84;
  font-weight: 600;
}

.uli-notification-time {
  color: #7a899f;
  font-size: 0.77rem;
  font-weight: 600;
  white-space: nowrap;
}

.uli-notification-title {
  font-size: 1.04rem;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.25;
  margin-bottom: 0.2rem;
}

.uli-notification-message {
  font-size: 0.9rem;
  color: #607089;
  line-height: 1.38;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.uli-notification-meta {
  margin-top: 0.36rem;
  color: #7a899f;
  font-size: 0.75rem;
}

.uli-priority-icon {
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  flex: 0 0 auto;
}

.uli-priority-icon i {
  font-size: 0.68rem;
}

.uli-priority-icon--high {
  background: rgba(239, 68, 68, 0.18);
  color: #b42318;
  border-color: rgba(239, 68, 68, 0.4);
}

.uli-priority-icon--medium {
  background: rgba(245, 158, 11, 0.2);
  color: #9a5b00;
  border-color: rgba(245, 158, 11, 0.4);
}

.uli-priority-icon--low {
  background: rgba(99, 102, 241, 0.15);
  color: #4f46e5;
  border-color: rgba(99, 102, 241, 0.35);
}

.uli-notification-empty {
  margin: 0.15rem 0.4rem 0.4rem;
  padding: 0.85rem;
  border: 1px dashed rgba(148, 163, 184, 0.45);
  border-radius: 12px;
  color: #6b7280;
  font-size: 0.86rem;
  text-align: center;
}

[data-theme-version="dark"] .uli-notification-menu {
  border-color: rgba(124, 151, 186, 0.45);
  background: linear-gradient(180deg, rgba(17, 28, 48, 0.97) 0%, rgba(12, 22, 39, 0.96) 100%);
  box-shadow: 0 24px 52px rgba(2, 6, 23, 0.56);
}

[data-theme-version="dark"] .uli-notification-menu-head {
  border-bottom-color: rgba(124, 151, 186, 0.3);
  color: #e2e8f5;
}

[data-theme-version="dark"] .uli-notification-menu-head a {
  color: #7dd3fc;
}

[data-theme-version="dark"] .uli-notification-item {
  border-color: rgba(124, 151, 186, 0.36);
  background: rgba(20, 34, 56, 0.84);
}

[data-theme-version="dark"] .uli-notification-item:hover,
[data-theme-version="dark"] .uli-notification-item:focus {
  border-color: rgba(93, 177, 255, 0.58);
  background: rgba(24, 40, 66, 0.93);
  box-shadow: 0 12px 24px rgba(2, 8, 23, 0.5);
}

[data-theme-version="dark"] .uli-notification-source {
  color: #9eb1cd;
}

[data-theme-version="dark"] .uli-notification-time {
  color: #8ea2bf;
}

[data-theme-version="dark"] .uli-notification-title {
  color: #e8eef8;
}

[data-theme-version="dark"] .uli-notification-message {
  color: #b4c3da;
}

[data-theme-version="dark"] .uli-notification-meta {
  color: #8fa2bf;
}

[data-theme-version="dark"] .uli-notification-empty {
  border-color: rgba(124, 151, 186, 0.45);
  color: #9fb0c8;
}

.admin-global-prompt-item {
  cursor: grab;
}

.admin-global-prompt-item.admin-global-prompt-dragging {
  opacity: 0.6;
}

.admin-global-prompt-item.admin-global-prompt-drop-target {
  outline: 2px dashed #5bcfc5;
  outline-offset: -2px;
}

.admin-global-prompt-drag-handle {
  user-select: none;
  cursor: grab;
}

.uli-notification-row {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px;
}

.uli-notification-page-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.uli-notification-page-list .list-group-item + .list-group-item {
  border-top-width: 1px;
  margin-top: 0;
}

.uli-notification-entry {
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}

.uli-notification-entry:hover,
.uli-notification-entry:focus {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
  border-color: #cfd8ea;
}

.uli-notification-unread {
  border-color: #16a34a !important;
  box-shadow: 0 12px 24px rgba(22, 163, 74, 0.2);
}

.uli-notification-archived {
  opacity: 0.88;
}

.uli-notification-page-empty {
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  padding: 18px;
  text-align: center;
  color: #64748b;
}

.uli-high-notification-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.uli-high-notification-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.uli-push-enable-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.uli-push-enable-copy {
  min-width: 0;
}

.uli-push-enable-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-left: auto;
}

.uli-push-enable-actions .btn-link {
  text-align: left;
}

@media (max-width: 576px) {
  .uli-high-notification-actions {
    width: 100%;
  }

  .uli-high-notification-actions .btn {
    flex: 1 1 auto;
  }

  .uli-push-enable-banner {
    flex-direction: column;
    align-items: stretch;
  }

  .uli-push-enable-actions {
    width: 100%;
    margin-left: 0;
    flex-direction: column;
    align-items: stretch;
  }

  .uli-push-enable-actions .btn {
    width: 100%;
  }
}

.uli-menu-ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  margin-left: 0.45rem;
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 118, 110, 0.28);
  background: rgba(45, 212, 191, 0.2);
  color: #0f766e;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
  vertical-align: middle;
}

.uli-menu-ai-badge i {
  margin-right: 0 !important;
  font-size: 0.58rem;
}

.uli-menu-label-mobile {
  display: none;
}

[data-theme-version="dark"] .uli-menu-ai-badge {
  border-color: rgba(94, 234, 212, 0.35);
  background: rgba(13, 148, 136, 0.28);
  color: #99f6e4;
}

/* Keep AI-labeled submenu items on one line (label + badge). */
.dlabnav .metismenu > li > ul a .uli-menu-ai-text {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.35rem !important;
  white-space: nowrap !important;
  flex-wrap: nowrap !important;
  min-width: max-content;
}

.dlabnav .metismenu > li > ul a .uli-menu-ai-text .uli-menu-label-full {
  white-space: nowrap !important;
}

.dlabnav .metismenu > li > ul a .uli-menu-ai-text .uli-menu-ai-badge {
  margin-left: 0 !important;
  flex-shrink: 0 !important;
}

@media (max-width: 767px) {
  .dlabnav .metismenu > li > ul a .uli-menu-ai-text {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
  }

  .dlabnav .metismenu > li > ul a .uli-menu-ai-text .uli-menu-ai-badge {
    margin-left: 0;
    flex-shrink: 0;
  }

  .dlabnav .metismenu > li > ul a .uli-menu-ai-text .uli-menu-label-full {
    display: none;
  }

  .dlabnav .metismenu > li > ul a .uli-menu-ai-text .uli-menu-label-mobile {
    display: inline;
  }
}

.uli-graph-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  min-height: 150px;
  padding: 1rem;
  border: 2px dashed #bcc9de;
  border-radius: 0.9rem;
  background: #f8fbff;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.uli-has-disabled-tooltip:disabled {
  pointer-events: auto;
  cursor: not-allowed;
}

.uli-graph-pill-group {
  display: grid;
  gap: 0.45rem;
  width: 100%;
}

.uli-graph-pill-group-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.uli-graph-pill-group-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.uli-graph-guidance-card {
  border: 1px solid #d8e4f2;
  border-radius: 0.9rem;
  background: linear-gradient(180deg, #f7fbff 0%, #f3f8ff 100%);
  padding: 0.8rem 0.85rem;
}

.uli-graph-guidance-card h6 {
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f305c;
}

.uli-graph-guidance-why {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #bed0e8;
  border-radius: 999px;
  padding: 0.12rem 0.5rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #1d4f8a;
  background: rgba(255, 255, 255, 0.72);
  cursor: help;
}

.uli-graph-guidance-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.uli-graph-guidance-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid #c7d7ec;
  background: #ffffff;
  color: #1f3858;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 0.2rem 0.55rem;
}

.uli-graph-guidance-bullets,
.uli-graph-guidance-checklist {
  margin: 0;
  padding-left: 1rem;
}

.uli-graph-guidance-bullets li,
.uli-graph-guidance-checklist li {
  font-size: 0.78rem;
  line-height: 1.35;
  color: #334155;
  margin-bottom: 0.22rem;
}

.uli-graph-guidance-bullets li:last-child,
.uli-graph-guidance-checklist li:last-child {
  margin-bottom: 0;
}

.uli-chart-preflight-panel {
  border: 1px solid #d5deeb;
  border-left-width: 4px;
  border-radius: 0.9rem;
  background: #f9fbff;
  padding: 0.9rem 1rem;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

.uli-chart-preflight-panel.is-ok {
  border-left-color: #16a34a;
  background: #f2fbf5;
}

.uli-chart-preflight-panel.is-warn {
  border-left-color: #d97706;
  background: #fff9ef;
}

.uli-chart-preflight-panel.is-error {
  border-left-color: #dc2626;
  background: #fff4f4;
}

.uli-chart-preflight-issues {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.uli-chart-preflight-item {
  border: 1px solid #e2e8f0;
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.85);
  padding: 0.5rem 0.65rem;
}

.uli-chart-preflight-item-ok {
  border-color: #bbf7d0;
  background: rgba(255, 255, 255, 0.92);
}

.uli-chart-preflight-item-top {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.uli-chart-preflight-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.18rem 0.55rem;
  font-size: 0.67rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.uli-chart-preflight-badge-error {
  background: #fee2e2;
  color: #b91c1c;
}

.uli-chart-preflight-badge-warn {
  background: #fef3c7;
  color: #9a3412;
}

.uli-chart-preflight-badge-info {
  background: #dbeafe;
  color: #1d4ed8;
}

.uli-chart-preflight-issue-title {
  color: #1f2937;
  font-size: 0.9rem;
  line-height: 1.3;
  font-weight: 600;
}

.uli-chart-preflight-hint {
  margin-top: 0.3rem;
  margin-left: 0.1rem;
  font-size: 0.8rem;
  line-height: 1.35;
  color: #64748b;
}

.uli-graph-pill {
  border: 1px solid #cfdbee;
  background: #f7faff;
  color: #334155;
  border-radius: 999px;
  padding: 0.7rem 1rem;
  min-height: 3.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.2;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: all 0.18s ease;
}

.uli-graph-pill:hover,
.uli-graph-pill:focus-visible {
  border-color: #2bb8ad;
  background: #eefdfa;
  color: #0f766e;
  outline: none;
}

.uli-graph-pill.is-selected {
  border-color: #1f9489;
  background: linear-gradient(180deg, #e6faf7 0%, #d7f3ef 100%);
  color: #0b534d;
  box-shadow: 0 3px 8px rgba(15, 118, 110, 0.18);
}

.uli-graph-pill-group.is-disabled .uli-graph-pill {
  opacity: 0.62;
  cursor: not-allowed;
}

.uli-graph-dropzone:hover,
.uli-graph-dropzone.is-dragover {
  border-color: #2bb8ad;
  background: #f1fffd;
  box-shadow: 0 10px 25px rgba(43, 184, 173, 0.12);
}

.uli-graph-dropzone:focus-visible {
  outline: none;
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.2);
}

.uli-graph-dropzone.is-disabled {
  cursor: not-allowed;
  opacity: 0.75;
  pointer-events: none;
}

.uli-graph-thumb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  gap: 0.75rem;
}

.uli-graph-thumb {
  position: relative;
  border: 1px solid #dce4f2;
  border-radius: 0.85rem;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 5px 12px rgba(15, 23, 42, 0.05);
}

.uli-graph-thumb-remove {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  width: 1.45rem;
  height: 1.45rem;
  border: none;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.82);
  color: #ffffff;
  font-size: 1rem;
  line-height: 1;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.uli-graph-thumb-remove:hover,
.uli-graph-thumb-remove:focus-visible {
  background: rgba(220, 38, 38, 0.95);
  transform: scale(1.05);
  outline: none;
}

.uli-graph-thumb-remove:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.uli-graph-thumb-image {
  display: block;
  width: 100%;
  height: 118px;
  object-fit: cover;
  background: #eef2f7;
}

.uli-graph-thumb-meta {
  padding: 0.5rem 0.6rem 0.58rem;
  border-top: 1px solid #e8edf6;
}

.uli-graph-thumb-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: #334155;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.uli-graph-thumb-size {
  margin-top: 0.15rem;
  font-size: 0.72rem;
  color: #64748b;
}

.uli-graph-result-text {
  white-space: normal;
  line-height: 1.5;
  max-height: 460px;
  overflow: auto;
  border: 1px solid #dbe4f3;
  border-radius: 0.85rem;
  padding: 0.85rem 0.95rem;
  background: #fbfcff;
}

.uli-graph-result-text h1,
.uli-graph-result-text h2,
.uli-graph-result-text h3,
.uli-graph-result-text h4 {
  margin: 0 0 0.65rem;
  color: #0f172a;
  font-weight: 700;
  line-height: 1.3;
}

.uli-graph-result-text h1 {
  font-size: 1.25rem;
}

.uli-graph-result-text h2 {
  font-size: 1.15rem;
}

.uli-graph-result-text h3 {
  font-size: 1.05rem;
}

.uli-graph-result-text h4 {
  font-size: 1rem;
}

.uli-graph-result-text p {
  margin: 0 0 0.65rem;
}

.uli-graph-result-text p:last-child {
  margin-bottom: 0;
}

.uli-graph-result-text ul,
.uli-graph-result-text ol {
  margin: 0 0 0.75rem;
  padding-left: 1.25rem;
}

.uli-graph-result-text li {
  margin-bottom: 0.25rem;
}

.uli-graph-result-text code {
  background: rgba(15, 23, 42, 0.08);
  border-radius: 0.3rem;
  padding: 0.08rem 0.32rem;
}

.uli-graph-result-text pre {
  margin: 0 0 0.75rem;
  background: rgba(15, 23, 42, 0.08);
  border-radius: 0.5rem;
  padding: 0.65rem;
  overflow: auto;
}

.uli-graph-result-text pre code {
  background: transparent;
  padding: 0;
}

.uli-graph-result-text blockquote {
  border-left: 3px solid #93c5fd;
  margin: 0 0 0.75rem;
  padding: 0.15rem 0 0.15rem 0.75rem;
  color: #1f2937;
}

.uli-graph-verdict-banner {
  display: block;
  width: 100%;
  margin-bottom: 0;
}

.uli-graph-verdict-main {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.uli-graph-verdict-meta {
  font-size: 0.9rem;
  opacity: 0.9;
}

.uli-graph-report-card {
  border-color: rgba(0, 0, 0, 0.08);
}

.uli-graph-signal-hero {
  border: 1px solid rgba(21, 32, 52, 0.1);
  border-radius: 0.95rem;
  background: linear-gradient(128deg, rgba(248, 250, 255, 0.98), rgba(244, 251, 255, 0.95));
  overflow: hidden;
  background-clip: padding-box;
  width: 100%;
  margin-left: 0;
}

.uli-graph-signal-hero.uli-tone-long {
  border-color: rgba(34, 197, 94, 0.45);
  box-shadow: none;
}

.uli-graph-signal-hero.uli-tone-short {
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: none;
}

.uli-graph-signal-hero.uli-tone-no-trade {
  border-color: rgba(220, 38, 38, 0.45);
  box-shadow: none;
}

.uli-graph-signal-hero.uli-tone-wait {
  border-color: rgba(217, 119, 6, 0.36);
}

.uli-graph-hero-left {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  align-items: flex-start;
}

.uli-graph-decision-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 1rem;
  border-radius: 999px;
  padding: 0.38rem 0.85rem;
  border: 1px solid transparent;
}

.uli-graph-decision-badge.uli-tone-long {
  color: #14532d;
  border-color: rgba(22, 163, 74, 0.45);
  background: rgba(134, 239, 172, 0.24);
  box-shadow: 0 0 0 1px rgba(22, 163, 74, 0.18), 0 6px 16px rgba(22, 163, 74, 0.22);
}

.uli-graph-decision-badge.uli-tone-short {
  color: #1e3a8a;
  border-color: rgba(59, 130, 246, 0.48);
  background: rgba(147, 197, 253, 0.26);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.2), 0 6px 16px rgba(30, 64, 175, 0.22);
}

.uli-graph-decision-badge.uli-tone-no-trade {
  color: #7f1d1d;
  border-color: rgba(239, 68, 68, 0.44);
  background: rgba(252, 165, 165, 0.28);
}

.uli-graph-decision-badge.uli-tone-wait {
  color: #92400e;
  border-color: rgba(217, 119, 6, 0.32);
  background: rgba(253, 230, 138, 0.38);
}

.uli-graph-chip-row,
.uli-graph-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.uli-graph-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.18rem 0.58rem;
  font-size: 0.68rem;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.uli-graph-chip-neutral {
  color: #334155;
  border-color: rgba(51, 65, 85, 0.18);
  background: rgba(148, 163, 184, 0.16);
}

.uli-graph-chip-long {
  color: #166534;
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(134, 239, 172, 0.24);
}

.uli-graph-chip-short {
  color: #1e3a8a;
  border-color: rgba(37, 99, 235, 0.34);
  background: rgba(147, 197, 253, 0.25);
}

.uli-graph-chip-no-trade {
  color: #7f1d1d;
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(252, 165, 165, 0.24);
}

.uli-graph-chip-wait {
  color: #92400e;
  border-color: rgba(217, 119, 6, 0.3);
  background: rgba(253, 230, 138, 0.38);
}

.uli-graph-confidence-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.45rem;
}

.uli-graph-confidence-label {
  font-size: 0.85rem;
  color: #334155;
  font-weight: 600;
}

.uli-graph-confidence-value {
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
}

.uli-graph-confidence-progress {
  height: 0.95rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.26);
}

.uli-graph-confidence-bar,
.uli-graph-strength-bar {
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.uli-graph-confidence-bar.uli-tone-long,
.uli-graph-strength-bar.uli-tone-long {
  background-color: #16a34a;
}

.uli-graph-confidence-bar.uli-tone-short,
.uli-graph-strength-bar.uli-tone-short {
  background-color: #2563eb;
}

.uli-graph-confidence-bar.uli-tone-no-trade,
.uli-graph-strength-bar.uli-tone-no-trade {
  background-color: #dc2626;
}

.uli-graph-confidence-bar.uli-tone-wait,
.uli-graph-strength-bar.uli-tone-wait {
  background-color: #d97706;
}

.uli-graph-confidence-bar.uli-tone-neutral,
.uli-graph-strength-bar.uli-tone-neutral {
  background-color: #64748b;
}

.uli-graph-meta-row {
  margin-top: 0.55rem;
}

.uli-graph-hero-footer {
  margin-top: 0.85rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(148, 163, 184, 0.3);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.55rem;
}

.uli-graph-hero-footer.is-wait {
  opacity: 0.9;
}

.uli-graph-hero-action {
  min-width: 190px;
  font-weight: 700;
}

.uli-graph-hero-action.is-muted {
  opacity: 0.65;
}

.uli-graph-snapshot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
}

.uli-graph-snapshot-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  border-radius: 0.7rem;
  padding: 0.45rem 0.62rem;
  border: 1px solid transparent;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.uli-graph-timeframe-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.uli-graph-timeframe-card {
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 0.8rem;
  padding: 0.75rem;
  background: rgba(248, 250, 252, 0.62);
}

.uli-graph-timeframe-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.55rem;
}

.uli-graph-level-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.26rem;
}

.uli-graph-level-label {
  color: #64748b;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  flex: 0 0 auto;
}

.uli-graph-level-value {
  color: #1e293b;
  font-size: 0.76rem;
  text-align: right;
}

.uli-graph-range {
  margin-top: 0.5rem;
}

.uli-graph-range-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: #64748b;
  margin-bottom: 0.22rem;
}

.uli-graph-range-bar {
  height: 0.42rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(34, 197, 94, 0.26), rgba(245, 158, 11, 0.24), rgba(239, 68, 68, 0.24));
  position: relative;
}

.uli-graph-range-marker {
  position: absolute;
  top: 50%;
  width: 0.58rem;
  height: 0.58rem;
  border: 2px solid #ffffff;
  border-radius: 999px;
  background: #0f172a;
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.35);
}

.uli-graph-signal-item {
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 0.75rem;
  padding: 0.6rem;
  margin-bottom: 0.62rem;
  background: rgba(248, 250, 252, 0.62);
}

.uli-graph-signal-item:last-child {
  margin-bottom: 0;
}

.uli-graph-signal-head {
  display: flex;
  justify-content: space-between;
  gap: 0.65rem;
  align-items: flex-start;
}

.uli-graph-strength-progress {
  margin-top: 0.48rem;
  height: 0.8rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.22);
}

.uli-graph-strength-bar {
  font-size: 0.66rem;
  line-height: 0.8rem;
}

.uli-graph-details,
.uli-graph-advanced-details {
  margin-top: 0.5rem;
}

.uli-graph-details summary,
.uli-graph-advanced-details summary {
  cursor: pointer;
  list-style: none;
  user-select: none;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  color: #2563eb;
}

.uli-graph-details summary::-webkit-details-marker,
.uli-graph-advanced-details summary::-webkit-details-marker {
  display: none;
}

.uli-graph-details summary::after,
.uli-graph-advanced-details summary::after {
  content: " \25BE";
}

.uli-graph-details[open] summary::after,
.uli-graph-advanced-details[open] summary::after {
  content: " \25B4";
}

.uli-graph-details[open] summary {
  margin-bottom: 0.45rem;
}

.uli-graph-advanced-details {
  margin-top: 0;
}

.uli-graph-advanced-details[open] summary {
  margin-bottom: 0.6rem;
}

.uli-graph-risk-bullets {
  padding-left: 1.1rem;
}

.uli-graph-risk-bullets li {
  margin-bottom: 0.32rem;
  line-height: 1.4;
}

.uli-graph-report-card .text-muted {
  color: #334155 !important;
}

.uli-graph-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.uli-graph-strategy-panel {
  border-left: 0.25rem solid #36b9cc;
  display: block;
  min-height: 0;
  height: auto;
  flex: 1 1 280px;
  margin-top: 0 !important;
}

.uli-graph-strategy-panel > div {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.uli-graph-strategy-panel .btn {
  margin-top: auto;
  align-self: flex-start;
}

.uli-graph-history-preview {
  color: #475569;
  line-height: 1.35;
}

.uli-ga-modal {
  border-radius: 1.05rem;
  border: 1px solid rgba(148, 163, 184, 0.36);
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f8fcff 100%);
  box-shadow: 0 24px 54px rgba(15, 23, 42, 0.16);
}

.uli-ga-modal .modal-header {
  border-bottom: 1px solid #dce6f4;
  padding: 1rem 1.2rem;
  background:
    radial-gradient(circle at 90% 12%, rgba(20, 184, 166, 0.16), rgba(20, 184, 166, 0) 44%),
    linear-gradient(120deg, rgba(59, 130, 246, 0.06), rgba(59, 130, 246, 0));
}

.uli-ga-modal .modal-title-wrap {
  display: grid;
  gap: 0.32rem;
}

.uli-ga-modal .modal-title {
  margin: 0;
  color: #0f172a;
  font-weight: 800;
}

.uli-ga-modal-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.36rem;
  width: fit-content;
  padding: 0.16rem 0.52rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0f766e;
  background: rgba(45, 212, 191, 0.2);
  border: 1px solid rgba(20, 184, 166, 0.36);
}

.uli-ga-modal .modal-body {
  padding: 1.15rem 1.2rem 0.95rem;
}

.uli-ga-modal .modal-footer {
  border-top: 1px solid #dce6f4;
  padding: 0.9rem 1.2rem 1.1rem;
}

.uli-ga-modal .btn {
  min-width: 110px;
}

.uli-ga-modal .modal-footer .btn {
  border-radius: 0.95rem;
}

.uli-ga-modal-hero {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 0.75rem;
  border: 1px solid #d9e8f7;
  border-radius: 0.95rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(240, 249, 255, 0.9));
}

.uli-ga-modal-hero-col {
  display: grid;
  gap: 0.3rem;
  min-width: 0;
}

.uli-ga-modal-meta-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
}

.uli-ga-modal-symbol {
  display: inline-flex;
  align-items: center;
  gap: 0.24rem;
  font-size: 1.04rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: 0.03em;
}

.uli-ga-modal-symbol-base {
  color: #0f172a;
}

.uli-ga-modal-symbol-sep {
  opacity: 0.55;
}

.uli-ga-modal-symbol-quote {
  color: #0f766e;
}

.uli-ga-modal-direction {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  background: #e2e8f0;
  color: #334155;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.uli-ga-modal-direction.is-long {
  background: #dcfce7;
  color: #166534;
}

.uli-ga-modal-direction.is-short {
  background: #dbeafe;
  color: #1e3a8a;
}

.uli-ga-modal-direction.is-wait {
  background: #fef3c7;
  color: #9a3412;
}

.uli-ga-modal-direction.is-unknown {
  background: #e2e8f0;
  color: #334155;
}

.uli-ga-modal-grid {
  margin-top: 0.8rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.uli-ga-modal-tile {
  border: 1px solid #deebf8;
  border-radius: 0.85rem;
  background: #ffffff;
  padding: 0.62rem 0.68rem;
  min-height: 74px;
}

.uli-ga-modal-tile-soft {
  background: linear-gradient(140deg, #eefcff, #f5f8ff);
}

.uli-ga-modal-tile-label {
  display: block;
  font-size: 0.68rem;
  color: #64748b;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.uli-ga-modal-tile-value {
  display: block;
  margin-top: 0.3rem;
  color: #0f172a;
  font-size: 0.9rem;
  font-weight: 700;
  word-break: break-word;
}

.uli-ga-modal-inline-input {
  margin-top: 0.38rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid #c9daec;
  border-radius: 0.75rem;
  background: #ffffff;
  padding: 0 0.58rem;
}

.uli-ga-modal-inline-input:focus-within {
  border-color: #14b8a6;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.14);
}

.uli-ga-modal-inline-prefix {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
}

.uli-ga-modal-inline-input .form-control {
  border: 0;
  background: transparent;
  box-shadow: none;
  padding-left: 0;
  padding-right: 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
}

.uli-ga-modal-inline-input .form-control:focus {
  box-shadow: none;
}

.uli-ga-modal-note {
  margin-top: 0.74rem;
  border: 1px solid #d5e5f6;
  border-radius: 0.78rem;
  background: linear-gradient(145deg, #f7fcff, #effbff);
  padding: 0.46rem 0.56rem;
  font-size: 0.77rem;
  color: #1e3a5f;
}

.uli-ga-cost-panel {
  border: 1px solid #d9e8f7;
  border-radius: 0.95rem;
  background: linear-gradient(150deg, #ffffff, #f0fbff);
  padding: 0.72rem 0.78rem 0.68rem;
}

.uli-ga-cost-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.uli-ga-cost-head label {
  font-size: 0.84rem;
  color: #0f172a;
  font-weight: 800;
}

.uli-ga-cost-hint {
  color: #0f766e;
  font-size: 0.72rem;
  font-weight: 700;
}

.uli-ga-cost-input-wrap {
  display: flex;
  align-items: center;
  border: 1px solid #cfddec;
  border-radius: 0.8rem;
  background: #ffffff;
  padding: 0 0.64rem;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.uli-ga-cost-input-wrap:focus-within {
  border-color: #14b8a6;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15);
}

.uli-ga-cost-prefix {
  color: #64748b;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-right: 0.56rem;
}

.uli-ga-cost-input-wrap .form-control {
  border: 0;
  box-shadow: none;
  background: transparent;
  padding-left: 0;
}

.uli-ga-cost-input-wrap .form-control:focus {
  box-shadow: none;
}

.uli-ga-cost-presets {
  margin-top: 0.54rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
}

.uli-ga-cost-preset {
  border: 1px solid #c8d8e8;
  border-radius: 999px;
  background: #ffffff;
  color: #334155;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.18rem 0.6rem;
  transition: all 0.18s ease;
}

.uli-ga-cost-preset:hover,
.uli-ga-cost-preset:focus-visible {
  border-color: #14b8a6;
  background: #ecfeff;
  color: #0f766e;
  outline: none;
}

.uli-ga-cost-preset.is-active {
  border-color: #0f766e;
  background: #ccfbf1;
  color: #115e59;
}

[data-theme-version="dark"] .uli-ga-modal {
  border-color: rgba(100, 116, 139, 0.5);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.95), rgba(7, 13, 27, 0.97));
  box-shadow: 0 24px 56px rgba(2, 6, 23, 0.62);
}

[data-theme-version="dark"] .uli-ga-modal .modal-header {
  border-bottom-color: rgba(100, 116, 139, 0.4);
}

[data-theme-version="dark"] .uli-ga-modal .modal-title {
  color: #f8fafc;
}

[data-theme-version="dark"] .uli-ga-modal-kicker {
  color: #99f6e4;
  background: rgba(13, 148, 136, 0.24);
  border-color: rgba(45, 212, 191, 0.35);
}

[data-theme-version="dark"] .uli-ga-modal .modal-footer {
  border-top-color: rgba(100, 116, 139, 0.42);
}

[data-theme-version="dark"] .uli-ga-modal-hero {
  border-color: rgba(71, 85, 105, 0.62);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.76), rgba(15, 23, 42, 0.96));
}

[data-theme-version="dark"] .uli-ga-modal-meta-label {
  color: #93a8c4;
}

[data-theme-version="dark"] .uli-ga-modal-symbol {
  color: #e2e8f0;
}

[data-theme-version="dark"] .uli-ga-modal-symbol-base {
  color: #e2e8f0;
}

[data-theme-version="dark"] .uli-ga-modal-symbol-quote {
  color: #5eead4;
}

[data-theme-version="dark"] .uli-ga-modal-direction.is-short {
  color: #bfdbfe;
  background: rgba(37, 99, 235, 0.32);
}

[data-theme-version="dark"] .uli-ga-modal-direction.is-long {
  color: #bbf7d0;
  background: rgba(22, 163, 74, 0.3);
}

[data-theme-version="dark"] .uli-ga-modal-direction.is-wait {
  color: #fde68a;
  background: rgba(217, 119, 6, 0.34);
}

[data-theme-version="dark"] .uli-ga-modal-direction.is-unknown {
  color: #e2e8f0;
  background: rgba(71, 85, 105, 0.56);
}

[data-theme-version="dark"] .uli-ga-modal-tile {
  border-color: rgba(71, 85, 105, 0.6);
  background: rgba(15, 23, 42, 0.7);
}

[data-theme-version="dark"] .uli-ga-modal-tile-soft {
  background: linear-gradient(145deg, rgba(12, 74, 110, 0.4), rgba(30, 41, 59, 0.75));
}

[data-theme-version="dark"] .uli-ga-modal-tile-label {
  color: #93a8c4;
}

[data-theme-version="dark"] .uli-ga-modal-tile-value {
  color: #e2e8f0;
}

[data-theme-version="dark"] .uli-ga-modal-inline-input {
  border-color: rgba(71, 85, 105, 0.68);
  background: rgba(15, 23, 42, 0.86);
}

[data-theme-version="dark"] .uli-ga-modal-inline-prefix {
  color: #9cb2cf;
}

[data-theme-version="dark"] .uli-ga-modal-inline-input .form-control {
  color: #e2e8f0;
}

[data-theme-version="dark"] .uli-ga-modal-note {
  border-color: rgba(71, 85, 105, 0.62);
  background: linear-gradient(145deg, rgba(17, 42, 67, 0.72), rgba(16, 30, 52, 0.82));
  color: #cde7ff;
}

[data-theme-version="dark"] .uli-ga-cost-panel {
  border-color: rgba(71, 85, 105, 0.66);
  background: linear-gradient(140deg, rgba(12, 35, 48, 0.58), rgba(15, 23, 42, 0.88));
}

[data-theme-version="dark"] .uli-ga-cost-head label {
  color: #f8fafc;
}

[data-theme-version="dark"] .uli-ga-cost-hint {
  color: #5eead4;
}

[data-theme-version="dark"] .uli-ga-cost-input-wrap {
  border-color: rgba(71, 85, 105, 0.65);
  background: rgba(15, 23, 42, 0.86);
}

[data-theme-version="dark"] .uli-ga-cost-prefix {
  color: #9db0cb;
}

[data-theme-version="dark"] .uli-ga-cost-input-wrap .form-control {
  color: #e2e8f0;
}

[data-theme-version="dark"] .uli-ga-cost-preset {
  border-color: rgba(71, 85, 105, 0.74);
  background: rgba(15, 23, 42, 0.8);
  color: #d7e4f5;
}

[data-theme-version="dark"] .uli-ga-cost-preset:hover,
[data-theme-version="dark"] .uli-ga-cost-preset:focus-visible {
  border-color: rgba(45, 212, 191, 0.78);
  background: rgba(20, 184, 166, 0.28);
  color: #bff7ef;
}

[data-theme-version="dark"] .uli-ga-cost-preset.is-active {
  border-color: rgba(45, 212, 191, 0.8);
  background: rgba(13, 148, 136, 0.36);
  color: #ccfbf1;
}

[data-theme-version="dark"] .uli-graph-dropzone {
  border-color: #355072;
  background: rgba(12, 22, 42, 0.55);
}

[data-theme-version="dark"] .uli-graph-pill {
  border-color: #355072;
  background: rgba(15, 23, 42, 0.82);
  color: #dbe6f7;
}

[data-theme-version="dark"] .uli-graph-guidance-card {
  border-color: #355072;
  background: linear-gradient(180deg, rgba(13, 26, 46, 0.92) 0%, rgba(10, 20, 37, 0.92) 100%);
}

[data-theme-version="dark"] .uli-graph-guidance-card h6 {
  color: #dce9ff;
}

[data-theme-version="dark"] .uli-graph-guidance-why {
  border-color: #44658d;
  color: #cbe2ff;
  background: rgba(29, 49, 78, 0.75);
}

[data-theme-version="dark"] .uli-graph-guidance-chip {
  border-color: #3e5b81;
  background: rgba(23, 39, 65, 0.86);
  color: #dbe6f7;
}

[data-theme-version="dark"] .uli-graph-guidance-bullets li,
[data-theme-version="dark"] .uli-graph-guidance-checklist li {
  color: #c6d7ef;
}

[data-theme-version="dark"] .uli-chart-preflight-panel {
  border-color: #355072;
  background: rgba(13, 26, 46, 0.92);
  box-shadow: none;
}

[data-theme-version="dark"] .uli-chart-preflight-panel.is-ok {
  border-left-color: #22c55e;
  background: rgba(22, 74, 43, 0.35);
}

[data-theme-version="dark"] .uli-chart-preflight-panel.is-warn {
  border-left-color: #f59e0b;
  background: rgba(120, 76, 9, 0.3);
}

[data-theme-version="dark"] .uli-chart-preflight-panel.is-error {
  border-left-color: #ef4444;
  background: rgba(127, 29, 29, 0.36);
}

[data-theme-version="dark"] .uli-chart-preflight-item {
  border-color: #3d5677;
  background: rgba(10, 20, 37, 0.75);
}

[data-theme-version="dark"] .uli-chart-preflight-item-ok {
  border-color: #1f7a45;
}

[data-theme-version="dark"] .uli-chart-preflight-badge-error {
  background: rgba(220, 38, 38, 0.25);
  color: #fecaca;
}

[data-theme-version="dark"] .uli-chart-preflight-badge-warn {
  background: rgba(217, 119, 6, 0.28);
  color: #fde68a;
}

[data-theme-version="dark"] .uli-chart-preflight-badge-info {
  background: rgba(37, 99, 235, 0.28);
  color: #bfdbfe;
}

[data-theme-version="dark"] .uli-chart-preflight-issue-title {
  color: #dbe6f7;
}

[data-theme-version="dark"] .uli-chart-preflight-hint {
  color: #9fb2cd;
}

[data-theme-version="dark"] .uli-graph-pill:hover,
[data-theme-version="dark"] .uli-graph-pill:focus-visible {
  border-color: #4ad3c7;
  background: rgba(7, 39, 48, 0.55);
  color: #bff7ef;
}

[data-theme-version="dark"] .uli-graph-pill.is-selected {
  border-color: #4ad3c7;
  background: linear-gradient(180deg, rgba(32, 117, 112, 0.55) 0%, rgba(18, 91, 87, 0.72) 100%);
  color: #dcfff8;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}

[data-theme-version="dark"] .uli-graph-dropzone:hover,
[data-theme-version="dark"] .uli-graph-dropzone.is-dragover {
  border-color: #4ad3c7;
  background: rgba(7, 39, 48, 0.55);
  box-shadow: 0 12px 28px rgba(2, 6, 23, 0.4);
}

[data-theme-version="dark"] .uli-graph-thumb {
  border-color: #2f4564;
  background: rgba(15, 23, 42, 0.82);
  box-shadow: none;
}

[data-theme-version="dark"] .uli-graph-thumb-remove {
  background: rgba(15, 23, 42, 0.88);
  color: #f8fafc;
}

[data-theme-version="dark"] .uli-graph-thumb-remove:hover,
[data-theme-version="dark"] .uli-graph-thumb-remove:focus-visible {
  background: rgba(220, 38, 38, 0.92);
}

[data-theme-version="dark"] .uli-graph-thumb-meta {
  border-top-color: #2f4564;
}

[data-theme-version="dark"] .uli-graph-thumb-name {
  color: #dbe6f7;
}

[data-theme-version="dark"] .uli-graph-thumb-size {
  color: #9db0cb;
}

[data-theme-version="dark"] .uli-graph-result-text {
  border-color: #324a6b;
  background: rgba(15, 23, 42, 0.74);
  color: #e2e8f0;
}

[data-theme-version="dark"] .uli-graph-result-text h1,
[data-theme-version="dark"] .uli-graph-result-text h2,
[data-theme-version="dark"] .uli-graph-result-text h3,
[data-theme-version="dark"] .uli-graph-result-text h4 {
  color: #f8fafc;
}

[data-theme-version="dark"] .uli-graph-result-text code {
  background: rgba(148, 163, 184, 0.2);
}

[data-theme-version="dark"] .uli-graph-result-text pre {
  background: rgba(15, 23, 42, 0.82);
}

[data-theme-version="dark"] .uli-graph-result-text blockquote {
  border-left-color: #38bdf8;
  color: #cbd5e1;
}

[data-theme-version="dark"] .uli-graph-report-card {
  border-color: rgba(148, 163, 184, 0.28);
}

[data-theme-version="dark"] .uli-graph-strategy-panel {
  background: rgba(54, 185, 204, 0.14);
  border-left-color: rgba(54, 185, 204, 0.8);
  color: #dbeafe;
}

[data-theme-version="dark"] .uli-graph-history-preview {
  color: #cbd5e1;
}

[data-theme-version="dark"] .uli-graph-signal-hero {
  border-color: rgba(100, 116, 139, 0.34);
  background: linear-gradient(130deg, rgba(15, 23, 42, 0.84), rgba(8, 15, 34, 0.9));
}

[data-theme-version="dark"] .uli-graph-signal-hero.uli-tone-long {
  border-color: rgba(34, 197, 94, 0.42);
  box-shadow: none;
}

[data-theme-version="dark"] .uli-graph-signal-hero.uli-tone-short {
  border-color: rgba(37, 99, 235, 0.46);
  box-shadow: none;
}

[data-theme-version="dark"] .uli-graph-signal-hero.uli-tone-no-trade {
  border-color: rgba(239, 68, 68, 0.44);
  box-shadow: none;
}

[data-theme-version="dark"] .uli-graph-signal-hero.uli-tone-wait {
  border-color: rgba(245, 158, 11, 0.34);
  box-shadow: none;
}

[data-theme-version="dark"] .uli-graph-decision-badge.uli-tone-long {
  color: #dcfce7;
  border-color: rgba(34, 197, 94, 0.52);
  background: rgba(22, 163, 74, 0.36);
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.22), 0 8px 18px rgba(6, 95, 70, 0.32);
}

[data-theme-version="dark"] .uli-graph-decision-badge.uli-tone-short {
  color: #dbeafe;
  border-color: rgba(59, 130, 246, 0.54);
  background: rgba(37, 99, 235, 0.34);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.25), 0 8px 18px rgba(30, 64, 175, 0.34);
}

[data-theme-version="dark"] .uli-graph-decision-badge.uli-tone-no-trade {
  color: #fee2e2;
  border-color: rgba(248, 113, 113, 0.52);
  background: rgba(185, 28, 28, 0.36);
}

[data-theme-version="dark"] .uli-graph-decision-badge.uli-tone-wait {
  color: #fef3c7;
  border-color: rgba(245, 158, 11, 0.5);
  background: rgba(180, 83, 9, 0.34);
}

[data-theme-version="dark"] .uli-graph-confidence-label {
  color: #cbd5e1;
}

[data-theme-version="dark"] .uli-graph-confidence-value {
  color: #f8fafc;
}

[data-theme-version="dark"] .uli-graph-hero-footer {
  border-top-color: rgba(100, 116, 139, 0.56);
}

[data-theme-version="dark"] .uli-graph-report-card {
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.34);
}

[data-theme-version="dark"] .uli-graph-timeframe-card,
[data-theme-version="dark"] .uli-graph-signal-item {
  border-color: rgba(100, 116, 139, 0.42);
  background: rgba(15, 23, 42, 0.54);
}

[data-theme-version="dark"] .uli-graph-level-value {
  color: #e2e8f0;
}

[data-theme-version="dark"] .uli-graph-level-label,
[data-theme-version="dark"] .uli-graph-range-meta {
  color: #94a3b8;
}

[data-theme-version="dark"] .uli-graph-strength-progress,
[data-theme-version="dark"] .uli-graph-confidence-progress {
  background: rgba(71, 85, 105, 0.56);
}

[data-theme-version="dark"] .uli-graph-range-marker {
  border-color: rgba(15, 23, 42, 0.95);
  background: #f8fafc;
}

[data-theme-version="dark"] .uli-graph-chip-neutral {
  color: #e2e8f0;
  border-color: rgba(148, 163, 184, 0.44);
  background: rgba(71, 85, 105, 0.5);
}

[data-theme-version="dark"] .uli-graph-chip-long {
  color: #86efac;
  border-color: rgba(34, 197, 94, 0.42);
  background: rgba(21, 128, 61, 0.33);
}

[data-theme-version="dark"] .uli-graph-chip-short {
  color: #bfdbfe;
  border-color: rgba(59, 130, 246, 0.45);
  background: rgba(29, 78, 216, 0.34);
}

[data-theme-version="dark"] .uli-graph-chip-no-trade {
  color: #fecaca;
  border-color: rgba(248, 113, 113, 0.46);
  background: rgba(153, 27, 27, 0.36);
}

[data-theme-version="dark"] .uli-graph-chip-wait {
  color: #fde68a;
  border-color: rgba(217, 119, 6, 0.44);
  background: rgba(146, 64, 14, 0.34);
}

[data-theme-version="dark"] .uli-graph-details summary,
[data-theme-version="dark"] .uli-graph-advanced-details summary {
  color: #93c5fd;
}

[data-theme-version="dark"] .uli-graph-hero-action.btn-outline-primary {
  color: #bfdbfe;
  border-color: rgba(96, 165, 250, 0.72);
  background: rgba(30, 58, 138, 0.14);
}

[data-theme-version="dark"] .uli-graph-hero-action.btn-outline-primary:hover,
[data-theme-version="dark"] .uli-graph-hero-action.btn-outline-primary:focus {
  color: #f8fafc;
  border-color: rgba(147, 197, 253, 0.95);
  background: rgba(59, 130, 246, 0.26);
}

[data-theme-version="dark"] .uli-graph-hero-action.btn-success {
  color: #0f172a !important;
}

[data-theme-version="dark"] .uli-graph-hero-action.btn-success:hover,
[data-theme-version="dark"] .uli-graph-hero-action.btn-success:focus,
[data-theme-version="dark"] .uli-graph-hero-action.btn-success:active {
  color: #0f172a !important;
}

[data-theme-version="dark"] .uli-graph-report-card .text-muted {
  color: #cbd5e1 !important;
}

[data-theme-version="dark"] .uli-graph-report-card li,
[data-theme-version="dark"] .uli-graph-report-card p {
  color: #e2e8f0;
}

@media (max-width: 991.98px) {
  .uli-graph-pill-group-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .uli-graph-pill-group-3 {
    grid-template-columns: 1fr;
  }

  .uli-graph-snapshot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .uli-graph-hero-footer {
    justify-content: stretch;
    flex-direction: column;
    align-items: stretch;
  }

  .uli-graph-hero-action {
    width: 100%;
    min-width: 0;
  }

  .uli-graph-timeframe-grid {
    grid-template-columns: 1fr;
  }

  .uli-graph-signal-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .uli-ga-modal-hero,
  .uli-ga-modal-grid {
    grid-template-columns: 1fr;
  }

  .uli-ga-modal .modal-footer {
    justify-content: center;
  }
}

@media (max-width: 575.98px) {
  .uli-graph-snapshot-grid {
    grid-template-columns: 1fr;
  }
}

/* Light theme button contrast fixes.
   Base theme CSS forces white disabled text and very light outline colors. */
[data-theme-version="light"] .btn.btn-primary,
[data-theme-version="light"] .btn.btn-secondary,
[data-theme-version="light"] .btn.btn-success,
[data-theme-version="light"] .btn.btn-info,
[data-theme-version="light"] .btn.btn-warning,
[data-theme-version="light"] .btn.btn-danger,
[data-theme-version="light"] .btn.btn-light {
  color: #0f172a;
}

[data-theme-version="light"] .btn.btn-dark {
  color: #ffffff;
}

[data-theme-version="light"] .btn.btn-light:hover,
[data-theme-version="light"] .btn.btn-light:focus,
[data-theme-version="light"] .btn.btn-light:active,
[data-theme-version="light"] .btn.btn-light.active {
  color: #0f172a;
}

[data-theme-version="light"] .btn-outline-primary {
  --bs-btn-color: #0f766e;
  --bs-btn-border-color: #14b8a6;
  --bs-btn-hover-color: #0f172a;
  --bs-btn-hover-bg: #14b8a6;
  --bs-btn-hover-border-color: #14b8a6;
  --bs-btn-active-color: #0f172a;
  --bs-btn-active-bg: #14b8a6;
  --bs-btn-active-border-color: #14b8a6;
  --bs-btn-disabled-color: #0f766e;
  --bs-btn-disabled-border-color: #14b8a6;
}

[data-theme-version="light"] .btn-outline-secondary {
  --bs-btn-color: #355772;
  --bs-btn-border-color: #5f87a6;
  --bs-btn-hover-color: #0f172a;
  --bs-btn-hover-bg: #5f87a6;
  --bs-btn-hover-border-color: #5f87a6;
  --bs-btn-active-color: #0f172a;
  --bs-btn-active-bg: #5f87a6;
  --bs-btn-active-border-color: #5f87a6;
  --bs-btn-disabled-color: #355772;
  --bs-btn-disabled-border-color: #5f87a6;
}

[data-theme-version="light"] .btn-outline-success {
  --bs-btn-color: #166534;
  --bs-btn-border-color: #22a45a;
  --bs-btn-hover-color: #0f172a;
  --bs-btn-hover-bg: #22a45a;
  --bs-btn-hover-border-color: #22a45a;
  --bs-btn-active-color: #0f172a;
  --bs-btn-active-bg: #22a45a;
  --bs-btn-active-border-color: #22a45a;
  --bs-btn-disabled-color: #166534;
  --bs-btn-disabled-border-color: #22a45a;
}

[data-theme-version="light"] .btn-outline-info {
  --bs-btn-color: #6b21a8;
  --bs-btn-border-color: #8b4cc4;
  --bs-btn-hover-color: #0f172a;
  --bs-btn-hover-bg: #8b4cc4;
  --bs-btn-hover-border-color: #8b4cc4;
  --bs-btn-active-color: #0f172a;
  --bs-btn-active-bg: #8b4cc4;
  --bs-btn-active-border-color: #8b4cc4;
  --bs-btn-disabled-color: #6b21a8;
  --bs-btn-disabled-border-color: #8b4cc4;
}

[data-theme-version="light"] .btn-outline-warning {
  --bs-btn-color: #8a4b0f;
  --bs-btn-border-color: #dd8a34;
  --bs-btn-hover-color: #0f172a;
  --bs-btn-hover-bg: #dd8a34;
  --bs-btn-hover-border-color: #dd8a34;
  --bs-btn-active-color: #0f172a;
  --bs-btn-active-bg: #dd8a34;
  --bs-btn-active-border-color: #dd8a34;
  --bs-btn-disabled-color: #8a4b0f;
  --bs-btn-disabled-border-color: #dd8a34;
}

[data-theme-version="light"] .btn-outline-danger {
  --bs-btn-color: #b4232f;
  --bs-btn-border-color: #dc405a;
  --bs-btn-hover-color: #0f172a;
  --bs-btn-hover-bg: #dc405a;
  --bs-btn-hover-border-color: #dc405a;
  --bs-btn-active-color: #0f172a;
  --bs-btn-active-bg: #dc405a;
  --bs-btn-active-border-color: #dc405a;
  --bs-btn-disabled-color: #b4232f;
  --bs-btn-disabled-border-color: #dc405a;
}

[data-theme-version="light"] .btn-outline-light {
  --bs-btn-color: #475569;
  --bs-btn-border-color: #94a3b8;
  --bs-btn-hover-color: #0f172a;
  --bs-btn-hover-bg: #cbd5e1;
  --bs-btn-hover-border-color: #94a3b8;
  --bs-btn-active-color: #0f172a;
  --bs-btn-active-bg: #cbd5e1;
  --bs-btn-active-border-color: #94a3b8;
  --bs-btn-disabled-color: #64748b;
  --bs-btn-disabled-border-color: #94a3b8;
}

[data-theme-version="light"] .btn-outline-dark {
  --bs-btn-color: #111827;
  --bs-btn-border-color: #374151;
  --bs-btn-hover-color: #ffffff;
  --bs-btn-hover-bg: #111827;
  --bs-btn-hover-border-color: #111827;
  --bs-btn-active-color: #ffffff;
  --bs-btn-active-bg: #111827;
  --bs-btn-active-border-color: #111827;
  --bs-btn-disabled-color: #374151;
  --bs-btn-disabled-border-color: #374151;
}

[data-theme-version="light"] .btn-outline-primary:hover,
[data-theme-version="light"] .btn-outline-primary:focus,
[data-theme-version="light"] .btn-outline-primary:active,
[data-theme-version="light"] .btn-outline-primary.active,
[data-theme-version="light"] .btn-outline-secondary:hover,
[data-theme-version="light"] .btn-outline-secondary:focus,
[data-theme-version="light"] .btn-outline-secondary:active,
[data-theme-version="light"] .btn-outline-secondary.active,
[data-theme-version="light"] .btn-outline-success:hover,
[data-theme-version="light"] .btn-outline-success:focus,
[data-theme-version="light"] .btn-outline-success:active,
[data-theme-version="light"] .btn-outline-success.active,
[data-theme-version="light"] .btn-outline-info:hover,
[data-theme-version="light"] .btn-outline-info:focus,
[data-theme-version="light"] .btn-outline-info:active,
[data-theme-version="light"] .btn-outline-info.active,
[data-theme-version="light"] .btn-outline-warning:hover,
[data-theme-version="light"] .btn-outline-warning:focus,
[data-theme-version="light"] .btn-outline-warning:active,
[data-theme-version="light"] .btn-outline-warning.active,
[data-theme-version="light"] .btn-outline-danger:hover,
[data-theme-version="light"] .btn-outline-danger:focus,
[data-theme-version="light"] .btn-outline-danger:active,
[data-theme-version="light"] .btn-outline-danger.active {
  color: #0f172a;
}

[data-theme-version="light"] .btn:disabled,
[data-theme-version="light"] .btn.disabled,
[data-theme-version="light"] fieldset:disabled .btn {
  color: var(--bs-btn-disabled-color, #475569) !important;
}

/* Backtest page */
.ai-bt-page-head {
  gap: 0.75rem;
}

.ai-bt-allowance-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(100, 116, 139, 0.28);
  background: rgba(148, 163, 184, 0.12);
  color: #334155;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
}

.ai-bt-form-section {
  border: 1px solid rgba(100, 116, 139, 0.18);
  border-radius: 0.8rem;
  padding: 1rem 1rem 0.25rem;
}

.ai-bt-form-title {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
  color: #3c4a64;
}

.ai-bt-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.ai-bt-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(100, 116, 139, 0.28);
  background: rgba(148, 163, 184, 0.12);
  color: #334155;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.1;
  padding: 0.36rem 0.72rem;
}

.ai-bt-preset-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 0.5rem;
}

.ai-bt-execution-grid {
  grid-template-columns: repeat(2, minmax(160px, 1fr));
}

.ai-bt-preset-btn {
  text-align: center;
  white-space: normal;
  min-height: 2.35rem;
  font-size: 0.86rem;
}

.ai-bt-preset-btn[disabled] {
  cursor: not-allowed;
  opacity: 0.55;
}

.ai-bt-json-editor {
  min-height: 190px;
  resize: vertical;
}

#aiBacktestRoot .form-check.form-switch {
  display: flex;
  align-items: center;
  min-height: 1.5rem;
  padding-left: 2.9em;
}

#aiBacktestRoot .form-check.form-switch .form-check-input {
  width: 2.35rem;
  height: 1.25rem;
  margin-top: 0;
  margin-left: -2.9em;
  cursor: pointer;
  border-radius: 999px;
  border: 1px solid rgba(118, 141, 170, 0.45);
  background-color: rgba(118, 141, 170, 0.2);
  background-image: radial-gradient(circle at center, #ffffff 0 45%, transparent 47%) !important;
  background-repeat: no-repeat !important;
  background-size: 0.92rem 0.92rem !important;
  background-position: 0.14rem 50% !important;
  transition: background-color 0.2s ease, border-color 0.2s ease, background-position 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: none;
}

#aiBacktestRoot .form-check.form-switch .form-check-input:checked {
  border-color: var(--primary);
  background-color: rgba(82, 161, 255, 0.42);
  background-image: radial-gradient(circle at center, #ffffff 0 45%, transparent 47%) !important;
  background-position: calc(100% - 0.14rem) 50% !important;
}

#aiBacktestRoot .form-check.form-switch .form-check-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(82, 161, 255, 0.22);
}

[data-theme-version="dark"] #aiBacktestRoot .form-check.form-switch .form-check-input {
  border-color: rgba(120, 145, 175, 0.52);
  background-color: rgba(120, 145, 175, 0.2);
  background-image: radial-gradient(circle at center, #dbe3f0 0 45%, transparent 47%) !important;
}

[data-theme-version="dark"] #aiBacktestRoot .form-check.form-switch .form-check-input:checked {
  border-color: rgba(91, 172, 255, 0.82);
  background-color: rgba(91, 172, 255, 0.5);
  background-image: radial-gradient(circle at center, #dbe3f0 0 45%, transparent 47%) !important;
  background-position: calc(100% - 0.14rem) 50% !important;
}

.ai-bt-warning-pill {
  border: 1px solid rgba(245, 158, 11, 0.45);
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.14);
  color: #b45309;
  padding: 0.35rem 0.75rem;
  margin-bottom: 0.8rem;
  font-size: 0.82rem;
}

.ai-bt-inline-toast {
  border: 1px solid rgba(15, 118, 110, 0.36);
  border-radius: 0.55rem;
  background: rgba(13, 148, 136, 0.08);
  color: #0f766e;
  padding: 0.4rem 0.65rem;
  margin-bottom: 0.8rem;
  font-size: 0.8rem;
}

.ai-bt-inline-toast-warning {
  border-color: rgba(245, 158, 11, 0.45);
  background: rgba(245, 158, 11, 0.14);
  color: #b45309;
  margin-top: 0.7rem;
  margin-bottom: 0.9rem;
}

.ai-bt-progress {
  height: 0.9rem;
  background: rgba(15, 23, 42, 0.08);
  border-radius: 999px;
}

.ai-bt-progress-bar {
  min-width: 3rem;
  font-size: 0.7rem;
  font-weight: 700;
}

.ai-bt-pill-direction-long {
  border-color: rgba(22, 163, 74, 0.34);
  background: rgba(22, 163, 74, 0.12);
  color: #15803d;
}

.ai-bt-pill-direction-short {
  border-color: rgba(220, 38, 38, 0.34);
  background: rgba(220, 38, 38, 0.12);
  color: #b91c1c;
}

.ai-bt-actions .btn {
  min-width: 220px;
}

.ai-bt-hero {
  border: 1px solid rgba(100, 116, 139, 0.2);
  border-radius: 1rem;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  background: linear-gradient(135deg, rgba(226, 232, 240, 0.4), rgba(148, 163, 184, 0.08));
}

.ai-bt-hero-positive {
  border-color: rgba(22, 163, 74, 0.35);
}

.ai-bt-hero-negative {
  border-color: rgba(220, 38, 38, 0.35);
}

.ai-bt-hero-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
}

.ai-bt-hero-value {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
}

.ai-bt-hero-sub {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.86rem;
  color: #4b5563;
}

.ai-bt-hero-right {
  min-width: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.ai-bt-win-ring {
  --pct: 0;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: conic-gradient(#16a34a calc(var(--pct) * 1%), rgba(148, 163, 184, 0.24) 0);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-bt-hero-negative .ai-bt-win-ring {
  background: conic-gradient(#dc2626 calc(var(--pct) * 1%), rgba(148, 163, 184, 0.24) 0);
}

.ai-bt-win-ring-inner {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.18);
}

.ai-bt-win-rate-value {
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.1;
}

.ai-bt-win-rate-label {
  font-size: 0.58rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}

.ai-bt-chip {
  border-radius: 999px;
  border: 1px solid rgba(100, 116, 139, 0.35);
  background: rgba(148, 163, 184, 0.12);
  font-size: 0.8rem;
  padding: 0.2rem 0.6rem;
}

.ai-bt-chip-negative {
  border-color: rgba(220, 38, 38, 0.35);
  color: #b91c1c;
}

.ai-bt-context-bar {
  border: 1px solid rgba(100, 116, 139, 0.2);
  border-radius: 0.8rem;
  padding: 0.75rem;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.03), rgba(15, 23, 42, 0.01));
}

.ai-bt-data-row {
  font-size: 0.82rem;
  color: #4b5563;
  margin-bottom: 0.2rem;
}

.ai-bt-data-note {
  font-size: 0.76rem;
  color: #6b7280;
  margin-top: 0.3rem;
}

.ai-bt-data-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.ai-bt-data-cell {
  border: 1px solid rgba(100, 116, 139, 0.22);
  border-radius: 0.6rem;
  padding: 0.55rem 0.65rem;
  background: rgba(148, 163, 184, 0.08);
}

.ai-bt-data-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin-bottom: 0.2rem;
}

.ai-bt-data-value {
  font-size: 0.82rem;
  color: #0f172a;
  font-weight: 600;
  line-height: 1.25;
}

.ai-bt-data-flags {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-top: 0.6rem;
}

.ai-bt-entry-gap-note {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  margin-top: 0.45rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid rgba(14, 116, 144, 0.35);
  border-left: 4px solid #0ea5e9;
  border-radius: 0.55rem;
  background: rgba(14, 165, 233, 0.08);
  color: #0f172a;
  font-size: 0.8rem;
  line-height: 1.35;
}

.ai-bt-entry-gap-note i {
  color: #0369a1;
  margin-top: 0.08rem;
  flex: 0 0 auto;
}

.ai-bt-data-warning-pill {
  display: inline-flex;
  margin-top: 0.45rem;
  margin-bottom: 0.45rem;
  margin-right: 0.4rem;
}

.ai-bt-data-suggest-btn {
  margin-top: 0.45rem;
  margin-bottom: 0.45rem;
  font-size: 0.74rem;
}

.ai-bt-kpi {
  border: 1px solid rgba(100, 116, 139, 0.22);
  border-radius: 0.8rem;
  padding: 0.75rem;
  height: 100%;
  background: rgba(148, 163, 184, 0.05);
}

.ai-bt-kpi-icon {
  color: #64748b;
  margin-bottom: 0.3rem;
}

.ai-bt-kpi-value {
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 0.2rem;
}

.ai-bt-kpi-label {
  color: #64748b;
  font-size: 0.78rem;
}

.ai-bt-kpi-positive {
  border-color: rgba(22, 163, 74, 0.35);
}

.ai-bt-kpi-positive .ai-bt-kpi-icon {
  color: #16a34a;
}

.ai-bt-kpi-negative {
  border-color: rgba(220, 38, 38, 0.35);
}

.ai-bt-kpi-negative .ai-bt-kpi-icon {
  color: #dc2626;
}

.ai-bt-chart-wrap {
  height: 280px;
  position: relative;
}

.ai-bt-monthly-chart-wrap {
  height: 300px;
}

.ai-bt-monthly-side {
  border: 1px solid rgba(100, 116, 139, 0.22);
  border-radius: 0.8rem;
  padding: 0.75rem;
  height: 100%;
}

#aiBacktestTradesBody .table td.text-right,
#aiBacktestTradesBody .table th.text-right {
  text-align: right;
}

#aiBacktestTradesBody .table tbody tr.ai-bt-row-even {
  background-color: rgba(148, 163, 184, 0.06);
}

#aiBacktestTradesBody .table tbody tr:hover {
  background-color: rgba(14, 165, 233, 0.09);
}

.badge-soft {
  background-color: rgba(148, 163, 184, 0.18);
}

[data-theme-version="dark"] .ai-bt-form-section,
[data-theme-version="dark"] .ai-bt-kpi,
[data-theme-version="dark"] .ai-bt-monthly-side,
[data-theme-version="dark"] .ai-bt-hero {
  border-color: rgba(148, 163, 184, 0.3);
}

[data-theme-version="dark"] .ai-bt-allowance-chip,
[data-theme-version="dark"] .ai-bt-pill {
  border-color: rgba(148, 163, 184, 0.4);
  background: rgba(71, 85, 105, 0.3);
  color: #dbe5f2;
}

[data-theme-version="dark"] .ai-bt-form-title,
[data-theme-version="dark"] .ai-bt-hero-label,
[data-theme-version="dark"] .ai-bt-kpi-label,
[data-theme-version="dark"] .ai-bt-hero-sub {
  color: #cbd5e1;
}

[data-theme-version="dark"] .ai-bt-data-row,
[data-theme-version="dark"] .ai-bt-data-note {
  color: #cbd5e1;
}

[data-theme-version="dark"] .ai-bt-context-bar {
  border-color: rgba(148, 163, 184, 0.3);
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.5), rgba(30, 41, 59, 0.35));
}

[data-theme-version="dark"] .ai-bt-data-cell {
  border-color: rgba(148, 163, 184, 0.35);
  background: rgba(71, 85, 105, 0.28);
}

[data-theme-version="dark"] .ai-bt-data-label {
  color: #93c5fd;
}

[data-theme-version="dark"] .ai-bt-data-value {
  color: #e2e8f0;
}

[data-theme-version="dark"] .ai-bt-entry-gap-note {
  border-color: rgba(56, 189, 248, 0.5);
  border-left-color: #38bdf8;
  background: rgba(2, 132, 199, 0.2);
  color: #e0f2fe;
}

[data-theme-version="dark"] .ai-bt-entry-gap-note i {
  color: #7dd3fc;
}

[data-theme-version="dark"] .ai-bt-inline-toast {
  border-color: rgba(45, 212, 191, 0.35);
  background: rgba(15, 118, 110, 0.2);
  color: #99f6e4;
}

[data-theme-version="dark"] .ai-bt-inline-toast-warning {
  border-color: rgba(251, 191, 36, 0.5);
  background: rgba(180, 83, 9, 0.25);
  color: #fcd34d;
}

[data-theme-version="dark"] .ai-bt-progress {
  background: rgba(148, 163, 184, 0.22);
}

[data-theme-version="dark"] .ai-bt-pill-direction-long {
  border-color: rgba(74, 222, 128, 0.45);
  background: rgba(22, 163, 74, 0.2);
  color: #86efac;
}

[data-theme-version="dark"] .ai-bt-pill-direction-short {
  border-color: rgba(252, 165, 165, 0.45);
  background: rgba(220, 38, 38, 0.2);
  color: #fca5a5;
}

[data-theme-version="dark"] .ai-bt-win-ring-inner {
  background: #111827;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.3);
}

[data-theme-version="dark"] .ai-bt-win-rate-label {
  color: #cbd5e1;
}

[data-theme-version="dark"] .ai-bt-warning-pill {
  color: #fbbf24;
}

[data-theme-version="dark"] .ai-bt-chip-negative {
  color: #fca5a5;
}

[data-theme-version="dark"] #aiBacktestTradesBody .table tbody tr.ai-bt-row-even {
  background-color: rgba(71, 85, 105, 0.22);
}

[data-theme-version="dark"] #aiBacktestTradesBody .table tbody tr:hover {
  background-color: rgba(14, 165, 233, 0.14);
}

@media (max-width: 991.98px) {
  .ai-bt-preset-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ai-bt-execution-grid {
    grid-template-columns: 1fr;
  }

  .ai-bt-hero {
    flex-direction: column;
  }

  .ai-bt-hero-right {
    align-items: flex-start;
  }

  .ai-bt-data-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .ai-bt-actions {
    flex-direction: column;
    align-items: stretch !important;
  }

  .ai-bt-actions .btn {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 575.98px) {
  .ai-bt-preset-grid {
    grid-template-columns: 1fr;
  }
}

/* Unified sidebar/content/footer layout contract */
.app-layout {
  display: block;
  min-height: 100vh;
}

body.has-sidebar .nav-header,
body.has-sidebar .dlabnav {
  width: var(--sidebar-width) !important;
}

body.has-sidebar .nav-header .logo-area {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  min-height: 72px;
  padding: 12px;
}

body.has-sidebar.sidebar-collapsed .nav-header .logo-area {
  justify-content: center;
  gap: 0;
}

body.has-sidebar.sidebar-collapsed .nav-header .logo-area .brand-title {
  display: none !important;
}

body.has-sidebar .dlabnav {
  flex: 0 0 var(--sidebar-width);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

body.has-sidebar .dlabnav .dlabnav-scroll {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

body.has-sidebar .dlabnav .metismenu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
}

body.has-sidebar .dlabnav .metismenu > li > a {
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 12px;
  min-height: 3.15rem;
  padding: 0.8rem 0.95rem;
}

/* Keep icon/text spacing tight and consistent across all menu rows. */
body.has-sidebar .dlabnav .metismenu > li > ul {
  padding-top: 0.3rem;
  padding-bottom: 0.3rem;
}

body.has-sidebar .dlabnav .metismenu > li > ul a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 3.15rem;
  padding-top: 0.8rem;
  padding-right: 0.95rem;
  padding-bottom: 0.8rem;
  white-space: nowrap;
}

body.has-sidebar .dlabnav .metismenu li > a > i,
body.has-sidebar .dlabnav .metismenu li > a > svg,
body.has-sidebar .dlabnav .metismenu > li > ul a > i,
body.has-sidebar .dlabnav .metismenu > li > ul a > svg {
  flex: 0 0 1rem;
  width: 1rem;
  margin-right: 0 !important;
  text-align: center;
}

body.has-sidebar.sidebar-collapsed .dlabnav .metismenu > li {
  padding-left: 8px !important;
  padding-right: 8px !important;
}

body.has-sidebar.sidebar-collapsed .dlabnav .metismenu > li > a {
  justify-content: center !important;
  padding: 10px !important;
  gap: 0 !important;
}

body.has-sidebar.sidebar-collapsed .dlabnav .metismenu > li > a .nav-text,
body.has-sidebar.sidebar-collapsed .dlabnav .metismenu > li > a .menu-arrow {
  display: none !important;
}

body.has-sidebar.sidebar-collapsed .dlabnav .metismenu > li > a > i,
body.has-sidebar.sidebar-collapsed .dlabnav .metismenu > li > a > svg {
  margin: 0 !important;
}

body.has-sidebar .content-body.content-shell {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  min-height: calc(100vh - 7.5rem);
}

body.has-sidebar .dlabnav .metismenu > li > a .nav-text {
  white-space: nowrap;
}

body.has-sidebar.sidebar-collapsed[data-layout="vertical"][data-sidebar-style="full"] #main-wrapper.menu-toggle .nav-header,
body.has-sidebar.sidebar-collapsed[data-layout="vertical"][data-sidebar-style="full"] #main-wrapper.menu-toggle .dlabnav {
  width: var(--sidebar-collapsed) !important;
}

body.has-sidebar.sidebar-collapsed[data-layout="vertical"][data-sidebar-style="full"] #main-wrapper.menu-toggle .nav-header .nav-control {
  right: -4rem !important;
  top: 55% !important;
  transform: translateY(-50%) !important;
}

@media (max-width: 767.98px) {
  body.has-sidebar .nav-header .nav-control {
    display: none !important;
  }

  body.has-sidebar.sidebar-collapsed[data-sidebar-style="full"][data-layout="vertical"] #main-wrapper.menu-toggle .nav-header .nav-control {
    display: none !important;
  }
}

@media (min-width: 768.01px) {
  .uli-mobile-only {
    display: none !important;
  }
}

.uli-mobile-menu-trigger {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.uli-mobile-menu-trigger:focus-visible {
  outline: 2px solid rgba(59, 130, 246, 0.42);
  outline-offset: 4px;
  border-radius: 8px;
}

#mobileMenuButton .hamburger {
  top: 0;
}

body[data-theme-version="dark"] #mobileMenuButton .hamburger .line {
  background: #ffffff !important;
}

.main-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 7.5rem);
}

.page-container {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 24px;
  flex: 1 1 auto;
  min-width: 0;
}

.app-footer {
  flex-shrink: 0;
  margin-top: auto;
  margin-left: 0 !important;
  padding: 24px 24px 18px;
  border-top: 1px solid rgba(130, 145, 166, 0.22);
  background: transparent;
}

.footer-inner {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding-left: 30px;
  display: grid;
  gap: 10px;
}

.footer-brand {
  font-weight: 700;
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  opacity: 0.9;
}

.footer-disclaimer {
  opacity: 0.72;
  font-size: 12px;
  line-height: 1.4;
}

@media (min-width: 1200px) {
  :root {
    --content-max: 1480px;
  }
}

@media (max-width: 767.98px) {
  body.has-sidebar .content-body.content-shell,
  .main-content {
    min-height: calc(100vh - 5rem);
  }

  .page-container {
    padding: 16px;
  }

  .app-footer {
    padding: 18px 16px 14px;
  }

  .footer-inner {
    padding-left: 14px;
  }

  .app-footer .footer-brand,
  .app-footer .footer-disclaimer {
    margin-left: 0;
  }
}

/* Global form field visual refresh (mirrors the entry automation field styling). */
:root {
  --uli-field-border: #d6e2f5;
  --uli-field-border-strong: #b9cef1;
  --uli-field-text: #182947;
  --uli-field-text-muted: #7d8fa8;
  --uli-field-placeholder: #667a96;
  --uli-field-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.4));
  --uli-field-bg-muted: linear-gradient(180deg, rgba(248, 251, 255, 0.82), rgba(242, 247, 255, 0.66));
  --uli-field-focus-ring: rgba(46, 125, 255, 0.2);
}

[data-theme-version="dark"],
[data-theme="dark"] {
  --uli-field-border: rgba(123, 154, 211, 0.34);
  --uli-field-border-strong: rgba(141, 176, 236, 0.58);
  --uli-field-text: #e3edff;
  --uli-field-text-muted: #9db2d3;
  --uli-field-placeholder: #9db2d3;
  --uli-field-bg: linear-gradient(180deg, rgba(18, 40, 78, 0.78), rgba(12, 31, 64, 0.58));
  --uli-field-bg-muted: linear-gradient(180deg, rgba(16, 34, 66, 0.62), rgba(10, 24, 49, 0.5));
  --uli-field-focus-ring: rgba(108, 167, 255, 0.28);
}

input.form-control,
select.form-control,
textarea.form-control,
.form-select {
  border: 1px solid var(--uli-field-border);
  border-radius: 1rem;
  background: var(--uli-field-bg);
  color: var(--uli-field-text);
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 500;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

input.form-control,
select.form-control,
.form-select {
  min-height: 3.3rem;
}

input.form-control::placeholder,
textarea.form-control::placeholder {
  color: var(--uli-field-placeholder);
  opacity: 1;
}

input.form-control:focus,
select.form-control:focus,
textarea.form-control:focus,
.form-select:focus {
  border-color: var(--uli-field-border-strong);
  box-shadow: 0 0 0 0.22rem var(--uli-field-focus-ring);
  background: var(--uli-field-bg);
  color: var(--uli-field-text);
  transform: translateY(-1px);
}

input.form-control:disabled,
select.form-control:disabled,
textarea.form-control:disabled,
input.form-control[readonly],
textarea.form-control[readonly],
.form-select:disabled {
  background: var(--uli-field-bg-muted);
  color: var(--uli-field-text-muted);
  opacity: 1;
}

input.form-control.form-control-sm,
select.form-control.form-control-sm,
.form-select.form-select-sm {
  min-height: 2.5rem;
  border-radius: 0.8rem;
}

input.form-control.form-control-lg,
select.form-control.form-control-lg,
.form-select.form-select-lg {
  min-height: 4.5rem;
  border-radius: 1.1rem;
}

/* Liquidity Compass report refresh */
.lc-hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.95fr);
  gap: 1rem;
}

.lc-hero-primary,
.lc-hero-sidebar > article {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(112, 157, 210, 0.26);
  border-radius: 1rem;
  background: linear-gradient(160deg, rgba(11, 30, 58, 0.72), rgba(7, 21, 43, 0.82));
}

.lc-hero-primary {
  padding: 1rem 1.05rem;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.lc-hero-primary::before {
  content: "";
  position: absolute;
  inset: auto -10% -30% auto;
  width: 14rem;
  height: 14rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.16), transparent 68%);
  pointer-events: none;
}

.lc-hero-sidebar {
  display: grid;
  gap: 0.85rem;
  align-content: start;
}

.lc-hero-kicker {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(154, 201, 242, 0.86);
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.lc-hero-decision-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.lc-hero-decision-stack {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.lc-hero-decision-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.48rem 0.95rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
  backdrop-filter: blur(8px);
}

.lc-hero-context-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
}

.lc-hero-summary {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.55;
  color: rgba(221, 237, 255, 0.94);
  max-width: 62ch;
}

.lc-hero-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  gap: 0.65rem;
}

.lc-hero-meta-card {
  border: 1px solid rgba(121, 165, 216, 0.24);
  border-radius: 0.8rem;
  background: rgba(13, 35, 68, 0.56);
  padding: 0.7rem 0.78rem;
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}

.lc-hero-meta-label,
.lc-trade-action-label,
.lc-trade-level-label,
.lc-trade-brief-label,
.lc-trade-rationale-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(166, 205, 241, 0.82);
}

.lc-hero-meta-value {
  font-size: 0.88rem;
  color: rgba(234, 244, 255, 0.97);
}

.lc-hero-spotlight,
.lc-confidence-card {
  padding: 0.95rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.lc-hero-spotlight-label,
.lc-confidence-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(166, 206, 244, 0.84);
  font-weight: 700;
}

.lc-hero-spotlight-value {
  font-size: 1.8rem;
  line-height: 1.05;
  font-weight: 800;
  color: #f5fbff;
}

.lc-hero-spotlight-caption {
  font-size: 0.8rem;
  color: rgba(187, 214, 243, 0.8);
}

.lc-confidence-card--low {
  border-color: rgba(250, 204, 21, 0.34);
}

.lc-confidence-card--moderate {
  border-color: rgba(96, 165, 250, 0.34);
}

.lc-confidence-card--high {
  border-color: rgba(45, 212, 191, 0.34);
}

.lc-confidence-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
}

.lc-confidence-value {
  display: block;
  margin-top: 0.14rem;
  font-size: 1rem;
  color: rgba(241, 248, 255, 0.98);
}

.lc-confidence-score {
  font-size: 1.15rem;
  font-weight: 800;
  color: #f5fbff;
}

.lc-confidence-meter {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0.3rem;
  margin-top: 0.55rem;
}

.lc-confidence-dash {
  display: block;
  height: 0.52rem;
  border-radius: 999px;
  background: rgba(116, 149, 193, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lc-confidence-dash.is-active {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.lc-confidence-dash.is-edge {
  transform: scale(1.06);
}

.lc-confidence-meter--low .lc-confidence-dash.is-active {
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
}

.lc-confidence-meter--moderate .lc-confidence-dash.is-active {
  background: linear-gradient(90deg, #60a5fa, #2563eb);
}

.lc-confidence-meter--high .lc-confidence-dash.is-active {
  background: linear-gradient(90deg, #2dd4bf, #14b8a6);
}

.lc-confidence-scale {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.2rem;
  font-size: 0.73rem;
  color: rgba(179, 206, 235, 0.82);
}

.lc-signal-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-height: 100%;
}

.lc-signal-panel::before {
  content: "";
  width: 3.1rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(96, 165, 250, 0.9), rgba(45, 212, 191, 0.7));
}

.lc-signal-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.lc-signal-eyebrow {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(164, 203, 239, 0.82);
  font-weight: 700;
}

.lc-signal-state {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  justify-content: center;
  padding: 0.24rem 0.58rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
  max-width: 100%;
}

.lc-signal-state-dot {
  width: 0.46rem;
  height: 0.46rem;
  border-radius: 999px;
  background: currentColor;
  flex: 0 0 auto;
}

.lc-signal-state--positive {
  background: rgba(18, 184, 134, 0.18);
  border-color: rgba(94, 234, 182, 0.28);
  color: #96f3cf;
}

.lc-signal-state--negative {
  background: rgba(248, 113, 113, 0.18);
  border-color: rgba(252, 165, 165, 0.28);
  color: #ffd1d1;
}

.lc-signal-state--neutral {
  background: rgba(96, 165, 250, 0.16);
  border-color: rgba(147, 197, 253, 0.28);
  color: #d7e9ff;
}

.lc-signal-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.28;
  color: rgba(238, 246, 255, 0.98);
}

.lc-signal-summary {
  font-size: 0.8rem;
  line-height: 1.45;
  color: rgba(178, 207, 237, 0.86);
}

.lc-signal-metric-grid {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
}

.lc-signal-metric {
  display: grid;
  grid-template-columns: minmax(78px, auto) minmax(0, 1fr);
  align-items: start;
  gap: 0.55rem;
  padding: 0.34rem 0;
  border-bottom: 1px dashed rgba(116, 159, 211, 0.18);
}

.lc-signal-metric-label {
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(164, 202, 239, 0.8);
}

.lc-signal-metric-value {
  font-size: 0.82rem;
  line-height: 1.3;
  color: rgba(232, 243, 255, 0.96);
  text-align: right;
}

.lc-signal-note {
  margin: 0.08rem 0 0;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(116, 159, 211, 0.18);
  font-size: 0.79rem;
  line-height: 1.5;
  color: rgba(209, 229, 250, 0.9);
}

.lc-trade-action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.65rem;
}

.lc-trade-action-card,
.lc-trade-brief-card {
  border: 1px solid rgba(113, 157, 210, 0.28);
  border-radius: 0.82rem;
  background: rgba(10, 31, 60, 0.54);
  padding: 0.75rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.24rem;
}

.lc-trade-action-value {
  font-size: 0.88rem;
  line-height: 1.4;
  color: rgba(236, 245, 255, 0.97);
}

.lc-trade-level-grid {
  display: grid;
  gap: 0.75rem;
}

.lc-trade-level-card {
  border: 1px solid rgba(113, 158, 209, 0.3);
  border-radius: 0.92rem;
  padding: 0.9rem 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
  background: linear-gradient(160deg, rgba(11, 32, 62, 0.72), rgba(7, 21, 43, 0.84));
}

.lc-trade-level-card--entry {
  border-color: rgba(56, 189, 248, 0.34);
  box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.08);
}

.lc-trade-level-card--tp {
  border-color: rgba(45, 212, 191, 0.34);
  box-shadow: inset 0 0 0 1px rgba(45, 212, 191, 0.08);
}

.lc-trade-level-card--sl {
  border-color: rgba(248, 113, 113, 0.34);
  box-shadow: inset 0 0 0 1px rgba(248, 113, 113, 0.08);
}

.lc-trade-level-value {
  font-size: 1.3rem;
  line-height: 1.1;
  font-weight: 800;
  color: #f5fbff;
}

.lc-trade-level-caption {
  font-size: 0.8rem;
  color: rgba(189, 216, 244, 0.82);
}

.lc-level-pill-row--stack {
  flex-direction: column;
  align-items: flex-start;
}

.lc-trade-brief-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.65rem;
}

.lc-trade-brief-value,
.lc-trade-rationale-value {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.5;
  color: rgba(221, 236, 255, 0.93);
}

.lc-trade-rationale {
  border-left: 3px solid rgba(94, 176, 241, 0.46);
  border-radius: 0.78rem;
  background: rgba(10, 31, 60, 0.48);
  padding: 0.85rem 0.9rem;
}

.liquidity-compass-path-list,
.liquidity-compass-risk-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.liquidity-compass-path-list {
  counter-reset: lc-path-step;
}

.liquidity-compass-path-list li,
.liquidity-compass-risk-list li {
  position: relative;
  margin-bottom: 0.55rem;
  padding: 0.8rem 0.85rem 0.8rem 2.9rem;
  border: 1px solid rgba(116, 157, 205, 0.24);
  border-radius: 0.85rem;
  background: rgba(12, 33, 64, 0.5);
  color: rgba(224, 238, 255, 0.94);
}

.liquidity-compass-path-list li::before,
.liquidity-compass-risk-list li::before {
  position: absolute;
  left: 0.9rem;
  top: 0.78rem;
  width: 1.32rem;
  height: 1.32rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
}

.liquidity-compass-path-list li::before {
  counter-increment: lc-path-step;
  content: counter(lc-path-step);
  background: rgba(56, 189, 248, 0.18);
  color: #bceeff;
  border: 1px solid rgba(56, 189, 248, 0.28);
}

.liquidity-compass-risk-list li::before {
  content: "!";
  background: rgba(248, 113, 113, 0.18);
  color: #ffd1d1;
  border: 1px solid rgba(248, 113, 113, 0.28);
}

@media (min-width: 992px) {
  .lc-trade-level-grid {
    grid-template-columns: 1fr 1.3fr 1fr;
  }
}

@media (max-width: 991.98px) {
  .lc-hero-shell {
    grid-template-columns: 1fr;
  }

  .lc-hero-context-strip {
    justify-content: flex-start;
  }
}

@media (max-width: 575.98px) {
  .lc-hero-primary,
  .lc-hero-sidebar > article,
  .lc-trade-level-card,
  .lc-trade-action-card,
  .lc-trade-brief-card {
    padding-left: 0.78rem;
    padding-right: 0.78rem;
  }

  .lc-hero-spotlight-value,
  .lc-trade-level-value {
    font-size: 1.45rem;
  }

  .lc-confidence-meter {
    gap: 0.22rem;
  }

  .lc-signal-metric-grid,
  .lc-hero-meta-grid {
    grid-template-columns: 1fr;
  }

  .lc-signal-metric {
    grid-template-columns: 1fr;
    gap: 0.14rem;
  }

  .lc-signal-metric-value {
    text-align: left;
  }

  .dashboard-page-meta {
    width: 100%;
    align-items: flex-start;
    text-align: left;
  }

  .dashboard-page-meta .btn {
    align-self: flex-start;
  }
}

body[data-theme-version="light"] .lc-hero-primary,
body[data-theme-version="light"] .lc-hero-sidebar > article,
[data-theme="light"] .lc-hero-primary,
[data-theme="light"] .lc-hero-sidebar > article {
  border-color: rgba(109, 155, 211, 0.18);
  background: linear-gradient(160deg, rgba(244, 249, 255, 0.98), rgba(232, 242, 255, 0.9));
}

body[data-theme-version="light"] .lc-hero-summary,
body[data-theme-version="light"] .lc-hero-meta-value,
body[data-theme-version="light"] .lc-hero-spotlight-value,
body[data-theme-version="light"] .lc-confidence-score,
body[data-theme-version="light"] .lc-confidence-value,
body[data-theme-version="light"] .lc-signal-title,
body[data-theme-version="light"] .lc-signal-metric-value,
body[data-theme-version="light"] .lc-trade-action-value,
body[data-theme-version="light"] .lc-trade-level-value,
body[data-theme-version="light"] .lc-trade-brief-value,
body[data-theme-version="light"] .lc-trade-rationale-value,
body[data-theme-version="light"] .liquidity-compass-path-list li,
body[data-theme-version="light"] .liquidity-compass-risk-list li,
[data-theme="light"] .lc-hero-summary,
[data-theme="light"] .lc-hero-meta-value,
[data-theme="light"] .lc-hero-spotlight-value,
[data-theme="light"] .lc-confidence-score,
[data-theme="light"] .lc-confidence-value,
[data-theme="light"] .lc-signal-title,
[data-theme="light"] .lc-signal-metric-value,
[data-theme="light"] .lc-trade-action-value,
[data-theme="light"] .lc-trade-level-value,
[data-theme="light"] .lc-trade-brief-value,
[data-theme="light"] .lc-trade-rationale-value,
[data-theme="light"] .liquidity-compass-path-list li,
[data-theme="light"] .liquidity-compass-risk-list li {
  color: rgba(23, 53, 92, 0.96);
}

body[data-theme-version="light"] .lc-hero-kicker,
body[data-theme-version="light"] .lc-hero-meta-label,
body[data-theme-version="light"] .lc-hero-spotlight-label,
body[data-theme-version="light"] .lc-hero-spotlight-caption,
body[data-theme-version="light"] .lc-confidence-label,
body[data-theme-version="light"] .lc-confidence-scale,
body[data-theme-version="light"] .lc-signal-eyebrow,
body[data-theme-version="light"] .lc-signal-summary,
body[data-theme-version="light"] .lc-signal-metric-label,
body[data-theme-version="light"] .lc-signal-note,
body[data-theme-version="light"] .lc-trade-action-label,
body[data-theme-version="light"] .lc-trade-level-label,
body[data-theme-version="light"] .lc-trade-level-caption,
body[data-theme-version="light"] .lc-trade-brief-label,
body[data-theme-version="light"] .lc-trade-rationale-label,
[data-theme="light"] .lc-hero-kicker,
[data-theme="light"] .lc-hero-meta-label,
[data-theme="light"] .lc-hero-spotlight-label,
[data-theme="light"] .lc-hero-spotlight-caption,
[data-theme="light"] .lc-confidence-label,
[data-theme="light"] .lc-confidence-scale,
[data-theme="light"] .lc-signal-eyebrow,
[data-theme="light"] .lc-signal-summary,
[data-theme="light"] .lc-signal-metric-label,
[data-theme="light"] .lc-signal-note,
[data-theme="light"] .lc-trade-action-label,
[data-theme="light"] .lc-trade-level-label,
[data-theme="light"] .lc-trade-level-caption,
[data-theme="light"] .lc-trade-brief-label,
[data-theme="light"] .lc-trade-rationale-label {
  color: rgba(52, 82, 117, 0.9);
}

body[data-theme-version="light"] .lc-hero-meta-card,
body[data-theme-version="light"] .lc-trade-action-card,
body[data-theme-version="light"] .lc-trade-brief-card,
body[data-theme-version="light"] .lc-trade-rationale,
body[data-theme-version="light"] .liquidity-compass-path-list li,
body[data-theme-version="light"] .liquidity-compass-risk-list li,
[data-theme="light"] .lc-hero-meta-card,
[data-theme="light"] .lc-trade-action-card,
[data-theme="light"] .lc-trade-brief-card,
[data-theme="light"] .lc-trade-rationale,
[data-theme="light"] .liquidity-compass-path-list li,
[data-theme="light"] .liquidity-compass-risk-list li {
  border-color: rgba(120, 163, 216, 0.18);
  background: rgba(255, 255, 255, 0.7);
}

body[data-theme-version="light"] .lc-signal-metric,
[data-theme="light"] .lc-signal-metric {
  border-bottom-color: rgba(120, 163, 216, 0.18);
}

body[data-theme-version="light"] .lc-signal-state--positive,
[data-theme="light"] .lc-signal-state--positive {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 150, 105, 0.28);
  color: #0f7660;
}

body[data-theme-version="light"] .lc-signal-state--negative,
[data-theme="light"] .lc-signal-state--negative {
  background: rgba(248, 113, 113, 0.14);
  border-color: rgba(220, 38, 38, 0.22);
  color: #b42318;
}

body[data-theme-version="light"] .lc-signal-state--neutral,
[data-theme="light"] .lc-signal-state--neutral {
  background: rgba(96, 165, 250, 0.14);
  border-color: rgba(59, 130, 246, 0.22);
  color: #1d4f91;
}

body[data-theme-version="light"] .lc-signal-note,
[data-theme="light"] .lc-signal-note {
  border-top-color: rgba(120, 163, 216, 0.18);
}

body[data-theme-version="light"] .lc-trade-level-card,
[data-theme="light"] .lc-trade-level-card {
  background: linear-gradient(160deg, rgba(249, 252, 255, 0.98), rgba(237, 245, 255, 0.92));
}

body[data-theme-version="light"] .lc-confidence-dash,
[data-theme="light"] .lc-confidence-dash {
  background: rgba(118, 150, 191, 0.15);
}

body[data-theme-version="dark"] .top-movers-indicator-shell,
[data-theme="dark"] .top-movers-indicator-shell {
  border-color: rgba(112, 144, 183, 0.36);
  background: linear-gradient(180deg, rgba(8, 20, 43, 0.96) 0%, rgba(7, 17, 36, 0.98) 100%);
}

body[data-theme-version="dark"] .top-movers-indicator-head,
[data-theme="dark"] .top-movers-indicator-head {
  border-bottom-color: rgba(112, 144, 183, 0.24);
}

body[data-theme-version="dark"] .top-movers-indicator-label,
[data-theme="dark"] .top-movers-indicator-label {
  color: rgba(187, 211, 241, 0.92);
}

body[data-theme-version="dark"] .top-movers-indicator-meta,
[data-theme="dark"] .top-movers-indicator-meta {
  color: rgba(187, 211, 241, 0.78);
}

@media (max-width: 767.98px) {
  .top-movers-chart-shell-main {
    min-height: 300px;
  }

  .top-movers-chart-shell-main .opportunity-chart-canvas {
    min-height: 300px;
  }

  .top-movers-indicator-shell {
    flex-basis: 170px;
    min-height: 170px;
  }

  .top-movers-indicator-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-movers-indicator-meta {
    text-align: left;
  }
}
