:root {
  color-scheme: light;
  --paper: #f8f4ea;
  --surface: #fffdf7;
  --ink: #222946;
  --indigo: #374275;
  --accent: #5763a0;
  --muted: #585e72;
  --line: #ded8ce;
  --lilac: #ebeafa;
  --lilac-strong: #dce0f7;
  --lavender-line: #c4cbea;
  --sell: #8a4351;
  --buy: #286853;
  font: 15px/1.5 "Inter", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 280px; background: var(--paper); color: var(--ink); }
button, input { font: inherit; }
button { color: inherit; cursor: pointer; }
button:disabled { opacity: .68; cursor: wait; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, dl, dd { margin: 0; }
:focus-visible { outline: 2px solid #475bb0; outline-offset: 3px; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip:focus { position: absolute; top: 7px; left: 7px; background: var(--surface); padding: 9px; z-index: 5; }
.shell { width: min(1460px, calc(100% - 68px)); margin-inline: auto; }
.header { border-bottom: 1px solid var(--line); }
.topbar { min-height: 72px; display: grid; grid-template-columns: auto auto minmax(170px, 390px) auto; align-items: center; gap: clamp(14px, 2vw, 32px); justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 770; font-size: 26px; line-height: 1; letter-spacing: -.06em; }
.brand img { border-radius: 8px; }
.app-nav, .site-nav { display: flex; align-items: center; gap: 6px; }
.nav-control, .site-nav a { padding: 7px 10px; white-space: nowrap; font-size: .9rem; font-weight: 660; border-radius: 8px; }
.nav-control { border: 0; background: transparent; }
.nav-control:first-child { color: var(--indigo); background: var(--lilac); }
.nav-control:hover, .site-nav a:hover { background: #e1e3f5; color: var(--indigo); }
.lookup { display: flex; align-items: center; border: 1px solid var(--line); background: var(--surface); border-radius: 9px; min-width: 0; }
.lookup:focus-within { border-color: var(--accent); }
.lookup input { flex: 1; min-width: 0; width: 100%; padding: 8px 11px; border: 0; outline: 0; background: none; color: var(--ink); font-size: .9rem; }
.lookup input::placeholder { color: var(--muted); }
.lookup button { border: 0; border-left: 1px solid var(--line); background: transparent; color: var(--indigo); font-size: .85rem; font-weight: 700; padding: 7px 11px; }
.lookup button:hover { background: var(--lilac); }
.terminal { padding-top: 24px; }
.notice { padding: 10px 13px; background: #eeeafb; color: var(--indigo); border: 1px solid var(--lavender-line); border-radius: 9px; margin-bottom: 14px; }
.asset-head { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin-bottom: 21px; }
.overline { display: flex; align-items: center; gap: 8px; color: #495481; font-size: .73rem; font-weight: 760; text-transform: uppercase; letter-spacing: .12em; }
.overline-secondary { color: var(--muted); margin-left: 4px; letter-spacing: .07em; font-weight: 630; }
.title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 3px; }
.title-row h1 { font-size: clamp(2.2rem, 4.5vw, 3.65rem); line-height: 1.05; letter-spacing: -.065em; font-weight: 760; overflow-wrap: anywhere; }
.chip { display: inline-flex; align-items: center; padding: 3px 9px; background: #e4e7f8; border: 1px solid #c9d0ed; border-radius: 6px; color: var(--indigo); font-size: .76rem; font-weight: 740; white-space: nowrap; }
.chip.subtle { background: transparent; border-color: var(--line); font-weight: 630; }
.asset-caption { margin-top: 6px; color: var(--muted); font-size: .93rem; overflow-wrap: anywhere; }
.asset-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.button { display: inline-flex; justify-content: center; align-items: center; padding: 8px 13px; min-height: 39px; border: 1px solid transparent; border-radius: 8px; white-space: nowrap; font-size: .86rem; font-weight: 700; }
.primary { background: var(--indigo); color: #fff; }
.primary:hover { background: #48568e; }
.secondary { background: var(--surface); color: var(--indigo); border-color: var(--line); }
.secondary:hover { background: var(--lilac); }
.terminal-grid { display: grid; grid-template-columns: minmax(0, 1.95fr) minmax(300px, 1fr); gap: 15px; align-items: start; }
.analysis-column { min-width: 0; display: grid; gap: 13px; }
.quote-band { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: #eaeafa; border: 1px solid #d9dcf1; border-radius: 11px; padding: 11px 0; }
.quote-band > div { padding: 1px clamp(9px, 1.4vw, 17px); min-width: 0; }
.quote-band > div + div { border-left: 1px solid #cdd1e9; }
.quote-band dt { color: #4c587e; font-size: .79rem; font-weight: 620; }
.quote-band dd { font-size: clamp(.96rem, 1.55vw, 1.32rem); font-weight: 760; line-height: 1.3; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.surface { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; min-width: 0; }
.activity, .transactions { padding: 15px 17px 13px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.section-head h2 { font-size: 1.35rem; line-height: 1.15; letter-spacing: -.035em; }
.section-head p { font-size: .8rem; margin-top: 2px; color: var(--muted); }
.segmented { display: inline-flex; align-items: center; gap: 3px; border: 1px solid #dce0f1; background: #f1f0fa; padding: 3px; border-radius: 8px; }
.segmented button { border: 0; background: transparent; color: var(--indigo); padding: 4px 8px; font-size: .75rem; font-weight: 700; border-radius: 5px; }
.segmented [aria-pressed="true"] { color: #fff; background: var(--accent); }
.chart { margin-top: 14px; }
.chart svg { display: block; width: 100%; height: clamp(125px, 14vw, 222px); overflow: visible; }
.chart svg text { fill: var(--muted); font-size: 12px; }
.chart-grid { stroke: #dfddeb; stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart-series { stroke: #535fa4; stroke-width: 2.2; fill: none; vector-effect: non-scaling-stroke; }
.chart-area { fill: #e7e9fb; }
.chart-selected { stroke: #6876bb; stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart-note { margin-top: 5px; font-size: .75rem; color: var(--muted); }
.chart-empty { display: grid; place-items: center; text-align: center; background: #f1eff9; min-height: 139px; padding: 13px; border-radius: 8px; color: var(--muted); font-size: .9rem; }
.table-wrap { overflow-x: auto; margin-top: 10px; border-radius: 7px; }
table { width: 100%; border-collapse: collapse; text-align: left; font-variant-numeric: tabular-nums; font-size: .86rem; }
th, td { padding: 7px 9px; white-space: nowrap; }
th { font-size: .74rem; background: #efedf7; color: #505978; font-weight: 700; }
td { border-bottom: 1px solid #ece8e1; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr.is-selected td { background: #e4e7f9; }
tbody tr:hover td { background: #efeff9; }
.trade-select { text-align: left; background: none; border: 0; padding: 1px 0; font-weight: 750; color: var(--indigo); }
.trade-select:hover { color: #5668a8; }
.trade-kind { font-weight: 680; }
.trade-kind.sell { color: var(--sell); }
.trade-kind.buy { color: var(--buy); }
.table-empty { padding: 10px 0 0; color: var(--muted); }
.plain { background: none; border: 0; color: var(--indigo); font-size: .83rem; font-weight: 700; padding: 4px; }
.plain:hover { background: var(--lilac); border-radius: 5px; }
.inspector { position: sticky; top: 12px; min-width: 0; border: 1px solid #bec8eb; border-radius: 13px; background: #dce0f7; padding: clamp(16px, 2vw, 24px); }
.inspector-head { padding-bottom: 13px; border-bottom: 1px solid #bcc6eb; }
.inspector-head h2 { font-size: clamp(1.45rem, 2.3vw, 2.16rem); letter-spacing: -.055em; line-height: 1.08; margin-top: 3px; }
.inspector-context { color: #47527a; font-size: .82rem; margin-top: 5px; overflow-wrap: anywhere; }
.evidence-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 10px; font-size: .8rem; font-weight: 620; margin: 13px 0 11px; }
.evidence-meta .chip { background: #f6f6ff; }
.role-list { display: grid; gap: 6px; margin: 0; }
.role-row { display: grid; grid-template-columns: 1fr auto; gap: 5px 8px; padding: 8px 10px; border: 1px solid #c3cbea; background: #f8f7ff; border-radius: 8px; }
.role-row dt { color: #4c5780; font-size: .76rem; font-weight: 680; }
.role-row dd { font-size: .83rem; font-weight: 720; text-align: right; overflow-wrap: anywhere; }
.role-row a:hover { color: #5265ac; }
.evidence-hash { overflow-wrap: anywhere; margin-top: 10px; font: .69rem/1.4 ui-monospace, monospace; color: #49567e; }
.evidence-note { color: #46517a; font-size: .8rem; margin-top: 10px; }
.evidence-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.evidence-actions .primary { flex: 1; }
.transfer-list { margin-top: 12px; border-top: 1px solid #bdc6e8; padding-top: 8px; }
.transfer-list summary { cursor: pointer; font-size: .84rem; font-weight: 720; list-style: none; padding: 3px 0; }
.transfer-list summary::-webkit-details-marker { display: none; }
.transfer-list ul { padding: 0; margin: 7px 0 0; list-style: none; }
.transfer-list li { padding: 6px 0; border-top: 1px solid #c9d1ec; font-size: .78rem; }
.transfer-list li span { display: block; color: #4e5981; }
.evidence-message { margin-top: 13px; color: #3d4874; font-size: .93rem; }
.terminal-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 7px; padding: 17px 0 23px; color: var(--muted); font-size: .8rem; }
.terminal-footer p { color: var(--indigo); font-weight: 730; }
.terminal-footer span { margin-left: 8px; color: var(--muted); font-weight: 500; }
.terminal-footer a { font-weight: 670; }
.terminal-footer a:hover { color: var(--indigo); }
dialog { width: min(720px, calc(100% - 26px)); max-height: 86vh; padding: 0; border: 1px solid #c9c9e2; border-radius: 13px; background: var(--surface); color: var(--ink); box-shadow: 0 24px 70px #2229463a; }
dialog::backdrop { background: #2831507d; }
.dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 16px 19px; border-bottom: 1px solid var(--line); }
.dialog-head h2 { font-size: 1.55rem; letter-spacing: -.04em; }
.dialog-body { padding: 14px 19px 18px; }
.dialog-body p { color: var(--muted); margin-bottom: 9px; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 10px; }
.dialog-body .lookup { margin-bottom: 11px; }
.market-list { display: grid; gap: 6px; }
.market-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 7px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); align-items: center; padding: 8px 11px; }
.market-row strong { display: block; font-size: .95rem; }
.market-row small { color: var(--muted); overflow-wrap: anywhere; }
.market-row button { min-width: 74px; }
.docs { max-width: 1000px; padding-block: 39px; }
.docs h1 { font-size: clamp(2.25rem, 5vw, 4rem); letter-spacing: -.06em; line-height: 1; margin: 9px 0 12px; }
.docs p { color: var(--muted); max-width: 70ch; }
.docs .button { margin-top: 15px; }
.docs section { margin-top: 29px; }
.docs section h2 { letter-spacing: -.035em; font-size: 1.55rem; margin-bottom: 10px; }
.docs-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.docs article { padding: 13px; }
.docs article h3 { margin-bottom: 4px; font-size: .98rem; }
.docs article a { color: var(--indigo); font-weight: 700; }
@media (max-width: 1040px) {
  .shell { width: calc(100% - 38px); }
  .topbar { gap: 12px; }
  .app-nav, .site-nav { gap: 1px; }
  .site-nav a, .nav-control { padding-inline: 7px; }
  .terminal-grid { grid-template-columns: minmax(0, 1.6fr) minmax(270px, 1fr); gap: 11px; }
}
@media (max-width: 800px) {
  .topbar { grid-template-columns: auto 1fr auto; gap: 8px; padding-block: 9px; }
  .lookup { grid-column: 1 / -1; grid-row: 2; }
  .app-nav { justify-content: center; }
  .brand { font-size: 23px; }
  .brand img { width: 30px; height: 30px; }
  .asset-head { align-items: start; }
  .terminal-grid { grid-template-columns: minmax(0,1fr); }
  .inspector { position: static; }
  .chart svg { height: 158px; }
}
@media (max-width: 520px) {
  .shell { width: calc(100% - 24px); }
  .topbar { grid-template-columns: auto 1fr; }
  .site-nav { justify-content: flex-end; }
  .app-nav { grid-row: 2; grid-column: 1 / -1; justify-content: flex-start; gap: 6px; }
  .lookup { grid-row: 3; }
  .terminal { padding-top: 16px; }
  .asset-head { flex-direction: column; gap: 9px; }
  .quote-band { grid-template-columns: repeat(2,minmax(0,1fr)); row-gap: 8px; }
  .quote-band > div:nth-child(3) { border-left: 0; }
  .activity, .transactions { padding-inline: 11px; }
  .docs-grid { grid-template-columns: minmax(0,1fr); }
}

/* Token lifecycle and the selected evidence share the same indigo accent. */
.terminal { padding-top: 19px; }
.asset-head { margin-bottom: 15px; }
.title-row h1 { font-size: clamp(2.2rem, 4vw, 3.25rem); }
.asset-address { margin-top: 3px; font: .75rem/1.35 ui-monospace, monospace; color: #4f5774; }
.asset-address a { font-weight: 650; }
.journey-strip { display: grid; grid-template-columns: minmax(142px, .62fr) minmax(0, 3fr); align-items: stretch; gap: 8px; padding: 6px; margin-bottom: 12px; border-radius: 12px; border: 1px solid #c7cce8; background: #e7e9f8; }
.journey-label { display: flex; flex-direction: column; justify-content: center; padding: 6px 9px; }
.journey-label h2 { font-size: .91rem; letter-spacing: -.025em; font-weight: 780; }
.journey-label p { font-size: .7rem; color: #535c83; margin-top: 1px; overflow-wrap: anywhere; }
.journey-stages { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 6px; }
.journey-stage { display: grid; align-content: center; gap: 1px; text-align: left; padding: 6px 11px; border: 1px solid #d6d9ed; border-radius: 8px; background: #faf9ff; min-height: 47px; min-width: 0; }
.journey-stage:hover { background: #eef0fd; }
.journey-stage strong { font-size: .83rem; font-weight: 760; }
.journey-stage span { font-size: .73rem; color: #525d80; overflow-wrap: anywhere; }
.journey-stage[aria-current="step"] { background: #53619a; border-color: #53619a; color: #fff; }
.journey-stage[aria-current="step"] span { color: #f0f1ff; }
.activity, .transactions { padding-top: 12px; }
.chart { margin-top: 9px; }
.curve-plot { position: relative; margin: 0 8px 0 0; height: clamp(104px, 11vw, 165px); }
.curve-plot svg { height: 100%; }
.curve-point { display: grid; place-items: center; position: absolute; transform: translate(-50%, -50%); width: 26px; height: 26px; border: 0; background: transparent; border-radius: 50%; padding: 0; }
.curve-point::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); }
.curve-point[aria-pressed="true"]::after { width: 12px; height: 12px; background: #4a5691; border-color: #fff; box-shadow: 0 0 0 1px #4a5691; }
.curve-axis { display: flex; justify-content: space-between; font-size: .72rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.evidence-summary { font-size: 1.02rem; line-height: 1.34; color: #2f3968; margin: 13px 0 10px; font-weight: 700; }
.inspector-head { padding-bottom: 9px; }
.evidence-meta { margin-block: 9px; }
.stage-proof { display: grid; gap: 7px; }
.stage-proof p { color: #46517a; font-size: .87rem; }
.stage-proof .evidence-actions { margin-top: 6px; }
.terminal-footer { padding-top: 13px; }
@media (max-width: 680px) {
  .journey-strip { grid-template-columns: 1fr; gap: 4px; }
  .journey-label { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 8px; padding: 3px 5px; }
  .journey-stage { padding: 6px; }
  .journey-stage span { font-size: .68rem; }
  .curve-plot { height: 135px; }
}
