/* =====================================================================
   Lokal — design system
   Dark ground, green aurora, glass surfaces.
   Type: General Sans (UI + display, Indian Type Foundry) with Sentient Italic
   for single accent words. Mono for addresses, hashes and code only.
   ===================================================================== */

/* Self-hosted type (Indian Type Foundry, Fontshare free licence): identical on every device, no third-party request. */
@font-face { font-family: "General Sans"; src: url("fonts/GeneralSans-300.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "General Sans"; src: url("fonts/GeneralSans-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "General Sans"; src: url("fonts/GeneralSans-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "General Sans"; src: url("fonts/GeneralSans-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Sentient"; src: url("fonts/Sentient-500-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }

:root {
  /* color. Refined 21 Nov 2026: a deeper, calmer green ground, text that clears WCAG AA everywhere (text-3 is
     about 6.5:1 on the ground), and Celo yellow kept for the few things that matter (the primary action, the one
     cursive accent word, the current page marker). */
  --bg: #06110c;          /* Night: the ground, a green-black */
  --bg-raise: #0a1a12;    /* Canopy: raised bands and panels */
  --frame: #0c1f16;       /* Pine: product frames */
  --surface: rgba(255, 255, 255, .04);
  --surface-2: rgba(255, 255, 255, .07);
  --surface-3: rgba(255, 255, 255, .11);
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .17);
  --text: #eef4ef;        /* Fog */
  --text-2: rgba(238, 244, 239, .80);
  --text-3: rgba(238, 244, 239, .64);
  --green: #00a862;
  --green-deep: #00512f;
  --mint: #6ff0b0;
  --mint-ink: #d9f7e8;
  --warn: #ffcc7a;
  --err: #ff8f80;
  --on-light: #07120c;
  /* Celo yellow: the brand accent (primary actions, the one accent word, eyebrows, the rails in the logo).
     Green/mint stay for live data and success states, so each colour has one job. */
  --celo: #fcff52;
  --celo-hover: #f0f33c;
  --on-celo: #0b0f00;

  /* type */
  --sans: "General Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Sentient", "Times New Roman", Georgia, serif;
  --mono: ui-monospace, SFMono-Regular, "Cascadia Mono", Menlo, Consolas, monospace;
  --fs-display: clamp(44px, 7.2vw, 92px);
  --fs-h1: clamp(36px, 5vw, 60px);
  --fs-h2: clamp(24px, 2.6vw, 32px);
  --fs-h3: 18px;
  --fs-body: 15.5px;
  --fs-small: 13.5px;
  --fs-micro: 12.5px;

  /* shape + space */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-pill: 999px;
  --container: 1120px;
  --gutter: 20px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --ease: cubic-bezier(.2, .7, .2, 1);
  /* motion: calm, no bounce; transform and opacity only */
  --calm: cubic-bezier(.25, .8, .25, 1);
  --t-calm: .4s;
  --t-press: 100ms;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--text);
  font: 400 var(--fs-body)/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* fallback for Safari < 16, which doesn't know "clip" */
  overflow-x: clip; /* preferred: "hidden" makes body a scroll container and breaks position:sticky in Safari */
}
button, input, select, textarea, output { font-family: inherit; } /* Safari doesn't inherit fonts into form controls */
main { flex: 1; position: relative; z-index: 1; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--celo); color: var(--on-celo); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg.i { width: 16px; height: 16px; flex: none; display: inline-block; vertical-align: -3px; }
svg.i-lg { width: 20px; height: 20px; }

/* ---------- utilities ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); font-size: 13px; letter-spacing: 0; }
.muted { color: var(--text-3); }
.soft { color: var(--text-2); }
.small { font-size: var(--fs-small); }
.micro { font-size: var(--fs-micro); }
.mint { color: var(--mint); }
.link { color: var(--mint); }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-micro); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--celo); }
.stack { display: grid; gap: 18px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.between { justify-content: space-between; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.grid-main { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 18px; align-items: start; }

/* ---------- aurora ground ---------- */
.sky { position: absolute; inset: 0 0 auto 0; height: 1100px; overflow: hidden; pointer-events: none; z-index: 0; }
.sky.sky-sm { height: 560px; opacity: .8; }
.sky::before {
  content: ""; position: absolute; inset: -20% -10% 0 -10%;
  background:
    radial-gradient(42% 38% at 22% 18%, rgba(111, 240, 176, .30), transparent 70%),
    radial-gradient(55% 45% at 45% 26%, rgba(0, 150, 88, .50), transparent 72%),
    radial-gradient(60% 50% at 80% 10%, rgba(0, 81, 47, .9), transparent 70%),
    radial-gradient(70% 40% at 50% 62%, rgba(0, 120, 70, .35), transparent 75%),
    radial-gradient(28% 24% at 86% 8%, rgba(252, 255, 82, .22), transparent 72%);
  filter: blur(30px) saturate(115%);
  animation: sky-drift 24s ease-in-out infinite alternate;
}
.sky::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(1px 1px at 12% 22%, rgba(255,255,255,.7), transparent 60%),
    radial-gradient(1px 1px at 68% 14%, rgba(255,255,255,.55), transparent 60%),
    radial-gradient(1px 1px at 84% 38%, rgba(255,255,255,.6), transparent 60%),
    radial-gradient(1px 1px at 33% 47%, rgba(255,255,255,.45), transparent 60%),
    radial-gradient(1px 1px at 91% 66%, rgba(255,255,255,.5), transparent 60%),
    radial-gradient(1px 1px at 7% 71%, rgba(255,255,255,.45), transparent 60%),
    radial-gradient(1.5px 1.5px at 56% 8%, rgba(255,255,255,.6), transparent 60%),
    linear-gradient(to bottom, transparent 35%, var(--bg) 92%);
}
@keyframes sky-drift { from { transform: translate3d(-2%, 0, 0) scale(1); } to { transform: translate3d(3%, 2%, 0) scale(1.06); } }

/* ---------- nav ---------- */
.nav-wrap { position: sticky; top: 14px; z-index: 50; display: flex; justify-content: center; padding: 14px 16px 0; }
.nav {
  position: relative; display: flex; align-items: center; gap: 2px; max-width: 100%;
  padding: 6px 6px 6px 8px; border-radius: var(--r-pill);
  background: rgba(8, 18, 13, .66); border: 1px solid var(--line); box-shadow: var(--shadow);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
}
.nav-brand { display: flex; align-items: center; gap: 9px; padding-right: 10px; font-weight: 600; font-size: 14.5px; white-space: nowrap; }
.nav-brand img { width: 30px; height: 30px; border-radius: 9px; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a { color: var(--text-2); font-size: 14px; font-weight: 500; padding: 8px 12px; border-radius: var(--r-pill); transition: color 120ms ease, background-color 120ms ease; white-space: nowrap; }
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-links a[aria-current="page"] { color: var(--text); background: var(--surface-3); }
.nav .btn { margin-left: 6px; }
.nav .menu-btn { display: none; margin-left: 6px; }

/* =====================================================================
   Sidebar: frosted glass over the aurora.
   Desktop (>=1100px): docked; collapses to an icon rail (state remembered).
   Below 1100px: an off-canvas drawer over a blurred scrim.
   Lives OUTSIDE .nav-wrap: a backdrop-filter ancestor would become the
   containing block for this position:fixed panel and break it.
   ===================================================================== */
:root { --sb-w: 264px; --sb-rail: 76px; --sb-ease: cubic-bezier(.22, .8, .24, 1); }
.sidebar {
  position: fixed; inset: 12px auto 12px 12px; z-index: 60; width: var(--sb-w);
  display: flex; flex-direction: column; gap: 6px; padding: 14px 12px;
  border-radius: 24px; border: 1px solid rgba(255, 255, 255, .09);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .015) 38%, rgba(255, 255, 255, 0)),
    rgba(8, 20, 14, .52);
  backdrop-filter: blur(24px) saturate(165%); -webkit-backdrop-filter: blur(24px) saturate(165%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), inset 1px 0 0 rgba(255, 255, 255, .04), 0 24px 60px rgba(0, 0, 0, .45);
  overflow: hidden;
}
.sb-ready .sidebar { transition: width .34s var(--sb-ease), transform .38s var(--sb-ease), padding .34s var(--sb-ease); }

.sb-head { display: flex; align-items: center; gap: 8px; padding: 2px 2px 12px; border-bottom: 1px solid rgba(255, 255, 255, .07); margin-bottom: 6px; }
.sb-brand { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; font-weight: 600; font-size: 15px; white-space: nowrap; }
.sb-brand img { width: 34px; height: 34px; flex: none; filter: drop-shadow(0 6px 14px rgba(0, 168, 98, .35)); }
.sb-head .icon-btn { border-radius: 10px; }
.sidebar .sb-close { display: none; } /* phone/tablet only; .sidebar raises specificity above .icon-btn */

.sb-nav { flex: 1; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; padding: 2px; margin: -2px; }
.sb-nav::-webkit-scrollbar { display: none; }
.sb-group { margin: 14px 10px 6px; font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); white-space: nowrap; }
.sb-group:first-child { margin-top: 4px; }
.sb-sep { flex: none; height: 1px; margin: 8px 12px; background: rgba(255, 255, 255, .08); } /* quiet break before Docs */
.sb-nav a {
  position: relative; display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px;
  border-radius: 14px; color: var(--text-2); font-weight: 500; font-size: 14.5px; white-space: nowrap;
  transition: background-color 140ms ease, color 140ms ease;
}
.sb-nav a svg.i { width: 19px; height: 19px; color: var(--text-3); transition: color 140ms ease; }
.sb-nav a:hover { background: rgba(255, 255, 255, .06); color: var(--text); }
.sb-nav a:hover svg.i { color: var(--text); }
.sb-nav a[aria-current="page"] {
  color: var(--text);
  background: linear-gradient(90deg, rgba(252, 255, 82, .10), rgba(255, 255, 255, .05) 60%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07);
}
.sb-nav a[aria-current="page"] svg.i { color: var(--celo); }
.sb-nav a[aria-current="page"]::before { /* Celo-yellow indicator */
  content: ""; position: absolute; left: -2px; top: 11px; bottom: 11px; width: 3px; border-radius: 3px;
  background: var(--celo); box-shadow: 0 0 12px rgba(252, 255, 82, .55);
}
.sb-nav a .ext { margin-left: auto; width: 14px; height: 14px; opacity: .55; }
.sb-nav a:focus-visible { outline-offset: -2px; } /* draw inside: the scroll container would clip an outer ring */
.sb-label { transition: opacity .2s ease; }

.sb-foot { margin-top: 8px; }
.sb-status {
  display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px;
  background: rgba(0, 0, 0, .24); border: 1px solid rgba(255, 255, 255, .07); white-space: nowrap; min-width: 0;
}
.live-dot { position: relative; width: 10px; height: 10px; flex: none; border-radius: 50%; background: var(--mint); margin: 0 6px 0 5px; }
.live-dot::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--mint); opacity: 0; animation: live-ping 2.4s var(--ease) infinite; }
@keyframes live-ping { 0% { transform: scale(.5); opacity: .7; } 100% { transform: scale(1.4); opacity: 0; } }
.sb-status b { display: block; font-size: 13px; font-weight: 600; }
.sb-status span.sb-label { display: block; font-size: 12.5px; color: var(--text-3); font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; }

/* ---------- signed-in user: avatar, sidebar chip, top-bar button, menu ---------- */
/* Always a true circle: fixed square box, no padding, never stretched by a flex row, icon centred on both axes.
   (It used to carry the class "empty", which also matched the generic .empty utility's padding and made an oval.) */
.np-avatar {
  --h1: 150; --h2: 95; --h3: 60;
  position: relative; display: inline-grid; place-items: center; flex: none; align-self: center;
  width: 34px; height: 34px; min-width: 0; min-height: 0; aspect-ratio: 1; padding: 0; margin: 0;
  border-radius: 50%; line-height: 0;
  background:
    radial-gradient(circle at 30% 25%, hsla(var(--h1), 95%, 78%, .9), transparent 55%),
    conic-gradient(from 210deg, hsl(var(--h1), 80%, 52%), hsl(var(--h2), 85%, 50%), hsl(var(--h3), 90%, 56%), hsl(var(--h1), 80%, 52%));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2), 0 4px 14px rgba(0, 0, 0, .35);
}
.np-avatar svg.i { display: block; width: 17px; height: 17px; margin: 0; vertical-align: 0; }
.np-avatar.lg { width: 42px; height: 42px; }
.np-avatar.is-anon { background: rgba(252, 255, 82, .1); color: var(--celo); box-shadow: inset 0 0 0 1px rgba(252, 255, 82, .3); }
.np-tagname { font-family: var(--serif); font-style: italic; font-weight: 500; letter-spacing: -0.005em; }

/* sidebar account chip: one row, the same 44px rhythm as the nav items */
.sb-user { position: relative; margin-bottom: 6px; }
.sb-user-chip {
  position: relative; display: flex; align-items: center; gap: 11px; width: 100%; min-width: 0; min-height: 44px; margin: 0;
  padding: 5px 10px 5px 5px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .035); color: var(--text);
  font: inherit; text-align: left; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 140ms ease, border-color 140ms ease;
}
.sb-user-chip .np-avatar { width: 32px; height: 32px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
.sb-user-chip .np-avatar.is-anon { box-shadow: inset 0 0 0 1px rgba(252, 255, 82, .3); transition: background-color 140ms ease; }
.sb-user-chip:hover { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .14); }
.sb-user-chip:hover .np-avatar.is-anon { background: rgba(252, 255, 82, .18); }
.sb-user-chip[aria-expanded="true"] { background: rgba(255, 255, 255, .08); border-color: var(--line-strong); }
.sb-user-chip[aria-busy="true"] { opacity: .7; cursor: progress; }
.sb-user-chip:focus-visible { outline-offset: -2px; border-radius: 14px; }
.sb-user-text { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.2; }
.sb-user-text b { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.sb-user-text b.np-tagname { font-size: 15.5px; font-weight: 500; line-height: 1.1; color: var(--celo); }
.sb-user-text b.mono { font-size: 12.5px; font-weight: 500; }
.sb-user-text > span { font-size: 12px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; }
.sb-user-more { flex: none; margin-left: auto; width: 15px; height: 15px; color: var(--text-3); }

/* top bar (below 1100px): a quiet outlined "Sign in", or the avatar once signed in */
.nav-user { position: relative; display: none; margin-left: 6px; }
.nav-user-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 14px 0 11px;
  border: 0; border-radius: var(--r-pill); font: 500 13.5px/1 var(--sans); cursor: pointer; white-space: nowrap;
  background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: background-color 120ms ease, transform 120ms var(--ease);
}
.nav-user-btn:hover { background: rgba(255, 255, 255, .06); }
.nav-user-btn:active { transform: scale(.97); }
.nav-user-btn.signed-out svg.i { width: 17px; height: 17px; color: var(--celo); }
.nav-user-btn:not(.signed-out) { width: 38px; height: 38px; padding: 0; border-radius: 50%; box-shadow: none; }
.nav-user-btn:not(.signed-out):hover { background: transparent; }
.nav-user-btn:not(.signed-out) .np-avatar { width: 32px; height: 32px; transition: box-shadow 140ms ease; }
.nav-user-btn:not(.signed-out):hover .np-avatar { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px rgba(255, 255, 255, .18); }
.nav-user-btn[aria-expanded="true"] .np-avatar { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px rgba(252, 255, 82, .6); }

.np-menu {
  position: absolute; z-index: 70; left: 0; right: 0; bottom: calc(100% + 8px);
  display: grid; gap: 2px; padding: 6px; border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, 0) 40%), rgba(8, 20, 14, .97);
  border: 1px solid rgba(255, 255, 255, .1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 24px 60px rgba(0, 0, 0, .55);
  transform-origin: bottom center; animation: np-menu-in .18s var(--ease);
}
.np-menu[hidden] { display: none; }
.nav-user .np-menu { left: auto; right: 0; bottom: auto; top: calc(100% + 10px); width: min(272px, calc(100vw - 24px)); transform-origin: top right; }
.np-menu-head { display: flex; align-items: center; gap: 12px; padding: 8px 10px 12px; margin-bottom: 4px; border-bottom: 1px solid var(--line); min-width: 0; }
.np-menu-who { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.np-menu-who b { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 17px; color: var(--celo); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.np-menu-who .mono { color: var(--text-3); font-size: 12px; }
.np-menu-item {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 0 10px; border: 0; border-radius: 11px;
  background: transparent; color: var(--text-2); font: 500 14px/1.2 var(--sans); text-align: left; cursor: pointer; white-space: nowrap;
}
.np-menu-item:hover { background: rgba(255, 255, 255, .06); color: var(--text); }
.np-menu-item svg.i { color: var(--text-3); }
.np-menu-item:hover svg.i { color: var(--celo); }
.np-menu-item:focus-visible { outline-offset: -2px; }
.np-menu-sep { border: 0; height: 1px; background: var(--line); margin: 4px 6px; }
@keyframes np-menu-in { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }
@media (max-width: 1099.98px) { .nav-user { display: block; } }
@media (min-width: 1100px) {
  /* icon rail: just the centred circle, with the same hover tooltip as the nav items */
  html[data-sb="rail"] .sb-user-chip { justify-content: center; padding: 5px 0; gap: 0; background: transparent; border-color: transparent; }
  html[data-sb="rail"] .sb-user-chip:hover, html[data-sb="rail"] .sb-user-chip[aria-expanded="true"] { background: rgba(255, 255, 255, .06); }
  html[data-sb="rail"] .sb-user-text, html[data-sb="rail"] .sb-user-more { display: none; }
  html[data-sb="rail"] .np-menu { left: calc(100% + 14px); right: auto; bottom: 0; width: 260px; transform-origin: bottom left; }
}
@media (max-width: 640px) {
  .nav-user-btn { height: 40px; }
  .nav-user-btn:not(.signed-out) { width: 40px; height: 40px; }
}
@media (max-width: 359.98px) { /* the narrowest phones: the icon alone, still labelled for screen readers */
  .nav-user-btn.signed-out { width: 40px; padding: 0; }
  .nav-user-btn.signed-out span { display: none; }
}
@media (prefers-reduced-motion: reduce) { .np-menu { animation: none; } .nav-user-btn, .sb-user-chip, .sb-user-chip .np-avatar, .nav-user-btn .np-avatar { transition: none; } }

/* desktop: docked, pushes the page */
@media (min-width: 1100px) {
  .nav-wrap, main, .site-footer { margin-left: calc(var(--sb-w) + 12px); }
  .sb-ready .nav-wrap, .sb-ready main, .sb-ready .site-footer { transition: margin-left .34s var(--sb-ease); }
  html[data-sb="rail"] { --sb-w: var(--sb-rail); }
  html[data-sb="rail"] .sidebar { padding-left: 10px; padding-right: 10px; overflow: visible; }
  html[data-sb="rail"] .sb-label, html[data-sb="rail"] .sb-group, html[data-sb="rail"] .sb-nav a .ext { opacity: 0; pointer-events: none; }
  html[data-sb="rail"] .sb-group { height: 1px; margin: 10px 14px; background: rgba(255, 255, 255, .08); color: transparent; overflow: hidden; }
  html[data-sb="rail"] .sb-head { flex-direction: column; gap: 10px; }
  html[data-sb="rail"] .sb-brand { flex: none; gap: 0; }
  html[data-sb="rail"] .sb-brand .sb-label { display: none; }
  html[data-sb="rail"] .sb-nav a .ext { display: none; }
  .nav-brand { display: none; } /* the docked sidebar carries the brand */
  html[data-sb="rail"] .sb-nav { overflow: visible; }
  html[data-sb="rail"] .sb-nav a { justify-content: center; padding: 0; gap: 0; }
  html[data-sb="rail"] .sb-nav a .sb-label { width: 0; overflow: hidden; }
  html[data-sb="rail"] .sb-status { justify-content: center; padding: 14px 0; }
  html[data-sb="rail"] .sb-status > div { display: none; }
  html[data-sb="rail"] .sb-collapse svg { transform: rotate(180deg); }
  /* rail tooltips */
  html[data-sb="rail"] .sb-nav a::after, html[data-sb="rail"] .sb-user-chip::after {
    content: attr(data-label); position: absolute; left: calc(100% + 14px); top: 50%; transform: translate(-4px, -50%);
    padding: 7px 11px; border-radius: 10px; font-size: 13px; font-weight: 500; color: var(--text); white-space: nowrap;
    background: rgba(8, 20, 14, .92); border: 1px solid var(--line); box-shadow: var(--shadow);
    opacity: 0; pointer-events: none; transition: opacity .14s ease, transform .14s ease;
  }
  html[data-sb="rail"] .sb-nav a:hover::after, html[data-sb="rail"] .sb-nav a:focus-visible::after,
  html[data-sb="rail"] .sb-user-chip:hover::after, html[data-sb="rail"] .sb-user-chip:focus-visible::after { opacity: 1; transform: translate(0, -50%); }
  html[data-sb="rail"] .sb-user-chip[aria-expanded="true"]::after { opacity: 0; } /* the open menu already says who you are */
  .sb-scrim { display: none; }
}
.sb-collapse svg { transition: transform .34s var(--sb-ease); }

/* below desktop: off-canvas drawer */
@media (max-width: 1099.98px) {
  .nav .menu-btn { display: inline-grid; }
  .sidebar { transform: translateX(calc(-100% - 24px)); visibility: hidden; width: min(300px, calc(100vw - 48px)); }
  .sb-ready .sidebar { transition: transform .38s var(--sb-ease), visibility 0s linear .38s; }
  html[data-drawer="open"] .sidebar { transform: none; visibility: visible; transition: transform .38s var(--sb-ease), visibility 0s; }
  .sidebar .sb-collapse { display: none; }
  .sidebar .sb-close { display: inline-grid; }
  .sb-scrim {
    position: fixed; inset: 0; z-index: 55; background: rgba(2, 6, 4, .45);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    opacity: 0; pointer-events: none; transition: opacity .3s ease;
  }
  html[data-drawer="open"] .sb-scrim { opacity: 1; pointer-events: auto; }
  html[data-drawer="open"] body { overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) {
  .sb-ready .sidebar, .sb-ready .nav-wrap, .sb-ready main, .sb-ready .site-footer, .sb-scrim, .sb-collapse svg, .sb-label { transition: none !important; }
  .live-dot::after { animation: none; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 500 14.5px/1 var(--sans); padding: 12px 20px; border-radius: var(--r-pill);
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform 120ms var(--ease), background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}
.btn:active { transform: scale(.97); transition: transform var(--t-press) ease-out; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--celo); color: var(--on-celo); }
.btn-primary:hover { background: var(--celo-hover); }
.btn-secondary { background: var(--surface-2); color: var(--text); border-color: var(--line); }
.btn-secondary:hover { background: var(--surface-3); }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-sm { padding: 9px 15px; font-size: 13.5px; }
.btn-lg { padding: 15px 26px; font-size: 16px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 36px; height: 36px; flex: none;
  border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface-2); color: var(--text-2);
  cursor: pointer; transition: background-color 120ms ease, color 120ms ease;
}
.icon-btn:hover { background: var(--surface-3); color: var(--text); }
.icon-btn.sm { width: 30px; height: 30px; border-radius: 8px; }

/* ---------- hero ---------- */
.hero { position: relative; z-index: 1; text-align: center; padding: clamp(80px, 13vw, 140px) var(--gutter) clamp(56px, 8vw, 96px); }
.hero .tile { margin: 0 auto 32px; }
.display { font-size: var(--fs-display); font-weight: 300; line-height: 1.02; letter-spacing: -0.035em; max-width: 14ch; margin: 0 auto; }
.display em, .page-title em { font-family: var(--serif); font-style: italic; font-weight: 500; letter-spacing: -0.01em; color: var(--celo); }
.lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--text-2); max-width: 48ch; margin: 20px auto 0; }
.hero .actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 30px; }

/* inner-page header */
/* padding-top/bottom only, so `.page-head.container` keeps the container's side gutter */
.page-head { position: relative; z-index: 1; padding-top: clamp(64px, 9vw, 104px); padding-bottom: clamp(28px, 4vw, 40px); }
.page-title { font-size: var(--fs-h1); font-weight: 400; line-height: 1.06; letter-spacing: -0.03em; }
.page-head .lead { margin: 14px 0 0; }

/* the logo mark (logo.svg) shown large, as an app tile with a green glow beneath */
.tile {
  display: block; width: 96px; height: 96px;
  filter: drop-shadow(0 18px 38px rgba(0, 168, 98, .45)) drop-shadow(0 2px 6px rgba(0, 0, 0, .45));
}

/* ---------- sections ---------- */
.section { padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(48px, 7vw, 88px); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.section-title { font-size: var(--fs-h2); font-weight: 500; line-height: 1.15; }
.section-sub { color: var(--text-2); margin-top: 8px; max-width: 60ch; }

/* ---------- card ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); scroll-margin-top: 96px; min-width: 0; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.card-h h2, .card-h h3 { font-size: 15.5px; font-weight: 600; letter-spacing: 0; }
.card-b { padding: 22px; }
.card-f { padding: 14px 22px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.card-link { display: block; transition: border-color 140ms ease, background-color 140ms ease; }
.card-link:hover { border-color: var(--line-strong); background: var(--surface-2); }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.stat { padding: 20px 22px; }
.stat-label { font-size: var(--fs-micro); color: var(--text-3); font-weight: 500; }
.stat-value { font-size: 28px; font-weight: 400; letter-spacing: -0.02em; margin-top: 6px; font-variant-numeric: tabular-nums; line-height: 1.15; }
.stat-sub { font-size: var(--fs-micro); color: var(--text-3); margin-top: 4px; }

/* ---------- badge ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-micro); font-weight: 500; padding: 4px 10px; border-radius: var(--r-pill); white-space: nowrap; border: 1px solid transparent; }
.badge.ok { background: rgba(111,240,176,.12); color: var(--mint); border-color: rgba(111,240,176,.22); }
.badge.warn { background: rgba(255,204,122,.12); color: var(--warn); border-color: rgba(255,204,122,.22); }
.badge.err { background: rgba(255,143,128,.12); color: var(--err); border-color: rgba(255,143,128,.22); }
.badge.neutral { background: var(--surface-2); color: var(--text-2); border-color: var(--line); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* ---------- forms ---------- */
.field { display: grid; gap: 8px; }
.label { font-size: var(--fs-small); font-weight: 500; color: var(--text-3); }
.input, .select {
  width: 100%; font: 400 15px/1.3 var(--sans); color: var(--text);
  background: rgba(0,0,0,.28); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 12px 14px; transition: border-color 140ms ease, box-shadow 140ms ease; caret-color: var(--mint);
}
.input::placeholder { color: var(--text-3); }
.input:focus, .select:focus { outline: none; border-color: rgba(111,240,176,.55); box-shadow: 0 0 0 4px rgba(111,240,176,.12); }
.input.mono { font-family: var(--mono); font-size: 14px; }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%), linear-gradient(135deg, var(--text-3) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.money { display: flex; align-items: center; border: 1px solid var(--line); background: rgba(0,0,0,.28); border-radius: 16px; padding: 0 16px; transition: border-color 140ms ease, box-shadow 140ms ease; }
.money:focus-within { border-color: rgba(111,240,176,.55); box-shadow: 0 0 0 4px rgba(111,240,176,.12); }
.money input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font: 300 34px/1 var(--sans); font-variant-numeric: tabular-nums; padding: 16px 0; caret-color: var(--mint); }
.token { font-size: var(--fs-micro); font-weight: 500; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 5px 11px; white-space: nowrap; }
.hint { font-size: var(--fs-small); color: var(--text-3); min-height: 1.5em; }
.hint.err { color: var(--err); }
.segmented { display: inline-flex; gap: 4px; padding: 4px; border-radius: var(--r-pill); background: rgba(0,0,0,.28); border: 1px solid var(--line); flex-wrap: wrap; }
.segmented button { font: 500 13.5px/1 var(--sans); color: var(--text-2); background: transparent; border: 0; padding: 9px 14px; border-radius: var(--r-pill); cursor: pointer; transition: background-color 120ms ease, color 120ms ease; }
.segmented button:hover { color: var(--text); }
.segmented button[aria-pressed="true"] { background: var(--celo); color: var(--on-celo); }
.toggle { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: var(--fs-small); color: var(--text-2); }
.toggle input { width: 18px; height: 18px; accent-color: var(--green); }

/* ---------- quote result ---------- */
.receive { border-radius: 16px; padding: 16px 18px; background: linear-gradient(135deg, rgba(0,168,98,.22), rgba(0,81,47,.12)); border: 1px solid rgba(111,240,176,.18); }
.receive output { display: block; font: 400 36px/1.15 var(--sans); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.receive output.over { color: var(--text-3); text-decoration: line-through; }
.swap-arrow { display: flex; justify-content: center; margin: 12px 0; }
.swap-arrow span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface-2); color: var(--text-2); }
.kv-list { list-style: none; margin: 0; padding: 0; }
.kv-list li { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.kv-list li:last-child { border-bottom: 0; }
.kv-list li > :first-child { color: var(--text-3); }
.kv-list li > :last-child { text-align: right; min-width: 0; overflow-wrap: anywhere; }

/* ---------- code ---------- */
.code { position: relative; display: flex; gap: 8px; align-items: stretch; }
.code pre, .code code.block, pre.code-block {
  flex: 1; min-width: 0; margin: 0; background: rgba(0,0,0,.45); border: 1px solid var(--line); color: var(--mint-ink);
  border-radius: var(--r-md); padding: 12px 14px; font: 13px/1.6 var(--mono); overflow-x: auto; white-space: pre;
}
code.inline { font: 12.5px var(--mono); background: rgba(0,0,0,.35); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; white-space: nowrap; color: var(--mint-ink); }
.code .icon-btn { align-self: flex-start; width: 44px; height: 44px; border-radius: var(--r-md); }

/* ---------- table ---------- */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: var(--fs-micro); font-weight: 500; color: var(--text-3); padding: 14px 22px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 15px 22px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background-color 120ms ease; }
.table tbody tr:hover { background: rgba(255,255,255,.03); }
.table .strong { font-weight: 500; }
.table a.mono { color: var(--mint); }
.table a.mono:hover { text-decoration: underline; text-underline-offset: 3px; }
.table .empty td { color: var(--text-3); text-align: center; padding: 34px 22px; }

/* ---------- alert ---------- */
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-md); font-size: 14px; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--line); }
.alert svg { color: var(--mint); margin-top: 2px; }
.alert.warn svg { color: var(--warn); }
.alert.err { border-color: rgba(255,143,128,.25); }
.alert.err svg { color: var(--err); }

/* ---------- lists ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: s; }
.steps li { counter-increment: s; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(111,240,176,.12); border: 1px solid rgba(111,240,176,.25); color: var(--mint); font-weight: 600; font-size: 13px; margin-bottom: 12px; }
.steps h3 { font-size: 15.5px; font-weight: 600; letter-spacing: 0; margin-bottom: 4px; }
.steps p { font-size: 14px; color: var(--text-2); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 28px; }
.checks li { display: flex; gap: 10px; font-size: 14px; color: var(--text-2); }
.checks li svg { color: var(--mint); margin-top: 3px; }
.checks b { color: var(--text); font-weight: 600; }
.faq { border-bottom: 1px solid var(--line); }
.faq:last-child { border-bottom: 0; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 20px; color: var(--text-3); transition: transform 160ms var(--ease); }
.faq[open] summary::after { transform: rotate(45deg); }
.faq .faq-a { padding: 0 22px 20px; color: var(--text-2); font-size: 14.5px; max-width: 75ch; }

/* ---------- skeleton / empty ---------- */
.skel { display: inline-block; height: 12px; width: 80px; border-radius: 6px; background: linear-gradient(90deg, rgba(255,255,255,.06), rgba(255,255,255,.14), rgba(255,255,255,.06)); background-size: 200% 100%; animation: skel 1.3s linear infinite; vertical-align: middle; }
.skel.lg { height: 26px; width: 120px; border-radius: 8px; }
@keyframes skel { to { background-position: -200% 0; } }
.empty { text-align: center; color: var(--text-3); padding: 34px 22px; }

/* ---------- toast ---------- */
/* A small pill at the top of the content, over the page header rather than over a form or its buttons. */
.toast { position: fixed; left: 50%; top: 18px; transform: translate(-50%, -12px); opacity: 0; z-index: 100; max-width: min(420px, calc(100vw - 32px)); padding: 7px 14px; border-radius: var(--r-pill); background: #fff; color: var(--on-light); font-weight: 500; font-size: 13px; line-height: 1.35; text-align: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .35); transition: opacity 160ms ease, transform 160ms var(--ease); pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 641px) and (max-width: 1099.98px) { .toast { top: 72px; } } /* below the app bar, never on top of it */
@media (min-width: 1100px) { .toast { top: 24px; } }
@media (min-width: 1100px) { .toast { left: calc(50% + (var(--sb-w) + 12px) / 2); } }
@media (max-width: 640px) { .toast { top: calc(68px + env(safe-area-inset-top, 0px)); font-size: 12.5px; padding: 6px 12px; } }

/* ---------- privacy consent ---------- */
.consent {
  position: fixed; z-index: 80; left: 50%; bottom: 18px; width: min(680px, calc(100vw - 32px));
  display: flex; align-items: center; gap: 18px; padding: 16px 18px; border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.02)), rgba(8, 20, 14, .82);
  border: 1px solid rgba(255, 255, 255, .1); box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 24px 60px rgba(0,0,0,.5);
  backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%);
  transform: translate(-50%, 16px); opacity: 0; transition: transform .32s var(--ease), opacity .32s ease;
}
.consent.shown { transform: translate(-50%, 0); opacity: 1; }
.consent.leaving { transform: translate(-50%, 16px); opacity: 0; }
.consent h2 { font-size: 14.5px; font-weight: 600; letter-spacing: 0; margin-bottom: 4px; }
.consent p { font-size: 13.5px; color: var(--text-2); line-height: 1.5; }
.consent-actions { display: flex; gap: 8px; flex: none; }
.consent-actions .btn { min-width: 92px; } /* equal weight: declining is as easy as accepting */
@media (min-width: 1100px) { .consent { left: calc(50% + (var(--sb-w) + 12px) / 2); } }
.consent-short { display: none; }
@media (max-width: 640px) {
  /* phones: a slim two-row bar (short line, then the two equal buttons), about 12% of an 844px screen */
  .consent { flex-direction: column; align-items: stretch; gap: 8px; bottom: 10px; width: calc(100vw - 20px); padding: 10px 12px; border-radius: 16px; }
  .consent h2 { display: none; }
  .consent p { font-size: 13px; line-height: 1.4; }
  .consent-long { display: none; }
  .consent-short { display: inline; }
  .consent-actions .btn { flex: 1; min-width: 0; padding-top: 8px; padding-bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) { .consent { transition: none; } }
/* footer "Privacy choices" is a button styled as a link */
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--text-2); cursor: pointer; font-size: 14px; }
.linklike:hover { color: var(--text); }

/* long-form legal pages */
.prose { max-width: 72ch; }
.prose h2 { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; margin: 34px 0 10px; scroll-margin-top: 96px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--text-2); font-size: 15px; line-height: 1.7; }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 20px; margin: 10px 0; display: grid; gap: 6px; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--mint); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 14px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--text-2); }
.prose th { color: var(--text-3); font-weight: 500; font-size: 12.5px; }

/* ---------- footer ---------- */
.site-footer { position: relative; z-index: 1; border-top: 1px solid var(--line); margin-top: 24px; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; padding: 40px 0 28px; }
.site-footer h4 { font-size: var(--fs-micro); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--text-2); font-size: 14px; }
.site-footer a:hover { color: var(--text); }
.site-footer .base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; padding: 18px 0 30px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 13px; }
.foot-brand { display: flex; align-items: center; gap: 10px; font-weight: 600; margin-bottom: 10px; }
.foot-brand img { width: 28px; height: 28px; border-radius: 8px; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .grid-main, .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .grid-3, .stats, .steps, .checks { grid-template-columns: minmax(0, 1fr); }
  .card-h, .card-b { padding-left: 18px; padding-right: 18px; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .site-footer .cols > :first-child { grid-column: 1 / -1; }
  .nav-links { display: none; }
  .nav .btn-secondary { display: none; }
  .nav .menu-btn { width: 40px; height: 40px; border-radius: 12px; }
  .hero { padding-top: 44px; }
  .page-head { padding-top: 36px; }
  /* tables become stacked rows */
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { padding: 14px 18px; border-bottom: 1px solid var(--line); }
  .table tbody tr:last-child { border-bottom: 0; }
  .table td { border: 0; padding: 3px 0; display: flex; justify-content: space-between; gap: 12px; }
  .table td::before { content: attr(data-label); color: var(--text-3); font-size: 13px; }
  .table td.lead-cell { margin-bottom: 4px; }
  .table td.lead-cell::before { content: none; }
  .table .empty td { display: block; text-align: center; }
  .table .empty td::before { content: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sky::before, .skel { animation: none; }
  .btn, .toast { transition: none; }
}

/* ---------- tab strip: the pages grouped under one sidebar entry (Send, Get paid, Activity, Agent) ----------
   Sits at the foot of the page header. Same shell as .segmented, but the current tab is quiet (no yellow),
   so the page's own primary action stays the one yellow thing on screen. */
.subnav { display: flex; width: fit-content; max-width: 100%; flex-wrap: wrap; gap: 2px; padding: 4px; margin: 26px 0 0; border-radius: var(--r-pill); background: rgba(0, 0, 0, .28); border: 1px solid var(--line); }
.subnav a { font: 500 13.5px/1 var(--sans); color: var(--text-2); padding: 9px 15px; border-radius: var(--r-pill); white-space: nowrap; transition: background-color 120ms ease, color 120ms ease; }
.subnav a:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.subnav a[aria-current="page"] { color: var(--text); background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--line-strong); }
.subnav a:focus-visible { outline-offset: -2px; border-radius: var(--r-pill); }
@media (max-width: 640px) { .subnav { margin-top: 22px; } }
@media (prefers-reduced-motion: reduce) { .subnav a { transition: none; } }
/* ---------- daily limits: one compact line next to every amount ---------- */
.limits { display: flex; align-items: flex-start; gap: 8px; font-size: var(--fs-micro); line-height: 1.5; color: var(--text-3); }
.limits svg.i { width: 14px; height: 14px; color: var(--mint); margin-top: 2px; }
.limits a { color: var(--text-2); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.limits a:hover { color: var(--text); }
.limits b { color: var(--text-2); font-weight: 500; }

/* ---------- Send: "Pay someone by @nTag" ---------- */
.tag-go { display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; padding: 14px 16px 14px 20px; }
.tag-go label { font-size: 14px; font-weight: 500; color: var(--text-2); }
.tag-go form { display: flex; gap: 8px; flex: 1 1 260px; min-width: 0; }
.tag-go .tag-input { position: relative; flex: 1; min-width: 0; }
.tag-go .tag-input span { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--text-3); font-family: var(--mono); font-size: 14px; pointer-events: none; }
.tag-go .tag-input .input { padding: 9px 12px 9px 28px; }
.tag-go .hint { flex-basis: 100%; min-height: 0; margin: -4px 0 0; }
.tag-go .hint:empty { display: none; }

/* ---------- "For the operator": the command-line tools, folded away ---------- */
details.operator > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; }
details.operator > summary::-webkit-details-marker { display: none; }
details.operator > summary h2 { font-size: 15.5px; font-weight: 600; letter-spacing: 0; }
details.operator > summary .small { display: block; margin-top: 3px; font-weight: 400; }
details.operator > summary::after { content: "+"; font-size: 20px; color: var(--text-3); transition: transform 160ms var(--ease); }
details.operator[open] > summary { border-bottom: 1px solid var(--line); }
details.operator[open] > summary::after { transform: rotate(45deg); }
details.operator > summary:focus-visible { outline-offset: -2px; border-radius: var(--r-lg); }
@media (max-width: 640px) { details.operator > summary { padding: 16px 18px; } }

/* ---------- pay a link from a connected wallet ---------- */
.pay-wallet { display: grid; gap: 14px; }
.pay-wallet .kv-list li { padding: 9px 0; }
.pay-track { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pay-track li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-2); }
.pay-track li > span:first-child { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface-2); margin-top: 1px; }
.pay-track li.done > span:first-child { background: rgba(111,240,176,.14); border-color: rgba(111,240,176,.3); color: var(--mint); }
.pay-track li.active > span:first-child { border-color: rgba(111,240,176,.45); }
.pay-track li.active > span:first-child::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); animation: np-pulse 1.2s ease-in-out infinite; }
.pay-track li.err > span:first-child { color: var(--err); border-color: rgba(255,143,128,.35); }
.pay-track li svg.i { width: 13px; height: 13px; }
.pay-track b { color: var(--text); font-weight: 500; display: block; }
@keyframes np-pulse { 50% { opacity: .35; } }

/* Overview: a quiet note under a stat that is still loading after a few seconds */
.still-loading { display: block; margin-top: 6px; font-size: var(--fs-micro); color: var(--text-3); }

@media (prefers-reduced-motion: reduce) { .pay-track li.active > span:first-child::after { animation: none; } details.operator > summary::after { transition: none; } }

/* ---------- currency picker ("What do they receive?") ---------- */
.cur-field { display: grid; gap: 6px; justify-items: start; min-width: 0; max-width: 100%; }
.cur-picker { max-width: 100%; }
.segmented .cur-chip { display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; padding: 8px 13px 8px 10px; }
.segmented .cur-chip[aria-checked="true"] { background: var(--celo); color: var(--on-celo); }
.segmented .cur-chip.off { opacity: .42; cursor: not-allowed; }
.segmented .cur-chip.off .cur-name { text-decoration: line-through; text-decoration-thickness: 1px; }
.segmented .cur-chip:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }
.cur-flag { flex: none; display: inline-block; width: 18px; height: 12px; border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .22), 0 0 0 1px rgba(255, 255, 255, .14); }
.cur-flag-cngn { background: linear-gradient(90deg, #008751 0 33.4%, #fff 33.4% 66.6%, #008751 66.6%); }
.cur-flag-idrx { background: linear-gradient(#e70011 0 50%, #fff 50%); }
.cur-flag-wars { background: radial-gradient(circle at 50% 50%, #f6b40e 0 1.7px, transparent 2.1px), linear-gradient(#74acdf 0 33.4%, #fff 33.4% 66.6%, #74acdf 66.6%); }
.cur-flag-wcop { background: linear-gradient(#fcd116 0 50%, #003893 50% 75%, #ce1126 75%); }
.cur-flag-usd { position: relative; width: 16px; height: 16px; border-radius: 50%; background: var(--mint); box-shadow: none; }
.cur-flag-usd::before { content: "$"; position: absolute; inset: 0; display: grid; place-items: center; font: 700 10.5px/1 var(--sans); color: var(--on-light); }
.cur-note { margin: 0; }
.cur-inline { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; } /* a flag + name in text */
@media (max-width: 520px) {
  .cur-field { justify-items: stretch; width: 100%; }
  .cur-picker { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; border-radius: 18px; }
  .cur-picker .cur-chip { border-radius: 14px; min-width: 0; }
  .cur-picker > .cur-chip:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* sidebar status box: what 1 USD₮ buys in every currency, two per row (the rail shows them as a tooltip) */
.sb-status span.sb-rates { display: grid; grid-template-columns: repeat(2, max-content); gap: 2px 14px; margin-top: 4px; overflow: visible; }
.sb-rate { font-size: 12px; color: var(--text-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sb-rate.off { color: var(--text-3); }

/* Desktop: the sidebar is the navigation, so the floating top pill (which repeated it and slid over cards such as
   "Latest activity" when scrolling) is not shown. Tablets keep it, with a solid backdrop; phones are unchanged. */
@media (min-width: 1100px) {
  .nav-wrap { display: none; }
  main { padding-top: 44px; }
}
/* Below the docked sidebar (phones, tablets, narrow desktop windows, or a desktop with a wallet side panel open):
   one full-width app bar fixed to the top, whose height is RESERVED with body padding, so it never sits on top of
   page content at any width. (It used to be a floating pill, sticky 14px from the top, that covered cards such as the
   Account claim summary when scrolling.) In-page anchors and focus scrolling stop below it (scroll-padding-top). */
@media (max-width: 1099.98px) {
  html { scroll-padding-top: 76px; }
  body { padding-top: 60px; }
  .nav-wrap { position: fixed; top: 0; left: 0; right: 0; padding: 0; }
  .nav {
    width: 100%; max-width: none; border-radius: 0; border-width: 0 0 1px; min-height: 60px;
    padding: 10px 12px 10px 16px; background: rgba(6, 17, 12, .94); box-shadow: 0 10px 28px rgba(0, 0, 0, .28);
  }
  .nav-brand { margin-right: auto; font-size: 16px; gap: 10px; }
  .nav-brand img { width: 32px; height: 32px; }
  .card, .page-head { scroll-margin-top: 76px; }
}

/* ---------- honest status labels: Live / Built, not yet used on mainnet / Planned ----------
   Markup: <span class="status-pill" data-status="live|built|planned">…</span> (a site check can enforce the words). */
.status-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 500; line-height: 1.2; padding: 4px 10px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface-2); color: var(--text-3); white-space: nowrap; }
.status-pill[data-status="built"] { color: var(--text-2); }
.status-pill[data-status="live"] { color: var(--mint); border-color: rgba(111, 240, 176, .25); }
.status-today { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.status-today li { display: grid; grid-template-columns: 15.5rem minmax(0, 1fr); gap: 14px; align-items: baseline; font-size: var(--fs-small); color: var(--text-2); }
.status-today li .status-pill { justify-self: start; }
@media (max-width: 640px) { .status-today li { grid-template-columns: minmax(0, 1fr); gap: 6px; } }

/* ---------- press feedback, contrast and transparency preferences (every page) ----------
   Pressing anything tappable answers at once (scale .97, 100 ms ease-out). People who ask for more contrast get
   stronger lines and text; people who ask for less transparency get solid panels instead of glass. */
.icon-btn:active, .segmented button:active, .subnav a:active, .sb-nav a:active, .sb-user-chip:active, .card-link:active { transform: scale(.97); transition: transform var(--t-press) ease-out; }
@media (prefers-reduced-motion: reduce) {
  .btn:active, .icon-btn:active, .segmented button:active, .subnav a:active, .sb-nav a:active, .sb-user-chip:active, .card-link:active { transform: none; }
}
@media (prefers-contrast: more) {
  :root { --line: rgba(255, 255, 255, .26); --line-strong: rgba(255, 255, 255, .42); --text-2: rgba(238, 244, 239, .92); --text-3: rgba(238, 244, 239, .82); }
  .btn-secondary, .status-pill, .token, .input, .money, .segmented { border-color: var(--line-strong); }
}
@media (prefers-reduced-transparency: reduce) {
  .sidebar, .nav, .np-menu, .consent, .sb-scrim, .card { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .sidebar { background: var(--bg-raise); }
  .nav { background: var(--bg-raise); }
  .consent { background: var(--bg-raise); }
}

/* ---------- secondary actions: a text link whose arrow nudges on hover ---------- */
.text-link { display: inline-flex; align-items: center; gap: 6px; color: var(--text); font-weight: 500; text-decoration: none; white-space: nowrap; }
.text-link .arrow { display: inline-block; color: var(--celo); transition: transform .24s var(--calm); }
.text-link:hover .arrow, .text-link:focus-visible .arrow { transform: translateX(4px); }
.text-link:hover { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { .text-link .arrow { transition: none; } .text-link:hover .arrow, .text-link:focus-visible .arrow { transform: none; } }

/* ---------- signed-in only: the prompt visitors see instead (Activity, Dashboard) ---------- */
.gate-card { max-width: 760px; }
.gate-body { display: flex; gap: 18px; align-items: flex-start; padding: 28px; }
.gate-body h2 { font-size: 20px; font-weight: 500; letter-spacing: -0.01em; }
.gate-icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: rgba(252, 255, 82, .08); color: var(--celo); box-shadow: inset 0 0 0 1px rgba(252, 255, 82, .22); }
.gate-icon svg.i { width: 20px; height: 20px; }
@media (max-width: 640px) { .gate-body { flex-direction: column; padding: 22px 18px; } }
