/* Bankereum · pages.css — hero and per-page layout */

/* ------------------------------------------------------------------- hero */
/* The approved banner art sits beside the copy on desktop and below it on
   mobile. The hero breaks out of main's top padding under the floating header. */
.hero {
  position: relative;
  background:
    radial-gradient(760px 520px at 84% 6%, rgba(98, 126, 234, .22), transparent 64%),
    radial-gradient(640px 460px at 10% 104%, rgba(233, 166, 62, .12), transparent 62%),
    var(--bg);
  margin-top: calc(-1 * (var(--header-h) + 34px));
  padding: calc(var(--header-h) + 46px) 0 clamp(34px, 6vh, 70px);
  /* svh, never vh: mobile Safari changes vh as the URL bar slides, which would
     reallocate both framebuffers mid-scroll */
  min-height: clamp(560px, calc(100vh - 5px), 900px);
  min-height: clamp(560px, calc(100svh - 5px), 900px);
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero-fx {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 110px), transparent 100%);
  mask-image: linear-gradient(180deg, #000 calc(100% - 110px), transparent 100%);
  /* what shows before the first frame and if WebGL2 is unavailable */
  background:
    radial-gradient(760px 520px at 84% 6%, rgba(98, 126, 234, .26), transparent 64%),
    radial-gradient(640px 460px at 10% 104%, rgba(233, 166, 62, .14), transparent 62%),
    linear-gradient(180deg, #F6F7FB, #ECEFF8);
}
.hero-fx-poster,
.hero-fx-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.hero-fx-poster {
  object-fit: cover;
  object-position: 50% 50%;
  opacity: 1;
  transition: opacity .55s ease;
}
.hero-fx-canvas {
  opacity: 0;
  transition: opacity .55s ease;
}
.hero-fx.is-live .hero-fx-canvas { opacity: 1; }
.hero-fx.is-live .hero-fx-poster { opacity: 0; }
.hero-fx.is-poster .hero-fx-canvas { opacity: 0; }
.hero-fx.is-poster .hero-fx-poster { opacity: 1; }

.hero .wrap { position: relative; z-index: 2; }
.hero-copy { max-width: min(560px, 50vw); }

.hero .pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px 6px 8px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .8);
  border: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 8px 20px -18px rgba(23, 34, 74, .5);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  backdrop-filter: blur(10px) saturate(140%);
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 20px;
}
.hero .pill img { width: 22px; height: 22px; }
.hero .pill b { color: var(--eth-deep); font-weight: 600; }

.hero h1 {
  font-weight: 760;
  margin-bottom: 16px;
}
.hero h1 .grad {
  background: linear-gradient(104deg, var(--eth-ink) 0%, var(--eth-deep) 38%, var(--eth) 68%, var(--eth-soft) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .tag {
  font-size: clamp(16.5px, 1.7vw, 19px);
  color: var(--ink-2);
  max-width: 48ch;
  margin-bottom: 24px;
  line-height: 1.55;
}
.hero .tag b { color: var(--ink); font-weight: 650; }

.hero-ca { margin-top: 18px; max-width: 540px; color: var(--eth-deep); }
.footer-token-ca { margin-top: 14px; color: #93A0BE; }
.footer-token-ca .addr { background: rgba(143, 163, 243, .06); border-color: rgba(143, 163, 243, .2); }
.footer-token-ca .addr code { color: var(--eth-pale); }
.footer-token-ca .addr .mini { color: #AAB4CB; }
.footer-token-ca .addr .mini:hover { color: #fff; background: rgba(143, 163, 243, .12); }

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.hero-facts .f {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.hero-facts .f::before {
  content: '';
  width: 5px; height: 5px;
  transform: rotate(45deg);
  background: var(--brass);
  flex: none;
}

/* The chips carry real issuer logos, so the page says in words that the art is
   decorative and points at the page where the real holdings live. */
.hero-note {
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--ink-3);
  max-width: 52ch;
}
.hero-note a { color: var(--eth-deep); }

@media (max-width: 980px) {
  /* Portrait: the copy runs in normal flow and the field gets a band of its
     own underneath, so the gem is never behind a button. The band's top is
     masked out, which hides the seam between the shader's background and the
     page gradient above it. */
  .hero {
    display: block;
    min-height: 0;
    padding-bottom: min(460px, 52vh);
  }
  .hero-fx {
    top: auto;
    height: min(460px, 52vh);
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 24%, #000 calc(100% - 70px), transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0, #000 24%, #000 calc(100% - 70px), transparent 100%);
  }
  .hero-copy { max-width: none; }
  .hero .tag { max-width: 42ch; }
  .hero .wrap { width: 100%; }
}
@media (max-width: 560px) {
  .hero { padding-bottom: min(400px, 48vh); }
  .hero-fx { height: min(400px, 48vh); }
  .hero .tag { font-size: 16px; }
}

/* ----------------------------------------------------------- page headers */
.page-head {
  padding: 6px 0 30px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 34px;
}
.page-head h1 { font-size: clamp(31px, 4vw, 44px); margin-bottom: 12px; }
.page-head .lede { max-width: 68ch; }
.page-head .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  align-items: center;
}

/* ----------------------------------------------- long form with side index */
.doc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 232px;
  gap: 48px;
  align-items: start;
}
@media (max-width: 1000px) { .doc-layout { grid-template-columns: minmax(0, 1fr); gap: 0; } }
.doc-index {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  border-left: 1px solid var(--line);
  padding-left: 18px;
}
@media (max-width: 1000px) { .doc-index { display: none; } }
.doc-index .eyebrow { margin-bottom: 10px; }
.doc-index ol { list-style: none; margin: 0; padding: 0; counter-reset: dx; }
.doc-index li { margin: 0 0 3px; }
.doc-index a {
  display: block;
  font-size: 13.5px;
  color: var(--ink-3);
  padding: 5px 8px;
  border-radius: 7px;
  line-height: 1.35;
}
.doc-index a:hover { background: var(--eth-wash); color: var(--eth-ink); text-decoration: none; }
.doc-index a.active { color: var(--eth-ink); background: var(--eth-wash); font-weight: 600; }

/* --------------------------------------------------------- staking page  */
.flow-two {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 22px;
  align-items: start;
}
@media (max-width: 920px) { .flow-two { grid-template-columns: minmax(0, 1fr); } }
/* The connect view fits the viewport; a connected account remains in the normal
   flow so its transaction forms are reachable on shorter screens. */
@media (min-width: 921px) {
  .flow-two > .claim-card.is-disconnected { position: sticky; top: calc(var(--header-h) + 24px); }
}

.claim-card {
  padding: 0;
  overflow: hidden;
  background: #fff;
  border-color: rgba(37, 49, 91, .16);
  box-shadow: 0 20px 50px -30px rgba(18, 26, 54, .42), 0 2px 6px rgba(18, 26, 54, .04);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.claim-card .position-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 25px 26px 22px;
  background: #171f38;
  border-bottom: 1px solid rgba(215, 225, 255, .1);
}
.claim-card .position-heading { min-width: 0; }
.claim-card .position-heading .eyebrow {
  color: #9caad1;
  font-size: 9.5px;
  letter-spacing: .16em;
  margin-bottom: 8px;
}
.claim-card .position-heading .eyebrow::before {
  width: 12px;
  background: #839afa;
  transform: none;
}
.claim-card .position-heading h3 { color: #f7f9ff; font-size: 20px; font-weight: 650; }
.claim-card .position-network {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #c1cbee;
  font-size: 10px;
  font-family: var(--f-mono);
  border: 1px solid rgba(193, 203, 238, .18);
  border-radius: 999px;
  padding: 6px 9px;
  white-space: nowrap;
}
.claim-card .position-network::before {
  content: '';
  width: 5px;
  height: 7px;
  background: #9badf3;
  clip-path: polygon(50% 0, 100% 62%, 50% 100%, 0 62%);
}
.claim-card .position-address { grid-column: 1 / -1; min-width: 0; }
.claim-card .position-address:empty { display: none; }
.claim-card .position-address .addr {
  background: rgba(255, 255, 255, .05);
  border-color: rgba(193, 203, 238, .15);
  padding: 3px 5px 3px 9px;
}
.claim-card .position-address .addr code { color: #cdd7f5; }
.claim-card .position-address .addr .mini { color: #aab9e5; }
.claim-card .position-address .addr .mini:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.claim-card .position-body { padding: 26px; min-width: 0; }
.claim-card .position-summary {
  position: relative;
  isolation: isolate;
  margin: -26px -26px 25px;
  padding: 25px 26px 27px;
  color: #f7f9ff;
  background: radial-gradient(ellipse at 110% 0%, rgba(98, 126, 234, .3), transparent 67%), #171f38;
  border-bottom: 1px solid rgba(20, 34, 80, .1);
}
.claim-card .position-summary-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 9px;
  position: relative;
  z-index: 1;
  margin-bottom: 19px;
}
.claim-card .position-label { color: #c1cbee; font-size: 12px; font-weight: 500; }
.claim-card .position-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #b1bee1;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: .035em;
}
.claim-card .position-status::before {
  content: '';
  width: 5px;
  height: 5px;
  flex: none;
  border-radius: 50%;
  background: #8798c7;
}
.claim-card .position-status.is-live { color: #93e3c2; }
.claim-card .position-status.is-live::before { background: #65d8aa; }
.claim-card .position-status.is-retry { color: #ffd18a; }
.claim-card .position-status.is-retry::before { background: #e9a63e; }
.claim-card .position-emblem {
  position: absolute;
  right: 20px;
  top: 42px;
  width: 118px;
  height: 118px;
  object-fit: contain;
  opacity: .18;
  z-index: -1;
  pointer-events: none;
}
.claim-card .claim-amount {
  position: relative;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
  margin-bottom: 10px;
}
.claim-card .claim-amount .big {
  font-family: var(--f-display);
  font-weight: 650;
  font-size: clamp(32px, 3.3vw, 44px);
  letter-spacing: -.045em;
  color: #f7f9ff;
  line-height: 1.12;
  font-variant-numeric: tabular-nums;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.claim-card .claim-amount .big.od { flex-wrap: wrap; }
.claim-card .claim-amount .u { font-family: var(--f-mono); font-weight: 500; font-size: 14px; color: #aab9e5; letter-spacing: .06em; }
.claim-card .position-value-note { position: relative; color: #9eadd6; font-size: 12px; line-height: 1.6; margin: 0; min-height: 19px; max-width: 38ch; }
.claim-card .position-connect h4 { font-size: 23px; font-weight: 650; letter-spacing: -.035em; margin-bottom: 9px; }
.claim-card .position-connect p { color: var(--ink-3); font-size: 14px; line-height: 1.65; margin-bottom: 21px; max-width: 43ch; }
.claim-card .position-connect-btn {
  width: 100%;
  min-height: 49px;
  border-radius: 12px;
  justify-content: flex-start;
  padding: 13px 16px;
  gap: 11px;
  font-size: 14px;
  box-shadow: 0 7px 14px -10px rgba(59, 79, 184, .75);
}
.claim-card .position-connect-btn > :last-child { margin-left: auto; }
.claim-card .position-connect-btn svg { width: 18px; height: 18px; }
.claim-card .position-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 25px;
  padding-top: 19px;
  border-top: 1px solid var(--line);
}
.claim-card .position-details > div { display: flex; flex-direction: column; min-width: 0; gap: 5px; }
.claim-card .position-details .k { color: var(--ink-3); font-size: 11px; }
.claim-card .position-details .v { font-family: var(--f-mono); font-weight: 600; font-size: 13px; color: var(--ink-2); }
.claim-card .position-actions { align-items: flex-start; gap: 10px; margin-top: 17px; }
.claim-card .position-actions > div { flex: 1 1 110px; min-width: 0; }
.claim-card .position-actions .btn { width: 100%; min-height: 44px; border-radius: 10px; }
.claim-card .btn-reason { font-family: var(--f-body); font-size: 11.5px; line-height: 1.5; letter-spacing: 0; align-items: baseline; }
.claim-card .btn-reason::before { align-self: flex-start; margin-top: 5px; }

@media (max-width: 560px) {
  .claim-card .position-head { padding: 21px 20px 19px; gap: 13px; }
  .claim-card .position-heading h3 { font-size: 18px; }
  .claim-card .position-heading .eyebrow { font-size: 9px; }
  .claim-card .position-network { font-size: 9px; padding: 6px 8px; }
  .claim-card .position-body { padding: 20px; }
  .claim-card .position-summary { margin: -20px -20px 22px; padding: 22px 20px 24px; }
  .claim-card .position-summary-top { margin-bottom: 17px; }
  .claim-card .position-emblem { width: 100px; height: 100px; right: 14px; top: 42px; }
  .claim-card .claim-amount .big { font-size: clamp(30px, 7.6vw, 42px); }
  .claim-card .claim-amount .u { font-size: 12px; }
  .claim-card .position-connect h4 { font-size: 22px; }
  .claim-card .position-connect p { font-size: 13.5px; }
}

.state-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  overflow: hidden;
}
@media (max-width: 480px) { .state-grid { grid-template-columns: minmax(0, 1fr); } }
.state-grid > div { background: rgba(255, 255, 255, .86); padding: 13px 15px; }
.state-grid .k {
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: block;
  margin-bottom: 5px;
}
.state-grid .v {
  font-weight: 650;
  font-size: 15.5px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.state-grid .v.muted { color: var(--ink-3); font-weight: 500; font-size: 13.5px; font-family: var(--f-mono); }
.claim-card .state-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); background: #edf0f7; border-color: #e7ebf4; border-radius: 12px; }
.claim-card .state-grid > div { min-width: 0; padding: 14px; background: #f8f9fc; }
.claim-card .state-grid .k { font-family: var(--f-body); font-weight: 500; font-size: 11px; letter-spacing: 0; text-transform: none; margin-bottom: 7px; }
.claim-card .state-grid .v { display: block; font-size: 14px; line-height: 1.5; }
.claim-card .state-grid .v.muted { font-family: var(--f-body); font-size: 12px; }
@media (max-width: 380px) {
  .claim-card .state-grid > div { padding: 12px 10px; }
  .claim-card .state-grid .v { font-size: 12.5px; }
  .claim-card .position-status { font-size: 8.5px; }
}

/* rate-cap timeline */
.cap-track {
  position: relative;
  margin: 26px 0 10px;
  height: 78px;
  padding: 0 4px;
}
.cap-track .rail {
  position: absolute;
  left: 4px; right: 4px; top: 26px;
  height: 9px;
  border-radius: 5px;
  background: linear-gradient(90deg,
    rgba(233, 166, 62, .9) 0%, rgba(233, 166, 62, .9) 22%,
    rgba(98, 126, 234, .85) 22%, rgba(98, 126, 234, .85) 66%,
    rgba(143, 163, 243, .5) 66%, rgba(143, 163, 243, .5) 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset;
}
.cap-track .rail .now {
  position: absolute;
  top: -7px;
  width: 3px;
  height: 23px;
  margin-left: -1.5px;
  background: var(--ink);
  border-radius: 2px;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .85);
}
.cap-track .tick {
  position: absolute;
  top: 20px;
  width: 1px;
  height: 21px;
  background: rgba(20, 34, 80, .3);
}
.cap-track .mark {
  position: absolute;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .08em;
  color: var(--ink-3);
  white-space: nowrap;
  line-height: 1.3;
}
.cap-track .mark.above { top: 0; transform: translateX(-50%); }
.cap-track .mark.below { top: 44px; transform: translateX(-50%); }
.cap-track .mark.start { transform: none; }
.cap-track .mark.end { transform: translateX(-100%); text-align: right; }
.cap-track .mark b { color: var(--ink); font-weight: 600; }

/* --------------------------------------------------------------- basket   */
.nav-head {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 18px;
  margin-bottom: 26px;
}

.legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; }
.legend .l { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink-3); }
.legend .sw { width: 12px; height: 12px; border-radius: 4px; flex: none; }

.price-src {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--r-pill);
  white-space: nowrap;
}
.price-src.feed { background: rgba(22, 165, 113, .12); color: var(--up-ink); }
/* a pool price is not an oracle, so it never borrows the green of a feed */
.price-src.pool { background: rgba(94, 104, 135, .13); color: var(--ink-2); }
.price-src.ref { background: rgba(233, 166, 62, .15); color: var(--brass-ink); }
.price-src.stale { background: rgba(224, 72, 77, .12); color: var(--down-ink); }
.price-src.none { background: var(--steel-100); color: var(--ink-3); }

/* ---------------------------------------------------------- protocol page */
.fee-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
  margin: 22px 0;
}
.split-card {
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 18px;
  background: rgba(255, 255, 255, .8);
  position: relative;
  overflow: hidden;
}
.split-card .pc {
  font-family: var(--f-display);
  font-weight: 760;
  font-size: 34px;
  letter-spacing: -0.035em;
  line-height: 1;
  background: linear-gradient(104deg, var(--eth-ink), var(--eth));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.split-card.brass .pc { background: linear-gradient(104deg, var(--brass-deep), var(--brass)); -webkit-background-clip: text; background-clip: text; }
.split-card .lb {
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 10px 0 6px;
}
.split-card p { font-size: 13.5px; color: var(--ink-2); margin: 0; }

/* ------------------------------------------------------------- rules page */
.power-table td:first-child { width: 36%; }
.verbatim {
  font-family: var(--f-mono);
  font-size: 12.5px;
  background: var(--eth-wash);
  border: 1px solid rgba(98, 126, 234, .2);
  border-radius: 6px;
  padding: 2px 7px;
  color: var(--eth-ink);
  display: inline-block;
  overflow-wrap: anywhere;
}

.addr-table td { font-size: 13.5px; }
.addr-table .nm { font-weight: 650; color: var(--ink); }
.addr-table .rl { color: var(--ink-3); font-size: 12.5px; }

/* --------------------------------------------------------------- utility  */
.stack-8 > * + * { margin-top: 8px; }
.stack-12 > * + * { margin-top: 12px; }
.stack-16 > * + * { margin-top: 16px; }
.stack-24 > * + * { margin-top: 24px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.muted { color: var(--ink-3); }
.small { font-size: 13.5px; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }

/* ------------------------------------------------------------ NAV donut */
.donut-wrap {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}
@media (max-width: 640px) {
  .donut-wrap { grid-template-columns: minmax(0, 1fr); gap: 18px; justify-items: center; }
}
.donut { position: relative; width: 220px; max-width: 100%; }
.donut-svg { width: 100%; height: auto; display: block; }
.donut-centre {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  pointer-events: none;
}
.donut-centre .dc-top {
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.donut-centre .dc-val {
  font-family: var(--f-display);
  font-weight: 760;
  font-size: 24px;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  margin: 3px 0 2px;
}
.donut-centre .dc-sub { font-size: 11.5px; color: var(--ink-3); }
.donut-legend {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(188px, 1fr));
  gap: 8px 18px;
  width: 100%;
}
.dl-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
}
.dl-row .sw { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.dl-row .nm { font-weight: 600; font-size: 13.5px; color: var(--ink); }
.dl-row .pc {
  margin-left: auto;
  font-family: var(--f-mono);
  font-size: 12.5px;
  color: var(--eth-deep);
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------- countdown ring chip */
.cd-chip { display: inline-flex; align-items: center; gap: 10px; }
.cd-ring { width: 34px; height: 34px; }
.cd-ring .cd-track { stroke: rgba(20, 34, 80, .14); }
.cd-ring .cd-bar { stroke: var(--brass); stroke-linecap: round; }
/* no window left to count down: the ring would read as a stalled spinner */
.cd-ring.is-off { display: none; }

/* ------------------------------------------------------------- staking */
.stake-forms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.amt-label {
  display: block;
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 8px;
}
.amt-field {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 4px 4px 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.amt-field:focus-within {
  border-color: var(--eth);
  box-shadow: 0 0 0 3px rgba(98, 126, 234, .16);
}
.amt-input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  outline: 0;
  background: none;
  font-family: var(--f-display);
  font-weight: 650;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  padding: 8px 0;
}
.amt-input::placeholder { color: var(--steel-300); font-weight: 500; }
.amt-unit {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--ink-3);
  flex: none;
}
.amt-max {
  flex: none;
  border: 1px solid var(--line);
  background: var(--eth-wash);
  color: var(--eth-deep);
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 7px 11px;
  border-radius: 7px;
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
}
.amt-max:hover { background: var(--eth-pale); color: var(--eth-ink); }
.amt-help { font-size: 12.5px; color: var(--ink-3); margin-top: 7px; min-height: 1.3em; }

.stream-rate {
  font-family: var(--f-display);
  font-weight: 760;
  font-size: clamp(24px, 3.2vw, 34px);
  letter-spacing: -0.032em;
  line-height: 1.08;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  margin: 4px 0 8px;
  overflow-wrap: anywhere;
}
.stream-rate.is-pending {
  font-family: var(--f-mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--ink-3);
}
.stake-forms .btn-row { gap: 10px; }
.stake-forms .btn-row > div { flex: 1 1 130px; min-width: 0; }
.stake-forms .btn-row .btn { width: 100%; }
.claim-card .stake-forms {
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  margin-top: 23px;
  padding-top: 23px;
}
.claim-card .stake-forms > div { min-width: 0; }
.claim-card .amt-label { font-family: var(--f-body); font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ink-2); }
.claim-card .amt-field { min-height: 51px; background: #f8f9fc; border-color: #e0e5f0; border-radius: 11px; }
.claim-card .amt-field:focus-within { border-color: var(--eth); background: #fff; }
.claim-card .amt-max { min-height: 34px; font-size: 10px; letter-spacing: .02em; padding: 7px 10px; }
.claim-card .amt-unit { font-size: 10px; letter-spacing: .02em; }
.claim-card .amt-help { font-size: 11.5px; line-height: 1.5; margin-top: 8px; }
.claim-card .stake-forms .btn-row { align-items: flex-start; }
.claim-card .stake-forms .btn-row > div { flex-basis: 110px; }
.claim-card .stake-forms .btn { min-height: 44px; border-radius: 10px; font-size: 13px; }
