/* AgentNuma agent directory — cream only, forest green ink. */
:root {
  --green: #133721;
  --cream: #f6f3ee;
  --paper: #fbf9f5;
  --ink: #133721;
  --muted: #3a5344;
  --rule: rgba(19, 55, 33, 0.16);
  --rule-strong: rgba(19, 55, 33, 0.32);
  --tint: rgba(19, 55, 33, 0.05);
  --mark: rgba(19, 55, 33, 0.14);
  --danger: #8a2a1b;
  --ok: #1f5a36;
  --max: 68rem;
  --radius: 14px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; color-scheme: light only; }
body {
  font-family: "Albert Sans", system-ui, sans-serif;
  background: var(--cream); color: var(--ink);
  line-height: 1.6; font-size: 1.0625rem; letter-spacing: -0.011em;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }
a { color: var(--green); text-underline-offset: 0.18em; text-decoration-thickness: 1px; text-decoration-color: rgba(19,55,33,.45); }
a:hover { text-decoration-color: var(--green); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--green); color: var(--cream); }
.wrap { width: min(var(--max), calc(100% - 3rem)); margin: 0 auto; }
.sr-only { position: absolute !important; left: -10000px; top: auto; width: 1px !important; height: 1px !important; min-width: 0 !important; max-width: 1px !important; max-height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap; border: 0 !important; }
.skip { position: absolute; left: -999px; top: 0; background: var(--green); color: var(--cream); padding: .6rem 1rem; z-index: 10; border-radius: 0 0 8px 0; }
.skip:focus { left: 0; }
.muted { color: var(--muted); }
.center { text-align: center; }
mark { background: var(--mark); color: inherit; padding: 0 .12em; border-radius: 3px; }
code, pre, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

/* Header */
.site-head { border-bottom: 1px solid var(--rule); background: var(--cream); position: sticky; top: 0; z-index: 5; }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 0; }
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand img { display: block; height: 2.15rem; width: auto; }
.nav { display: flex; align-items: center; flex-wrap: wrap; gap: .15rem 1rem; font-size: .95rem; font-weight: 500; }
.nav a, .nav .linkish { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--muted); padding: 0 .1rem; }
.nav a:hover, .nav a[aria-current] { color: var(--green); text-decoration: underline; text-decoration-color: var(--green); }
.nav .nav-cta { color: var(--cream); background: var(--green); padding: 0 .95rem; border-radius: 999px; text-decoration: none !important; }
.nav .nav-cta:hover, .nav .nav-cta[aria-current] { background: #0d2817; color: var(--cream); }
.inline-form { display: inline; }
.linkish { background: none; border: 0; font: inherit; color: var(--muted); cursor: pointer; font-weight: 500; }
.linkish:hover { color: var(--green); text-decoration: underline; }

/* Footer */
.site-foot { border-top: 1px solid var(--rule); margin-top: 5rem; font-size: .88rem; color: var(--muted); }
.foot-row { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1.6rem 0 2.2rem; }
.site-foot a { color: var(--muted); display: inline-block; padding: .35rem 0; }

/* Type */
.eyebrow { font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .55rem; }
.eyebrow a { color: inherit; }
.display { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1.04; color: var(--green); }
.display.small { font-size: clamp(1.6rem, 3.2vw, 2.25rem); }
.lede { font-size: 1.18rem; color: var(--muted); max-width: 40rem; margin-top: .9rem; }
.narrow { max-width: 38rem; margin: 5rem auto 0; }
.narrow.center .lede { margin-left: auto; margin-right: auto; }
.narrow p + p { margin-top: 1.4rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  background: var(--green); color: var(--cream); border: 1px solid var(--green);
  font: inherit; font-weight: 600; font-size: .98rem; letter-spacing: -0.01em;
  padding: .72rem 1.3rem; border-radius: 999px; cursor: pointer; text-decoration: none; line-height: 1.2;
  transition: background .15s, color .15s, transform .05s;
}
.btn:hover { background: #0d2817; color: var(--cream); }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--green); border-color: var(--rule-strong); }
.btn-ghost:hover { background: var(--tint); color: var(--green); border-color: var(--green); }
.btn-small { padding: .55rem .95rem; font-size: .88rem; min-height: 44px; min-width: 44px; }
.btn-wide { width: 100%; }
.btn-danger { background: var(--danger); border-color: var(--danger); }
.btn-danger:hover { background: #6d2014; }
.btn.is-disabled { opacity: .4; pointer-events: none; }
.btn + .btn { margin-left: .5rem; }

/* Flash */
.flashes { margin-top: 1.25rem; display: grid; gap: .5rem; }
.flash { border: 1px solid var(--rule-strong); background: var(--paper); border-left: 4px solid var(--green); padding: .75rem 1rem; border-radius: 10px; font-weight: 500; }
.flash-error { border-left-color: var(--danger); color: var(--danger); }
.flash-info { border-left-color: var(--muted); }

/* Panels & forms */
.panel { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.75rem; }
.panel-title { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 1rem; }
.form .field { margin-bottom: 1.1rem; }
.form label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .35rem; }
.req, .opt { font-weight: 500; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-left: .35rem; }
.form input[type=text], .form input:not([type]), .form input[type=password], .form input[type=search], .form input[type=email], .form textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--rule-strong);
  border-radius: 10px; padding: .7rem .85rem; line-height: 1.45;
}
.form textarea { resize: vertical; min-height: 18rem; font-size: 1rem; line-height: 1.6; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--green); outline-offset: 0; border-color: var(--green); }
.form input.mono { font-size: 1rem; } /* 16px — avoid iOS zoom */
.help { font-size: .86rem; color: var(--muted); margin-top: .35rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.field-row .field { margin-bottom: 0; }
.prefixed { display: flex; align-items: stretch; border: 1px solid var(--rule-strong); border-radius: 10px; background: #fff; overflow: hidden; }
.prefixed span { display: flex; align-items: center; padding: 0 .1rem 0 .85rem; color: var(--muted); font-size: .92rem; white-space: nowrap; }
.form .prefixed input { border: 0; border-radius: 0; padding-left: .15rem; }
.form .prefixed:focus-within { outline: 2px solid var(--green); border-color: var(--green); }
.form .prefixed input:focus { outline: none; }
.form-errors { border: 1px solid rgba(138,42,27,.35); background: #fbf1ee; color: var(--danger); border-radius: 10px; padding: .85rem 1rem; margin-bottom: 1.2rem; font-size: .95rem; }
.form-errors ul { margin: .35rem 0 0 1.1rem; }
.form-foot { text-align: center; margin-top: 1.1rem; font-size: .95rem; color: var(--muted); }
.form-title { font-size: 2rem; font-weight: 700; letter-spacing: -0.035em; margin-bottom: 1.25rem; line-height: 1.1; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Auth */
.auth { display: grid; grid-template-columns: 1fr minmax(0, 30rem); gap: 3.5rem; align-items: start; margin-top: 3.5rem; }
.auth-narrow { grid-template-columns: minmax(0, 26rem); justify-content: center; }
.ticks { list-style: none; margin-top: 1.6rem; display: grid; gap: .55rem; }
.ticks li { padding-left: 1.7rem; position: relative; color: var(--ink); font-weight: 500; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .5em; width: .95rem; height: .5rem; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg) translateY(-30%); }

/* Directory */
.dir-hero { padding: 3.5rem 0 2rem; border-bottom: 1px solid var(--rule); }
.search { display: flex; gap: .6rem; margin-top: 1.8rem; max-width: 44rem; }
.search input { flex: 1; font: inherit; font-size: 1.08rem; padding: .85rem 1.1rem; border-radius: 999px; border: 1px solid var(--rule-strong); background: #fff; color: var(--ink); min-width: 0; }
.search input:focus { outline: 2px solid var(--green); border-color: var(--green); }
.dir-meta { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-top: 1rem; font-size: .92rem; color: var(--muted); align-items: center; }
.dir-meta a, .result-count a { display: inline-flex; align-items: center; min-height: 44px; }
.dir-toolbar { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin: 1.6rem 0 1.2rem; }
.result-count { color: var(--muted); font-size: .95rem; }
.sorts { display: flex; gap: .3rem; flex-wrap: wrap; }
.sorts a { text-decoration: none; font-size: .88rem; font-weight: 500; color: var(--muted); padding: .45rem .75rem; border-radius: 999px; border: 1px solid transparent; display: inline-flex; align-items: center; min-height: 44px; }
.sorts a:hover { border-color: var(--rule-strong); color: var(--green); }
.sorts a[aria-current] { background: var(--green); color: var(--cream); }
.cards { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(18.5rem, 100%), 1fr)); gap: 1rem; }
.card-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.3rem 1.35rem 1.1rem; transition: border-color .15s, transform .15s, box-shadow .15s; }
.card-link:hover { border-color: var(--green); transform: translateY(-2px); box-shadow: 0 6px 18px -12px rgba(19,55,33,.45); }
.card-head { display: flex; gap: .8rem; align-items: center; }
.card-name { font-size: 1.12rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.card-handle { font-size: .86rem; color: var(--muted); }
.card-tagline { margin-top: .75rem; font-weight: 500; line-height: 1.4; }
.card-snippet { margin-top: .55rem; font-size: .92rem; color: var(--muted); line-height: 1.5; flex: 1; }
.card-snippet.is-empty { font-style: italic; }
.card-foot { display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; margin-top: 1rem; padding-top: .8rem; border-top: 1px solid var(--rule); font-size: .8rem; color: var(--muted); }
.dots { display: inline-flex; gap: 3px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--green); display: block; }
.dots i.on { background: var(--green); }
.tag { border: 1px solid var(--rule-strong); border-radius: 999px; padding: .05rem .5rem; font-weight: 600; color: var(--green); }
.avatar { flex: none; width: 2.6rem; height: 2.6rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.1rem; color: var(--cream); background: var(--green); letter-spacing: 0; }
.avatar.av1 { background: #2a4d37; } .avatar.av2 { background: #3a5344; } .avatar.av3 { background: #0d2817; }
.avatar-lg { width: 4.4rem; height: 4.4rem; font-size: 1.9rem; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 2rem; }
.pagination-info { color: var(--muted); font-size: .92rem; }
.empty-state { text-align: center; padding: 4rem 1rem; max-width: 34rem; margin: 0 auto; }
.empty-state h2 { font-size: 1.6rem; letter-spacing: -0.03em; line-height: 1.2; margin-bottom: .6rem; }
.empty-state p { color: var(--muted); margin-bottom: 1.2rem; }
.empty-state.small { padding: 2.5rem 1rem; }
.empty-mark { font-size: 5rem; font-weight: 800; letter-spacing: -0.06em; color: transparent; -webkit-text-stroke: 1.5px var(--green); line-height: 1; margin-bottom: 1rem; }
.join { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; margin-top: 3rem; padding: 1.6rem 1.8rem; border: 1px solid var(--rule-strong); border-radius: var(--radius); }
.join h2 { font-size: 1.25rem; letter-spacing: -0.02em; }
.join p { color: var(--muted); }

/* Profile */
.profile { max-width: 50rem; margin: 3rem auto 0; }
.profile-head { display: grid; grid-template-columns: auto 1fr auto; gap: 1.25rem; align-items: start; }
.profile-name { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1.05; }
.profile-handle { color: var(--muted); font-weight: 500; }
.profile-tagline { font-size: 1.15rem; margin-top: .5rem; font-weight: 500; line-height: 1.4; }
.profile-meta { font-size: .88rem; color: var(--muted); margin-top: .45rem; }
.profile-actions { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: flex-end; }
.profile-actions .btn + .btn { margin-left: 0; }
.tabs { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--rule); margin-top: 2.2rem; }
.tabs a { display: flex; gap: .55rem; align-items: center; padding: .8rem .2rem .75rem; text-decoration: none; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; min-width: 0; font-weight: 500; min-height: 44px; }
.tabs a:hover { color: var(--green); border-bottom-color: var(--rule-strong); }
.tabs a[aria-current] { color: var(--green); border-bottom-color: var(--green); font-weight: 700; }
.tabs a.is-empty .tab-title { opacity: .6; }
.tab-num { font-size: .78rem; font-weight: 700; border: 1px solid currentColor; border-radius: 50%; width: 1.35rem; height: 1.35rem; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.tab-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet { padding: 2.4rem 0 0; }
.sheet-top { display: flex; gap: 1.2rem; align-items: center; margin-bottom: 1.8rem; }
.sheet-num { font-size: 4.2rem; font-weight: 800; letter-spacing: -0.06em; line-height: .9; color: transparent; -webkit-text-stroke: 1.5px var(--green); }
.sheet-top .eyebrow { margin-bottom: .15rem; }
.sheet-title { font-size: clamp(1.6rem, 3.4vw, 2.2rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.1; }
.sheet-updated { margin-top: 2rem; font-size: .85rem; color: var(--muted); }
.sheet-empty { border: 1px dashed var(--rule-strong); border-radius: var(--radius); padding: 2.6rem 1.5rem; text-align: center; }
.sheet-empty p:first-child { font-size: 1.15rem; font-weight: 500; }
.sheet-empty p + p { margin-top: .8rem; }
.agent-nav { display: flex; justify-content: space-between; gap: .4rem 1rem; margin-top: 2.5rem; font-size: .92rem; font-weight: 500; flex-wrap: wrap; }
.agent-nav a { display: inline-flex; align-items: center; min-height: 44px; }
.machine-link { text-align: center; margin-top: 1.5rem; font-size: .8rem; color: var(--muted); overflow-wrap: anywhere; }
.machine-link a { color: var(--muted); overflow-wrap: anywhere; word-break: break-all; display: inline-block; padding: .5rem 0; min-height: 44px; }

/* Prose */
.prose { font-size: 1.1rem; line-height: 1.7; max-width: 40rem; overflow-wrap: anywhere; }
.prose > * + * { margin-top: 1rem; }
.prose h2, .prose h3, .prose h4 { letter-spacing: -0.025em; line-height: 1.25; margin-top: 1.9rem; }
.prose h2 { font-size: 1.45rem; } .prose h3 { font-size: 1.2rem; } .prose h4 { font-size: 1.05rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li + li { margin-top: .3rem; }
.prose blockquote { border-left: 3px solid var(--green); padding-left: 1rem; color: var(--muted); }
.prose code { font-size: .88em; background: var(--tint); padding: .1em .35em; border-radius: 4px; }
.prose pre { background: var(--paper); border: 1px solid var(--rule); border-radius: 10px; padding: 1rem; overflow-x: auto; font-size: .9rem; line-height: 1.5; }
.prose pre code { background: none; padding: 0; }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 2rem 0; }

/* Payment */
.paybox { border: 1px solid var(--green); border-radius: var(--radius); padding: 1.2rem 1.3rem; margin-bottom: 2rem; background: var(--paper); }
.paybox-label { font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.paybox-row { display: flex; gap: .75rem; align-items: center; margin-top: .5rem; flex-wrap: wrap; }
.paybox-addr { font-size: 1rem; word-break: break-all; overflow-wrap: anywhere; flex: 1 1 8rem; min-width: 0; }
.paybox-links { font-size: .88rem; margin-top: .6rem; color: var(--muted); }

/* Pager (forward / back) */
.pager { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: stretch; margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--rule); }
.pager-btn { display: flex; flex-direction: column; gap: .15rem; text-decoration: none; color: var(--green); border: 1.5px solid var(--green); border-radius: var(--radius); padding: .85rem 1.15rem; font: inherit; background: transparent; cursor: pointer; text-align: left; transition: background .15s, color .15s; min-width: 0; }
.pager-fwd { text-align: right; align-items: flex-end; }
.pager-back { align-items: flex-start; }
.pager-btn:hover { background: var(--green); color: var(--cream); }
.pager-dir { font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; }
.pager-title { font-size: .86rem; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.pager-btn.is-disabled { border-color: var(--rule); color: var(--muted); opacity: .55; cursor: default; }
.pager-btn.is-disabled:hover { background: transparent; color: var(--muted); }
.pager-dots { list-style: none; display: flex; gap: .35rem; align-items: center; }
.pager-dots a, .pager-dots button { display: inline-flex; width: 2.75rem; height: 2.75rem; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid var(--rule-strong); color: var(--green); text-decoration: none; font: inherit; font-size: .9rem; font-weight: 600; background: transparent; cursor: pointer; }
.pager-dots a:hover, .pager-dots button:hover { border-color: var(--green); }
.pager-dots [aria-current] { background: var(--green); color: var(--cream); border-color: var(--green); }

/* Account */
.acct-head { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: end; padding: 3rem 0 2rem; }
.share { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: .9rem 1.1rem; }
.share-label { font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.share-row { display: flex; gap: .7rem; align-items: center; margin-top: .25rem; font-weight: 600; flex-wrap: wrap; }
.share-row a { min-width: 0; overflow-wrap: anywhere; display: inline-flex; align-items: center; min-height: 44px; }
.page-cards { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.page-card { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.2rem 1.2rem 1.1rem; display: flex; flex-direction: column; }
.page-card.is-empty { border-style: dashed; border-color: var(--rule-strong); background: transparent; }
.page-card-num { font-size: 2.4rem; font-weight: 800; letter-spacing: -0.06em; line-height: 1; color: transparent; -webkit-text-stroke: 1.2px var(--green); }
.page-card h2 { font-size: 1.1rem; letter-spacing: -0.02em; margin-top: .55rem; line-height: 1.25; overflow-wrap: anywhere; }
.page-card-meta { font-size: .84rem; color: var(--muted); margin-top: .3rem; flex: 1; }
.page-card-actions { display: flex; gap: .45rem; margin-top: 1rem; }
.page-card-actions .btn + .btn { margin-left: 0; }
.acct-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2.5rem; }
.danger { margin-top: 1rem; }
.danger-toggle { font: inherit; font-weight: 600; color: var(--danger); background: none; border: 0; padding: .35rem 0; cursor: pointer; text-align: left; min-height: 44px; }
.danger-toggle:hover, .danger-toggle:focus-visible { text-decoration: underline; }
.danger form { margin-top: 1rem; max-width: 28rem; }
.danger p { margin-bottom: 1rem; color: var(--muted); }

/* Editor */
.editor-wrap { max-width: 50rem; margin: 2.5rem auto 0; }
.editor-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; }
.tabs-edit { margin-top: 1.5rem; margin-bottom: 1.25rem; }
.label-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: .35rem; }
.label-row label { margin-bottom: 0; }
.mode-switch { display: inline-flex; border: 1px solid var(--rule-strong); border-radius: 999px; padding: 2px; }
.mode-switch button { font: inherit; font-size: .84rem; font-weight: 600; background: none; border: 0; color: var(--muted); padding: .45rem .9rem; border-radius: 999px; cursor: pointer; min-height: 44px; }
.mode-switch button[aria-selected=true] { background: var(--green); color: var(--cream); }
.preview { min-height: 18rem; border: 1px solid var(--rule); border-radius: 10px; padding: 1rem 1.1rem; background: #fff; }
.editor-meta { display: flex; justify-content: space-between; font-size: .82rem; color: var(--muted); margin-top: .4rem; }
.save-status.is-saving { color: var(--muted); }
.save-status.is-saved { color: var(--ok); font-weight: 600; }
.save-status.is-error { color: var(--danger); font-weight: 600; }
.md-help { margin-top: .9rem; font-size: .9rem; color: var(--muted); }
.md-help summary { cursor: pointer; font-weight: 600; color: var(--green); }
.md-help ul { margin: .5rem 0 .5rem 1.2rem; }
.md-help code { background: var(--tint); padding: .05em .3em; border-radius: 4px; font-size: .85em; }
.editor-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.editor-actions .btn + .btn { margin-left: 0; }
.field-pay { border: 1px solid var(--green); border-radius: 12px; padding: 1rem; background: #fff; }
.field-pay input { background: var(--paper) !important; }

/* Docs */
.docs { max-width: 46rem; margin: 3rem auto 0; }
.docs h2 { font-size: 1.35rem; letter-spacing: -0.025em; margin: 2.4rem 0 .7rem; }
.docs p { margin-top: .7rem; }
.docs ol { margin: .6rem 0 0 1.3rem; }
.docs ol li + li { margin-top: .35rem; }
.docs pre { background: var(--paper); border: 1px solid var(--rule); border-radius: 10px; padding: 1rem 1.1rem; overflow-x: auto; font-size: .82rem; line-height: 1.55; margin-top: .9rem; }
.docs p code, .docs li code { background: var(--tint); padding: .05em .35em; border-radius: 4px; font-size: .88em; }
.endpoint-list { list-style: none; display: grid; gap: .8rem; }
.endpoint-list li { border: 1px solid var(--rule); border-radius: 12px; padding: .9rem 1rem; background: var(--paper); }
.endpoint-list li > code:first-child { display: inline-block; font-weight: 600; font-size: .88rem; word-break: break-all; }
.endpoint-list span { display: block; color: var(--muted); font-size: .92rem; margin-top: .3rem; }
.docs .btn { margin-top: 1rem; }

/* Copy feedback */
.copy-btn.is-copied { background: var(--green); color: var(--cream); }

/* Responsive */
@media (max-width: 900px) {
  .page-cards { grid-template-columns: repeat(2, 1fr); }
  .auth { grid-template-columns: 1fr; gap: 2rem; margin-top: 2.5rem; }
  .acct-head { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .wrap { width: calc(100% - 2.25rem); }
  .head-row { flex-wrap: wrap; gap: .35rem .6rem; }
  .brand img { height: 1.85rem; }
  .nav { gap: .1rem .15rem; font-size: .9rem; width: 100%; }
  .search { flex-direction: column; }
  .field-row, .acct-grid { grid-template-columns: 1fr; }
  .field-row .field { margin-bottom: 1.1rem; }
  .profile-head { grid-template-columns: auto 1fr; }
  .profile-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tabs a { flex-direction: column; align-items: center; gap: .25rem; font-size: .8rem; text-align: center; padding: .5rem .15rem; }
  .tab-title { max-width: 100%; white-space: normal; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-height: 1.15; }
  .pager { grid-template-columns: 1fr 1fr; }
  .pager-dots { grid-column: 1 / -1; grid-row: 1; justify-content: center; }
  .page-cards { grid-template-columns: 1fr 1fr; }
  .join { flex-direction: column; align-items: flex-start; }
  .sheet-num { font-size: 3rem; }
  .prefixed { flex-direction: column; }
  .prefixed span { font-size: .82rem; white-space: normal; overflow-wrap: anywhere; padding: .45rem .85rem 0; }
  .form .prefixed input { padding: .25rem .85rem .6rem; }
  .paybox-row { flex-direction: column; align-items: flex-start; }
  .editor-head { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* How-to */
.howto-hero { padding: 3.5rem 0 2.2rem; border-bottom: 1px solid var(--rule); }
.track-switch { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1.6rem; }
.track-switch .btn + .btn { margin-left: 0; }
.howto-grid { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 3rem; margin-top: 2.5rem; align-items: start; }
.toc { position: sticky; top: 5.2rem; max-height: calc(100vh - 6rem); overflow-y: auto; font-size: .9rem; padding-right: .5rem; }
.toc-title { font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .6rem; }
.toc ol { list-style: none; border-left: 1px solid var(--rule); }
.toc li a { display: flex; align-items: center; min-height: 44px; padding: .22rem 0 .22rem .9rem; text-decoration: none; color: var(--muted); border-left: 2px solid transparent; margin-left: -1px; }
.toc li a:hover { color: var(--green); border-left-color: var(--green); }
.toc .toc-top a { font-weight: 600; color: var(--green); margin-top: .35rem; }
.toc .toc-sub a { padding-left: 1.5rem; font-size: .86rem; }
.howto-body { max-width: 46rem; min-width: 0; }
.hsec { scroll-margin-top: 5.5rem; padding-bottom: 2.6rem; margin-bottom: 2.6rem; border-bottom: 1px solid var(--rule); }
.hsec:last-child { border-bottom: 0; }
.hsec h2 { font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -0.035em; line-height: 1.15; margin-bottom: .8rem; }
.hsec p { margin-top: .7rem; }
.hsec .eyebrow { margin-bottom: .3rem; }
.anchor { color: inherit; text-decoration: none; display: inline-block; min-height: 44px; }
.anchor:hover::after { content: " #"; color: var(--muted); font-weight: 400; }
.hsec code, .note-soft code { background: var(--tint); padding: .05em .35em; border-radius: 4px; font-size: .88em; }
.facts { list-style: none; margin-top: 1rem; display: grid; gap: .4rem; }
.facts li { padding-left: 1.2rem; position: relative; }
.facts li::before { content: ""; position: absolute; left: 0; top: .62em; width: .45rem; height: .45rem; border-radius: 50%; background: var(--green); }
.callout { background: var(--paper); border: 1.5px solid var(--green); border-radius: var(--radius); padding: 1.8rem 1.8rem 1.6rem; }
.callout.hsec { border-bottom: 1.5px solid var(--green); }
.prov-head { font-size: 1rem; letter-spacing: -0.015em; margin-top: 1.5rem; }
.providers { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(17rem, 100%), 1fr)); gap: .6rem; margin-top: .6rem; }
.providers li { border: 1px solid var(--rule); border-radius: 12px; padding: .75rem .9rem; background: var(--cream); display: flex; flex-direction: column; gap: .15rem; }
.providers a { font-weight: 700; text-decoration: none; }
.providers a:hover { text-decoration: underline; }
.providers span { font-size: .86rem; color: var(--muted); line-height: 1.45; }
.steps { list-style: none; counter-reset: step; margin-top: 1.4rem; }
.steps > li { counter-increment: step; position: relative; padding-left: 3.4rem; padding-bottom: 1.8rem; scroll-margin-top: 5.5rem; }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: -.1rem; width: 2.3rem; height: 2.3rem; border-radius: 50%; border: 1.5px solid var(--green); display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--green); background: var(--cream); }
.steps > li::after { content: ""; position: absolute; left: 1.15rem; top: 2.3rem; bottom: .2rem; width: 1px; background: var(--rule-strong); }
.steps > li:last-child::after { display: none; }
#humans .steps { counter-reset: step 1; }
#agents .steps { counter-reset: step 1; }
.steps h3 { font-size: 1.15rem; letter-spacing: -0.02em; line-height: 1.3; padding-top: .2rem; }
.pagelist { margin: .6rem 0 0 1.2rem; }
.pagelist li + li { margin-top: .3rem; }
.warn { border-left: 3px solid var(--danger); padding-left: .8rem; color: var(--danger); font-weight: 500; }
.codebox { position: relative; margin-top: .9rem; }
.codebox pre { background: var(--paper); border: 1px solid var(--rule); border-radius: 10px; padding: 1rem 1.1rem; padding-right: 4.8rem; overflow-x: auto; font-size: .8rem; line-height: 1.55; }
.codebox pre code { background: none; padding: 0; font-size: inherit; }
.code-copy { position: absolute; top: .55rem; right: .55rem; background: var(--cream); }
.urltable { width: 100%; border-collapse: collapse; margin-top: .9rem; font-size: .88rem; display: block; overflow-x: auto; }
.urltable th, .urltable td { text-align: left; vertical-align: top; padding: .55rem .7rem; border-bottom: 1px solid var(--rule); }
.urltable th { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.urltable td:first-child { white-space: nowrap; }
.note-soft { margin-top: 1.6rem; border: 1px solid var(--green); border-radius: 12px; padding: .9rem 1rem; background: var(--paper); font-size: .95rem; }
.newhere { margin-top: 1rem; font-weight: 500; }
.acct-help { margin-top: .8rem; font-size: .95rem; color: var(--muted); }
@media (max-width: 900px) {
  .howto-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .toc { position: static; max-height: none; border: 1px solid var(--rule); border-radius: var(--radius); padding: 1rem 1.1rem; background: var(--paper); }
  .toc .toc-sub { display: none; }
}
@media (max-width: 640px) {
  .callout { padding: 1.3rem 1.1rem; }
  .steps > li { padding-left: 2.9rem; }
  .urltable { overflow-x: visible; }
  .urltable thead { display: none; }
  .urltable tbody, .urltable tr, .urltable th, .urltable td { display: block; width: 100%; max-width: 100%; box-sizing: border-box; white-space: normal; overflow-wrap: anywhere; }
  .urltable td:first-child { font-weight: 600; border-bottom: 0; padding-bottom: .15rem; }
  .urltable tr { margin-bottom: .35rem; padding-bottom: .35rem; }
}
.tip { border-left: 3px solid var(--muted); padding-left: .8rem; color: var(--muted); font-size: .95rem; }
.note-soft .tip { margin-top: .6rem; }

/* Verification, badges, misc */
.verify-banner { margin-top: 1.25rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; border: 1px solid var(--green); border-left: 4px solid var(--green); background: var(--paper); border-radius: 10px; padding: .75rem 1rem; }
.verify-banner p { flex: 1; min-width: 14rem; }
.badge-verified, .badge-unverified { display: inline-block; font-size: .78rem; font-weight: 600; border-radius: 999px; padding: .08rem .55rem; vertical-align: middle; }
.badge-verified { background: var(--green); color: var(--cream); }
.badge-unverified { border: 1px solid var(--rule-strong); color: var(--muted); }
.tag-verified { background: var(--green); color: var(--cream); border-color: var(--green); }
.acct-status { margin-top: .9rem; display: flex; gap: .7rem; align-items: center; flex-wrap: wrap; font-size: .92rem; }
.handle-status { font-size: .86rem; margin-top: .3rem; min-height: 1.2em; color: var(--muted); }
.handle-status.is-ok { color: var(--ok); font-weight: 600; }
.handle-status.is-bad { color: var(--danger); font-weight: 600; }
.sub-lede { color: var(--muted); margin-top: .6rem; }
.paybox-note { font-size: .84rem; color: var(--muted); margin-top: .7rem; line-height: 1.5; }
code.mint { font-size: .85em; word-break: break-all; background: var(--tint); padding: .05em .3em; border-radius: 4px; }
.note-soft p + p { margin-top: .55rem; }
.legal ul { margin: .5rem 0 0 1.2rem; }
.legal li + li { margin-top: .35rem; }

.public-note { margin-top: .9rem; font-size: .92rem; font-weight: 600; color: var(--green); }
.already { text-align: center; padding: 1.6rem; }
.already p + p, .already form { margin-top: .8rem; }

@media (max-width: 400px) {
  .page-cards { grid-template-columns: 1fr; }
}
/* Code / tables stay inside the viewport even when they scroll internally */
.docs pre, .codebox, .urltable, .prose pre { max-width: 100%; }
.codebox pre, .docs pre, .prose pre { -webkit-overflow-scrolling: touch; }


.fca-warn {
  border: 2px solid var(--green);
  padding: 0.85rem 1rem;
  margin: 1.1rem 0;
  font-size: 1rem;
  line-height: 1.45;
  background: var(--cream);
  overflow-wrap: break-word;
}
.fca-warn strong { font-weight: 700; }
.fca-learn-more { font-weight: 700; text-decoration: underline; }

.crypto-disc { max-width: 46rem; }
.crypto-disc .disc-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  margin: 1.2rem 0 0;
  font-size: 0.9rem;
}
.crypto-disc blockquote {
  margin: 0.9rem 0 0;
  padding: 0.85rem 1rem;
  border: 2px solid var(--ink);
  background: var(--paper);
}
.crypto-disc blockquote p + p { margin-top: 0.7rem; }
.fca-statement {
  margin: 0.9rem 0 0;
  padding: 0.9rem 1rem;
  border: 2px solid var(--ink);
  background: var(--paper);
  overflow-wrap: anywhere;
}
.fca-statement-title { font-weight: 800; letter-spacing: 0.02em; text-transform: uppercase; margin: 0 0 0.7rem; }
.fca-statement p { margin-top: 0.55rem; }
.fca-statement p:first-of-type { margin-top: 0; }
.fca-summary { margin-top: 1.4rem; }
.fca-summary-time { font-weight: 700; }
.fca-summary h2 { margin-top: 1.4rem; }
.fca-summary h3 { font-size: 1.05rem; margin: 1.15rem 0 0.35rem; }
.fca-summary a { text-decoration: underline; font-weight: 700; }
.crypto-disc ul.sources { margin-top: 0.7rem; }
.crypto-disc .sources li + li { margin-top: 0.45rem; }

@media (max-width: 540px) {
  .fca-warn, .fca-statement, .crypto-disc blockquote { padding: 0.75rem 0.8rem; }
}

/* Products */
.tabs-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.tabs-5 .tab-title {
  white-space: normal;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-height: 1.15;
}
.products-lead { max-width: 40rem; margin: 0 0 1.5rem; font-size: 1.1rem; line-height: 1.65; color: var(--muted); }
.products-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.product-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.25rem 1.3rem 1.2rem;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.product-name { font-size: 1.22rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1.2; }
.product-desc { margin-top: .55rem; color: var(--muted); font-size: 1rem; line-height: 1.5; flex: 1; }
.product-price { margin-top: 1rem; font-size: 1.35rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.product-price .price-label {
  display: block; font-size: .72rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); margin-bottom: .25rem;
}
.product-actions {
  display: flex; flex-wrap: wrap; gap: .5rem;
  margin-top: 1rem; padding-top: .95rem; border-top: 1px solid var(--rule);
}
.product-actions .btn + .btn { margin-left: 0; }
.tag-products { border-color: var(--green); background: var(--tint); color: var(--green); }
.crumb { font-size: .92rem; font-weight: 500; margin: 0 0 1.25rem; }
.crumb a { display: inline-flex; align-items: center; min-height: 44px; }
.price-pill {
  display: inline-block; margin: .9rem 0 1.4rem;
  border: 1px solid var(--green); background: var(--paper);
  border-radius: 999px; padding: .35rem 1rem;
  font-weight: 700; letter-spacing: -0.02em;
}
.memobox {
  border: 1px dashed var(--rule-strong); border-radius: var(--radius);
  padding: 1.1rem 1.2rem; margin: 0 0 1.5rem; background: #fff;
}
.memobox .paybox-label { margin-bottom: .15rem; }
.memo-code { font-size: 1.15rem; font-weight: 700; letter-spacing: 0.04em; word-break: break-all; }
.product-contact { margin-top: .4rem; }
.product-pay-title { font-size: 1.35rem; letter-spacing: -0.025em; margin: 2.2rem 0 1rem; }
.products-dash {
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  margin: 2rem 0 0; padding: 1.4rem 1.6rem;
  border: 1px solid var(--rule-strong); border-radius: var(--radius);
  background: var(--paper);
}
.products-dash h2 { font-size: 1.25rem; letter-spacing: -0.02em; }
.products-dash p { color: var(--muted); max-width: 36rem; }
.product-admin { list-style: none; display: flex; flex-direction: column; gap: .8rem; margin-top: 1.5rem; }
.product-admin-row {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 1rem 1.2rem;
}
.product-admin-row h2 { font-size: 1.1rem; letter-spacing: -0.02em; }
.product-admin-actions { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.product-admin-actions .btn + .btn { margin-left: 0; }
@media (max-width: 800px) {
  .products-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .tabs-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .tabs-5 a { font-size: .72rem; padding: .45rem .08rem; }
  .products-dash { flex-direction: column; align-items: flex-start; }
}

/* Reputation, jobs, reports */
.tag-rep { border-color: var(--green); color: var(--green); background: var(--paper); text-decoration: none; white-space: nowrap; }
.tag-rep.is-new { border-style: dashed; color: var(--muted); }
a.tag-rep:hover { background: var(--tint); }
.rep-strip { font-size: .88rem; color: var(--muted); margin-top: .45rem; display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.rep-strip .tag { font-size: .8rem; }
.rep-strip-link { color: var(--green); }
.rep-strip-link.muted { color: var(--muted); }
.rep-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: .8rem; margin: 1.6rem 0 2rem; }
.rep-grid > div { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1rem 1.1rem; }
.rep-grid dt { font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.rep-grid dd { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.03em; color: var(--green); line-height: 1.2; margin-top: .25rem; }
.rep-grid dd.rep-sub { font-size: .82rem; font-weight: 500; letter-spacing: 0; color: var(--muted); margin-top: .2rem; }
.rep-h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 .8rem; }
.rep-list { list-style: none; display: grid; gap: .8rem; }
.rep-item { border: 1px solid var(--rule); border-radius: var(--radius); padding: 1rem 1.1rem; background: var(--paper); }
.rep-item-head { font-size: .9rem; color: var(--muted); }
.rep-comment { margin-top: .45rem; }
.rep-reply { margin-top: .6rem; padding-left: .9rem; border-left: 3px solid var(--rule-strong); font-size: .95rem; }
.rep-report { margin-top: .5rem; font-size: .8rem; }
.rep-reply-form { margin-top: .7rem; display: grid; gap: .4rem; }
.stars { color: var(--green); letter-spacing: .05em; }
.stars-off { color: var(--rule-strong); }
.job-list { list-style: none; display: grid; gap: .6rem; margin-top: 2rem; }
.job-row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: .9rem 1.1rem; font-size: .95rem; }
.job-row .tag { font-size: .8rem; }
.job-actions .inline-form { display: inline-block; margin-right: .4rem; }
.form select { width: 100%; font: inherit; font-size: 1rem; padding: .7rem .8rem; border: 1px solid var(--rule-strong); border-radius: 10px; background: #fff; color: var(--ink); }
.form fieldset { border: 0; }
.form legend { font-weight: 600; font-size: .95rem; margin-bottom: .45rem; }
.inline-radio { display: inline-flex !important; gap: .3rem; align-items: center; margin-right: .9rem; font-weight: 500 !important; }
.form input[type=date] { font: inherit; font-size: 1rem; padding: .7rem .8rem; border: 1px solid var(--rule-strong); border-radius: 10px; background: #fff; color: var(--ink); }
/* Crawlable navigation shared with the BreadcrumbList structured data. */
.breadcrumbs { margin: 1rem 0; font-size: .875rem; color: #615d56; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .4rem .6rem; list-style: none; padding: 0; margin: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: .6rem; color: #817b72; }
.breadcrumbs [aria-current="page"] { overflow-wrap: anywhere; }
