:root {
  color-scheme: dark;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #eeeff1;
  background: #090b0d;
  font-size: 13px;
  --mint: #91f3c3;
  --pink: #f395ba;
  --muted: #91979f;
  --line: #272b30;
  --panel: #101215;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
main {
  max-width: 1540px;
  margin: auto;
  padding: 0 34px 26px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 27px;
  font-weight: 640;
  letter-spacing: -0.7px;
}
h2 {
  font-size: 17px;
  font-weight: 600;
}
h3 {
  font-size: 14px;
  font-weight: 600;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
select {
  font: inherit;
}
button,
a,
summary,
select {
  touch-action: manipulation;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible,
select:focus-visible,
svg:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 4px;
}
button {
  border: 1px solid var(--mint);
  background: var(--mint);
  color: #10231a;
  border-radius: 7px;
  padding: 11px 12px;
  font-weight: 650;
  cursor: pointer;
}
button:hover:not(:disabled) {
  filter: brightness(1.07);
}
button:disabled {
  opacity: 0.35;
  cursor: default;
}
button.secondary {
  color: #dce3df;
  background: transparent;
  border-color: #42484b;
}
select {
  background: #171a1d;
  color: #eee;
  border: 1px solid #373b40;
  border-radius: 6px;
  padding: 7px 9px;
}
header.app-header {
  height: 77px;
  display: flex;
  align-items: center;
  gap: 32px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 30px;
}
.brand {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.8px;
  display: flex;
  gap: 6px;
  align-items: center;
  white-space: nowrap;
}
.brand > span:first-child {
  font-weight: 400;
  color: #b2b8bc;
}
.tag {
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 1px;
  padding: 4px 6px;
  border: 1px solid #343b40;
  border-radius: 4px;
  color: #a3abb2;
  white-space: nowrap;
}
.brand .tag {
  margin-left: 4px;
}
nav {
  display: flex;
  gap: 27px;
  height: 100%;
  align-items: center;
  color: #9ca2a9;
}
nav a {
  height: 100%;
  display: flex;
  align-items: center;
  border-bottom: 2px solid transparent;
}
nav a.active {
  color: #edf5ef;
  border-color: var(--mint);
}
.connection {
  margin-left: auto;
  color: #9ba3ab;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.connection:before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 100%;
  background: #79808a;
}
.connection[data-online="true"]:before {
  background: var(--mint);
}
.export {
  font-size: 12px;
  border: 1px solid #34393d;
  border-radius: 6px;
  padding: 9px 13px;
  white-space: nowrap;
}
.export span {
  color: #8f969e;
  margin-left: 9px;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 22px;
  margin-bottom: 36px;
}
.panel {
  min-width: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px;
  margin-bottom: 20px;
}
.workspace > .panel {
  margin-bottom: 0;
}
.market-panel {
  padding: 25px 25px 16px;
  background: #0c0e10;
}
.market-heading {
  display: flex;
  align-items: center;
  gap: 15px;
}
.bitcoin-icon {
  height: 49px;
  width: 49px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ef9b31;
  color: white;
  font-size: 35px;
  flex-shrink: 0;
  font-family: Arial, sans-serif;
  transform: rotate(12deg);
}
.eyebrow {
  display: block;
  color: #8b939a;
  font-size: 10px;
  letter-spacing: 1px;
  line-height: 1.6;
  font-weight: 550;
}
.market-heading .eyebrow {
  margin-bottom: 3px;
}
.muted-title {
  font-weight: 420;
  color: #abb2b8;
}
.mono {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 10px;
  color: #848d96;
  overflow-wrap: anywhere;
}
.market-heading .mono {
  margin-top: 6px;
}
.market-clock {
  margin-left: auto;
  text-align: right;
  white-space: nowrap;
}
.market-clock strong {
  display: block;
  font-variant-numeric: tabular-nums;
  font-size: 21px;
  font-weight: 500;
}
.market-clock > span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 4px;
}
.market-price-row {
  display: flex;
  align-items: center;
  gap: 30px;
  margin: 28px 0 13px;
}
.hero-price {
  font-size: 44px;
  font-weight: 580;
  letter-spacing: -1.6px;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
}
.target-price {
  border-left: 1px solid #30343a;
  padding-left: 25px;
}
.target-price strong {
  display: block;
  font-size: 22px;
  font-weight: 500;
  margin-top: 6px;
  font-variant-numeric: tabular-nums;
}
.market-quotes {
  margin-left: auto;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.market-quotes > span {
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.market-quotes strong {
  margin-left: 5px;
  font-size: 14px;
}
.quote-up {
  background: #172c23;
  color: var(--mint);
}
.quote-down {
  background: #2b1a24;
  color: var(--pink);
}
.chart-wrap {
  position: relative;
  min-height: 275px;
}
.chart-wrap svg {
  display: block;
  width: 100%;
  height: 330px;
  overflow: visible;
}
.chart-empty {
  position: absolute;
  inset: 0 80px 25px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 7px;
  color: #a9b0b6;
  pointer-events: none;
  font-size: 13px;
}
.chart-empty span {
  color: #777f87;
  font-size: 11px;
}
.chart-tooltip {
  position: absolute;
  left: 12px;
  top: 0;
  max-width: 90%;
  border: 1px solid #444e48;
  border-radius: 6px;
  padding: 7px 10px;
  background: #1a221eee;
  color: #e5f5eb;
  font-size: 11px;
  pointer-events: none;
  line-height: 1.5;
}
.chart-toolbar {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 7px 0 16px;
}
.range-controls {
  display: flex;
  gap: 3px;
}
.range {
  font-size: 10px;
  letter-spacing: 0.3px;
  background: none;
  color: #8b929b;
  border: 0;
  padding: 7px 12px;
  border-radius: 5px;
}
.range.active {
  background: #20392c;
  color: var(--mint);
}
.chart-legend {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  color: #949da5;
}
.legend-entry {
  color: var(--mint);
}
.target-key {
  color: var(--mint);
}
#chart-status {
  margin-left: auto;
  text-align: right;
  font-size: 10px;
}
.market-meta {
  display: flex;
  gap: 22px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  color: var(--muted);
  flex-wrap: wrap;
}
.market-meta strong {
  color: #c1c7cc;
  font-weight: 500;
}
.account-panel {
  padding: 22px 19px;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}
.account-panel > .section-head {
  margin-bottom: 26px;
}
.account-value {
  font-size: 34px;
  letter-spacing: -1px;
  font-weight: 560;
  display: block;
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}
.account-caption {
  font-size: 10px;
  line-height: 1.6;
  margin-top: 5px;
  color: #838c94;
}
.account-metrics {
  margin: 21px 0;
  display: grid;
  gap: 14px;
}
.account-metrics > div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.account-metrics dt {
  font-size: 11px;
  color: #9fa6ad;
}
.account-metrics dd {
  margin: 0;
  font-size: 12px;
  font-weight: 530;
  font-variant-numeric: tabular-nums;
}
.worker-status {
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.worker-status h2 {
  font-size: 13px;
}
.decision {
  font-size: 11px;
  line-height: 1.5;
  color: #acb5bd;
  margin: 9px 0 15px;
  overflow-wrap: anywhere;
  min-height: 32px;
}
.controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}
.controls button {
  font-size: 11px;
  padding: 10px 6px;
}
.runtime {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #78838b;
  font-size: 10px;
  margin-top: 14px;
}
.runtime span {
  display: flex;
  justify-content: space-between;
}
.runtime strong {
  color: #a6afb6;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.cloud-panel {
  padding-top: 19px;
}
.cloud-panel .section-head {
  margin-bottom: 8px;
}
.cloud-panel h3 {
  font-size: 12px;
}
.cloud-panel p {
  line-height: 1.6;
}
.cloud-badge {
  font-size: 9px;
  color: #aab2b9;
  border: 1px solid #333940;
  border-radius: 4px;
  padding: 3px 6px;
}
.cloud-badge[data-state="synced"] {
  color: var(--mint);
  border-color: #345346;
}
.cloud-badge[data-state="error"] {
  color: var(--pink);
  border-color: #684351;
}
.text-link {
  color: #b9d3c5;
  font-size: 10px;
  display: inline-block;
  margin-top: 9px;
}
.cloud-error {
  color: var(--pink);
  font-size: 10px;
  margin-top: 6px;
  overflow-wrap: anywhere;
}
.research-heading {
  margin-bottom: 18px;
}
.research-heading h2 {
  font-size: 23px;
  letter-spacing: -0.5px;
  margin-top: 5px;
  font-weight: 540;
}
.analytics-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
}
.analytics-grid .panel {
  padding: 19px 22px;
}
.analytics-grid svg {
  display: block;
  width: 100%;
  height: 165px;
  margin-bottom: 13px;
}
.analytics-grid .muted {
  font-size: 10px;
}
.pnl-panel {
  padding: 20px 22px;
}
.pnl-panel svg {
  width: 100%;
  max-height: 410px;
  display: block;
}
.muted {
  font-size: 11px;
  line-height: 1.55;
  color: var(--muted);
}
.panel > p.muted {
  max-width: 1100px;
}
.table-wrap {
  overflow: auto;
  margin-top: 15px;
  max-height: 560px;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
th {
  position: sticky;
  top: 0;
  background: var(--panel);
  padding: 11px 10px;
  color: #858f99;
  font-size: 10px;
  font-weight: 500;
  white-space: nowrap;
  border-bottom: 1px solid #34383d;
}
td {
  padding: 12px 10px;
  border-bottom: 1px solid #22262b;
  color: #bfc6cc;
}
tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: #16191d;
}
#strategies td:first-child {
  min-width: 150px;
  color: #e5e8eb;
  font-weight: 500;
}
#strategies td:nth-child(2) {
  max-width: 330px;
  min-width: 220px;
  color: #929da7;
  font-size: 10px;
}
#trades td {
  white-space: nowrap;
}
#trades td:nth-child(3) {
  max-width: 200px;
  white-space: normal;
}
.positive {
  color: var(--mint);
}
.negative {
  color: var(--pink);
}
.config {
  color: #a7afb7;
  line-height: 1.8;
  font-size: 12px;
  margin-top: 8px;
}
details {
  margin-top: 17px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  color: #99a4ae;
  font-size: 11px;
}
summary {
  cursor: pointer;
  color: #c0c8cf;
}
details p {
  margin-top: 12px;
  line-height: 1.7;
  max-width: 1000px;
}
footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  color: #727e88;
  font-size: 10px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.notice {
  padding: 13px 16px;
  border-radius: 7px;
  margin-bottom: 18px;
  font-size: 12px;
}
.error {
  color: #f4b6ce;
  background: #2a1921;
  border: 1px solid #563242;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.gridline {
  stroke: #24282c;
  stroke-width: 1;
  stroke-dasharray: 2 5;
}
.axis-label {
  fill: #7f8a93;
  font-size: 10px;
  font-family: inherit;
}
.price-line,
.equity-line {
  stroke: var(--mint);
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.price-line {
  stroke-width: 1.5;
}
.price-dot {
  fill: var(--mint);
}
.target-line {
  stroke: var(--mint);
  stroke-width: 1;
  stroke-dasharray: 5 5;
  opacity: 0.8;
}
.target-label {
  font-size: 9px;
  fill: var(--mint);
  letter-spacing: 0.3px;
}
.target-backdrop {
  fill: #111a16;
  stroke: #30483b;
  stroke-width: 0.7;
}
.marker-count {
  font-size: 8px;
  font-weight: 700;
  fill: #101713;
  pointer-events: none;
}
.trades-toggle {
  background: transparent;
  border: 1px solid #39433e;
  border-radius: 4px;
  padding: 4px 7px;
  font: inherit;
  color: #a5b3ab;
  white-space: nowrap;
}
.trades-toggle[aria-pressed="true"] {
  color: var(--mint);
  background: #20392c;
}
.trades-toggle:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
}
.trade-marker {
  stroke: #0c0e10;
  stroke-width: 1.5;
}
.trade-marker.up {
  fill: var(--mint);
}
.trade-marker.down {
  fill: var(--pink);
}
.trade-marker.mixed {
  fill: #b4c0c9;
}
.crosshair {
  stroke: #838f9a;
  stroke-dasharray: 3 3;
  stroke-width: 1;
}
.donut-track {
  stroke: #2b3036;
  stroke-width: 12;
  fill: none;
}
.donut {
  stroke-width: 12;
  fill: none;
}
.donut.win {
  stroke: var(--mint);
}
.donut.loss {
  stroke: var(--pink);
}
.donut.flat {
  stroke: #7d8693;
}
.donut.open {
  stroke: #c6ab79;
}
.legend-dot.win {
  fill: var(--mint);
}
.legend-dot.loss {
  fill: var(--pink);
}
.legend-dot.flat {
  fill: #7d8693;
}
.legend-dot.open {
  fill: #c6ab79;
}
.donut-number {
  fill: #e9eeeb;
  font-size: 27px;
  font-weight: 550;
}
.outcome-label {
  fill: #98a3ad;
  font-size: 12px;
}
.outcome-value {
  fill: #e5e9ec;
  font-size: 12px;
}
.zero-line {
  stroke: #4b535b;
  stroke-dasharray: 2 3;
}
.pnl-win {
  fill: var(--mint);
}
.pnl-loss {
  fill: var(--pink);
}
.bar-label {
  font-size: 10px;
  fill: #b6c0c8;
}
.bar-value {
  font-size: 10px;
  fill: #b8c6be;
}
.bar-value.negative {
  fill: var(--pink);
}
[hidden] {
  display: none !important;
}
@media (min-width: 1500px) {
  .chart-wrap svg {
    height: 370px;
  }
}
@media (max-width: 1150px) {
  main {
    padding: 0 20px 24px;
  }
  .workspace {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 16px;
  }
  .market-panel {
    padding: 22px 18px 16px;
  }
  .market-quotes {
    gap: 5px;
  }
  .market-quotes > span {
    padding: 7px 8px;
  }
  .market-price-row {
    gap: 20px;
  }
  .hero-price {
    font-size: 36px;
  }
  .target-price {
    padding-left: 19px;
  }
  .target-price strong {
    font-size: 19px;
  }
  h1 {
    font-size: 23px;
  }
  .chart-legend .target-key {
    display: none;
  }
}
@media (max-width: 900px) {
  header.app-header {
    gap: 20px;
    height: 68px;
    margin-bottom: 22px;
  }
  .brand {
    font-size: 19px;
  }
  nav {
    gap: 17px;
  }
  .workspace {
    grid-template-columns: minmax(0, 1fr);
  }
  .account-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 30px;
  }
  .account-panel > .section-head {
    grid-column: 1/-1;
    margin-bottom: 15px;
  }
  .account-panel > .eyebrow,
  .account-value,
  .account-caption,
  .account-metrics {
    grid-column: 1;
  }
  .worker-status {
    grid-column: 2;
    grid-row: 2/6;
    border-top: 0;
    border-bottom: 0;
    padding: 0;
  }
  .cloud-panel {
    grid-column: 1/-1;
    border-top: 1px solid var(--line);
    padding-top: 13px;
    margin-top: 2px;
  }
  .cloud-panel .section-head {
    justify-content: flex-start;
  }
  .cloud-panel p {
    display: inline-block;
    margin-right: 16px;
  }
  .cloud-panel .text-link {
    margin-right: 12px;
  }
  .chart-legend {
    display: flex;
  }
  .hero-price {
    font-size: 42px;
  }
  .analytics-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .chart-wrap svg {
    height: 340px;
  }
}
@media (max-width: 620px) {
  main {
    padding: 0 13px 18px;
  }
  header.app-header {
    gap: 12px;
    flex-wrap: wrap;
    height: auto;
    padding: 18px 0 13px;
    margin-bottom: 17px;
  }
  .brand {
    font-size: 20px;
  }
  nav {
    order: 3;
    height: 32px;
    flex: 1;
    gap: 22px;
    font-size: 12px;
  }
  .connection {
    font-size: 9px;
    margin-left: auto;
  }
  .export {
    order: 4;
    padding: 6px 8px;
    font-size: 10px;
  }
  .workspace {
    gap: 14px;
    margin-bottom: 28px;
  }
  .market-panel {
    padding: 17px 13px 10px;
  }
  .bitcoin-icon {
    height: 37px;
    width: 37px;
    font-size: 27px;
  }
  .market-heading {
    gap: 9px;
  }
  h1 {
    font-size: 18px;
    letter-spacing: -0.4px;
  }
  .market-heading .eyebrow {
    font-size: 8px;
  }
  .market-heading .mono {
    font-size: 8px;
  }
  .market-clock strong {
    font-size: 17px;
  }
  .market-clock > span {
    font-size: 8px;
  }
  .market-price-row {
    gap: 14px;
    flex-wrap: wrap;
    margin: 23px 0 10px;
  }
  .hero-price {
    font-size: 33px;
  }
  .target-price {
    padding-left: 14px;
  }
  .target-price strong {
    font-size: 18px;
  }
  .eyebrow {
    font-size: 8px;
  }
  .market-quotes {
    width: 100%;
    justify-content: flex-start;
    margin-left: 0;
  }
  .market-quotes > span {
    padding: 7px 12px;
  }
  .chart-wrap {
    min-height: 245px;
  }
  .chart-wrap svg {
    height: 245px;
  }
  .chart-empty {
    inset: 0 45px 25px 0;
    font-size: 11px;
  }
  .chart-empty span {
    font-size: 9px;
  }
  .chart-toolbar {
    gap: 10px;
    flex-wrap: wrap;
  }
  .range {
    padding: 7px 10px;
  }
  .chart-legend {
    font-size: 9px;
    gap: 8px;
  }
  #chart-status {
    width: 100%;
    margin: 0;
    text-align: left;
  }
  .market-meta {
    gap: 9px;
    font-size: 9px;
  }
  .account-panel {
    padding: 18px 15px;
    gap: 0 17px;
  }
  .account-value {
    font-size: 27px;
  }
  .account-caption {
    font-size: 9px;
  }
  .account-metrics {
    gap: 11px;
    margin: 14px 0;
  }
  .account-metrics dt,
  .account-metrics dd {
    font-size: 10px;
  }
  .worker-status h2 {
    font-size: 12px;
  }
  .decision {
    font-size: 10px;
    margin-top: 7px;
  }
  .controls {
    grid-template-columns: 1fr;
  }
  .controls button {
    padding: 8px 6px;
    font-size: 10px;
  }
  .runtime {
    font-size: 9px;
  }
  .runtime span {
    flex-wrap: wrap;
    gap: 4px;
  }
  .cloud-panel {
    margin-top: 12px;
  }
  .research-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  .research-heading h2 {
    font-size: 21px;
  }
  .analytics-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .analytics-grid .panel,
  .pnl-panel,
  .panel {
    padding: 17px 15px;
    border-radius: 8px;
  }
  .market-panel {
    padding: 17px 13px 10px;
  }
  .account-panel {
    padding: 18px 15px;
  }
  .pnl-panel {
    overflow: auto;
  }
  .pnl-panel svg {
    min-width: 550px;
    max-height: 480px;
  }
  .section-head {
    gap: 10px;
  }
  .section-head > label {
    font-size: 10px;
  }
  select {
    font-size: 10px;
    max-width: 150px;
  }
  .section-head > .muted {
    font-size: 9px;
  }
  .panel > .section-head h2 {
    font-size: 15px;
  }
  .chart-tooltip {
    font-size: 10px;
    max-width: 92%;
  }
  footer {
    font-size: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}

.pnl-panel svg {
  height: 535px;
  max-height: none;
}
.bar-label,
.bar-value {
  font-size: 13px;
}
#cloud-run {
  font-size: 8px;
  margin-top: 6px;
  overflow-wrap: anywhere;
}

.private-access {
  max-width: 460px;
  margin: 10vh auto;
  padding: 32px;
}
.private-access h1 {
  margin: 20px 0 12px;
  font-size: 26px;
}
.private-access p {
  line-height: 1.5;
  color: var(--muted, #9aa4ab);
}
.private-access form {
  display: grid;
  gap: 14px;
  margin: 24px 0;
}
.private-access input {
  width: 100%;
  min-width: 0;
  padding: 12px;
  border: 1px solid #39433e;
  border-radius: 6px;
  background: #101715;
  color: #fff;
  font: inherit;
}
.private-access button {
  padding: 12px;
}
#sign-out {
  white-space: nowrap;
}
