:root {
  font-family: "Segoe UI", Arial, sans-serif;
  color: #172f2d;
  background: #f3f5f2;
  font-synthesis: none;
  --green: #124a3f;
  --muted: #70807a;
  --border: #e1e7e1;
  --mint: #c9ebd7;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  border: 0;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.2s;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid #71b99b;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
.eyebrow,
.breadcrumbs,
.sidebar-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.8px;
}
.eyebrow {
  color: var(--muted);
}
h1,
h2,
p {
  margin: 0;
}
h1 {
  font-size: 36px;
  line-height: 1.18;
  font-weight: 550;
  letter-spacing: -1.2px;
}
h2 {
  font-size: 21px;
  letter-spacing: -0.5px;
  font-weight: 600;
}
p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}
.brand-mark {
  display: inline-flex;
  font-size: 31px;
  letter-spacing: -5px;
  align-items: center;
  font-weight: 700;
}
.primary {
  padding: 14px 20px;
  background: var(--green);
  color: white;
}
.primary:hover {
  background: #216655;
}
.secondary {
  padding: 13px 18px;
  background: #f5eee2;
  color: #775629;
}
.subtle {
  padding: 9px 14px;
  background: #f0f3ef;
  color: #435b52;
}
.quiet {
  background: transparent;
  color: inherit;
  padding: 12px 0;
  text-align: left;
  font-size: 12px;
}
.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}
.login-art {
  position: relative;
  overflow: hidden;
  background: #123e35;
  color: #e4efe7;
  padding: 65px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 700px;
}
.login-art > .brand-mark {
  position: absolute;
  top: 50px;
  left: 65px;
}
.login-art .eyebrow {
  color: #a1c4b4;
  margin-bottom: 30px;
}
.login-art h1 {
  font-size: 58px;
  position: relative;
  z-index: 1;
}
.login-art p {
  color: #abc7b9;
  max-width: 340px;
  margin-top: 25px;
  position: relative;
  z-index: 1;
}
.art-caption {
  position: absolute;
  bottom: 45px;
  letter-spacing: 2px;
  font-size: 11px;
  color: #91b8a4;
}
.art-grid {
  position: absolute;
  inset: 45% -80px -150px 20%;
  background:
    repeating-linear-gradient(0deg, transparent 0 59px, #ffffff0b 60px),
    repeating-linear-gradient(90deg, transparent 0 59px, #ffffff0b 60px);
  transform: rotate(-20deg);
  border-top: 2px solid #84b48e;
  border-radius: 35% 25% 0 0;
}
.login-form-wrap {
  display: grid;
  place-items: center;
  padding: 45px;
}
.login-form-wrap form {
  width: 100%;
  max-width: 340px;
}
.login-form-wrap h2 {
  font-size: 31px;
  margin: 15px 0 10px;
}
.login-form-wrap p {
  margin-bottom: 28px;
}
.login-form-wrap label {
  display: block;
  margin: 20px 0;
  font-size: 13px;
  font-weight: 600;
}
.login-form-wrap input {
  display: block;
  width: 100%;
  border: 1px solid #ccd6cc;
  background: white;
  border-radius: 7px;
  padding: 13px;
  margin-top: 9px;
  color: #1d3b30;
}
.login-form-wrap .primary {
  width: 100%;
  display: flex;
  justify-content: space-between;
}
.login-form-wrap small {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
  display: block;
  margin-top: 20px;
}
.error {
  color: #ab4738 !important;
  margin: 12px 0 !important;
}
.app-shell {
  display: grid;
  grid-template-columns: 212px minmax(0, 1fr);
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 212px;
  background: #143e35;
  color: #b3ccc0;
  padding: 38px 24px;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  gap: 17px;
  align-items: center;
  color: #fff;
  font-size: 17px;
  line-height: 1.2;
}
.brand strong {
  font-weight: 400;
  color: #a8cbb7;
}
.sidebar-label {
  font-size: 9px;
  color: #739d88;
  margin: 58px 0 19px;
}
.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 14px 10px;
  border-radius: 7px;
  font-size: 10px;
  color: #6f9b85;
  margin-bottom: 5px;
}
.sidebar nav a span {
  font-size: 12px;
  color: #b3ccc0;
}
.sidebar nav a.active {
  background: #2a5145;
  color: #a8cbb7;
}
.sidebar nav a.active span {
  color: #fff;
}
.sidebar-bottom {
  margin-top: auto;
  border-top: 1px solid #315548;
  padding-top: 25px;
  font-size: 12px;
}
.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #a7daa4;
  border-radius: 50%;
  margin-right: 8px;
}
.sidebar-bottom small {
  display: block;
  font-size: 10px;
  color: #709d85;
  margin: 9px 0 13px;
}
main {
  grid-column: 2;
  padding: 0 38px;
  max-width: 1640px;
  width: 100%;
  margin: auto;
}
header {
  height: 83px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.breadcrumbs {
  color: #75837c;
  font-size: 9px;
  letter-spacing: 1.2px;
}
.breadcrumbs span {
  margin: 0 13px;
  color: #b7c4b7;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 11px;
  color: var(--muted);
}
.avatar {
  background: #e2e8dd;
  color: #50644b;
  padding: 10px;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 35px 0 27px;
  gap: 20px;
}
.page-heading .eyebrow {
  display: block;
  margin-bottom: 12px;
}
.page-heading p {
  margin-top: 9px;
}
.pill {
  display: inline-flex;
  white-space: nowrap;
  gap: 7px;
  align-items: center;
  font-size: 11px;
  padding: 9px 12px;
  background: #e2ecdd;
  color: #44663b;
  border: 1px solid #d1dfc9;
  border-radius: 20px;
}
.pill::before {
  content: "";
  height: 6px;
  width: 6px;
  background: currentColor;
  border-radius: 50%;
}
.pill.warn {
  background: #f8eedb;
  color: #97702c;
  border-color: #ead9b9;
}
.pill.bad {
  background: #f7e7e2;
  color: #aa5647;
  border-color: #ebc4b9;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-bottom: 24px;
}
.metric {
  padding: 23px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 11px;
  min-height: 137px;
}
.metric > span {
  display: block;
  font-size: 12px;
  color: #718075;
  margin-bottom: 12px;
}
.metric strong {
  display: block;
  font-size: 30px;
  letter-spacing: -1px;
  font-weight: 550;
  font-variant-numeric: tabular-nums;
}
.metric small {
  display: block;
  font-size: 10px;
  color: #849087;
  margin-top: 10px;
}
.metric.accent {
  background: #e5eddc;
  border-color: #dbe6cf;
}
.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(270px, 1fr);
  gap: 22px;
  margin-bottom: 35px;
}
.panel {
  background: white;
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 25px;
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 21px;
}
.section-title h2 {
  margin-top: 7px;
}
.tag,
.section-note {
  font-size: 10px;
  color: #819082;
}
.tag {
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 5px;
  white-space: nowrap;
}
.chart-number {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.chart-number strong {
  font-size: 31px;
  letter-spacing: -1px;
  font-weight: 550;
}
.chart-number span {
  font-size: 11px;
  color: var(--muted);
}
.chart {
  height: 160px;
  margin: 14px 0 0;
}
.chart svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.chart text {
  fill: #8b978c;
  font-size: 10px;
}
.fine-print {
  font-size: 10px;
  line-height: 1.7;
  margin-top: 15px;
  color: #869084;
}
.system-panel h2 {
  margin: 10px 0 20px;
  max-width: 210px;
  line-height: 1.3;
}
.system-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  padding: 11px 0;
  border-bottom: 1px solid #edf0eb;
  color: #7d897f;
}
.system-row strong {
  font-weight: 500;
  color: #3a5c46;
  text-align: right;
}
.system-panel p {
  font-size: 10px;
  margin-top: 18px;
}
.agent-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-bottom: 30px;
}
.agent-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 23px;
}
.agent-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 21px;
}
.asset-name {
  display: flex;
  align-items: center;
  gap: 12px;
}
.coin {
  width: 39px;
  height: 39px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f9f0df;
  color: #ad772b;
  font-size: 12px;
  font-weight: 700;
}
.coin.eth {
  background: #edeefa;
  color: #68749a;
}
.asset-name strong {
  font-size: 15px;
  font-weight: 600;
}
.asset-name small {
  font-size: 10px;
  color: #849184;
  display: block;
  margin-top: 4px;
}
.rating {
  display: inline-block;
  font-size: 10px;
  padding: 7px 10px;
  border-radius: 5px;
  background: #f5eddd;
  color: #a48340;
}
.rating.buy {
  color: #2e7458;
  background: #e1efe6;
}
.rating.sell {
  background: #f7e7e2;
  color: #aa5647;
}
.agent-card h3 {
  font-size: 18px;
  font-weight: 550;
  margin: 0 0 8px;
  letter-spacing: -0.35px;
}
.agent-card p {
  font-size: 12px;
  min-height: 39px;
  max-width: 380px;
}
.agent-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: 20px;
}
.agent-bottom small {
  font-size: 10px;
  color: #8a958a;
  display: block;
  line-height: 1.8;
}
.agent-bottom button {
  font-size: 11px;
  white-space: nowrap;
}
.positions-panel,
.activity-panel {
  margin-bottom: 25px;
}
.empty {
  padding: 28px;
  text-align: center;
  background: #f7f9f5;
  border: 1px dashed #dce4d7;
  border-radius: 8px;
  color: #82907f;
  font-size: 12px;
}
.empty strong {
  display: block;
  font-weight: 500;
  color: #435b43;
  margin-bottom: 7px;
  font-size: 14px;
}
.tabs {
  display: flex;
  gap: 3px;
  background: #f2f5ef;
  padding: 4px;
  border-radius: 7px;
}
.tabs button {
  font-size: 10px;
  padding: 8px 11px;
  background: none;
  color: #7a877a;
}
.tabs button.selected {
  background: #fff;
  color: #31523a;
  box-shadow: 0 1px 4px #17382012;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
  font-size: 11px;
}
th {
  text-align: left;
  color: #8a958a;
  font-weight: 500;
  font-size: 9px;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  padding: 13px 10px;
  background: #f7f9f5;
}
td {
  padding: 15px 10px;
  border-bottom: 1px solid #edf1e9;
  color: #4f6552;
}
td button {
  font-size: 10px;
  background: none;
  color: #31553c;
  text-decoration: underline;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 22px;
  margin-bottom: 30px;
}
.settings-grid h2 {
  margin: 8px 0 20px;
}
.limits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}
.limit {
  font-size: 11px;
  color: #85917f;
}
.limit strong {
  display: block;
  font-weight: 550;
  color: #3e5840;
  margin-top: 7px;
}
.controls p {
  font-size: 12px;
  margin-bottom: 22px;
  max-width: 360px;
}
.controls button {
  font-size: 12px;
  width: 100%;
}
.controls .fine-print {
  font-size: 11px;
  margin-bottom: 0;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 20px 0 28px;
  border-top: 1px solid var(--border);
  font-size: 9px;
  letter-spacing: 1px;
  color: #879581;
}
.notice {
  background: #fff1dc;
  padding: 15px;
  border: 1px solid #e5ca9c;
  border-radius: 8px;
  color: #8a632b;
  font-size: 12px;
  margin-bottom: 20px;
}
dialog {
  border: 1px solid #cdd9c8;
  border-radius: 12px;
  max-width: 850px;
  width: calc(100% - 36px);
  padding: 30px;
  color: #213d2e;
  max-height: 85vh;
}
dialog::backdrop {
  background: #0e2d24a6;
  backdrop-filter: blur(3px);
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 25px;
}
.dialog-head h2 {
  margin-top: 10px;
}
dialog pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font:
    13px/1.8 "Segoe UI",
    Arial,
    sans-serif;
  color: #4a604c;
}
#control-dialog {
  max-width: 460px;
}
#control-dialog h2 {
  margin: 13px 0;
}
#control-dialog p {
  font-size: 13px;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 25px;
}
section[id] {
  scroll-margin-top: 20px;
}
@media (min-width: 1500px) {
  main {
    padding: 0 55px;
  }
  .metric {
    padding: 25px;
  }
  .chart {
    height: 190px;
  }
}
@media (max-width: 1100px) {
  .app-shell {
    grid-template-columns: 170px minmax(0, 1fr);
  }
  .sidebar {
    width: 170px;
    padding: 30px 17px;
  }
  main {
    padding: 0 24px;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
  }
  .overview-grid {
    grid-template-columns: 1fr;
  }
  .system-panel h2 {
    max-width: none;
  }
  .system-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 25px;
  }
  .system-panel > .eyebrow,
  .system-panel > h2,
  .system-panel > p {
    grid-column: 1/-1;
  }
  .section-note {
    max-width: 160px;
    text-align: right;
  }
}
@media (max-width: 720px) {
  .login-shell {
    grid-template-columns: 1fr;
  }
  .login-art {
    min-height: 250px;
    padding: 35px;
  }
  .login-art > .brand-mark {
    display: none;
  }
  .login-art h1 {
    font-size: 35px;
  }
  .login-art p,
  .art-caption {
    display: none;
  }
  .login-art .eyebrow {
    margin-bottom: 15px;
  }
  .login-form-wrap {
    padding: 35px 25px;
  }
  .app-shell {
    display: block;
  }
  .sidebar {
    position: static;
    width: auto;
    padding: 17px 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .brand {
    font-size: 12px;
    gap: 12px;
  }
  .brand-mark {
    font-size: 25px;
  }
  .sidebar-label,
  .sidebar-bottom {
    display: none;
  }
  .sidebar nav {
    display: flex;
    gap: 5px;
  }
  .sidebar nav a {
    padding: 10px 8px;
    font-size: 11px;
    margin: 0;
  }
  .sidebar nav a span {
    display: none;
  }
  main {
    padding: 0 18px;
  }
  header {
    height: 65px;
  }
  .breadcrumbs {
    display: none;
  }
  .header-right {
    width: 100%;
    justify-content: flex-end;
  }
  .page-heading {
    padding-top: 27px;
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
  }
  h1 {
    font-size: 30px;
  }
  .metrics {
    gap: 10px;
  }
  .metric {
    padding: 17px;
    min-height: 125px;
  }
  .metric strong {
    font-size: 25px;
  }
  .metric > span {
    font-size: 11px;
  }
  .metric small {
    font-size: 9px;
  }
  .panel {
    padding: 20px;
  }
  .agent-grid,
  .settings-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .overview-grid {
    gap: 16px;
  }
  .section-title {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .section-note {
    max-width: none;
    text-align: left;
  }
  .activity-panel .section-title {
    gap: 20px;
  }
  .chart {
    height: 145px;
  }
  .system-panel {
    display: block;
  }
  .system-panel h2 {
    margin-bottom: 12px;
  }
  .agent-bottom button {
    padding: 9px;
  }
  .agent-card p {
    min-height: 0;
  }
  .tabs {
    width: 100%;
  }
  .tabs button {
    flex: 1;
  }
  footer {
    flex-direction: column;
    font-size: 8px;
  }
  .limits {
    gap: 20px;
  }
  dialog {
    padding: 20px;
  }
  .header-right .subtle {
    font-size: 10px;
  }
}
.agent-grid {
  align-items: start;
}
.diagnostic {
  border-top: 1px solid var(--border);
  margin-top: 18px;
  padding-top: 14px;
}
.diagnostic summary {
  font-size: 11px;
  font-weight: 600;
  color: #416148;
  cursor: pointer;
}
.diagnostic .fine-print {
  margin: 12px 0;
}
.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-bottom: 1px solid #edf1e9;
  padding: 11px 0;
}
.check-list strong {
  font-size: 11px;
  display: block;
  font-weight: 600;
}
.check-list small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 5px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.check-pass,
.check-fail {
  flex: 0 0 29px;
  padding: 4px 0;
  text-align: center;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 700;
}
.check-pass {
  background: #e1efe6;
  color: #2e7458;
}
.check-fail {
  background: #f8eedb;
  color: #97702c;
}
.comparison-panel {
  margin-bottom: 25px;
}
.comparison-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 25px 0;
}
.comparison-stats span,
.comparison-stats small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}
.comparison-stats strong {
  font-size: 23px;
  font-weight: 550;
  letter-spacing: -0.5px;
  display: block;
  margin: 8px 0;
}
.chart-legend {
  display: flex;
  gap: 22px;
  font-size: 10px;
  color: var(--muted);
}
.chart-legend span::before {
  display: inline-block;
  content: "";
  width: 17px;
  border-top: 2px solid #477c52;
  vertical-align: middle;
  margin-right: 7px;
}
.chart-legend span:nth-child(2)::before {
  border-top: 2px dashed #bd8e42;
}
.csv-download {
  font-size: 10px;
  color: #31553c;
  text-decoration: underline;
  white-space: nowrap;
}
.activity-panel .section-title {
  flex-wrap: wrap;
}
@media (max-width: 720px) {
  .comparison-stats {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .comparison-stats > div {
    padding-bottom: 13px;
    border-bottom: 1px solid var(--border);
  }
  .comparison-stats strong {
    font-size: 25px;
  }
  .tabs button {
    padding: 8px 7px;
  }
}
