:root {
  color-scheme: dark;
  --bg: #ebf0f0;
  --sidebar: #e7ecec;
  --panel: #e1e8e9;
  --panel-raised: #dbe3e3;
  --border: #cdd9d9;
  --muted: #5f7c7d;
  --text: #101414;
  --green: #27bd89;
  --red: #ab1523;
  --blue: #03a0ae;
  font-family: "Open Sans", sans-serif;
}

* {
  box-sizing: border-box;
}
html {
  min-width: 0;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 13px;
}
button,
a {
  font: inherit;
}
button {
  color: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid #03a0ae;
  outline-offset: 3px;
}
input:focus-visible,
select:focus-visible {
  outline: 2px solid #03a0ae;
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
.app-shell {
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  width: 244px;
  padding: 25px 15px 14px;
  background: var(--sidebar);
  border-right: 1px solid #d4dede;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 34px;
  margin: 0 7px 34px;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 9px;
  color: #eaf0f0;
  background: var(--green);
  font:
    700 13px "Open Sans",
    sans-serif;
  letter-spacing: -0.1px;
}
.brand-mark span {
  color: #eaf0f0;
}
.brand-name {
  font:
    700 19px "Open Sans",
    sans-serif;
  letter-spacing: -0.1px;
}
.brand-name span {
  color: var(--green);
}
.workspace-label,
.nav-label {
  margin: 0 9px 10px;
  color: #5f7c7d;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.25px;
}
.workspace-switcher {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 10px 8px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #e1e8e9;
  text-align: left;
  cursor: pointer;
}
.workspace-avatar,
.profile-avatar,
.top-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
  color: #3c6566;
  background: #cad7d7;
  font-weight: 700;
}
.workspace-avatar {
  width: 31px;
  height: 31px;
  margin-right: 9px;
}
.workspace-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}
.workspace-copy strong {
  overflow: hidden;
  color: #151b1b;
  font-size: 11px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.workspace-copy small {
  color: #5f7c7d;
  font-size: 10px;
}
.chevron {
  margin-left: auto;
  color: #5f7c7d;
  font-size: 15px;
}
.nav-label {
  margin-top: 31px;
}
.navigation {
  display: grid;
  gap: 3px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  height: 38px;
  padding: 0 10px;
  border-radius: 7px;
  color: #516a6a;
  font-size: 12px;
  transition:
    background 0.15s,
    color 0.15s;
}
.nav-item:hover {
  color: #111717;
  background: #dbe4e4;
}
.nav-item.active {
  color: #508787;
  background: #dee7e7;
  font-weight: 600;
}
.nav-icon {
  width: 16px;
  color: #5f7c7d;
  font-size: 16px;
  text-align: center;
}
.active .nav-icon {
  color: var(--green);
}
.nav-count {
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  margin-left: auto;
  border-radius: 6px;
  color: #425656;
  background: #cdd9da;
  font-size: 10px;
}
.nav-soon {
  margin-left: auto;
  color: #5f7c7d;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.35px;
}
.nav-item.future-link {
  font-size: 11px;
}
.exchange-label {
  margin-top: 30px;
}
.sidebar-bottom {
  margin-top: auto;
}
.help-card {
  margin-bottom: 15px;
  padding: 13px 12px;
  border: 1px solid #c7d5d5;
  border-radius: 9px;
  background: linear-gradient(145deg, #dbe4e4, #e1e8e9);
}
.help-icon {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  margin-bottom: 10px;
  border: 1px solid #b4c6c6;
  border-radius: 7px;
  color: #425657;
}
.help-card strong {
  font-size: 11px;
}
.help-card p {
  margin: 6px 0 11px;
  color: #5f7c7d;
  font-size: 10px;
  line-height: 1.55;
}
.help-card a {
  color: #283434;
  font-size: 10px;
  font-weight: 600;
}
.help-card a span {
  margin-left: 4px;
  color: var(--green);
}
.profile-button {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 10px 5px 3px;
  border: 0;
  border-top: 1px solid #cedadb;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.profile-avatar {
  width: 31px;
  height: 31px;
  margin-right: 9px;
  color: #0b6672;
  background: #d0dcdc;
}

.main-content {
  min-height: 100vh;
  margin-left: 244px;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
  padding: 0 38px;
  border-bottom: 1px solid #d4dede;
  background: rgb(232 236 243 / 92%);
  backdrop-filter: blur(14px);
}
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #5f7c7d;
  font-size: 11px;
}
.breadcrumbs strong {
  color: #192020;
  font-weight: 500;
}
.crumb-separator {
  color: #a4b9ba;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.live-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border: 1px solid #bacbcb;
  border-radius: 6px;
  color: #0b6672;
  background: #dee7e7;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.55px;
}
.live-pill span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 9px #39d6a088;
}
.icon-button {
  position: relative;
  border: 0;
  color: #4b6263;
  background: transparent;
  font-size: 17px;
  cursor: pointer;
}
.notification-button i {
  position: absolute;
  top: 1px;
  right: 0;
  width: 6px;
  height: 6px;
  border: 1px solid var(--bg);
  border-radius: 50%;
  background: #a9151d;
}
.top-avatar {
  width: 29px;
  height: 29px;
  color: #0b6672;
  background: #d0dcdc;
  font-size: 11px;
}
.page-content {
  max-width: 1450px;
  margin: 0 auto;
  padding: 31px 38px 20px;
}
.welcome-row,
#income,
#performance,
#market,
#analytics,
#signals {
  scroll-margin-top: 78px;
}
.welcome-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #5f7c7d;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.1px;
}
.live-dot,
.status-dot,
.footer-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 9px #39d6a055;
}
.status-dot.offline {
  background: var(--red);
  box-shadow: 0 0 9px #f2788355;
}
h1,
h2,
p {
  margin-top: 0;
}
h1 {
  margin: 10px 0 5px;
  font:
    600 26px "Open Sans",
    sans-serif;
  letter-spacing: -0.1px;
}
.wave {
  color: #ab751b;
  font-size: 20px;
}
.page-subtitle {
  margin: 0;
  color: #5f7c7d;
  font-size: 12px;
}
.bot-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.bot-state {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #4b6263;
  font-size: 11px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #c0d0d0;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}
.button-quiet {
  color: #303f3f;
  background: #dde6e6;
}
.button-quiet:hover {
  border-color: #90aaaa;
}
.button-primary {
  border-color: #589192;
  color: #edf1f2;
  background: #518a8b;
}
.button-primary:hover {
  background: #4b8081;
}
.button:disabled {
  cursor: wait;
  opacity: 0.58;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
  margin-bottom: 15px;
}
.stat-card,
.panel {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel);
}
.stat-card {
  position: relative;
  min-height: 139px;
  overflow: hidden;
  padding: 15px 16px;
}
.stat-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #4c6364;
  font-size: 11px;
}
.stat-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  font-size: 14px;
}
.stat-icon.green {
  color: #518a8b;
  background: #d3dede;
}
.stat-icon.blue {
  color: #447374;
  background: #cad8d8;
}
.stat-icon.purple {
  color: #0b6672;
  background: #cad7d7;
}
.stat-icon.amber {
  color: #ab781c;
  background: #cfdbdc;
}
.stat-value {
  margin-top: 11px;
  font:
    600 25px "Open Sans",
    sans-serif;
  letter-spacing: -0.1px;
}
.stat-value.unavailable-value {
  margin-top: 13px;
  color: #9b793a;
  font:
    600 17px "Open Sans",
    sans-serif;
  letter-spacing: 0;
}
.stat-value.outcomes-value {
  display: flex;
  align-items: baseline;
  gap: 4px;
  white-space: nowrap;
}
.outcomes-value small {
  color: #5f7c7d;
  font:
    400 10px "Open Sans",
    sans-serif;
}
.outcome-divider {
  margin: 0 4px;
  color: #5f7c7d;
  font-size: 15px;
}
.stat-value > span:first-child {
  margin-left: 2px;
  font-size: 15px;
}
.stat-value .value-unit {
  color: #5f7c7d;
  font-size: 14px;
}
.stat-foot {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  color: #5f7c7d;
  font-size: 10px;
}
.rule-performance {
  margin-bottom: 15px;
  padding: 15px 18px;
}
.rule-performance .section-eyebrow {
  display: block;
  margin-bottom: 5px;
}
.rule-performance .panel-header {
  align-items: center;
}
.rule-status {
  flex: 0 0 auto;
  padding: 6px 9px;
  border: 1px solid #b1c4c4;
  border-radius: 6px;
  color: #3f5354;
  background: #d9e2e2;
  font-size: 9px;
  font-weight: 700;
}
.rule-status.active {
  border-color: #bacbcb;
  color: #0b6672;
  background: #dee7e7;
}
.rule-status.paused {
  border-color: #a3b8b9;
  color: #971822;
  background: #d7e2e2;
}
.rule-performance-summary {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 12px;
}
.rule-performance-summary strong {
  color: #121818;
  font:
    600 22px "Open Sans",
    sans-serif;
}
.rule-performance-summary span,
.rule-performance-note {
  color: #5f7c7d;
  font-size: 9px;
}
.rule-performance-note {
  margin: 5px 0 0;
  line-height: 1.5;
}
.income-panel {
  margin-bottom: 15px;
  padding: 18px;
}
.income-header {
  align-items: center;
  flex-wrap: wrap;
}
.income-header h2 {
  margin: 5px 0;
  color: #121818;
  font:
    600 18px "Open Sans",
    sans-serif;
}
.income-header p {
  margin: 0;
  color: #5f7c7d;
  font-size: 10px;
}
.section-eyebrow {
  color: #508889;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1px;
}
.income-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.connection-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 9px;
  border: 1px solid #bccdce;
  border-radius: 6px;
  color: #957531;
  background: #dae3e3;
  font-size: 9px;
  font-weight: 600;
}
.connection-badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #b0852c;
}
.connection-badge.connected {
  border-color: #bacbcb;
  color: #0b6672;
  background: #dee7e7;
}
.connection-badge.connected i {
  background: var(--green);
  box-shadow: 0 0 8px #39d6a088;
}
.income-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin-top: 17px;
}
.income-metrics article {
  display: flex;
  min-height: 86px;
  flex-direction: column;
  gap: 7px;
  padding: 12px;
  border: 1px solid #c7d5d5;
  border-radius: 8px;
  background: #e6ecec;
}
.income-metrics article > span {
  color: #5f7c7d;
  font-size: 9px;
}
.income-metrics article > strong {
  overflow: hidden;
  color: #121818;
  font:
    600 17px "Open Sans",
    sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.income-metrics article > strong.trend-positive {
  color: var(--green);
}
.income-metrics article > strong.trend-negative {
  color: var(--red);
}
.income-metrics article > small {
  color: #5f7c7d;
  font-size: 8px;
  line-height: 1.4;
}
.income-explanation {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 11px;
  padding: 11px 12px;
  border: 1px solid #bbcccd;
  border-radius: 7px;
  color: #92792e;
  background: #dfe7e7;
}
.income-explanation strong {
  font-size: 10px;
}
.income-explanation span {
  color: #5f7c7d;
  font-size: 9px;
  line-height: 1.6;
}
.fill-table-wrap {
  max-height: 250px;
  margin-top: 13px;
  overflow: auto;
  border: 1px solid #c7d5d5;
  border-radius: 7px;
}
.fill-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
}
.fill-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 9px 10px;
  color: #5f7c7d;
  background: #dde6e6;
  font-size: 8px;
  letter-spacing: 0.55px;
}
.fill-table td {
  padding: 8px 10px;
  border-top: 1px solid #cedadb;
  color: #3d5050;
  font-size: 9px;
}
.fill-table tr:hover td {
  background: #dbe4e4;
}
.income-disclaimer {
  margin-top: 11px;
  color: #5f7c7d;
  font-size: 9px;
  line-height: 1.65;
}
.disconnect-button {
  width: 100%;
  margin-top: 12px;
  color: #971822;
}
.trend-positive {
  color: var(--green) !important;
}
.trend-negative {
  color: var(--red) !important;
}
.neutral-chip {
  color: #467677;
}
.sparkline {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 41%;
  height: 38px;
  opacity: 0.8;
}
.sparkline svg,
.tiny-chart {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.sparkline path,
.tiny-chart path {
  fill: none;
  stroke: var(--green);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}
.mini-progress {
  height: 4px;
  margin-top: 14px;
  overflow: hidden;
  border-radius: 5px;
  background: #c7d5d5;
}
.mini-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #4b8081, #467778);
}
.bar-chart {
  position: absolute;
  right: 15px;
  bottom: 0;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  width: 35%;
  height: 39px;
  opacity: 0.8;
}
.bar-chart i {
  flex: 1;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(0deg, #5f7c7d, #0b6672);
}
.risk-meter {
  display: flex;
  gap: 3px;
  margin-top: 15px;
}
.risk-meter span {
  flex: 1;
  height: 4px;
  border-radius: 5px;
  background: #579394;
}
.risk-meter span:nth-child(n + 9) {
  background: #c7d4d4;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.95fr);
  gap: 15px;
  margin-bottom: 15px;
}
.insights-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 1fr);
  gap: 15px;
  margin-bottom: 15px;
}
.panel {
  min-width: 0;
  padding: 17px 18px;
}
.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.panel-header h2 {
  margin: 0;
  font:
    600 14px "Open Sans",
    sans-serif;
  letter-spacing: -0.1px;
}
.panel-header p {
  margin: 4px 0 0;
  color: #5f7c7d;
  font-size: 10px;
}
.segmented-control {
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid #c6d4d4;
  border-radius: 7px;
  background: #e7ecec;
}
.segmented-control button {
  min-width: 34px;
  padding: 5px 7px;
  border: 0;
  border-radius: 5px;
  color: #5f7c7d;
  background: transparent;
  font-size: 9px;
  cursor: pointer;
}
.segmented-control button.selected {
  color: #171e1e;
  background: #c7d5d5;
}
.chart-summary {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin: 21px 0 4px;
}
.chart-summary strong {
  font:
    600 22px "Open Sans",
    sans-serif;
}
.chart-summary > span {
  color: #5f7c7d;
  font-size: 10px;
}
.chart-summary b {
  margin-left: 4px;
  color: var(--green);
  font-weight: 500;
}
.chart-wrap {
  position: relative;
  height: 181px;
  padding: 8px 0 20px 34px;
}
.chart-empty {
  position: absolute;
  top: 45%;
  right: 0;
  left: 34px;
  color: #5f7c7d;
  text-align: center;
  font-size: 10px;
}
.chart-empty[hidden],
#toggleMarkets[hidden] {
  display: none;
}
.chart-y-labels {
  position: absolute;
  top: 6px;
  bottom: 20px;
  left: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #5f7c7d;
  font-size: 9px;
}
.performance-chart {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.grid-line {
  fill: none;
  stroke: #c9d6d6;
  stroke-dasharray: 3 5;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.chart-area {
  fill: url(#area);
}
.chart-line {
  fill: none;
  stroke: #538d8e;
  stroke-linecap: round;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}
.chart-point {
  fill: #538d8e;
  stroke: #e3eaea;
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}
.chart-x-labels {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 34px;
  display: flex;
  justify-content: space-between;
  color: #5f7c7d;
  font-size: 9px;
}
.chart-legend {
  display: flex;
  justify-content: space-between;
  margin: 6px 0 0 34px;
  color: #5f7c7d;
  font-size: 9px;
}
.chart-legend span:first-child {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #445858;
}
.chart-legend i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}
.market-panel {
  padding-right: 16px;
  padding-left: 16px;
}
.market-refresh {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #4e8283;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.4px;
}
.market-refresh i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px #39d6a088;
}
.market-refresh.reconnecting {
  color: #957531;
}
.market-refresh.reconnecting i {
  background: #b0852c;
  box-shadow: 0 0 8px #d3a84f88;
}
.market-refresh.offline {
  color: var(--red);
}
.market-refresh.offline i {
  background: var(--red);
  box-shadow: 0 0 8px #f2788388;
}
.live-chart-card {
  margin-top: 14px;
  padding: 11px 11px 9px;
  border: 1px solid #c7d5d5;
  border-radius: 8px;
  background: linear-gradient(145deg, #dee7e7, #e6ecec);
}
.live-chart-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.live-symbol-picker {
  display: grid;
  gap: 5px;
}
.live-symbol-picker > span {
  color: #5f7c7d;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.7px;
}
.live-symbol-picker select {
  max-width: 128px;
  padding: 4px 20px 4px 6px;
  border: 1px solid #becfcf;
  border-radius: 5px;
  color: #1d2626;
  background: #e1e8e8;
  font:
    600 10px "Open Sans",
    sans-serif;
}
.live-timeframes {
  display: flex;
  gap: 4px;
  margin-top: 10px;
}
.live-timeframes button {
  min-width: 35px;
  padding: 5px 8px;
  border: 1px solid transparent;
  border-radius: 5px;
  color: #587272;
  background: transparent;
  font-size: 9px;
  font-weight: 600;
  cursor: pointer;
}
.live-timeframes button:hover {
  color: #171e1e;
  background: #d4dfdf;
}
.live-timeframes button.selected {
  border-color: #b4c6c6;
  color: #4c8182;
  background: #dae3e3;
}
.live-chart-quote {
  display: grid;
  justify-items: end;
  gap: 4px;
}
.live-chart-quote strong {
  color: #121818;
  font:
    600 16px "Open Sans",
    sans-serif;
  letter-spacing: -0.1px;
}
.live-chart-quote span {
  color: #5f7c7d;
  font-size: 8px;
}
.live-chart-wrap {
  position: relative;
  height: 92px;
  margin-top: 7px;
}
.live-price-chart {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.candle-grid {
  fill: none;
  stroke: #c8d5d5;
  stroke-dasharray: 3 5;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.live-chart-footer {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 3px;
  color: #5f7c7d;
  font-size: 7px;
}
.chart-open-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 8px;
  padding: 7px 8px;
  border: 1px solid #c4d3d3;
  border-radius: 6px;
  color: #485f5f;
  background: #e0e7e7;
  font-size: 8px;
  cursor: pointer;
}
.chart-open-button:hover {
  border-color: #589293;
  color: #4a7e7f;
}
.chart-open-button span {
  color: var(--green);
  font-size: 12px;
}
.more-button {
  border: 0;
  color: #5f7c7d;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
}
.market-list {
  margin-top: 14px;
}
.market-row {
  display: grid;
  grid-template-columns: 30px minmax(76px, 1fr) auto 62px;
  align-items: center;
  gap: 8px;
  min-height: 80px;
  border-bottom: 1px solid #cedadb;
  cursor: pointer;
  transition:
    background 0.15s,
    box-shadow 0.15s;
}
.market-row:hover,
.market-row.selected {
  background: #dbe4e4;
}
.market-row.selected {
  box-shadow: inset 2px 0 #68a6a7;
}
.coin-icon.generic,
.table-coin.generic {
  color: #4b6263;
  background: #c7d5d5;
  font-size: 9px;
}
.live-source {
  color: #518586;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.market-change {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.market-change strong {
  font-size: 9px;
  font-weight: 600;
}
.market-change small {
  color: #5f7c7d;
  font-size: 8px;
}
.market-change .market-volume {
  max-width: 100%;
  overflow: hidden;
  color: #4b6263;
  font-size: 7px;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.loading-row {
  padding: 19px 14px;
  color: #5f7c7d;
  text-align: center;
  font-size: 10px;
}
.error-row {
  color: #952128;
  white-space: normal;
}
.coin-icon,
.table-coin {
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 700;
}
.coin-icon {
  width: 28px;
  height: 28px;
  font-size: 13px;
}
.bitcoin {
  color: #ba6d17;
  background: #ccd8d8;
}
.ethereum {
  color: #406c6d;
  background: #c0d0d0;
}
.solana {
  color: #4a7d7e;
  background: #cdd9da;
}
.bnb {
  color: #b48816;
  background: #cbd8d8;
}
.coin-name,
.coin-price {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.coin-name {
  min-width: 0;
  gap: 2px;
}
.coin-name strong,
.coin-price strong {
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}
.coin-name strong {
  overflow: hidden;
  text-overflow: ellipsis;
}
.coin-name small,
.coin-price small {
  color: #5f7c7d;
  font-size: 9px;
}
.coin-price {
  align-items: flex-end;
}
.candle-spark-group {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  width: min(100%, 132px);
  margin-top: 2px;
}
.candle-spark-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 2px;
  min-width: 0;
}
.candle-spark-item > span {
  color: #5f7c7d;
  font:
    600 6px "Open Sans",
    sans-serif;
}
.candle-spark {
  display: block;
  width: 100%;
  min-width: 0;
  height: 18px;
  overflow: visible;
}
.candle-bar.rising {
  color: #27bd89;
}
.candle-bar.falling {
  color: #ab1523;
}
.candle-bar line {
  stroke: currentColor;
  stroke-width: 0.8;
  vector-effect: non-scaling-stroke;
}
.candle-bar rect {
  fill: currentColor;
}
.candle-empty {
  fill: #5f7c7d;
  font:
    5.5px "Open Sans",
    sans-serif;
}
.candle-empty[hidden] {
  display: none;
}
.chart-dialog {
  width: min(1280px, calc(100vw - 32px));
  max-width: none;
  max-height: min(92vh, 980px);
  padding: 22px;
  overflow: auto;
  border: 1px solid #becfcf;
  border-radius: 13px;
  color: var(--text);
  background: #e6ecec;
  box-shadow: 0 30px 100px #000b;
}
.chart-dialog::backdrop {
  background: rgb(246 247 250 / 82%);
  backdrop-filter: blur(5px);
}
.chart-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 17px;
  border-bottom: 1px solid #c7d5d5;
}
.chart-dialog-header h2 {
  margin: 5px 0 3px;
  font:
    600 21px "Open Sans",
    sans-serif;
}
.chart-dialog-header p {
  margin: 0;
  color: #5f7c7d;
  font-size: 10px;
}
.detail-chart-tools {
  display: flex;
  align-items: center;
  gap: 13px;
}
.detail-chart-tools .live-timeframes {
  margin: 0;
  padding: 3px;
  border: 1px solid #c6d4d4;
  border-radius: 7px;
  background: #ebf0f0;
}
.chart-dialog-close {
  width: 30px;
  height: 30px;
  border: 1px solid #c1d0d0;
  border-radius: 6px;
  font-size: 21px;
}
.detail-chart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 17px;
  padding-top: 17px;
}
.detail-chart-main {
  display: grid;
  align-content: start;
  gap: 13px;
  min-width: 0;
}
.detail-chart-section {
  position: relative;
  min-width: 0;
  padding: 11px 12px 9px;
  border: 1px solid #c7d5d5;
  border-radius: 8px;
  background: #e2e9e9;
}
.detail-chart-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
}
.detail-chart-section-heading strong {
  color: #1c2424;
  font-size: 10px;
}
.detail-chart-section-heading > span {
  color: #5f7c7d;
  font-size: 8px;
}
.price-detail-wrap {
  height: clamp(190px, 30vh, 310px);
}
.detail-candles,
.indicator-chart {
  cursor: crosshair;
}
.detail-candles {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.detail-candles .candle-bar line {
  stroke-width: 1;
}
.detail-candles .candle-bar rect {
  opacity: 0.9;
}
.chart-crosshair {
  stroke: #364748;
  stroke-dasharray: 3 4;
  stroke-width: 1;
  pointer-events: none;
  vector-effect: non-scaling-stroke;
}
.indicator-section {
  padding-bottom: 15px;
}
.indicator-svg-wrap {
  height: 66px;
}
.indicator-chart {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.indicator-zones {
  fill: none;
  stroke: #b7c9c9;
  stroke-dasharray: 3 5;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.indicator-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  vector-effect: non-scaling-stroke;
}
.rsi-line {
  stroke: #0b6672;
}
.stoch-k-line {
  stroke: #538c8c;
}
.stoch-d-line {
  stroke: #b17616;
}
.indicator-scale {
  position: absolute;
  top: 39px;
  right: 12px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #5f7c7d;
  font-size: 7px;
  pointer-events: none;
}
.indicator-key {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 3px 0 8px;
  border-radius: 50%;
}
.k-key {
  background: #538c8c;
}
.d-key {
  background: #b17616;
}
.detail-chart-footnote {
  color: #5f7c7d;
  font-size: 8px;
  line-height: 1.5;
}
.detail-price-sidebar {
  display: grid;
  align-content: start;
  gap: 11px;
}
.detail-live-price,
.detail-price-stats,
.detail-selected-candle,
.detail-indicator-values {
  padding: 13px;
  border: 1px solid #c7d5d5;
  border-radius: 8px;
  background: #e1e8e8;
}
.detail-live-price {
  display: grid;
  gap: 6px;
}
.detail-live-price > span,
.detail-side-label {
  color: #5f7c7d;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.55px;
}
.detail-live-price > strong {
  color: #0c1010;
  font:
    600 22px "Open Sans",
    sans-serif;
  overflow-wrap: anywhere;
}
.detail-live-price > small {
  font-size: 9px;
}
.detail-price-stats,
.detail-selected-candle,
.detail-indicator-values {
  display: grid;
  gap: 11px;
}
.detail-price-stats > div,
.detail-selected-candle > div,
.detail-indicator-values > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.detail-price-stats span,
.detail-selected-candle > div > span,
.detail-indicator-values > div > span {
  color: #5f7c7d;
  font-size: 8px;
}
.detail-price-stats strong,
.detail-selected-candle strong,
.detail-indicator-values strong {
  color: #1b2323;
  font:
    500 9px "Open Sans",
    sans-serif;
  text-align: right;
  overflow-wrap: anywhere;
}
.detail-selected-candle .detail-side-label,
.detail-indicator-values .detail-side-label {
  margin-bottom: 1px;
}
.detail-chart-hint {
  padding: 10px;
  border: 1px solid #bbcccc;
  border-radius: 7px;
  color: #5f7c7d;
  background: #e3eaeb;
  font-size: 8px;
  line-height: 1.55;
}
.tiny-chart {
  width: 61px;
  height: 25px;
}
.tiny-chart.down path {
  stroke: var(--red);
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  padding: 0;
  border: 0;
  color: #3c4e4f;
  background: transparent;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
}
.text-link span {
  color: var(--green);
  font-size: 14px;
}

.signals-panel {
  padding: 17px 0 0;
}
.signals-header {
  align-items: center;
  padding: 0 18px 15px;
}
.signals-header .text-link {
  margin: 0;
}
.export-button {
  min-height: 30px;
  padding: 0 9px;
  font-size: 9px;
  white-space: nowrap;
}
.table-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 15px;
  border-top: 1px solid #cedadb;
  border-bottom: 1px solid #cedadb;
  background: #e5ebeb;
}
.search-field,
.filter-field {
  display: flex;
  align-items: center;
  min-height: 31px;
  border: 1px solid #c2d1d2;
  border-radius: 6px;
  background: #e1e8e9;
}
.search-field {
  flex: 1;
  min-width: 150px;
  gap: 7px;
  padding: 0 9px;
  color: #5f7c7d;
}
.search-field:focus-within,
.filter-field:focus-within {
  outline: 2px solid #03a0ae;
  outline-offset: 2px;
}
.search-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #171e1f;
  background: transparent;
  font: inherit;
  font-size: 10px;
}
.search-field input::placeholder {
  color: #5f7c7d;
}
.filter-field {
  gap: 7px;
  padding: 0 8px;
  color: #5f7c7d;
  font-size: 9px;
  white-space: nowrap;
}
.filter-field select {
  max-width: 100px;
  border: 0;
  outline: 0;
  color: #2b3838;
  background: transparent;
  font: inherit;
  font-size: 9px;
  cursor: pointer;
}
.filter-field option {
  color: #171e1f;
  background: #e1e8e9;
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
}
thead {
  background: #dde6e6;
}
th {
  padding: 10px 14px;
  color: #5f7c7d;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.7px;
}
td {
  padding: 11px 14px;
  border-bottom: 1px solid #cedadb;
  color: #405455;
  font-size: 10px;
}
tbody tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: #dde6e6;
}
.asset-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}
.asset-cell > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.asset-cell strong {
  color: #192121;
  font-size: 10px;
  font-weight: 600;
}
.asset-cell small {
  color: #5f7c7d;
  font-size: 9px;
}
.table-coin {
  width: 24px;
  height: 24px;
  font-size: 11px;
}
.direction {
  display: inline-flex;
  padding: 4px 6px;
  border-radius: 4px;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.4px;
}
.direction.long {
  color: #25b37e;
  background: #d4dede;
}
.direction.short {
  color: #a31724;
  background: #cad7d7;
}
.result {
  font-weight: 600;
}
.result.win {
  color: var(--green);
}
.result.loss {
  color: var(--red);
}
.result.pending {
  color: #a87821;
}
.result.signal {
  color: var(--blue);
}
.time-estimate {
  display: block;
  color: #5f7c7d;
  font-size: 9px;
}
.demo-notice {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 4px 15px 13px;
  padding: 9px 10px;
  border: 1px solid #c9d6d6;
  border-radius: 6px;
  color: #5f7c7d;
  background: #e0e7e7;
  font-size: 9px;
  line-height: 1.5;
}
.demo-notice span {
  color: #aa7c23;
}
.table-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 15px;
  border-top: 1px solid #cedadb;
  color: #5f7c7d;
  font-size: 9px;
}
.table-pagination > div {
  display: flex;
  align-items: center;
  gap: 9px;
}
.table-pagination button {
  display: grid;
  place-items: center;
  width: 26px;
  height: 25px;
  border: 1px solid #c1d0d0;
  border-radius: 5px;
  color: #354646;
  background: #dde6e6;
  cursor: pointer;
}
.table-pagination button:disabled {
  color: #8da8a8;
  cursor: default;
  opacity: 0.6;
}
.insight-panel {
  min-height: 222px;
}
.panel-kicker {
  padding: 5px 7px;
  border: 1px solid #c0cfcf;
  border-radius: 5px;
  color: #5f7c7d;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.breakdown-list {
  margin-top: 12px;
}
.breakdown-row {
  display: grid;
  grid-template-columns: minmax(80px, 0.75fr) minmax(50px, 1fr) 39px 57px;
  align-items: center;
  gap: 9px;
  min-height: 28px;
  border-bottom: 1px solid #cedadb;
}
.breakdown-asset {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
.breakdown-asset strong {
  overflow: hidden;
  color: #242f2f;
  font-size: 9px;
  text-overflow: ellipsis;
}
.breakdown-symbol {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  color: #0b6672;
  background: #d2dddd;
  font-size: 8px;
  font-weight: 700;
}
.breakdown-track,
.timeframe-track {
  overflow: hidden;
  height: 4px;
  border-radius: 5px;
  background: #c5d3d3;
}
.breakdown-track span,
.timeframe-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #589192, #4d8384);
}
.breakdown-rate {
  color: #243030;
  font-size: 9px;
  text-align: right;
}
.breakdown-row > small {
  color: #5f7c7d;
  font-size: 8px;
  text-align: right;
  white-space: nowrap;
}
.timeframe-breakdown {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}
.timeframe-item {
  padding: 12px;
  border: 1px solid #c5d3d3;
  border-radius: 7px;
  background: #dee7e7;
}
.timeframe-head,
.timeframe-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.timeframe-head strong {
  font-size: 11px;
}
.timeframe-head span,
.timeframe-foot span,
.timeframe-share {
  color: #5f7c7d;
  font-size: 8px;
}
.timeframe-track {
  margin: 13px 0 9px;
  height: 5px;
}
.timeframe-foot strong {
  color: #508889;
  font-size: 11px;
}
.timeframe-share {
  margin-top: 9px;
}
.insight-disclaimer {
  margin-top: 12px;
  color: #5f7c7d;
  font-size: 8px;
  line-height: 1.5;
}
.footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 17px 2px 0;
  color: #5f7c7d;
  font-size: 9px;
}
.footer > span:last-child {
  display: flex;
  align-items: center;
  gap: 16px;
}
.footer a:hover {
  color: #2e3d3d;
}
.footer-status {
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-status i {
  width: 5px;
  height: 5px;
}
.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 5;
  max-width: calc(100vw - 48px);
  padding: 11px 15px;
  transform: translateY(12px);
  border: 1px solid #b3c6c6;
  border-radius: 8px;
  color: #181f1f;
  background: #d5dfdf;
  box-shadow: 0 8px 28px #0005;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s ease;
  font-size: 11px;
}
.toast.visible {
  transform: translateY(0);
  opacity: 1;
}
.mobile-navigation {
  display: none;
}
.mobile-navigation a[aria-current="page"] {
  color: var(--green);
}

[hidden] {
  display: none !important;
}
.nav-item.admin-only {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.auth-screen {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 18px;
  background: #eef2f2;
}
.auth-card {
  width: min(100%, 410px);
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: 0 25px 90px #0008;
}
.auth-brand {
  margin: 0 0 30px;
}
.auth-card .eyebrow {
  color: var(--green);
}
.auth-card h1 {
  margin-top: 10px;
  font-size: 23px;
}
.auth-description {
  margin-bottom: 22px;
  color: #5f7c7d;
  font-size: 12px;
  line-height: 1.6;
}
.auth-card form,
.dialog-form {
  display: grid;
  gap: 14px;
}
.form-field {
  display: grid;
  gap: 6px;
  color: #3f5354;
  font-size: 11px;
}
.form-field input {
  width: 100%;
  min-height: 37px;
  padding: 8px 10px;
  border: 1px solid #c0d0d0;
  border-radius: 6px;
  color: var(--text);
  background: #e8eeee;
}
.form-field input:focus {
  outline: 2px solid #27bd8977;
  border-color: var(--green);
}
.form-error {
  min-height: 16px;
  margin: 0;
  color: var(--red);
  font-size: 11px;
}
.auth-card .button {
  width: 100%;
  min-height: 39px;
}
.settings-dialog {
  width: min(680px, calc(100vw - 28px));
  max-height: min(88vh, 900px);
  padding: 20px;
  overflow: auto;
  border: 1px solid #c1d0d1;
  border-radius: 11px;
  color: var(--text);
  background: #e2e9ea;
  box-shadow: 0 25px 90px #0009;
}
.settings-dialog::backdrop {
  background: #f5f7f7bb;
  backdrop-filter: blur(3px);
}
.compact-dialog {
  width: min(430px, calc(100vw - 28px));
}
.dialog-close-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  color: #101616;
  font-size: 14px;
}
.dialog-close-row button {
  font-size: 22px;
}
.dialog-form .form-field input {
  max-width: 100%;
}
.choice-field {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding: 12px;
  border: 1px solid #c0d0d0;
  border-radius: 7px;
  color: #3f5354;
  font-size: 11px;
}
.choice-field legend {
  padding: 0 5px;
  color: #1f2828;
  font-weight: 600;
}
.choice-field label {
  display: flex;
  align-items: center;
  gap: 6px;
}
.choice-field input {
  accent-color: var(--green);
}
.coins-choice {
  display: block;
}
#coinChoices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(95px, 1fr));
  gap: 10px;
  max-height: 180px;
  overflow: auto;
}
.form-hint {
  margin: 0;
  color: #5f7c7d;
  font-size: 10px;
  line-height: 1.6;
}
.user-list {
  display: grid;
  gap: 8px;
  margin-top: 20px;
}
.user-list-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 10px;
  border: 1px solid #c5d3d3;
  border-radius: 7px;
  color: #243030;
  font-size: 11px;
}
.user-list-row small {
  color: #5f7c7d;
}
.dialog-subtitle {
  margin: 20px 0 0;
  font-size: 13px;
  color: #243030;
}
.payment-row {
  align-items: center;
}
.payment-txid {
  word-break: break-all;
}
.payment-actions {
  display: flex;
  gap: 6px;
  flex: none;
}
.payment-actions .button {
  padding: 6px 10px;
  font-size: 11px;
}
.nav-item.has-pending::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-left: 6px;
  border-radius: 50%;
  background: #e5484d;
  display: inline-block;
}
.exchange-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 20px 0 12px;
}
.settings-dialog > p {
  color: #475d5d;
  font-size: 11px;
  line-height: 1.7;
}
.app-notice {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 10;
  max-width: min(520px, calc(100vw - 36px));
  padding: 12px 15px;
  border: 1px solid #9d854d;
  border-radius: 8px;
  color: #9b7717;
  background: #dbe3e3;
  font-size: 11px;
  line-height: 1.6;
}

@media (min-width: 1600px) {
  .page-content {
    padding-right: 52px;
    padding-left: 52px;
  }
}
@media (max-width: 1180px) {
  .sidebar {
    width: 215px;
  }
  .main-content {
    margin-left: 215px;
  }
  .topbar {
    padding-right: 25px;
    padding-left: 25px;
  }
  .page-content {
    padding-right: 25px;
    padding-left: 25px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .content-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(265px, 0.9fr);
  }
  .insights-grid {
    grid-template-columns: 1fr;
  }
  .income-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 850px) {
  body {
    padding-bottom: calc(62px + env(safe-area-inset-bottom));
  }
  .sidebar {
    display: none;
  }
  .main-content {
    margin-left: 0;
  }
  .content-grid {
    grid-template-columns: 1fr;
  }
  .market-panel {
    min-height: 270px;
  }
  .chart-dialog {
    padding: 16px;
  }
  .detail-chart-layout {
    grid-template-columns: 1fr;
  }
  .detail-price-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .detail-chart-hint {
    grid-column: 1 / -1;
  }
  .mobile-navigation {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 4;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    padding: 5px 4px calc(5px + env(safe-area-inset-bottom));
    border-top: 1px solid #c5d3d3;
    background: rgb(227 232 240 / 97%);
    backdrop-filter: blur(14px);
  }
  .mobile-navigation a {
    display: flex;
    min-width: 0;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 3px;
    color: #5f7c7d;
    font-size: 9px;
    text-align: center;
  }
  .mobile-navigation a span {
    font-size: 15px;
  }
  .mobile-navigation a.active {
    color: var(--green);
  }
}
@media (max-width: 560px) {
  .topbar {
    height: 55px;
    padding: 0 15px;
  }
  .topbar-actions {
    gap: 11px;
  }
  .breadcrumbs {
    gap: 6px;
    font-size: 9px;
  }
  .breadcrumbs span:first-child,
  .breadcrumbs .crumb-separator {
    display: none;
  }
  .live-pill {
    padding: 5px 7px;
    font-size: 8px;
  }
  .page-content {
    padding: 20px 12px 16px;
  }
  .chart-dialog {
    width: calc(100vw - 14px);
    max-height: 96vh;
    padding: 12px;
  }
  .chart-dialog-header {
    align-items: flex-start;
    gap: 8px;
  }
  .chart-dialog-header h2 {
    font-size: 16px;
  }
  .chart-dialog-header p {
    max-width: 32ch;
    font-size: 8px;
    line-height: 1.45;
  }
  .detail-chart-tools {
    flex-direction: column-reverse;
    gap: 5px;
  }
  .detail-chart-tools .live-timeframes button {
    min-width: 29px;
    padding: 4px;
    font-size: 8px;
  }
  .detail-chart-layout {
    gap: 9px;
    padding-top: 10px;
  }
  .detail-chart-main {
    gap: 8px;
  }
  .detail-chart-section {
    padding: 9px 8px;
  }
  .detail-chart-section-heading strong {
    font-size: 9px;
  }
  .detail-chart-section-heading > span {
    font-size: 7px;
  }
  .price-detail-wrap {
    height: 190px;
  }
  .indicator-svg-wrap {
    height: 54px;
  }
  .detail-price-sidebar {
    gap: 7px;
  }
  .detail-live-price,
  .detail-price-stats,
  .detail-selected-candle,
  .detail-indicator-values {
    gap: 8px;
    padding: 9px;
  }
  .detail-live-price > strong {
    font-size: 16px;
  }
  .detail-live-price > span,
  .detail-side-label {
    font-size: 7px;
  }
  .detail-price-stats span,
  .detail-selected-candle > div > span,
  .detail-indicator-values > div > span {
    font-size: 7px;
  }
  .detail-price-stats strong,
  .detail-selected-candle strong,
  .detail-indicator-values strong {
    font-size: 8px;
  }
  .detail-chart-hint {
    font-size: 7px;
  }
  .welcome-row {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 18px;
  }
  h1 {
    font-size: clamp(18px, 6vw, 22px);
  }
  .page-subtitle {
    max-width: 38ch;
    font-size: 10px;
    line-height: 1.5;
  }
  .bot-actions {
    width: 100%;
    justify-content: space-between;
  }
  .bot-actions .button {
    min-height: 29px;
    padding: 0 8px;
    font-size: 9px;
  }
  .bot-state {
    font-size: 9px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .stat-card {
    min-height: 116px;
    padding: 10px;
  }
  .stat-heading {
    gap: 4px;
    font-size: 9px;
  }
  .stat-icon {
    width: 20px;
    height: 20px;
    font-size: 11px;
  }
  .stat-value {
    font-size: 21px;
  }
  .stat-value.unavailable-value {
    font-size: 14px;
  }
  .stat-value.outcomes-value {
    gap: 2px;
    font-size: 18px;
  }
  .outcomes-value small {
    font-size: 8px;
  }
  .stat-foot {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
    font-size: 8px;
    line-height: 1.35;
  }
  .rule-performance {
    padding: 12px 10px;
  }
  .rule-performance .panel-header {
    align-items: flex-start;
  }
  .rule-performance .panel-header p {
    max-width: 39ch;
  }
  .rule-status {
    padding: 5px 6px;
    font-size: 7px;
  }
  .rule-performance-summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }
  .rule-performance-summary strong {
    font-size: 20px;
  }
  .rule-performance-summary span,
  .rule-performance-note {
    font-size: 8px;
    line-height: 1.45;
  }
  .income-panel {
    padding: 13px 10px;
  }
  .income-header {
    align-items: flex-start;
  }
  .income-header h2 {
    font-size: 15px;
  }
  .income-header p {
    max-width: 34ch;
    font-size: 8px;
    line-height: 1.5;
  }
  .income-actions {
    width: 100%;
  }
  .income-actions .button {
    min-height: 29px;
    padding: 0 7px;
    font-size: 8px;
  }
  .connection-badge {
    padding: 6px;
    font-size: 8px;
  }
  .income-metrics {
    gap: 6px;
    margin-top: 11px;
  }
  .income-metrics article {
    min-height: 76px;
    gap: 5px;
    padding: 8px;
  }
  .income-metrics article > span {
    font-size: 8px;
  }
  .income-metrics article > strong {
    font-size: 12px;
  }
  .income-metrics article > small {
    font-size: 7px;
  }
  .income-explanation {
    padding: 9px;
  }
  .income-explanation strong {
    font-size: 9px;
  }
  .income-explanation span,
  .income-disclaimer {
    font-size: 8px;
  }
  .fill-table-wrap {
    max-height: 210px;
  }
  .fill-table th,
  .fill-table td {
    padding: 7px 8px;
    font-size: 8px;
  }
  .panel {
    padding-right: 11px;
    padding-left: 11px;
  }
  .panel-header h2 {
    font-size: 12px;
  }
  .panel-header p {
    font-size: 9px;
    line-height: 1.4;
  }
  .content-grid,
  .insights-grid {
    gap: 9px;
    margin-bottom: 9px;
  }
  .market-panel {
    min-height: auto;
  }
  .market-row {
    grid-template-columns: 25px minmax(70px, 1fr) auto 56px;
    gap: 5px;
    min-height: 77px;
  }
  .coin-icon {
    width: 24px;
    height: 24px;
    font-size: 11px;
  }
  .coin-name strong,
  .coin-price strong {
    font-size: 8px;
  }
  .coin-name small,
  .coin-price small,
  .market-change small {
    font-size: 7px;
  }
  .candle-spark-group {
    gap: 2px;
  }
  .candle-spark-item {
    gap: 1px;
  }
  .candle-spark-item > span {
    font-size: 5px;
  }
  .candle-spark {
    height: 17px;
  }
  .market-change strong {
    font-size: 8px;
  }
  .segmented-control button {
    min-width: 27px;
    padding: 5px 4px;
    font-size: 8px;
  }
  .segmented-control button {
    min-width: 29px;
    padding: 5px;
  }
  .chart-wrap {
    height: 145px;
    padding-left: 29px;
  }
  .chart-x-labels {
    left: 29px;
    font-size: 7px;
  }
  .chart-legend {
    margin-left: 29px;
    font-size: 7px;
  }
  .chart-legend span:last-child {
    display: none;
  }
  .chart-summary strong {
    font-size: 18px;
  }
  .chart-summary > span {
    font-size: 8px;
  }
  .signals-panel {
    padding: 13px 0 0;
  }
  .signals-header {
    padding-right: 10px;
    padding-left: 10px;
  }
  .export-button {
    min-height: 27px;
    padding: 0 6px;
    font-size: 8px;
  }
  .export-button span {
    display: none;
  }
  .table-toolbar {
    align-items: stretch;
    flex-wrap: wrap;
    gap: 6px;
    padding: 9px;
  }
  .search-field {
    flex-basis: 100%;
    min-height: 30px;
  }
  .filter-field {
    flex: 1;
    justify-content: space-between;
    min-height: 28px;
    padding: 0 6px;
    font-size: 8px;
  }
  .filter-field select {
    max-width: 65px;
    font-size: 8px;
  }
  .table-pagination {
    padding-right: 9px;
    padding-left: 9px;
  }
  .demo-notice {
    margin-right: 9px;
    margin-left: 9px;
    font-size: 8px;
  }
  .timeframe-breakdown {
    gap: 7px;
    margin-top: 14px;
  }
  .timeframe-item {
    padding: 9px 7px;
  }
  .timeframe-head strong,
  .timeframe-foot strong {
    font-size: 9px;
  }
  .timeframe-head span,
  .timeframe-foot span,
  .timeframe-share {
    font-size: 7px;
  }
  .breakdown-row {
    grid-template-columns: minmax(64px, 0.8fr) minmax(34px, 1fr) 30px 45px;
    gap: 5px;
  }
  .breakdown-asset {
    gap: 4px;
  }
  .breakdown-asset strong,
  .breakdown-rate {
    font-size: 8px;
  }
  .breakdown-row > small {
    font-size: 7px;
  }
  .mobile-navigation a {
    font-size: 8px;
  }
  .footer {
    flex-direction: column;
  }
  .footer > span:last-child {
    flex-wrap: wrap;
    gap: 10px;
  }
}

@media (max-width: 560px) {
  html {
    -webkit-text-size-adjust: 100%;
  }
  body {
    overflow-x: hidden;
  }
  input,
  select,
  textarea,
  button {
    font-size: 16px;
  }
  .topbar {
    padding-top: env(safe-area-inset-top);
    height: calc(55px + env(safe-area-inset-top));
  }
  .topbar .icon-button {
    width: 42px;
    height: 42px;
  }
  .page-content {
    padding-bottom: calc(80px + env(safe-area-inset-bottom));
  }
  .button {
    min-height: 44px;
    font-size: 12px;
  }
  .stats-grid {
    gap: 10px;
  }
  .stat-card {
    min-height: 128px;
    padding: 14px 12px;
  }
  .stat-heading {
    font-size: 11px;
  }
  .stat-value {
    font-size: 23px;
  }
  .stat-foot {
    font-size: 10px;
  }
  .panel,
  .rule-performance,
  .income-panel {
    border-radius: 14px;
  }
  .panel-header h2,
  .income-header h2 {
    font-size: 15px;
  }
  .panel-header p,
  .income-header p,
  .page-subtitle {
    font-size: 11px;
  }
  .bot-actions {
    gap: 10px;
  }
  .bot-actions .button {
    min-height: 42px;
    font-size: 11px;
  }
  .bot-state {
    font-size: 11px;
  }
  .income-actions {
    gap: 8px;
    flex-wrap: wrap;
  }
  .income-actions .button {
    flex: 1 1 150px;
    min-height: 42px;
    font-size: 10px;
  }
  .income-metrics article > span {
    font-size: 10px;
  }
  .income-metrics article > strong {
    font-size: 14px;
  }
  .income-metrics article > small {
    font-size: 9px;
  }
  .market-row {
    grid-template-columns: 28px minmax(72px, 1fr) minmax(100px, 1.2fr) 72px;
    min-height: 82px;
  }
  .coin-name strong,
  .coin-price strong,
  .market-change strong {
    font-size: 11px;
  }
  .coin-name small,
  .coin-price small,
  .market-change small {
    font-size: 9px;
  }
  .candle-spark-item > span {
    font-size: 7px;
  }
  .segmented-control button {
    min-width: 38px;
    min-height: 34px;
    font-size: 10px;
  }
  .table-toolbar,
  .table-pagination {
    gap: 8px;
  }
  .search-field {
    min-height: 42px;
  }
  .search-field input,
  .filter-field select {
    min-height: 38px;
    font-size: 14px;
  }
  .filter-field {
    min-height: 42px;
    font-size: 10px;
  }
  .filter-field select {
    max-width: 92px;
  }
  .table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .signals-table {
    min-width: 720px;
  }
  .signals-table th,
  .signals-table td {
    padding: 10px;
    font-size: 11px;
  }
  .fill-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .fill-table {
    min-width: 560px;
  }
  .fill-table th,
  .fill-table td {
    padding: 9px 10px;
    font-size: 10px;
  }
  .settings-dialog {
    width: calc(100vw - 18px);
    max-height: calc(100dvh - 18px);
    padding: 18px;
  }
  .settings-dialog .button {
    min-height: 44px;
  }
  .dialog-form input,
  .dialog-form select,
  .dialog-form textarea {
    min-height: 46px;
    font-size: 16px;
  }
  .user-list-row {
    align-items: flex-start;
    flex-direction: column;
    font-size: 13px;
  }
  .payment-actions {
    width: 100%;
  }
  .payment-actions .button {
    flex: 1;
    font-size: 11px;
  }
  .mobile-navigation {
    padding-bottom: calc(5px + env(safe-area-inset-bottom));
  }
  .mobile-navigation a {
    min-height: 52px;
    font-size: 9px;
  }
}

/* Premium reflective glass system */
html body {
  color: #0b2e38 !important;
  background:
    radial-gradient(900px 620px at 8% -8%, rgb(3 160 174 / 28%), transparent 65%),
    radial-gradient(820px 540px at 92% 8%, rgb(229 120 42 / 25%), transparent 62%),
    radial-gradient(650px 500px at 50% 100%, rgb(3 160 174 / 14%), transparent 68%),
    linear-gradient(135deg, #edf5f3, #f7f0eb 48%, #edf3f1) fixed !important;
}

html body .app-shell,
html body .main-content {
  background: transparent !important;
}

html body .sidebar {
  background:
    linear-gradient(180deg, rgb(222 246 247 / 90%), rgb(253 236 224 / 84%)),
    linear-gradient(115deg, rgb(3 160 174 / 20%), rgb(229 120 42 / 16%)) !important;
  border-right: 1px solid rgb(3 160 174 / 28%) !important;
  box-shadow:
    12px 0 40px rgb(11 46 56 / 8%),
    inset -1px 0 rgb(255 255 255 / 72%) !important;
  backdrop-filter: blur(22px) saturate(135%);
}

html body .topbar {
  background:
    linear-gradient(90deg, rgb(255 255 255 / 84%), rgb(240 247 245 / 74%) 58%, rgb(251 239 232 / 78%)) !important;
  border-bottom: 1px solid rgb(3 160 174 / 24%) !important;
  box-shadow:
    0 8px 28px rgb(11 46 56 / 8%),
    inset 0 -1px rgb(255 255 255 / 72%) !important;
  backdrop-filter: blur(20px) saturate(145%);
}

html body :is(
    .stat-card,
    .panel,
    .rule-performance,
    .income-panel,
    .live-chart-card,
    .detail-chart-section,
    .income-metrics article
  ) {
  position: relative;
  isolation: isolate;
  border: 1px solid rgb(3 160 174 / 28%) !important;
  border-radius: 18px !important;
  background:
    linear-gradient(145deg, rgb(255 255 255 / 76%), rgb(222 246 247 / 60%) 52%, rgb(253 232 217 / 48%)) !important;
  box-shadow:
    0 18px 50px rgb(11 46 56 / 10%),
    0 3px 9px rgb(3 160 174 / 9%),
    inset 0 1px 0 rgb(255 255 255 / 94%),
    inset 0 -1px 0 rgb(229 120 42 / 14%) !important;
  backdrop-filter: blur(18px) saturate(128%);
}

html body :is(.stat-card, .panel, .rule-performance, .income-panel)::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgb(255 255 255 / 60%), transparent 27%),
    radial-gradient(250px 100px at 92% 0%, rgb(229 120 42 / 16%), transparent 72%);
}

html body .nav-item {
  border: 1px solid transparent;
}

html body .nav-item.active {
  border-color: rgb(3 160 174 / 26%) !important;
  background:
    linear-gradient(100deg, rgb(3 160 174 / 22%), rgb(255 255 255 / 58%) 56%, rgb(229 120 42 / 18%)) !important;
  box-shadow:
    inset 3px 0 #03a0ae,
    inset 0 1px rgb(255 255 255 / 86%),
    0 8px 22px rgb(3 160 174 / 10%) !important;
}

html body .workspace-switcher,
html body .help-card,
html body .search-field,
html body .filter-field,
html body .segmented-control,
html body .chart-open-button {
  border: 1px solid rgb(3 160 174 / 24%) !important;
  background:
    linear-gradient(145deg, rgb(255 255 255 / 74%), rgb(222 246 247 / 50%) 60%, rgb(253 232 217 / 40%)) !important;
  box-shadow:
    inset 0 1px rgb(255 255 255 / 86%),
    0 8px 24px rgb(11 46 56 / 6%) !important;
  backdrop-filter: blur(14px) saturate(130%);
}

html body .button-primary {
  border: 1px solid rgb(3 160 174 / 70%) !important;
  color: #0b2e38 !important;
  background:
    linear-gradient(115deg, rgb(25 201 204 / 96%), rgb(3 160 174 / 96%) 54%, rgb(229 120 42 / 94%)) !important;
  box-shadow:
    0 10px 28px rgb(3 160 174 / 22%),
    inset 0 1px 0 rgb(255 255 255 / 62%),
    inset 0 -1px rgb(180 83 26 / 24%) !important;
}

html body .live-pill,
html body .rule-status,
html body .connection-badge {
  border: 1px solid rgb(3 160 174 / 35%) !important;
  background:
    linear-gradient(120deg, rgb(214 241 243 / 84%), rgb(252 239 232 / 68%)) !important;
  box-shadow:
    inset 0 1px rgb(255 255 255 / 78%),
    0 5px 16px rgb(3 160 174 / 9%) !important;
}

html body .timeframe-track span,
html body .breakdown-track span,
html body .mini-progress span {
  background: linear-gradient(90deg, #03a0ae, #19c9cc 50%, #e5782a) !important;
  box-shadow: 0 0 12px rgb(3 160 174 / 28%);
}

html body .settings-dialog,
html body .chart-dialog {
  border: 1px solid rgb(3 160 174 / 34%) !important;
  background:
    linear-gradient(145deg, rgb(255 255 255 / 90%), rgb(222 246 247 / 78%) 58%, rgb(250 237 231 / 74%)) !important;
  box-shadow:
    0 30px 100px rgb(11 46 56 / 28%),
    inset 0 1px rgb(255 255 255 / 94%) !important;
  backdrop-filter: blur(24px) saturate(135%);
}

html body .settings-dialog::backdrop,
html body .chart-dialog::backdrop {
  background: rgb(25 38 41 / 48%) !important;
  backdrop-filter: blur(8px) saturate(112%);
}

html body .auth-screen {
  background:
    radial-gradient(700px 500px at 12% 0%, rgb(3 160 174 / 28%), transparent 65%),
    radial-gradient(700px 500px at 90% 100%, rgb(229 120 42 / 24%), transparent 65%),
    linear-gradient(145deg, #eaf3f0, #faf0ea) !important;
}

html body .auth-card {
  border: 1px solid rgb(3 160 174 / 34%) !important;
  background:
    linear-gradient(145deg, rgb(255 255 255 / 86%), rgb(238 247 244 / 72%) 56%, rgb(253 234 221 / 62%)) !important;
  box-shadow:
    0 32px 90px rgb(11 46 56 / 18%),
    inset 0 1px rgb(255 255 255 / 96%) !important;
  backdrop-filter: blur(22px) saturate(138%);
}

html body .auth-card .auth-brand {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: auto !important;
  min-height: 112px;
  margin: 0 0 18px !important;
}

html body .auth-card .auth-logo {
  display: block;
  width: 152px !important;
  height: 112px !important;
  object-fit: contain;
}

html body:has(.auth-screen:not([hidden])) .mobile-navigation {
  display: none !important;
}

html body[data-role="user"] #openSettings {
  cursor: default;
}

html body[data-role="user"] #rulePerformance,
html body[data-role="user"] [data-action="settings"],
html body[data-role="user"] .admin-only {
  display: none !important;
}

.activity-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.activity-card {
  min-height: 132px;
  padding: 20px;
  border: 1px solid rgb(3 160 174 / 28%) !important;
  border-radius: 18px;
  background: linear-gradient(145deg, rgb(255 255 255 / 78%), rgb(222 246 247 / 58%) 58%, rgb(253 232 217 / 46%)) !important;
  box-shadow: 0 18px 46px rgb(11 46 56 / 10%), inset 0 1px rgb(255 255 255 / 94%) !important;
  backdrop-filter: blur(18px) saturate(128%);
}

.activity-card span,
.activity-card small {
  display: block;
  color: #657674;
  font-size: 11px;
}

.activity-card strong {
  display: block;
  margin: 14px 0 8px;
  color: #007c8c;
  font-size: 26px;
  letter-spacing: -.03em;
}

.user-signal-board {
  margin-bottom: 18px;
}

.user-signal-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.user-signal-columns h3 {
  margin: 0 0 10px;
  color: #4f6665;
  font-size: 14px;
}

.signal-state-list {
  display: grid;
  gap: 9px;
}

.signal-state-item {
  display: grid;
  grid-template-columns: minmax(80px, 1fr) 1fr auto;
  align-items: center;
  gap: 9px;
  padding: 12px;
  border: 1px solid rgb(3 160 174 / 20%);
  border-radius: 12px;
  background: rgb(255 255 255 / 42%);
}

.signal-state-item small {
  grid-column: 1 / -1;
  color: #74817f;
}

.signal-state-symbol {
  color: #0a4a56;
  font-weight: 800;
}

.signal-state-item .positive { color: #16815d; }
.signal-state-item .negative { color: #b34236; }
.signal-state-empty { padding: 28px 14px; border: 1px dashed rgb(3 160 174 / 28%); border-radius: 12px; color: #74817f; text-align: center; }

@media (max-width: 900px) {
  .activity-grid { grid-template-columns: 1fr 1fr; }
  .user-signal-columns { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .activity-grid { grid-template-columns: 1fr; }
  .activity-card { min-height: 112px; }
  .signal-state-item { grid-template-columns: 1fr; }
}

@media (max-width: 375px) {
  .outcomes-value {
    transform: scale(0.92);
    transform-origin: left center;
  }
  .live-pill {
    font-size: 7px;
  }
  .market-row {
    grid-template-columns: 22px minmax(47px, 1fr) auto 52px;
  }
  .coin-icon {
    width: 21px;
    height: 21px;
  }
  .market-change strong {
    font-size: 7px;
  }
  .market-change .market-volume {
    font-size: 6px;
  }
}

/* Translucent forest-green and soft-white visual system */
:root {
  color-scheme: dark;
  --bg: #eef2f3;
  --sidebar: #eaefef;
  --panel: rgb(221 227 237 / 88%);
  --panel-raised: rgb(208 216 231 / 92%);
  --border: rgb(0 124 140 / 14%);
  --muted: #4e6667;
  --text: #0a4a56;
  --green: #1fa865;
  --red: #a1141b;
  --blue: #007c8c;
  font-family: "Open Sans", sans-serif;
}

body {
  background:
    radial-gradient(
      ellipse at 70% -14%,
      rgb(3 160 174 / 17%),
      transparent 43%
    ),
    radial-gradient(ellipse at 5% 48%, rgb(165 181 208 / 10%), transparent 38%),
    var(--bg);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline-color: #426f70;
}

.icon-library {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.ui-icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}
.nav-icon .ui-icon {
  width: 17px;
  height: 17px;
}
.nav-item.admin-only .ui-icon {
  width: 17px;
  height: 17px;
}
.help-icon .ui-icon,
.help-card a .ui-icon {
  width: 15px;
  height: 15px;
}
.chevron .ui-icon {
  width: 16px;
  height: 16px;
}
.profile-button .chevron {
  display: flex;
  align-items: center;
  gap: 5px;
}
.profile-button .chevron .ui-icon {
  width: 14px;
  height: 14px;
}
.icon-button .ui-icon {
  width: 19px;
  height: 19px;
}
.mobile-users-button .ui-icon {
  width: 18px;
  height: 18px;
}
.stat-icon .ui-icon {
  width: 15px;
  height: 15px;
}
.chart-open-button .ui-icon,
.button .ui-icon {
  width: 15px;
  height: 15px;
}
.search-field .ui-icon {
  width: 16px;
  height: 16px;
}
.table-pagination .ui-icon {
  width: 15px;
  height: 15px;
}
.toggle-mark .ui-icon {
  width: 15px;
  height: 15px;
}
.wave .ui-icon {
  width: 19px;
  height: 19px;
}

.sidebar {
  border-right-color: rgb(0 124 140 / 12%);
  background: linear-gradient(
    180deg,
    rgb(225 230 239 / 96%),
    rgb(233 237 244 / 97%)
  );
  box-shadow: 10px 0 40px rgb(1 4 8 / 14%);
}
.brand-mark {
  color: #e6ecec;
  background: linear-gradient(145deg, #0b6672, #007c8c);
}
.brand-mark span {
  color: #e6ecec;
}
.brand-name span,
.active .nav-icon {
  color: #007c8c;
}
.workspace-switcher,
.help-card,
.profile-button {
  border-color: rgb(0 124 140 / 13%);
}
.workspace-switcher {
  background: rgb(0 0 0 / 3%);
}
.workspace-avatar,
.profile-avatar,
.top-avatar {
  color: #3e6869;
  background: rgb(3 160 174 / 19%);
}
.nav-item {
  color: #445959;
}
.nav-item:hover {
  color: #0a4a56;
  background: rgb(0 0 0 / 5%);
}
.nav-item.active {
  color: #0b6672;
  background: linear-gradient(
    90deg,
    rgb(3 160 174 / 18%),
    rgb(3 160 174 / 7%)
  );
  box-shadow: inset 2px 0 #9fc6c6;
}
.nav-count {
  color: #2c3939;
  background: rgb(36 69 126 / 9%);
}
.help-card {
  background: linear-gradient(145deg, rgb(3 160 174 / 10%), rgb(0 0 0 / 2%));
}
.help-icon {
  border-color: rgb(40 76 137 / 19%);
  color: #406a6b;
}
.help-card a {
  color: #0a4a56;
}
.topbar {
  border-bottom-color: rgb(0 124 140 / 12%);
  background: rgb(236 239 245 / 82%);
}
.breadcrumbs strong {
  color: #0a4a56;
}
.live-pill {
  border-color: rgb(3 160 174 / 26%);
  color: #0b6672;
  background: rgb(3 160 174 / 11%);
}
.live-pill span {
  box-shadow: 0 0 10px rgb(115 157 229 / 55%);
}
.icon-button {
  color: #2e3d3d;
}
.page-subtitle {
  color: #4a6161;
}
.eyebrow,
.stat-heading {
  color: #3a4c4c;
}
.stat-card,
.panel {
  border-color: rgb(0 124 140 / 14%);
  background: linear-gradient(
    145deg,
    rgb(211 219 233 / 88%),
    rgb(225 231 240 / 91%)
  );
  box-shadow: 0 12px 32px rgb(1 3 7 / 12%);
  backdrop-filter: blur(14px);
}
.stat-card {
  border-radius: 13px;
}
.stat-card::after {
  position: absolute;
  inset: auto -20px -35px auto;
  width: 100px;
  height: 80px;
  border-radius: 50%;
  background: rgb(36 86 171 / 6%);
  content: "";
  filter: blur(20px);
  pointer-events: none;
}
.stat-icon.green,
.stat-icon.blue,
.stat-icon.purple,
.stat-icon.amber {
  color: #0b6672;
  background: rgb(50 95 172 / 14%);
}
.stat-value {
  color: #0a4a56;
}
.stat-foot,
.panel-header p,
.footer,
.income-disclaimer {
  color: #4f6768;
}
.button-quiet {
  border-color: rgb(0 124 140 / 15%);
  color: #3c6262;
  background: rgb(0 0 0 / 4%);
}
.button-quiet:hover {
  border-color: rgb(35 79 156 / 40%);
  background: rgb(48 92 167 / 9%);
}
.button-primary {
  border-color: #4c8081;
  color: #e8eded;
  background: linear-gradient(135deg, #0b6672, #4d8282);
  box-shadow: 0 5px 16px rgb(67 116 200 / 16%);
}
.button-primary:hover {
  background: linear-gradient(135deg, #3d6869, #497b7b);
}
.rule-performance,
.income-metrics article,
.income-explanation,
.detail-chart-section,
.detail-live-price,
.detail-price-stats,
.detail-selected-candle,
.detail-indicator-values {
  border-color: rgb(0 124 140 / 13%);
  background: rgb(0 0 0 / 3%);
}
.rule-status,
.connection-badge,
.live-timeframes button.selected,
.segmented-control button.active {
  border-color: rgb(0 124 140 / 27%);
  color: #0b6672;
  background: rgb(3 160 174 / 12%);
}
.market-row {
  border-bottom-color: rgb(0 124 140 / 10%);
}
.market-row:hover,
.market-row.selected {
  background: rgb(0 0 0 / 4%);
}
.market-row.selected {
  box-shadow: inset 2px 0 #9ac3c4;
}
.live-chart-card,
.chart-open-button {
  border-color: rgb(0 124 140 / 13%);
  background: rgb(237 240 246 / 42%);
}
.live-symbol-picker select,
.detail-chart-tools .live-timeframes,
.table-toolbar,
.search-field,
.filter-field {
  border-color: rgb(0 124 140 / 14%);
  background: rgb(0 0 0 / 3%);
}
.live-timeframes button:hover,
.segmented-control button:hover {
  background: rgb(0 0 0 / 5%);
}
.live-timeframes button.selected {
  background: rgb(3 160 174 / 12%);
}
.chart-open-button:hover,
.text-link:hover {
  border-color: rgb(0 124 140 / 36%);
  color: #0b6672;
}
.chart-legend i,
.market-refresh i {
  background: #497b7b;
}
.market-refresh,
.live-source {
  color: #0b6672;
}
.market-refresh.reconnecting {
  color: #406969;
}
.market-refresh.reconnecting i {
  background: #447172;
  box-shadow: 0 0 8px rgb(160 185 228 / 53%);
}
.search-field {
  color: #4a6162;
}
.search-field input,
.filter-field select {
  color: #0a4a56;
}
.table-pagination button,
.mobile-navigation {
  border-color: rgb(0 124 140 / 14%);
  background: rgb(0 0 0 / 3%);
}
.table-pagination button:not(:disabled):hover {
  color: #406c6d;
  background: rgb(3 160 174 / 12%);
}
.chart-dialog {
  border-color: rgb(0 124 140 / 20%);
  background: linear-gradient(145deg, #dfe7e7, #eaf0f0);
}
.chart-dialog-header,
.detail-chart-section {
  border-color: rgb(0 124 140 / 13%);
}
.chart-dialog-close {
  display: grid;
  place-items: center;
}
.mobile-users-button {
  border-color: rgb(0 124 140 / 18%);
  color: #3f6a6a;
  background: rgb(3 160 174 / 10%);
}
.mobile-navigation a.active {
  color: #0b6672;
}

@media (max-width: 560px) {
  .mobile-navigation {
    border-color: rgb(0 124 140 / 14%);
    background: rgb(233 237 243 / 94%);
    backdrop-filter: blur(16px);
  }
}

/* Refined dashboard surfaces */
:root {
  --bg: #ecf1f1;
  --sidebar: #e8eded;
  --panel: #dee7e7;
  --panel-raised: #d6e1e1;
  --border: #c2d1d1;
  --muted: #516a6a;
  --text: #0b0f0f;
  --green: #25b685;
  --red: #a4141f;
  --blue: #006374;
}

body {
  background:
    radial-gradient(
      ellipse at 68% -12%,
      rgb(147 165 197 / 15%),
      transparent 42%
    ),
    var(--bg);
  font-size: 14px;
  line-height: 1.5;
}

.sidebar {
  width: 256px;
  padding: 27px 16px 16px;
  border-right-color: #cedada;
  background: linear-gradient(180deg, #e5ebeb 0%, #e9efef 100%);
}

.brand {
  margin-bottom: 38px;
}
.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  box-shadow: 0 5px 18px rgb(76 128 219 / 16%);
}
.brand-name {
  font-size: 20px;
}
.workspace-switcher {
  border-color: #c0cfcf;
  background: #dee6e6;
}
.nav-label {
  color: #5f7c7d;
  font-size: 10px;
}
.nav-item {
  height: 41px;
  border-radius: 8px;
  color: #435858;
  font-size: 13px;
}
.nav-item.active {
  color: #497b7c;
  background: linear-gradient(90deg, #d5dfdf, #dce5e6);
  box-shadow: inset 2px 0 #78afaf;
}
.nav-icon {
  font-size: 17px;
}
.nav-count {
  background: #c3d2d2;
}
.help-card {
  border-color: #bccdce;
  background: linear-gradient(145deg, #d5dfdf, #dee7e7);
}
.profile-button {
  border-top-color: #c0d0d0;
}

.main-content {
  margin-left: 256px;
}
.topbar {
  height: 68px;
  padding-right: clamp(24px, 3.2vw, 52px);
  padding-left: clamp(24px, 3.2vw, 52px);
  border-bottom-color: #cad8d8;
  background: rgb(233 237 244 / 90%);
}
.breadcrumbs {
  font-size: 12px;
}
.topbar-actions {
  gap: 18px;
}
.live-pill {
  padding: 7px 10px;
  border-radius: 7px;
  font-size: 10px;
}
.top-avatar {
  width: 34px;
  height: 34px;
  border: 1px solid #b5c7c7;
  border-radius: 10px;
}
.page-content {
  max-width: 1580px;
  padding: 38px clamp(24px, 3.2vw, 52px) 36px;
}
.welcome-row,
#income,
#performance,
#market,
#analytics,
#signals {
  scroll-margin-top: 86px;
}
.welcome-row {
  align-items: center;
  margin-bottom: 27px;
}
.eyebrow {
  color: #495f5f;
  font-size: 10px;
  letter-spacing: 1.25px;
}
h1 {
  margin: 12px 0 7px;
  font-size: clamp(27px, 2.2vw, 34px);
  letter-spacing: -0.1px;
}
.page-subtitle {
  color: #4a6162;
  font-size: 13px;
}
.bot-actions {
  gap: 15px;
}
.bot-state {
  color: #394b4b;
  font-size: 12px;
}
.button {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 12px;
  transition:
    background 0.16s ease,
    border-color 0.16s ease,
    transform 0.16s ease;
}
.button:hover {
  transform: translateY(-1px);
}
.button-primary {
  box-shadow: 0 5px 16px rgb(76 128 219 / 12%);
}

.stats-grid {
  gap: 15px;
  margin-bottom: 18px;
}
.stat-card,
.panel {
  border-color: #c0d0d0;
  border-radius: 13px;
  background: linear-gradient(150deg, #dbe4e4 0%, #e1e8e8 100%);
  box-shadow: 0 8px 26px rgb(0 0 0 / 12%);
}
.stat-card {
  min-height: 158px;
  padding: 18px 19px;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease;
}
.stat-card:hover {
  transform: translateY(-2px);
  border-color: #a2b8b8;
}
.stat-heading {
  color: #3f5354;
  font-size: 12px;
}
.stat-icon {
  width: 29px;
  height: 29px;
  border-radius: 9px;
  font-size: 15px;
}
.stat-value {
  margin-top: 14px;
  font-size: 29px;
  font-variant-numeric: tabular-nums;
}
.stat-value.unavailable-value {
  font-size: 18px;
}
.stat-foot {
  margin-top: 8px;
  color: #556f70;
  font-size: 11px;
}
.mini-progress {
  height: 5px;
  margin-top: 16px;
}

.rule-performance {
  margin-bottom: 18px;
  padding: 19px 21px;
  border-color: #b9cbcb;
}
.rule-performance .section-eyebrow,
.section-eyebrow {
  font-size: 9px;
  letter-spacing: 1.1px;
}
.rule-performance .panel-header h2,
.income-header h2 {
  font-size: 17px;
}
.rule-performance .panel-header p,
.income-header p {
  color: #4f6768;
  font-size: 11px;
  line-height: 1.55;
}
.rule-performance-summary {
  margin-top: 15px;
}
.rule-performance-summary strong {
  font-size: 25px;
}
.rule-performance-summary span,
.rule-performance-note {
  color: #526b6b;
  font-size: 10px;
}
.rule-status {
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 10px;
}

.income-panel {
  margin-bottom: 18px;
  padding: 21px;
}
.income-header h2 {
  margin: 7px 0 5px;
}
.income-actions {
  gap: 9px;
}
.connection-badge {
  padding: 8px 10px;
  font-size: 10px;
}
.income-metrics {
  gap: 11px;
  margin-top: 19px;
}
.income-metrics article {
  min-height: 98px;
  gap: 8px;
  padding: 14px;
  border-color: #bccdce;
  border-radius: 10px;
  background: #e3eaeb;
}
.income-metrics article > span {
  color: #4b6262;
  font-size: 10px;
}
.income-metrics article > strong {
  font-size: 19px;
  font-variant-numeric: tabular-nums;
}
.income-metrics article > small {
  color: #587374;
  font-size: 9px;
}
.income-explanation {
  padding: 13px 15px;
  border-radius: 9px;
}
.income-explanation strong {
  font-size: 11px;
}
.income-explanation span,
.income-disclaimer {
  font-size: 10px;
}
.fill-table-wrap {
  border-color: #bccdce;
  border-radius: 9px;
}

.content-grid,
.insights-grid {
  gap: 18px;
  margin-bottom: 18px;
}
.content-grid {
  grid-template-columns: minmax(0, 1.55fr) minmax(340px, 1fr);
}
.insights-grid {
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 1fr);
}
.panel {
  padding: 21px;
}
.panel-header {
  gap: 18px;
}
.panel-header h2 {
  font-size: 16px;
  letter-spacing: -0.1px;
}
.panel-header p {
  margin-top: 5px;
  color: #526b6b;
  font-size: 11px;
  line-height: 1.5;
}
.performance-panel {
  min-height: 355px;
}
.segmented-control {
  padding: 4px;
  border-color: #bccdce;
  border-radius: 8px;
}
.segmented-control button {
  min-width: 40px;
  padding: 6px 9px;
  font-size: 10px;
}
.segmented-control button.selected {
  color: #0a0c0c;
  background: #b9cbcb;
}
.chart-summary {
  margin: 24px 0 7px;
}
.chart-summary strong {
  font-size: 26px;
  font-variant-numeric: tabular-nums;
}
.chart-summary > span {
  color: #4b6262;
  font-size: 11px;
}
.chart-wrap {
  height: 200px;
}
.chart-x-labels,
.chart-y-labels {
  color: #5f7c7d;
  font-size: 10px;
}
.chart-legend {
  color: #556f70;
  font-size: 10px;
}
.market-panel {
  padding-right: 19px;
  padding-left: 19px;
}
.market-refresh {
  font-size: 9px;
}
.live-chart-card {
  margin-top: 17px;
  padding: 14px;
  border-color: #bacbcc;
  border-radius: 10px;
  background: linear-gradient(145deg, #d2dddd, #dee7e7);
}
.live-symbol-picker > span {
  font-size: 8px;
}
.live-symbol-picker select {
  padding: 6px 23px 6px 8px;
  border-color: #acc0c0;
  border-radius: 7px;
  font-size: 11px;
}
.live-chart-quote strong {
  font-size: 19px;
  font-variant-numeric: tabular-nums;
}
.live-chart-quote span {
  font-size: 9px;
}
.live-timeframes button {
  min-width: 39px;
  padding: 6px 9px;
  font-size: 10px;
}
.live-chart-wrap {
  height: 105px;
  margin-top: 10px;
}
.live-chart-footer {
  color: #5f7c7d;
  font-size: 8px;
}
.chart-open-button {
  min-height: 34px;
  margin-top: 10px;
  padding: 8px 10px;
  border-color: #b1c4c4;
  border-radius: 7px;
  font-size: 10px;
}
.market-list {
  margin-top: 17px;
}
.market-row {
  grid-template-columns: 32px minmax(76px, 1fr) auto 68px;
  min-height: 84px;
  border-bottom-color: #c1d0d0;
}
.market-row:hover,
.market-row.selected {
  background: #d1dddd;
}
.market-row.selected {
  box-shadow: inset 3px 0 #78afaf;
}
.coin-icon {
  width: 30px;
  height: 30px;
}
.coin-name strong,
.coin-price strong {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.coin-name small,
.coin-price small {
  color: #587373;
  font-size: 10px;
}
.market-change strong {
  font-size: 10px;
}
.market-change .market-volume {
  font-size: 8px;
}
.text-link {
  font-size: 11px;
}
.insight-panel {
  min-height: 220px;
}
.timeframe-item {
  border-color: #bbcccc;
  border-radius: 9px;
  background: #dbe3e3;
}
.timeframe-head strong {
  font-size: 12px;
}
.timeframe-head span,
.timeframe-foot span,
.timeframe-share {
  color: #546d6d;
  font-size: 9px;
}
.timeframe-foot strong {
  font-size: 12px;
}
.breakdown-row {
  min-height: 42px;
}
.breakdown-asset strong,
.breakdown-rate {
  font-size: 11px;
}
.breakdown-row > small {
  color: #526b6b;
  font-size: 9px;
}

.signals-panel {
  padding-top: 20px;
}
.signals-header {
  padding: 0 21px 17px;
}
.signals-header h2 {
  font-size: 17px;
}
.signals-header p {
  font-size: 11px;
}
.export-button {
  min-height: 35px;
  font-size: 10px;
}
.table-toolbar {
  gap: 10px;
  padding: 13px 18px;
  border-color: #bccdce;
  background: #e1e8e8;
}
.search-field,
.filter-field {
  min-height: 36px;
  border-color: #b3c6c6;
  border-radius: 8px;
  background: #dbe4e4;
}
.search-field {
  padding: 0 11px;
}
.search-field input,
.filter-field select {
  font-size: 11px;
}
.filter-field {
  padding: 0 10px;
  font-size: 10px;
}
.filter-field select {
  max-width: 118px;
}
.table-wrap {
  scrollbar-color: #a7bbbb #dee7e7;
}
table {
  white-space: nowrap;
}
thead {
  background: #d4dfdf;
}
th {
  padding: 12px 15px;
  color: #4a6161;
  font-size: 9px;
  letter-spacing: 0.55px;
}
td {
  padding: 12px 15px;
  border-top-color: #c1d0d0;
  font-size: 11px;
}
tbody tr:hover td {
  background: #d5e0e0;
}
.table-pagination {
  min-height: 52px;
  color: #455a5a;
  font-size: 10px;
}
.table-pagination button {
  min-width: 32px;
  min-height: 30px;
  border-color: #adc1c2;
  border-radius: 7px;
  background: #d6e1e1;
}
.footer {
  padding-top: 20px;
  color: #5f7c7d;
  font-size: 10px;
}

@media (max-width: 1180px) {
  .sidebar {
    width: 224px;
  }
  .main-content {
    margin-left: 224px;
  }
  .content-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.95fr);
  }
  .insights-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 850px) {
  .main-content {
    margin-left: 0;
  }
  .sidebar {
    display: flex;
    width: 68px;
    align-items: center;
    padding: 18px 8px 12px;
  }
  .brand {
    margin: 0 0 28px;
  }
  .brand-name,
  .workspace-label,
  .workspace-switcher,
  .nav-label,
  .nav-soon {
    display: none;
  }
  .navigation {
    width: 100%;
  }
  .nav-item,
  .nav-item.active {
    display: flex;
    justify-content: center;
    width: 48px;
    margin: auto;
    padding: 0;
    font-size: 0;
  }
  .nav-item .nav-icon {
    font-size: 17px;
  }
  .nav-count {
    display: none;
  }
  .exchange-label {
    display: none;
  }
  .sidebar-bottom {
    width: 100%;
  }
  .help-card,
  .profile-button .workspace-copy,
  .profile-button .chevron {
    display: none;
  }
  .profile-button {
    justify-content: center;
  }
  .profile-avatar {
    margin: 0;
  }
  .main-content {
    margin-left: 68px;
  }
  .page-content {
    padding: 30px 24px 38px;
  }
  .welcome-row {
    align-items: flex-start;
  }
  .content-grid,
  .insights-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .market-panel {
    min-height: 0;
  }
  .panel {
    padding: 19px;
  }
  .signals-panel {
    padding-top: 18px;
  }
  .signals-header {
    padding-right: 19px;
    padding-left: 19px;
  }
  .mobile-users-button {
    display: none;
  }
}

@media (max-width: 560px) {
  .sidebar {
    display: none;
  }
  .main-content {
    margin-left: 0;
  }
  .topbar {
    height: 58px;
  }
  .mobile-users-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    min-height: 32px;
    padding: 0 6px;
    border: 1px solid #b3c6c6;
    border-radius: 8px;
    color: #324141;
    background: #dbe4e4;
    font-size: 15px;
  }
  .page-content {
    padding: 24px 15px 32px;
  }
  .welcome-row {
    gap: 16px;
    margin-bottom: 20px;
  }
  .performance-panel .panel-header {
    flex-wrap: wrap;
  }
  .segmented-control {
    max-width: 100%;
  }
  h1 {
    font-size: clamp(24px, 7vw, 30px);
  }
  .page-subtitle {
    font-size: 12px;
  }
  .bot-actions {
    align-items: flex-start;
  }
  .bot-state {
    max-width: 66%;
    font-size: 10px;
    line-height: 1.45;
  }
  .bot-actions .button {
    min-height: 36px;
    padding: 0 11px;
    font-size: 10px;
  }
  .stats-grid {
    gap: 10px;
  }
  .stat-card {
    min-height: 130px;
    padding: 12px;
  }
  .stat-heading {
    font-size: 10px;
  }
  .stat-value {
    font-size: 24px;
  }
  .stat-value.unavailable-value {
    font-size: 15px;
  }
  .stat-foot {
    font-size: 9px;
  }
  .rule-performance {
    padding: 15px 13px;
  }
  .rule-performance .panel-header h2,
  .income-header h2 {
    font-size: 15px;
  }
  .income-panel,
  .panel {
    padding: 15px;
  }
  .income-header {
    gap: 12px;
  }
  .income-actions {
    gap: 7px;
  }
  .income-actions .button {
    min-height: 34px;
    font-size: 9px;
  }
  .connection-badge {
    padding: 7px;
    font-size: 9px;
  }
  .income-metrics {
    gap: 8px;
  }
  .income-metrics article {
    min-height: 84px;
    padding: 10px;
  }
  .income-metrics article > strong {
    font-size: 15px;
  }
  .panel-header h2 {
    font-size: 15px;
  }
  .panel-header p {
    font-size: 10px;
  }
  .content-grid,
  .insights-grid {
    gap: 12px;
    margin-bottom: 12px;
  }
  .chart-summary strong {
    font-size: 23px;
  }
  .chart-wrap {
    height: 168px;
  }
  .market-row {
    grid-template-columns: 28px minmax(65px, 1fr) auto 62px;
    min-height: 78px;
    gap: 7px;
  }
  .coin-icon {
    width: 27px;
    height: 27px;
  }
  .coin-name strong,
  .coin-price strong {
    font-size: 9px;
  }
  .coin-name small,
  .coin-price small {
    font-size: 8px;
  }
  .market-change strong {
    font-size: 9px;
  }
  .signals-panel {
    padding: 15px 0 0;
  }
  .signals-header {
    padding-right: 14px;
    padding-left: 14px;
  }
  .table-toolbar {
    padding: 11px;
  }
  .footer {
    gap: 10px;
    font-size: 9px;
  }
}

/* Final theme layer keeps the green glass palette above legacy responsive rules. */
:root {
  --bg: #eef2f3;
  --sidebar: #eaefef;
  --panel: rgb(221 227 237 / 88%);
  --panel-raised: rgb(208 216 231 / 92%);
  --border: rgb(0 124 140 / 14%);
  --muted: #4e6667;
  --text: #0a4a56;
  --green: #1fa865;
  --red: #a1141b;
  --blue: #007c8c;
}
body {
  background:
    radial-gradient(
      ellipse at 70% -14%,
      rgb(3 160 174 / 17%),
      transparent 43%
    ),
    radial-gradient(ellipse at 5% 48%, rgb(165 181 208 / 10%), transparent 38%),
    var(--bg);
}
.sidebar {
  border-right-color: rgb(0 124 140 / 12%);
  background: linear-gradient(
    180deg,
    rgb(225 230 239 / 96%),
    rgb(233 237 244 / 97%)
  );
}
.brand-mark {
  color: #e6ecec;
  background: linear-gradient(145deg, #0b6672, #007c8c);
}
.brand-mark span {
  color: #e6ecec;
}
.brand-name span,
.active .nav-icon {
  color: #007c8c;
}
.workspace-switcher,
.help-card {
  border-color: rgb(0 124 140 / 13%);
  background: rgb(0 0 0 / 3%);
}
.workspace-avatar,
.profile-avatar,
.top-avatar {
  color: #3e6869;
  background: rgb(3 160 174 / 19%);
}
.nav-item {
  color: #445959;
}
.nav-item:hover {
  color: #0a4a56;
  background: rgb(0 0 0 / 5%);
}
.nav-item.active {
  color: #0b6672;
  background: linear-gradient(
    90deg,
    rgb(3 160 174 / 18%),
    rgb(3 160 174 / 7%)
  );
  box-shadow: inset 2px 0 #9fc6c6;
}
.help-card {
  background: linear-gradient(145deg, rgb(3 160 174 / 10%), rgb(0 0 0 / 2%));
}
.topbar {
  border-bottom-color: rgb(0 124 140 / 12%);
  background: rgb(236 239 245 / 82%);
}
.breadcrumbs strong,
.icon-button {
  color: #0a4a56;
}
.live-pill {
  border-color: rgb(3 160 174 / 26%);
  color: #0b6672;
  background: rgb(3 160 174 / 11%);
}
.page-subtitle,
.panel-header p,
.footer {
  color: #4a6161;
}
.stat-card,
.panel {
  border-color: rgb(0 124 140 / 14%);
  background: linear-gradient(
    145deg,
    rgb(211 219 233 / 88%),
    rgb(225 231 240 / 91%)
  );
  box-shadow: 0 12px 32px rgb(1 3 7 / 12%);
  backdrop-filter: blur(14px);
}
.stat-card:hover {
  border-color: rgb(35 79 156 / 34%);
}
.stat-icon.green,
.stat-icon.blue,
.stat-icon.purple,
.stat-icon.amber {
  color: #0b6672;
  background: rgb(50 95 172 / 14%);
}
.button-quiet {
  border-color: rgb(0 124 140 / 15%);
  color: #3c6262;
  background: rgb(0 0 0 / 4%);
}
.button-primary {
  border-color: #4c8081;
  color: #e8eded;
  background: linear-gradient(135deg, #0b6672, #4d8282);
}
.rule-performance,
.income-metrics article,
.income-explanation,
.detail-chart-section {
  border-color: rgb(0 124 140 / 13%);
  background: rgb(0 0 0 / 3%);
}
.rule-status,
.connection-badge,
.live-timeframes button.selected {
  border-color: rgb(0 124 140 / 27%);
  color: #0b6672;
  background: rgb(3 160 174 / 12%);
}
.market-row {
  border-bottom-color: rgb(0 124 140 / 10%);
}
.market-row:hover,
.market-row.selected {
  background: rgb(0 0 0 / 4%);
}
.market-row.selected {
  box-shadow: inset 3px 0 #9ac3c4;
}
.live-chart-card,
.chart-open-button,
.live-symbol-picker select,
.detail-chart-tools .live-timeframes,
.table-toolbar,
.search-field,
.filter-field {
  border-color: rgb(0 124 140 / 14%);
  background: rgb(0 0 0 / 3%);
}
.market-refresh,
.live-source {
  color: #0b6672;
}
.chart-open-button:hover,
.text-link:hover {
  border-color: rgb(0 124 140 / 36%);
  color: #0b6672;
}
.table-pagination button,
.mobile-navigation {
  border-color: rgb(0 124 140 / 14%);
  background: rgb(0 0 0 / 3%);
}
.chart-dialog {
  border-color: rgb(0 124 140 / 20%);
  background: linear-gradient(145deg, #dfe7e7, #eaf0f0);
}
.mobile-users-button {
  border-color: rgb(0 124 140 / 18%);
  color: #3f6a6a;
  background: rgb(3 160 174 / 10%);
}
.mobile-navigation a.active {
  color: #0b6672;
}
.wave,
.stat-value.unavailable-value {
  color: #3f6a6a;
}
.mini-progress {
  background: rgb(0 124 140 / 12%);
}
.mini-progress span {
  background: linear-gradient(90deg, #518687, #0b6672);
}

.chart-dialog {
  width: min(1440px, calc(100vw - 32px));
  padding: 22px 24px;
}
.chart-dialog-header {
  position: sticky;
  top: -22px;
  z-index: 2;
  padding: 14px 0 16px;
  background: linear-gradient(180deg, #dfe7e7 80%, rgb(218 225 236 / 92%));
}
.chart-dialog-header h2 {
  margin-top: 7px;
  font-size: 24px;
  letter-spacing: -0.1px;
}
.chart-dialog-header p {
  margin-top: 5px;
  color: #526c6c;
  font-size: 11px;
}
.detail-chart-layout {
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 16px;
  padding-top: 15px;
}
.detail-chart-main {
  gap: 12px;
}
.detail-chart-section {
  overflow: hidden;
  padding: 13px 15px 11px;
  border-color: rgb(3 160 174 / 14%);
  border-radius: 11px;
  background: linear-gradient(
    150deg,
    rgb(219 225 236 / 95%),
    rgb(229 234 242 / 96%)
  );
}
.detail-chart-section-heading {
  min-height: 23px;
  margin-bottom: 10px;
}
.detail-chart-section-heading strong {
  color: #0a4a56;
  font-size: 11px;
  letter-spacing: 0.1px;
}
.detail-chart-section-heading strong small {
  color: #556f70;
  font: inherit;
  font-size: 9px;
}
.detail-chart-section-heading > span {
  color: #536d6d;
  font-size: 9px;
}
.price-chart-section {
  padding-bottom: 8px;
}
.chart-price-heading {
  margin-bottom: 4px;
}
.chart-legend-inline {
  display: flex;
  align-items: center;
  gap: 13px;
}
.chart-legend-inline > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #44595a;
  font-size: 8px;
}
.ema-key {
  display: inline-block;
  width: 13px;
  height: 2px;
  border-radius: 2px;
}
.ema20-key {
  background: #af7d16;
}
.ema50-key {
  background: #0b6672;
}
.volume-key {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: rgb(46 167 95 / 60%);
}
.price-detail-wrap {
  height: clamp(290px, 38vh, 410px);
}
.detail-candles {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.detail-price-grid {
  fill: none;
  stroke: rgb(0 124 140 / 11%);
  stroke-dasharray: 2 5;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.detail-candles .candle-bar line {
  stroke-width: 1;
}
.detail-candles .candle-bar rect {
  opacity: 0.94;
}
.detail-candles .candle-bar.rising {
  color: #2aa961;
}
.detail-candles .candle-bar.falling {
  color: #ac1520;
}
.volume-bar.rising {
  fill: rgb(48 169 95 / 38%);
}
.volume-bar.falling {
  fill: rgb(172 21 32 / 38%);
}
.chart-ema {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}
.ema20-line {
  stroke: #af7d16;
}
.ema50-line {
  stroke: #0b6672;
}
.current-price-line {
  stroke: #4a7d7d;
  stroke-dasharray: 4 4;
  stroke-width: 1;
  opacity: 0.8;
  vector-effect: non-scaling-stroke;
}
.current-price-line[hidden] {
  display: none;
}
.price-axis-labels text,
.indicator-axis-labels text {
  fill: #5f7c7d;
  font:
    8px "Open Sans",
    sans-serif;
  text-anchor: start;
}
.chart-time-axis {
  display: flex;
  justify-content: space-between;
  padding: 3px 11% 0 1%;
  color: #5f7c7d;
  font-size: 8px;
  font-variant-numeric: tabular-nums;
}
.indicator-section {
  padding-bottom: 9px;
}
.indicator-svg-wrap {
  height: 94px;
}
.indicator-chart {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.indicator-zones rect {
  stroke: none;
}
.indicator-zones .overbought-zone {
  fill: rgb(172 21 32 / 6%);
}
.indicator-zones .oversold-zone {
  fill: rgb(42 169 97 / 7%);
}
.indicator-zones path {
  fill: none;
  stroke: rgb(0 124 140 / 13%);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.indicator-zones path:nth-of-type(2),
.indicator-zones path:nth-of-type(4) {
  stroke: rgb(0 124 140 / 22%);
  stroke-dasharray: 3 4;
}
.indicator-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
  vector-effect: non-scaling-stroke;
}
.indicator-live-value {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 7px;
  border: 1px solid rgb(40 76 138 / 13%);
  border-radius: 5px;
  color: #3c6262 !important;
  background: rgb(0 0 0 / 3%);
  font-size: 9px !important;
  font-variant-numeric: tabular-nums;
}
.indicator-live-value b {
  font-size: 9px;
  font-weight: 700;
}
.indicator-key {
  display: inline-block;
  width: 9px;
  height: 2px;
  border-radius: 2px;
  vertical-align: middle;
}
.k-key {
  background: #03a0ae;
}
.d-key {
  background: #b17616;
}
.rsi-line {
  stroke: #0b6672;
}
.stoch-k-line {
  stroke: #03a0ae;
}
.stoch-d-line {
  stroke: #b17616;
}
.chart-crosshair {
  stroke: #3c6364;
  stroke-dasharray: 3 4;
  stroke-width: 1;
  opacity: 0.62;
  pointer-events: none;
  vector-effect: non-scaling-stroke;
}
.chart-crosshair[hidden] {
  display: none;
}
.detail-price-sidebar {
  gap: 10px;
}
.detail-live-price,
.detail-price-stats,
.detail-selected-candle,
.detail-indicator-values {
  border-color: rgb(3 160 174 / 14%);
  border-radius: 10px;
  background: linear-gradient(
    150deg,
    rgb(213 220 233 / 92%),
    rgb(226 231 240 / 93%)
  );
}
.detail-live-price {
  padding: 15px;
}
.detail-live-price > span,
.detail-side-label {
  color: #587272;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.8px;
}
.detail-live-price > strong {
  margin-top: 8px;
  font-size: 23px;
  letter-spacing: -0.1px;
}
.detail-live-price > small {
  font-size: 9px;
}
.detail-price-stats,
.detail-selected-candle,
.detail-indicator-values {
  gap: 11px;
  padding: 13px;
}
.detail-price-stats span,
.detail-selected-candle > div > span,
.detail-indicator-values > div > span {
  color: #587373;
  font-size: 9px;
}
.detail-price-stats strong,
.detail-selected-candle strong,
.detail-indicator-values strong {
  color: #0a4a56;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}
.detail-chart-hint {
  border-color: rgb(3 160 174 / 13%);
  border-radius: 9px;
  color: #4e6667;
  background: rgb(0 0 0 / 3%);
  font-size: 9px;
}

@media (max-width: 850px) {
  .chart-dialog-header {
    top: -16px;
  }
  .detail-chart-layout {
    grid-template-columns: 1fr;
  }
  .detail-price-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .chart-dialog {
    padding: 12px;
  }
  .chart-dialog-header {
    top: -12px;
  }
  .chart-dialog-header h2 {
    font-size: 18px;
  }
  .detail-chart-section {
    padding: 10px 9px 8px;
  }
  .detail-chart-section-heading {
    gap: 5px;
  }
  .detail-chart-section-heading strong {
    font-size: 9px;
  }
  .detail-chart-section-heading > span {
    font-size: 7px !important;
  }
  .chart-legend-inline {
    gap: 6px;
  }
  .chart-legend-inline > span {
    gap: 3px;
    font-size: 6px;
  }
  .ema-key {
    width: 8px;
  }
  .price-detail-wrap {
    height: 250px;
  }
  .chart-time-axis {
    font-size: 6px;
  }
  .indicator-svg-wrap {
    height: 74px;
  }
  .detail-price-sidebar {
    gap: 7px;
  }
  .detail-live-price,
  .detail-price-stats,
  .detail-selected-candle,
  .detail-indicator-values {
    gap: 8px;
    padding: 9px;
  }
}

.content-grid {
  grid-template-columns: minmax(0, 1fr);
}
.technical-chart-host[hidden] {
  display: none;
}
.content-grid.technical-chart-expanded > .market-panel {
  display: none;
}
.technical-chart-host {
  padding: 18px;
}
.technical-chart-view {
  display: block;
  width: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.technical-chart-view[hidden] {
  display: none !important;
}
.technical-chart-view .chart-dialog-header {
  position: static;
  top: auto;
  padding: 4px 0 15px;
  border-bottom: 1px solid rgb(0 124 140 / 13%);
}
.technical-chart-view .detail-chart-layout {
  grid-template-columns: minmax(0, 1fr) 250px;
}
.technical-chart-view .detail-chart-main {
  min-width: 0;
}
.technical-chart-view .detail-chart-section {
  min-width: 0;
}
.technical-chart-view .chart-dialog-close {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
}
.technical-chart-view .price-detail-wrap,
.technical-chart-view .indicator-svg-wrap {
  user-select: none;
}
.technical-chart-view .candle-chart,
.technical-chart-view .indicator-chart {
  cursor: grab;
  touch-action: none;
}
.technical-chart-view .candle-chart.is-on-scale,
.technical-chart-view .indicator-chart.is-on-scale {
  cursor: ns-resize;
}
.technical-chart-view .candle-chart.is-dragging,
.technical-chart-view .indicator-chart.is-dragging {
  cursor: grabbing;
}
.technical-chart-view [data-detail-chart] {
  overflow: visible;
}
.technical-chart-view [data-detail-chart] .candle-bar {
  cursor: crosshair;
}
.technical-chart-view [data-detail-chart] .candle-bar:hover {
  filter: brightness(1.35);
}
.technical-chart-view [data-price-axis],
.technical-chart-view .indicator-axis-labels {
  pointer-events: none;
}
.technical-chart-view [data-detail-chart] {
  cursor: crosshair;
}
.technical-chart-view [data-detail-chart] [data-price-axis] {
  cursor: ns-resize;
}
.technical-chart-view .price-hover-line {
  stroke: #0a4a56;
  stroke-dasharray: 3 4;
  stroke-width: 1;
  opacity: 0.68;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}
.technical-chart-view .price-cursor-badge rect {
  fill: #4a7d7d;
  stroke: #3f6a6b;
  stroke-width: 0.5;
}
.technical-chart-view .price-cursor-badge text {
  fill: #e8eded;
  font:
    700 7px "Open Sans",
    sans-serif;
}
.technical-chart-view [data-price-crosshair][hidden],
.technical-chart-view [data-price-cursor][hidden] {
  display: none;
}
.technical-chart-view .detail-chart-hint {
  grid-column: 1 / -1;
}

@media (max-width: 850px) {
  .technical-chart-view .detail-chart-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* IONOS blue-white layer */
:root {
  --bg: #f6f9f9;
  --sidebar: #ffffff;
  --panel: #ffffff;
  --panel-raised: #f6f9f9;
  --border: #e0e9e9;
  --muted: #637e7e;
  --text: #0b2e38;
  --green: #12a150;
  --red: #d92d3a;
  --blue: #03a0ae;
}
body {
  background: var(--bg);
  color: var(--text);
}
.sidebar {
  background: #fff;
  border-right-color: #e0e9e9;
}
.topbar {
  background: rgb(255 255 255 / 92%);
  border-bottom-color: #e0e9e9;
}
.brand-mark {
  color: #fff;
  background: linear-gradient(145deg, #007c8c, #03a0ae);
  box-shadow: 0 4px 12px rgb(0 61 143 / 25%);
}
.brand-mark span {
  color: #fff;
}
.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.brand-name,
.breadcrumbs strong,
.icon-button {
  color: #007c8c;
}
.brand-name span,
.active .nav-icon {
  color: #03a0ae;
}
.workspace-switcher,
.help-card {
  border-color: #e0e9e9;
  background: #f6f9f9;
}
.workspace-avatar,
.profile-avatar,
.top-avatar {
  color: #03a0ae;
  background: #e2ece9;
}
.nav-item {
  color: #415b5b;
}
.nav-item:hover {
  color: #007c8c;
  background: #f2f7f7;
}
.nav-item.active {
  color: #007c8c;
  background: #e2ece9;
  box-shadow: inset 3px 0 #03a0ae;
}
.live-pill {
  border-color: #9fc2b8;
  color: #03a0ae;
  background: #e7f0ee;
}
.page-subtitle,
.panel-header p,
.footer {
  color: #637e7e;
}
.stat-card,
.panel {
  border-color: #e0e9e9;
  background: #fff;
  box-shadow: 0 2px 10px rgb(0 61 143 / 7%);
  backdrop-filter: none;
}
.stat-card:hover {
  border-color: #03a0ae;
}
.stat-icon.green,
.stat-icon.blue,
.stat-icon.purple,
.stat-icon.amber {
  color: #03a0ae;
  background: #e2ece9;
}
.button-quiet {
  border-color: #d4e3e3;
  color: #007c8c;
  background: #fff;
}
.button-primary {
  border-color: #03a0ae;
  color: #fff;
  background: linear-gradient(135deg, #007c8c, #03a0ae);
}
.rule-performance,
.income-metrics article,
.income-explanation,
.detail-chart-section {
  border-color: #e0e9e9;
  background: #f9fbfb;
}
.rule-status,
.connection-badge,
.live-timeframes button.selected {
  border-color: #9fc2b8;
  color: #03a0ae;
  background: #e7f0ee;
}
.market-row {
  border-bottom-color: #eaf1f1;
}
.market-row:hover,
.market-row.selected {
  background: #f6f9f9;
}
.market-row.selected {
  box-shadow: inset 3px 0 #03a0ae;
}
.technical-chart-view .price-cursor-badge rect {
  fill: #03a0ae;
  stroke: #007c8c;
}
.technical-chart-view .price-cursor-badge text {
  fill: #fff;
}
.form-field input:focus {
  border-color: #03a0ae;
}
input[type="checkbox"],
input[type="radio"],
.choice-field input {
  accent-color: #03a0ae;
}
.auth-screen {
  background: #f6f9f9;
}
.auth-card {
  background: #fff;
  box-shadow: 0 20px 60px rgb(0 61 143 / 14%);
}
.settings-dialog,
.chart-dialog {
  background: #fff;
  border-color: #e0e9e9;
  box-shadow: 0 25px 80px rgb(0 40 100 / 28%);
}
.settings-dialog::backdrop,
.chart-dialog::backdrop {
  background: rgb(0 30 80 / 35%);
  backdrop-filter: blur(3px);
}
.form-field input,
.form-field select,
.dialog-form input,
.dialog-form select {
  background: #fff;
  border-color: #d4e3e3;
  color: #0b2e38;
}
fieldset {
  border-color: #e0e9e9;
}
.brand-mark {
  background: linear-gradient(145deg, #007c8c, #03a0ae);
}
.brand-name span,
.active .nav-icon,
.help-card a span,
.chart-open-button span,
.text-link span,
.mobile-navigation a[aria-current="page"],
.mobile-navigation a.active,
.auth-card .eyebrow {
  color: #03a0ae;
}
.live-pill span,
.chart-legend i,
.market-refresh i {
  background: #03a0ae;
  box-shadow: none;
}
.sparkline path,
.tiny-chart path {
  stroke: #03a0ae;
}
.form-field input:focus {
  outline: 2px solid #649fa055;
  border-color: #03a0ae;
}
.rule-status.active,
.rule-status {
  color: #03a0ae;
}

@media (max-width: 560px) {
  .technical-chart-host {
    padding: 12px;
  }
  .technical-chart-view .detail-chart-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .technical-chart-view .detail-price-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .technical-chart-view .detail-chart-hint {
    grid-column: 1 / -1;
  }
  .technical-chart-view .chart-dialog-header {
    position: static;
    top: auto;
    padding: 4px 0 12px;
  }
}

/* Final brand authority: must remain after IONOS overrides. */
html body {
  --brand-teal: #03a0ae;
  --brand-teal-deep: #007c8c;
  --brand-copper: #e5782a;
  --brand-copper-deep: #b4531a;
  --blue: #03a0ae;
  --green: #03a0ae;
  background: linear-gradient(135deg, #eaf1ef, #f7eee9) !important;
}
html body .brand-mark {
  width: 48px;
  height: 38px;
  padding: 0;
  overflow: visible;
  background: transparent !important;
  box-shadow: none !important;
}
html body .brand-mark img {
  display: block;
  width: 48px;
  height: 38px;
  object-fit: contain;
}
html body .sidebar .brand {
  height: 48px;
  min-width: 0;
  margin: 0 6px 30px;
  gap: 9px;
  align-items: center;
  overflow: hidden;
}
html body .sidebar .brand {
  width: 100%;
  height: 62px;
  margin: 0 0 18px;
  padding: 0 8px;
  justify-content: center;
  background: url("/assets/brand/tradebox-tbs-anchor.png?v=5") center / contain
    no-repeat !important;
}
html body .sidebar {
  padding-top: 102px !important;
}
html body .sidebar .brand {
  position: fixed !important;
  top: 18px;
  left: 16px;
  z-index: 10;
  width: 192px;
  height: 62px;
  margin: 0;
  padding: 0;
  overflow: visible;
}
html body .sidebar .brand .panel-logo {
  display: block;
  width: 1px;
  height: 1px;
  opacity: 0 !important;
  visibility: hidden !important;
  position: absolute;
}
html body .sidebar .brand-mark {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
}
html body .sidebar .brand-mark img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}
html body .sidebar .brand-name {
  min-width: 0;
  max-width: 164px;
  font-size: 17px;
  line-height: 1;
  letter-spacing: -0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}
html body .sidebar .brand-name span {
  display: inline;
}
html body .auth-brand {
  display: grid;
  justify-items: center;
}
html body .auth-logo {
  display: block;
  width: 138px;
  height: 130px;
  object-fit: contain;
}
html body .brand-name,
html body .breadcrumbs strong,
html body .icon-button {
  color: #007c8c !important;
}
html body .brand-name span {
  color: #b4531a !important;
}
html body .button-primary {
  border-color: #03a0ae !important;
  color: #0b2e38 !important;
  background: linear-gradient(135deg, #19c9cc, #03a0ae 55%, #e5782a) !important;
}
html body .button-quiet {
  border-color: rgb(3 160 174 / 40%) !important;
  color: #007c8c !important;
}
html body .nav-item.active {
  color: #0a4a56 !important;
  background: linear-gradient(90deg, #e2ece9, #f7eae3) !important;
  box-shadow: inset 3px 0 #03a0ae !important;
}
html body .nav-item:hover {
  color: #0a4a56 !important;
  background: #eef4f2 !important;
}
html body .active .nav-icon,
html body .mobile-navigation a.active,
html body .mobile-navigation a[aria-current="page"] {
  color: #03a0ae !important;
}
html body .workspace-avatar,
html body .profile-avatar,
html body .top-avatar {
  color: #007c8c !important;
  background: #e2ece9 !important;
}
html body .live-pill,
html body .rule-status,
html body .connection-badge,
html body .live-timeframes button.selected {
  color: #3d7071 !important;
  border-color: rgb(3 160 174 / 40%) !important;
  background: #e7f0ee !important;
}
html body .market-row:hover,
html body .market-row.selected {
  background: linear-gradient(90deg, #edf3f1, #f8efea) !important;
}
html body .market-row.selected {
  box-shadow: inset 3px 0 #03a0ae !important;
}
html body .sparkline path,
html body .tiny-chart path {
  stroke: #03a0ae !important;
}
html body .help-card {
  border-color: rgb(229 120 42 / 36%) !important;
  background: linear-gradient(145deg, #eff5f3, #f9efea) !important;
}
html body .help-card a,
html body .help-card a span,
html body .text-link span,
html body .chart-open-button span {
  color: #b4531a !important;
}
html body .sidebar,
html body .topbar {
  border-color: rgb(3 160 174 / 22%) !important;
}
html body .sidebar {
  background: linear-gradient(180deg, #fff, #f7f1ed) !important;
}
html body .topbar {
  background: rgb(255 255 255 / 96%) !important;
}
html body .breadcrumbs span,
html body .page-subtitle,
html body .panel-header p,
html body .footer,
html body .workspace-copy small,
html body .nav-label,
html body .workspace-label {
  color: #6f7c79 !important;
}
html body .nav-item {
  color: #4f6665 !important;
}
html body .workspace-switcher,
html body .help-card {
  background: linear-gradient(145deg, #f0f6f4, #fbf2ed) !important;
  border-color: rgb(3 160 174 / 22%) !important;
}
html body .stat-card,
html body .panel {
  border-color: rgb(3 160 174 / 20%) !important;
  box-shadow: 0 4px 18px rgb(11 46 56 / 7%) !important;
}
html body .stat-icon.green,
html body .stat-icon.blue,
html body .stat-icon.purple,
html body .stat-icon.amber {
  color: #007c8c !important;
  background: linear-gradient(145deg, #e3efec, #f8eae3) !important;
}
html body .rule-performance,
html body .income-metrics article,
html body .income-explanation,
html body .detail-chart-section {
  border-color: rgb(3 160 174 / 20%) !important;
  background: linear-gradient(145deg, #f5f9f8, #fcf6f2) !important;
}
html body .form-field input,
html body .form-field select,
html body .dialog-form input,
html body .dialog-form select {
  border-color: rgb(3 160 174 / 28%) !important;
  color: #0b2e38 !important;
}
html body .form-field input:focus,
html body .dialog-form input:focus {
  border-color: #03a0ae !important;
  outline-color: rgb(3 160 174 / 24%) !important;
}
html body .mobile-navigation {
  background: rgb(245 248 247 / 97%) !important;
  border-color: rgb(3 160 174 / 24%) !important;
}
html body .timeframe-track,
html body .breakdown-track {
  background: rgb(3 160 174 / 16%) !important;
}
html body .timeframe-track span,
html body .breakdown-track span {
  background: linear-gradient(90deg, #03a0ae, #e5782a) !important;
}

@media (max-width: 560px) {
  html {
    -webkit-text-size-adjust: 100%;
  }
  body {
    overflow-x: hidden;
  }
  input,
  select,
  textarea,
  button {
    font-size: 16px;
  }
  .topbar {
    padding-top: env(safe-area-inset-top);
    height: calc(55px + env(safe-area-inset-top));
  }
  .topbar .icon-button {
    width: 42px;
    height: 42px;
  }
  .page-content {
    padding-bottom: calc(80px + env(safe-area-inset-bottom));
  }
  .button {
    min-height: 44px;
    font-size: 12px;
  }
  .stat-card {
    min-height: 128px;
    padding: 14px 12px;
  }
  .stat-heading {
    font-size: 11px;
  }
  .stat-value {
    font-size: 23px;
  }
  .stat-foot {
    font-size: 10px;
  }
  .panel-header h2,
  .income-header h2 {
    font-size: 15px;
  }
  .panel-header p,
  .income-header p,
  .page-subtitle {
    font-size: 11px;
  }
  .bot-actions {
    gap: 10px;
  }
  .bot-actions .button {
    min-height: 42px;
    font-size: 11px;
  }
  .bot-state {
    font-size: 11px;
  }
  .income-actions {
    gap: 8px;
    flex-wrap: wrap;
  }
  .income-actions .button {
    flex: 1 1 150px;
    min-height: 42px;
    font-size: 10px;
  }
  .income-metrics article > span {
    font-size: 10px;
  }
  .income-metrics article > strong {
    font-size: 14px;
  }
  .income-metrics article > small {
    font-size: 9px;
  }
  .market-row {
    grid-template-columns: 28px minmax(72px, 1fr) minmax(100px, 1.2fr) 72px;
    min-height: 82px;
  }
  .coin-name strong,
  .coin-price strong,
  .market-change strong {
    font-size: 11px;
  }
  .coin-name small,
  .coin-price small,
  .market-change small {
    font-size: 9px;
  }
  .candle-spark-item > span {
    font-size: 7px;
  }
  .segmented-control button {
    min-width: 38px;
    min-height: 34px;
    font-size: 10px;
  }
  .search-field {
    min-height: 42px;
  }
  .search-field input,
  .filter-field select {
    min-height: 38px;
    font-size: 14px;
  }
  .filter-field {
    min-height: 42px;
    font-size: 10px;
  }
  .filter-field select {
    max-width: 92px;
  }
  .table-scroll,
  .fill-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .signals-table {
    min-width: 720px;
  }
  .signals-table th,
  .signals-table td {
    padding: 10px;
    font-size: 11px;
  }
  .fill-table {
    min-width: 560px;
  }
  .fill-table th,
  .fill-table td {
    padding: 9px 10px;
    font-size: 10px;
  }
  .settings-dialog {
    width: calc(100vw - 18px);
    max-height: calc(100dvh - 18px);
    padding: 18px;
  }
  .settings-dialog .button {
    min-height: 44px;
  }
  .dialog-form input,
  .dialog-form select,
  .dialog-form textarea {
    min-height: 46px;
    font-size: 16px;
  }
  .user-list-row {
    align-items: flex-start;
    flex-direction: column;
    font-size: 13px;
  }
  .payment-actions {
    width: 100%;
  }
  .payment-actions .button {
    flex: 1;
    font-size: 11px;
  }
  .mobile-navigation {
    padding-bottom: calc(5px + env(safe-area-inset-bottom));
  }
  .mobile-navigation a {
    min-height: 52px;
    font-size: 9px;
  }
}
