:root {
  --paper: #f8f7f4;
  --surface: #ffffff;
  --ink: #151515;
  --muted: #74716d;
  --line: #dedbd5;
  --line-dark: #c5c1ba;
  --pink: #111111;
  --pink-soft: #ecebe8;
  --dark: #171717;
  --mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 78% 32%, rgba(0, 0, 0, 0.035), transparent 25%),
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--pink); color: white; }

.shell {
  position: relative;
  width: min(1520px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 clamp(20px, 3vw, 46px);
  display: flex;
  flex-direction: column;
}

.topbar {
  height: 88px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 10;
}

.topbar::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 52px;
  height: 1px;
  background: var(--pink);
}

.brand { display: inline-flex; align-items: center; gap: 11px; width: max-content; }
.brand-logo {
  width: 34px;
  height: 34px;
  display: block;
  border-radius: 9px;
  object-fit: cover;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.brand:hover .brand-logo { transform: translateY(-1px); box-shadow: 0 9px 22px rgba(0, 0, 0, 0.12); }
.brand-name { font-weight: 600; font-size: 14px; letter-spacing: -0.02em; }

.primary-nav { display: flex; align-items: center; gap: 6px; }
.primary-nav a {
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  transition: 160ms ease;
}
.primary-nav a:hover { color: var(--ink); }
.primary-nav a.active { background: #ebe9e5; color: var(--ink); }

.wallet-button,
.launch-link {
  justify-self: end;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  transition: background 160ms ease, border-color 160ms ease;
}
.wallet-button:hover, .launch-link:hover { background: var(--surface); border-color: #aaa59d; }
.wallet-button.connected .status-dot { background: #20a868; box-shadow: 0 0 0 3px #daf4e7; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--line-dark); }
.launch-link span { font-size: 14px; }

.operate-layout {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(480px, 650px) minmax(400px, 440px);
  justify-content: center;
  gap: clamp(52px, 6vw, 96px);
  align-items: center;
  padding: clamp(48px, 7vh, 84px) 0 56px;
}

.operate-layout::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 88px 0 68px;
  pointer-events: none;
  opacity: 0.28;
  background-image: radial-gradient(var(--line-dark) 0.6px, transparent 0.6px);
  background-size: 18px 18px;
  mask-image: linear-gradient(90deg, rgba(0,0,0,.45), transparent 42%, transparent 100%);
}

.intro { min-width: 0; max-width: 680px; }
.eyebrow {
  margin: 0 0 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 4px rgba(0, 0, 0, .08); }

.intro h1 {
  margin: 0;
  max-width: 640px;
  font-size: clamp(62px, 6.2vw, 92px);
  line-height: 0.93;
  letter-spacing: -0.07em;
  font-weight: 500;
}
.intro h1 .title-line { color: var(--ink); white-space: nowrap; }
.intro h1 span { color: var(--pink); }
.intro-copy {
  max-width: 520px;
  margin: 30px 0 44px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: -0.01em;
}

.protocol-stats {
  margin: 0 0 40px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.protocol-stats div { padding: 18px 18px 18px 0; transition: background 160ms ease; }
.protocol-stats div:hover { background: rgba(255, 255, 255, .52); }
.protocol-stats div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.protocol-stats dt { margin-bottom: 10px; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; }
.protocol-stats dd { margin: 0; font-family: var(--mono); font-size: 16px; letter-spacing: -0.04em; }

.position-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); background: rgba(255,255,255,0.58); backdrop-filter: blur(8px); transition: border-color 180ms ease, background 180ms ease; }
.position-card:hover { border-color: var(--line-dark); background: rgba(255,255,255,.72); }
.section-heading { padding: 15px 17px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; }
.mono { font-family: var(--mono); }
.subdued { color: var(--muted); text-transform: none; letter-spacing: 0; }
.position-grid { display: grid; grid-template-columns: 1fr 1fr; }
.position-grid div { min-height: 76px; padding: 17px; display: flex; flex-direction: column; justify-content: space-between; }
.position-grid div:nth-child(odd) { border-right: 1px solid var(--line); }
.position-grid div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
.position-grid span { color: var(--muted); font-size: 10px; }
.position-grid strong { font-family: var(--mono); font-size: 13px; font-weight: 500; }

.trade-panel {
  position: relative;
  width: 100%;
  border: 1px solid #cbc7c0;
  border-radius: 22px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 24px 80px rgba(34, 27, 20, 0.09), 0 2px 8px rgba(34,27,20,.03);
  overflow: hidden;
  animation: panel-in 620ms cubic-bezier(.2,.75,.25,1) both;
}
.trade-panel::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: linear-gradient(90deg, var(--ink), #777 38%, transparent 84%); }
.trade-rail { height: 46px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); color: var(--muted); font-family: var(--mono); font-size: 9px; letter-spacing: .06em; }
.trade-rail span:first-child { display: flex; align-items: center; gap: 8px; }
.trade-rail i { width: 6px; height: 6px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 4px var(--pink-soft); }
.trade-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 6px; border-bottom: 1px solid var(--line); background: #f1f0ed; }
.trade-tab { height: 42px; border: 0; border-radius: 11px; background: transparent; color: var(--muted); cursor: pointer; font-size: 13px; font-weight: 500; }
.trade-tab.active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.trade-tab:not(.active):hover { color: var(--ink); }
.trade-body { padding: 24px; }
.field-label-row { display: flex; justify-content: space-between; margin-bottom: 10px; color: var(--muted); font-size: 11px; }
.balance-button { margin: -5px -7px -5px 0; padding: 5px 7px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; font-size: 11px; }
.balance-button:hover { background: var(--pink-soft); color: var(--ink); }
.amount-field { height: 92px; padding: 0 16px 0 18px; border: 1px solid var(--line); border-radius: 12px; background: #faf9f7; display: flex; align-items: center; gap: 14px; transition: border 150ms ease; }
.amount-field:focus-within { border-color: #9f9a92; background: white; box-shadow: 0 0 0 3px rgba(21,21,21,.035); }
.amount-field input, .amount-field output { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-family: var(--mono); font-size: 28px; letter-spacing: -0.05em; }
.amount-field input::placeholder { color: #bbb7b0; }
.asset-pill { flex: none; height: 40px; padding: 0 11px 0 6px; border: 1px solid var(--line); border-radius: 999px; background: white; display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; }
.asset-icon { width: 27px; height: 27px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; }
.eth-icon { background: #eceae6; color: #383632; }
.token-icon { background: url("assets/logo.svg") center / cover no-repeat; color: transparent; overflow: hidden; }
.swap-direction { width: 36px; height: 36px; margin: -10px auto; position: relative; z-index: 2; border: 4px solid white; border-radius: 50%; background: #eceae6; color: #5b5751; display: grid; place-items: center; cursor: pointer; transition: transform 180ms ease, background 180ms ease; }
.swap-direction:hover { background: #e1ded9; transform: rotate(180deg); }
.output-label { margin-top: 0; }
.output-field { background: white; }
.output-field output { color: #77736d; }
.trade-details { margin: 22px 0; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.trade-details div { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; }
.trade-details strong { color: var(--ink); font-family: var(--mono); font-weight: 400; }
.primary-action { width: 100%; height: 56px; padding: 0 20px; border: 0; border-radius: 12px; background: var(--dark); color: white; cursor: pointer; display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 500; transition: transform 140ms ease, background 140ms ease, box-shadow 140ms ease; }
.primary-action b { width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,.1); display: grid; place-items: center; font-size: 11px; font-weight: 400; transition: transform 160ms ease; }
.primary-action:hover { background: #2a2a2a; box-shadow: 0 9px 24px rgba(0,0,0,.13); }
.primary-action:hover b { transform: translate(2px, -2px); }
.primary-action:active { transform: scale(0.992); }
.primary-action:disabled { opacity: .62; cursor: not-allowed; box-shadow: none; transform: none; }
.primary-action:disabled b { transform: none; }
.primary-action.pending { background: var(--pink-soft); color: var(--ink); cursor: default; }
.primary-action.pending b { background: rgba(0,0,0,.07); }
.action-note { min-height: 16px; margin: 12px 0 0; color: var(--muted); text-align: center; font-size: 10px; line-height: 1.5; }

.footer { min-height: 68px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-family: var(--mono); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.toast { position: fixed; right: 24px; bottom: 24px; max-width: 360px; padding: 13px 16px; border-radius: 9px; background: var(--dark); color: white; font-size: 12px; opacity: 0; transform: translateY(8px); pointer-events: none; transition: 180ms ease; }
.toast.visible { opacity: 1; transform: translateY(0); }

@keyframes panel-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Docs */
.reading-progress { position: fixed; z-index: 50; inset: 0 0 auto; height: 2px; background: transparent; }
.reading-progress span { display: block; width: 0; height: 100%; background: var(--pink); transition: width 80ms linear; }
.docs-layout { flex: 1; display: grid; grid-template-columns: 230px minmax(0, 740px); gap: clamp(50px, 8vw, 120px); justify-content: center; padding: 76px 0 110px; }
.docs-aside { position: sticky; top: 48px; align-self: start; }
.docs-aside nav { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.docs-aside nav a { padding: 7px 0; color: var(--muted); font-size: 12px; transition: color 150ms ease; }
.docs-aside nav a:hover, .docs-aside nav a.active { color: var(--ink); }
.docs-aside nav a.active::before { content: "—"; margin-right: 8px; color: var(--pink); }
.docs-content { min-width: 0; }
.docs-hero { padding-bottom: 74px; animation: panel-in 520ms cubic-bezier(.2,.75,.25,1) both; }
.doc-index, .doc-section-number { font-family: var(--mono); color: var(--pink); font-size: 10px; letter-spacing: .07em; }
.docs-hero h1 { margin: 22px 0 24px; font-size: clamp(42px, 5vw, 68px); line-height: 1.02; font-weight: 500; letter-spacing: -.06em; }
.docs-hero > p:not(.doc-index) { max-width: 650px; margin: 0; color: var(--muted); font-size: 18px; line-height: 1.65; letter-spacing: -.015em; }
.doc-notice { margin-top: 42px; padding: 17px 20px; border: 1px solid var(--line-dark); background: var(--pink-soft); display: grid; grid-template-columns: 80px 1fr; gap: 14px; }
.doc-notice span { color: var(--ink); font-family: var(--mono); font-size: 10px; }
.doc-notice p { margin: 0; color: #5f5b56; font-size: 12px; line-height: 1.55; }
.doc-section { padding: 66px 0; border-top: 1px solid var(--line-dark); display: grid; grid-template-columns: 64px 1fr; gap: 24px; scroll-margin-top: 30px; }
.doc-section > div:last-child { min-width: 0; }
.doc-section h2 { margin: -5px 0 25px; font-size: 27px; font-weight: 500; letter-spacing: -.04em; }
.doc-section p { margin: 0 0 22px; color: #5f5b56; font-size: 14px; line-height: 1.75; }
.formula { margin: 30px 0; padding: 18px 20px; border: 1px solid #ebe8e3; border-left: 2px solid var(--pink); background: rgba(255,255,255,.78); box-shadow: 0 8px 30px rgba(34,27,20,.025); font-family: var(--mono); font-size: 13px; }
.formula-stack { display: grid; gap: 10px; line-height: 1.65; }
.formula-stack small { color: var(--muted); font-family: var(--sans); font-size: 10px; line-height: 1.55; }
.spec-list { margin: 34px 0 0; border-top: 1px solid var(--line); }
.spec-list div { padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; font-size: 12px; }
.spec-list dt { color: var(--muted); }
.spec-list dd { margin: 0; font-family: var(--mono); text-align: right; }
.steps { margin: 32px 0; border-top: 1px solid var(--line); }
.steps div { display: grid; grid-template-columns: 44px 1fr; padding: 16px 0; border-bottom: 1px solid var(--line); }
.steps span { color: var(--pink); font-family: var(--mono); font-size: 9px; }
.steps p { margin: 0; }
.steps strong { color: var(--ink); font-weight: 500; }
.detailed-steps div { grid-template-columns: 54px 1fr; padding: 18px 0; }
.detailed-steps span { padding-top: 3px; }
.fine-print { font-size: 11px !important; }
.fee-bar { height: 48px; margin: 30px 0 12px; display: flex; color: white; font-family: var(--mono); font-size: 10px; }
.fee-bar span { display: grid; place-items: center; }
.fee-bar .official { width: 10%; min-width: 54px; background: #73716d; }
.fee-bar .treasury { flex: 1; background: var(--dark); }
.fee-key { display: flex; gap: 20px; margin-bottom: 30px; color: var(--muted); font-size: 10px; }
.fee-key span { display: flex; align-items: center; gap: 6px; }
.fee-key i { width: 7px; height: 7px; border-radius: 50%; background: var(--dark); }
.fee-key i.pink { background: #73716d; }
.code-block { margin: 30px 0; padding: 20px; background: #1b1b1b; color: #e9e7e3; display: grid; grid-template-columns: 70px 1fr; gap: 13px; font-family: var(--mono); font-size: 10px; line-height: 1.6; overflow-x: auto; }
.code-block span { color: #88847e; }
.code-block code { font: inherit; white-space: nowrap; }
.system-map { margin: 34px 0; padding: 20px; border: 1px solid var(--line); background: rgba(255,255,255,.66); display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 12px; }
.system-map div { min-width: 0; display: grid; gap: 5px; }
.system-map > b { color: #aaa59d; font-family: var(--mono); font-size: 12px; font-weight: 400; }
.system-map span { color: var(--muted); font-family: var(--mono); font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }
.system-map strong { font-size: 12px; font-weight: 500; }
.system-map small { color: var(--muted); font-size: 9px; }
.mechanism-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.mechanism-grid article { min-width: 0; padding: 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.4); }
.mechanism-grid article > span { color: var(--muted); font-family: var(--mono); font-size: 9px; }
.mechanism-grid h3 { margin: 18px 0 9px; font-size: 14px; font-weight: 500; }
.mechanism-grid p { margin: 0; font-size: 11px; line-height: 1.65; }
.return-table { margin: 30px 0; border: 1px solid var(--line); }
.return-table > div { min-height: 48px; padding: 0 16px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr .8fr 1.5fr; align-items: center; gap: 14px; color: var(--muted); font-size: 11px; }
.return-table > div:last-child { border-bottom: 0; }
.return-table .return-head { min-height: 40px; background: #f0efec; color: var(--muted); font-size: 9px; letter-spacing: .06em; text-transform: uppercase; }
.return-table strong { color: var(--ink); font-family: var(--mono); font-weight: 500; }
.liquidation-split { height: 92px; margin: 30px 0; display: grid; grid-template-columns: 89fr 10fr minmax(56px, 1fr); color: white; }
.liquidation-split div { min-width: 0; padding: 14px; display: flex; flex-direction: column; justify-content: space-between; }
.liquidation-split strong { font-family: var(--mono); font-size: 16px; font-weight: 500; }
.liquidation-split span { font-size: 9px; }
.liquidation-split .vault-share { background: var(--dark); }
.liquidation-split .burn-share { background: #66635f; }
.liquidation-split .keeper-share { background: #99958e; }
.subsection-title { margin: 42px 0 14px; font-size: 13px; font-weight: 500; }
.contract-list { border-top: 1px solid var(--line-dark); }
.contract-list a { min-width: 0; padding: 16px 2px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) auto 22px; align-items: center; gap: 16px; transition: padding 150ms ease, background 150ms ease; }
.contract-list a:hover { padding-left: 10px; background: rgba(255,255,255,.68); }
.contract-list a > span { min-width: 0; display: grid; gap: 4px; }
.contract-list strong { font-size: 12px; font-weight: 500; }
.contract-list small { color: var(--muted); font-size: 9px; }
.contract-list code { color: var(--muted); font-family: var(--mono); font-size: 10px; }
.contract-list b { width: 22px; height: 22px; border-radius: 50%; background: var(--pink-soft); display: grid; place-items: center; font-size: 10px; font-weight: 400; transition: transform 150ms ease; }
.contract-list a:hover b { transform: translate(2px, -2px); }
.contract-list.compact a { padding-top: 13px; padding-bottom: 13px; }
.pool-data { grid-template-columns: 64px 1fr; }
.pool-data code { overflow-wrap: normal; }
.risk-points { margin: 28px 0 32px; border-top: 1px solid var(--line); }
.risk-points p { margin: 0; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.risk-points strong { color: var(--ink); font-weight: 500; }
.risk-section p:first-of-type { color: var(--ink); font-size: 16px; }

@media (max-width: 1280px) {
  .operate-layout { grid-template-columns: minmax(440px, 560px) minmax(390px, 420px); gap: 52px; }
  .intro h1 { font-size: clamp(62px, 6vw, 78px); }
}

@media (min-width: 1081px) and (max-height: 1000px) {
  .topbar { height: 74px; }
  .operate-layout { padding-top: 34px; padding-bottom: 34px; }
  .intro h1 { font-size: clamp(58px, 5.4vw, 76px); }
  .eyebrow { margin-bottom: 18px; }
  .intro-copy { margin: 22px 0 28px; font-size: 14px; }
  .protocol-stats { margin-bottom: 26px; }
  .protocol-stats div { padding-top: 14px; padding-bottom: 14px; }
  .position-grid div { min-height: 64px; padding: 13px 16px; }
  .trade-rail { height: 40px; }
  .trade-tab { height: 38px; }
  .trade-body { padding: 18px 22px; }
  .amount-field { height: 76px; }
  .trade-details { margin: 18px 0; padding-top: 14px; gap: 10px; }
  .primary-action { height: 50px; }
  .footer { min-height: 56px; }
}

@media (max-width: 1080px) {
  .shell { padding: 0 24px; }
  .operate-layout { grid-template-columns: 1fr; gap: 48px; padding-top: 56px; }
  .intro { width: min(760px, 100%); max-width: none; margin: 0 auto; }
  .trade-panel { min-width: 0; max-width: 520px; margin: 0 auto; }
  .docs-layout { grid-template-columns: 170px minmax(0, 1fr); gap: 40px; }
}

@media (max-width: 700px) {
  .shell { padding: 0 16px; }
  .topbar { height: 72px; grid-template-columns: 1fr auto; }
  .primary-nav { position: fixed; z-index: 20; left: 50%; bottom: 16px; transform: translateX(-50%); padding: 5px; border: 1px solid var(--line-dark); border-radius: 999px; background: rgba(248,247,244,.94); box-shadow: 0 10px 32px rgba(0,0,0,.11); backdrop-filter: blur(12px); }
  .wallet-button, .launch-link { grid-column: 2; }
  .operate-layout { padding: 44px 0 80px; }
  .intro h1 { font-size: clamp(44px, 13vw, 58px); letter-spacing: -0.06em; }
  .intro-copy { margin-top: 24px; }
  .protocol-stats { grid-template-columns: 1fr 1fr; }
  .protocol-stats div:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .protocol-stats div:nth-child(4) { border-top: 1px solid var(--line); }
  .trade-body { padding: 18px; }
  .footer { padding-bottom: 78px; gap: 18px; align-items: flex-start; justify-content: center; flex-direction: column; }
  .docs-layout { display: block; padding: 50px 0 95px; }
  .docs-aside { display: none; }
  .docs-hero { padding-bottom: 58px; }
  .docs-hero h1 { font-size: 44px; }
  .docs-hero > p:not(.doc-index) { font-size: 16px; }
  .doc-notice { grid-template-columns: 1fr; }
  .doc-section { grid-template-columns: 1fr; gap: 17px; padding: 52px 0; }
  .doc-section h2 { margin-top: 0; }
  .system-map { grid-template-columns: 1fr; gap: 10px; }
  .system-map > b { transform: rotate(90deg); justify-self: start; margin-left: 18px; }
  .mechanism-grid { grid-template-columns: 1fr; }
  .return-table > div { grid-template-columns: .8fr .7fr 1.3fr; gap: 8px; padding: 0 11px; font-size: 10px; }
  .liquidation-split { grid-template-columns: 1fr; height: auto; }
  .liquidation-split div { min-height: 58px; flex-direction: row; align-items: center; }
  .contract-list a { grid-template-columns: minmax(0, 1fr) 22px; gap: 10px; }
  .contract-list code { grid-column: 1 / -1; grid-row: 2; }
  .contract-list a > b { grid-column: 2; grid-row: 1; }
  .pool-data { grid-template-columns: 1fr; }
  .pool-data code { white-space: normal; overflow-wrap: anywhere; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
  .trade-panel, .docs-hero { animation: none; }
}
