@font-face {
  font-family: system;
  src: local("Inter"), local("Arial");
}
.status-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dotted #8d9c80;
  padding: 6px 0;
}
.scope-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin: 30px 0 15px;
}
.scope-heading h2 {
  margin: 8px 0 0;
  font-size: 24px;
}
.scope-heading p {
  color: #788771;
  font-size: 11px;
  text-align: right;
}
.market-tabs {
  display: flex;
  gap: 6px;
  padding: 14px 20px 0;
  overflow-x: auto;
  flex-shrink: 0;
}
.market-tabs button {
  white-space: nowrap;
  background: transparent;
  border: 1px solid #dce2d6;
  border-radius: 5px;
  padding: 9px 14px;
  color: #637c73;
  font-size: 12px;
}
.market-tabs button.active {
  background: #203d34;
  color: #f4f8ef;
  border-color: #203d34;
}
.market-tabs button:focus-visible,
#price-chart:focus-visible {
  outline: 2px solid #498168;
  outline-offset: 3px;
}
.interval-control {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 10px;
  color: #637c73;
}
.interval-control select {
  font-size: 12px;
  padding: 6px;
  border: 1px solid #dce2d6;
  border-radius: 4px;
  background: #fff;
}
.chart-navigation {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px 20px 0;
  flex-shrink: 0;
}
.chart-navigation input {
  flex: 1;
  min-width: 30px;
  accent-color: #498168;
}
.chart-navigation button {
  padding: 6px 8px;
  border: 1px solid #dce2d6;
  border-radius: 4px;
  background: #fafcf5;
  font-size: 10px;
  white-space: nowrap;
}
.chart-navigation button:disabled {
  opacity: 0.4;
  cursor: default;
}
#chart-mode {
  font: 9px monospace;
  color: #637c73;
  white-space: nowrap;
}
.chart-window {
  margin: 0;
  padding: 8px 20px;
  color: #788771;
  font: 9px/1.6 monospace;
  flex-shrink: 0;
}
#price-chart {
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}
#price-chart.dragging {
  cursor: grabbing;
}
.metrics strong {
  overflow-wrap: anywhere;
}
@media (max-width: 700px) {
  .scope-heading {
    align-items: start;
    flex-direction: column;
    gap: 6px;
  }
  .scope-heading p {
    text-align: left;
    margin: 0;
  }
  .chart-navigation {
    flex-wrap: wrap;
  }
  #chart-mode {
    width: 100%;
  }
}
.filter-bar {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.3fr;
  gap: 14px;
  padding: 20px;
  border: 1px solid #dce2d6;
  border-radius: 7px;
  background: #fafcf5;
  margin-bottom: 22px;
}
.filter-bar > label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 10px;
  color: #637c73;
  min-width: 0;
}
.filter-bar input,
.filter-bar select {
  width: 100%;
  border: 1px solid #dce2d6;
  background: #fff;
  padding: 9px;
  border-radius: 4px;
  color: #30473e;
  font-size: 11px;
}
.filter-bar .market-filter {
  grid-row: span 2;
}
.market-filter small,
.filter-help {
  font-size: 10px;
  color: #788771;
  line-height: 1.6;
}
.filter-actions,
.filter-help,
.filter-bar .error {
  grid-column: 1/-1;
}
.filter-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.filter-actions button,
.layout-toolbar button {
  padding: 8px 12px;
  border: 1px solid #bdcbb1;
  border-radius: 4px;
  background: #edf3e4;
  font-size: 11px;
}
.filter-actions button[type="submit"] {
  background: #203d34;
  color: #f4f8ef;
}
.filter-actions span {
  font-size: 11px;
  overflow-wrap: anywhere;
}
.filter-help {
  margin: 0;
}
.layout-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  flex-wrap: wrap;
}
.layout-toolbar span {
  font-size: 10px;
  color: #788771;
}
#dashboard {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
#dashboard > .panel {
  margin: 0;
  min-width: 0;
  order: 0;
}
.panel-grip,
.panel-resize {
  display: none;
}
.floating-dashboard {
  position: relative;
  display: block !important;
}
.floating-dashboard > .panel {
  position: absolute;
  display: flex;
  flex-direction: column;
}
.floating-dashboard .panel-heading,
.floating-dashboard .chart-toolbar,
.floating-dashboard .selected-summary,
.floating-dashboard .chart-legend,
.floating-dashboard .chart-footer,
.floating-dashboard .pnl-header,
.floating-dashboard .activity-header,
.floating-dashboard .activity-note,
.floating-dashboard .data-note,
.floating-dashboard .method {
  flex-shrink: 0;
}
.floating-dashboard .accounts {
  flex: 1;
  min-height: 0;
  max-height: none;
}
.floating-dashboard .chart-wrap,
.floating-dashboard .pnl-chart-wrap {
  flex: 1;
  min-height: 60px;
}
.floating-dashboard .table-scroll {
  flex: 1;
  min-height: 0;
  max-height: none;
}
.floating-dashboard .stat-grid {
  flex: 1;
  overflow: auto;
}
.editing-layout .panel-grip {
  display: flex;
  background: #e5eddc;
  flex-shrink: 0;
  border-bottom: 1px solid #cbd7bf;
}
.panel-grip button {
  background: transparent;
  border: 0;
  cursor: grab;
  touch-action: none;
  text-align: left;
  flex: 1;
  padding: 7px 12px;
  font-size: 10px;
  color: #4c6a43;
}
.panel-grip button:active {
  cursor: grabbing;
}
.editing-layout .panel-resize {
  display: block;
  position: absolute;
  right: 0;
  bottom: 0;
  width: 22px;
  height: 22px;
  border: 0;
  background: #e5eddc;
  color: #4c6a43;
  cursor: nwse-resize;
  touch-action: none;
  z-index: 2;
}
.selected-summary {
  flex-wrap: wrap;
}
#account-total-pnl {
  font: 15px monospace;
}
#account-market-rows button {
  border: 0;
  background: transparent;
  color: #2c7258;
  text-decoration: underline;
  font: inherit;
  padding: 0;
}
#account-market-rows tr.focused {
  background: #edf3e4;
}
@media (max-width: 1000px) {
  .filter-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #dashboard > .panel {
    height: auto;
  }
}
@media (max-width: 560px) {
  .filter-bar {
    grid-template-columns: 1fr;
  }
  .filter-bar .market-filter {
    grid-row: auto;
  }
}
.status-link span {
  color: #7e9273;
  font: 10px monospace;
  margin-left: 6px;
}
.analytics-panel {
  margin-bottom: 22px;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  padding: 0 22px 18px;
}
.mini-stat {
  min-width: 0;
}
.mini-stat span {
  display: block;
  color: #7e9273;
  font-size: 9px;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}
.mini-stat strong {
  display: block;
  margin-top: 8px;
  font: 17px monospace;
  overflow-wrap: anywhere;
}
.data-note {
  margin: 0;
  padding: 0 22px 16px;
  color: #788771;
  font-size: 10px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
dialog {
  width: min(1100px, 95vw);
  max-height: 90vh;
  border: 1px solid #dce3d2;
  border-radius: 10px;
  background: #f5f6f1;
  color: #152a2a;
  padding: 24px;
  box-shadow: 0 25px 100px #152a2a44;
}
dialog::backdrop {
  background: #152a2a88;
}
.status-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 12px;
}
.status-heading h2 {
  margin: 6px 0;
}
#status-close,
#status-refresh {
  border: 1px solid #dce3d2;
  border-radius: 5px;
  background: transparent;
  padding: 8px 12px;
}
dialog .data-note {
  padding: 0 0 14px;
}
.system-status {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.system-card,
.task-card {
  background: #fcfdf9;
  border: 1px solid #e0e6d7;
  border-radius: 6px;
  padding: 16px;
  overflow-wrap: anywhere;
}
.system-card h3 {
  margin: 0 0 12px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.health-label {
  font: 10px monospace;
  padding: 4px 6px;
  border-radius: 4px;
  background: #f3e9d6;
  color: #8d713b;
}
.health-label.good {
  background: #e7efdf;
  color: #53764c;
}
.health-label.bad {
  background: #f6e4df;
  color: #a85d4a;
}
.pipeline-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 20px;
}
.system-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fafcf5;
  border: 1px solid #dce2d6;
  border-radius: 5px;
  padding: 10px 14px;
  font-size: 11px;
}
.system-summary .health-label {
  margin: 0;
}
.status-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.system-card dl {
  margin: 0;
  font-size: 11px;
}
.system-card dt {
  color: #788771;
  margin-top: 10px;
}
.system-card dd {
  margin: 3px 0 0;
  font-family: monospace;
}
.system-card p,
.task-card small {
  font-size: 10px;
  color: #788771;
  line-height: 1.6;
}
#status-tasks {
  display: grid;
  gap: 10px;
}
.task-card header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.task-card progress {
  width: 100%;
  height: 10px;
  accent-color: #7d9d6c;
}
.task-card small {
  display: block;
  margin-top: 8px;
}
.activity-header {
  gap: 12px;
  flex-wrap: wrap;
}
.tabs {
  flex-wrap: wrap;
}
@media (max-width: 600px) {
  dialog {
    padding: 15px;
  }
  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0 12px 12px;
  }
  .stat-grid strong {
    font-size: 14px;
  }
  .status-link span {
    display: none;
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #f5f6f1;
  color: #152a2a;
  font-family: system, Arial, sans-serif;
  font-size: 13px;
}
button,
input,
select {
  font: inherit;
}
button,
select {
  cursor: pointer;
}
button {
  color: inherit;
}
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid #178465;
  outline-offset: 3px;
}
.rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: 76px;
  background: #112e30;
  color: #e7f4ed;
  display: flex;
  align-items: center;
  flex-direction: column;
  z-index: 2;
}
.brand {
  position: relative;
  font-size: 39px;
  font-weight: 850;
  color: inherit;
  text-decoration: none;
  margin-top: 25px;
  letter-spacing: -5px;
  padding-right: 5px;
}
.brand-dot {
  width: 8px;
  height: 8px;
  background: #c9ee8f;
  border-radius: 50%;
  display: inline-block;
  position: absolute;
  right: -4px;
  bottom: 8px;
}
.rail-line {
  height: 1px;
  background: #49615e;
  width: 29px;
  margin: 35px 0;
}
.rail-word {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  letter-spacing: 3px;
  font-size: 10px;
  color: #a3b6ae;
}
.rail-bottom {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  position: absolute;
  bottom: 30px;
  letter-spacing: 2px;
  font-size: 9px;
  color: #6f938a;
}
main {
  max-width: 1800px;
  margin-left: 76px;
  padding: 0 38px 24px;
}
.topbar {
  height: 76px;
  border-bottom: 1px solid #dce2d9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.breadcrumb {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #637c73;
}
.breadcrumb span {
  padding: 0 14px;
  color: #b5c0b6;
}
.connection {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
}
.dot {
  width: 6px;
  height: 6px;
  background: #b1bcb3;
  border-radius: 100%;
}
.dot.online {
  background: #21875d;
  box-shadow: 0 0 0 3px #dcebdd;
}
.icon-button {
  border: 0;
  background: none;
  font-size: 23px;
  margin-left: 14px;
  color: #718679;
}
.heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 34px 0 28px;
}
.eyebrow {
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 1.8px;
  color: #738377;
  display: block;
}
h1 {
  font-size: 38px;
  font-weight: 600;
  letter-spacing: -1.6px;
  margin: 10px 0 10px;
  line-height: 1.1;
}
h1 span {
  color: #5a9769;
}
h2 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.35px;
  margin: 8px 0 0;
}
.heading p {
  margin: 0;
  color: #7a897f;
  font-size: 12px;
}
.stamp {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stamp > span {
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: #e4eadf;
  border: 1px solid #d3ddcc;
  border-radius: 4px;
  padding: 7px 11px;
  align-self: flex-end;
}
.stamp small {
  font-size: 10px;
  color: #7f8c81;
  font-family: monospace;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 24px;
  border: 1px solid #dce2d6;
  border-radius: 7px;
  background: #fcfdf9;
  overflow: hidden;
}
.metric {
  padding: 19px 22px;
  border-right: 1px solid #e1e6db;
}
.metric:last-child {
  border-right: 0;
}
.metric > span {
  display: block;
  font-size: 9px;
  letter-spacing: 1.3px;
  color: #778475;
  font-weight: 700;
}
.metric strong {
  display: block;
  font-weight: 500;
  font-size: 28px;
  font-family: monospace;
  letter-spacing: -1px;
  margin: 12px 0 7px;
}
.metric small {
  color: #8d9788;
  font-size: 10px;
}
.metric:last-child strong {
  font-size: 19px;
  letter-spacing: -0.5px;
  padding: 5px 0;
}
.workspace {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 22px;
}
.panel {
  background: #fcfdf9;
  border: 1px solid #dce2d6;
  border-radius: 7px;
  overflow: hidden;
}
.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 23px 20px;
}
.pill {
  border: 1px solid #dce4d5;
  background: #f0f3eb;
  border-radius: 4px;
  padding: 4px 6px;
  font-size: 8px;
  letter-spacing: 1px;
  color: #70816c;
  white-space: nowrap;
}
.leader-controls {
  padding: 0 19px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
select {
  background: #f7f8f2;
  border: 1px solid #dce2d6;
  border-radius: 4px;
  padding: 8px 10px;
  color: #30473e;
}
.search {
  display: flex;
  align-items: center;
  background: #f3f5ee;
  border: 1px solid #e2e7db;
  border-radius: 4px;
  padding-left: 10px;
  color: #86927e;
}
.search span {
  font-size: 22px;
}
.search input {
  width: 100%;
  background: none;
  border: 0;
  outline: 0;
  padding: 10px;
  color: #30473e;
  font-size: 11px;
}
.table-labels {
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  letter-spacing: 1px;
  font-weight: 700;
  color: #919b8b;
  padding: 12px 20px;
  background: #f5f7ef;
  border-top: 1px solid #e4e9db;
  border-bottom: 1px solid #e4e9db;
}
.accounts {
  max-height: 505px;
  min-height: 324px;
  overflow-y: auto;
}
.account-row {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  gap: 8px;
  padding: 18px 18px;
  text-align: left;
  width: 100%;
  border: 0;
  border-bottom: 1px solid #edf0e6;
  background: none;
  align-items: center;
}
.account-row:hover {
  background: #f0f4e8;
}
.account-row.selected {
  background: #e9f1dd;
  box-shadow: inset 3px 0 #6d9661;
}
.rank {
  font: 11px monospace;
  color: #a3ad99;
}
.rank.top {
  color: #426c4a;
}
.account-id {
  font: 11px monospace;
  color: #364d43;
}
.account-id small {
  font:
    9px system,
    sans-serif;
  color: #94a18a;
  display: block;
  margin-top: 5px;
}
.account-profit {
  font: 12px monospace;
  font-weight: 600;
  letter-spacing: -0.5px;
}
.positive {
  color: #2c8262;
}
.negative {
  color: #c46352;
}
.neutral {
  color: #82907f;
}
.method {
  padding: 19px;
  display: flex;
  gap: 10px;
  border-top: 1px solid #e3e9d9;
  background: #f6f8f0;
}
.method p {
  margin: 0;
  color: #8a9680;
  font-size: 10px;
  line-height: 1.6;
}
.info-icon {
  border: 1px solid #9aa890;
  border-radius: 50%;
  height: 13px;
  min-width: 13px;
  line-height: 12px;
  text-align: center;
  color: #859378;
  font: 10px monospace;
}
.detail-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}
.chart-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 17px 20px;
  border-bottom: 1px solid #e7ecdf;
  gap: 12px;
}
.market-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.market-title select {
  border: 0;
  background: none;
  font-size: 16px;
  font-weight: 650;
  padding: 3px 15px 3px 0;
  max-width: 210px;
}
.ranges {
  display: flex;
  gap: 3px;
}
.ranges button {
  border: 0;
  background: none;
  color: #899780;
  border-radius: 4px;
  padding: 6px 9px;
  font: 10px monospace;
}
.ranges button.active {
  background: #203d34;
  color: #e5eddd;
}
.selected-summary {
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 35px;
}
.selected-summary > div:first-child {
  margin-right: auto;
  min-width: 0;
}
.account-copy {
  padding: 9px 0 0;
  border: 0;
  background: none;
  display: block;
  font: 12px monospace;
  color: #2e4b3b;
}
.pnl-stat > span {
  font-size: 8px;
  letter-spacing: 1px;
  color: #849279;
  display: block;
}
.pnl-stat strong {
  font: 19px monospace;
  letter-spacing: -0.5px;
  margin-top: 7px;
  display: block;
}
.pnl-stat.secondary strong {
  font-size: 15px;
}
.chart-legend {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 22px 15px;
  font-size: 9px;
  color: #8c9784;
}
.chart-legend label {
  display: flex;
  gap: 4px;
  align-items: center;
  cursor: pointer;
}
.chart-legend input {
  appearance: none;
  width: 9px;
  height: 9px;
  border: 1px solid #c3ceba;
  border-radius: 2px;
  margin: 0;
}
.chart-legend input:checked {
  background: #a8c696;
  border-color: #a8c696;
}
.buy-key {
  color: #228464;
  font-size: 10px;
  font-style: normal;
}
.sell-key {
  color: #c16d58;
  font-size: 10px;
  font-style: normal;
}
.candle-key {
  display: inline-block;
  width: 7px;
  height: 9px;
  background: #749b79;
  margin-right: 5px;
}
#reset-zoom {
  background: none;
  border: 0;
  font-size: 9px;
  color: #5c7d57;
  padding: 0;
}
.chart-hint {
  margin-left: auto;
  font-size: 8px;
  color: #a6ae9a;
}
.chart-wrap {
  height: 305px;
  position: relative;
  margin: 0 8px 0 18px;
}
.chart-wrap canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.chart-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8c9980;
  pointer-events: none;
}
.tooltip {
  position: absolute;
  pointer-events: none;
  background: #203a32;
  color: #edf5e6;
  padding: 10px 12px;
  max-width: 260px;
  border-radius: 5px;
  font: 10px monospace;
  line-height: 1.7;
  box-shadow: 0 3px 15px #1233;
  z-index: 1;
  white-space: pre-line;
}
.chart-footer {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #edf0e5;
  padding: 10px 21px;
  color: #98a18e;
  font: 9px monospace;
}
.pnl-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px 5px;
}
.pnl-header h2 {
  font-size: 12px;
  font-weight: 450;
}
.pnl-header strong {
  font: 16px monospace;
  margin-left: 12px;
}
.subtle {
  font-size: 9px;
  color: #94a089;
}
.pnl-chart-wrap {
  height: 83px;
  margin: 0 20px 8px;
}
.pnl-chart-wrap canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.activity-panel {
  margin-top: 24px;
}
.activity-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e5eadc;
  padding: 0 20px;
  gap: 10px;
}
.tabs {
  display: flex;
  gap: 22px;
}
.tabs button {
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 18px 0;
  color: #85917b;
  font-size: 11px;
}
.tabs button.active {
  color: #324d3a;
  border-bottom-color: #547d4c;
}
.tabs span {
  background: #edf1e4;
  padding: 2px 5px;
  margin-left: 5px;
  border-radius: 4px;
  font: 9px monospace;
  color: #8c997e;
}
.export-button {
  padding: 7px 11px;
  background: none;
  border: 1px solid #d6dfcc;
  border-radius: 4px;
  font-size: 10px;
  color: #718166;
}
.activity-note {
  padding: 12px 21px;
  color: #8f9b83;
  font-size: 10px;
  border-bottom: 1px solid #e9edde;
}
.table-scroll {
  max-height: 300px;
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  white-space: nowrap;
}
th {
  text-align: left;
  padding: 11px 21px;
  font-size: 8px;
  letter-spacing: 1px;
  color: #95a088;
  font-weight: 600;
  background: #f7f9f1;
  position: sticky;
  top: 0;
}
td {
  padding: 13px 21px;
  border-top: 1px solid #edf0e5;
  font: 10px monospace;
  color: #728267;
}
tbody tr:hover {
  background: #f3f6eb;
}
td .tag {
  padding: 3px 6px;
  border-radius: 3px;
  background: #edf3e4;
  color: #5e8353;
  font:
    9px system,
    sans-serif;
}
td .tag.sell {
  background: #f6eae3;
  color: #b56f58;
}
.empty {
  padding: 45px 20px;
  color: #91a084;
  text-align: center;
  font-size: 12px;
  line-height: 1.7;
}
.notice,
.error {
  padding: 12px 16px;
  border-radius: 5px;
  margin-bottom: 18px;
  font-size: 12px;
  line-height: 1.5;
}
.notice {
  background: #eef0d6;
  color: #787634;
  border: 1px solid #e1e5b8;
}
.error {
  background: #f6e7df;
  color: #9b5843;
  border: 1px solid #e6c8b8;
}
.hidden {
  display: none !important;
}
footer {
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  color: #a0aa93;
  gap: 16px;
}
footer > span:first-child {
  letter-spacing: 1.3px;
}
footer label {
  display: flex;
  gap: 5px;
  align-items: center;
}
footer input {
  accent-color: #6b9161;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
@media (min-width: 1600px) {
  .chart-wrap {
    height: 355px;
  }
  .accounts {
    max-height: 555px;
  }
  .selected-summary {
    padding: 26px;
  }
}
@media (max-width: 1200px) {
  main {
    padding: 0 22px 20px;
  }
  .workspace {
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 16px;
  }
  .chart-hint,
  .pnl-stat.secondary {
    display: none;
  }
  .selected-summary {
    gap: 15px;
  }
  .chart-legend {
    gap: 8px;
  }
  .metric {
    padding: 17px;
  }
  .pnl-header {
    align-items: flex-start;
    gap: 10px;
  }
  .pnl-header .subtle {
    max-width: 155px;
    line-height: 1.5;
  }
}
@media (max-width: 900px) {
  .rail {
    width: 54px;
  }
  main {
    margin-left: 54px;
    padding: 0 16px 20px;
  }
  .brand {
    font-size: 30px;
  }
  .rail-bottom {
    font-size: 8px;
  }
  .workspace {
    display: flex;
    flex-direction: column;
  }
  .leaderboard-panel {
    order: 2;
  }
  .accounts {
    min-height: 120px;
    max-height: 260px;
  }
  .leader-controls {
    flex-direction: row;
  }
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .metric:nth-child(2) {
    border-right: 0;
  }
  .metric:nth-child(-n + 2) {
    border-bottom: 1px solid #e1e6db;
  }
  .heading h1 {
    font-size: 31px;
  }
  .heading p {
    font-size: 11px;
  }
  .chart-hint {
    display: inline;
  }
  .accounts .account-row {
    padding: 13px 20px;
  }
  .leader-controls select {
    max-width: 200px;
  }
  .search {
    flex: 1;
  }
  .method {
    padding: 12px 20px;
  }
  .panel-heading {
    padding: 17px 20px;
  }
  footer > span:nth-child(2) {
    display: none;
  }
}
@media (max-width: 560px) {
  .rail {
    width: 42px;
  }
  .brand {
    font-size: 25px;
    letter-spacing: -3px;
  }
  .rail-word {
    font-size: 8px;
  }
  main {
    margin-left: 42px;
    padding: 0 12px 20px;
  }
  .topbar {
    height: 57px;
  }
  .breadcrumb {
    font-size: 8px;
    letter-spacing: 0.7px;
  }
  .breadcrumb span {
    padding: 0 5px;
  }
  .heading {
    margin: 24px 0;
  }
  .heading h1 {
    font-size: 26px;
    letter-spacing: -1px;
  }
  .heading p {
    max-width: 215px;
    line-height: 1.6;
  }
  .stamp small {
    display: none;
  }
  .stamp > span {
    font-size: 8px;
  }
  .metric {
    padding: 15px 12px;
  }
  .metric > span {
    font-size: 8px;
    letter-spacing: 0.6px;
  }
  .metric strong {
    font-size: 24px;
  }
  .metric:last-child strong {
    font-size: 16px;
  }
  .metric small {
    font-size: 8px;
  }
  .chart-toolbar {
    padding: 15px 12px;
    flex-wrap: wrap;
  }
  .market-title select {
    font-size: 14px;
  }
  .ranges button {
    padding: 5px 7px;
  }
  .selected-summary {
    padding: 17px 12px;
  }
  .selected-summary .eyebrow {
    font-size: 8px;
  }
  .pnl-stat > span {
    font-size: 7px;
  }
  .pnl-stat strong {
    font-size: 15px;
  }
  .account-copy {
    font-size: 10px;
  }
  .chart-legend {
    padding: 0 12px 12px;
    font-size: 8px;
    gap: 7px;
  }
  .chart-hint {
    display: none;
  }
  .chart-wrap {
    height: 260px;
    margin-left: 8px;
  }
  .pnl-header {
    padding: 15px 12px;
  }
  .pnl-header .subtle {
    font-size: 8px;
    max-width: 125px;
  }
  .activity-header {
    padding: 0 12px;
  }
  .tabs {
    gap: 15px;
  }
  .tabs button {
    font-size: 10px;
  }
  .export-button {
    font-size: 9px;
    padding: 6px;
  }
  td,
  th {
    padding: 11px 12px;
  }
  .leader-controls {
    padding: 0 12px 12px;
  }
  .leader-controls select {
    max-width: 120px;
  }
  footer {
    font-size: 7px;
  }
}
