/* Copycall baseline styles. Tokens come from the design brief v1.0.
   Dark is the default look. One Signal Lime highlight per view. */

:root {
  --ink: #0B0D10;
  --graphite: #14181E;
  --graphite-2: #1B2129;
  --line: #232A33;
  --lime: #C6FF3D;
  --violet: #7B61FF;
  --violet-text: #B3A6FF; /* tint of Pulse Violet for text, AA on Graphite */
  --go: #2EE6A6;
  --coral: #FF5C6C;
  --paper: #F4F6F8;
  --fog: #8B95A3;

  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --r-card: 16px;
  --r-ctl: 12px;
  --s: 8px;
  --glow: 0 0 24px rgba(198, 255, 61, 0.18);
  --t: 180ms ease-out;
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font: 400 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--paper); text-underline-offset: 3px; }
a:hover { color: #fff; }
p { margin: 0 0 16px; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 16px; }
h1 { font-size: clamp(40px, 7vw, 64px); line-height: 1.05; }
h2 { font-size: clamp(28px, 4.4vw, 40px); }
h3 { font-size: 20px; font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
.mono, code { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--fog); }
.small { font-size: 14px; }
.xs { font-size: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:focus-visible { outline: 2px solid var(--paper); outline-offset: 3px; border-radius: 6px; }
.btn:focus-visible, .chip:focus-visible, .field input:focus-visible { outline-offset: 2px; }

.skip { position: absolute; left: 16px; top: -64px; background: var(--paper); color: var(--ink); padding: 8px 16px; border-radius: var(--r-ctl); z-index: 100; font-weight: 600; }
.skip:focus { top: 16px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }
.eyebrow { font: 500 12px/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--fog); margin: 0 0 16px; }
.lead { font-size: 20px; line-height: 1.5; color: var(--fog); max-width: 56ch; }
.lead strong { color: var(--paper); font-weight: 500; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(11, 13, 16, 0.88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font: 700 24px/1 var(--font-head); letter-spacing: -0.04em; color: var(--paper); }
.brand img, .brand svg { width: 32px; height: 32px; }
.nav { display: flex; gap: 24px; margin-left: 16px; }
.nav a { color: var(--fog); text-decoration: none; font-size: 14px; font-weight: 500; padding: 8px 0; transition: color var(--t); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--paper); }
.site-header__cta { margin-left: auto; display: flex; align-items: center; gap: 8px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: var(--r-ctl); border: 1px solid transparent; font: 700 16px/1 var(--font-body); cursor: pointer; text-decoration: none; transition: box-shadow var(--t), background var(--t), border-color var(--t), transform var(--t); white-space: nowrap; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--lime); color: var(--ink); }
.btn--primary:hover { color: var(--ink); box-shadow: var(--glow); }
.btn--secondary { background: var(--graphite); color: var(--paper); border-color: var(--line); font-weight: 600; }
.btn--secondary:hover { background: var(--graphite-2); border-color: #34404d; color: var(--paper); }
.btn--sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn--ghost { background: transparent; color: var(--fog); border-color: transparent; font-weight: 500; }
.btn--ghost:hover { color: var(--paper); }
.btn[disabled], .btn[aria-busy="true"] { opacity: 0.6; cursor: progress; }
.btn:active { transform: translateY(1px); }

/* Pulse dot: the signature "a move just happened" animation */
.pulse { position: relative; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); flex: none; }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--lime); animation: pulse-ring 1.8s ease-out infinite; }
.pulse--once::after { animation-iteration-count: 3; }
.pulse--off { background: var(--fog); }
.pulse--off::after { display: none; }
@keyframes pulse-ring { 0% { transform: scale(1); opacity: 0.9; } 100% { transform: scale(3.2); opacity: 0; } }

/* Tags and chips */
.tag { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 999px; border: 1px solid var(--line); font: 500 12px/1 var(--font-mono); color: var(--fog); white-space: nowrap; }
.tag--ai { color: var(--violet-text); border-color: var(--violet); background: rgba(123, 97, 255, 0.14); font-weight: 600; }
.tag--example { border-style: dashed; }
.chip { display: inline-flex; align-items: center; justify-content: center; min-height: 32px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--lime); background: transparent; color: var(--lime); font: 600 14px/1 var(--font-body); cursor: pointer; transition: background var(--t), box-shadow var(--t); }
.chip:hover { box-shadow: var(--glow); }
.chip[aria-pressed="true"] { background: var(--lime); color: var(--ink); }
.chip[aria-busy="true"] { opacity: 0.6; cursor: progress; }

/* Cards */
.card { background: var(--graphite); border: 1px solid var(--line); border-radius: var(--r-card); padding: 24px; }

/* Callout card (brief section 7.1) */
.callout { background: var(--graphite); border: 1px solid var(--line); border-radius: var(--r-card); padding: 20px; display: grid; align-content: start; gap: 16px; position: relative; transition: border-color var(--t); }
.callout--new { border-color: rgba(198, 255, 61, 0.45); box-shadow: var(--glow); animation: card-in 220ms ease-out; }
@keyframes card-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.callout__head { display: flex; align-items: center; gap: 12px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--graphite-2); border: 1px solid var(--line); display: grid; place-items: center; font: 600 14px/1 var(--font-mono); color: var(--paper); flex: none; text-transform: uppercase; }
.callout__who { min-width: 0; flex: 1; }
.callout__handle { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; min-width: 0; font-weight: 600; line-height: 1.3; }
.callout__handle .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.callout__handle .tag { flex: none; }
.callout__meta { font-size: 12px; color: var(--fog); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.callout__action { margin: 0; font-size: 16px; }
.callout__action .amount { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-weight: 500; }
.ticker { font-family: var(--font-mono); font-weight: 600; letter-spacing: 0.02em; }
.ai-block { border: 1px solid rgba(123, 97, 255, 0.55); background: rgba(123, 97, 255, 0.08); border-radius: var(--r-ctl); padding: 16px; display: grid; gap: 12px; }
.ai-block__head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--fog); }
.ai-block__text { margin: 0; color: var(--paper); font-size: 16px; line-height: 1.5; }
.ai-block__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.callout__foot { display: flex; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; font: 400 14px/1.4 var(--font-mono); font-variant-numeric: tabular-nums; border-top: 1px solid var(--line); padding-top: 16px; margin: 0; }
.callout__foot .copy { color: var(--paper); }
.up { color: var(--go); }
.down { color: var(--coral); }
.callout__corner { position: absolute; top: 20px; right: 20px; }
.callout__pulse { margin-left: 4px; }

/* Hero */
.hero { position: relative; padding: 72px 0 96px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 48px 48px; opacity: 0.35; -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 70%); mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 70%); pointer-events: none; }
.hero__grid { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero__grid > * { min-width: 0; }
.hero h1 .accent-line { display: block; color: var(--paper); }
.hero__sub { font-size: 20px; line-height: 1.5; color: var(--fog); max-width: 46ch; margin-bottom: 32px; }
.hero__ctas { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.hero__note { font-size: 14px; color: var(--fog); max-width: 52ch; margin: 0; }
.stack { display: grid; gap: 16px; position: relative; }
.stack .callout { animation: stack-in 520ms ease-out both; }
.stack .callout:nth-child(1) { animation-delay: 0ms; }
.stack .callout:nth-child(2) { animation-delay: 140ms; margin-left: 32px; opacity: 0.92; }
.stack .callout:nth-child(3) { animation-delay: 280ms; margin-left: 8px; opacity: 0.7; }
.stack .callout:nth-child(1) .ai-block__actions { display: none; }
.stack .callout .ai-block__actions { display: none; }
.stack .callout:nth-child(1) { animation-name: stack-in, float; animation-duration: 520ms, 6s; animation-delay: 0ms, 600ms; animation-iteration-count: 1, infinite; animation-timing-function: ease-out, ease-in-out; animation-fill-mode: both, none; }
@keyframes stack-in { from { opacity: 0; transform: translateY(16px); } to { transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.stack .callout:nth-child(3) { max-height: 112px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 35%, transparent); mask-image: linear-gradient(#000 35%, transparent); pointer-events: none; }
.stack .callout { padding: 16px; gap: 12px; }
.stack .callout--new { box-shadow: none; border-color: var(--line); }
.stack__label { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--fog); font-family: var(--font-mono); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 40px 0 0; padding: 0; list-style: none; counter-reset: step; }
.step { counter-increment: step; }
.step__num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--graphite-2); font: 600 16px/1 var(--font-mono); margin-bottom: 20px; }
.step__num::before { content: counter(step, decimal-leading-zero); }
.step__icon { width: 24px; height: 24px; color: var(--paper); margin-bottom: 16px; }
.icon { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Feed preview */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.section-head h2 { margin: 0; }
.feed-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.example-banner { display: inline-flex; align-items: center; gap: 8px; border: 1px dashed var(--fog); color: var(--paper); border-radius: 999px; padding: 6px 14px; font: 500 12px/1.2 var(--font-mono); }

/* Safety */
.safety { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.safety__item { display: grid; grid-template-columns: 40px 1fr; gap: 16px; }
.safety__item .ico { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--graphite-2); display: grid; place-items: center; }
.safety__item .ico svg { width: 20px; height: 20px; }
.safety__item h3 { margin-bottom: 8px; }
.safety__item p { margin: 0; color: var(--fog); font-size: 16px; }

/* Risk */
.risk { border: 1px solid var(--coral); border-radius: var(--r-card); padding: 32px; background: rgba(255, 92, 108, 0.05); display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; }
.risk h2 { font-size: 28px; margin: 0; }
.risk ul { margin: 0 0 16px; padding-left: 20px; display: grid; gap: 8px; }
.risk__disclaimer { font-weight: 600; margin: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 40px; margin-top: 48px; }
.site-footer__row { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; margin-bottom: 32px; }
.site-footer nav { display: flex; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.site-footer nav a { color: var(--fog); font-size: 14px; text-decoration: none; padding: 4px 0; }
.site-footer nav a:hover { color: var(--paper); text-decoration: underline; }
.disclaimer { font-size: 14px; color: var(--fog); max-width: 80ch; margin: 0 0 8px; }

/* Toast */
.toast-region { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 100; display: grid; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
.toast { background: var(--graphite-2); border: 1px solid var(--line); border-radius: var(--r-ctl); padding: 12px 16px; font-size: 14px; animation: card-in 180ms ease-out; pointer-events: auto; }
.toast--error { border-color: var(--coral); }

/* ---------- App shell ---------- */
.app-top { padding: 32px 0 24px; }
.app-top h1 { font-size: 40px; margin-bottom: 8px; }
.app-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 32px; align-items: start; padding-bottom: 48px; }
.app-side { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; gap: 24px; position: sticky; top: 88px; max-height: calc(100vh - 104px); overflow-y: auto; padding: 4px; margin: -4px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.app-main { min-width: 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.panel-head h2 { font-size: 20px; margin: 0; display: flex; align-items: center; gap: 8px; letter-spacing: -0.01em; font-weight: 600; }
.panel-head h2 svg { width: 20px; height: 20px; }
.feed { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.feed-status { display: flex; align-items: center; gap: 8px; font: 500 12px/1 var(--font-mono); color: var(--fog); flex-wrap: wrap; }
.empty { text-align: center; padding: 40px 24px; color: var(--fog); border: 1px dashed var(--line); border-radius: var(--r-card); }

/* Wallet panel: prominent trust feature */
.wallet { border-color: #34404d; padding: 24px; }
.wallet__status { display: inline-flex; align-items: center; gap: 8px; font: 500 12px/1 var(--font-mono); color: var(--paper); }
.wallet--paused .wallet__status { color: var(--coral); }
.wallet__addr { display: flex; align-items: center; gap: 8px; background: var(--ink); border: 1px solid var(--line); border-radius: var(--r-ctl); padding: 8px 8px 8px 14px; font: 400 14px/1.3 var(--font-mono); margin-bottom: 20px; }
.wallet__addr span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wallet__balance { margin-bottom: 20px; }
.wallet__balance .label { font-size: 12px; color: var(--fog); display: block; margin-bottom: 4px; }
.wallet__balance .big { font: 600 40px/1.05 var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.wallet__balance .sub { font: 400 14px/1.4 var(--font-mono); color: var(--fog); margin-left: 8px; }
.caps { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.field label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.field input[type="text"], .field input[type="number"] { width: 100%; height: 48px; background: var(--ink); color: var(--paper); border: 1px solid var(--line); border-radius: var(--r-ctl); padding: 0 14px; font: 400 16px/1 var(--font-mono); font-variant-numeric: tabular-nums; transition: border-color var(--t); }
.field input::placeholder { color: #6f7a88; }
.field input:hover { border-color: #34404d; }
.field input:focus-visible { outline: 2px solid var(--paper); border-color: var(--paper); }
.field input[aria-invalid="true"] { border-color: var(--coral); }
.field--prefix { position: relative; }
.field--prefix .pre { position: absolute; left: 14px; bottom: 0; height: 48px; display: grid; place-items: center; color: var(--fog); font-family: var(--font-mono); pointer-events: none; }
.field.field--prefix input[type="number"] { padding-left: 30px; }
.field-hint { font-size: 12px; color: var(--fog); margin: 8px 0 0; }
.field-error { font-size: 14px; color: var(--coral); margin: 8px 0 0; min-height: 0; }
.field-error:empty { display: none; }
.meter { height: 8px; border-radius: 999px; background: var(--ink); border: 1px solid var(--line); overflow: hidden; margin: 8px 0; }
.meter > span { display: block; height: 100%; background: var(--fog); width: 0; transition: width 220ms ease-out; }
.meter.is-high > span { background: var(--coral); }
.meter-row { display: flex; justify-content: space-between; gap: 8px; font: 400 12px/1.4 var(--font-mono); color: var(--fog); }
.wallet__row { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.switch-row .title { font-weight: 600; display: block; }
.switch-row .desc { font-size: 14px; color: var(--fog); display: block; }
.switch { position: relative; width: 56px; height: 32px; flex: none; border-radius: 999px; border: 1px solid var(--line); background: var(--ink); cursor: pointer; padding: 0; transition: background var(--t), border-color var(--t); }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--fog); transition: transform var(--t), background var(--t); }
.switch[aria-checked="true"] { border-color: var(--coral); background: rgba(255, 92, 108, 0.15); }
.switch[aria-checked="true"]::after { transform: translateX(24px); background: var(--coral); }
.wallet__gate { text-align: left; }
.wallet__gate p { color: var(--fog); }

/* Follow panel */
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--ink); gap: 2px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { margin: 0; padding: 6px 14px; border-radius: 999px; font: 500 14px/1.2 var(--font-mono); color: var(--fog); cursor: pointer; transition: background var(--t), color var(--t); }
.seg input:checked + label { background: var(--graphite-2); color: var(--paper); box-shadow: inset 0 0 0 1px #34404d; }
.seg input:focus-visible + label { outline: 2px solid var(--paper); outline-offset: 2px; }
.follow-form { display: grid; gap: 16px; }
.following { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 8px; }
.following li { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-ctl); }
.following .who { flex: 1; min-width: 0; }
.following .who .addr { font: 400 12px/1.3 var(--font-mono); color: var(--fog); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.link-btn { background: none; border: 0; padding: 0; color: var(--fog); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font: inherit; font-size: 12px; }
.link-btn:hover { color: var(--paper); }

/* Prose pages */
.prose { max-width: 72ch; }
.prose h2 { font-size: 28px; margin-top: 48px; }
.prose ul { padding-left: 20px; display: grid; gap: 8px; margin: 0 0 16px; }
.prose .callout-box { border: 1px solid var(--coral); border-radius: var(--r-card); padding: 20px 24px; background: rgba(255, 92, 108, 0.05); font-weight: 600; margin: 32px 0; }

/* Responsive */
@media (max-width: 1024px) {
  .app-grid { grid-template-columns: minmax(0, 1fr) 360px; }
  .feed-grid { grid-template-columns: 1fr 1fr; }
  .feed-grid > :nth-child(3) { display: none; }
}
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .section { padding: 64px 0; }
  .app-grid { grid-template-columns: minmax(0, 1fr); }
  .app-side { position: static; max-height: none; overflow: visible; }
  .steps, .safety, .risk { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .wrap { padding: 0 16px; }
  .hero { padding: 40px 0 56px; }
  .hero__sub, .lead { font-size: 18px; }
  .feed-grid { grid-template-columns: 1fr; }
  .feed-grid > :nth-child(3) { display: grid; }
  .stack .callout:nth-child(2) { margin-left: 16px; }
  .stack .callout:nth-child(3) { margin-left: 4px; }
  .risk { padding: 24px; }
  .wallet__balance .big { font-size: 32px; }
  .brand { font-size: 22px; }
  .site-header__inner { gap: 12px; }
  .btn--header { padding: 0 14px; font-size: 14px; }
  .hide-sm { display: none; }
  .app-top h1 { font-size: 32px; }
}
@media (max-width: 380px) {
  .caps { grid-template-columns: 1fr; }
  .callout__corner { position: static; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .pulse::after { display: none; }
}

/* ---- v2: single-tail bot onboarding, post status, notices ---- */
.tag--sim { border-style: dashed; color: var(--paper); border-color: var(--fog); }
.tag--ok { color: var(--go); border-color: var(--go); }
.tag--warn { color: var(--coral); border-color: var(--coral); }

.banner { border: 1px dashed var(--fog); border-radius: var(--r-ctl); padding: 10px 14px; margin: 0 0 20px; font: 500 13px/1.45 var(--font-mono); color: var(--paper); background: rgba(255, 255, 255, 0.03); }

.stepper { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.stepper li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-ctl); color: var(--fog); font-size: 14px; min-width: 0; }
.stepper__n { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); font: 600 12px/1 var(--font-mono); }
.stepper__t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stepper li.is-current { color: var(--paper); border-color: var(--lime); }
.stepper li.is-current .stepper__n { border-color: var(--lime); color: var(--lime); }
.stepper li.is-done { color: var(--paper); }
.stepper li.is-done .stepper__n { background: var(--lime); border-color: var(--lime); color: var(--ink); font-size: 0; }
.stepper li.is-done .stepper__n::before { content: "\2713"; font-size: 13px; font-weight: 700; }

.onboard { margin-bottom: 32px; }
.onboard h2 { margin-bottom: 8px; }
.onboard__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; align-items: center; }
.onboard form { margin-top: 20px; }

.username-status { font-size: 13px; margin: 8px 0 0; min-height: 18px; color: var(--fog); }
.username-status.is-ok { color: var(--go); }
.username-status.is-bad { color: var(--coral); }
.username-status.is-warn { color: var(--paper); }

.notice { border: 1px solid var(--line); border-radius: var(--r-ctl); padding: 16px; margin: 20px 0 0; font-size: 14px; }
.notice h3 { font-size: 15px; margin: 0 0 8px; }
.notice p { margin: 0 0 8px; color: var(--paper); }
.notice ul { margin: 0 0 14px; padding-left: 20px; display: grid; gap: 8px; }
.notice--warn { border-color: var(--coral); background: rgba(255, 92, 108, 0.06); }
.wallet .notice { margin: 16px 0; }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 14px; }
.check input { flex: none; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--lime); cursor: pointer; }
.check input:focus-visible { outline: 2px solid var(--paper); outline-offset: 2px; }

.post-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 0; font-size: 13px; color: var(--fog); }
.post-line__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--fog); flex: none; }
.post-line--posted { color: var(--paper); } .post-line--posted .post-line__dot { background: var(--go); }
.post-line--queued .post-line__dot { background: var(--lime); }
.post-line--failed .post-line__dot, .post-line--blocked .post-line__dot { background: var(--coral); }
.post-line--failed, .post-line--blocked { color: var(--paper); }
.post-line__err { flex-basis: 100%; font: 400 12px/1.4 var(--font-mono); color: var(--fog); overflow-wrap: anywhere; }
.post-line a { color: var(--lime); }

.bot__name { margin: 0 0 8px; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; font-size: 14px; }
.tail-current { margin-bottom: 12px; }
.tail-current__who { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.tail-current .addr { display: block; font: 400 12px/1.4 var(--font-mono); color: var(--fog); overflow-wrap: anywhere; }
.form-row { display: flex; gap: 8px; flex-wrap: wrap; }

@media (max-width: 720px) {
  .stepper { grid-template-columns: repeat(2, 1fr); }
}
[hidden] { display: none !important; }

/* Landing: let grid children shrink so cards never push the page wider than the viewport */
.stack__cards { grid-template-columns: minmax(0, 1fr); }
.stack__cards > *, .feed-grid > * { min-width: 0; }
@media (max-width: 480px) { .stack .callout__head, #preview-grid .callout__head { flex-wrap: wrap; } .stack .callout__head .tag--example, #preview-grid .callout__head .tag--example { margin-left: 52px; } }
@media (max-width: 480px) { .stack .callout__who, #preview-grid .callout__who { flex: 1 0 calc(100% - 52px); } }
.feed { grid-template-columns: minmax(0, 1fr); }
.feed > li { min-width: 0; }
@media (max-width: 480px) { .feed .callout__head { flex-wrap: wrap; } .feed .callout__head .tag--example { margin-left: 52px; } .feed .callout__who { flex: 1 0 calc(100% - 52px); } }
.app-side { max-height: none; overflow: visible; }
