/* Vesica — the vaults page.
   Colours, type and the shared primitives come from tokens.css; this sheet is
   only the layout of this page. The dark band at the top carries the page
   head, the way the swap page's band carries its hero, and everything below it
   sits on the warm grey ground in white cards. */

.cs { min-height: 100%; }

  max-width: var(--wrap-head); margin: 0 auto; padding: 0 24px;
  height: 34px; display: flex; align-items: center; gap: 24px;
  font-size: 13.4px; color: var(--dim); white-space: nowrap;
}
.cs-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); display: inline-block; margin-right: 7px; vertical-align: 1px; }

/* ---------- nav ---------- */

.cs-brand { display: inline-flex; align-items: center; gap: 6px; font-size: 26px; font-weight: 600; letter-spacing: -.02em; }

.cs-tabs { margin: 0 auto; display: flex; align-items: center; gap: 4px; }
.cs-tabs a {
  padding: 7px 13px; border-radius: 999px;
  font-size: 16.1px; font-weight: 500; color: var(--muted);
  transition: color .15s, background .15s;
}
.cs-tabs a:hover { color: var(--ink); }
.cs-tabs a.on { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.cs-nav-right { display: flex; align-items: center; gap: 10px; }
.cs-icon.cs-burger { display: none; }
.cs-icon {
  width: 34px; height: 34px; display: inline-grid; place-items: center;
  border-radius: 9px; border: 1px solid var(--line); background: var(--card);
  color: var(--muted); cursor: pointer; transition: color .15s, border-color .15s;
}
.cs-icon:hover { color: var(--ink); border-color: #D4D3CD; }

/* wallet chip */
.cs-chip {
  position: relative; display: flex; align-items: center; height: 34px; padding: 0 4px 0 6px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--card);
}
.cs-chip-main, .cs-chip-copy {
  display: inline-flex; align-items: center; gap: 8px; height: 100%;
  padding: 0 8px; border: 0; background: transparent; color: var(--ink); cursor: pointer;
  font-family: inherit; font-size: 14.4px; font-weight: 500;
}
.cs-chip-copy { color: var(--dim); padding-left: 2px; padding-right: 9px; }
.cs-chip-copy:hover { color: var(--accent); }
.cs-chip-av { width: 18px; height: 18px; border-radius: 50%; flex: none; }
.cs-pop {
  position: absolute; top: calc(100% + 8px); right: 0; width: 236px; z-index: 50;
  border: 1px solid var(--line); border-radius: 12px; background: var(--card);
  padding: 6px; box-shadow: 0 18px 40px rgba(43, 41, 55, .14);
}
.cs-pop-what {
  margin: 0 0 10px; font-family: var(--mono); font-size: 9px; letter-spacing: .13em;
  text-transform: uppercase; color: var(--dim);
}
.cs-pop-what.on { color: var(--accent-ink); }

.cs-pop-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 10px; font-size: 14.4px; color: var(--muted); }
.cs-pop-row b { font-weight: 600; color: var(--ink); }
.cs-pop-btn {
  display: block; width: 100%; text-align: left; margin-top: 2px;
  padding: 9px 10px; border: 0; border-radius: 8px; background: transparent;
  color: var(--muted); font-family: inherit; font-size: 15px; cursor: pointer;
}
.cs-pop-btn:hover { background: var(--card); color: var(--ink); }
.cs-pop-btn:last-child:hover { color: var(--down); }

/* ---------- the dark band: page head ---------- */

.cs-head {
  background: var(--band); color: var(--on-band);
  padding: 34px max(24px, calc((100vw - var(--wrap-head)) / 2 + 24px)) 44px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 52px; align-items: start;
  scroll-margin-top: 10px;
}
.cs-head .cs-label { color: #9E9BB4; margin-bottom: 14px; }
.cs-head .cs-label b { color: var(--accent-lift); font-weight: 600; }
.cs-head h1 { margin: 0 0 14px; font-size: 40.7px; line-height: 1.1; font-weight: 600; letter-spacing: -.025em; }
.cs-head h1 em { font-style: italic; font-weight: 700; }
.cs-lede { margin: 0 0 22px; font-size: 15.5px; line-height: 1.55; color: var(--on-band-2); max-width: 46ch; }
.cs-head-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.cs-head .cs-btn-line { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .28); }
.cs-head .cs-btn-line:hover { border-color: #fff; }


.cs-head .cs-note { color: #9E9BB4; }
.cs-note { font-size: 13.9px; line-height: 1.6; margin: 0; color: var(--dim); }

.cs-head-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cs-tile { border: 1px solid transparent; border-radius: 10px; background: var(--card); padding: 14px 15px 15px; color: var(--ink); }
.cs-tile .cs-fig { display: block; font-size: 25.7px; font-weight: 600; letter-spacing: -.025em; margin: 9px 0 4px; }
.cs-tile .cs-sub { font-size: 13.4px; color: var(--dim); line-height: 1.45; display: block; }
.cs-tile-accent { background: var(--accent-soft); border-color: var(--accent-line); }
.cs-tile-accent .cs-label { color: var(--accent-ink); }
.cs-tile-accent .cs-fig { color: var(--accent-ink); }
.cs-tile-accent .cs-sub { color: var(--accent-ink); }
.cs-up { color: var(--accent); }
.cs-r { text-align: right; }

/* ---------- your positions ---------- */

.cs-mine { max-width: var(--wrap-head); margin: 26px auto 0; padding: 0 24px; }
.cs-mine-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.cs-mine-clear { border: 0; background: transparent; color: var(--accent); font-family: inherit; font-size: 14.4px; font-weight: 600; cursor: pointer; padding: 0; }
.cs-mine-clear:hover { text-decoration: underline; }
.cs-mine-rows { display: grid; gap: 8px; }
.cs-mine-row {
  display: grid; grid-template-columns: 36px minmax(0, 1fr) 120px 90px 108px; gap: 14px; align-items: center;
  border: 1px solid var(--accent-line); border-radius: var(--r); background: var(--accent-soft); padding: 12px 16px;
}
.cs-mine-t b { display: block; font-size: 16.1px; font-weight: 600; }
.cs-mine-t span { display: block; font-size: 12.8px; color: var(--accent-ink); margin-top: 2px; }
.cs-mine-v { font-size: 17.1px; font-weight: 600; text-align: right; }
.cs-mine-apr { font-size: 15px; color: var(--accent-ink); text-align: right; font-weight: 600; }
.cs-mine-row .cs-btn { height: 32px; font-size: 14.4px; background: var(--card); border-color: var(--accent-line); }

/* ---------- toolbar ---------- */

.cs-toolbar {
  position: sticky; top: 0; z-index: 30;
  max-width: none; padding: 12px max(24px, calc((100vw - var(--wrap-head)) / 2 + 24px));
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  margin-top: 26px; scroll-margin-top: 0;
}
.cs-search {
  display: flex; align-items: center; gap: 9px; height: 36px; padding: 0 12px;
  min-width: 220px; flex: 1 1 220px;
  border: 1px solid var(--line); border-radius: 9px; background: var(--card); color: var(--dim);
}
.cs-search:focus-within { border-color: #D4D3CD; }
.cs-search input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; color: var(--ink); font-family: inherit; font-size: 15.5px; }
.cs-search input::placeholder { color: #B5B3BE; }
.cs-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.cs-chips button {
  height: 36px; padding: 0 13px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card); color: var(--muted);
  font-family: inherit; font-size: 14.4px; font-weight: 500; cursor: pointer;
  transition: color .15s, border-color .15s, background .15s;
}
.cs-chips button:hover { color: var(--ink); }
.cs-chips button.on { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-ink); font-weight: 600; }
.cs-sort { display: flex; align-items: center; gap: 9px; margin-left: auto; }
.cs-sort select {
  height: 36px; padding: 0 10px; border-radius: 9px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  font-family: inherit; font-size: 15px; cursor: pointer;
}

/* ---------- the vault list ---------- */

.cs-list-wrap { max-width: var(--wrap-head); margin: 0 auto; padding: 18px 24px 22px; }
.cs-thead, .cs-row > summary {
  display: grid;
  grid-template-columns: minmax(200px, 1.7fr) 104px 110px 122px 120px 142px 104px;
  gap: 14px; align-items: center;
}
.cs-thead {
  padding: 0 16px 10px;
  font-size: 12.3px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--dim);
}
.cs-rows { display: flex; flex-direction: column; gap: 8px; }

.cs-row { border: 1px solid var(--line); border-radius: var(--r); background: var(--card); transition: border-color .15s, box-shadow .15s; }
.cs-row:hover { border-color: #D4D3CD; }
.cs-row[open] { border-color: var(--accent-line); }
.cs-row > summary { padding: 14px 16px; cursor: pointer; list-style: none; }
.cs-row > summary::-webkit-details-marker { display: none; }

.cs-vault { display: flex; align-items: center; gap: 11px; min-width: 0; }
.cs-ticker {
  width: 36px; height: 36px; flex: none; border-radius: 9px;
  display: grid; place-items: center;
  border: 1px solid var(--line); background: var(--card); color: var(--brand, var(--ink));   /* app.js sets --brand per row */
}
.cs-ticker svg { width: 18px; height: 18px; fill: currentColor; }
.cs-ticker svg.mk-t { width: 30px; height: 30px; }
.cs-vault-t { min-width: 0; }
.cs-vault-t b { display: block; font-size: 16.1px; font-weight: 600; letter-spacing: -.01em; }
.cs-vault-t span { display: block; font-size: 13.4px; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-held {
  margin-left: auto; padding: 4px 9px; border-radius: 999px;
  background: var(--accent-fill); color: var(--on-accent);
  font-size: 12.8px; font-weight: 700; white-space: nowrap;
}

.cs-apr { font-size: 17.1px; font-weight: 600; color: var(--accent); text-align: right; }
.cs-num { font-size: 15.5px; text-align: right; font-weight: 500; }
.cs-num i { display: block; font-style: normal; font-size: 12.8px; color: var(--dim); margin-top: 3px; font-weight: 400; }

.cs-state { display: flex; align-items: center; gap: 7px; font-size: 14.4px; color: var(--muted); }
.cs-state i { width: 6px; height: 6px; border-radius: 50%; flex: none; }
.cs-state.range i { background: var(--accent); }
.cs-state.rebalancing i { background: var(--warn); }
.cs-state.paused i { background: var(--down); }

.cs-cap { display: block; }
.cs-cap-bar { display: block; height: 5px; border-radius: 3px; background: var(--line-2); overflow: hidden; }
.cs-cap-bar span { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.cs-cap-t { font-size: 12.3px; color: var(--dim); margin-top: 6px; display: block; }
.cs-row-act { display: flex; justify-content: flex-end; }
.cs-row-act .cs-btn { height: 34px; padding: 0 14px; font-size: 15px; }

.cs-detail { border-top: 1px solid var(--line-2); padding: 16px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cs-detail > div .cs-label { margin-bottom: 7px; }
.cs-detail b { font-size: 15px; font-weight: 600; color: var(--ink); }
.cs-detail p { margin: 6px 0 0; font-size: 13.9px; color: var(--dim); line-height: 1.55; }
.cs-addr { word-break: break-all; font-size: 13.9px; color: var(--muted) !important; font-weight: 500 !important; }
.cs-linkbtn { border: 0; background: transparent; padding: 0; color: var(--accent); font-family: inherit; font-size: inherit; font-weight: 600; cursor: pointer; }
.cs-linkbtn:hover { text-decoration: underline; }

.cs-empty { text-align: center; color: var(--dim); font-size: 15.5px; padding: 34px 0; }
.cs-listnote { max-width: 62ch; margin: 22px auto 0; text-align: center; color: var(--dim); font-size: 13.9px; line-height: 1.6; }

/* ---------- bands ---------- */

.cs-band {
  max-width: var(--wrap-head); margin: 0 auto; padding: 66px 24px;
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.9fr); gap: 52px;
  scroll-margin-top: 10px;
}
.cs-band-alt {
  max-width: none; background: var(--card); border-block: 1px solid var(--line);
  padding-inline: max(24px, calc((100vw - var(--wrap-head)) / 2 + 24px));
}
.cs-band-label { position: sticky; top: 78px; align-self: start; }
.cs-band-label .cs-label { margin-bottom: 13px; }
.cs-band-label h2 { margin: 0 0 11px; font-size: 28.9px; line-height: 1.14; letter-spacing: -.028em; font-weight: 600; }
.cs-band-label p { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.6; max-width: 30ch; }

.cs-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cs-steps li { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.cs-step-n {
  display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px;
  background: var(--accent-soft); color: var(--accent-ink); font-size: 13.9px; font-weight: 700; margin-bottom: 13px;
}
.cs-steps h3 { margin: 0 0 8px; font-size: 17.1px; letter-spacing: -.015em; font-weight: 600; }
.cs-steps p { margin: 0; font-size: 15.5px; line-height: 1.62; color: var(--muted); }

.cs-mine-clock {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--dim); margin-right: auto; margin-left: 14px;
}
@media (max-width: 760px) { .cs-mine-clock { display: none; } }

.cs-split { align-self: start; }
.cs-bar { display: flex; gap: 3px; height: 42px; margin-bottom: 20px; }
.cs-bar span { border-radius: 8px; }
/* three shades of the one accent read as one muddy olive at this size; the
   split is clearer when each share is its own colour */
.cs-bar span:nth-child(1) { background: var(--accent-glow); }
.cs-bar span:nth-child(2) { background: var(--band); }
.cs-bar span:nth-child(3) { background: #C6C5D2; }
.cs-split-keys { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 12px; }
.cs-split-keys li { display: flex; align-items: baseline; gap: 11px; font-size: 15.5px; line-height: 1.6; color: var(--muted); }
.cs-split-keys i { width: 9px; height: 9px; border-radius: 3px; flex: none; transform: translateY(1px); }
.cs-split-keys b { color: var(--ink); }
.cs-split-keys .k1 { background: var(--accent-glow); }
.cs-split-keys .k2 { background: var(--band); }
.cs-split-keys .k3 { background: #C6C5D2; }

.cs-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-self: start; }
.cs-card { border: 1px solid var(--line); border-radius: var(--r); background: var(--card); padding: 20px; }
.cs-card h3 { margin: 0 0 9px; font-size: 17.1px; letter-spacing: -.015em; font-weight: 600; }
.cs-card p { margin: 0; font-size: 15.5px; line-height: 1.62; color: var(--muted); }

.cs-faq { align-self: start; border-top: 1px solid var(--line); }
.cs-faq details { border-bottom: 1px solid var(--line); }
.cs-faq summary {
  list-style: none; cursor: pointer; padding: 16px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  font-size: 17.1px; font-weight: 600; letter-spacing: -.015em;
}
.cs-faq summary::-webkit-details-marker { display: none; }
.cs-faq summary::after { content: "+"; font-size: 19.8px; color: var(--accent); flex: none; }
.cs-faq details[open] summary::after { content: "–"; }
.cs-faq p { margin: -2px 0 18px; font-size: 15.5px; line-height: 1.68; color: var(--muted); max-width: 72ch; }

.cs-contracts { align-self: start; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--card); }
.cs-contract { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 16px; }
.cs-contract + .cs-contract { border-top: 1px solid var(--line-2); }
.cs-contract .cs-label { margin: 0; }
.cs-contract .cs-addr { font-size: 14.4px; }
.cs-contract .cs-linkbtn { font-size: 14.4px; }

/* ---------- closing ---------- */

.cs-close { padding: 70px 24px; }
.cs-close-in {
  max-width: 720px; margin: 0 auto; text-align: center;
  border-radius: 16px; background: var(--band); color: var(--on-band); padding: 42px 32px;
}
.cs-close h2 { margin: 0 0 10px; font-size: 32.1px; letter-spacing: -.03em; line-height: 1.12; font-weight: 600; }
.cs-close p { margin: 0 0 22px; color: var(--on-band-2); font-size: 16.1px; }
.cs-close .cs-head-actions { justify-content: center; margin-bottom: 0; }


.cs-close .cs-btn-line { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .28); }
.cs-close .cs-btn-line:hover { border-color: #fff; }

/* ---------- footer ---------- */

.cs-foot {
  border-top: 1px solid var(--line); background: var(--card);
  background-image: repeating-linear-gradient(to right, var(--dash) 0 1px, transparent 1px 120px);
}
.cs-foot-in {
  max-width: var(--wrap-head); margin: 0 auto; padding: 38px 24px 26px;
}
.cs-foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: var(--wrap-head); }
.cs-foot-cols .cs-label { margin-bottom: 12px; }
.cs-foot-cols a { display: block; font-size: 15px; color: var(--muted); padding: 5px 0; }
.cs-foot-cols a:hover { color: var(--accent); }
.cs-disclaimer { max-width: var(--wrap-head); margin: 0 auto; padding: 0 24px 34px; font-size: 12.8px; color: var(--dim); line-height: 1.6; }

/* ---------- drawer ---------- */

.cs-scrim { position: fixed; inset: 0; background: rgba(43, 41, 55, .38); z-index: 60; }
.cs-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(390px, 92vw); z-index: 61;
  background: var(--card); border-left: 1px solid var(--line);
  font-family: var(--font); color: var(--ink);
  padding: 22px; overflow-y: auto; display: flex; flex-direction: column; gap: 18px;
  transform: translateX(102%); transition: transform .22s ease; visibility: hidden;
}
.cs-drawer.on { transform: none; visibility: visible; }
.cs-drawer header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.cs-drawer header h3 { margin: 7px 0 0; font-size: 21.9px; letter-spacing: -.02em; font-weight: 600; }
.cs-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 11px; background: var(--card); }
.cs-seg button { height: 32px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-family: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.cs-seg button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(43, 41, 55, .08); }
.cs-field { display: block; }
.cs-field .cs-label { margin-bottom: 8px; }
.cs-input { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 14px; border: 1px solid var(--line); border-radius: 11px; background: var(--card); }
.cs-input:focus-within { border-color: #D4D3CD; }
.cs-input input {
  flex: 1; min-width: 0; border: 0; background: transparent; outline: none; color: var(--ink);
  font-family: inherit; font-size: 24.1px; font-weight: 600;
  -moz-appearance: textfield; appearance: textfield;
}
.cs-input input::-webkit-outer-spin-button, .cs-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cs-input > span { font-size: 14.4px; color: var(--dim); font-weight: 600; }
.cs-max {
  border: 1px solid var(--line); background: transparent; color: var(--muted);
  border-radius: 7px; height: 26px; padding: 0 9px; cursor: pointer;
  font-family: inherit; font-size: 11.8px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.cs-max:hover { color: var(--accent); border-color: var(--accent-line); }
.cs-avail { display: block; margin-top: 8px; font-size: 12.8px; color: var(--dim); }
.cs-kv { margin: 0; border: 1px solid var(--line); border-radius: 11px; overflow: hidden; }
.cs-kv > div { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 14px; }
.cs-kv > div + div { border-top: 1px solid var(--line-2); }
.cs-kv dt { font-size: 13.9px; color: var(--muted); }
.cs-kv dd { margin: 0; font-size: 14.4px; font-weight: 600; }

/* ---------- motion ---------- */

.cs-js .cs-rise { opacity: 0; transform: translateY(12px); }
.cs-js .cs-rise.in { opacity: 1; transform: none; transition: opacity .5s ease, transform .5s ease; }

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .cs-tabs { display: none; }
  .cs-icon.cs-burger { display: inline-grid; }
  .cs-nav.open .cs-tabs {
    display: flex; position: absolute; top: var(--nav); left: 16px; right: 16px; z-index: 45;
    flex-direction: column; align-items: stretch; border-radius: var(--r); padding: 8px;
    background: var(--card); border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(43, 41, 55, .14);
  }
  .cs-nav.open .cs-tabs a { padding: 11px 12px; border-radius: 9px; }
  .cs-head { grid-template-columns: 1fr; gap: 30px; }
  .cs-band { grid-template-columns: 1fr; gap: 28px; padding: 52px 24px; }
  .cs-band-label { position: static; }
  .cs-band-label p { max-width: none; }
}

@media (max-width: 900px) {
  .cs-thead { display: none; }
  .cs-row > summary { grid-template-columns: 1fr 1fr; gap: 16px 14px; padding: 16px; }
  .cs-vault { grid-column: 1 / -1; }
  .cs-apr, .cs-num { text-align: left; }
  .cs-row-act { grid-column: 1 / -1; }
  .cs-row-act .cs-btn { width: 100%; }
  .cs-detail { grid-template-columns: 1fr 1fr; }
  .cs-sort { margin-left: 0; }
  .cs-mine-row { grid-template-columns: 36px minmax(0, 1fr) auto; row-gap: 10px; }
  .cs-mine-apr { display: none; }
  .cs-mine-row .cs-btn { grid-column: 1 / -1; width: 100%; }
  .cs-contract { grid-template-columns: 1fr auto; row-gap: 6px; }
  .cs-contract .cs-label { grid-column: 1 / -1; }
  .cs-cell-k { display: block; font-size: 11.8px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--dim); margin-bottom: 5px; }
}
@media (min-width: 901px) { .cs-cell-k { display: none; } }

@media (max-width: 720px) {
  .cs-head { padding-left: 16px; padding-right: 16px; }
  .cs-head h1 { font-size: 33.2px; }
  .cs-head-stats { grid-template-columns: 1fr; }
  .cs-toolbar, .cs-nav { padding-left: 16px; padding-right: 16px; }
  .cs-mine, .cs-list-wrap, .cs-band, .cs-foot-in, .cs-disclaimer, .cs-close { padding-left: 16px; padding-right: 16px; }
  .cs-steps, .cs-cards { grid-template-columns: 1fr; }
  .cs-detail { grid-template-columns: 1fr; }
  .cs-foot-in { grid-template-columns: 1fr; gap: 28px; }
  .cs-foot-cols { grid-template-columns: 1fr 1fr; }
  .cs-chip-copy { display: none; }
}

/* ---------- how it works: the dark band with the three diagrams ---------- */

.hw {
  background: var(--band); color: var(--on-band);
  padding: 56px max(24px, calc((100vw - var(--wrap-head)) / 2 + 24px)) 62px;
  scroll-margin-top: 92px;
}
.hw-in { max-width: 62ch; }
.hw-tag { display: block; font-size: 11.8px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--pink); margin-bottom: 12px; }
.hw h2 { margin: 0 0 14px; font-size: 40.7px; line-height: 1.1; font-weight: 600; letter-spacing: -.03em; color: var(--pink); }
.hw-lede { margin: 0; font-size: 17.1px; line-height: 1.6; color: var(--on-band-2); }

/* the rule with its label sitting on it */
.hw-rule { position: relative; margin: 40px 0 34px; height: 1px; background: var(--band-2); }
.hw-rule span {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  background: var(--pink); color: var(--band);
  padding: 4px 13px; border-radius: 999px;
  font-size: 10.7px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}

.hw-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.hw-fig {
  border: 1px dashed var(--band-2); border-radius: 4px; padding: 10px;
  background: rgba(233, 233, 233, .03); margin-bottom: 16px;
}
.hw-fig svg { width: 100%; height: auto; }
.hw-step { display: block; font-size: 11.8px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #C9E8FF; margin-bottom: 7px; }
.hw-card h3 { margin: 0 0 8px; font-size: 19.3px; font-weight: 600; letter-spacing: -.015em; color: var(--pink); }
.hw-card p { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--on-band-2); }

@media (max-width: 980px) {
  .hw-cards { grid-template-columns: 1fr; gap: 28px; }
  .hw h2 { font-size: 32.1px; }
}
@media (max-width: 720px) { .hw { padding-left: 16px; padding-right: 16px; } }


/* A generated address is not a verified one, and should not look like a badge. */
.cs-ph {
  display: inline-block; padding: 0 6px; border-radius: 999px;
  border: 1px dashed var(--dash); color: var(--muted);
  font-family: var(--mono); font-size: 10.4px; letter-spacing: .05em; text-transform: uppercase;
}
.cs-contract .cs-ph { justify-self: start; }

/* the way out of a row and into the vault's own page */
.cs-open {
  display: inline-flex; align-items: center; gap: 7px; margin: 2px 0 18px 18px;
  font-size: 13.6px; font-weight: 500; color: var(--accent); text-decoration: none;
}
.cs-open:hover { text-decoration: underline; text-underline-offset: 3px; }

/* An address that exists, and one that does not. The second is deliberately
   not styled like a value: there is nothing there to copy. */
.ct-addr {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--mono); font-size: 12.4px; color: var(--accent);
  text-decoration: none; word-break: break-all;
}
.ct-addr:hover { text-decoration: underline; text-underline-offset: 3px; }
.ct-none {
  font-family: var(--mono); font-size: 11.6px; letter-spacing: .05em;
  text-transform: uppercase; color: var(--muted);
  border: 1px dashed var(--dash); border-radius: 5px; padding: 1px 7px;
}
