:root {
  --cream: #F7EBCB;
  --cream-deep: #F0DFB4;
  --lime: #B3F24A;
  --lime-pale: #D9F7A8;
  --ink: #111111;
  --white: #FFFFFF;
  --muted: #5b5646;
  --rule: #e1dccb;

  --line: 3px solid var(--ink);
  --line-thin: 2.5px solid var(--ink);
  --pop: 5px 5px 0 var(--ink);
  --pop-sm: 3px 3px 0 var(--ink);
  --r-card: 24px;
  --r-pill: 999px;

  --font: "Baloo 2", "Nunito", "Arial Rounded MT Bold", system-ui, sans-serif;
  --side: 232px;
  --tabbar: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--font); font-size: 1.05rem; line-height: 1.45; color: var(--ink); background: var(--cream); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; line-height: 1.05; font-weight: 800; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 6px var(--lime); border-radius: 8px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--lime); padding: 8px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 16px; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: 1rem; line-height: 1; padding: 13px 20px 11px; border: var(--line); border-radius: var(--r-pill); background: var(--white); text-decoration: none; cursor: pointer; box-shadow: var(--pop-sm); transition: transform .1s ease, box-shadow .1s ease; white-space: nowrap; }
.btn:hover:not(:disabled) { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.btn:active:not(:disabled) { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--ink); }
.btn:disabled { cursor: not-allowed; background: var(--rule); color: var(--muted); box-shadow: none; border-color: #bdb7a4; }
.btn-lime { background: var(--lime); }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 14px 7px; font-size: .92rem; box-shadow: none; border-width: 2.5px; }
.link { font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; background: none; border: 0; padding: 0; cursor: pointer; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 28px; padding: 22px 16px; border-right: var(--line); background: var(--cream-deep); background-image: radial-gradient(rgba(17,17,17,.1) 1.3px, transparent 1.5px); background-size: 20px 20px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.45rem; letter-spacing: -0.02em; text-decoration: none; padding-left: 6px; }
.tabs { display: flex; flex-direction: column; gap: 6px; }
.tabs a { display: flex; align-items: center; gap: 12px; padding: 11px 14px 9px; border-radius: 16px; border: 3px solid transparent; font-weight: 700; font-size: 1.1rem; text-decoration: none; }
.tabs a:hover { background: var(--white); }
.tabs a[aria-current="page"] { background: var(--lime); border-color: var(--ink); box-shadow: var(--pop-sm); }
.tabs svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.side-foot { margin-top: auto; font-weight: 600; padding-left: 8px; color: var(--muted); }

.main-col { min-width: 0; }
.demo-bar { background: var(--ink); color: var(--lime); font-weight: 600; font-size: .92rem; text-align: center; padding: 7px 16px 5px; }
.top { display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 16px clamp(16px, 3vw, 40px) 0; }
.brand-mobile { display: none; margin-right: auto; }
.wallet-slot { position: relative; }
#view { padding-block: 12px 64px; padding-inline: clamp(16px, 3vw, 40px); max-width: 1180px; outline: none; }

.wallet-menu { position: absolute; right: 0; top: calc(100% + 10px); z-index: 30; width: 290px; background: var(--white); border: var(--line); border-radius: 20px; box-shadow: var(--pop); padding: 16px; }
.wallet-menu h2 { font-size: 1.1rem; margin-bottom: 8px; }
.wallet-menu .actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.balances { list-style: none; margin: 0; padding: 0; }
.balances li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 0; border-top: 2px dashed var(--rule); font-weight: 600; }
.balances li:first-child { border-top: 0; }
.balances .tok { display: flex; align-items: center; gap: 8px; }

/* ---------- page parts ---------- */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin: 10px 0 22px; }
.page-head h1 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); }
.page-head p { margin-top: 6px; color: var(--muted); max-width: 56ch; font-size: 1.1rem; }
.card { background: var(--white); border: var(--line); border-radius: var(--r-card); padding: 20px 22px; }
.card-pop { box-shadow: var(--pop); }
.card h2 { font-size: 1.35rem; margin-bottom: 12px; }
.section-gap { margin-top: 22px; }
.back { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; text-decoration: none; margin: 6px 0 4px; }
.back svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.back:hover { text-decoration: underline; }

.tokens { display: flex; flex-shrink: 0; }
.tokens i { width: 32px; height: 32px; border-radius: 50%; border: var(--line-thin); display: grid; place-items: center; font-style: normal; font-size: .7rem; font-weight: 800; background: var(--white); padding-top: 2px; }
.tokens i:first-child { background: var(--lime-pale); }
.tokens i + i { margin-left: -10px; }
.tokens-lg i { width: 52px; height: 52px; font-size: 1rem; border-width: 3px; }
.tokens-lg i + i { margin-left: -14px; }
.tok-dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--ink); background: var(--lime-pale); display: grid; place-items: center; font-size: .55rem; font-weight: 800; padding-top: 1px; }

.ride { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; white-space: nowrap; }
.ride b { width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--ink); background: var(--white); }
.ride b.on { background: var(--ink); }
.apy-chip { display: inline-block; font-weight: 800; background: var(--lime); border: var(--line-thin); border-radius: 12px; padding: 2px 10px 0; white-space: nowrap; }
.tag { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; background: var(--white); border: 2px solid var(--ink); border-radius: var(--r-pill); padding: 3px 12px 1px; font-size: .95rem; text-decoration: none; }
a.tag:hover { background: var(--lime-pale); }

/* ---------- pools ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin-bottom: 16px; }
.search { flex: 1 1 220px; max-width: 320px; position: relative; }
.search input { width: 100%; padding: 10px 14px 8px 40px; border: var(--line); border-radius: var(--r-pill); background: var(--white); }
.search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-weight: 700; padding: 8px 14px 6px; border: var(--line-thin); border-radius: var(--r-pill); background: var(--white); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--lime); }
.select { padding: 8px 12px 6px; border: var(--line-thin); border-radius: 14px; background: var(--white); font-weight: 700; }

.pool-list { background: var(--white); border: var(--line); border-radius: var(--r-card); box-shadow: var(--pop); overflow: hidden; }
.pool-row { display: grid; grid-template-columns: minmax(0, 2fr) 1fr .8fr 1fr .9fr auto; gap: 12px; align-items: center; padding: 14px 20px; border-top: 2px dashed var(--rule); text-decoration: none; }
.pool-row:first-child { border-top: 0; }
a.pool-row:hover { background: #fbf6e6; }
.pool-list-head { background: var(--lime-pale); border-bottom: var(--line); font-weight: 700; font-size: .9rem; padding-block: 10px; }
.pool-list-head + .pool-row { border-top: 0; }
.pair { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pair strong { display: block; font-size: 1.12rem; }
.pair small { display: block; color: var(--muted); font-size: .92rem; }
.pool-row .apy-cell { text-align: right; }
.you { display: inline-block; font-size: .85rem; font-weight: 700; background: var(--lime-pale); border-radius: 8px; padding: 0 8px; margin-top: 2px; }
.cell-label { display: none; }
.list-note { margin-top: 14px; color: var(--muted); font-size: .95rem; }

/* ---------- empty states ---------- */
.empty { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 36px 20px; }
.empty img { width: 190px; }
.empty h2 { font-size: 1.7rem; }
.empty p { color: var(--muted); max-width: 42ch; }
.empty .btn { margin-top: 8px; }

/* ---------- pool detail ---------- */
.detail-head { display: flex; align-items: center; gap: 16px; margin: 8px 0 12px; flex-wrap: wrap; }
.detail-head h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; padding: 0; overflow: hidden; }
.facts div { padding: 14px 18px; border-left: 2px dashed var(--rule); }
.facts div:first-child { border-left: 0; }
.facts dt { color: var(--muted); font-weight: 600; font-size: .92rem; }
.facts dd { margin: 0; font-weight: 800; font-size: 1.35rem; }
.how-earns { display: grid; grid-template-columns: 130px 1fr; gap: 18px; align-items: start; }
.how-earns img { width: 130px; }
.how-earns dl { margin: 0; display: grid; gap: 2px; }
.how-earns dt { font-weight: 800; margin-top: 8px; }
.how-earns dt:first-child { margin-top: 0; }
.how-earns dd { margin: 0; color: #3a3830; }

.panel { position: sticky; top: 16px; background: var(--white); border: var(--line); border-radius: var(--r-card); box-shadow: var(--pop); padding: 16px 18px 18px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--cream); border: var(--line-thin); border-radius: var(--r-pill); padding: 3px; margin-bottom: 16px; }
.seg button { border: 0; background: none; border-radius: var(--r-pill); padding: 9px 0 7px; font-weight: 700; cursor: pointer; }
.seg button[aria-selected="true"] { background: var(--ink); color: var(--lime); }
.amount-label { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: 6px; }
.amount { display: flex; align-items: center; border: var(--line); border-radius: 16px; padding: 4px 6px 4px 14px; background: var(--white); }
.amount:focus-within { box-shadow: 0 0 0 5px var(--lime); }
.amount input { flex: 1; min-width: 0; border: 0; outline: 0; font-size: 1.7rem; font-weight: 800; padding: 6px 0 2px; background: none; }
.amount span { font-weight: 800; padding: 0 8px; }
.quick { display: flex; gap: 6px; margin: 10px 0 14px; }
.quick button { flex: 1; font-weight: 700; font-size: .9rem; border: 2px solid var(--ink); background: var(--cream); border-radius: 10px; padding: 5px 0 3px; cursor: pointer; }
.quick button:hover { background: var(--lime-pale); }
.preview { list-style: none; margin: 0 0 14px; padding: 12px 14px; background: var(--cream); border-radius: 16px; }
.preview li { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; }
.preview li span:first-child { color: var(--muted); font-weight: 600; }
.preview li span:last-child { font-weight: 800; text-align: right; }
.panel-note { margin-top: 10px; font-size: .88rem; color: var(--muted); text-align: center; }
.panel .empty { padding: 10px 4px; }
.panel .empty img { width: 140px; }
.panel .empty h2 { font-size: 1.3rem; }
.claim { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 2px dashed var(--rule); }

/* ---------- charts ---------- */
.chart { margin: 0; }
.chart-cap { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.chart-cap h2 { margin: 0; }
.chart-body { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; }
.chart-y { display: flex; flex-direction: column; justify-content: space-between; font-size: .82rem; color: var(--muted); text-align: right; padding-block: 0 2px; }
.plot { position: relative; height: 190px; border-bottom: 2px solid var(--ink); cursor: crosshair; touch-action: pan-y; }
.plot svg { width: 100%; height: 100%; overflow: visible; }
.plot .grid { stroke: var(--rule); stroke-width: 1.5; stroke-dasharray: 4 5; vector-effect: non-scaling-stroke; }
.cross { position: absolute; top: 0; bottom: 0; width: 0; border-left: 2px dashed var(--ink); pointer-events: none; }
.pt { position: absolute; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--lime); border: 3px solid var(--ink); box-shadow: 0 0 0 2px var(--white); pointer-events: none; }
.pt-end { pointer-events: none; }
.tip { position: absolute; top: -6px; transform: translate(-50%, -100%); background: var(--ink); color: var(--white); border-radius: 10px; padding: 5px 10px 3px; font-size: .88rem; font-weight: 700; white-space: nowrap; pointer-events: none; z-index: 2; }
.tip small { display: block; color: var(--lime); font-weight: 600; font-size: .78rem; }
.chart-x { grid-column: 2; display: flex; justify-content: space-between; font-size: .82rem; color: var(--muted); padding-top: 4px; }

.vbars { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 6px; align-items: end; height: 210px; padding-top: 30px; border-bottom: 2px solid var(--ink); }
.vbar { position: relative; height: var(--h); background: var(--lime); border: var(--line-thin); border-bottom: 0; border-radius: 6px 6px 0 0; cursor: default; padding: 0; }
.vbar.last { background: var(--ink); }
.vbar::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%); background: var(--ink); color: var(--white); border-radius: 8px; padding: 3px 8px 1px; font-size: .8rem; font-weight: 700; white-space: nowrap; opacity: 0; pointer-events: none; }
.vbar:hover::after, .vbar:focus-visible::after, .vbar.last::after { opacity: 1; }
.vbar:focus-visible { box-shadow: none; outline-offset: 1px; }
.vbar-x { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 6px; font-size: .78rem; color: var(--muted); text-align: center; padding-top: 4px; }

.hbars { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hbars li { display: grid; grid-template-columns: minmax(6rem, 9rem) minmax(0, 1fr) 3.6rem; gap: 10px; align-items: center; font-weight: 600; }
.hbars a { text-decoration: none; }
.hbars a:hover { text-decoration: underline; }
.hbars i { display: block; height: 20px; width: var(--w); min-width: 6px; background: var(--lime); border: var(--line-thin); border-radius: 0 6px 6px 0; }
.hbars b { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- portfolio ---------- */
.summary { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 0; padding: 0; overflow: hidden; }
.summary div { padding: 18px 22px; border-left: 2px dashed var(--rule); }
.summary div:first-child { border-left: 0; background: var(--lime-pale); }
.summary p { color: var(--muted); font-weight: 600; }
.summary strong { display: block; font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.two-col { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.ff { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 14px; padding-top: 14px; border-top: 2px dashed var(--rule); }
.ff p { color: var(--muted); font-size: .92rem; max-width: 40ch; }
.positions { list-style: none; margin: 0; padding: 0; }
.position { display: grid; grid-template-columns: minmax(0, 1.6fr) 1fr 1fr auto; gap: 12px; align-items: center; padding: 14px 0; border-top: 2px dashed var(--rule); }
.position:first-child { border-top: 0; padding-top: 0; }
.position .label { display: block; color: var(--muted); font-size: .85rem; font-weight: 600; }
.position .val { font-weight: 800; font-variant-numeric: tabular-nums; }
.earned { color: #2f6b00; }
.position-actions { display: flex; gap: 6px; }
.position-foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: .95rem; }
.switch { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; background: none; border: 0; padding: 0; cursor: pointer; }
.switch i { position: relative; width: 46px; height: 26px; border: var(--line-thin); border-radius: var(--r-pill); background: var(--rule); transition: background .15s; }
.switch i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 17px; height: 17px; border-radius: 50%; background: var(--white); border: 2px solid var(--ink); transition: transform .15s; }
.switch[aria-checked="true"] i { background: var(--lime); }
.switch[aria-checked="true"] i::after { transform: translateX(20px); }
.activity { list-style: none; margin: 0; padding: 0; }
.activity li { display: grid; grid-template-columns: 4rem 1fr; gap: 10px; padding: 8px 0; border-top: 2px dashed var(--rule); font-size: .95rem; }
.activity li:first-child { border-top: 0; }
.activity time { font-weight: 700; color: var(--muted); }

/* ---------- analytics ---------- */
.stat-line { font-size: clamp(1.2rem, 2.2vw, 1.55rem); font-weight: 600; line-height: 1.6; }
.stat-line strong { display: inline-block; background: var(--white); border: var(--line-thin); border-radius: 12px; padding: 0 8px; line-height: 1.3; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.moves { list-style: none; margin: 0; padding: 0; }
.moves li { display: grid; grid-template-columns: 4.2rem 1fr; gap: 10px; padding: 9px 0; border-top: 2px dashed var(--rule); }
.moves li:first-child { border-top: 0; }
.moves time { font-weight: 800; }

/* ---------- strategies ---------- */
.strategy { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 26px; align-items: start; }
.strategy + .strategy { margin-top: 22px; }
.strategy img { width: 180px; }
.strategy h2 { font-size: 1.9rem; margin-bottom: 4px; }
.strategy .lede { color: var(--muted); font-size: 1.12rem; margin-bottom: 12px; }
.strategy dl { margin: 0; display: grid; grid-template-columns: 10.5rem minmax(0, 1fr); gap: 6px 16px; }
.strategy dt { font-weight: 800; }
.strategy dd { margin: 0; }
.strategy .tag-row { margin: 14px 0 0; }
.strategy:nth-child(3n+2) { background: var(--lime); }

/* ---------- modal & toast ---------- */
dialog { border: var(--line); border-radius: 28px; box-shadow: 8px 8px 0 var(--ink); padding: 26px; width: min(440px, calc(100vw - 32px)); background: var(--white); color: var(--ink); }
dialog::backdrop { background: rgba(17, 17, 17, .45); }
dialog h2 { font-size: 1.6rem; margin-bottom: 8px; }
dialog .hero-img { width: 170px; margin: -6px auto 8px; }
dialog .center { text-align: center; }
dialog .center p { color: var(--muted); }
dialog .row { display: flex; gap: 10px; margin-top: 18px; }
dialog .row .btn { flex: 1; }
.spinner { display: inline-block; width: 18px; height: 18px; border-radius: 50%; border: 3px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop { from { transform: scale(.7); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: no-preference) {
  dialog .hero-img.celebrate { animation: pop .45s cubic-bezier(.3, 1.7, .5, 1); }
}
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; background: var(--ink); color: var(--white); border-radius: var(--r-pill); padding: 10px 20px 8px; font-weight: 700; box-shadow: 4px 4px 0 var(--lime); max-width: calc(100vw - 32px); text-align: center; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .detail, .two-col { grid-template-columns: minmax(0, 1fr); }
  .panel { position: static; }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; top: auto; bottom: 0; left: 0; right: 0; height: var(--tabbar); z-index: 40; padding: 6px 8px; border-right: 0; border-top: var(--line); background: var(--cream-deep); }
  .side .brand, .side-foot { display: none; }
  .tabs { flex-direction: row; justify-content: space-around; height: 100%; gap: 2px; }
  .tabs a { flex: 1; flex-direction: column; justify-content: center; gap: 0; padding: 4px 2px; font-size: .78rem; border-radius: 14px; border-width: 2.5px; }
  .tabs a[aria-current="page"] { box-shadow: none; }
  .brand-mobile { display: flex; font-size: 1.3rem; padding-left: 0; }
  #view { padding-bottom: calc(var(--tabbar) + 40px); }
  .toast { bottom: calc(var(--tabbar) + 16px); }
  .grid-2 { grid-template-columns: 1fr; }
  .pool-list-head { display: none; }
  .pool-row { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; }
  .pool-row .c-meta { grid-column: 1 / -1; display: flex; justify-content: space-between; font-size: .95rem; }
  .pool-row .apy-cell { grid-row: 1; grid-column: 2; }
  .cell-label { display: inline; color: var(--muted); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts div:nth-child(3) { border-left: 0; }
  .facts div:nth-child(n+3) { border-top: 2px dashed var(--rule); }
  .summary { grid-template-columns: 1fr 1fr; }
  .summary div:first-child { grid-column: 1 / -1; }
  .summary div:nth-child(2) { border-left: 0; border-top: 2px dashed var(--rule); }
  .summary div:nth-child(3) { border-top: 2px dashed var(--rule); }
  .strategy { grid-template-columns: 1fr; }
  .strategy img { width: 130px; }
  .wallet-menu { position: fixed; left: 16px; right: 16px; top: 100px; width: auto; }
}
@media (max-width: 560px) {
  .how-earns { grid-template-columns: 1fr; }
  .how-earns img { width: 100px; }
  .position { grid-template-columns: 1fr 1fr; }
  .position > :first-child { grid-column: 1 / -1; }
  .position-actions { grid-column: 1 / -1; }
  .position-actions .btn { flex: 1; }
  .strategy dl { grid-template-columns: 1fr; }
  .strategy dd { margin-bottom: 6px; }
  .hbars li { grid-template-columns: 5.5rem minmax(0, 1fr) 3.2rem; font-size: .92rem; }
  .vbar-x span:nth-child(even) { visibility: hidden; }
  .search { max-width: none; }
  .wallet-label { display: none; }
  .top .btn { padding: 10px 14px 8px; }
}
