@font-face {
  font-family: "Geist Serif";
  src: url("assets/fonts/GeistSerifVF.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("assets/fonts/GeistVF.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;

  --bg: #000000;
  --surface: #0b0b0c;
  --ink: #ffffff;
  --ink-2: rgba(255, 255, 255, 0.64);
  --ink-3: rgba(255, 255, 255, 0.44);
  --line: rgba(255, 255, 255, 0.12);
  --line-2: rgba(255, 255, 255, 0.24);

  --green: #66e36f;
  --amber: #f2b544;

  --serif: "Geist Serif", "Times New Roman", serif;
  --sans: "Geist", "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.serif { font-family: var(--serif); font-weight: 400; }
.mono { font-family: var(--mono); }

/* ---------- Primitives ---------- */

.wordmark { font-size: 17px; font-weight: 500; letter-spacing: -0.02em; }
.nav .wordmark { display: inline-flex; align-items: center; gap: 10px; }
.wordmark__mark { width: 28px; height: auto; flex: none; }

.label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: #000;
  font: 500 15px/1 var(--sans);
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: opacity 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn:hover { opacity: 0.86; }
.btn:disabled { opacity: 0.3; cursor: default; }
.btn--sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }

.link {
  background: none;
  border: 0;
  padding: 12px 4px;
  color: var(--ink-2);
  font: 400 15px/1 var(--sans);
  cursor: pointer;
}
.link:hover { color: var(--ink); }

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.status i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status--alive { color: var(--green); }
.status--alive i { animation: beat 1.6s ease-in-out infinite; }
.status--low { color: var(--amber); }
.status--paused { color: var(--ink-3); }

@keyframes beat {
  0%, 40%, 100% { transform: scale(1); opacity: 1; }
  10% { transform: scale(1.6); }
  22% { transform: scale(1.2); }
}
@media (prefers-reduced-motion: reduce) { .status--alive i { animation: none; } }

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
}

.nav__right { display: flex; align-items: center; gap: 24px; }
.nav__link { font-size: 14px; color: var(--ink-2); transition: color 0.2s ease; }
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--ink); }
.nav__x { display: grid; place-items: center; width: 36px; height: 36px; margin: 0 -8px; }
.nav__x svg { width: 15px; height: 15px; fill: currentColor; }

.footer__links { display: flex; gap: 24px; margin: 8px 0; font-size: 14px; letter-spacing: 0; }
.footer__links a { color: var(--ink-2); }
.footer__links a:hover { color: var(--ink); }

@media (max-width: 640px) {
  .nav__right { gap: 16px; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}
.ripple {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  /* Let the rings dissolve into the black below instead of stopping at an edge. */
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 55%, transparent 100%);
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 44px;
  padding: 0 20px;
  text-align: center;
}
.hero__title {
  margin: 0;
  max-width: 13ch;
  font-size: clamp(48px, 8.4vw, 128px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: #fff;
  /* Geist Serif ships one weight; a hairline stroke gives it a bold cut. */
  -webkit-text-stroke: 0.025em #fff;
  paint-order: stroke fill;
  text-wrap: balance;
}
/* Headline reveal: letters glitch in at random (main.js), then the rest follows. */
.reveal-pending .hero__title,
.reveal-pending .hero__actions,
.reveal-pending .hero__meta { opacity: 0; }
.rv { opacity: 0; }
.hero__actions.rv-after, .hero__meta.rv-after { animation: rise-in 0.45s ease both; }
@keyframes rise-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.nowrap { white-space: nowrap; }
.hero__title { max-width: 14ch; }
/* Uneven on purpose: "r" ends with an overhang and "a" starts with side bearing,
   so these margins leave the same visible gap on both sides of the whale. */
.ds { margin: 0 0.171em 0 0.229em; }
.hero__ds {
  display: block;
  width: 0.88em;
  height: auto;
  aspect-ratio: 24 / 17.66;
  transform: translateY(0.04em);
  color: #fff;
}
.ds { position: relative; display: inline-block; cursor: help; border-radius: 12px; }
.ds:focus { outline: none; }
.ds:focus-visible { outline: 2px solid #fff; outline-offset: 6px; }
.ds__tip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 14px);
  z-index: 5;
  width: max-content;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: rgba(10, 10, 11, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font: 400 14px/1.4 var(--sans);
  letter-spacing: 0;
  white-space: normal;
  text-align: left;
  color: var(--ink-2);
  -webkit-text-stroke: 0;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  pointer-events: none;
}
.ds:hover .ds__tip, .ds:focus .ds__tip { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
/* On phones, centre the tooltip over the headline so it can't run off the screen. */
@media (max-width: 640px) {
  .ds { position: static; }
  .ds__tip { bottom: calc(100% + 12px); max-width: calc(100vw - 32px); }
}
.ds__head { font-weight: 500; color: var(--ink); }
.ds__row { display: flex; gap: 10px; }
.ds__row b { flex: none; width: 54px; font: 500 12px/1.6 var(--mono); color: var(--ink); }
.ds__foot { padding-top: 8px; border-top: 1px solid var(--line); font: 400 11px var(--mono); letter-spacing: 0.04em; color: var(--ink-3); text-transform: uppercase; }
.hero__actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: center; }
.hero__meta {
  position: absolute;
  z-index: 1;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  white-space: nowrap;
}

/* ---------- Blocks ---------- */

.block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  max-width: 880px;
  margin: 0 auto;
  padding: 160px 20px;
  text-align: center;
}
.block + .block { border-top: 1px solid var(--line); }
.block__title {
  margin: 0;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.block__text {
  margin: 0;
  max-width: 38ch;
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-2);
  text-wrap: balance;
}

.flow {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 18px;
  color: var(--ink-2);
}
.flow li { display: flex; align-items: baseline; justify-content: center; gap: 14px; }
.flow .mono { font-size: 12px; color: var(--ink-3); }

.formula {
  margin: 20px 0 8px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 16px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.formula > span:not(.formula__op) {
  padding: 8px 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
}
.formula__op { color: var(--ink-3); }
.formula .formula__out { color: var(--ink); border-color: var(--ink); }

.states {
  list-style: none;
  margin: 20px 0 8px;
  padding: 0;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.states li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 32px 20px;
}
.states li + li { border-left: 1px solid var(--line); }
.states__when { font-size: 17px; letter-spacing: -0.01em; }
.states__what { font-size: 14.5px; line-height: 1.5; color: var(--ink-2); max-width: 24ch; }

/* ---------- Live agents ---------- */

.block--agents { max-width: 1180px; }

.agents {
  width: 100%;
  margin: 20px 0 8px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  text-align: left;
}
.agent {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}
.agent--paused { background: transparent; }
.agent--paused .agent__head, .agent--paused .agent__stats { opacity: 0.55; }

.agent__head { display: flex; align-items: center; gap: 14px; }
.agent__avatar {
  flex: none;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  font-size: 22px;
}
.agent__id { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.agent__name { font-size: 19px; font-weight: 500; letter-spacing: -0.02em; }
.agent__meta { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }

.agent__stats {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.agent__stats dt { font-size: 12.5px; color: var(--ink-3); margin-bottom: 6px; }
.agent__stats dd { margin: 0; font-size: 15px; color: var(--ink); }

.agent__bar { height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.agent__bar span { display: block; height: 100%; border-radius: inherit; background: var(--green); }
.agent--low .agent__bar span { background: var(--amber); }

.agent__task {
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-2);
}
.agent__task time { flex: none; font-size: 11px; color: var(--ink-3); }

/* ---------- Safety page ---------- */

.sp { max-width: 880px; margin: 0 auto; padding: 0 20px; }
.sp__hero {
  min-height: 72svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 120px 0 64px;
  text-align: center;
}
.sp__title {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(48px, 8vw, 112px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  -webkit-text-stroke: 0.025em #fff;
  paint-order: stroke fill;
  text-wrap: balance;
}
.sp__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 120px 0;
  text-align: center;
  border-top: 1px solid var(--line);
}
.sp__n { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }

.cando {
  width: 100%;
  max-width: 640px;
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  text-align: left;
}
.cando__col { display: flex; flex-direction: column; gap: 16px; padding: 28px; }
.cando__col + .cando__col { border-left: 1px solid var(--line); }
.cando ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 16px; }
.cando__col:last-child ul { color: var(--ink-2); }

@media (max-width: 640px) {
  .sp__item { padding: 88px 0; }
  .cando { grid-template-columns: minmax(0, 1fr); }
  .cando__col + .cando__col { border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- FAQ ---------- */

.block--faq { max-width: 760px; }
.faq { width: 100%; margin-top: 16px; text-align: left; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  min-height: 64px;
  padding: 18px 4px;
  font-size: 18px;
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  font: 300 24px/1 var(--sans);
  color: var(--ink-3);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); color: var(--ink); }
.faq summary:hover::after { color: var(--ink); }
.faq p { margin: 0; padding: 0 48px 24px 4px; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.faq p a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Live activity feed ---------- */

.block--feed { max-width: 960px; }
.feed__bar { display: flex; align-items: center; gap: 16px; margin-top: 8px; }
.feed__bar .link { padding: 8px 4px; font-size: 14px; }
.feed { list-style: none; margin: 8px 0 0; padding: 0; width: 100%; text-align: left; border-top: 1px solid var(--line); }
.feed__item {
  display: grid;
  grid-template-columns: 72px 104px 64px minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 16px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.feed__item time { font-size: 12px; color: var(--ink-3); }
.feed__agent { font-weight: 500; letter-spacing: -0.01em; }
.feed__agent:hover { text-decoration: underline; text-underline-offset: 3px; }
.feed__kind { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.feed__item--fee .feed__kind { color: var(--green); }
.feed__item--notice .feed__kind { color: var(--amber); }
.feed__text { color: var(--ink-2); line-height: 1.45; }
.feed__cost { font-size: 13px; color: var(--ink-2); }
.feed__item.is-new { animation: feed-in 0.6s ease both; }
@keyframes feed-in {
  from { opacity: 0; transform: translateY(-8px); background: rgba(255, 255, 255, 0.05); }
  to { opacity: 1; transform: none; background: transparent; }
}

@media (max-width: 760px) {
  .feed__item { grid-template-columns: auto 1fr auto; gap: 6px 12px; }
  .feed__agent { grid-column: 1; grid-row: 1; }
  .feed__kind { grid-column: 2; grid-row: 1; }
  .feed__item time { grid-column: 3; grid-row: 1; text-align: right; }
  .feed__text { grid-column: 1 / -1; }
  .feed__cost { grid-column: 1 / -1; }
  .feed__cost:empty { display: none; }
}

.preview-tag {
  display: inline-flex;
  align-items: center;
  margin-left: 10px;
  padding: 3px 7px 2px;
  border: 1px solid rgba(242, 181, 68, 0.6);
  border-radius: 4px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  vertical-align: 3px;
  color: var(--amber);
}
a.agent { position: relative; }
.preview-tag--edge {
  position: absolute;
  top: 0;
  right: 24px;
  margin: 0;
  transform: translateY(-50%);
  background: #000;
  vertical-align: 0;
}
.ap__badges { display: inline-flex; align-items: center; gap: 12px; }
.ap__head .preview-tag { margin-left: 0; vertical-align: 0; }

.agent__avatar--img, .ap__avatar--img {
  display: block;
  object-fit: cover;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: #050304;
  box-shadow: 0 0 0 4px rgba(176, 24, 92, 0.12), 0 0 32px rgba(176, 24, 92, 0.35);
}
.agent__avatar--img { width: 52px; height: 52px; }
.ap__avatar--img { width: 128px; height: 128px; box-shadow: 0 0 0 6px rgba(176, 24, 92, 0.1), 0 0 64px rgba(176, 24, 92, 0.45); }

/* A lone agent gets one wider, centred card. */
.agents:has(> .agent:only-child) { grid-template-columns: minmax(0, 620px); justify-content: center; }
.agent__stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.agent__now {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--ink);
}
.agent__now:empty { display: none; }
.agent__now-text::before { content: "Working on "; color: var(--ink-3); }
.pulse--sm { width: 28px; height: 28px; }
.pulse--sm .pulse__core { width: 8px; height: 8px; }
.pulse--sm .pulse__ring { width: 8px; height: 8px; }

[data-live].is-bumped { animation: bump 0.9s ease; }
@keyframes bump {
  0% { color: var(--green); }
  100% { color: inherit; }
}

a.agent { color: inherit; transition: border-color 0.2s ease, transform 0.2s ease; }
a.agent:hover { border-color: var(--line-2); }

/* ---------- Agent page ---------- */

.ap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 104px 20px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.ap__back { align-self: flex-start; margin-bottom: 24px; }

.ap__head { display: flex; flex-direction: column; align-items: center; gap: 16px; padding-bottom: 56px; }
.ap__avatar {
  width: 88px; height: 88px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  font-size: 42px;
}
.ap__name { margin: 0; font-size: clamp(48px, 7vw, 88px); line-height: 1; letter-spacing: -0.03em; }
.ap__meta { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.ap__wallet { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.ap__wallet code { font-size: 14px; color: var(--ink); }
.ap--paused .ap__avatar, .ap--paused .ap__name { opacity: 0.6; }

.ap__stats {
  width: 100%;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.ap__stats > div { padding: 28px 12px; }
.ap__stats > div + div { border-left: 1px solid var(--line); }
.ap__stats dt { font-size: 13px; color: var(--ink-3); margin-bottom: 10px; }
.ap__stats dd { margin: 0; font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -0.02em; }

.ap__section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 112px 0;
}
.ap__section + .ap__section { border-top: 1px solid var(--line); }

/* Charts */
.chart {
  width: 100%;
  margin: 16px 0 0;
  padding: 24px 24px 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  text-align: left;
}
.chart__legend { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 16px; font-size: 14px; color: var(--ink-2); }
.chart__key { display: inline-flex; align-items: center; gap: 8px; }
.chart__key i { width: 10px; height: 10px; border-radius: 3px; }
.chart__key b { font-weight: 400; color: var(--ink); }
.chart__plot { width: 100%; min-height: 220px; }
.chart__svg { display: block; overflow: visible; }
.chart__svg:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 4px; }
.chart__grid { stroke: rgba(255, 255, 255, 0.07); stroke-width: 1; }
.chart__base { stroke: rgba(255, 255, 255, 0.22); stroke-width: 1; }
.chart__tick { fill: var(--ink-3); font: 11px var(--mono); }
.chart__line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart__area { fill: rgba(255, 255, 255, 0.05); }
.chart__guide { stroke: rgba(255, 255, 255, 0.35); stroke-width: 1; }
.chart__dot { stroke: var(--surface); stroke-width: 2; }

.chart__table { margin-top: 12px; font-size: 14px; color: var(--ink-2); }
.chart__table summary { cursor: pointer; padding: 8px 0; width: max-content; }
.chart__table summary:hover { color: var(--ink); }
.chart__table [data-table] { max-height: 280px; overflow: auto; margin-top: 8px; }
.chart__table table { width: 100%; border-collapse: collapse; }
.chart__table th, .chart__table td { padding: 8px 0; border-bottom: 1px solid var(--line); text-align: right; font-weight: 400; }
.chart__table th:first-child, .chart__table td:first-child { text-align: left; }
.chart__table th { color: var(--ink-3); position: sticky; top: 0; background: var(--surface); }

.tooltip {
  position: absolute;
  z-index: 20;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 150px;
  padding: 10px 12px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: rgba(10, 10, 11, 0.94);
  font-size: 13px;
  color: var(--ink-2);
}
.tooltip[hidden] { display: none; }
.tooltip__date { font-size: 11px; color: var(--ink-3); letter-spacing: 0.04em; }
.tooltip__row { display: flex; align-items: center; gap: 8px; }
.tooltip__row i { width: 8px; height: 8px; border-radius: 2px; }
.tooltip__row b { margin-left: auto; font-weight: 400; color: var(--ink); }

/* Log */
.chips--center { justify-content: center; }
.log { list-style: none; margin: 12px 0 0; padding: 0; width: 100%; text-align: left; border-top: 1px solid var(--line); }
.log__item {
  display: grid;
  grid-template-columns: 72px 64px minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 16px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.log__item time { font-size: 12px; color: var(--ink-3); }
.log__kind { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.log__item--fee .log__kind { color: var(--green); }
.log__item--notice .log__kind { color: var(--amber); }
.log__text { color: var(--ink); line-height: 1.45; }
.log__cost { font-size: 13px; color: var(--ink-2); }
.log__empty { padding: 24px 0; text-align: center; color: var(--ink-3); }

/* Log entries: one card per entry, body depends on its type */
.log { border-top: 0; display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.entry {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}
.entry.is-new { animation: entry-in 0.6s ease both; }
@keyframes entry-in { from { opacity: 0; } to { opacity: 1; } }
.entry__head { display: flex; align-items: baseline; gap: 12px; }
.entry__head time { font-size: 12px; color: var(--ink-3); }
.entry__kind { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
.entry__kind--fee { color: var(--green); }
.entry__kind--notice { color: var(--amber); }
.entry__cost { margin-left: auto; font-size: 13px; color: var(--ink-2); }

.card__title { font-size: 17px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.35; color: var(--ink); }
.card__muted { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.card__foot { font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-3); }

.ring { width: 64px; height: 64px; flex: none; }
.ring__track { fill: none; stroke: var(--line-2); stroke-width: 4; }
.ring__fill { fill: none; stroke: var(--ink-2); stroke-width: 4; stroke-linecap: round; }
.ring--hot .ring__fill { stroke: var(--amber); }
.ring__num { fill: var(--ink); font: 500 15px var(--mono); }

.card-audit { display: flex; gap: 18px; align-items: flex-start; }
.card-audit__info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.flags { display: flex; flex-wrap: wrap; gap: 6px; }
.flag {
  font-size: 12.5px;
  padding: 4px 10px;
  border: 1px solid rgba(242, 181, 68, 0.45);
  border-radius: 999px;
  color: var(--amber);
}

.bar { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; color: var(--ink-2); }
.bar__top { display: flex; justify-content: space-between; gap: 12px; }
.bar__top .mono { color: var(--ink); font-size: 12.5px; }
.bar__track { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.bar__track span { display: block; height: 100%; border-radius: inherit; background: var(--ink-2); }
.bar__track span.is-hot { background: var(--ink); }
.card-audit .bar__track span.is-hot { background: var(--amber); }

.card-ship { display: flex; gap: 18px; align-items: stretch; }
.card-ship__thumb {
  flex: none;
  width: 148px;
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: radial-gradient(120% 90% at 100% 100%, rgba(176, 24, 92, 0.45), transparent 60%), #0a0a0b;
}
.card-ship__thumb .mono { font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.card-ship__thumb .serif { font-size: 18px; line-height: 1.05; color: var(--ink); }
.card-ship__info { display: flex; flex-direction: column; gap: 8px; justify-content: center; }

.card-vote, .card-report, .card-notice { display: flex; flex-direction: column; gap: 12px; }

.card-fee { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 20px; }
.card-fee__amount { font-size: 32px; letter-spacing: -0.02em; color: var(--green); }
.card-fee__meta { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--ink-2); }
.card-fee__meta .mono { font-size: 12px; color: var(--ink-3); }

.card-spend { margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.card-spend dt { font-size: 12px; color: var(--ink-3); margin-bottom: 4px; }
.card-spend dd { margin: 0; font-size: 14px; color: var(--ink); }

.card-notice__quote {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(242, 181, 68, 0.35);
  border-radius: 10px;
  background: rgba(242, 181, 68, 0.06);
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-2);
}

/* Whole card opens the task modal */
.entry { position: relative; transition: border-color 0.2s ease, background 0.2s ease; }
.entry:hover { border-color: var(--line-2); background: #0e0e10; }
.entry__hit {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  border-radius: inherit;
  background: transparent;
  cursor: pointer;
}
.entry__hit:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.entry__more { font-size: 13px; color: var(--ink-3); transition: color 0.2s ease; }
.entry:hover .entry__more { color: var(--ink); }
li.is-new > .entry { animation: entry-in 0.6s ease both; }

/* Task modal */
.has-modal { overflow: hidden; }
.modal {
  width: min(640px, calc(100vw - 32px));
  max-height: min(86vh, 860px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 22px;
  background: var(--surface);
  color: var(--ink);
  overflow: hidden;
}
.modal::backdrop { background: rgba(0, 0, 0, 0.72); backdrop-filter: blur(6px); }
.modal[open] { animation: modal-in 0.22s ease both; }
@keyframes modal-in { from { opacity: 0; } to { opacity: 1; } }
.modal__inner { position: relative; max-height: inherit; overflow-y: auto; padding: 28px; }
.modal__close {
  position: absolute;
  top: 16px; right: 16px;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
}
.modal__close:hover { color: var(--ink); border-color: var(--ink-2); }
.modal__close svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; fill: none; }
.modal__body { display: flex; flex-direction: column; gap: 20px; text-align: left; }
.modal__head { display: flex; gap: 12px; align-items: baseline; font-size: 12px; color: var(--ink-3); padding-right: 48px; }
.modal__title { margin: -8px 0 0; font-size: 34px; font-weight: 400; letter-spacing: -0.02em; line-height: 1.1; }
.modal__facts {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 12px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.modal__facts dt { font-size: 12px; color: var(--ink-3); margin-bottom: 4px; }
.modal__facts dd { margin: 0; font-size: 13.5px; color: var(--ink); overflow-wrap: anywhere; }
.modal__section { display: flex; flex-direction: column; gap: 12px; }
.modal__label { margin: 0; font-size: 11px; font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.modal .trace__steps { margin-top: 0; }
.flag-notes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.flag-notes li { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; font-size: 14.5px; color: var(--ink-2); line-height: 1.5; }

@media (max-width: 640px) {
  .modal { width: 100vw; max-width: none; max-height: 92vh; margin: auto 0 0; border-radius: 22px 22px 0 0; border-bottom: 0; }
  .modal__inner { padding: 24px 18px 32px; }
  .modal__title { font-size: 28px; }
  .modal__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* How it ran */
.trace__steps { list-style: none; margin: 10px 0 0; padding: 0 0 0 4px; display: flex; flex-direction: column; }
.trace__step {
  position: relative;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  gap: 12px;
  padding: 8px 0 8px 18px;
  font-size: 14px;
  align-items: baseline;
}
.trace__step::before {
  content: "";
  position: absolute;
  left: 0; top: 14px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ink-3);
}
.trace__step::after {
  content: "";
  position: absolute;
  left: 3px; top: 24px; bottom: -10px;
  width: 1px;
  background: var(--line-2);
}
.trace__step:last-child::after { display: none; }
.trace__who { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.trace__what { color: var(--ink); line-height: 1.45; }
.trace__meta { font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.trace__step--signer::before { background: var(--green); }
.trace__step--watchdog::before { background: var(--amber); }
.trace__step--watchdog .trace__who { color: var(--amber); }

/* Working on now */
.now-wrap { width: 100%; max-width: 760px; }
.now {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  padding: 24px;
  border: 1px solid var(--line-2);
  border-radius: 20px;
  background:
    radial-gradient(80% 140% at 0% 0%, rgba(176, 24, 92, 0.18), transparent 60%),
    var(--surface);
  text-align: left;
}
.now--idle { background: var(--surface); border-color: var(--line); }
.now__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.now__label { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green); }
.now--idle .now__label { color: var(--ink-3); }
.now__title { font-size: 26px; line-height: 1.15; letter-spacing: -0.02em; }
.now__meta { font-size: 12px; color: var(--ink-3); }
.now__steps { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.now__step { display: flex; align-items: center; gap: 12px; font-size: 14.5px; color: var(--ink-3); transition: color 0.3s ease; }
.now__step.is-active { color: var(--ink); }
.now__step.is-done { color: var(--ink-2); }
.now__mark {
  position: relative;
  flex: none;
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--line-2);
}
.now__step.is-active .now__mark {
  border-color: rgba(255, 255, 255, 0.18);
  border-top-color: var(--ink);
  animation: spin 0.8s linear infinite;
}
.now__step.is-done .now__mark { border-color: var(--green); background: var(--green); }
.now__step.is-done .now__mark::after {
  content: "";
  position: absolute;
  left: 4.5px; top: 1.5px;
  width: 4px; height: 8px;
  border: solid #04130a;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* The loading mark: a heartbeat ping with an orbiting spark, echoing the hero rings */
.pulse { position: relative; flex: none; width: 64px; height: 64px; display: grid; place-items: center; }
.pulse__core {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 18px rgba(224, 69, 127, 0.9), 0 0 40px rgba(176, 24, 92, 0.6);
  animation: core-beat 1.6s ease-in-out infinite;
}
.pulse__ring {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 1.5px solid rgba(224, 69, 127, 0.85);
  animation: ping 2.4s cubic-bezier(0.2, 0.6, 0.3, 1) infinite;
}
.pulse__ring:nth-child(2) { animation-delay: 0.8s; }
.pulse__ring:nth-child(3) { animation-delay: 1.6s; }
.pulse__orbit {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  animation: spin 6s linear infinite;
}
.pulse__orbit::after {
  content: "";
  position: absolute;
  top: -3px; left: 50%;
  width: 5px; height: 5px;
  margin-left: -2.5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
}
.pulse--idle .pulse__core { background: var(--ink-3); box-shadow: none; animation: none; }
@keyframes ping {
  0% { transform: scale(1); opacity: 0.9; }
  100% { transform: scale(4.4); opacity: 0; }
}
@keyframes core-beat {
  0%, 40%, 100% { transform: scale(1); }
  10% { transform: scale(1.35); }
  22% { transform: scale(1.1); }
}
@media (prefers-reduced-motion: reduce) {
  .pulse__ring, .pulse__orbit, .pulse__core, .now__step.is-active .now__mark { animation: none; }
  .pulse__ring { opacity: 0.4; transform: scale(2.4); }
}

@media (max-width: 640px) {
  .entry { padding: 18px 16px; }
  .card-ship { flex-direction: column; }
  .card-ship__thumb { width: 100%; aspect-ratio: 16 / 7; }
  .card-spend { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trace__step { grid-template-columns: 1fr auto; }
  .trace__what { grid-column: 1 / -1; }
  .now { flex-direction: column; gap: 14px; padding: 20px 18px; }
  .now--idle { flex-direction: row; align-items: center; }
  .now--idle .pulse { width: 32px; height: 32px; }
  .now__title { font-size: 22px; }
}

.ap__setup { width: 100%; max-width: 640px; text-align: left; margin-top: 12px; }
.ap__rules { width: 100%; max-width: 640px; text-align: left; border-top: 0; }

@media (max-width: 760px) {
  .ap__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ap__stats > div { border-top: 1px solid var(--line); }
  .ap__stats > div:nth-child(-n + 2) { border-top: 0; }
  .ap__stats > div + div { border-left: 0; }
  .ap__stats > div:nth-child(even) { border-left: 1px solid var(--line); }
  .ap__stats > div:last-child { grid-column: 1 / -1; border-left: 0; }
  .ap__section { padding: 80px 0; }
  .chart { padding: 18px 14px 12px; }
  .log__item { grid-template-columns: 1fr auto; gap: 6px 12px; }
  .log__item time { grid-column: 1; grid-row: 1; }
  .log__kind { grid-column: 2; grid-row: 1; text-align: right; }
  .log__text { grid-column: 1 / -1; }
  .log__cost { grid-column: 1 / -1; }
  .log__cost:empty { display: none; }
}

@media (max-width: 1000px) {
  .agents { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin-inline: auto; }
}

/* ---------- Launch wizard ---------- */

.block--launch { max-width: 720px; }

.wizard {
  width: 100%;
  margin-top: 28px;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  text-align: left;
  scroll-margin-top: 88px;
}

.steps {
  list-style: none;
  margin: 0 0 36px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.steps[hidden] { display: none; }
.steps li { padding-top: 12px; border-top: 2px solid var(--line); counter-increment: step; }
.steps li::before { content: "0" counter(step) "  "; white-space: pre; }
.steps li.is-done { color: var(--ink-2); border-color: var(--line-2); }
.steps li[aria-current="step"] { color: var(--ink); border-color: var(--ink); }

.step { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.step[hidden] { display: none; }
.step__title {
  margin: 0 0 24px;
  padding: 0;
  font-family: var(--serif);
  font-size: 30px;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.options { display: flex; flex-direction: column; gap: 10px; }
.option {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 20px 18px 52px;
  border: 1px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.option:hover { border-color: var(--line-2); }
.option input {
  position: absolute;
  left: 20px; top: 21px;
  width: 16px; height: 16px;
  margin: 0;
  accent-color: #fff;
}
.option:has(input:checked) { border-color: var(--ink); background: rgba(255, 255, 255, 0.03); }
.option__name { font-size: 17px; font-weight: 500; letter-spacing: -0.01em; }
.option__desc { font-size: 14.5px; color: var(--ink-2); }

.toggle { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-size: 15px; }
.toggle input { width: 16px; height: 16px; margin: 3px 0 0; accent-color: #fff; flex: none; }
.toggle em { display: block; font-style: normal; color: var(--ink-3); font-size: 14px; margin-top: 3px; }

.fields { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 14px; }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--ink-2); }
.field--wide { grid-column: 1 / -1; }
.field > span { display: flex; justify-content: space-between; align-items: baseline; }
.field output { color: var(--ink); font-size: 14px; }
.field input[type="text"] {
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: #000;
  color: var(--ink);
  font: 400 16px var(--sans);
}
.field input[type="text"]::placeholder { color: rgba(255, 255, 255, 0.3); }
.field input[type="text"]:focus { outline: none; border-color: var(--ink); }
.field input[aria-invalid="true"] { border-color: #ff6b6b; }
.field input[type="range"] { width: 100%; accent-color: #fff; height: 28px; }

.note { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-3); }

.rules {
  list-style: none;
  margin: 4px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14.5px;
  color: var(--ink-2);
}
.rules li { display: flex; gap: 10px; }
.rules li::before { content: "—"; color: var(--ink-3); }

.summary { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); border-top: 1px solid var(--line); }
.summary dt, .summary dd { margin: 0; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.summary dt { color: var(--ink-3); padding-right: 24px; }
.summary dd { text-align: right; overflow-wrap: anywhere; }

.brief { display: flex; flex-direction: column; gap: 24px; }
.brief[hidden] { display: none; }

.group { display: flex; flex-direction: column; gap: 10px; }
.group__label { font-size: 14px; color: var(--ink-2); }
.group.is-invalid .group__label { color: #ff8a8a; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip, .segmented label { position: relative; cursor: pointer; }
.chip input, .segmented input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}
.chip span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 14px;
  color: var(--ink-2);
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.chip:hover span { color: var(--ink); }
.chip input:checked + span { border-color: var(--ink); color: var(--ink); background: rgba(255, 255, 255, 0.06); }
.chip input:disabled + span { opacity: 0.6; cursor: default; }
.chip input:focus-visible + span, .segmented input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }

.segmented {
  display: grid;
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  padding: 4px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  gap: 4px;
}
.segmented span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--ink-2);
  text-align: center;
  transition: background 0.15s ease, color 0.15s ease;
}
.segmented label:hover span { color: var(--ink); }
.segmented input:checked + span { background: var(--ink); color: #000; }

.field em { font-style: normal; color: var(--ink-3); margin-left: 6px; }
.field textarea, .field select {
  padding: 13px 16px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: #000;
  color: var(--ink);
  font: 400 16px/1.45 var(--sans);
}
.field textarea { resize: vertical; min-height: 52px; }
.field select {
  min-height: 48px;
  appearance: none;
  padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
.field textarea::placeholder { color: rgba(255, 255, 255, 0.3); }
.field textarea:focus, .field select:focus { outline: none; border-color: var(--ink); }

.identity { display: flex; gap: 16px; align-items: flex-end; }
.fields--grow { flex: 1; min-width: 0; }
.avatar {
  position: relative;
  flex: none;
  width: 104px;
  height: 104px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line-2);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  font-size: 13px;
  color: var(--ink-3);
}
.avatar:hover { border-color: var(--ink-2); color: var(--ink-2); }
.avatar:focus-within { outline: 2px solid var(--ink); outline-offset: 3px; }
.avatar input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* Wallet connect, last step */
.wallet {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 8px;
  padding: 20px;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  background: #000;
}
.wallet.is-connected { border-color: rgba(102, 227, 111, 0.35); }
.wallet__head { display: flex; flex-direction: column; gap: 6px; }
.wallet__title { font-size: 17px; font-weight: 500; letter-spacing: -0.01em; }
.wallet__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.wallet__option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-height: 64px;
  padding: 12px 14px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease;
}
.wallet__option:hover { border-color: var(--ink); }
.wallet__option:disabled { opacity: 0.5; cursor: progress; }
.wallet__option.is-missing { color: var(--ink-2); }
.wallet__name { font-size: 15px; font-weight: 500; }
.wallet__hint { font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green); }
.wallet__option.is-missing .wallet__hint { color: var(--ink-3); }
.wallet__connected { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.wallet__connected code { font-size: 14px; color: var(--ink); }
.wallet__connected .link { margin-left: auto; padding: 8px 0; font-size: 14px; }
.wallet__error { margin: 0; font-size: 14px; color: #ff8a8a; }
@media (max-width: 640px) {
  .wallet__list { grid-template-columns: minmax(0, 1fr); }
  .wallet__option { min-height: 52px; flex-direction: row; justify-content: space-between; align-items: center; }
}

.wizard__nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 32px;
}
.wizard__nav[hidden] { display: none; }

/* ---------- Footer ---------- */

.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 80px 20px 56px;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 12px;
  letter-spacing: 0.08em;
}
.footer .wordmark { color: var(--ink); letter-spacing: -0.02em; }

/* ---------- Small screens ---------- */

@media (max-width: 640px) {
  .nav { padding: 14px 16px; }
  .block { padding: 112px 16px; }
  .wizard { padding: 24px 18px; border-radius: 16px; }
  .steps { margin-bottom: 28px; }
  .steps li::before { content: "0" counter(step); display: block; }
  .fields { grid-template-columns: minmax(0, 1fr); }
  .identity { flex-direction: column; align-items: stretch; }
  .segmented span { padding: 0 6px; font-size: 13px; }
  .steps { gap: 4px; font-size: 10px; letter-spacing: 0.04em; }
  .step__title { font-size: 26px; }
  .flow { font-size: 16px; }
  .states { grid-template-columns: minmax(0, 1fr); }
  .states li + li { border-left: 0; border-top: 1px solid var(--line); }
}
