/* Filed: a calm, well-ordered filing cabinet. Warm ivory surfaces with soft raised and pressed depth, sage for
   action, moss, mist and sand for the forms, Inter throughout, numbered sections. */
:root {
  --bg: #F1ECE4;
  --card: #F7F3ED;
  --card-2: #EEE8DF;
  --ink: #1D2820;
  --ink-2: #344038;
  --muted: #59625B;
  --sage: #6B7F6E;
  --sage-ink: #4C6250;
  --sage-deep: #3B4E3F;
  --moss: #A7B8A7;
  --mist: #D9E1D9;
  --ivory: #F4EFE8;
  --sand: #C9BDAF;
  --sand-ink: #7A6A57;
  --err: #973A2C;
  --hair: rgba(29, 40, 32, .1);
  --hair-2: rgba(29, 40, 32, .16);
  --raise: 9px 9px 22px rgba(150, 134, 112, .2), -7px -7px 18px rgba(255, 255, 255, .8);
  --raise-sm: 4px 4px 10px rgba(150, 134, 112, .2), -4px -4px 9px rgba(255, 255, 255, .85);
  --press: inset 3px 3px 7px rgba(150, 134, 112, .24), inset -3px -3px 7px rgba(255, 255, 255, .85);
  --r: 22px;
  --r-sm: 14px;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--sans); font-feature-settings: 'cv11', 'ss01'; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: var(--sage-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--sage-deep); }
h1, h2, h3 { margin: 0; color: var(--ink); }
p { margin: 0; }
code { font: 400 .88em/1.4 var(--mono); background: var(--card-2); border-radius: 6px; padding: 1px 6px; overflow-wrap: anywhere; }
abbr { text-decoration: underline dotted; cursor: help; }
:focus-visible { outline: 2.5px solid var(--sage-deep); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--sage-deep); color: #fff; padding: 10px 16px; border-radius: 12px; z-index: 50; }
.skip:focus { top: 12px; }
.muted { color: var(--muted); }
.sm { font-size: 14.5px; }
.label, .kicker { font: 500 12px/1.3 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

.wrap { width: min(1180px, 100% - 48px); margin-inline: auto; }

/* ------------------------------------------------------------------ nav */
.top { position: sticky; top: 0; z-index: 20; background: rgba(241, 236, 228, .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--hair); }
.nav { display: flex; align-items: center; gap: 18px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 18px; letter-spacing: .01em; min-height: 40px; }
.brand img { width: 30px; height: 30px; }
.navlinks { display: flex; gap: 4px; margin-left: auto; }
.navlinks a { color: var(--ink-2); text-decoration: none; font-size: 15px; padding: 9px 12px; border-radius: 999px; min-height: 40px; display: inline-flex; align-items: center; }
.navlinks a:hover, .navlinks a[aria-current="page"] { background: var(--card); box-shadow: var(--raise-sm); color: var(--ink); }

/* ------------------------------------------------------------------ buttons and fields (also the shared credits widgets) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 10px 22px; border-radius: 999px; border: 1px solid var(--hair-2); background: var(--card); color: var(--ink); font: 500 15.5px/1.2 var(--sans); text-decoration: none; cursor: pointer; box-shadow: var(--raise-sm); transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.btn:hover { color: var(--ink); background: #FBF8F3; }
.btn:active { box-shadow: var(--press); transform: translateY(1px); }
.btn.primary { background: var(--sage-ink); border-color: var(--sage-ink); color: #fff; box-shadow: 6px 6px 16px rgba(76, 98, 80, .28), -5px -5px 14px rgba(255, 255, 255, .8); }
.btn.primary:hover { background: var(--sage-deep); color: #fff; }
.btn.small { min-height: 40px; padding: 8px 16px; font-size: 14.5px; }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn[disabled], .btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn[hidden] { display: none; }

.field { display: grid; gap: 6px; }
.field label { font-size: 13.5px; color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea, .input {
  width: 100%; min-height: 44px; padding: 10px 16px; border-radius: var(--r-sm); border: 1px solid var(--hair); background: var(--card-2);
  box-shadow: var(--press); color: var(--ink); font: 400 15.5px/1.4 var(--sans);
}
.field textarea { min-height: 90px; resize: vertical; }
.field input::placeholder, .input::placeholder { color: #7B827C; }
.cr { display: grid; gap: 12px; min-width: 0; }
.cr p { font-size: 14.5px; color: var(--ink-2); }
.cr-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cr .cr-key { font: 400 13px/1.5 var(--mono); word-break: break-all; background: var(--card-2); box-shadow: var(--press); border-radius: var(--r-sm); padding: 12px 14px; }
.cr-balance .cr-row:has(strong) { justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--hair); }
.cr-balance .cr-row strong { font: 500 15px/1.3 var(--mono); }
.cr-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cr-table th { text-align: left; font: 500 11.5px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--hair-2); white-space: nowrap; }
.cr-table td { padding: 10px; border-bottom: 1px solid var(--hair); vertical-align: top; }
.cr-table td:nth-child(4) { font-family: var(--mono); font-size: 12.5px; word-break: break-all; }
.status { margin-top: 10px; font-size: 14.5px; min-height: 1.4em; color: var(--muted); }
.status:empty { margin: 0; min-height: 0; }
.status.good { color: var(--sage-deep); }
.status.err { color: var(--err); }
.status.busy { color: var(--ink-2); }
pre { margin: 0; padding: 20px 22px; border-radius: var(--r); background: #26312A; color: #E9EDE6; font: 400 13.5px/1.65 var(--mono); overflow-x: auto; white-space: pre; box-shadow: var(--raise); }
pre .c { color: #A7B8A7; }
pre .host { color: #E7D9C6; }
.erc8004-badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--mist); color: var(--sage-deep); font: 500 12px/1.4 var(--sans); letter-spacing: .04em; border: 1px solid rgba(76, 98, 80, .25); vertical-align: middle; }

/* ------------------------------------------------------------------ hero */
.hero { padding: 56px 0 28px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: start; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 12.5px/1.3 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--sage-ink); margin-bottom: 20px; }
.eyebrow::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--sage); box-shadow: 0 0 0 4px var(--mist); }
.hero h1 { font-weight: 300; font-size: clamp(42px, 6vw, 72px); line-height: 1.02; letter-spacing: -.025em; }
.hero h1 b { font-weight: 500; }
.spaced { margin-top: 18px; font: 400 13px/1.6 var(--sans); letter-spacing: .42em; text-transform: uppercase; color: var(--ink-2); }
.lede { margin-top: 22px; font-size: 18px; line-height: 1.6; color: var(--ink-2); max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-note { margin-top: 18px; font-size: 14.5px; color: var(--muted); max-width: 36em; }

.hero-side { display: grid; gap: 18px; }
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--raise); border: 1px solid rgba(255, 255, 255, .6); padding: 22px 24px; min-width: 0; }
.card-label { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.card-label .n { font: 500 12px/1.3 var(--sans); letter-spacing: .14em; color: var(--muted); }
.note-card { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; padding: 16px 18px; border-radius: 18px; background: #E6ECE5; box-shadow: var(--raise-sm); text-decoration: none; color: var(--ink); }
a.note-card:hover { color: var(--ink); background: #E0E8DF; }
.note-ic { width: 40px; height: 40px; border-radius: 50%; background: var(--sage-ink); display: grid; place-items: center; }
.note-ic svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.note-card b { display: block; font-weight: 600; font-size: 15.5px; }
.note-card span { display: block; font-size: 14px; color: var(--ink-2); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.note-card small { display: block; margin-top: 4px; font-size: 12.5px; color: var(--muted); }

.watch { display: grid; gap: 14px; }
.watch-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.sw { display: inline-flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--ink-2); }
.sw i { width: 46px; height: 26px; border-radius: 999px; background: #DCD5CB; box-shadow: var(--press); position: relative; flex: none; }
.sw i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 1px 2px 4px rgba(0, 0, 0, .18); transition: left .2s ease; }
.sw.on i { background: var(--sage-ink); box-shadow: none; }
.sw.on i::after { left: 23px; }
.bar { display: flex; align-items: center; gap: 14px; }
.bar-track { flex: 1; height: 12px; border-radius: 999px; background: #E2DBD1; box-shadow: var(--press); overflow: hidden; }
.bar-fill { height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--sage-ink), var(--sage)); transition: width .6s ease; }
.bar b { font: 500 15px/1 var(--sans); min-width: 3.2em; text-align: right; }

.swatches { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.swatch { display: grid; justify-items: center; gap: 6px; text-align: center; min-width: 0; }
.swatch i { width: 44px; height: 44px; border-radius: 50%; box-shadow: var(--raise-sm); border: 2px solid rgba(255, 255, 255, .7); }
.swatch b { font-size: 13.5px; font-weight: 500; }
.swatch span { font: 400 12px/1.2 var(--mono); color: var(--muted); }

/* Form colours: decorative only; the form is always written out too. */
.g-8-K { --tone: #6B7F6E; }
.g-10-Q { --tone: #A7B8A7; }
.g-10-K { --tone: #3B4E3F; }
.g-S-1 { --tone: #C9BDAF; }
.g-4 { --tone: #9E8C77; }
.g-13D, .g-13G { --tone: #D9E1D9; }
.swatch.g i, .swatch i { background: var(--tone, var(--mist)); }

/* ------------------------------------------------------------------ stats */
.stats { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 14px; margin: 18px 0 8px; }
.stat { background: var(--card); border-radius: 18px; box-shadow: var(--raise-sm); padding: 16px 16px 14px; min-width: 0; }
.stat b { display: block; font: 500 22px/1.2 var(--sans); letter-spacing: -.01em; overflow-wrap: anywhere; }
.stat span { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); line-height: 1.35; }

/* ------------------------------------------------------------------ numbered panels */
.panel { margin-top: 44px; background: var(--card); border-radius: 30px; box-shadow: var(--raise); border: 1px solid rgba(255, 255, 255, .6); padding: 36px 38px; }
.panel.plain { background: transparent; box-shadow: none; border: 0; padding: 0; }
.panel-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: end; margin-bottom: 26px; }
.panel-head .kicker { display: block; margin-bottom: 12px; }
.panel-head .kicker b { font-weight: 500; color: var(--sage-ink); margin-right: 10px; }
.panel-head h2 { font-weight: 400; font-size: clamp(28px, 3.4vw, 38px); line-height: 1.12; letter-spacing: -.015em; }
.panel-head .sub { color: var(--ink-2); font-size: 16px; }

/* ------------------------------------------------------------------ filters */
.filters { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 340px); gap: 16px; align-items: center; margin-bottom: 18px; }
.seg { display: flex; flex-wrap: wrap; padding: 5px; gap: 4px; border-radius: 18px; background: var(--card-2); box-shadow: var(--press); }
.seg button { flex: 1 1 auto; min-height: 42px; min-width: 64px; padding: 8px 12px; border: 0; border-radius: 13px; background: transparent; color: var(--ink-2); font: 500 14.5px/1.2 var(--sans); cursor: pointer; }
.seg button:hover { background: rgba(255, 255, 255, .55); }
.seg button[aria-pressed="true"] { background: var(--sage-ink); color: #fff; box-shadow: 4px 4px 10px rgba(76, 98, 80, .3); }
.search { position: relative; }
.search svg { position: absolute; left: 16px; top: 50%; width: 19px; height: 19px; transform: translateY(-50%); fill: none; stroke: var(--muted); stroke-width: 1.9; stroke-linecap: round; pointer-events: none; }
.search input { width: 100%; min-height: 50px; padding: 10px 46px 10px 46px; border-radius: 999px; border: 1px solid var(--hair); background: var(--card); box-shadow: var(--raise-sm); color: var(--ink); font: 400 15.5px/1.3 var(--sans); }
.search .clear { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 20px; line-height: 1; }
.search .clear:hover { background: var(--card-2); color: var(--ink); }
.list-note { font-size: 14.5px; color: var(--muted); margin: 4px 0 16px; }
.list-note b { color: var(--ink-2); font-weight: 500; }

/* ------------------------------------------------------------------ alert cards */
.alerts { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.alert { position: relative; display: grid; grid-template-columns: 112px minmax(0, 1fr); background: var(--card); border-radius: 20px; box-shadow: var(--raise-sm); border: 1px solid rgba(255, 255, 255, .7); overflow: hidden; }
.alert-tab { padding: 18px 12px 18px 16px; border-right: 1px solid var(--hair); background: linear-gradient(180deg, rgba(255, 255, 255, .35), transparent); }
.alert-tab .form { display: inline-flex; align-items: center; gap: 7px; font: 600 14px/1.2 var(--sans); color: var(--ink); white-space: nowrap; }
.alert-tab .form::before { content: ''; width: 12px; height: 12px; border-radius: 50%; background: var(--tone, var(--mist)); box-shadow: 0 0 0 1px rgba(29, 40, 32, .12); flex: none; }
.alert-body { padding: 16px 22px 14px; min-width: 0; }
.alert-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.sym { font: 600 13px/1.3 var(--sans); letter-spacing: .12em; color: var(--sage-ink); }
.co { font-size: 14.5px; color: var(--ink-2); }
.when { margin-left: auto; font-size: 13.5px; color: var(--muted); white-space: nowrap; }
.alert-title { margin-top: 6px; font-weight: 500; font-size: 17.5px; line-height: 1.35; }
.alert-title a { color: var(--ink); text-decoration: none; }
.alert-title a:hover { color: var(--sage-deep); text-decoration: underline; }
.items { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.items span { font-size: 12.5px; padding: 2px 9px; border-radius: 999px; background: var(--card-2); color: var(--ink-2); }
.sum { margin-top: 10px; }
.sum-text { color: var(--ink-2); font-size: 15.5px; }
.alert .sum-text { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sum-head { font-weight: 500; margin-bottom: 4px; }
.sum-by { margin-top: 6px; font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 7px; }
.ai-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sage); box-shadow: 0 0 0 3px var(--mist); flex: none; }
.sum.pending, .sum.none { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; border-radius: 14px; background: var(--card-2); font-size: 14.5px; color: var(--ink-2); }
.sum-ic svg { width: 20px; height: 20px; fill: none; stroke: var(--sand-ink); stroke-width: 1.8; stroke-linecap: round; }
.sum.none .sum-ic svg { stroke: var(--muted); }
.points { margin: 8px 0 0; padding-left: 20px; color: var(--ink-2); font-size: 15px; }
.points li + li { margin-top: 4px; }
.alert-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; margin-top: 12px; font-size: 14.5px; }
.alert-links a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; font-weight: 500; text-decoration: none; }
.alert-links a:hover { text-decoration: underline; }
.alert-links svg, .detail-actions svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.acc { margin-left: auto; font: 400 12.5px/1.3 var(--mono); color: var(--muted); }
.empty { padding: 26px; border-radius: 20px; background: var(--card-2); box-shadow: var(--press); color: var(--ink-2); }
.empty b { color: var(--ink); font-weight: 500; }
.more-row { display: flex; justify-content: center; margin-top: 20px; }

/* ------------------------------------------------------------------ how it works */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.step { background: var(--bg); border-radius: 20px; box-shadow: var(--press); padding: 22px 20px; }
.step .n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--card); box-shadow: var(--raise-sm); font: 500 14px/1 var(--sans); color: var(--sage-ink); margin-bottom: 14px; }
.step h3 { font-weight: 500; font-size: 17px; margin-bottom: 6px; }
.step p { font-size: 15px; color: var(--ink-2); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; margin-top: 18px; }
.checks { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }
.checks li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; font-size: 15.5px; color: var(--ink-2); }
.checks li::before { content: ''; width: 22px; height: 22px; margin-top: 1px; border-radius: 6px; border: 1.5px solid #8C938D; background: var(--card); }
.checks.on li::before { background: var(--sage-ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; border-color: var(--sage-ink); }
.split h3 { font-weight: 500; font-size: 18px; }

/* ------------------------------------------------------------------ companies preview */
.co-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.co-chips a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 14px; border-radius: 999px; background: var(--bg); box-shadow: var(--raise-sm); text-decoration: none; color: var(--ink); font-size: 14px; }
.co-chips a b { font-weight: 600; letter-spacing: .06em; color: var(--sage-ink); font-size: 12.5px; }
.co-chips a:hover { background: #fff; }
.row-end { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 20px; }

/* ------------------------------------------------------------------ credits */
.credits-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.credits-grid .card h3, .refunds h3, .agents-grid h3, .token-grid h3 { font-weight: 500; font-size: 18px; margin-bottom: 12px; }
.inner { background: var(--bg); box-shadow: var(--press); border: 0; }
.cost-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.cost-table th { text-align: left; font: 500 11.5px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 6px 0 10px; border-bottom: 1px solid var(--hair-2); }
.cost-table th:last-child, .cost-table td:last-child { text-align: right; }
.cost-table td { padding: 11px 0; border-bottom: 1px solid var(--hair); vertical-align: top; }
.cost-table td:last-child { font-weight: 600; white-space: nowrap; padding-left: 12px; }
.cost-table code { font-size: 12.5px; }
.refunds { margin-top: 18px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.tag { display: inline-flex; align-items: center; min-height: 28px; padding: 3px 12px; border-radius: 999px; background: var(--card-2); font-size: 13px; color: var(--ink-2); }

/* ------------------------------------------------------------------ agents and token */
.agents-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 18px; align-items: start; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 30px; font-size: 15.5px; color: var(--ink-2); }
.ticks li::before { content: ''; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--mist); box-shadow: inset 0 0 0 5px var(--sage); }
.ticks li b { color: var(--ink); font-weight: 600; }
.card.ticks { padding: 24px 24px 24px 26px; }
@media (max-width: 640px) { .card.ticks { padding: 18px; } }
.token-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.addrs { display: grid; gap: 16px; align-content: start; }
.addr { font: 400 13.5px/1.5 var(--mono); word-break: break-all; margin-top: 4px; color: var(--ink-2); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }

/* ------------------------------------------------------------------ faq */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--bg); border-radius: 18px; box-shadow: var(--raise-sm); padding: 0 22px; }
.faq summary { cursor: pointer; min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-weight: 500; font-size: 16.5px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--card); box-shadow: var(--raise-sm); color: var(--sage-ink); font-size: 20px; font-weight: 400; }
.faq details[open] summary::after { content: '–'; }
.faq details p { padding: 0 0 20px; color: var(--ink-2); }

/* ------------------------------------------------------------------ footer */
.foot { margin-top: 56px; padding: 36px 0 48px; border-top: 1px solid var(--hair-2); }
.foot-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.foot .links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.foot .links a { min-height: 40px; display: inline-flex; align-items: center; font-size: 15px; }
.foot p { font-size: 14.5px; color: var(--ink-2); max-width: 70em; }
.foot p + p { margin-top: 10px; }
.notice { margin-top: 18px; padding: 12px 16px; border-radius: 14px; background: var(--mist); color: var(--sage-deep); font-weight: 500; font-size: 15px; }

/* ------------------------------------------------------------------ alert page */
.page { padding: 40px 0 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14.5px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { min-height: 40px; display: inline-flex; align-items: center; }
.detail { background: var(--card); border-radius: 30px; box-shadow: var(--raise); padding: 34px 38px; border: 1px solid rgba(255, 255, 255, .6); }
.detail-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.form-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 4px 14px; border-radius: 999px; background: var(--bg); box-shadow: var(--raise-sm); font-weight: 600; font-size: 14px; }
.form-pill::before { content: ''; width: 12px; height: 12px; border-radius: 50%; background: var(--tone, var(--mist)); box-shadow: 0 0 0 1px rgba(29, 40, 32, .12); }
.detail-title { margin-top: 16px; font-weight: 400; font-size: clamp(26px, 3.6vw, 38px); line-height: 1.15; letter-spacing: -.015em; }
.detail-sum { margin-top: 18px; max-width: 48em; }
.detail-sum .sum-text { font-size: 17px; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.facts { margin: 28px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.facts div { padding: 12px 0; border-bottom: 1px solid var(--hair); min-width: 0; }
.facts dt { font: 500 11.5px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 4px 0 0; overflow-wrap: anywhere; }
.addr-sm { font-size: 12px; }
.detail-block { margin-top: 26px; }
.detail-block .label { margin-bottom: 10px; }
.itemlist { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 6px; }
.itemlist b { font-weight: 600; margin-right: 6px; color: var(--sage-ink); }
.table-wrap { overflow-x: auto; margin-top: 10px; border-radius: 14px; background: var(--bg); box-shadow: var(--press); }
.tx { width: 100%; border-collapse: collapse; font-size: 14px; }
.tx th { text-align: left; font: 500 11px/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 12px 12px 8px; white-space: nowrap; }
.tx td { padding: 9px 12px; border-top: 1px solid var(--hair); white-space: nowrap; }
.tx td:nth-child(2), .tx td:first-child { white-space: normal; }
.chip-sm { display: inline-block; font-size: 12.5px; padding: 1px 9px; border-radius: 999px; background: var(--mist); color: var(--sage-deep); }
.locked { display: grid; gap: 16px; }
.locked .bar { max-width: 460px; }

/* ------------------------------------------------------------------ companies page */
.co-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.co-table th { text-align: left; font: 500 11.5px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--hair-2); white-space: nowrap; position: sticky; top: 0; background: var(--card); }
.co-table td { padding: 11px 12px; border-bottom: 1px solid var(--hair); vertical-align: top; }
.co-table td.sym-c { font-weight: 600; letter-spacing: .06em; color: var(--sage-ink); white-space: nowrap; }
.co-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.co-table th.num { text-align: right; }
.co-table .mono { font: 400 12.5px/1.4 var(--mono); white-space: nowrap; }
.co-table a { min-height: 32px; }
.reason { display: inline-block; font-size: 12.5px; padding: 2px 10px; border-radius: 999px; background: var(--card-2); color: var(--ink-2); white-space: nowrap; }

/* ------------------------------------------------------------------ api page */
.endpoints { display: grid; gap: 16px; }
.ep { background: var(--bg); border-radius: 20px; box-shadow: var(--raise-sm); padding: 20px 22px; }
.ep-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px; }
.ep-top code { font-size: 14.5px; background: transparent; padding: 0; font-weight: 500; color: var(--ink); }
.ep-top .tag { margin-left: auto; }
.ep p { margin-top: 8px; color: var(--ink-2); font-size: 15px; }
.params { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 14.5px; color: var(--ink-2); }
.console { display: grid; gap: 14px; }
.console-row { display: grid; grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 1fr)) auto; gap: 12px; align-items: end; }
.console pre { max-height: 460px; overflow: auto; white-space: pre-wrap; word-break: break-word; }
.err-list { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--ink-2); font-size: 15px; }

/* ------------------------------------------------------------------ narrow */
.page-narrow { padding: 40px 0 0; max-width: 820px; }
.page-narrow h1 { font-weight: 300; font-size: clamp(34px, 5vw, 52px); line-height: 1.08; letter-spacing: -.02em; }
.page-narrow .card { margin-top: 22px; }

@media (max-width: 1080px) {
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; gap: 32px; padding-top: 40px; }
  .panel-head { grid-template-columns: 1fr; gap: 12px; }
  .filters { grid-template-columns: 1fr; }
  .agents-grid, .token-grid, .credits-grid, .split { grid-template-columns: 1fr; }
  .navlinks .hide-md { display: none; }
  .console-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .nav { gap: 10px; }
  .navlinks { gap: 0; }
  .navlinks a { padding: 8px 9px; font-size: 14.5px; }
  .navlinks .hide-sm { display: none; }
  .panel { padding: 24px 18px; border-radius: 24px; margin-top: 32px; }
  .detail { padding: 24px 18px; border-radius: 24px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .steps { grid-template-columns: 1fr; }
  .swatches { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 14px; }
  .alert { grid-template-columns: 1fr; }
  .alert-tab { border-right: 0; border-bottom: 1px solid var(--hair); padding: 10px 16px; }
  .alert-body { padding: 14px 16px 12px; }
  .when { margin-left: 0; width: 100%; }
  .acc { margin-left: 0; width: 100%; }
  .facts { grid-template-columns: 1fr; }
  .seg button { min-width: calc(25% - 4px); padding: 8px 6px; }
  .console-row { grid-template-columns: 1fr; }
  .hero h1 { font-size: 40px; }
  .spaced { letter-spacing: .24em; }
  pre { font-size: 12.5px; padding: 16px; }
  .co-table .hide-sm { display: none; }
  .co-table th, .co-table td { padding-left: 8px; padding-right: 8px; }
  .card { padding: 18px; }
}
@media (max-width: 380px) {
  .brand span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
