@font-face {
  font-family: Deltha;
  src: url('/deltha.otf') format('opentype');
  font-display: swap;
}
:root {
  color-scheme: light;
  --bg: #f7f9fb;
  --surface: #fff;
  --ink: #17242f;
  --muted: #60717e;
  --line: #e0e7ec;
  --grid: #edf1f4;
  --green: #12846b;
  --red: #c94e62;
  --blue: #287bbb;
  --purple: #8061c4;
  --soft: #f0f4f7;
  --warning: #936721;
  --warning-bg: #fff7e5;
  --healthy-bg: #edf8f3;
  --shadow: 0 1px 2px #17242f04;
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #10171d;
  --surface: #172129;
  --ink: #e4edf2;
  --muted: #9dafbc;
  --line: #2d3b46;
  --grid: #24323d;
  --green: #45c7a2;
  --red: #f18c9d;
  --blue: #6bb8ed;
  --purple: #bc9fea;
  --soft: #1e2c37;
  --warning: #e9c27a;
  --warning-bg: #30291d;
  --healthy-bg: #173129;
  --shadow: none;
}
* {
  box-sizing: border-box;
}
html {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
}
a {
  color: inherit;
  text-underline-offset: 3px;
}
button,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
button:focus-visible,
a:focus-visible,
canvas:focus-visible,
summary:focus-visible,
select:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}
main {
  max-width: 1240px;
  width: calc(100% - 64px);
  margin: auto;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 25px 0;
}
.brand,
.top-actions {
  display: flex;
  align-items: center;
  gap: 13px;
}
.brand {
  text-decoration: none;
}
.brand img {
  object-fit: contain;
  filter: brightness(0);
}
:root[data-theme='dark'] .brand img {
  filter: brightness(0) invert(1);
}
.soter-name {
  font-family: Deltha, sans-serif;
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.brand-divider {
  height: 22px;
  border-left: 1px solid var(--line);
  margin: 0 3px;
}
.product-name {
  font-size: 14px;
  color: var(--muted);
}
.top-actions {
  gap: 20px;
}
.quiet-link {
  font-size: 14px;
  color: var(--muted);
}
.icon-button {
  border: 1px solid var(--line);
  border-radius: 9px;
  width: 38px;
  height: 38px;
  background: var(--surface);
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
}
.pagehead {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin: 38px 0 28px;
}
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--muted);
}
h1 {
  font-size: 36px;
  line-height: 1.15;
  letter-spacing: -0.035em;
  margin: 10px 0 12px;
  font-weight: 650;
}
.lede {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}
.period-control {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.period-control label {
  font-size: 13px;
  color: var(--muted);
}
select {
  appearance: none;
  background: var(--surface)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23778a99' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")
    right 13px center/14px no-repeat;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  padding: 11px 39px 11px 13px;
  font-size: 14px;
  min-width: 236px;
}
.status-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--muted);
}
.status-banner strong {
  font-weight: 550;
  color: var(--ink);
}
.status-banner.fresh {
  background: var(--healthy-bg);
}
.status-banner.stale {
  background: var(--warning-bg);
}
.status-dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--muted);
}
.fresh .status-dot {
  background: var(--green);
}
.stale .status-dot {
  background: var(--warning);
}
#updated {
  margin-left: auto;
  font-size: 13px;
}
.text-button {
  border: 0;
  background: none;
  padding: 0 0 0 8px;
  color: var(--blue);
  font-size: 13px;
}
.text-button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.coverage {
  font-size: 14px;
  color: var(--warning);
  margin: 14px 0 0;
}
.overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin: 22px 0 28px;
}
.metric-card {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.label {
  display: block;
  font-size: 14px;
  font-weight: 450;
  color: var(--muted);
}
.live-label {
  font-size: 10px;
  letter-spacing: 0.07em;
  padding: 2px 4px;
  background: var(--soft);
  border-radius: 3px;
  margin-left: 3px;
  vertical-align: 1px;
}
.metric-value {
  font-size: 32px;
  font-weight: 620;
  line-height: 1.2;
  letter-spacing: -0.035em;
  margin: 17px 0 2px;
  font-variant-numeric: tabular-nums;
}
.unit {
  font-size: 12px;
  color: var(--muted);
}
.metric-note {
  font-size: 13px;
  margin: 11px 0 0;
  color: var(--muted);
  min-height: 20px;
}
.positive {
  color: var(--green) !important;
}
.negative {
  color: var(--red) !important;
}
.section {
  padding: 26px 28px;
  margin: 0 0 20px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.section-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
}
.section-head h2 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 620;
  letter-spacing: -0.025em;
}
.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  max-width: 750px;
}
.period-badge {
  font-size: 12px;
  white-space: nowrap;
  color: var(--muted);
  padding-top: 5px;
}
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 20px 0 8px;
  font-size: 13px;
  color: var(--muted);
}
.legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.dash {
  width: 17px;
  border-top: 2px dashed currentColor;
}
.ink {
  background: var(--ink);
}
.blue {
  background: var(--blue);
  color: var(--blue);
}
.dash.blue {
  background: none;
}
.green {
  background: var(--green);
}
.red {
  background: var(--red);
}
.purple {
  background: var(--purple);
}
.chart-wrap {
  position: relative;
  height: 296px;
  margin: 8px 0 18px;
}
canvas {
  display: block;
  width: 100%;
  height: 296px;
}
.chart-hover {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 4px 20px #0001;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.65;
  padding: 10px 12px;
  white-space: pre-line;
  max-width: 260px;
}
.chart-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 14px;
  pointer-events: none;
}
.chart-empty[hidden],
.chart-hover[hidden] {
  display: none;
}
.facts {
  display: grid;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  gap: 20px;
}
.facts.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.facts.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.facts strong {
  display: block;
  font-size: 19px;
  font-weight: 560;
  margin-top: 5px;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.footnote {
  font-size: 12px;
  color: var(--muted);
  margin: 16px 0 0;
}
.insight {
  font-size: 14px;
  border-left: 2px solid var(--blue);
  background: var(--soft);
  padding: 12px 14px;
  margin: 20px 0 0;
  color: var(--muted);
  border-radius: 0 6px 6px 0;
}
.liquidity-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.liquidity-bottom .facts {
  align-content: start;
}
.quote-table {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
h3 {
  font-size: 15px;
  font-weight: 550;
  margin: 0 0 7px;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
  text-align: left;
}
th {
  font-weight: 450;
  color: var(--muted);
  font-size: 13px;
}
th,
td {
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}
td:last-child,
th:last-child {
  text-align: right;
  padding-right: 0;
}
.recent summary {
  font-size: 18px;
  font-weight: 550;
  cursor: pointer;
}
.recent summary span {
  font-size: 13px;
  color: var(--muted);
  font-weight: 400;
  margin-left: 16px;
}
.table-scroll {
  overflow-x: auto;
  margin-top: 12px;
}
.table-scroll table {
  min-width: 650px;
}
.method {
  padding: 7px 1px 20px;
  color: var(--muted);
  font-size: 14px;
}
.method summary {
  cursor: pointer;
  font-size: 14px;
}
.method p {
  max-width: 920px;
}
.method p:last-child {
  margin-bottom: 0;
}
footer {
  padding: 20px 0 30px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
}
footer div {
  display: flex;
  gap: 20px;
}
@media (max-width: 1000px) {
  .metric-card {
    padding: 16px;
  }
  .metric-value {
    font-size: 28px;
  }
  .live-label {
    display: none;
  }
  .pagehead {
    align-items: start;
  }
  h1 {
    font-size: 31px;
  }
  .period-badge {
    display: none;
  }
}
@media (max-width: 760px) {
  main {
    width: calc(100% - 28px);
  }
  .topbar {
    padding: 18px 0;
  }
  .top-actions .quiet-link {
    display: none;
  }
  .brand {
    gap: 9px;
  }
  .soter-name {
    font-size: 14px;
  }
  .product-name {
    font-size: 12px;
  }
  .brand-divider {
    margin: 0 1px;
  }
  .brand img {
    width: 24px;
    height: 24px;
  }
  .pagehead {
    display: block;
    margin: 26px 0 18px;
  }
  h1 {
    font-size: 31px;
  }
  .period-control {
    margin-top: 20px;
  }
  .period-control label {
    display: none;
  }
  select {
    width: 100%;
    font-size: 14px;
  }
  .status-banner {
    flex-wrap: wrap;
    padding: 11px 12px;
    gap: 7px;
    font-size: 13px;
  }
  #updated {
    order: 4;
    width: 100%;
    margin-left: 14px;
    font-size: 12px;
  }
  .text-button {
    margin-left: auto;
  }
  .overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 16px 0 20px;
  }
  .metric-card {
    padding: 15px 13px;
  }
  .metric-card .label {
    font-size: 14px;
  }
  .metric-value {
    font-size: 27px;
    margin-top: 13px;
  }
  .metric-note {
    font-size: 12px;
    min-height: 35px;
    line-height: 1.45;
  }
  .unit {
    font-size: 12px;
  }
  .section {
    padding: 20px 15px;
    border-radius: 11px;
    margin-bottom: 16px;
  }
  .section-head h2 {
    font-size: 21px;
  }
  .section-head p {
    font-size: 14px;
  }
  .legend {
    gap: 11px;
    font-size: 12px;
  }
  .chart-wrap,
  canvas {
    height: 260px;
  }
  .facts.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 13px;
  }
  .facts .label {
    font-size: 14px;
  }
  .facts strong {
    font-size: 18px;
  }
  .liquidity-bottom {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .recent summary span {
    display: none;
  }
  .coverage {
    font-size: 13px;
  }
  .footnote {
    line-height: 1.55;
  }
  .chart-hover {
    font-size: 11px;
    max-width: 225px;
  }
  .method {
    font-size: 14px;
  }
  .topbar .icon-button {
    width: 34px;
    height: 34px;
  }
}

.chart-hover {
  white-space: normal;
  width: max-content;
  max-width: calc(100% - 8px);
  min-width: min(245px, calc(100% - 8px));
}
.tooltip-title {
  color: var(--muted);
  margin-bottom: 7px;
  font-size: 12px;
}
.tooltip-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 4px 0;
  --series-color: var(--ink);
}
.tooltip-row[data-series='blue'] {
  --series-color: var(--blue);
}
.tooltip-row[data-series='green'] {
  --series-color: var(--green);
}
.tooltip-row[data-series='red'] {
  --series-color: var(--red);
}
.tooltip-row[data-series='purple'] {
  --series-color: var(--purple);
}
.tooltip-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--series-color);
}
.tooltip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--series-color);
  flex: none;
}
.tooltip-value {
  color: var(--series-color);
  font-size: inherit;
  font-weight: 550;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.tooltip-total {
  border-top: 1px solid var(--line);
  padding-top: 7px;
  margin-top: 7px;
}

.holder-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  font-size: 14px;
  color: var(--muted);
}
.holder-controls select {
  min-width: 0;
}
.holder-slider {
  margin: 8px 0 20px;
  font-size: 14px;
  color: var(--muted);
}
.holder-slider label {
  display: block;
}
.holder-slider input {
  width: 100%;
  accent-color: var(--blue);
  margin: 14px 0 0;
}
.holder-details {
  margin-top: 22px;
  font-size: 14px;
}
.holder-details summary {
  cursor: pointer;
}
.holder-details td:first-child {
  font-family: monospace;
  font-size: 13px;
}
.holder-details table {
  min-width: 760px;
}
#holder-status {
  margin: 0 0 18px;
}
.holder-controls label {
  flex: none;
}
@media (max-width: 760px) {
  .holder-controls {
    flex-wrap: wrap;
  }
  .holder-controls select {
    width: 100%;
  }
  .holder-slider output {
    display: block;
  }
}

body[data-market='stusds'] .sky-only {
  display: none;
}
.vault-totals {
  margin-top: 20px;
}
.recent-vault summary {
  cursor: pointer;
  font-size: 18px;
}
.recent-vault summary span {
  font-size: 13px;
  color: var(--muted);
}
.recent-vault table,
#redemption-title ~ table {
  min-width: 760px;
}
.recent-vault td {
  white-space: nowrap;
}
.vault-unavailable {
  color: var(--warning);
}
.coverage-details {
  font-size: 14px;
  color: var(--muted);
  margin: 14px 0 20px;
}
.coverage-details summary,
.history-details summary {
  cursor: pointer;
}
.coverage-details p {
  margin: 8px 0;
}
.history-details {
  margin-top: 22px;
  font-size: 14px;
  color: var(--muted);
}
.address {
  font-family: ui-monospace, monospace;
  font-size: 13px;
  white-space: nowrap;
}
.card-title {
  font-weight: 550;
  color: var(--ink);
  margin-bottom: 6px;
}
.spell-title {
  max-width: 360px;
  min-width: 240px;
  font-weight: 550;
  color: var(--ink);
}
.spell-details {
  font-size: 13px;
  margin-top: 8px;
  font-weight: 400;
  color: var(--muted);
}
.spell-details summary {
  cursor: pointer;
}
.spell-details p {
  overflow-wrap: anywhere;
}
.badge {
  display: inline-block;
  font-size: 12px;
  padding: 3px 7px;
  border-radius: 5px;
  background: var(--soft);
  color: var(--muted);
  white-space: nowrap;
  margin: 2px 0;
}
.badge.urgent {
  background: var(--warning-bg);
  color: var(--red);
}
.badge.action {
  color: var(--warning);
  background: var(--warning-bg);
}
.badge.approved {
  color: var(--green);
  background: var(--healthy-bg);
}
.plan-item,
.incident-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.plan-item > p,
.incident-item > p {
  margin: 7px 0;
  color: var(--muted);
}
.plan-item details {
  font-size: 13px;
  color: var(--muted);
}
.plan-item code {
  display: block;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
  background: var(--soft);
  padding: 10px;
  margin-top: 6px;
}
.incident-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.incident-head time {
  margin-left: auto;
  font-size: 12px;
  color: var(--muted);
}
.incident-filters {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 20px;
  color: var(--muted);
  font-size: 14px;
}
.incident-filters select {
  min-width: 0;
}
.metric-note a {
  overflow-wrap: anywhere;
  font-size: 11px;
}
.source-line {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
}
.source-line span:last-child {
  max-width: 75%;
  text-align: right;
  overflow-wrap: anywhere;
}
.table-scroll td {
  vertical-align: top;
}
.chart-wrap {
  margin-top: 16px;
}
.section {
  overflow: hidden;
}
#registry {
  display: grid;
  gap: 12px;
  margin-top: 15px;
}
#registry .address {
  white-space: normal;
  overflow-wrap: anywhere;
}
.metric-value {
  overflow-wrap: anywhere;
}
.warning {
  color: var(--warning);
}
@media (max-width: 760px) {
  .table-scroll table {
    min-width: 850px;
  }
  .incident-filters {
    flex-wrap: wrap;
  }
  .incident-head time {
    margin-left: 0;
  }
  .plan-item .address {
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .coverage-details {
    font-size: 13px;
  }
  .metric-value {
    font-size: 25px;
  }
}

.spell-subtitle {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 46ch;
}
.more-row td {
  text-align: left;
}
#hat-label .address {
  overflow-wrap: anywhere;
}
.incident-subject {
  color: var(--muted);
  font-size: 13px;
}
