@font-face {
  font-family: "DM Sans";
  src: url("/fonts/DM-Sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
}
@font-face {
  font-family: "DM Serif Text";
  src: url("/fonts/DM-Serif-Text.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
:root {
  color-scheme: light;
  --canvas: #f6f3ef;
  --panel: #fffdf9;
  --panel-low: #f2eee8;
  --line: #cfc6c9;
  --line-subtle: #e0d9d8;
  --text: #271c29;
  --muted: #57505a;
  --quiet: #655c67;
  --accent: #663d78;
  --green: #286245;
  --amber: #79551a;
  --red: #922d42;
  --plum: #352038;
  --violet-sheet: #e4d8f0;
  --serif: "DM Serif Text", Georgia, serif;
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font: 15px var(--sans);
  color: var(--text);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 280px; }
h1, h2, h3, p, ul, dl, dd { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; border-radius: 6px; }
button, select { cursor: pointer; }
button { transition: background-color .15s, border-color .15s; }
button:disabled, select:disabled { cursor: default; }
[hidden] { display: none !important; }
:where(a, button, input, select, [tabindex]):focus-visible { outline: 3px solid #74429b; outline-offset: 2px; }
section[id] { scroll-margin-top: 20px; }
.sr-only, .skip:not(:focus) { position: absolute; overflow: hidden; width: 1px; height: 1px; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 9; top: 8px; left: 8px; border-radius: 5px; padding: 10px 14px; background: var(--plum); color: white; }
.icon-bank { position: absolute; top: 0; left: 0; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.stroke-icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.shell { width: min(90%, 1260px); margin-inline: auto; }

.topbar { border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; align-items: center; gap: clamp(14px, 3.6vw, 62px); min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--plum); font: 400 23px/1 var(--serif); letter-spacing: -.035em; white-space: nowrap; }
.brand-icon { display: block; flex: none; width: 40px; height: 40px; border-radius: 11px; }
.primary-nav { display: flex; gap: clamp(17px, 2vw, 34px); margin-inline: auto; min-height: 68px; }
.primary-nav a { position: relative; display: inline-flex; align-items: center; color: var(--muted); font-size: 14px; font-weight: 610; }
.primary-nav a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
.primary-nav a[aria-current="location"] { color: var(--plum); }
.primary-nav a[aria-current="location"]::after {
  content: ""; position: absolute; bottom: 10px; left: 0; right: 0; height: 2px; border-radius: 2px; background: var(--plum);
}
.nav-status { display: inline-flex; align-items: center; gap: 8px; color: #473849; font-size: 12px; line-height: 1.3; font-weight: 580; }
.status-light, .badge::before { display: inline-block; width: 6px; height: 6px; flex: none; border-radius: 50%; background: currentColor; }
.status-light { color: var(--quiet); }
.nav-status:has([data-state="live"]) .status-light { color: var(--green); box-shadow: 0 0 0 3px #28624518; }
.nav-status:has([data-state="stale"], [data-state="warming"]) .status-light { color: var(--amber); }
.nav-status:has([data-state="unavailable"]) .status-light { color: var(--red); }
.wallet-connect, .bridge-primary { min-height: 44px; padding: 9px 20px; border: 0; border-radius: 8px; background: var(--plum); color: white; font-size: 14px; font-weight: 650; }
.wallet-connect { flex: none; }
.wallet-connect:hover:enabled, .bridge-primary:hover:enabled { background: #583559; }
.wallet-connect:disabled, .bridge-primary:disabled { background: #d4c5d6; color: #594a5d; }

.court {
  display: grid;
  grid-template-columns: minmax(0, .96fr) minmax(0, 1fr);
  grid-template-areas: "notice notice" "deployment bridge" "overview bridge";
  column-gap: clamp(30px, 6vw, 96px);
  padding: clamp(27px, 3vw, 56px) 0 clamp(33px, 4vw, 65px);
}
#notice { grid-area: notice; margin-bottom: 16px; padding: 12px 16px; border: 1px solid #c3a257; border-radius: 8px; color: #60430d; background: #fff0cc; font-size: 13px; line-height: 1.5; }
.context-line { grid-area: deployment; align-self: end; display: flex; align-items: center; gap: 9px; color: #64456d; font: 650 11px/1.5 var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.context-rule { width: 28px; height: 2px; flex: none; background: #795885; }
#overview { grid-area: overview; align-self: start; min-width: 0; }
#overview-heading { margin: 17px 0 18px; color: var(--plum); font: 400 clamp(56px, 5.4vw, 88px)/.93 var(--serif); letter-spacing: -.062em; }
#overview-heading span { display: block; padding-left: .43em; }
.intro { max-width: 37ch; font-size: clamp(15px, 1.15vw, 18px); line-height: 1.5; color: var(--muted); }
.metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 24px; border-top: 1px solid #bbaeae; }
.metric { display: flex; flex-direction: column; padding-block: 12px; border-bottom: 1px solid #d6cccd; }
.metric:nth-child(odd) { margin-right: 18px; }
.metric-top { display: flex; align-items: center; gap: 6px; }
.metric-top h2 { color: #4f4450; font-size: 12.5px; font-weight: 580; line-height: 1.3; }
.metric-top svg { order: -1; width: 14px; height: 14px; color: #756177; }
.metric-value { display: block; margin: 4px 0; color: var(--plum); font: 400 clamp(27px, 2.6vw, 37px)/1.05 var(--serif); letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.metric-value[data-state="live"] { color: var(--green); }
.metric-value:is([data-state="stale"], [data-state="warming"]) { color: var(--amber); }
.metric-value:is([data-state="unavailable"], [data-state="error"]) { color: var(--red); }
.metric-detail { margin-top: auto; color: var(--quiet); font-size: 11px; line-height: 1.45; }
.sync-controls { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.sync-time { color: var(--quiet); font-size: 12px; line-height: 1.4; font-variant-numeric: tabular-nums; }
.refresh { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 34px; padding: 6px 10px; background: transparent; color: var(--plum); border: 1px solid #b6aab5; font-size: 12px; font-weight: 570; }
.refresh svg { width: 15px; height: 15px; }
.refresh:hover:enabled { background: #f0e6f1; border-color: #8c748e; }
.refresh:disabled { color: var(--quiet); }
.refresh:disabled svg { animation: rotate 1.4s linear infinite; }
@keyframes rotate { to { transform: rotate(360deg); } }

.panel { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: var(--panel); }
.bridge-panel { grid-area: bridge; align-self: center; background: var(--violet-sheet); border: 1px solid #c5b3cc; border-radius: 22px; overflow: visible; box-shadow: 0 5px 0 #d1c4d3; }
.bridge-main { padding: 22px clamp(16px, 2.4vw, 36px) 0; }
#bridge-title { margin: 0 0 13px; color: var(--plum); font: 400 clamp(29px, 2.5vw, 40px)/1.1 var(--serif); letter-spacing: -.04em; }
.bridge-panel fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.bridge-panel label, .bridge-quote h3 { color: #422f48; font: 650 12.5px/1.4 var(--sans); }
.bridge-pair, .bridge-amount-row { display: grid; align-items: end; gap: 12px; }
.bridge-pair { grid-template-columns: minmax(0, 1fr) 17px minmax(0, 1fr); gap: 10px; }
.bridge-amount-row { grid-template-columns: minmax(0, 1fr) minmax(13.5rem, .85fr); margin: 12px 0 10px; }
.bridge-arrow { color: #65456f; line-height: 42px; }
.bridge-panel input, .bridge-panel select { display: block; width: 100%; min-width: 0; height: 42px; margin-top: 4px; padding: 9px 12px; border: 1px solid #ab98b2; border-radius: 7px; background-color: #fffdfb; color: var(--plum); font-size: 15px; }
.bridge-panel select { font-weight: 600; }
.network-select { position: relative; display: block; margin-top: 4px; }
.bridge-panel .network-select select { margin-top: 0; }
.network-mark {
  position: absolute; top: 50%; left: 10px; transform: translateY(-50%); pointer-events: none;
  width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: #0a0a0a;
}
.network-mark[data-network="ethereum"] { background: #eeecf7; }
.network-mark:not([hidden]) + select { padding-inline-start: 40px; }
@media (max-width: 370px) {
  .bridge-amount-row { grid-template-columns: minmax(0, 1fr); }
  .network-mark { left: 6px; width: 18px; height: 18px; padding: 2px; }
  .network-mark:not([hidden]) + select { padding-inline-start: 29px; }
}
.bridge-panel input::placeholder { color: #786c7c; }
.bridge-panel input:disabled, .bridge-panel select:disabled { cursor: default; opacity: .8; }
#bridge-amount { font: 560 18px/1.1 var(--sans); }
#bridge-recipient { font: 14px var(--mono); }
.bridge-recipient-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.bridge-text-button { min-height: 24px; padding: 2px 0; border: 0; background: transparent; color: #55325f; font-size: 12px; font-weight: 550; text-decoration: underline; text-underline-offset: 2px; }
.bridge-quote { display: grid; grid-template-columns: max-content minmax(0, 1fr); align-items: center; column-gap: 10px; padding: 15px clamp(16px, 2.4vw, 36px) 20px; }
.bridge-output { color: #322136; font: 620 clamp(20px, 1.9vw, 28px)/1.1 var(--sans); letter-spacing: -.045em; text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.quote-asset { color: #563b5e; font-size: .68em; letter-spacing: -.02em; }
.bridge-v6-preview { grid-column: 1/-1; display: grid; grid-template-columns: max-content minmax(0, 1fr); align-items: baseline; gap: 5px 10px; margin-bottom: 12px; padding: 11px 12px; border: 1px solid #c5b3cc; border-radius: 9px; background: #fffafc; }
.bridge-v6-preview[hidden] { display: none; }
.preview-fee { color: #57455f; font-size: 12px; }
#bridge-v6-fee { text-align: right; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.bridge-costs { display: grid; grid-column: 1/-1; gap: 4px; margin: 10px 0 13px; padding: 10px 0 0; border-top: 1px solid #bdabc5; color: #3d3043; font-size: 12px; }
.bridge-costs > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.bridge-costs dt { color: #57455f; }
.bridge-costs dd { text-align: right; overflow-wrap: anywhere; font-weight: 540; }
.bridge-fee-value { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: flex-end; column-gap: .45rem; font-variant-numeric: tabular-nums; }
.bridge-fee-value small { color: #604f67; font-size: .95em; font-weight: 450; }
.bridge-fee-value small::before { content: '·'; margin-inline-end: .45rem; }
.bridge-primary, .bridge-status { grid-column: 1/-1; }
.bridge-primary { width: 100%; min-height: 45px; font-size: 15px; }
.bridge-status { color: #534259; font-size: 12px; line-height: 1.55; overflow-wrap: anywhere; }
.bridge-status:not(:empty) { margin-top: 9px; }
.bridge-status[data-error="true"] { color: var(--red); }
.bridge-receipt { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 15px; padding: 12px 22px; border-top: 1px solid #b8a5bc; font-size: 13px; }
.bridge-receipt strong { color: var(--green); }
.bridge-receipt code { overflow-wrap: anywhere; font-size: 12px; }
.bridge-receipt a { margin-left: auto; color: var(--accent); text-decoration: underline; }

.monitor-grid { display: grid; grid-template-columns: minmax(0, 1.95fr) minmax(260px, .86fr); gap: 16px; margin-bottom: 16px; }
.panel-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding: 21px 22px 18px; }
.panel-heading h2, .dialog-heading h2 { color: var(--plum); font: 400 clamp(23px, 2vw, 31px)/1.15 var(--serif); letter-spacing: -.035em; }
.panel-heading p { margin-top: 4px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.section-count { display: inline-block; flex: none; padding: 4px 7px; border: 1px solid var(--line); border-radius: 4px; color: var(--quiet); font-size: 11px; line-height: 1.2; white-space: nowrap; }
.section-count:empty { display: none; }
.table-scroll { overflow-x: auto; scrollbar-color: #a699a7 transparent; scrollbar-width: thin; }
.table-scroll:focus-visible { outline-offset: -2px; }
.data-table { border-collapse: collapse; width: 100%; text-align: left; font-size: 13px; line-height: 1.42; }
.data-table th { font-size: 10px; font-weight: 550; text-transform: uppercase; letter-spacing: .85px; color: var(--quiet); background: var(--panel-low); white-space: nowrap; }
.data-table th, .data-table td { padding: 11px 11px; }
.data-table th:first-child, .data-table td:first-child { padding-left: 22px; }
.data-table th:last-child, .data-table td:last-child { padding-right: 22px; }
.data-table thead { border-block: 1px solid var(--line-subtle); }
.data-table tbody tr + tr { border-top: 1px solid var(--line-subtle); }
.data-table tbody tr { height: 48px; }
.data-table tbody tr:hover { background: #f4edf3; }
.data-table th.numeric, .data-table td.numeric, .numeric { text-align: right; font-variant-numeric: tabular-nums; }
.data-table td.numeric { font-family: var(--mono); font-size: 12px; }
.reserve-table { min-width: 510px; }
.reserve-table td:last-child { white-space: nowrap; }
.history-table { min-width: 665px; }
.row-label { display: block; color: var(--text); font-weight: 570; }
.row-sub { display: block; margin-top: 2px; color: var(--quiet); font-size: 12px; line-height: 1.5; font-weight: 420; }
.row-value { display: block; font: 530 12px/1.4 var(--mono); color: var(--text); font-variant-numeric: tabular-nums; }
.route-pair { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.route-arrow { color: #766778; }
.asset-cell { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; }
.asset-icon, .chain-icon { flex: none; display: inline-grid; place-items: center; background: #e8e1ea; color: var(--accent); width: 28px; height: 28px; border-radius: 8px; font-size: 12px; font-weight: 650; }
.asset-icon svg, .chain-icon svg { width: 19px; height: 19px; }
.asset-icon.midnight, .asset-icon.mnight, .chain-icon.midnight { background: #0a0a0a; }
.asset-icon.eth, .asset-icon.ethereum, .chain-icon.ethereum { background: #f1eff5; color: #454a75; }
.asset-icon.sol, .asset-icon.solana, .chain-icon.solana { background: #17151a; color: #95d9c1; }
.badge { display: inline-flex; align-items: center; gap: 6px; width: fit-content; padding: 3px 8px; border-radius: 4px; background: var(--line-subtle); color: #594b60; font-size: 11px; font-weight: 570; line-height: 1.45; white-space: nowrap; }
.badge::before { content: ""; width: 5px; height: 5px; }
.badge.good { background: #deeddf; color: var(--green); }
.badge.pending { background: #f7e9c9; color: var(--amber); }
.badge.bad { background: #f8dce3; color: var(--red); }
.badge.neutral { color: #504657; }
.network-list { margin: 0; padding: 0 21px; list-style: none; }
.network-row { display: flex; align-items: center; gap: 10px; padding: 14px 0; border-top: 1px solid var(--line-subtle); }
.chain-icon { width: 34px; height: 34px; border-radius: 9px; }
.chain-icon svg { width: 21px; height: 21px; }
.network-name { min-width: 0; font-size: 13px; }
.network-head { min-width: 0; margin-left: auto; text-align: right; }
.network-head .row-sub { font-family: var(--mono); font-size: 10px; overflow-wrap: anywhere; }
.network-head .reference-button { width: 100%; text-align: inherit; }
.chain-panel { padding-bottom: 4px; }
.empty-state, .data-table tbody td.empty-state, .data-table tbody td.empty-cell { padding: 24px; color: var(--quiet); text-align: center; font-size: 13px; }
.assets-panel { margin-top: 16px; }
.asset-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border-top: 1px solid var(--line-subtle); }
.asset-grid > .empty-state { grid-column: 1/-1; }
.asset-summary { padding: 15px 21px 18px; min-width: 0; }
.asset-summary + .asset-summary { border-left: 1px solid var(--line-subtle); }
/* With the ADA lane there are four assets: one row on wide screens, two rows of two below that. */
@media (min-width: 1081px) {
  .asset-grid:has(> .asset-summary:nth-child(4)) { grid-template-columns: repeat(4,minmax(0,1fr)); }
}
@media (min-width: 611px) and (max-width: 1080px) {
  .asset-grid:has(> .asset-summary:nth-child(4)) { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .asset-grid:has(> .asset-summary:nth-child(4)) > .asset-summary:nth-child(3) { border-left: 0; }
  .asset-grid:has(> .asset-summary:nth-child(4)) > .asset-summary:nth-child(n+3) { border-top: 1px solid var(--line-subtle); }
}
.asset-summary-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 12px; }
.asset-summary-head .asset-icon { width: 26px; height: 26px; }
.asset-summary-head .asset-cell { font-size: 13px; }
.asset-facts { display: grid; gap: 6px; }
.asset-facts > div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 13px; line-height: 1.45; }
.asset-facts dt { color: var(--quiet); }
.asset-facts dd { text-align: right; font-family: var(--mono); font-size: 12px; overflow-wrap: anywhere; }
.asset-facts > div:first-child dd { color: #493250; }

.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 0 22px 17px; }
.search-label { position: relative; display: flex; align-items: center; min-width: 0; flex: 0 1 260px; }
.search-label svg { position: absolute; left: 10px; width: 15px; height: 15px; color: #6a606c; pointer-events: none; }
.search-label input, .filter-group select { height: 38px; font-size: 12px; color: var(--text); border: 1px solid #baadb9; background-color: #fffdf9; }
.search-label input { width: 100%; min-width: 0; padding: 0 11px 0 33px; }
.search-label input::placeholder { color: #716477; opacity: 1; }
.filter-group { display: flex; align-items: center; gap: 7px; }
.filter-group label { position: relative; }
.filter-group label::after { content: ""; position: absolute; top: calc(50% - 4px); right: 11px; width: 6px; height: 6px; border: solid #766778; border-width: 0 1px 1px 0; transform: rotate(45deg); pointer-events: none; }
.filter-group select { appearance: none; padding: 0 28px 0 10px; }
.filter-group select:hover, .search-label input:hover { border-color: #7e6781; }
.reference-button { border: 0; padding: 3px 0; background: transparent; color: var(--accent); font-family: var(--mono); font-size: 11px; text-align: left; overflow-wrap: anywhere; }
.reference-button:hover { color: #4c2b59; text-decoration: underline; text-underline-offset: 3px; }
.reference-button code { font: inherit; }
.history-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 22px; border-top: 1px solid var(--line-subtle); color: var(--quiet); font-size: 12px; }
.pagination { display: flex; gap: 5px; }
.pagination button, .dialog-close { display: inline-grid; place-items: center; padding: 0; width: 34px; height: 34px; border: 1px solid #beafbd; background: #fffdf9; }
.pagination button:disabled { opacity: .4; }
.pagination button:hover:not(:disabled), .dialog-close:hover { border-color: #7f6a84; background: #eee5ee; }
.pagination svg { width: 14px; height: 14px; }
.footer { display: flex; align-items: center; gap: 6px; padding: 23px 0 28px; color: var(--quiet); font-size: 12px; }
.footer img { flex: none; display: block; width: 27px; height: 27px; border-radius: 6px; }
.footer-source { margin-left: auto; }

.transfer-dialog { width: min(580px, calc(100% - 32px)); max-height: calc(100dvh - 44px); padding: 0; color: var(--text); background: var(--panel); border: 1px solid #a995a8; border-radius: 15px; box-shadow: 0 24px 88px #0009; }
.transfer-dialog::backdrop { background: #231526aa; backdrop-filter: blur(4px); }
.dialog-heading { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 21px 23px; border-bottom: 1px solid var(--line); background: var(--violet-sheet); }
.dialog-close { flex: none; width: 39px; height: 39px; font-size: 23px; }
.dialog-close svg { width: 16px; height: 16px; }
.detail-list { padding: 4px 23px 16px; }
.detail-list > div { display: grid; grid-template-columns: minmax(105px,.65fr) minmax(0,1.5fr); gap: 13px; padding: 11px 0; font-size: 12px; line-height: 1.55; }
.detail-list > div + div { border-top: 1px solid var(--line-subtle); }
.detail-list dt { color: var(--quiet); }
.detail-list dd { overflow-wrap: anywhere; font-family: var(--mono); font-size: 13px; }
body:has(dialog[open]) { overflow: hidden; }

.wallet-body, .bridge-review-foot { padding: 18px 23px 22px; }
.wallet-dialog { max-width: 425px; }
.wallet-body .refresh { margin-top: 12px; }
.wallet-choice { border-radius: 7px; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 8px; width: 100%; min-height: 44px; text-align: left; padding: 12px; background: #f6f0f8; border: 1px solid #bbadbd; }
.wallet-choice small { color: var(--muted); }
.wallet-choice:hover:enabled { border-color: var(--accent); }
.bridge-review-foot { border-top: 1px solid var(--line); }

@media (max-width: 1080px) {
  .monitor-grid { grid-template-columns: minmax(0, 1.75fr) minmax(235px, .85fr); gap: 12px; }
  .panel-heading, .network-list, .asset-summary { padding-inline: 16px; }
  .data-table th:first-child, .data-table td:first-child { padding-left: 16px; }
  .data-table th:last-child, .data-table td:last-child { padding-right: 16px; }
}
@media (max-width: 920px) {
  .shell { width: calc(100% - 42px); }
  .topbar-inner, .primary-nav { gap: 18px; }
  .court { column-gap: 25px; grid-template-columns: minmax(0, .79fr) minmax(0, 1.1fr); }
  .bridge-main { padding: 20px 17px 0; }
  .bridge-quote { padding: 14px 17px 18px; }
}
@media (max-width: 800px) {
  .monitor-grid { grid-template-columns: 1fr; }
  .chain-panel .network-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0; border-top: 1px solid var(--line-subtle); padding: 0; }
  .chain-panel .network-row { border-top: 0; display: grid; grid-template-columns: auto 1fr; column-gap: 8px; row-gap: 5px; padding: 12px; }
  .chain-panel .network-row + .network-row { border-left: 1px solid var(--line-subtle); }
  .chain-panel .network-head { grid-column: 2; margin-left: 0; text-align: left; }
  .chain-panel .chain-icon { width: 28px; height: 28px; }
  .chain-panel .chain-icon svg { width: 18px; height: 18px; }
  .asset-summary { padding-inline: 12px; }
  .asset-facts > div { gap: 5px; }
}
@media (max-width: 740px) {
  .shell { width: min(94%, 600px); }
  .topbar-inner { flex-wrap: wrap; gap: 2px 11px; padding-top: 9px; }
  .brand { gap: 7px; font-size: 21px; }
  .brand-icon { width: 31px; height: 31px; border-radius: 8px; }
  .wallet-connect { max-width: 125px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 8px 11px; min-height: 40px; font-size: 13px; }
  .nav-status { margin-left: auto; font-size: 11px; }
  .primary-nav { order: 3; width: 100%; min-height: 39px; gap: 0; justify-content: space-between; }
  .primary-nav a { min-height: 39px; padding-inline: 4px; font-size: 13px; }
  .primary-nav a[aria-current="location"]::after { bottom: 2px; }
  .court { grid-template-columns: minmax(0, 1fr); grid-template-areas: "notice" "deployment" "bridge" "overview"; gap: 0; padding: 15px 0 24px; }
  .context-line { margin: 0 0 8px; }
  #overview { margin-top: 27px; }
  #overview-heading { margin: 6px 0 7px; font-size: clamp(37px, 8vw, 52px); line-height: 1.04; }
  #overview-heading span { display: inline; padding: 0; }
  .intro { max-width: none; font-size: 14px; }
  .metrics { margin-top: 14px; }
  .metric { padding-block: 10px; }
  .metric-value { margin: 3px 0; }
  .bridge-panel { border-radius: 17px; }
  .bridge-main { padding: 17px 16px 0; }
  #bridge-title { margin-bottom: 11px; }
  .bridge-quote { padding: 13px 16px 17px; }
  .bridge-panel select, .bridge-panel input, #bridge-recipient { font-size: 16px; }
}
@media (max-width: 610px) {
  .monitor-grid { margin-bottom: 13px; gap: 13px; }
  .panel-heading { padding: 16px 14px 13px; gap: 10px; }
  .data-table { display: block; min-width: 0; }
  .data-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .data-table tbody { display: block; border-top: 1px solid var(--line-subtle); }
  .data-table tbody tr { display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1fr) auto; gap: 8px 10px; height: auto; padding: 11px 14px 13px; }
  .data-table tbody td, .data-table tbody td.numeric, .data-table tbody td:first-child, .data-table tbody td:last-child { padding: 0; border: 0; text-align: left; }
  .data-table tbody td:first-child { grid-column: 1; align-self: center; }
  .data-table tbody td:nth-child(2) { grid-column: 2 / 4; justify-self: end; align-self: center; font-size: 12px; }
  .data-table tbody td:nth-child(3), .data-table tbody td:nth-child(4), .data-table tbody td:nth-child(5) { align-self: start; }
  .data-table tbody td:nth-child(5) { justify-self: end; }
  .data-table tbody td:nth-child(n+3)::before { display: block; margin-bottom: 3px; color: var(--quiet); font: 500 9px/1.4 var(--sans); text-transform: uppercase; letter-spacing: .5px; }
  .reserve-table td:nth-child(3)::before { content: "Backing"; }
  .reserve-table td:nth-child(4)::before { content: "Obligations"; }
  .reserve-table td:nth-child(5)::before { content: "Coverage"; }
  .history-table td:nth-child(3)::before { content: "Amount"; }
  .history-table td:nth-child(4)::before { content: "Source"; }
  .history-table td:nth-child(5)::before { content: "Status"; }
  .data-table .asset-cell { gap: 6px; }
  .data-table .asset-icon { width: 23px; height: 23px; }
  .data-table .asset-icon svg { width: 16px; height: 16px; }
  .data-table .row-sub { font-size: 10px; }
  .history-table .reference-button { font-size: 10px; }
  .data-table tbody td[colspan] { grid-column: 1 / -1; justify-self: center; padding: 8px 0; }
  .chain-panel .network-list { display: block; padding: 0 14px; border: 0; }
  .chain-panel .network-row { display: flex; gap: 8px; padding: 10px 0; border-top: 1px solid var(--line-subtle); }
  .chain-panel .network-row + .network-row { border-left: 0; }
  .chain-panel .network-head { text-align: right; margin-left: auto; }
  .chain-panel .chain-icon { width: 32px; height: 32px; }
  .assets-panel { margin-top: 13px; }
  .asset-grid { grid-template-columns: 1fr; }
  .asset-summary { padding: 13px 14px; }
  .asset-summary + .asset-summary { border-left: 0; border-top: 1px solid var(--line-subtle); }
  .asset-summary-head { margin-bottom: 8px; }
  .asset-facts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px 18px; }
  .asset-facts > div { display: block; }
  .asset-facts dd { margin-top: 1px; text-align: left; }
  .toolbar { flex-wrap: wrap; gap: 8px; padding: 0 14px 14px; }
  .search-label { flex-basis: 100%; }
  .filter-group { width: 100%; gap: 5px; }
  .filter-group label { flex: 1; min-width: 0; }
  .filter-group select { width: 100%; text-overflow: ellipsis; }
  .history-foot { padding-inline: 14px; }
  .detail-list { padding-inline: 16px; }
  .dialog-heading { padding: 15px 16px; }
}
@media (max-width: 420px) {
  .nav-status { gap: 5px; }
  .brand { font-size: 18px; }
  .brand-icon { width: 29px; height: 29px; }
  .topbar-inner { column-gap: 7px; }
  .wallet-connect { padding-inline: 9px; font-size: 12px; }
}
@media (max-width: 370px) {
  .brand { gap: 5px; font-size: 16px; }
  .wallet-connect { max-width: 103px; }
  .nav-status { font-size: 10px; }
  .bridge-pair { gap: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

.contract-panel { margin-top: 20px; scroll-margin-top: 80px; }
.contract-networks { padding: 0 20px 6px; }
.contract-networks details { border-top: 1px solid var(--line-subtle); }
.contract-networks summary { cursor: pointer; padding: 12px 0; font-weight: 600; }
.contract-networks h3 { padding-top: 4px; color: var(--plum); font: 650 12.5px/1.4 var(--sans); }
.contract-networks dl { margin: 0 0 12px; }
.contract-networks dl > div { display: grid; grid-template-columns: minmax(11rem, 1fr) minmax(0, 2fr); align-items: baseline; gap: .8rem; padding: .35rem 0; }
.contract-networks dt { color: var(--muted); }
.contract-networks dd { margin: 0; overflow-wrap: anywhere; }
.contract-networks code { font: .82rem/1.5 ui-monospace, monospace; user-select: all; }
.contract-networks a { color: var(--accent); text-underline-offset: .18em; }
@media (max-width: 610px) {
  .contract-networks { padding: 0 14px 4px; }
  .contract-networks dl > div { grid-template-columns: minmax(0, 1fr); gap: .12rem; }
}
