@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;550;600;650;700&family=Manrope:wght@400;500;600;650;700;750;800&family=Noto+Sans+SC:wght@400;450;500;550;600;650;700&display=swap");

:root {
  --bg: #f5f6f7;
  --surface: #fff;
  --ink: #202824;
  --muted: #818983;
  --line: #e8ece9;
  --lime: #d3f889;
  --green: #31805c;
  --red: #d16b66;
  --dark: #18201d;
  --radius: 16px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  font-family: "DM Sans", "Noto Sans SC", sans-serif;
  color: var(--ink);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  border: 0;
}
button:disabled {
  cursor: default;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #94bd59;
  outline-offset: 4px;
}
button {
  color: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
svg {
  display: block;
}
h1,
h2,
h3,
p {
  margin: 0;
}
button svg,
.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
button {
  transition:
    background 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
}
button:active:not(:disabled) {
  transform: scale(0.96);
}
button .icon {
  pointer-events: none;
}
::selection {
  background: #d3f889;
  color: #18201d;
}
.num {
  font-family: "Manrope", "DM Sans", sans-serif;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.035em;
}
.positive {
  color: var(--green);
}
.negative {
  color: var(--red);
}
.muted {
  color: var(--muted);
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 216px;
  background: #151c1a;
  color: #929b95;
  z-index: 30;
  display: flex;
  flex-direction: column;
  padding: 33px 18px 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #f7f9f6;
  padding: 0 13px;
  font-family: "Manrope", sans-serif;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 1px;
}
.brand svg {
  width: 35px;
  height: 35px;
  overflow: visible;
}
.brand ellipse {
  fill: none;
  stroke: var(--lime);
  stroke-width: 2.6;
}
.brand circle {
  fill: var(--lime);
}
.brand-dot {
  color: var(--lime);
}
nav {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 52px;
}
.nav-link {
  height: 48px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 17px;
  border-radius: 9px;
  font-weight: 500;
  transition: all 0.25s;
  position: relative;
}
.nav-link:hover {
  background: #232c27;
  color: white;
}
.nav-link.active {
  background: var(--lime);
  color: #233021;
  box-shadow: 0 4px 20px #0000000c;
}
.nav-link .icon {
  width: 20px;
  height: 20px;
}
.nav-count {
  margin-left: auto;
  font-family: "DM Sans";
  font-size: 12px;
  background: #ffffff10;
  padding: 2px 6px;
  border-radius: 5px;
}
.nav-link.active .nav-count {
  background: #28382012;
}
.sidebar-bottom {
  margin-top: auto;
}
.exchange {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 9px 22px;
  padding: 16px 0;
  border-bottom: 1px solid #2c3430;
  font-size: 12px;
  letter-spacing: 1.3px;
  font-weight: 650;
  color: #c4cbc5;
}
.binance-mark {
  color: #e6ca78;
  font-size: 23px;
  line-height: 16px;
}
.connection-dot,
.footer-status span {
  height: 6px;
  width: 6px;
  background: #b5dc80;
  border-radius: 50%;
  margin-left: auto;
  box-shadow: 0 0 0 4px #b5dc800b;
}
.profile {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 0 8px;
  background: none;
  color: #e1e7e2;
  font-size: 13px;
  text-align: left;
}
.profile > span:last-child {
  margin-left: auto;
  color: #79877e;
}
.avatar {
  display: grid;
  place-items: center;
  height: 34px;
  width: 34px;
  background: #35423a;
  border: 1px solid #4d5b50;
  border-radius: 50%;
  font: 500 14px "Manrope";
  color: #d3dfd3;
}
.workspace {
  margin-left: 216px;
}
.topbar {
  height: 79px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 13px;
}
.breadcrumb #breadcrumb-current {
  color: var(--ink);
}
.breadcrumb-slash {
  color: #c6ccc8;
  margin: 0 2px;
}
.workspace-icon .icon {
  width: 17px;
  height: 17px;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.mode {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #5b6a5b;
}
.mode span {
  height: 6px;
  width: 6px;
  border-radius: 50%;
  background: #96b773;
  box-shadow: 0 0 0 4px #96b77310;
}
.topbar-divider {
  height: 19px;
  width: 1px;
  background: var(--line);
  margin: 0 3px;
}
.icon-button {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  background: transparent;
  border-radius: 9px;
  color: #747e77;
}
.icon-button:hover {
  background: var(--bg);
  color: var(--ink);
}
.notification-button {
  position: relative;
}
.notification-button i {
  position: absolute;
  right: 7px;
  top: 6px;
  width: 5px;
  height: 5px;
  background: var(--green);
  border-radius: 50%;
  border: 1px solid white;
}
.mobile-menu {
  display: none;
}
main {
  padding: 32px 36px 18px;
  max-width: 1680px;
  margin: auto;
  min-height: calc(100vh - 128px);
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 26px;
  gap: 16px;
}
.page-heading h1 {
  font-size: 27px;
  letter-spacing: -1px;
  font-weight: 600;
  line-height: 40px;
}
.heading-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  min-width: 0;
  max-width: 100%;
  gap: 12px;
}
.button {
  height: 39px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 16px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 13px;
  white-space: nowrap;
}
.button .icon {
  width: 16px;
  height: 16px;
}
.button:hover {
  background: #edf1ed;
}
.button.primary {
  background: var(--dark);
  color: #fff;
  border-color: var(--dark);
}
.button.primary:hover {
  background: #354339;
  box-shadow: 0 3px 10px #18201d16;
}
.button.primary .icon {
  color: var(--lime);
}
.button.lime {
  background: var(--lime);
  color: #20301b;
  border-color: var(--lime);
  font-weight: 550;
}
.button.lime:hover {
  background: #e1ffb2;
}
.button.quiet {
  background: none;
  border-color: transparent;
  padding: 0 4px;
  color: var(--muted);
}
.button.quiet:hover {
  color: var(--ink);
}
.button.danger {
  color: var(--red);
  background: #fff7f6;
  border-color: #f3deda;
}
.date-button {
  color: #747d77;
  font-size: 12px;
  padding: 0 12px;
}
.date-button .icon {
  width: 15px;
  height: 15px;
}
.metrics {
  display: grid;
  grid-template-columns: 1.28fr 1fr 1fr 0.95fr;
  gap: 18px;
  margin-bottom: 24px;
}
.metric {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 19px 21px;
  min-height: 130px;
  position: relative;
  overflow: hidden;
}
.metric-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: #7c857e;
}
.metric-head .icon {
  width: 17px;
  height: 17px;
  color: #9da69f;
}
.metric-value {
  font-size: 29px;
  font-weight: 650;
  line-height: 1.3;
  margin-top: 9px;
  display: flex;
  align-items: baseline;
  gap: 7px;
  white-space: nowrap;
}
.metric-value .unit {
  font-family: "DM Sans";
  font-size: 12px;
  letter-spacing: 0;
  font-weight: 400;
  color: var(--muted);
}
.metric-bottom {
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
}
.change {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-family: "Manrope";
  font-size: 11px;
  font-weight: 600;
}
.change .icon {
  width: 12px;
  height: 12px;
}
.metric-balance {
  background: #202b24;
  color: white;
  border: 0;
}
.metric-balance .metric-head {
  color: #bcc9bd;
}
.metric-balance .metric-head .icon {
  color: #bdcebc;
}
.metric-balance .unit {
  color: #a1b59d;
}
.metric-balance .metric-bottom {
  color: #b1bcae;
}
.metric-balance .change {
  color: var(--lime);
}
.balance-decoration {
  position: absolute;
  right: -40px;
  bottom: -70px;
  width: 190px;
  height: 190px;
  border: 1px solid #c5f09b15;
  border-radius: 50%;
  pointer-events: none;
}
.balance-decoration:before,
.balance-decoration:after {
  content: "";
  position: absolute;
  border: 1px solid #c5f09b15;
  inset: 20px;
  border-radius: 50%;
}
.balance-decoration:after {
  inset: 40px;
}
.mini-bars {
  position: absolute;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  right: 20px;
  bottom: 22px;
  height: 24px;
}
.mini-bars span {
  width: 4px;
  background: #d6e6d8;
  border-radius: 2px;
  transform-origin: bottom;
  animation: growBar 0.7s var(--ease) both;
}
.mini-bars span:last-child {
  background: #70a784;
}
.strategy-count {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #737f75;
  font-size: 11px;
}
.small-dot {
  height: 5px;
  width: 5px;
  background: #85b095;
  border-radius: 50%;
}
.small-dot.gray {
  background: #bac0ba;
  margin-left: 10px;
}
.primary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 285px;
  gap: 22px;
  margin-bottom: 27px;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.chart-panel {
  padding: 22px 23px 12px;
  min-width: 0;
  overflow: hidden;
}
.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.panel-heading h2,
.section-heading h2 {
  font-size: 16px;
  letter-spacing: -0.35px;
  font-weight: 550;
}
.segmented {
  display: flex;
  padding: 3px;
  background: #f3f5f3;
  border-radius: 7px;
  gap: 2px;
}
.segmented button {
  background: transparent;
  color: #858e86;
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 5px;
  white-space: nowrap;
}
.segmented button.active {
  background: white;
  color: #334333;
  box-shadow: 0 1px 4px #18201d0a;
}
.chart-legend {
  display: flex;
  gap: 18px;
  margin-top: 18px;
  font-size: 11px;
  color: #899088;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 7px;
}
.legend-line {
  width: 12px;
  height: 3px;
  background: #6d957b;
  border-radius: 2px;
}
.legend-line.baseline {
  height: 0;
  border-top: 2px dashed #c5cdc6;
  background: none;
}
.chart-wrap {
  height: 222px;
  position: relative;
  margin-top: 3px;
}
.chart-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.chart-svg text {
  font: 10px "DM Sans";
  fill: #9aa29c;
}
.chart-grid {
  stroke: #eef1ee;
  stroke-dasharray: 3 5;
  stroke-width: 1;
}
.chart-line {
  fill: none;
  stroke: #5c8a6d;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
  animation: drawLine 2.5s var(--ease) forwards;
}
.benchmark-line {
  fill: none;
  stroke: #c2cbc2;
  stroke-width: 1.5;
  stroke-dasharray: 4 5;
  opacity: 0.8;
}
.chart-area {
  opacity: 0;
  animation: fadeIn 1.6s 0.25s forwards;
}
.chart-end {
  fill: #5c8a6d;
  stroke: white;
  stroke-width: 3;
  animation: fadeIn 1s 0.8s both;
}
.chart-tip {
  position: absolute;
  top: 15px;
  padding: 9px 12px;
  background: #233529;
  color: white;
  border-radius: 8px;
  font: 600 12px "Manrope";
  box-shadow: 0 5px 20px #0002;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 5px);
  transition:
    opacity 0.15s,
    transform 0.15s;
  z-index: 2;
  white-space: nowrap;
}
.chart-tip.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.chart-tip small {
  display: block;
  color: #b9c7b9;
  font: 10px "DM Sans";
  margin-bottom: 4px;
}
.chart-crosshair {
  stroke: #73927a;
  stroke-width: 1;
  stroke-dasharray: 3 4;
  opacity: 0;
}
.optimizer-card {
  border-radius: var(--radius);
  background: #1d2822;
  color: #f0f4ed;
  padding: 22px 22px 20px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 316px;
}
.optimizer-card:before {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  right: -70px;
  top: -40px;
  border-radius: 50%;
  background: radial-gradient(circle, #819b3420, transparent 70%);
  pointer-events: none;
}
.optimizer-card .panel-heading h2 {
  font-size: 16px;
}
.optimization-icon {
  color: #a3b69d;
}
.optimization-icon .icon {
  width: 19px;
  height: 19px;
}
.orbital {
  height: 162px;
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
  margin-top: 0;
}
.orbit-ring {
  position: absolute;
  width: 148px;
  height: 148px;
  border: 1px solid #b2d39522;
  border-radius: 50%;
  transform: rotateX(57deg) rotateZ(-30deg);
}
.orbit-ring.ring-two {
  width: 144px;
  height: 144px;
  transform: rotateY(55deg) rotateZ(32deg);
  border-color: #b2d39532;
}
.orbit-ring.ring-three {
  width: 136px;
  height: 136px;
  transform: rotateY(55deg) rotateZ(-40deg);
  border-color: #b2d39524;
}
.orbit-track {
  position: absolute;
  width: 138px;
  height: 138px;
  animation: orbit 15s linear infinite;
  transform-origin: 50% 50%;
  border: 1px solid #b2d3950c;
  border-radius: 50%;
}
.orbit-track:before {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  background: var(--lime);
  border-radius: 50%;
  top: 14px;
  left: 15px;
  box-shadow: 0 0 14px #d3f88955;
}
.orbit-track.second {
  width: 102px;
  height: 102px;
  animation: orbit 11s linear infinite reverse;
}
.orbit-track.second:before {
  width: 4px;
  height: 4px;
  background: #9cb99a;
  top: 0;
  left: 43px;
}
.orb-core {
  width: 58px;
  height: 58px;
  border-radius: 19px;
  background: linear-gradient(140deg, #5c705044, #29392c66);
  border: 1px solid #b2d39544;
  box-shadow:
    0 0 45px #badb7814,
    inset 0 0 14px #a1c77d10;
  display: grid;
  place-items: center;
  transform: rotate(-10deg);
  animation: float 5s ease-in-out infinite;
}
.orb-core .icon {
  width: 30px;
  height: 30px;
  stroke: var(--lime);
  transform: rotate(10deg);
}
.optimizer-stats {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: auto;
  font-size: 11px;
  color: #acb8a8;
}
.optimizer-stats strong {
  font: 600 21px "Manrope";
  color: #f2f6ed;
  letter-spacing: -0.8px;
}
.optimizer-stats strong small {
  font-size: 12px;
  color: #83927c;
  font-weight: 400;
  letter-spacing: 0;
}
.progress-track {
  height: 3px;
  background: #394538;
  border-radius: 3px;
  margin: 12px 0 18px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--lime);
  border-radius: 3px;
  transition: width 0.4s ease;
  position: relative;
}
.progress-fill:after {
  content: "";
  position: absolute;
  inset: 0;
  width: 40%;
  background: linear-gradient(90deg, transparent, #fff9, transparent);
  animation: shimmer 2s infinite;
}
.optimizer-card .button {
  width: 100%;
  height: 35px;
  font-size: 12px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.section-heading-left {
  display: flex;
  align-items: center;
  gap: 20px;
}
.filter-tabs {
  display: flex;
  gap: 18px;
}
.filter-tabs button {
  background: none;
  padding: 6px 0;
  color: #919890;
  font-size: 12px;
  position: relative;
}
.filter-tabs button.active {
  color: #2b3e2d;
}
.filter-tabs button.active:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #5f8363;
  border-radius: 2px;
}
.filter-tabs .filter-count {
  margin-left: 5px;
  font-size: 10px;
  opacity: 0.6;
}
.section-heading .button {
  font-size: 12px;
  height: 30px;
}
.strategy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.strategy-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 19px 20px 16px;
  cursor: pointer;
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s,
    border-color 0.3s;
  position: relative;
  overflow: hidden;
}
.strategy-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px #273a2810;
  border-color: #c8d6c7;
}
.strategy-top {
  display: flex;
  align-items: center;
  gap: 10px;
}
.strategy-symbol {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #eaf0e7;
  color: #5b7b59;
}
.strategy-symbol .icon {
  width: 18px;
  height: 18px;
}
.strategy-symbol.purple {
  background: #eeeaf8;
  color: #887ca6;
}
.strategy-symbol.orange {
  background: #fbefdf;
  color: #b59866;
}
.strategy-symbol.blue {
  background: #e7eef5;
  color: #6b8eac;
}
.strategy-top h3 {
  font-size: 14px;
  font-weight: 550;
  white-space: nowrap;
}
.strategy-top .version {
  font: 10px "DM Sans";
  color: #a0a79e;
}
.switch {
  margin-left: auto;
  width: 29px;
  height: 17px;
  border-radius: 20px;
  background: #dce1db;
  padding: 2px;
  flex-shrink: 0;
  position: relative;
}
.switch:after {
  content: "";
  display: block;
  height: 13px;
  width: 13px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 1px 3px #0002;
  transition: transform 0.25s var(--ease);
}
.switch[aria-checked="true"] {
  background: #789670;
}
.switch[aria-checked="true"]:after {
  transform: translateX(12px);
}
.strategy-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 19px 0 17px;
}
.return-label {
  font-size: 11px;
  color: #899187;
  margin-bottom: 4px;
}
.strategy-return {
  font-size: 25px;
  font-weight: 600;
  line-height: 1.2;
}
.sparkline {
  width: 110px;
  height: 49px;
  overflow: visible;
}
.sparkline path.line {
  stroke-width: 1.6;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 500;
  stroke-dashoffset: 500;
  animation: drawLine 2s var(--ease) forwards;
}
.strategy-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
}
.tag {
  display: inline-flex;
  align-items: center;
  height: 21px;
  padding: 0 6px;
  background: #f4f5f3;
  color: #7c8579;
  border-radius: 4px;
  font:
    10px "DM Sans",
    "Noto Sans SC";
  letter-spacing: 0.1px;
}
.strategy-stats {
  display: grid;
  grid-template-columns: 1.1fr 1fr 0.7fr;
  border-top: 1px solid var(--line);
  padding-top: 13px;
  gap: 8px;
}
.strategy-stats > div:last-child {
  text-align: right;
}
.strategy-stats dt {
  font-size: 10px;
  color: #929a90;
  margin-bottom: 6px;
}
.strategy-stats dd {
  margin: 0;
  font: 550 12px "Manrope";
  letter-spacing: -0.2px;
}
.strategy-stats {
  margin-bottom: 0;
}
.strategy-stats dt,
.strategy-stats dd {
  white-space: nowrap;
}
.recent-section {
  margin-top: 29px;
}
.recent-section .panel {
  overflow: hidden;
}
.table-scroll {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  white-space: nowrap;
}
th {
  font-weight: 400;
  font-size: 11px;
  color: #939b92;
  background: #fafbf9;
  padding: 13px 20px;
  border-bottom: 1px solid var(--line);
}
td {
  font-size: 12px;
  padding: 15px 20px;
  border-bottom: 1px solid #f0f2ee;
}
tr:last-child td {
  border-bottom: 0;
}
td.num {
  font-size: 12px;
}
td:last-child,
th:last-child {
  text-align: right;
}
.trade-pair {
  display: flex;
  align-items: center;
  gap: 9px;
}
.coin {
  width: 23px;
  height: 23px;
  background: #f4e6cc;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 600 13px "Manrope";
  color: #ba9959;
}
.coin.eth {
  background: #e8eaf3;
  color: #8992b4;
}
.coin.sol {
  background: #e9efed;
  color: #739285;
}
.trade-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #7c897b;
  font-size: 11px;
}
.trade-status:before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #91ac88;
}
footer {
  display: flex;
  align-items: center;
  gap: 11px;
  max-width: 1680px;
  margin: 0 auto;
  padding: 21px 37px 24px;
  font: 9px "DM Sans";
  letter-spacing: 1.5px;
  color: #a6ada3;
}
.footer-line {
  width: 1px;
  height: 10px;
  background: #d8ded5;
}
#clock {
  letter-spacing: 0.7px;
}
.footer-status {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 7px;
  font: 10px "Noto Sans SC";
  letter-spacing: 0;
}
.footer-status span {
  width: 4px;
  height: 4px;
  background: #92ad88;
  margin: 0;
}
.view-enter {
  animation: viewEnter 0.5s var(--ease) both;
}
.stagger {
  animation: cardEnter 0.6s var(--ease) both;
  animation-delay: var(--delay, 0s);
}
.empty {
  padding: 60px;
  text-align: center;
  color: var(--muted);
  grid-column: 1/-1;
}
.full-strategies {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 24px;
}
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.search-field {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
  padding: 9px 12px;
}
.search-field .icon {
  width: 16px;
  height: 16px;
  color: var(--muted);
}
.search-field input {
  border: 0;
  background: none;
  outline: none;
  width: 160px;
  font-size: 12px;
  color: var(--ink);
}
.form-layout {
  display: grid;
  grid-template-columns: 285px minmax(0, 1fr);
  gap: 22px;
}
.form-panel {
  padding: 23px;
}
.form-panel h2 {
  font-size: 16px;
  font-weight: 550;
  margin-bottom: 25px;
}
.field {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 9px;
  margin: 0 0 20px;
}
.field label {
  font-size: 12px;
  color: #7a8478;
}
.field input,
.field select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 0 12px;
  color: var(--ink);
  font-size: 13px;
  transition: border-color 0.2s;
}
.field input:focus,
.field select:focus {
  border-color: #9cb98c;
  outline: 0;
  box-shadow: 0 0 0 3px #c8dfac20;
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23858e83'%3E%3Cpath d='m3 4 3 3 3-3'/%3E%3C/svg%3E");
  background-position: right 12px center;
  background-repeat: no-repeat;
  padding-right: 30px;
}
.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}
.field input[type="date"] {
  padding-inline: 7px;
  font-size: 12px;
}
.field input[type="date"]::-webkit-datetime-edit {
  min-width: 0;
  padding: 0;
}
.field input[type="date"]::-webkit-calendar-picker-indicator {
  margin: 0;
  padding: 0;
  width: 14px;
  flex-shrink: 0;
}
.key-link {
  margin: -8px 0 14px;
  font-size: 12px;
}
.form-panel > .button {
  width: 100%;
  margin-top: 2px;
}
.lab-results .metrics {
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-top: 20px;
}
.lab-results .metric {
  padding: 18px;
  min-height: 124px;
}
.lab-results .metric-value {
  font-size: 24px;
}
.lab-results .chart-wrap {
  height: 285px;
}
.lab-progress {
  height: 3px;
  background: #e6eddf;
  border-radius: 3px;
  margin-top: 17px;
  overflow: hidden;
}
.lab-progress div {
  height: 100%;
  background: #7ca46b;
  transition: width 0.3s;
}
.optimization-layout {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 24px;
}
.optimization-layout .optimizer-card {
  min-height: 410px;
}
.optimization-layout .orbital {
  height: 235px;
}
.optimization-layout .orbit-ring {
  width: 190px;
  height: 190px;
}
.optimization-layout .orbit-track {
  width: 185px;
  height: 185px;
}
.optimization-layout .orbit-track.second {
  width: 135px;
  height: 135px;
}
.optimization-layout .orb-core {
  width: 75px;
  height: 75px;
  border-radius: 24px;
}
.optimization-layout .orb-core .icon {
  width: 37px;
  height: 37px;
}
.optimization-layout .optimizer-stats strong {
  font-size: 30px;
}
.optimization-settings {
  margin-top: 20px;
  padding: 24px;
}
.optimization-settings .field:last-child {
  margin-bottom: 0;
}
.candidate-panel {
  padding: 23px;
}
.candidate-list {
  margin-top: 26px;
}
.candidate-row {
  display: grid;
  grid-template-columns: 28px 1fr 90px 80px;
  align-items: center;
  gap: 12px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.candidate-rank {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  background: #eff2ec;
  border-radius: 7px;
  font: 600 11px "Manrope";
  color: #899281;
}
.candidate-row:first-child .candidate-rank {
  background: #e4f0d3;
  color: #648348;
}
.candidate-name {
  font-size: 13px;
}
.candidate-row .candidate-value {
  font: 600 17px "Manrope";
  color: var(--green);
  text-align: right;
}
.candidate-row .button {
  height: 31px;
  font-size: 11px;
  padding: 0 10px;
}
.candidate-chart {
  height: 150px;
  margin-top: 34px;
  display: flex;
  gap: 10px;
  align-items: flex-end;
  padding: 0 10px;
  border-bottom: 1px solid var(--line);
}
.candidate-bar {
  flex: 1;
  background: #e7eedf;
  border-radius: 5px 5px 0 0;
  transform-origin: bottom;
  animation: growBar 0.7s var(--ease) both;
}
.candidate-bar:nth-last-child(-n + 3) {
  background: #b5d38d;
}
.candidate-bar:last-child {
  background: #85ad64;
}
.optimized .candidate-row {
  animation: cardEnter 0.5s var(--ease) both;
  animation-delay: calc(var(--i) * 0.1s);
}
.record-controls {
  margin-bottom: 23px;
}
.overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #101b1850;
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s;
}
.modal {
  width: 440px;
  max-width: 100%;
  max-height: calc(100dvh - 40px);
  overflow: auto;
  background: var(--surface);
  border: 1px solid #ffffff70;
  border-radius: 19px;
  padding: 27px;
  box-shadow: 0 25px 100px #091c2225;
  animation: modalIn 0.4s var(--ease);
}
.modal-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
}
.modal-heading h2 {
  font-size: 19px;
  font-weight: 550;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 27px;
}
.drawer-overlay {
  justify-content: flex-end;
  padding: 12px;
}
.drawer {
  height: calc(100dvh - 24px);
  width: 400px;
  border-radius: 16px;
  animation: drawerIn 0.45s var(--ease);
  max-height: none;
}
.drawer .strategy-return {
  font-size: 38px;
  margin: 12px 0 26px;
}
.drawer .field-row {
  margin-top: 24px;
}
.drawer .sparkline {
  width: 100%;
  height: 110px;
  margin: 6px 0 25px;
}
.drawer .sparkline path.line {
  stroke-width: 1;
}
.detail-trades {
  margin-top: 30px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.detail-trades h3 {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 15px;
}
.detail-trade {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 0;
  font-size: 12px;
  border-bottom: 1px solid var(--line);
}
.command-modal {
  width: 510px;
  padding: 0;
  overflow: hidden;
  align-self: flex-start;
  margin-top: 16vh;
}
.command-search {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.command-search input {
  flex: 1;
  width: 0;
  background: none;
  border: 0;
  font-size: 16px;
  color: var(--ink);
  outline: 0;
}
.key {
  font: 10px "DM Sans";
  padding: 4px 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: #9ba296;
}
.command-results {
  padding: 9px;
  max-height: 360px;
  overflow: auto;
}
.command-result {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 15px;
  border-radius: 7px;
  background: none;
  text-align: left;
  font-size: 13px;
}
.command-result:hover {
  background: var(--bg);
}
.command-result .icon {
  color: #8f9b88;
  width: 17px;
  height: 17px;
}
.notification-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.notification-row:last-child {
  border-bottom: 0;
}
.notification-row time {
  margin-left: auto;
  font: 11px "DM Sans";
  color: var(--muted);
}
.notification-row .icon {
  color: #90a77c;
  width: 17px;
  height: 17px;
}
.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.settings-row:last-child {
  border: 0;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  margin-top: 20px;
}
.calendar-grid span,
.calendar-grid button {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  font: 12px "DM Sans";
  border-radius: 7px;
  background: none;
  color: var(--muted);
}
.calendar-grid .selected {
  background: var(--dark);
  color: var(--lime);
}
.calendar-grid button:hover {
  background: #edf3e6;
}
.calendar-grid .selected:hover {
  background: var(--dark);
}
.calendar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
}
.calendar-period {
  font: 12px "DM Sans";
  color: var(--muted);
  padding-top: 20px;
  text-align: center;
}
.toast-visible {
  transform: translate(-50%, 0) !important;
  opacity: 1 !important;
}
#toast {
  position: fixed;
  bottom: 30px;
  left: calc(50% + 108px);
  z-index: 150;
  background: #263629;
  color: #eef4e9;
  padding: 12px 20px;
  border-radius: 9px;
  font-size: 12px;
  box-shadow: 0 7px 25px #18201d26;
  opacity: 0;
  transform: translate(-50%, 15px);
  transition: 0.3s var(--ease);
  pointer-events: none;
}
.reduced-motion *,
.reduced-motion *:before,
.reduced-motion *:after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
}
.reduced-motion .chart-line,
.reduced-motion .sparkline path.line {
  stroke-dashoffset: 0;
}
.reduced-motion .chart-area {
  opacity: 1;
}
@keyframes viewEnter {
  from {
    opacity: 0;
    transform: translateY(9px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes cardEnter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes drawLine {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes growBar {
  from {
    transform: scaleY(0);
  }
  to {
    transform: scaleY(1);
  }
}
@keyframes orbit {
  to {
    transform: rotate(360deg);
  }
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(-10deg);
  }
  50% {
    transform: translateY(-6px) rotate(-4deg);
  }
}
@keyframes shimmer {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(350%);
  }
}
@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes drawerIn {
  from {
    transform: translateX(80px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
@media (min-width: 1500px) {
  .sidebar {
    width: 232px;
    padding-left: 22px;
    padding-right: 22px;
  }
  .workspace {
    margin-left: 232px;
  }
  .topbar {
    padding-left: 44px;
    padding-right: 44px;
  }
  main {
    padding: 36px 44px 22px;
  }
  .primary-grid {
    grid-template-columns: minmax(0, 1fr) 320px;
  }
  .chart-wrap {
    height: 250px;
  }
  .optimizer-card {
    min-height: 344px;
  }
  .orbital {
    height: 185px;
  }
  .metric {
    min-height: 142px;
    padding: 22px 24px;
  }
  .metric-value {
    font-size: 32px;
  }
  .strategy-card {
    padding: 22px 24px 18px;
  }
  .strategy-main {
    margin: 22px 0 18px;
  }
  .strategy-return {
    font-size: 28px;
  }
  .strategy-stats dt {
    font-size: 11px;
  }
  .strategy-stats dd {
    font-size: 13px;
  }
  #toast {
    left: calc(50% + 116px);
  }
}
@media (max-width: 1190px) {
  .sidebar {
    width: 184px;
    padding: 30px 14px 20px;
  }
  .brand {
    font-size: 25px;
    padding: 0 8px;
    gap: 7px;
  }
  .brand svg {
    width: 31px;
  }
  .nav-link {
    padding: 0 14px;
    gap: 11px;
  }
  .workspace {
    margin-left: 184px;
  }
  .topbar {
    padding: 0 25px;
  }
  main {
    padding: 27px 25px 18px;
  }
  .metrics {
    gap: 12px;
    grid-template-columns: 1.2fr 1fr 1fr 0.85fr;
  }
  .metric {
    padding: 17px 16px;
  }
  .metric-value {
    font-size: 25px;
  }
  .metric-value .unit {
    font-size: 10px;
  }
  .metric-bottom {
    font-size: 10px;
  }
  .mini-bars {
    display: none;
  }
  .primary-grid {
    grid-template-columns: minmax(0, 1fr) 255px;
    gap: 16px;
  }
  .chart-panel {
    padding: 20px 18px 12px;
  }
  .optimizer-card {
    padding: 20px 19px 18px;
  }
  .strategy-grid {
    gap: 12px;
  }
  .strategy-card {
    padding: 17px 15px 15px;
  }
  .strategy-top {
    gap: 7px;
  }
  .strategy-top h3 {
    font-size: 13px;
  }
  .strategy-top .version {
    font-size: 9px;
  }
  .strategy-symbol {
    width: 28px;
    height: 28px;
  }
  .strategy-return {
    font-size: 23px;
  }
  .sparkline {
    width: 85px;
  }
  .strategy-stats dt {
    font-size: 9px;
  }
  .strategy-stats dd {
    font-size: 11px;
  }
  .optimization-layout {
    grid-template-columns: 290px minmax(0, 1fr);
  }
  .candidate-row {
    grid-template-columns: 24px 1fr 65px;
    gap: 9px;
  }
  .candidate-row .button {
    grid-column: 2/4;
    justify-self: end;
  }
  .form-layout {
    grid-template-columns: 250px minmax(0, 1fr);
  }
  #toast {
    left: calc(50% + 92px);
  }
}
@media (max-width: 980px) {
  .sidebar {
    width: 76px;
    padding: 30px 10px 20px;
  }
  .brand {
    padding: 0;
    justify-content: center;
  }
  .brand > span,
  .nav-link > span,
  .profile > span:not(.avatar),
  .exchange > span:not(.binance-mark) {
    display: none;
  }
  .nav-link {
    padding: 0;
    justify-content: center;
  }
  .sidebar nav {
    margin-top: 42px;
  }
  .sidebar-bottom .exchange {
    margin: 0 0 20px;
    justify-content: center;
  }
  .profile {
    justify-content: center;
    padding: 0;
  }
  .workspace {
    margin-left: 76px;
  }
  .metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .metric-value {
    font-size: 23px;
  }
  .metric-balance .metric-value {
    display: block;
  }
  .metric-balance .unit {
    display: none;
  }
  .metric-head {
    font-size: 12px;
  }
  .metric-head > .icon {
    display: none;
  }
  .metric-bottom {
    font-size: 9px;
    gap: 4px;
  }
  .metric-bottom .change {
    font-size: 10px;
  }
  .primary-grid {
    grid-template-columns: minmax(0, 1fr) 235px;
  }
  .strategy-top .version {
    display: none;
  }
  .section-heading-left {
    gap: 16px;
  }
  .filter-tabs {
    gap: 12px;
  }
  .strategy-stats {
    grid-template-columns: 1fr 1fr;
  }
  .strategy-stats > div:last-child {
    display: none;
  }
  .strategy-main {
    gap: 4px;
  }
  .sparkline {
    width: 75px;
  }
  .chart-wrap {
    height: 220px;
  }
  .strategy-meta {
    gap: 4px;
  }
  .tag {
    font-size: 9px;
  }
  .optimization-layout {
    grid-template-columns: 260px minmax(0, 1fr);
  }
  .lab-results .metrics {
    grid-template-columns: 1fr;
  }
  .lab-results .metric {
    min-height: 100px;
  }
  .date-button {
    display: none;
  }
  #toast {
    left: calc(50% + 38px);
  }
}
@media (max-width: 740px) {
  .topbar {
    height: 65px;
    padding: 0 20px;
  }
  .topbar-actions {
    gap: 10px;
  }
  .topbar-divider {
    margin: 0;
  }
  .breadcrumb {
    gap: 9px;
    font-size: 12px;
  }
  .workspace-icon {
    display: none;
  }
  main {
    padding: 23px 20px 16px;
  }
  .page-heading {
    margin-bottom: 20px;
  }
  .page-heading h1 {
    font-size: 24px;
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
  }
  .metric {
    min-height: 127px;
    padding: 18px;
  }
  .metric-balance .metric-value {
    display: flex;
  }
  .metric-value {
    font-size: 27px;
  }
  .metric-balance .unit {
    display: block;
    font-size: 10px;
  }
  .metric-bottom {
    font-size: 10px;
  }
  .primary-grid {
    grid-template-columns: 1fr;
  }
  .optimizer-card {
    min-height: 200px;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 150px;
    grid-template-rows: 30px 1fr 38px;
    column-gap: 15px;
  }
  .optimizer-card .panel-heading {
    grid-column: 1;
    grid-row: 1;
  }
  .optimizer-card .orbital {
    grid-column: 2;
    grid-row: 1/4;
    height: 160px;
    align-self: center;
  }
  .optimizer-card .optimizer-stats {
    grid-column: 1;
    grid-row: 2;
    align-self: center;
    margin-top: 0;
  }
  .optimizer-card .optimizer-stats > span {
    display: none;
  }
  .optimizer-card .progress-track {
    position: absolute;
    left: 20px;
    right: 185px;
    bottom: 60px;
    margin: 0;
  }
  .optimizer-card .button {
    grid-column: 1;
    grid-row: 3;
  }
  .strategy-grid,
  .full-strategies {
    grid-template-columns: 1fr;
  }
  .strategy-card {
    padding: 20px;
  }
  .strategy-top h3 {
    font-size: 14px;
  }
  .strategy-top .version {
    display: block;
  }
  .strategy-return {
    font-size: 28px;
  }
  .sparkline {
    width: 140px;
    height: 60px;
  }
  .strategy-stats {
    grid-template-columns: repeat(3, 1fr);
  }
  .strategy-stats > div:last-child {
    display: block;
  }
  .strategy-stats dt {
    font-size: 11px;
  }
  .strategy-stats dd {
    font-size: 13px;
  }
  .strategy-main {
    margin: 16px 0 12px;
  }
  .strategy-meta {
    margin-bottom: 14px;
  }
  .tag {
    font-size: 10px;
  }
  .section-heading-left {
    gap: 14px;
  }
  .section-heading h2 {
    font-size: 15px;
  }
  .section-heading .filter-tabs {
    gap: 10px;
  }
  .section-heading .filter-tabs button {
    font-size: 11px;
  }
  .filter-count {
    display: none;
  }
  .form-layout,
  .optimization-layout {
    grid-template-columns: 1fr;
  }
  .form-panel {
    padding: 22px;
  }
  .lab-results .metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .lab-results .metric {
    padding: 15px 10px;
  }
  .lab-results .metric-value {
    font-size: 19px;
  }
  .lab-results .metric-head {
    font-size: 10px;
  }
  .lab-results .metric-bottom {
    font-size: 9px;
  }
  .optimization-layout .optimizer-card {
    min-height: 245px;
  }
  .optimization-layout .orbital {
    height: 200px;
  }
  .optimization-layout .orbit-ring {
    width: 145px;
    height: 145px;
  }
  .optimization-layout .orbit-track {
    width: 140px;
    height: 140px;
  }
  .optimization-layout .orbit-track.second {
    width: 110px;
    height: 110px;
  }
  .optimization-layout .orb-core {
    width: 58px;
    height: 58px;
  }
  .candidate-row {
    grid-template-columns: 26px 1fr 85px 80px;
  }
  .candidate-row .button {
    grid-column: auto;
    justify-self: stretch;
  }
  .toolbar {
    flex-wrap: wrap;
  }
  .search-field input {
    width: 130px;
  }
  .recent-section {
    margin-top: 24px;
  }
  footer {
    padding: 22px 20px;
    gap: 7px;
    font-size: 8px;
    letter-spacing: 1px;
  }
  .footer-status {
    font-size: 9px;
  }
  .heading-actions .button {
    font-size: 12px;
    padding: 0 12px;
  }
  .heading-actions {
    gap: 7px;
  }
}
@media (max-width: 520px) {
  .sidebar {
    transform: translateX(-100%);
    width: 216px;
    transition: transform 0.3s var(--ease);
    box-shadow: 20px 0 60px #1114;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .sidebar.open .brand > span,
  .sidebar.open .nav-link > span,
  .sidebar.open .profile > span:not(.avatar),
  .sidebar.open .exchange > span:not(.binance-mark) {
    display: block;
  }
  .sidebar.open .brand {
    padding: 0 15px;
    justify-content: flex-start;
  }
  .sidebar.open .nav-link {
    padding: 0 17px;
    justify-content: flex-start;
  }
  .sidebar.open .profile {
    justify-content: flex-start;
    padding: 0 10px;
  }
  .sidebar.open .exchange {
    justify-content: flex-start;
    margin-left: 15px;
    margin-right: 15px;
  }
  .workspace {
    margin-left: 0;
  }
  .mobile-menu {
    display: grid;
    width: 25px;
    height: 30px;
  }
  .topbar {
    padding: 0 17px;
    height: 62px;
  }
  .breadcrumb {
    gap: 9px;
  }
  .topbar-actions {
    gap: 9px;
  }
  .topbar-actions .icon-button {
    width: 27px;
    height: 30px;
  }
  .mode {
    font-size: 10px;
    gap: 6px;
  }
  .topbar-divider {
    display: none;
  }
  .mode span {
    width: 5px;
    height: 5px;
  }
  .topbar-actions .icon {
    width: 18px;
    height: 18px;
  }
  main {
    padding: 22px 17px 10px;
  }
  .page-heading h1 {
    font-size: 23px;
  }
  .button {
    height: 37px;
  }
  .metrics {
    gap: 10px;
  }
  .metric {
    padding: 16px;
    min-height: 125px;
  }
  .metric-value {
    font-size: 25px;
  }
  .metric-value .unit {
    font-size: 9px;
  }
  .metric-head {
    font-size: 11px;
  }
  .metric-bottom {
    font-size: 9px;
    gap: 4px;
  }
  .chart-panel {
    padding: 19px 15px 10px;
  }
  .panel-heading h2 {
    font-size: 14px;
  }
  .segmented button {
    font-size: 10px;
    padding: 5px 8px;
  }
  .chart-wrap {
    height: 210px;
  }
  .chart-legend {
    font-size: 10px;
    margin-top: 17px;
  }
  .chart-svg text {
    font-size: 10px;
  }
  .optimizer-card {
    grid-template-columns: 1fr 140px;
  }
  .optimizer-card .progress-track {
    right: 175px;
  }
  .section-heading .filter-tabs button {
    font-size: 10px;
  }
  .section-heading .button {
    font-size: 10px;
  }
  .section-heading-left {
    gap: 14px;
  }
  .filter-tabs {
    gap: 12px;
  }
  .candidate-panel {
    padding: 20px 16px;
  }
  .candidate-row {
    grid-template-columns: 24px 1fr 75px;
    gap: 10px;
  }
  .candidate-row .button {
    grid-column: 2/4;
    justify-self: end;
  }
  .candidate-name {
    font-size: 12px;
  }
  .candidate-row .candidate-value {
    font-size: 16px;
  }
  .candidate-chart {
    gap: 6px;
    padding: 0;
  }
  .record-controls .search-field {
    width: 100%;
  }
  .record-controls .search-field input {
    width: 100%;
  }
  .modal {
    padding: 23px;
  }
  .command-modal {
    padding: 0;
  }
  .drawer-overlay {
    padding: 0;
  }
  .drawer {
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    width: 100%;
  }
  #toast {
    left: 50%;
    max-width: calc(100vw - 32px);
    white-space: nowrap;
  }
  .footer-status {
    display: none;
  }
  .toolbar .search-field {
    flex: 1;
  }
  .toolbar .search-field input {
    width: 100%;
  }
  .full-strategies {
    margin-top: 20px;
  }
  .modal-actions .button {
    flex: 1;
  }
  .optimization-layout .optimizer-card {
    min-height: 225px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .chart-line,
  .sparkline path.line {
    stroke-dashoffset: 0;
  }
  .chart-area {
    opacity: 1;
  }
}
.market-filter {
  font:
    11px "Noto Sans SC",
    sans-serif;
  appearance: none;
  cursor: pointer;
  color: #6e7d67;
  border: 1px solid var(--line);
  background-color: var(--surface);
  border-radius: 6px;
  padding: 6px 25px 6px 10px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23858e83'%3E%3Cpath d='m3 4 3 3 3-3'/%3E%3C/svg%3E");
  background-position: right 7px center;
  background-repeat: no-repeat;
}
.strategy-toolbar-left {
  display: flex;
  align-items: center;
  gap: 24px;
}
.market-tag.futures {
  background: #edf2e7;
  color: #6e8658;
}
.market-tag.spot {
  background: #efedf7;
  color: #8c80a3;
}
.market-tag.stock {
  background: #f6efdf;
  color: #a28c5d;
}
.table-unit {
  font-size: 9px;
  color: #9fa89c;
  margin-left: 4px;
}
.coin.stock {
  background: #f1ede4;
  color: #9d8b68;
}
.leverage-field {
  position: relative;
}
.leverage-field input {
  padding-right: 32px;
}
.leverage-field > span {
  position: absolute;
  right: 26px;
  top: 12px;
  color: #91a084;
}
.backtest-id {
  font: 11px "DM Sans";
  color: #9ba395;
  letter-spacing: 0.8px;
}
.backtest-report {
  padding: 23px;
  margin-top: 20px;
}
.report-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 20px;
  padding: 25px 0 30px;
}
.report-metrics > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.report-metrics > div > span {
  font-size: 12px;
  color: var(--muted);
}
.report-metrics strong {
  font-size: 23px;
  font-weight: 550;
}
.drawdown-heading {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.drawdown-heading h3 {
  font-size: 13px;
  font-weight: 500;
  color: #828b7b;
}
.drawdown-heading > span {
  font-size: 13px;
  color: #b19182;
}
.drawdown-chart {
  width: 100%;
  height: 98px;
  margin-top: 20px;
}
.form-panel .field {
  margin-bottom: 16px;
}
.form-panel .field-row {
  gap: 12px;
}
.lab-results .chart-wrap {
  height: 270px;
}
.lab-results .metric-bottom:empty {
  display: none;
}
.lab-results .metric-value {
  margin-top: 16px;
}
.lab-results .metric {
  min-height: 113px;
}
.form-layout {
  grid-template-columns: 300px minmax(0, 1fr);
  align-items: start;
}
.form-panel {
  position: sticky;
  top: 18px;
}
.strategy-meta {
  flex-wrap: wrap;
}
.form-panel h2 {
  margin-bottom: 22px;
}
.section-heading-left {
  gap: 16px;
}
.tag {
  font-size: 11px;
  height: 22px;
}
.strategy-stats dt {
  font-size: 11px;
}
.strategy-stats dd {
  font-size: 13px;
}
.return-label {
  font-size: 12px;
}
.metric-bottom {
  font-size: 12px;
}
.metric-bottom .change {
  font-size: 12px;
}
.strategy-count {
  font-size: 12px;
}
.chart-legend {
  font-size: 12px;
}
.segmented button {
  font-size: 12px;
}
.filter-tabs button {
  font-size: 13px;
}
.button {
  font-size: 14px;
}
.nav-link {
  font-size: 15px;
}
.breadcrumb {
  font-size: 14px;
}
.section-heading .button {
  font-size: 13px;
}
.metric-head {
  font-size: 14px;
}
.field label {
  font-size: 13px;
}
.field input,
.field select {
  font-size: 14px;
}
.table-scroll th,
.table-scroll td {
  font-size: 12px;
}
.strategy-top h3 {
  font-size: 15px;
}
.strategy-top .version {
  font-size: 11px;
}
.form-panel > .button {
  font-size: 13px;
}
.optimizer-stats {
  font-size: 12px;
}
.optimizer-card .button {
  font-size: 13px;
}
@media (max-width: 1190px) {
  .strategy-top h3 {
    font-size: 13px;
  }
  .strategy-top .version {
    font-size: 10px;
  }
  .strategy-stats dt {
    font-size: 10px;
  }
  .strategy-stats dd {
    font-size: 12px;
  }
  .metric-head {
    font-size: 12px;
  }
  .metric-bottom,
  .metric-bottom .change,
  .strategy-count {
    font-size: 10px;
  }
  .tag {
    font-size: 10px;
  }
  .section-heading-left {
    gap: 11px;
  }
  .filter-tabs {
    gap: 12px;
  }
  .filter-tabs button {
    font-size: 12px;
  }
  .form-layout {
    grid-template-columns: 265px minmax(0, 1fr);
  }
}
@media (max-width: 980px) {
  .form-layout {
    grid-template-columns: 255px minmax(0, 1fr);
  }
  .report-metrics {
    gap: 22px 14px;
  }
  .report-metrics strong {
    font-size: 20px;
  }
  .section-heading .filter-count {
    display: none;
  }
  .section-heading .filter-tabs {
    gap: 10px;
  }
  .section-heading .filter-tabs button {
    font-size: 11px;
  }
  .section-heading-left {
    gap: 12px;
  }
  .strategy-top h3 {
    font-size: 12px;
  }
}
@media (max-width: 740px) {
  .form-layout {
    grid-template-columns: 1fr;
  }
  .form-panel {
    position: static;
  }
  .section-heading {
    flex-wrap: wrap;
  }
  .section-heading-left {
    flex-wrap: wrap;
    gap: 12px;
  }
  .section-heading .filter-tabs {
    display: none;
  }
  .strategy-toolbar-left {
    gap: 18px;
  }
  .strategy-top h3 {
    font-size: 15px;
  }
  .tag {
    font-size: 11px;
  }
  .strategy-stats dt {
    font-size: 12px;
  }
  .strategy-stats dd {
    font-size: 14px;
  }
  .metric-head {
    font-size: 13px;
  }
  .metric-bottom,
  .metric-bottom .change,
  .strategy-count {
    font-size: 11px;
  }
  .chart-legend {
    font-size: 11px;
  }
  .segmented button {
    font-size: 11px;
  }
  .lab-results .metric-head {
    font-size: 11px;
  }
  .lab-results .metric-value {
    font-size: 20px;
  }
  .backtest-report {
    padding: 20px;
  }
  .report-metrics strong {
    font-size: 22px;
  }
}
@media (max-width: 520px) {
  .sidebar {
    box-shadow: none;
  }
  .sidebar.open {
    box-shadow: 20px 0 60px #1114;
  }
  .metrics > .metric:nth-child(-n + 2) .metric-value > .unit {
    position: absolute;
    right: 16px;
    top: 19px;
    font-size: 9px;
  }
  .chart-svg text[text-anchor] {
    font-size: 18px;
  }
  .chart-svg text:not([text-anchor]) {
    display: none;
  }
  .backtest-id {
    display: none;
  }
  .strategy-count {
    font-size: 10px;
  }
}

/* Application states and data controls */
.history-entry {
  display: flex;
  align-items: center;
  gap: 12px;
}
.history-entry > input {
  width: 16px;
  height: 16px;
  accent-color: #7e9e67;
  flex-shrink: 0;
}
.history-entry .history-row {
  min-width: 0;
}
.history-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}
.pagination-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  padding: 16px 20px;
  color: var(--muted);
  font-size: 12px;
  border-top: 1px solid var(--line);
}
.pagination-row > .button {
  height: 32px;
  font-size: 12px;
}
.comparison-scroll {
  overflow: auto;
}
.comparison-table {
  min-width: 500px;
}
.comparison-table th,
.comparison-table td {
  padding: 15px 12px;
  font-size: 12px;
  white-space: normal;
  min-width: 120px;
  vertical-align: top;
}
.comparison-table th {
  color: #718365;
  font-weight: 500;
}
.comparison-table thead th > span {
  display: block;
  margin-top: 5px;
  font-size: 11px;
  font-weight: 400;
}
.comparison-table tbody th {
  background: transparent;
  min-width: 90px;
}
.comparison-table th:last-child,
.comparison-table td:last-child {
  text-align: left;
}
.strategy-tools {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: -10px 0 22px;
}
.strategy-tools > .button {
  font-size: 12px;
}
.replay-toolbar {
  flex-wrap: wrap;
}
.form-submit {
  width: 100%;
  margin: 14px 0 0;
}
.source-settings {
  font-size: 12px !important;
  margin: -3px 0 17px;
}
.quote-fields {
  min-width: 0;
}
@media (max-width: 520px) {
  .history-entry {
    gap: 8px;
  }
  .history-row > .history-icon {
    display: none;
  }
  .history-entry .history-row > span:nth-child(2) {
    min-width: 0;
  }
  .history-row strong {
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .pagination-row {
    padding: 14px 12px;
  }
  .strategy-tools {
    gap: 8px;
  }
  .strategy-tools > .button {
    font-size: 11px;
  }
}
.currency-filter {
  appearance: none;
  min-width: 80px;
  height: 39px;
  padding: 0 28px 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #627458;
  background-color: var(--surface);
  font:
    600 12px "DM Sans",
    sans-serif;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23858e83'%3E%3Cpath d='m3 4 3 3 3-3'/%3E%3C/svg%3E");
  background-position: right 9px center;
  background-repeat: no-repeat;
  cursor: pointer;
}
.currency-filter:disabled {
  opacity: 0.5;
  cursor: wait;
}
@media (max-width: 740px) {
  .currency-filter {
    min-width: 70px;
    height: 35px;
    padding-left: 9px;
    padding-right: 25px;
    font-size: 11px;
  }
}
.quote-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 35px;
  padding: 0 9px;
  border-radius: 8px;
  background: transparent;
  color: #74836a;
  font-size: 12px;
}
.quote-trigger:hover {
  background: #eff4e9;
  color: #526d42;
}
.quote-trigger .icon {
  width: 17px;
  height: 17px;
}
@media (max-width: 520px) {
  .quote-trigger {
    gap: 4px;
    padding: 0 4px;
    font-size: 10px;
  }
  .quote-trigger .icon {
    width: 15px;
    height: 15px;
  }
}
.quote-fields {
  grid-template-columns: 150px minmax(0, 1fr);
}
.quote-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 0 19px;
}
.quote-toolbar > .button.quiet {
  margin-left: auto;
  font-size: 12px;
}
.quote-toolbar > .button.primary {
  font-size: 12px;
  height: 34px;
}
.quote-connection {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #8b9782;
  font-size: 12px;
}
.quote-connection i {
  width: 6px;
  height: 6px;
  background: #a7b49e;
  border-radius: 50%;
}
.quote-connection[data-state="connected"] {
  color: #628653;
}
.quote-connection[data-state="connected"] i {
  background: #7ca765;
  box-shadow: 0 0 0 4px #a1c87817;
}
.quote-connection[data-state="reconnecting"] {
  color: #ad9155;
}
.quote-connection[data-state="reconnecting"] i {
  background: #c2a461;
}
.quote-connection[data-state="error"] {
  color: #b37265;
}
.quote-connection[data-state="error"] i {
  background: #be8575;
}
.quote-table-wrap {
  overflow: auto;
  border-top: 1px solid var(--line);
}
.quote-table td,
.quote-table th {
  padding: 15px 12px;
  font-size: 12px;
}
.quote-table th {
  background: transparent;
}
.quote-table th:not(:first-child),
.quote-table td:not(:first-child) {
  text-align: right;
}
.quote-time {
  font-size: 10px !important;
  color: #96a08d;
}
.quote-up {
  animation: quoteUp 0.8s ease-out;
}
.quote-down {
  animation: quoteDown 0.8s ease-out;
}
@keyframes quoteUp {
  from {
    background: #bbd8a955;
    color: #557d40;
  }
  to {
    background: transparent;
  }
}
@keyframes quoteDown {
  from {
    background: #e8bbaf55;
    color: #a06556;
  }
  to {
    background: transparent;
  }
}
@media (max-width: 520px) {
  .quote-fields {
    grid-template-columns: 110px minmax(0, 1fr);
  }
  .quote-toolbar {
    gap: 8px;
  }
  .quote-toolbar .tag {
    font-size: 9px;
  }
  .quote-connection {
    font-size: 11px;
  }
  .quote-table td,
  .quote-table th {
    font-size: 11px;
    padding: 13px 8px;
  }
  .quote-table {
    min-width: 420px;
  }
  .topbar-actions {
    gap: 7px;
  }
  .topbar-actions .mode {
    font-size: 9px;
  }
}
.brand {
  font-size: 18.5px;
  letter-spacing: -0.65px;
  padding: 0 7px;
  gap: 8px;
}
.brand svg {
  width: 31px;
  height: 31px;
  flex-shrink: 0;
}
.brand-dot {
  display: none;
}
.count-total {
  font-size: 18px;
  color: #aeb8aa;
  font-weight: 400;
  letter-spacing: 0;
}
.profile {
  font-size: 12px;
}
.empty-state {
  grid-column: 1/-1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 205px;
  color: var(--muted);
  font-size: 14px;
  padding: 30px;
}
.empty-state .button {
  font-size: 13px;
}
.empty-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: #eaf0e6;
  border-radius: 13px;
  color: #8c9f83;
}
.empty-icon .icon {
  width: 23px;
  height: 23px;
}
.no-series {
  width: 85px;
  text-align: center;
  color: #c7d1c1;
  font-size: 25px;
}
.strategy-card h3 {
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 190px;
}
.strategy-card .switch:disabled {
  opacity: 0.5;
}
.strategy-meta .fixture-tag,
.fixture-tag {
  background: #f7ecda;
  color: #9e8354;
}
.chart-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #a1aa9b;
  font-size: 12px;
}
.chart-svg text {
  font:
    10px "DM Sans",
    sans-serif !important;
}
.chart-wrap:not(.large) {
  min-height: 150px;
}
.footer-status.offline {
  color: #be786d;
}
.footer-status.offline span {
  background: #be786d;
}
.loading-state {
  min-height: 60vh;
  display: grid;
  place-items: center;
}
.loader {
  display: block;
  width: 28px;
  height: 28px;
  border: 2px solid #dce6d6;
  border-top-color: #7b9c64;
  border-radius: 50%;
  animation: orbit 1s linear infinite;
}
.connect-state {
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
  padding: 30px;
}
.connect-state > .icon {
  width: 30px;
  height: 30px;
  color: #92a284;
}
.connect-state h2 {
  font-weight: 500;
  font-size: 20px;
}
.connection-error {
  font-size: 13px;
  color: var(--muted);
  max-width: 600px;
  overflow-wrap: anywhere;
  text-align: center;
}
.error-toast {
  background: #703d37 !important;
}
.inline-error {
  font-size: 12px;
  line-height: 1.6;
  color: #a05649;
  border: 1px solid #ebd4cc;
  background: #fbf2ee;
  border-radius: 8px;
  padding: 10px 12px;
  margin: 15px 0;
  overflow-wrap: anywhere;
}
.inline-error[hidden] {
  display: none;
}
.advanced-fields {
  border-top: 1px solid var(--line);
  padding-top: 15px;
  margin: 5px 0 16px;
}
.advanced-fields > summary {
  cursor: pointer;
  font-size: 12px;
  color: #808d77;
  margin-bottom: 15px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.advanced-fields > summary:after {
  content: "+";
  font-size: 16px;
}
.advanced-fields[open] > summary:after {
  content: "−";
}
.advanced-fields > summary::-webkit-details-marker {
  display: none;
}
.parameter-fields {
  padding-top: 3px;
}
.dataset-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: #87917f;
  margin: -6px 0 19px;
  overflow: hidden;
}
.dataset-meta > span:last-child {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.field > select {
  min-width: 0;
  text-overflow: ellipsis;
}
.wide-modal {
  width: 690px;
}
.dataset-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 21px;
}
.dataset-actions > .button {
  flex: 1;
  font-size: 13px;
  padding: 0 12px;
}
.dataset-list {
  max-height: 52vh;
  overflow: auto;
}
.dataset-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 18px 0;
  background: none;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.dataset-row:last-child {
  border-bottom: 0;
}
.dataset-row:hover {
  background: #f6f9f3;
}
.dataset-row-icon,
.history-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #edf2e7;
  display: grid;
  place-items: center;
  color: #87a077;
  flex-shrink: 0;
}
.dataset-row-icon .icon,
.history-icon .icon {
  width: 17px;
  height: 17px;
}
.dataset-row-main {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.dataset-row-main strong {
  font-size: 13px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 270px;
}
.dataset-row-main > span {
  font:
    11px "DM Sans",
    sans-serif;
  color: var(--muted);
}
.dataset-row > .tag {
  margin-left: auto;
}
.dataset-row-date {
  font:
    10px/1.8 "DM Sans",
    sans-serif;
  color: #9ca594;
  text-align: right;
}
.field input[type="file"] {
  height: auto;
  padding: 10px;
  font-size: 12px;
  max-width: 100%;
}
.field input[type="file"]::file-selector-button {
  border: 0;
  border-radius: 5px;
  padding: 5px 9px;
  background: #ecf2e6;
  color: #64814e;
  font-size: 12px;
  margin-right: 8px;
  cursor: pointer;
}
.job-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #89947e;
  margin-top: 7px;
}
.job-status-row .button {
  font-size: 12px;
  height: 24px;
}
.job-status:empty {
  display: none;
}
.history-list {
  max-height: 60vh;
  overflow: auto;
}
.history-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px 0;
  width: 100%;
  background: transparent;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.history-row:hover {
  background: #f6f9f3;
}
.history-row > span:nth-child(2) {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-right: auto;
}
.history-row strong {
  font-size: 13px;
  font-weight: 500;
}
.history-row > span:nth-child(2) > span {
  font-size: 11px;
  color: var(--muted);
}
.history-row > .num {
  font-size: 15px;
  min-width: 70px;
  text-align: right;
}
.candidate-column-head {
  display: grid;
  grid-template-columns: 1fr 90px 80px;
  gap: 12px;
  padding: 0 0 14px 40px;
  font-size: 11px;
  color: #8b9781;
}
.candidate-column-head > span:nth-child(2) {
  text-align: right;
}
.candidate-parameters {
  display: block;
  font: 10px/1.7 "DM Sans";
  color: #91a087;
  margin-top: 5px;
  overflow-wrap: anywhere;
}
.candidate-row {
  align-items: center;
}
.candidate-row .candidate-value.negative {
  color: var(--red);
}
.holdout-panel {
  margin-top: 35px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.holdout-panel .panel-heading h2 {
  font-size: 14px;
}
.holdout-panel .report-metrics {
  padding-bottom: 8px;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.holdout-panel .report-metrics strong {
  font-size: 22px;
}
.optimizer-card:not(.is-running) .progress-fill:after {
  animation: none;
}
.optimizer-card.is-running .orb-core {
  box-shadow:
    0 0 60px #badb782f,
    inset 0 0 14px #a1c77d18;
}
.optimization-settings .field-row {
  gap: 12px;
}
.optimization-settings .field-row .field {
  margin-bottom: 18px;
}
.replay-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  margin: 0 0 24px;
  font-size: 12px;
}
.replay-toolbar > .num {
  margin-right: auto;
  font-size: 11px;
  color: #8b9782;
}
.replay-toolbar .button {
  height: 32px;
  padding: 0 10px;
  font-size: 11px;
}
.replay-toolbar .button .icon {
  width: 13px;
  height: 13px;
}
.drawer .strategy-return {
  margin-bottom: 22px;
}
.drawer .field-row {
  margin-top: 0;
}
.drawer .modal-actions {
  flex-wrap: wrap;
}
.drawer .modal-actions .button {
  flex: 1;
}
.backtest-report .chart-wrap {
  height: 135px;
}
.backtest-report .chart-area {
  fill: #d5b7a83b;
}
.backtest-report .chart-line {
  stroke: #b18d7c;
}
.backtest-report .chart-end {
  fill: #b18d7c;
}
.lab-results .report-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 25px 17px;
}
.lab-results .report-metrics strong {
  font-size: 22px;
}
.lab-results .report-metrics > div > span {
  font-size: 11px;
}
.form-panel .lab-progress {
  margin-top: 10px;
}
.button:disabled {
  opacity: 0.5;
  pointer-events: none;
}
.parameter-fields .field {
  min-width: 0;
}
.button.quiet:disabled {
  opacity: 0.45;
}
@media (min-width: 1500px) {
  .brand {
    font-size: 20px;
    letter-spacing: -0.75px;
  }
  .brand svg {
    width: 33px;
    height: 33px;
  }
}
@media (max-width: 1190px) {
  .brand {
    font-size: 16px;
    letter-spacing: -0.5px;
    gap: 6px;
    padding: 0 6px;
  }
  .brand svg {
    width: 27px;
    height: 27px;
  }
  .lab-results .report-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .candidate-column-head {
    grid-template-columns: 1fr 65px;
    padding-left: 36px;
  }
  .candidate-column-head > span:last-child {
    display: none;
  }
}
@media (max-width: 980px) {
  .brand {
    justify-content: center;
    padding: 0;
  }
  .brand svg {
    width: 31px;
    height: 31px;
  }
  .candidate-column-head {
    grid-template-columns: 1fr 65px;
  }
  .lab-results .report-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 740px) {
  .heading-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 7px;
  }
  .heading-actions .button {
    height: 35px;
    font-size: 12px;
  }
  .heading-actions .button .icon {
    width: 14px;
    height: 14px;
  }
  .page-heading {
    align-items: flex-start;
  }
  .page-heading h1 {
    flex-shrink: 0;
    line-height: 35px;
  }
  .strategy-card h3 {
    max-width: 230px;
  }
  .dataset-row-main strong {
    max-width: 240px;
  }
  .lab-results .report-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .candidate-column-head {
    grid-template-columns: 1fr 85px 80px;
  }
  .candidate-column-head > span:last-child {
    display: block;
  }
  .wide-modal {
    padding: 23px;
  }
  .dataset-row-date {
    display: none;
  }
  .history-row {
    gap: 10px;
  }
  .history-row .fixture-tag {
    display: none;
  }
  .chart-svg text {
    display: block !important;
    font-size: 10px !important;
  }
}
@media (max-width: 520px) {
  .sidebar.open .brand {
    font-size: 19px;
    letter-spacing: -0.7px;
    gap: 9px;
    padding: 0 12px;
  }
  .sidebar.open .brand svg {
    width: 31px;
  }
  .heading-actions .button {
    font-size: 11px;
    padding: 0 10px;
    gap: 6px;
  }
  .heading-actions {
    max-width: 245px;
  }
  .page-heading h1 {
    font-size: 22px;
  }
  .dataset-actions {
    gap: 6px;
  }
  .dataset-actions .button {
    font-size: 11px;
    padding: 0 7px;
    gap: 5px;
  }
  .dataset-row-main strong {
    max-width: 175px;
    font-size: 12px;
  }
  .dataset-row-main > span {
    font-size: 10px;
  }
  .dataset-row {
    gap: 9px;
  }
  .dataset-row-icon {
    width: 29px;
    height: 29px;
  }
  .dataset-row > .tag {
    font-size: 10px;
  }
  .wide-modal {
    padding: 20px;
  }
  .history-row > .tag {
    display: none;
  }
  .history-row > .num {
    font-size: 14px;
  }
  .history-row > span:nth-child(2) > span {
    font-size: 10px;
  }
  .candidate-column-head {
    grid-template-columns: 1fr 75px;
    padding-left: 34px;
  }
  .candidate-column-head > span:last-child {
    display: none;
  }
  .holdout-panel .report-metrics strong {
    font-size: 18px;
  }
  .lab-results .report-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .replay-toolbar .button {
    padding: 0 8px;
  }
  .strategy-toolbar-left {
    gap: 12px;
  }
  .strategy-toolbar-left .filter-tabs {
    gap: 12px;
  }
  .chart-wrap {
    min-width: 0;
  }
  .metrics > .metric:nth-child(-n + 2) .metric-value > .unit {
    top: 19px;
  }
  .metric-value {
    font-size: 24px;
  }
  .connect-state {
    padding: 25px 18px;
  }
  .empty-state {
    min-height: 180px;
  }
}

#backup-details {
  overflow-wrap: anywhere;
}

[data-admin-only][hidden] {
  display: none;
}
