:root {
  color-scheme: light;
  --ink: #172525;
  --dim: #536460;
  --muted: #667572;
  --paper: #f3f5f1;
  --card: #fff;
  --line: #e0e6df;
  --dark: #142824;
  --teal: #116755;
  --teal-light: #e6f4ed;
  --rust: #a53c2d;
  --rust-light: #fbede7;
  --gold: #815217;
  --gold-light: #fbf1dd;
  --brand-mark-bg: #d2eddd;
  --brand-mark-ink: #195543;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    14px/1.55 "DM Sans",
    "PingFang SC",
    "Microsoft YaHei",
    system-ui,
    sans-serif;
}
button {
  font: inherit;
  cursor: pointer;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid #dc8740;
  outline-offset: 3px;
}
button:disabled {
  cursor: default;
}
.top {
  background: var(--dark);
  color: #fff;
}
.top-inner {
  max-width: 1430px;
  margin: auto;
  min-height: 69px;
  padding: 0 44px;
  display: flex;
  align-items: center;
  gap: 40px;
}
.brand {
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 11px;
  letter-spacing: 0.03em;
}
.mark {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 9px;
  background: var(--brand-mark-bg);
  color: var(--brand-mark-ink);
  display: grid;
  place-content: center;
}
.mark svg {
  display: block;
  width: 24px;
  height: 24px;
}
nav {
  display: flex;
  align-items: stretch;
  align-self: stretch;
  gap: 21px;
}
nav button {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: #bfcec8;
  padding: 0 8px;
  white-space: nowrap;
}
nav button[aria-current="page"] {
  border-color: #bde7cc;
  color: #fff;
  font-weight: 700;
}
.demo {
  margin-left: auto;
  white-space: nowrap;
  font-size: 12px;
  color: #e7ddd0;
  border: 1px solid #64736a;
  padding: 4px 10px;
  border-radius: 30px;
}
main {
  max-width: 1430px;
  padding: 35px 44px 48px;
  margin: auto;
}
.heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 24px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 36px;
  letter-spacing: -0.045em;
  line-height: 1.2;
  margin-bottom: 8px;
}
h2 {
  font-size: 19px;
  letter-spacing: -0.02em;
}
h3 {
  font-size: 15px;
}
.hint {
  color: var(--dim);
  font-size: 13px;
}
.stamp {
  color: var(--dim);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-size: 13px;
}
.stamp::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2c8c6e;
  margin-right: 8px;
}
.grid {
  display: grid;
  grid-template-columns: minmax(0, 2.35fr) minmax(285px, 1fr);
  gap: 20px;
  align-items: start;
}
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 19px 21px;
}
.panel-head .hint {
  margin-top: 3px;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
th {
  font-size: 12px;
  font-weight: 600;
  color: var(--dim);
  background: #f8faf7;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
th,
td {
  padding: 11px 13px;
}
th:first-child,
td:first-child {
  padding-left: 21px;
}
th:last-child,
td:last-child {
  padding-right: 21px;
}
.num {
  text-align: right;
}
td {
  border-bottom: 1px solid #edf0ec;
  height: 60px;
}
tr:last-child td {
  border-bottom: none;
}
tbody tr:hover {
  background: #f8faf7;
}
.price {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.025em;
}
.caption {
  color: var(--muted);
  font-size: 12px;
  display: block;
  font-weight: 400;
  margin-top: 1px;
}
.plain-link {
  display: inline-flex;
  border: none;
  padding: 0;
  background: none;
  font-weight: 700;
  color: var(--teal);
  align-items: center;
  gap: 6px;
  text-align: left;
}
.plain-link:hover {
  text-decoration: underline;
}
.material-link {
  color: var(--ink);
  font-weight: 700;
}
.up {
  color: var(--rust);
  font-weight: 700;
}
.down {
  color: var(--teal);
  font-weight: 700;
}
.flat {
  color: var(--muted);
}
.spark {
  width: 104px;
  height: 30px;
  display: block;
}
.pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 650;
  color: var(--dim);
  background: #eff2ef;
  white-space: nowrap;
}
.pill.warn {
  color: var(--gold);
  background: var(--gold-light);
}
.pill.fall {
  color: var(--teal);
  background: var(--teal-light);
}
.pill.rise {
  color: var(--rust);
  background: var(--rust-light);
}
.alerts {
  padding: 0 16px 15px;
  display: grid;
  gap: 10px;
}
.alert {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 13px 14px;
  display: block;
  width: 100%;
  text-align: left;
  background: #fff;
  color: var(--ink);
}
.alert:hover {
  border-color: #91aea5;
  background: #f8fbf8;
}
.alert-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  margin-top: 8px;
  font-size: 15px;
  font-weight: 700;
}
.arrow {
  color: var(--teal);
  margin-left: 6px;
}
.alert .caption {
  margin-top: 4px;
}
.alert-value {
  display: inline-block;
  margin-top: 7px;
  font-weight: 700;
  font-size: 13px;
}
.rules {
  margin-top: 20px;
}
.rule-grid {
  padding: 0 21px 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.rule {
  border-left: 3px solid #a6c7b9;
  padding-left: 12px;
}
.rule + .rule {
  border-color: #e5c697;
}
.rule p {
  margin-top: 3px;
}
.actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.seg {
  background: #eef2ee;
  border-radius: 8px;
  padding: 3px;
  display: flex;
  gap: 2px;
  white-space: nowrap;
}
.seg button {
  border: 1px solid transparent;
  background: none;
  color: var(--dim);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
}
.seg button[aria-pressed="true"] {
  background: white;
  color: var(--ink);
  border-color: var(--line);
  font-weight: 700;
}
.back {
  margin-bottom: 13px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 0 21px 16px;
}
.metric {
  background: #f6f8f5;
  border-radius: 7px;
  padding: 12px;
  min-width: 0;
}
.metric .value {
  display: block;
  margin-top: 4px;
  font-size: 23px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  line-height: 1.22;
}
.plot {
  display: block;
  width: 100%;
  height: 280px;
}
.plot-note {
  padding: 3px 21px 15px;
  min-height: 36px;
}
.quote-panel .table-wrap {
  max-height: 330px;
}
.quote-panel thead {
  position: sticky;
  top: 0;
  z-index: 1;
}
.quote-panel td {
  height: auto;
}
.quote-panel .table-wrap:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: -2px;
}
.quote-panel .primary:disabled {
  background: #eef2ee;
  color: var(--muted);
  border-color: var(--line);
}
.month-details {
  border-top: 1px solid var(--line);
  padding: 12px 21px;
}
.month-details summary {
  cursor: pointer;
  color: var(--teal);
  font-weight: 650;
  width: max-content;
}
.month-details .table-wrap {
  margin: 10px -5px 0;
}
.month-details td {
  height: auto;
}
.stack {
  display: grid;
  gap: 16px;
}
.evidence {
  padding: 0 21px 17px;
  display: grid;
  gap: 12px;
}
.evidence-list {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(78px, auto) 1fr;
  column-gap: 14px;
  row-gap: 8px;
}
dt {
  color: var(--dim);
}
dd {
  margin: 0;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.route-alerts {
  max-width: 975px;
}
.foot {
  color: var(--muted);
  font-size: 12px;
  margin-top: 15px;
}
dialog {
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0;
  width: min(540px, calc(100% - 30px));
  box-shadow: 0 24px 72px #15262345;
}
dialog::backdrop {
  background: #12252075;
}
.dialog-body {
  padding: 0 22px 21px;
}
.dialog-body table {
  margin: 12px 0;
}
.dialog-body table th:first-child,
.dialog-body table td:first-child {
  padding-left: 10px;
}
.dialog-body table td {
  height: 42px;
}
.dialog-foot {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 14px 22px;
}
.primary {
  background: var(--teal);
  color: #fff;
  border: 1px solid var(--teal);
  border-radius: 7px;
  padding: 8px 13px;
  white-space: nowrap;
  font-weight: 650;
}
.primary:hover {
  background: #0b5547;
}
.close {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 6px;
  width: 32px;
  height: 32px;
  font-size: 19px;
}
.empty {
  padding: 8px 21px 22px;
  color: var(--dim);
}
@media (max-width: 1050px) {
  .grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .alerts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 620px) {
  .top-inner {
    padding: 0 16px;
    gap: 14px;
    min-height: 62px;
    flex-wrap: wrap;
  }
  .brand {
    font-size: 14px;
  }
  nav {
    gap: 3px;
    min-height: 60px;
  }
  nav button {
    padding: 0 5px;
    font-size: 12px;
  }
  main {
    padding: 24px 15px 35px;
  }
  h1 {
    font-size: 29px;
  }
  .heading {
    align-items: start;
    flex-direction: column;
    gap: 9px;
  }
  .panel-head,
  .metrics {
    padding-right: 13px;
    padding-left: 13px;
  }
  .panel-head:has(.seg) {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .metrics {
    gap: 5px;
  }
  .metric {
    padding: 7px;
  }
  .metric .value {
    font-size: 17px;
  }
  .alerts,
  .rule-grid {
    grid-template-columns: 1fr;
  }
  .demo {
    display: none;
  }
  .plot {
    height: 235px;
  }
}

.account {
  margin-left: auto;
  background: transparent;
  color: #d7e9e0;
  border: 1px solid #64736a;
  border-radius: 7px;
  padding: 6px 11px;
  white-space: nowrap;
}
.brand small {
  font-size: 10px;
  letter-spacing: 0.12em;
  opacity: 0.65;
}
.secondary {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--teal);
  border-radius: 7px;
  padding: 7px 12px;
  font-weight: 600;
}
.date-filter {
  display: flex;
  gap: 10px;
  align-items: end;
  flex-wrap: wrap;
  padding: 0 21px 18px;
}
label {
  display: grid;
  gap: 6px;
  color: var(--dim);
  font-size: 12px;
}
input {
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  border: 1px solid #b8c8bf;
  border-radius: 6px;
  padding: 7px 10px;
  background: white;
  min-width: 0;
}
input:focus-visible,
canvas:focus-visible {
  outline: 3px solid #dc8740;
  outline-offset: 2px;
}
.notice {
  padding: 12px 16px;
  margin: 0 21px 16px;
  border-radius: 7px;
  background: var(--gold-light);
  color: var(--gold);
  font-size: 13px;
}
.run {
  border-top: 1px solid var(--line);
  padding: 15px 21px;
}
.run summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 600;
}
.run .table-wrap {
  margin-top: 12px;
}
.run .pill {
  margin-left: 15px;
}
.login-form {
  display: grid;
  gap: 17px;
}
.login-form .primary {
  margin-top: 2px;
}
#login-error {
  color: var(--rust);
  font-size: 13px;
}
#toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  padding: 12px 20px;
  background: var(--dark);
  color: white;
  border-radius: 8px;
  box-shadow: 0 6px 25px #14282430;
  max-width: 90vw;
}
pre {
  overflow: auto;
  padding: 15px;
  background: #f6f8f5;
  border-radius: 8px;
  font-size: 12px;
}
.hash {
  word-break: break-all;
  color: var(--muted);
  font-size: 11px;
}
.evidence-list dd {
  overflow-wrap: anywhere;
}
button:disabled {
  opacity: 0.55;
  cursor: default;
}
@media (max-width: 620px) {
  .top-inner {
    gap: 8px;
    padding-top: 9px;
    padding-bottom: 9px;
  }
  nav {
    order: 3;
    width: 100%;
    min-height: 38px;
    justify-content: space-between;
  }
  .account {
    font-size: 12px;
  }
  .date-filter {
    padding: 0 13px 15px;
    gap: 8px;
  }
  input[type="date"] {
    width: 137px;
  }
  .evidence-list {
    grid-template-columns: 80px 1fr;
  }
}
