/* agentix.watch site styles (docs/STYLE.md). Dark only. Inter for type, JetBrains Mono for numbers and code.
   One green accent. Cards sit on a fixed, misted agent screen (js/mist.js); a 1240px column framed by hairlines.
   Sections: tokens, base, type, frame + mist, announcement, header, drawer, footer, toast, buttons, cards, forms,
   states, sections, landing (hero, marquee, product panel, features, wall, tape, principles, cta), agents list,
   agent page, chart, deploy + claim, console, owner, docs, how-to, 404, motion. */

@font-face { font-family: "Inter"; src: url("/fonts/inter-var.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 400 800; font-style: normal; font-display: swap; }

/* ------------------------------------------------------------------------------------------------ tokens */
:root {
  --bg: #0B0C0E;
  --panel: rgba(14, 15, 17, 0.98);
  --panel-2: #121316;
  --line: #232427;
  --line-2: #2E3034;
  --text: #EBECEC;
  --body: #C9CACC;
  --dim: #A4A5A5;
  --mute: #7A7B7E;
  --accent: #4ADE80;
  --accent-2: #22C55E;
  --accent-dim: rgba(74, 222, 128, 0.12);
  --on-accent: #06120A;
  --down: #F87171;
  --amber: #FBBF24;
  --blue: #60A5FA;
  --violet: #A78BFA;
  --rec: #FF4D4D;
  --up: var(--accent);
  /* holdings by kind: identity only, always with a labelled legend */
  --k-stock: #60A5FA;
  --k-eth: #F59E0B;
  --k-cash: #2DD4BF;
  --k-meme: #A78BFA;

  --r-card: 16px;
  --r-in: 12px;
  --r-input: 10px;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --col: 1240px;
  --pad: 24px;
  --bar-h: 72px;
  --sect: 120px;
  color-scheme: dark;
}
@media (max-width: 767px) { :root { --pad: 16px; --bar-h: 64px; --sect: 72px; } }

/* ------------------------------------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color: var(--body); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--bar-h) + 20px); }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; position: relative; font-family: var(--sans); font-size: 16px; line-height: 1.55; font-weight: 400; letter-spacing: -0.01em; color: var(--body); background: transparent; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-feature-settings: "cv11", "ss01"; }
main { flex: 1 0 auto; display: block; position: relative; z-index: 2; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--text); }
p a, .lede a, .prose a, .notice a, .guide li a, .howsend a, .machine-steps a { color: var(--text); text-decoration: underline; text-decoration-color: rgba(235, 236, 236, 0.3); text-underline-offset: 3px; text-decoration-thickness: 1px; }
p a:hover, .lede a:hover, .prose a:hover, .notice a:hover, .guide li a:hover, .howsend a:hover, .machine-steps a:hover { text-decoration-color: var(--accent); color: var(--text); }
.prose .toc a, .prose .btn, p .btn { text-decoration: none; }
button { font: inherit; color: inherit; letter-spacing: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; color: var(--text); letter-spacing: -0.02em; }
ul, ol { margin: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; }
code, kbd, pre, samp { font-family: var(--mono); letter-spacing: 0; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
html[data-view="agent"] [data-for="human"] { display: none !important; }
html:not([data-view="agent"]) [data-for="agent"] { display: none !important; }

.wrap { width: 100%; max-width: var(--col); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); position: relative; }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; padding: 10px 16px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 600; }
.skip:focus { top: 12px; }

/* ------------------------------------------------------------------------------------------------ type */
.display, .h-page { font-family: var(--sans); font-weight: 300; letter-spacing: -0.035em; line-height: 1.02; color: var(--text); margin: 0; }
.display { font-size: clamp(40px, 5.2vw, 64px); }
.h-page { font-size: clamp(36px, 4.6vw, 56px); }
.h-sect { font-family: var(--sans); font-weight: 300; letter-spacing: -0.035em; line-height: 1.05; font-size: clamp(32px, 3.9vw, 48px); color: var(--text); margin: 0; }
.l2 { color: var(--dim); }
.h-card { font-size: 22px; font-weight: 400; line-height: 1.25; letter-spacing: -0.02em; color: var(--text); }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; font-size: 14px; color: var(--dim); }
.eyebrow b { color: var(--text); font-weight: 500; }
.eyebrow .rule { flex: 0 0 18px; height: 1px; background: var(--line-2); }
.lede { font-size: 18px; line-height: 1.55; color: var(--dim); max-width: 620px; }
.lede strong, .lede b { color: var(--text); font-weight: 500; }
.dim { color: var(--dim); }
.mute { color: var(--mute); }
.mono { font-family: var(--mono); letter-spacing: 0; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.label { font-size: 13px; line-height: 1.35; color: var(--mute); letter-spacing: -0.005em; }
.up { color: var(--accent); }
.down { color: var(--down); }
.flat { color: var(--dim); }
.warn { color: var(--amber); }
.small { font-size: 14px; }
.nowrap { white-space: nowrap; }
.break { overflow-wrap: anywhere; word-break: break-word; }
.text-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--body); font-size: 14px; text-decoration: underline; text-decoration-color: rgba(201, 202, 204, 0.3); text-underline-offset: 4px; }
.text-link:hover { color: var(--text); text-decoration-color: var(--accent); }

/* ------------------------------------------------------------------------------------------------ frame + mist */
.mist { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; pointer-events: none;
  background: radial-gradient(ellipse 80% 55% at 50% 0%, rgba(74, 222, 128, 0.08), transparent 70%), radial-gradient(ellipse 120% 80% at 50% 120%, rgba(74, 222, 128, 0.04), transparent 70%), #0B0C0E; }
body::after { content: ""; position: fixed; top: 0; bottom: 0; left: 50%; width: min(var(--col), 100%); transform: translateX(-50%); border-left: 1px solid var(--line); border-right: 1px solid var(--line); pointer-events: none; z-index: 1; }
@media (max-width: 1279px) { body::after { width: calc(100% - 16px); } }
@media (max-width: 767px) { body::after { display: none; } }
.ann, .bar, .drawer, .foot, .toast { position: relative; z-index: 3; }

/* ------------------------------------------------------------------------------------------------ announcement bar */
.ann { min-height: 36px; border-bottom: 1px solid var(--line); background: rgba(11, 12, 14, 0.86); font-size: 13px; color: var(--body); }
.ann-in { min-height: 36px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px; padding-top: 6px; padding-bottom: 6px; text-align: center; }
.ann-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.18); flex: 0 0 auto; }
.ann-ca { display: inline-flex; align-items: center; gap: 8px; }
.ann-pill { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel-2); font: 400 12px/1 var(--mono); color: var(--text); }
.ann-copy { height: 24px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--body); font-size: 12px; cursor: pointer; }
.ann-copy:hover { color: var(--text); border-color: var(--line-2); }
.ann-copy[data-done="true"] { color: var(--accent); border-color: rgba(74, 222, 128, 0.4); }
.ann-x a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(235, 236, 236, 0.3); }
@media (max-width: 639px) { .ann-t { display: none; } }

/* ------------------------------------------------------------------------------------------------ header */
.bar { position: sticky; top: 0; z-index: 60; height: var(--bar-h); background: rgba(11, 12, 14, 0.78); border-bottom: 1px solid var(--line); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); }
.bar-in { height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); min-height: 44px; justify-self: start; }
.brand:hover { color: var(--text); }
.brand .mark { width: 24px; height: 24px; }
.wordmark { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; line-height: 1; white-space: nowrap; color: var(--text); }
.wordmark span { color: var(--dim); font-weight: 500; }
.nav { display: flex; align-items: center; gap: 2px; justify-self: center; }
.nav a { display: inline-flex; align-items: center; height: 36px; padding: 0 12px; border-radius: 999px; font-size: 14px; color: var(--body); transition: color 0.15s, background 0.15s; }
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.nav a[aria-current="page"] { color: var(--text); background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); }
.bar-right { justify-self: end; display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; width: 44px; height: 44px; padding: 0; border-radius: 999px; border: 1px solid var(--line); background: var(--panel-2); cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: 14px; right: 14px; height: 1.5px; border-radius: 2px; background: var(--text); }
.menu-btn span:nth-child(1) { top: 16px; }
.menu-btn span:nth-child(2) { top: 21px; }
.menu-btn span:nth-child(3) { top: 26px; }
@media (max-width: 1023px) {
  .bar-in { grid-template-columns: auto 1fr; }
  .bar .nav, .bar .seg { display: none; }
  .menu-btn { display: inline-block; }
}
@media (max-width: 399px) { .bar .btn .long { display: none; } .wordmark { font-size: 16px; } .bar-right { gap: 8px; } }

/* Human | Agent */
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel-2); }
.seg button { min-height: 30px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; color: var(--dim); font-size: 13px; font-weight: 500; cursor: pointer; transition: background 0.15s, color 0.15s; }
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--text); color: #0B0C0E; }

/* ------------------------------------------------------------------------------------------------ drawer (phones) */
.drawer { position: fixed; inset: 0; z-index: 120; }
.drawer-back { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.6); border: 0; padding: 0; width: 100%; cursor: pointer; }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(380px, 90vw); display: flex; flex-direction: column; background: #0E0F11; border-left: 1px solid var(--line); overflow-y: auto; animation: slide 0.22s ease-out; }
.drawer-top { display: flex; align-items: center; justify-content: space-between; height: var(--bar-h); padding: 0 16px 0 20px; border-bottom: 1px solid var(--line); }
.drawer-close { width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel-2); cursor: pointer; position: relative; }
.drawer-close::before, .drawer-close::after { content: ""; position: absolute; left: 14px; right: 14px; top: 21px; height: 1.5px; background: var(--text); transform: rotate(45deg); }
.drawer-close::after { transform: rotate(-45deg); }
.drawer-nav { display: flex; flex-direction: column; padding: 8px 20px; }
.drawer-nav a { display: flex; align-items: center; justify-content: space-between; min-height: 58px; border-bottom: 1px solid var(--line); font-size: 24px; font-weight: 300; letter-spacing: -0.03em; color: var(--text); }
.drawer-nav a[aria-current="page"] { color: var(--accent); }
.drawer-nav a .label { font-family: var(--mono); font-size: 12px; }
.drawer-foot { margin-top: auto; padding: 20px; display: grid; gap: 14px; border-top: 1px solid var(--line); }
.drawer-foot .seg { width: 100%; }
.drawer-foot .seg button { flex: 1 1 0; min-height: 40px; }
.drawer-foot .btn { width: 100%; }
@keyframes slide { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
body.locked { overflow: hidden; }

/* ------------------------------------------------------------------------------------------------ footer */
.foot { margin-top: auto; border-top: 1px solid var(--line); background: rgba(11, 12, 14, 0.92); padding: 72px 0 0; font-size: 14px; overflow: hidden; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr)); gap: 32px; }
.foot-brand p { color: var(--dim); max-width: 300px; margin-top: 16px; font-size: 14px; }
.foot h2 { margin: 0 0 12px; font-size: 13px; font-weight: 500; color: var(--text); letter-spacing: -0.005em; }
.foot ul { list-style: none; padding: 0; display: grid; gap: 2px; }
.foot ul a { display: inline-flex; align-items: center; min-height: 32px; color: var(--dim); }
.foot ul a:hover { color: var(--text); }
.foot-base { margin-top: 56px; padding: 20px 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; justify-content: space-between; color: var(--mute); font-size: 13px; }
.foot-base nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot-base nav a { color: var(--dim); min-height: 32px; display: inline-flex; align-items: center; }
.foot-base nav a:hover { color: var(--text); }
.foot-note { margin: 0; padding: 0 0 8px; color: var(--mute); font-size: 13px; }
.dotmatrix { display: block; width: 100%; height: clamp(120px, 17vw, 240px); margin-top: 8px; }
@media (max-width: 1023px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 639px) { .foot ul a, .foot-base nav a { min-height: 44px; } .foot-base { flex-direction: column; align-items: flex-start; } }

/* ------------------------------------------------------------------------------------------------ toast */
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 90; display: flex; align-items: center; gap: 12px; max-width: calc(100vw - 24px); padding: 6px 6px 6px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(18, 19, 22, 0.96); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5); font-size: 13px; color: var(--body); animation: rise 0.3s ease-out; }
.toast-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: 0 0 auto; }
.toast a.toast-go { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 500; white-space: nowrap; text-decoration: none; }
.toast a.toast-go:hover { background: #6EE79A; color: var(--on-accent); }
.toast-x { width: 32px; height: 32px; border-radius: 999px; border: 0; background: transparent; color: var(--dim); cursor: pointer; display: grid; place-content: center; flex: 0 0 auto; position: relative; }
.toast-x::after { content: ""; position: absolute; inset: -6px; }
.toast-x:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.toast-x svg { width: 14px; height: 14px; }
.toast-t { min-width: 0; }
@media (max-width: 559px) {
  .toast { left: 12px; right: 12px; bottom: 12px; transform: none; max-width: none; border-radius: 16px; padding: 8px 8px 8px 14px; gap: 10px; animation: fadein 0.3s ease-out; }
  .toast-t { flex: 1 1 auto; font-size: 13px; line-height: 1.35; }
}
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { transform: translate(-50%, 10px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }

/* ------------------------------------------------------------------------------------------------ buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 18px; border: 1px solid transparent; border-radius: 999px; font: 500 14px/1 var(--sans); letter-spacing: -0.01em; cursor: pointer; white-space: nowrap; user-select: none; transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s; text-decoration: none; }
.btn svg { width: 15px; height: 15px; flex: 0 0 auto; }
.btn-signal { background: var(--accent); color: var(--on-accent); }
.btn-signal:hover { background: #6EE79A; color: var(--on-accent); }
.btn-signal:active { box-shadow: inset 0 0 0 1px var(--accent-2); }
.btn-ghost, .btn-quiet { background: var(--panel-2); color: var(--text); border-color: var(--line); }
.btn-ghost:hover, .btn-quiet:hover { border-color: var(--line-2); background: #17181C; color: var(--text); }
.btn-danger { background: transparent; color: var(--down); border-color: rgba(248, 113, 113, 0.4); }
.btn-danger:hover { background: rgba(248, 113, 113, 0.08); border-color: var(--down); color: var(--down); }
.btn-sm { min-height: 34px; padding: 0 14px; font-size: 13px; }
.btn-lg { min-height: 46px; padding: 0 22px; font-size: 15px; }
.btn[disabled], .btn[aria-disabled="true"], .btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
@media (pointer: coarse) { .btn { min-height: 44px; } .btn-sm { min-height: 40px; } }
.icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border-radius: 999px; border: 1px solid var(--line); background: var(--panel-2); color: var(--dim); cursor: pointer; flex: 0 0 auto; transition: color 0.15s, border-color 0.15s; }
.icon-btn::after { content: ""; position: absolute; inset: -6px; }
.icon-btn:hover { color: var(--text); border-color: var(--line-2); }
.icon-btn svg { width: 14px; height: 14px; }
.icon-btn[data-done="true"] { color: var(--accent); border-color: rgba(74, 222, 128, 0.45); }
.round-btn { width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); display: inline-grid; place-content: center; flex: 0 0 auto; position: relative; transition: border-color 0.15s, background 0.15s; }
.round-btn::after { content: ""; position: absolute; inset: -4px; }
.round-btn:hover { border-color: var(--line-2); background: #17181C; }
.round-btn svg { width: 15px; height: 15px; }
.link-btn { padding: 0; border: 0; background: none; color: var(--text); text-decoration: underline; text-decoration-color: rgba(235, 236, 236, 0.3); text-underline-offset: 3px; cursor: pointer; font: inherit; }
.link-btn:hover { text-decoration-color: var(--accent); }
.arrow-link { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-size: 14px; font-weight: 500; min-height: 44px; }
.arrow-link svg { width: 15px; height: 15px; transition: transform 0.15s; }
.arrow-link:hover svg { transform: translateX(3px); }

/* ------------------------------------------------------------------------------------------------ cards */
.panel, .card { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-card); }
.vf { position: relative; }
.panel-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; min-height: 56px; padding: 14px 22px; border-bottom: 1px solid var(--line); }
.panel-h h2, .panel-h h3 { font-size: 15px; font-weight: 500; color: var(--text); letter-spacing: -0.01em; }
.panel-h .meta { font-size: 13px; color: var(--mute); }
.panel-b { padding: 22px; }
.tag { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel-2); font-size: 12px; color: var(--dim); white-space: nowrap; }
.tag-preview { color: var(--mute); }
.tag-signal { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }
.pill { display: inline-flex; align-items: center; gap: 7px; height: 24px; padding: 0 10px 0 9px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel-2); font-size: 12px; font-weight: 500; color: var(--dim); white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--mute); flex: 0 0 auto; }
.pill[data-s="live"] { color: var(--accent); background: var(--accent-dim); border-color: rgba(74, 222, 128, 0.3); }
.pill[data-s="live"]::before { background: var(--accent); box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.18); animation: pulse 1.8s ease-in-out infinite; }
.pill[data-s="paused"] { color: var(--amber); background: rgba(251, 191, 36, 0.1); border-color: rgba(251, 191, 36, 0.3); }
.pill[data-s="paused"]::before { background: var(--amber); }
.pill[data-s="tripped"] { color: var(--down); background: rgba(248, 113, 113, 0.1); border-color: rgba(248, 113, 113, 0.32); }
.pill[data-s="tripped"]::before { background: var(--down); }
.pill[data-s="unfunded"]::before, .pill[data-s="unclaimed"]::before { background: transparent; box-shadow: inset 0 0 0 1px var(--dim); }
.pill[data-s="closed"] { color: var(--mute); }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.dot-rec { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.18); animation: pulse 1.8s ease-in-out infinite; flex: 0 0 auto; }

.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 24px; margin: 0; font-size: 14px; }
.kv dt { color: var(--mute); font-size: 13px; line-height: 1.6; }
.kv dd { margin: 0; color: var(--text); min-width: 0; }
@media (max-width: 479px) { .kv { grid-template-columns: minmax(0, 1fr); gap: 2px; } .kv dd { margin-bottom: 12px; } }
.addr { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; min-width: 0; }
.addr code { font: 400 13.5px/1.4 var(--mono); color: var(--text); overflow-wrap: anywhere; min-width: 0; }

/* ------------------------------------------------------------------------------------------------ forms */
.field { display: grid; gap: 8px; }
.field > label, .field-label { font-size: 13px; font-weight: 500; color: var(--body); }
.input, .select, .textarea { width: 100%; min-height: 46px; padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--r-input); background: var(--panel-2); color: var(--text); font: 400 16px/1.4 var(--sans); letter-spacing: -0.01em; transition: border-color 0.15s, box-shadow 0.15s; }
.input.mono, .textarea.mono { font-family: var(--mono); font-size: 14.5px; letter-spacing: 0; }
.textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, var(--dim) 50%), linear-gradient(135deg, var(--dim) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.input::placeholder, .textarea::placeholder { color: var(--mute); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent-2); box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.14); }
.input[aria-invalid="true"] { border-color: var(--down); }
.input:disabled, .select:disabled, .textarea:disabled { color: var(--mute); background: #0F1012; cursor: not-allowed; }
.field-msg { min-height: 20px; font-size: 13.5px; color: var(--mute); margin: 0; }
.field-msg[data-tone="bad"] { color: var(--down); }
.field-msg[data-tone="warn"] { color: var(--amber); }
.field-msg[data-tone="ok"] { color: var(--accent); }
.field-row { display: flex; gap: 10px; align-items: stretch; }
.field-row > .input { flex: 1 1 auto; min-width: 0; }
.counter { font: 400 12px/1 var(--mono); color: var(--mute); justify-self: end; }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-in); background: var(--panel-2); cursor: pointer; font-size: 15px; line-height: 1.5; color: var(--text); }
.check input { appearance: none; -webkit-appearance: none; margin: 1px 0 0; flex: 0 0 auto; width: 20px; height: 20px; border-radius: 6px; border: 1px solid var(--dim); background: transparent; display: grid; place-content: center; cursor: pointer; }
.check input::before { content: ""; width: 10px; height: 5px; border-left: 2px solid var(--on-accent); border-bottom: 2px solid var(--on-accent); transform: translateY(-1px) rotate(-45deg); opacity: 0; }
.check input:checked { background: var(--accent); border-color: var(--accent); }
.check input:checked::before { opacity: 1; }
.check:has(input:checked) { border-color: rgba(74, 222, 128, 0.4); }
.check-plain { padding: 0; border: 0; background: none; align-items: center; min-height: 44px; font-size: 14px; color: var(--body); }
.toggle { display: flex; align-items: center; gap: 14px; min-height: 44px; cursor: pointer; font-size: 15px; color: var(--text); }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle-ui { position: relative; flex: 0 0 auto; width: 42px; height: 24px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel-2); transition: background 0.15s, border-color 0.15s; }
.toggle-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--dim); transition: transform 0.18s, background 0.15s; }
.toggle input:checked + .toggle-ui { background: var(--accent-dim); border-color: rgba(74, 222, 128, 0.5); }
.toggle input:checked + .toggle-ui::after { transform: translateX(18px); background: var(--accent); }
.toggle input:focus-visible + .toggle-ui { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.toggle-text b { display: block; font-weight: 500; }
.toggle-text span { display: block; font-size: 13.5px; color: var(--dim); }
.radio-row { display: inline-flex; border-radius: 999px; border: 1px solid var(--line); background: var(--panel-2); padding: 3px; gap: 2px; }
.radio-row label { position: relative; }
.radio-row input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.radio-row span { display: inline-flex; align-items: center; min-height: 36px; padding: 0 18px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--dim); }
.radio-row input:checked + span { background: var(--text); color: #0B0C0E; }
.radio-row input:focus-visible + span { outline: 2px solid var(--accent-2); outline-offset: 1px; }

/* ------------------------------------------------------------------------------------------------ notices and states */
.notice { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-in); background: var(--panel); color: var(--dim); font-size: 14.5px; line-height: 1.55; }
.notice-k { font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.7; white-space: nowrap; }
.notice p { margin: 0; }
.notice[data-tone="warn"] { border-color: rgba(251, 191, 36, 0.35); }
.notice[data-tone="warn"] .notice-k { color: var(--amber); }
.notice[data-tone="bad"] { border-color: rgba(248, 113, 113, 0.4); }
.notice[data-tone="bad"] .notice-k { color: var(--down); }
.notice[data-tone="ok"] { border-color: rgba(74, 222, 128, 0.35); }
.notice[data-tone="ok"] .notice-k { color: var(--accent); }
@media (max-width: 479px) { .notice { grid-template-columns: minmax(0, 1fr); } }
.state { display: grid; justify-items: center; gap: 10px; padding: 40px 24px; text-align: center; color: var(--dim); border: 1px dashed var(--line-2); border-radius: var(--r-in); background: rgba(14, 15, 17, 0.9); }
.state-k { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--mute); }
.state-k::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--mute); }
.state[data-kind="error"] .state-k { color: var(--amber); }
.state[data-kind="error"] .state-k::before { background: var(--amber); }
.state[data-kind="loading"] .state-k::before { background: var(--accent); animation: pulse 1s ease-in-out infinite; }
.state h3 { font-size: 17px; font-weight: 500; color: var(--text); }
.state p { margin: 0; max-width: 460px; font-size: 14.5px; }
.state .btn { margin-top: 8px; }
.skel { display: block; border-radius: 6px; background: linear-gradient(90deg, #15161A 0%, #1C1D22 50%, #15161A 100%); background-size: 200% 100%; animation: skel 1.4s linear infinite; }
@keyframes skel { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ------------------------------------------------------------------------------------------------ sections */
.sect { padding: var(--sect) 0 0; }
.sect-first { padding-top: 56px; }
.sect-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px 48px; align-items: end; margin-bottom: 40px; }
.sect-head .lede { margin: 0; }
.sect-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; justify-content: flex-end; font-size: 13px; color: var(--mute); }
@media (max-width: 899px) { .sect-head { grid-template-columns: minmax(0, 1fr); margin-bottom: 28px; } .sect-meta { justify-content: flex-start; } }
.intro { text-align: center; max-width: 820px; margin: 0 auto 48px; }
.intro .eyebrow-c { margin: 0 0 14px; font-size: 14px; color: var(--dim); }
.intro .lede { margin: 18px auto 0; text-align: center; }
.page-head { padding: 72px 0 40px; }
.page-head .lede { margin-top: 20px; }
.page-head-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: end; }
@media (max-width: 899px) { .page-head { padding: 48px 0 28px; } .page-head-row { grid-template-columns: minmax(0, 1fr); } }
.reveal { transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.pending { opacity: 0; transform: translateY(12px); }

/* machine path (Agent view) */
.machine { padding: 26px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--panel); }
.machine-h { font-size: 20px; font-weight: 400; margin-bottom: 16px; }
.machine-steps { list-style: none; padding: 0; display: grid; gap: 16px; counter-reset: m; }
.machine-steps > li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; align-items: start; color: var(--dim); }
.machine-steps > li::before { counter-increment: m; content: counter(m, decimal-leading-zero); font: 500 12px/1.9 var(--mono); color: var(--accent); }
.machine-steps p { margin: 0 0 8px; }
@media (max-width: 479px) { .machine { padding: 20px 16px; } .machine-steps > li { grid-template-columns: minmax(0, 1fr); gap: 4px; } }

/* code */
.code { position: relative; border: 1px solid var(--line); border-radius: var(--r-in); background: #0C0D0F; min-width: 0; overflow: hidden; }
.code-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 42px; padding: 4px 6px 4px 14px; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--mute); }
.code pre { margin: 0; padding: 16px; overflow-x: auto; font: 400 13px/1.7 var(--mono); color: var(--text); tab-size: 2; white-space: pre; }
.code .c-m { color: var(--mute); }
.code .c-s { color: var(--accent); }
.code-line { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 6px 7px 6px 14px; border: 1px solid var(--line); border-radius: var(--r-in); background: #0C0D0F; font: 400 13.5px/1.4 var(--mono); min-width: 0; }
.code-line code { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; color: var(--text); }
.code-line .k { flex: 0 0 auto; font-size: 11.5px; color: var(--accent); font-weight: 600; }
:not(pre) > code.inl, .prose :not(pre) > code { padding: 1px 6px; border-radius: 6px; border: 1px solid var(--line); background: var(--panel-2); font-size: 0.86em; color: var(--text); overflow-wrap: anywhere; }

/* FAQ */
.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.faq > div { display: grid; gap: 12px; align-content: start; }
.faq details { border: 1px solid var(--line); border-radius: var(--r-in); background: var(--panel); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding: 14px 18px; cursor: pointer; list-style: none; font-size: 16px; color: var(--text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: 0 0 auto; width: 12px; height: 12px; background: linear-gradient(var(--dim), var(--dim)) center / 12px 1.5px no-repeat, linear-gradient(var(--dim), var(--dim)) center / 1.5px 12px no-repeat; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 18px 18px; color: var(--dim); font-size: 15px; }
@media (max-width: 899px) { .faq { grid-template-columns: minmax(0, 1fr); } }

/* ------------------------------------------------------------------------------------------------ landing: hero */
.hero { position: relative; padding: 72px 0 56px; }
.hero::before { content: ""; position: absolute; left: 0; right: 0; top: -40px; bottom: -20px; pointer-events: none; z-index: -1; background: radial-gradient(ellipse 48% 70% at 28% 55%, rgba(11, 12, 14, 0.62), transparent 74%), radial-gradient(ellipse 42% 62% at 74% 52%, rgba(11, 12, 14, 0.5), transparent 76%); }
.page-head { position: relative; }
.page-head::before { content: ""; position: absolute; left: -10%; right: 20%; top: 0; bottom: 0; pointer-events: none; z-index: -1; background: radial-gradient(ellipse 60% 70% at 30% 55%, rgba(11, 12, 14, 0.5), transparent 75%); }
.badge { display: inline-flex; align-items: center; gap: 10px; height: 34px; padding: 0 4px 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel-2); font-size: 13px; color: var(--body); margin-bottom: 36px; }
.badge:hover { color: var(--text); border-color: var(--line-2); }
.badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.2); animation: pulse 1.8s ease-in-out infinite; }
.badge-chip { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; background: #E6E7E8; color: #0B0C0E; font-weight: 500; font-size: 12px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 32px 64px; align-items: end; }
.hero-side .lede { margin: 0 0 24px; }
.hero-side .btn-row { margin-bottom: 6px; }
@media (max-width: 899px) { .hero { padding: 48px 0 40px; } .hero-grid { grid-template-columns: minmax(0, 1fr); } .badge { margin-bottom: 28px; } }

/* marquee */
.marquee { position: relative; overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(11, 12, 14, 0.8); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; animation: mq 70s linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
.mq { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 22px; border-right: 1px solid var(--line); font-size: 14px; color: var(--body); white-space: nowrap; }
.mq b { color: var(--text); font-weight: 500; font-family: var(--mono); font-size: 13.5px; letter-spacing: 0; }
.mq .num { font-size: 13px; }
.mq .tag { height: 22px; font-size: 11.5px; }
@keyframes mq { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* product panel: the floor as an app */
.product { overflow: hidden; }
.product-top { display: flex; align-items: center; gap: 14px; height: 48px; padding: 0 18px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--dim); }
.product-top .dots { display: inline-flex; gap: 6px; }
.product-top .dots i { width: 10px; height: 10px; border-radius: 50%; background: #26272B; }
.product-top .addr-bar { flex: 1 1 auto; display: flex; justify-content: center; }
.product-top .addr-bar span { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 14px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); font: 400 12.5px/1 var(--mono); color: var(--body); }
.product-top time { font: 400 12.5px/1 var(--mono); color: var(--body); font-variant-numeric: tabular-nums; }
.product-body { display: grid; grid-template-columns: 196px minmax(0, 1fr); }
.rail { display: flex; flex-direction: column; gap: 2px; padding: 18px 12px; border-right: 1px solid var(--line); }
.rail-k { padding: 0 10px 8px; font-size: 12px; color: var(--mute); }
.rail a { display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 0 10px; border-radius: 10px; font-size: 14px; color: var(--body); }
.rail a:hover { background: rgba(255, 255, 255, 0.03); color: var(--text); }
.rail a.is-on { background: var(--panel-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.rail a i { width: 6px; height: 6px; border-radius: 2px; background: var(--mute); }
.rail a.is-on i { background: var(--accent); }
.product-main { display: grid; gap: 14px; padding: 18px; min-width: 0; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stat { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-in); background: var(--panel-2); min-width: 0; }
.stat .label { display: block; margin-bottom: 10px; }
.stat-v { display: block; font-size: clamp(22px, 2.2vw, 28px); font-weight: 400; color: var(--text); letter-spacing: -0.03em; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-v .skel { height: 26px; width: 70%; }
.product-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 14px; }
.card-in { border: 1px solid var(--line); border-radius: var(--r-in); background: var(--panel-2); min-width: 0; }
.card-in-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px 0; font-size: 14px; color: var(--text); }
.card-in-h span { font-size: 12.5px; color: var(--mute); }
.product-row .card-in { display: flex; flex-direction: column; }
.bars { display: flex; align-items: flex-end; gap: 6px; flex: 1 1 auto; height: auto; min-height: 148px; padding: 16px; }
.bars .bar-c { flex: 1 1 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; height: 100%; min-width: 0; position: relative; }
.bars .bar-c i { display: block; width: min(22px, 100%); border-radius: 4px 4px 0 0; background: var(--accent); min-height: 2px; opacity: 0.9; }
.bars .bar-c i.zero { background: #26272B; }
.bars .bar-c span { font: 400 10.5px/1 var(--mono); color: var(--mute); }
.bars .bar-c:hover i { opacity: 1; filter: brightness(1.15); }
.bars-note { padding: 0 16px 14px; font-size: 12.5px; color: var(--mute); margin: 0; }
.cycle { list-style: none; margin: 0; padding: 12px 16px 16px; display: grid; gap: 6px; }
.cycle li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; padding: 8px 10px; border-radius: 10px; font-size: 13.5px; color: var(--dim); transition: background 0.3s, color 0.3s; }
.cycle li b { display: block; font-weight: 500; color: var(--body); font-size: 13.5px; }
.cycle li span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cycle li i { width: 22px; height: 22px; border-radius: 999px; border: 1px solid var(--line-2); display: grid; place-content: center; font: 500 10.5px/1 var(--mono); font-style: normal; color: var(--mute); }
.cycle li.on { background: var(--accent-dim); color: var(--body); }
.cycle li.on b { color: var(--text); }
.cycle li.on i { border-color: var(--accent); color: var(--accent); }
.cycle li.done i { color: var(--accent); border-color: rgba(74, 222, 128, 0.35); }
.term { background: #0A0B0C; }
.term-h { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--mute); }
.term-h i { width: 8px; height: 8px; border-radius: 50%; background: #26272B; }
.term pre { margin: 0; padding: 14px 16px 16px; min-height: 104px; font: 400 13px/1.65 var(--mono); color: var(--body); white-space: pre-wrap; overflow-wrap: anywhere; }
.term pre .p { color: var(--accent); }
.term pre .o { color: var(--dim); }
.caret::after { content: ""; display: inline-block; width: 0.55em; height: 1.05em; margin-left: 2px; vertical-align: -0.18em; background: var(--accent); animation: pulse 1s steps(1) infinite; }
@media (max-width: 1023px) {
  .product-body { grid-template-columns: minmax(0, 1fr); }
  .rail { flex-direction: row; flex-wrap: wrap; border-right: 0; border-bottom: 1px solid var(--line); padding: 12px; }
  .rail-k { display: none; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-row { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 559px) { .product-top .dots { display: none; } .product-main { padding: 12px; gap: 12px; } .stats { gap: 10px; } .stat { padding: 12px 14px; } .bars { gap: 3px; } .bars .bar-c span { font-size: 9px; } }

/* features */
.features { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.feature { grid-column: span 2; display: flex; flex-direction: column; gap: 18px; padding: 26px; min-width: 0; }
.feature-lg { grid-column: span 3; }
.feature-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dot-k { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--body); }
.dot-k::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--k, var(--accent)); }
.feature-h { font-size: 22px; font-weight: 400; line-height: 1.25; letter-spacing: -0.02em; color: var(--text); }
.feature-ui { margin-top: auto; display: grid; gap: 10px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-in); background: var(--panel-2); min-width: 0; font-size: 14px; }
.mini-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; }
.mini-row > span:first-child { color: var(--dim); }
.mini-input { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 6px 0 14px; border: 1px solid var(--line); border-radius: var(--r-input); background: #0C0D0F; font: 400 13px/1 var(--mono); color: var(--mute); }
.mini-input span { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-input .btn { min-height: 32px; padding: 0 12px; font-size: 13px; }
.mini-list { list-style: none; margin: 0; padding: 0; display: grid; }
.mini-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--body); min-width: 0; }
.mini-list li:last-child { border-bottom: 0; }
.mini-list li b { font-weight: 500; color: var(--text); font-family: var(--mono); font-size: 13px; letter-spacing: 0; }
.mini-list .yes::before, .mini-list .no::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 10px; border-radius: 50%; vertical-align: 1px; }
.mini-list .yes::before { background: var(--accent); }
.mini-list .no::before { background: var(--down); }
.mini-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.mini-2 h4 { font-size: 13px; font-weight: 500; color: var(--text); margin-bottom: 4px; }
.mini-step { display: flex; gap: 8px; flex-wrap: wrap; }
.mini-step span { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); font-size: 12.5px; color: var(--body); }
.mini-step b { font: 500 11px/1 var(--mono); color: var(--accent); }
@media (max-width: 1023px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } .feature, .feature-lg { grid-column: span 1; } .feature:last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (max-width: 679px) { .features { grid-template-columns: minmax(0, 1fr); } .feature, .feature-lg, .feature:last-child:nth-child(odd) { grid-column: 1 / -1; padding: 20px; } .mini-2 { grid-template-columns: minmax(0, 1fr); } }

/* wall + tape */
.floor-grid { display: grid; grid-template-columns: minmax(0, 1fr) 372px; gap: 16px; align-items: start; }
@media (max-width: 1179px) { .floor-grid { grid-template-columns: minmax(0, 1fr); } }
.wall { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 899px) { .wall { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 559px) { .wall { grid-template-columns: minmax(0, 1fr); } }
.wall-empty { grid-column: 1 / -1; }
.wall-more { display: none; grid-column: 1 / -1; justify-content: center; }
.tile { position: relative; display: flex; flex-direction: column; gap: 12px; min-width: 0; min-height: 222px; padding: 18px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-card); color: var(--body); transition: border-color 0.15s, transform 0.15s; }
a.tile:hover { border-color: var(--line-2); color: var(--body); transform: translateY(-1px); }
.tile-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; font: 400 12.5px/1 var(--mono); color: var(--mute); }
.tile-cam { color: var(--dim); }
.tile-name { font-size: 18px; font-weight: 500; line-height: 1.2; letter-spacing: -0.02em; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-style { margin-top: 3px; font-size: 13px; color: var(--mute); }
.tile-figs { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.tile-val { font-size: 26px; font-weight: 400; line-height: 1; letter-spacing: -0.03em; color: var(--text); white-space: nowrap; }
.tile-pnlbox { text-align: right; }
.tile-k { display: block; margin-bottom: 4px; font-size: 11.5px; color: var(--mute); text-align: right; }
.tile-pnl { font: 500 13px/1 var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tile-spark { position: relative; height: 44px; }
.tile-last { margin-top: auto; display: grid; gap: 4px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.45; color: var(--dim); min-width: 0; }
.tile-last span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile-last time { font: 400 11.5px/1.3 var(--mono); color: var(--mute); }
.tile.is-preview { border-style: dashed; }
.tile.is-preview .tile-val { color: var(--mute); }
.tile.is-loading .skel { height: 14px; }
@media (max-width: 559px) { .tile { min-height: 0; } .wall[data-open="false"] > .tile:nth-child(n + 5) { display: none; } .wall-more { display: flex; } }
.spark { position: relative; width: 100%; height: 100%; }
.spark svg { width: 100%; height: 100%; overflow: visible; }
.spark-dot { position: absolute; right: -4px; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; box-shadow: 0 0 0 2px #0E0F11; }
.spark-none { display: flex; align-items: center; height: 100%; font-size: 12px; color: var(--mute); border-top: 1px dashed var(--line); }
.tape { position: sticky; top: calc(var(--bar-h) + 16px); display: flex; flex-direction: column; max-height: calc(100vh - var(--bar-h) - 32px); min-height: 360px; overflow: hidden; }
.tape .panel-h { flex: 0 0 auto; }
.tape-list { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1 1 auto; overscroll-behavior: contain; }
.tape-row { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--line); font-size: 13.5px; line-height: 1.45; }
.tape-row.is-new { animation: flash 1.6s ease-out; }
@keyframes flash { from { background: rgba(74, 222, 128, 0.1); } to { background: transparent; } }
.tape-t { font: 400 11.5px/1.7 var(--mono); color: var(--mute); font-variant-numeric: tabular-nums; }
.tape-who { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 3px; }
.tape-who a { font-weight: 500; color: var(--text); }
.tape-who a:hover { color: var(--accent); }
.tape-text { color: var(--dim); overflow-wrap: anywhere; }
.tape-tx { margin-left: 6px; font: 400 11.5px var(--mono); color: var(--mute); text-decoration: underline; text-underline-offset: 3px; }
.tape-tx:hover { color: var(--text); }
.tape .state { margin: 16px; }
.tape-more { display: none; }
@media (max-width: 1179px) {
  .tape { position: relative; top: 0; max-height: none; min-height: 0; }
  .tape-list { overflow: visible; }
  .tape[data-open="false"] .tape-row:nth-child(n + 9) { display: none; }
  .tape-more { display: flex; justify-content: center; padding: 12px; border-top: 1px solid var(--line); }
}
@media (max-width: 479px) { .tape-row { grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 12px 16px; } }
.atype { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--dim); white-space: nowrap; }
.atype::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--mute); }
.atype[data-t="buy"]::before, .atype[data-t="deposit"]::before, .atype[data-t="resume"]::before, .atype[data-t="rearmed"]::before { background: var(--accent); }
.atype[data-t="sell"]::before, .atype[data-t="withdraw"]::before, .atype[data-t="exit"]::before, .atype[data-t="error"]::before, .atype[data-t="tripped"]::before { background: var(--down); }
.atype[data-t="meme_buy"]::before, .atype[data-t="meme_sell"]::before { background: var(--violet); }
.atype[data-t="pause"]::before, .atype[data-t="limits"]::before { background: var(--amber); }
.atype[data-t="think"]::before { background: var(--text); border-radius: 50%; }
.atype[data-t="created"]::before, .atype[data-t="x_linked"]::before, .atype[data-t="hold"]::before { background: var(--dim); }

/* principles */
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.quote-card { margin: 0; display: flex; flex-direction: column; gap: 28px; padding: 26px; min-width: 0; }
.quote-card .pill-k { align-self: flex-end; display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel-2); font-size: 12px; color: var(--dim); }
.quote-card blockquote { margin: 0; font-size: 26px; font-weight: 400; line-height: 1.25; letter-spacing: -0.025em; color: var(--text); }
.quote-card figcaption { margin-top: auto; display: flex; align-items: center; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.q-ico { width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel-2); display: grid; place-content: center; color: var(--accent); flex: 0 0 auto; }
.q-ico svg { width: 16px; height: 16px; }
.quote-card figcaption b { display: block; font-size: 14px; font-weight: 500; color: var(--text); }
.quote-card figcaption span span { display: block; font-size: 13px; color: var(--dim); }
@media (max-width: 1023px) { .principles { grid-template-columns: minmax(0, 1fr); } .quote-card blockquote { font-size: 23px; } }

/* cta */
.cta { text-align: center; padding: 72px 24px; display: grid; justify-items: center; gap: 20px; overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(ellipse 60% 80% at 50% 0%, rgba(74, 222, 128, 0.09), transparent 70%); }
.cta p { margin: 0; max-width: 520px; color: var(--dim); font-size: 17px; }
.cta > * { position: relative; }
@media (max-width: 639px) { .cta { padding: 48px 18px; } }
.foot-space { height: var(--sect); }

/* ------------------------------------------------------------------------------------------------ agents list */
.toolbar { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.tabs { display: inline-flex; flex-wrap: wrap; border-radius: 999px; border: 1px solid var(--line); background: var(--panel-2); padding: 3px; gap: 2px; }
.tabs button, .tabs a { min-height: 34px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--dim); font-size: 13px; font-weight: 500; cursor: pointer; display: inline-flex; align-items: center; }
.tabs button:hover { color: var(--text); }
.tabs [aria-selected="true"], .tabs [aria-pressed="true"] { background: var(--text); color: #0B0C0E; }
.search { position: relative; flex: 0 1 340px; min-width: 0; }
.search .input { padding-left: 40px; min-height: 44px; border-radius: 999px; }
.search svg { position: absolute; left: 15px; top: 50%; width: 15px; height: 15px; margin-top: -7.5px; color: var(--mute); pointer-events: none; }
@media (max-width: 639px) { .search { flex: 1 1 100%; } .toolbar .tabs { width: 100%; } .toolbar .tabs button { flex: 1 1 0; padding: 0 8px; } }
.tbl-wrap { border: 1px solid var(--line); border-radius: var(--r-card); background: var(--panel); overflow: hidden; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); font-size: 12.5px; font-weight: 500; color: var(--mute); white-space: nowrap; }
.tbl td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; color: var(--body); }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr { transition: background 0.12s; }
.tbl tbody tr:hover { background: var(--panel-2); }
.tbl .r { text-align: right; }
.tbl .num, .tbl .m { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 13px; letter-spacing: 0; }
.tbl .rank { width: 60px; color: var(--mute); }
.tbl .who a, .tbl .who b { font-weight: 500; color: var(--text); }
.tbl .who a:hover { color: var(--accent); }
.tbl .who small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--mute); }
.tbl .spk { width: 120px; height: 34px; }
.tbl .sub { display: block; font: 400 12px/1.3 var(--mono); color: var(--mute); }
.tbl-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--mute); }
.pager { display: flex; gap: 8px; }
@media (max-width: 679px) {
  .tbl, .tbl tbody, .tbl tr, .tbl td { display: block; width: 100%; }
  .tbl thead, .tbl caption { display: none; }
  .tbl tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 16px; padding: 16px; border-bottom: 1px solid var(--line); }
  .tbl tbody tr:last-child { border-bottom: 0; }
  .tbl td { padding: 0; border: 0; text-align: left !important; min-width: 0; width: auto; }
  .tbl td.w { grid-column: 1 / -1; }
  .tbl td.top { order: -2; }
  .tbl td::before { content: attr(data-l); display: block; margin-bottom: 4px; font-size: 12px; color: var(--mute); white-space: nowrap; }
  .tbl td[data-l=""]::before { display: none; }
  .tbl .rank { width: auto; }
  .tbl .spk { width: 100%; height: 36px; }
}

/* ------------------------------------------------------------------------------------------------ agent page */
.ag-head { padding: 56px 0 32px; }
.ag-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-bottom: 20px; }
.ag-cam { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel-2); font: 500 12.5px/1 var(--mono); color: var(--text); }
.ag-title-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 40px; align-items: end; }
.ag-name { font-family: var(--sans); font-weight: 300; font-size: clamp(36px, 5vw, 64px); line-height: 1.02; letter-spacing: -0.035em; color: var(--text); overflow-wrap: anywhere; }
.ag-meta { display: grid; grid-template-columns: repeat(3, minmax(0, auto)); gap: 16px 36px; margin-top: 28px; }
.ag-meta > div { min-width: 0; }
.ag-meta .label { display: block; margin-bottom: 6px; }
.ag-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 899px) { .ag-title-row { grid-template-columns: minmax(0, 1fr); } .ag-meta { grid-template-columns: minmax(0, 1fr); gap: 14px; } }
.kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.kpi { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r-in); background: var(--panel); min-width: 0; }
.kpi .label { display: block; margin-bottom: 10px; }
.kpi-v { display: block; font-size: clamp(22px, 2.2vw, 30px); font-weight: 400; line-height: 1.05; letter-spacing: -0.03em; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-v.up { color: var(--accent); }
.kpi-v.down { color: var(--down); }
.kpi-v.flat { color: var(--dim); }
.kpi-s { display: block; margin-top: 8px; font: 400 12.5px/1.3 var(--mono); color: var(--mute); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1023px) { .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 559px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .kpi { padding: 14px 16px; } .kpi:last-child { grid-column: 1 / -1; } }
.ag-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.ag-grid > * { min-width: 0; }
.ag-col { display: grid; gap: 16px; min-width: 0; }
@media (max-width: 1023px) { .ag-grid { grid-template-columns: minmax(0, 1fr); } }
.ag-block { margin-top: 16px; }
.chart-box { position: relative; height: 320px; padding: 8px 0 0; }
.chart-box svg { width: 100%; height: 100%; overflow: visible; }
.chart-box:focus-visible { outline-offset: -2px; }
.chart-tip { position: absolute; top: 12px; z-index: 3; min-width: 150px; padding: 10px 12px; border-radius: 10px; background: #17181C; border: 1px solid var(--line-2); pointer-events: none; font: 400 12px/1.5 var(--mono); color: var(--dim); white-space: nowrap; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4); }
.chart-tip b { display: block; font: 500 16px/1.3 var(--sans); color: var(--text); }
.chart-axis { font: 400 11px var(--mono); fill: var(--mute); }
.chart-grid { stroke: var(--line); stroke-width: 1; shape-rendering: crispEdges; }
.chart-ref { stroke: var(--line-2); stroke-width: 1; shape-rendering: crispEdges; }
.chart-ref-t { font: 400 11px var(--mono); fill: var(--dim); }
.chart-line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart-area { fill: rgba(74, 222, 128, 0.1); stroke: none; }
.chart-dot { fill: var(--accent); stroke: #0E0F11; stroke-width: 2; }
.is-down .chart-line { stroke: var(--down); }
.is-down .chart-area { fill: rgba(248, 113, 113, 0.1); }
.is-down .chart-dot { fill: var(--down); }
.chart-x { stroke: var(--dim); stroke-width: 1; shape-rendering: crispEdges; }
.chart-wrap { padding: 4px 20px 16px; }
.chart-sum { margin: 0; padding: 0 22px 18px; font-size: 13px; color: var(--mute); }
.alloc { display: flex; gap: 2px; height: 8px; margin: 20px 22px 14px; }
.alloc i { display: block; height: 100%; min-width: 2px; border-radius: 4px; }
.alloc-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0 22px 18px; font-size: 13px; color: var(--body); }
.alloc-legend span { display: inline-flex; align-items: center; gap: 8px; }
.alloc-legend i { width: 9px; height: 9px; border-radius: 3px; }
.k-stock { background: var(--k-stock); }
.k-eth { background: var(--k-eth); }
.k-cash { background: var(--k-cash); }
.k-meme { background: var(--k-meme); }
.kind { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--body); white-space: nowrap; }
.kind i { width: 8px; height: 8px; border-radius: 2px; }
.thought { margin: 0; padding: 22px; font-size: 19px; line-height: 1.45; color: var(--text); font-weight: 400; letter-spacing: -0.02em; }
.thought::before { content: ""; display: block; width: 22px; height: 2px; margin-bottom: 14px; border-radius: 2px; background: var(--accent); }
.thought footer { margin-top: 12px; font: 400 12.5px/1.4 var(--mono); color: var(--mute); }
.log { list-style: none; margin: 0; padding: 0; }
.log li { display: grid; grid-template-columns: 150px 108px minmax(0, 1fr) auto; gap: 8px 16px; align-items: baseline; padding: 12px 22px; border-bottom: 1px solid var(--line); font-size: 14px; }
.log li:last-child { border-bottom: 0; }
.log time { font: 400 12px/1.5 var(--mono); color: var(--mute); font-variant-numeric: tabular-nums; white-space: nowrap; }
.log .log-text { color: var(--body); overflow-wrap: anywhere; min-width: 0; }
.log .log-tx { font: 400 12px/1.5 var(--mono); color: var(--dim); white-space: nowrap; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(164, 165, 165, 0.35); }
.log .log-tx:hover { color: var(--text); }
.log-more { display: flex; justify-content: center; padding: 14px; border-top: 1px solid var(--line); }
@media (max-width: 719px) { .log li { grid-template-columns: minmax(0, 1fr) auto; padding: 12px 16px; } .log .log-text, .log .log-tx { grid-column: 1 / -1; } }
.policy { list-style: none; margin: 0; padding: 0; }
.policy li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding: 12px 22px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--dim); }
.policy li:last-child { border-bottom: 0; }
.policy li b { font: 500 13px/1.5 var(--mono); color: var(--text); text-align: right; font-variant-numeric: tabular-nums; }
.fund { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 22px; padding: 22px; align-items: start; }
.qr { width: 150px; padding: 10px; border-radius: 12px; background: #F2F3F1; flex: 0 0 auto; }
.qr svg { width: 100%; height: auto; }
.fund .addr code { font-size: 13.5px; }
.fund p { color: var(--dim); font-size: 14px; margin: 12px 0 0; }
@media (max-width: 559px) { .fund { grid-template-columns: minmax(0, 1fr); } .qr { width: 168px; } }
.xhint { padding: 22px; }
.xhint p { margin: 0 0 12px; color: var(--dim); font-size: 14px; }

/* ------------------------------------------------------------------------------------------------ deploy + claim */
.wizard { max-width: 980px; min-width: 0; }
.wiz-grid { display: grid; grid-template-columns: minmax(0, 960px) minmax(0, 1fr); gap: 32px; align-items: start; }
.wiz-aside { position: sticky; top: calc(var(--bar-h) + 24px); padding: 22px; display: grid; gap: 14px; }
.wiz-aside h2 { font-size: 15px; font-weight: 500; color: var(--text); }
.wiz-aside ul { list-style: none; padding: 0; margin: 0; display: grid; }
.wiz-aside li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.5; color: var(--dim); }
.wiz-aside li b { display: block; margin-bottom: 2px; color: var(--text); font-weight: 500; }
@media (max-width: 1179px) { .wiz-grid { grid-template-columns: minmax(0, 1fr); } .wiz-aside { position: relative; top: 0; max-width: 980px; } }
.stepper { list-style: none; padding: 0; margin: 0 0 36px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.stepper li { position: relative; padding: 14px 16px 0 0; font-size: 14px; color: var(--mute); border-top: 2px solid var(--line); }
.stepper li b { display: block; margin-bottom: 2px; font: 500 12px/1.4 var(--mono); color: inherit; }
.stepper li[aria-current="step"] { color: var(--text); border-top-color: var(--accent); }
.stepper li[data-done="true"] { color: var(--dim); border-top-color: rgba(74, 222, 128, 0.4); }
.wstep { display: grid; gap: 24px; }
.wstep-h { display: grid; gap: 8px; }
.wstep-h h2 { font-size: clamp(24px, 2.6vw, 30px); font-weight: 300; letter-spacing: -0.03em; line-height: 1.15; }
.wstep-h p { margin: 0; color: var(--dim); max-width: 640px; }
.styles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 899px) { .styles { grid-template-columns: minmax(0, 1fr); } }
.style-card { position: relative; display: block; cursor: pointer; }
.style-card input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.style-card .sc { position: relative; display: grid; gap: 14px; height: 100%; align-content: start; padding: 22px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--panel); transition: border-color 0.15s, background 0.15s; }
.style-card:hover .sc { border-color: var(--line-2); }
.style-card input:checked + .sc { border-color: rgba(74, 222, 128, 0.6); background: linear-gradient(180deg, rgba(74, 222, 128, 0.07), rgba(14, 15, 17, 0.98) 60%); }
.style-card input:focus-visible + .sc { outline: 2px solid var(--accent-2); outline-offset: 3px; }
.sc-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sc h3 { font-size: 22px; font-weight: 400; letter-spacing: -0.02em; }
.sc-radio { width: 20px; height: 20px; border: 1px solid var(--dim); border-radius: 50%; display: grid; place-content: center; }
.style-card input:checked + .sc .sc-radio { border-color: var(--accent); }
.style-card input:checked + .sc .sc-radio::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.sc p { margin: 0; color: var(--dim); font-size: 14px; }
.sc ul { list-style: none; padding: 0; margin: 0; display: grid; border-top: 1px solid var(--line); }
.sc li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--dim); }
.sc li b { font: 500 13px/1.5 var(--mono); color: var(--text); text-align: right; white-space: nowrap; }
.wpanel { padding: 22px; display: grid; gap: 18px; }
@media (max-width: 479px) { .wpanel { padding: 18px 16px; } .style-card .sc { padding: 18px; } }
.found { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 14px; color: var(--mute); margin: 0; }
.found code { color: var(--body); }
.wnav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.vault-big { display: grid; gap: 10px; }
.vault-big code { font: 500 clamp(15px, 2vw, 21px)/1.45 var(--mono); color: var(--text); overflow-wrap: anywhere; }
.fund-grid { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px; align-items: start; }
.fund-grid .qr { width: 196px; }
@media (max-width: 719px) { .fund-grid { grid-template-columns: minmax(0, 1fr); } .fund-grid .qr { width: 184px; } }
.howsend { list-style: none; padding: 0; margin: 0; display: grid; counter-reset: hs; border-top: 1px solid var(--line); }
.howsend li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--dim); font-size: 15px; }
.howsend li::before { counter-increment: hs; content: counter(hs, decimal-leading-zero); font: 500 12px/1.9 var(--mono); color: var(--accent); }
.howsend b { color: var(--text); font-weight: 500; }
.wait { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-in); background: var(--panel-2); font-size: 15px; }
.wait .dot-rec { flex: 0 0 auto; }
.wait[data-state="waiting"] .dot-rec { background: var(--amber); box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.18); }
.wait[data-state="live"] { border-color: rgba(74, 222, 128, 0.45); }
.wait[data-state="live"] p { font-weight: 500; color: var(--text); }
.wait p { margin: 0; }
.wait small { display: block; color: var(--mute); font: 400 12px/1.5 var(--mono); }
.claim-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; padding: 24px; }
.claim-card h2 { font-size: 30px; font-weight: 300; letter-spacing: -0.03em; }
.claim-card p { margin: 8px 0 0; color: var(--dim); }

/* ------------------------------------------------------------------------------------------------ console */
.watch-banner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px 20px; align-items: center; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--panel); margin-bottom: 24px; }
.watch-banner p { margin: 0; color: var(--dim); }
.watch-banner b { color: var(--text); font-weight: 500; }
.watch-banner .btn-row { justify-content: flex-end; }
@media (max-width: 899px) { .watch-banner { grid-template-columns: minmax(0, 1fr); } .watch-banner .btn-row { justify-content: flex-start; } }
.con-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 16px; align-items: start; }
.con-grid > * { min-width: 0; }
@media (max-width: 1023px) { .con-grid { grid-template-columns: minmax(0, 1fr); } }
.con-form { display: grid; gap: 18px; padding: 22px; }
.con-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
@media (max-width: 559px) { .con-2 { grid-template-columns: minmax(0, 1fr); } }
.is-locked .input, .is-locked .select, .is-locked .textarea { color: var(--mute); background: #0F1012; cursor: not-allowed; }
.is-locked .btn { opacity: 0.45; cursor: not-allowed; }
.is-locked .radio-row span { cursor: not-allowed; }
.agents-only { position: fixed; z-index: 140; padding: 7px 12px; border-radius: 999px; background: var(--text); color: #0B0C0E; font-size: 12.5px; font-weight: 600; pointer-events: none; animation: pop 0.18s ease-out; }
@keyframes pop { from { transform: translateY(4px); opacity: 0; } to { transform: none; opacity: 1; } }
.result { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-in); background: var(--panel-2); font-size: 14.5px; color: var(--dim); }
.result[data-tone="ok"] { border-color: rgba(74, 222, 128, 0.4); }
.result[data-tone="bad"] { border-color: rgba(248, 113, 113, 0.45); }
.result .kv { font-size: 14px; }
.result a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(235, 236, 236, 0.35); }
.result-k { display: block; margin-bottom: 10px; font-size: 13px; font-weight: 600; color: var(--text); }
.result[data-tone="ok"] .result-k { color: var(--accent); }
.result[data-tone="bad"] .result-k { color: var(--down); }
.limits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.limits > div { padding: 14px 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-width: 0; }
.limits > div:nth-child(3n) { border-right: 0; }
.limits > div:nth-last-child(-n + 3) { border-bottom: 0; }
.limits b { display: block; margin-top: 6px; font: 500 15px/1.3 var(--mono); color: var(--text); font-variant-numeric: tabular-nums; }
@media (max-width: 559px) { .limits { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .limits > div:nth-child(3n) { border-right: 1px solid var(--line); } .limits > div:nth-child(2n) { border-right: 0; } .limits > div:nth-last-child(-n + 3) { border-bottom: 1px solid var(--line); } .limits > div:nth-last-child(-n + 2) { border-bottom: 0; } }

/* ------------------------------------------------------------------------------------------------ owner */
.own-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 16px; align-items: start; }
.own-grid > * { min-width: 0; }
@media (max-width: 1023px) { .own-grid { grid-template-columns: minmax(0, 1fr); } }
.wallets { display: grid; gap: 10px; }
.wallet-btn { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 58px; padding: 10px 16px; border: 1px solid var(--line); border-radius: var(--r-in); background: var(--panel-2); color: var(--text); cursor: pointer; text-align: left; font-size: 15px; font-weight: 500; }
.wallet-btn:hover { border-color: var(--line-2); }
.wallet-btn img { width: 28px; height: 28px; border-radius: 8px; }
.wallet-btn .wb-i { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line-2); display: grid; place-content: center; font: 600 11px var(--mono); color: var(--dim); }
.wallet-btn small { display: block; font-size: 12.5px; color: var(--mute); font-weight: 400; }
.wallet-btn[data-rh="true"] { border-color: rgba(74, 222, 128, 0.4); }
.actions { list-style: none; padding: 0; margin: 0; display: grid; }
.action { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 24px; align-items: start; padding: 22px; border-bottom: 1px solid var(--line); }
.action:last-child { border-bottom: 0; }
.action h3 { font-size: 17px; font-weight: 500; margin-bottom: 6px; }
.action p { margin: 0; color: var(--dim); font-size: 14.5px; }
.action .onchain { display: block; margin-top: 8px; font: 400 12px/1.5 var(--mono); color: var(--mute); }
.action .onchain code { color: var(--body); }
.action-form { grid-column: 1 / -1; display: grid; gap: 14px; }
.action-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 719px) { .action { grid-template-columns: minmax(0, 1fr); } .action-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 399px) { .action-grid { grid-template-columns: minmax(0, 1fr); } }
.action[data-off="true"] h3 { color: var(--dim); }
.txline { grid-column: 1 / -1; display: grid; gap: 4px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-in); background: var(--panel-2); font: 400 13px/1.5 var(--mono); color: var(--dim); overflow-wrap: anywhere; }
.txline[data-tone="ok"] { border-color: rgba(74, 222, 128, 0.4); color: var(--text); }
.txline[data-tone="bad"] { border-color: rgba(248, 113, 113, 0.45); color: var(--text); }
.txline a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.who-box { display: grid; gap: 14px; padding: 22px; }

/* ------------------------------------------------------------------------------------------------ docs */
.doc-layout { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 56px; align-items: start; padding-bottom: 32px; }
.toc { position: sticky; top: calc(var(--bar-h) + 24px); max-height: calc(100vh - var(--bar-h) - 48px); overflow-y: auto; padding: 18px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--panel); }
.toc .label { display: block; margin-bottom: 10px; }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.toc a { display: flex; align-items: center; min-height: 34px; padding: 4px 10px; border-radius: 8px; color: var(--dim); font-size: 14px; line-height: 1.35; }
.toc a:hover { color: var(--text); background: rgba(255, 255, 255, 0.03); }
.toc a[aria-current="true"] { color: var(--text); background: var(--panel-2); box-shadow: inset 2px 0 0 var(--accent); }
@media (max-width: 1023px) {
  .doc-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .toc { position: relative; top: 0; max-height: none; }
  .toc ol { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .toc a { min-height: 44px; }
}
@media (max-width: 479px) { .toc ol { grid-template-columns: minmax(0, 1fr); } }
.prose { min-width: 0; padding: 36px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--panel); }
.prose > section { max-width: 780px; }
.prose > section + section { margin-top: 64px; padding-top: 48px; border-top: 1px solid var(--line); }
.prose h2 { font-weight: 300; font-size: clamp(28px, 3vw, 36px); line-height: 1.1; letter-spacing: -0.03em; margin: 0 0 20px; }
.prose h2 .label { display: block; margin-bottom: 10px; font-family: var(--mono); font-size: 12px; color: var(--accent); letter-spacing: 0; }
.prose h3 { font-size: 18px; font-weight: 500; margin: 32px 0 10px; letter-spacing: -0.015em; }
.prose p, .prose li { color: var(--dim); }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 16px; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--mute); }
.prose strong, .prose b { color: var(--text); font-weight: 500; }
.prose .code, .prose .notice, .prose .tbl-wrap, .prose .code-line { margin: 18px 0 22px; }
.prose .tbl { font-size: 13.5px; }
.prose .tbl td { color: var(--dim); }
.prose .tbl td:first-child { color: var(--text); }
.prose .tbl code { white-space: nowrap; }
.prose .tbl-wrap { overflow-x: auto; border-radius: var(--r-in); background: var(--panel-2); }
.api-tbl td:first-child { width: 36%; }
.api-tbl code { white-space: normal !important; overflow-wrap: anywhere; }
.styles-tbl td, .styles-tbl th { white-space: nowrap; }
@media (max-width: 679px) { .prose { padding: 22px 16px; } .prose .tbl code { white-space: normal; } .styles-tbl td, .styles-tbl th { white-space: normal; } }
.addr-list { list-style: none; padding: 0 !important; margin: 18px 0 22px !important; border-top: 1px solid var(--line); }
.addr-list li { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 6px 20px; align-items: center; padding: 12px 0; margin: 0; border-bottom: 1px solid var(--line); }
.addr-list li > span:first-child { color: var(--text); font-size: 14.5px; }
@media (max-width: 679px) { .addr-list li { grid-template-columns: minmax(0, 1fr); } }

/* ------------------------------------------------------------------------------------------------ how-to */
.guides { display: grid; gap: 16px; padding-bottom: 32px; }
.guide { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 28px 56px; padding: 36px; }
.guide-h .label { display: block; margin-bottom: 12px; font-family: var(--mono); color: var(--accent); }
.guide-h h2 { font-weight: 300; font-size: clamp(26px, 2.6vw, 32px); line-height: 1.12; letter-spacing: -0.03em; }
.guide-h p { margin: 14px 0 0; color: var(--dim); }
.guide ol { list-style: none; padding: 0; margin: 0; counter-reset: g; border-top: 1px solid var(--line); }
.guide ol > li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--dim); }
.guide ol > li::before { counter-increment: g; content: counter(g, decimal-leading-zero); font: 500 12px/1.9 var(--mono); color: var(--text); }
.guide ol b { color: var(--text); font-weight: 500; }
.guide .btn-row { margin-top: 20px; }
.howto-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.howto-nav a { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel-2); color: var(--body); font-size: 14px; }
.howto-nav a:hover { color: var(--text); border-color: var(--line-2); }
@media (max-width: 899px) { .guide { grid-template-columns: minmax(0, 1fr); padding: 26px; } }
@media (max-width: 479px) { .guide { padding: 20px 16px; } .howto-nav a { min-height: 44px; } }

/* ------------------------------------------------------------------------------------------------ 404 */
.nf { padding: 120px 0 96px; }
.nf .display { font-size: clamp(48px, 8vw, 96px); }
.nf .lede { margin-top: 24px; }

/* ------------------------------------------------------------------------------------------------ motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal, .reveal.pending { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}
