:root {
  color-scheme: light;
  --bg: #f3f4f1;
  --surface: #fafbf8;
  --soft: #e7e9e4;
  --text: #171a18;
  --muted: #60655f;
  --prompt: #747a73;
  --line: #c9cdc7;
  --line-strong: #8a918a;
  --accent: #315b4a;
  --accent-soft: #e1eae5;
  --danger: #9d352c;
  --shadow: 0 14px 40px rgba(31, 34, 28, .07);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #101311;
  --surface: #181c19;
  --soft: #222824;
  --text: #eef1ed;
  --muted: #a5ada7;
  --prompt: #b5bdb7;
  --line: #373e39;
  --line-strong: #626b65;
  --accent: #91bda8;
  --accent-soft: #1d2d25;
  --danger: #e48c82;
  --shadow: 0 18px 50px rgba(0, 0, 0, .28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
body {
  margin: 0;
  background-color: var(--bg);
  background-image: linear-gradient(rgba(94, 96, 84, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(94, 96, 84, .035) 1px, transparent 1px);
  background-size: 32px 32px;
  color: var(--text);
  font: 16px/1.65 var(--sans);
  text-rendering: optimizeLegibility;
}
:root[data-theme="dark"] body {
  background-image: linear-gradient(rgba(220, 220, 205, .018) 1px, transparent 1px), linear-gradient(90deg, rgba(220, 220, 205, .018) 1px, transparent 1px);
}
::selection { background: var(--accent); color: var(--surface); }
[hidden] { display: none !important; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .24em; }
a:hover { text-decoration-thickness: 2px; }
button, input, textarea, select { font: inherit; }

button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  min-height: 42px;
  padding: .68rem 1.1rem;
  border: 1px solid var(--accent);
  border-radius: 1px;
  background: var(--accent);
  color: var(--surface);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .09em;
  line-height: 1.35;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .16s, color .16s, border-color .16s, transform .16s;
}
button:hover, .button:hover { background: transparent; color: var(--accent); transform: translateY(-1px); }
button.secondary, .button.secondary { background: transparent; color: var(--text); border-color: var(--line-strong); }
button.secondary:hover, .button.secondary:hover { border-color: var(--accent); color: var(--accent); }
button.danger { background: transparent; color: var(--danger); border-color: var(--danger); }
button.small, .button.small { min-height: 34px; padding: .45rem .78rem; font-size: .7rem; }
button.textbutton, .theme { min-height: auto; padding: .4rem; border: 0; background: transparent; color: var(--muted); font-size: .78rem; letter-spacing: .04em; }
button.textbutton:hover { color: var(--accent); transform: none; }
.theme { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; }
.theme:hover { border-color: var(--accent); color: var(--accent); transform: rotate(12deg); }
.theme svg { width: 17px; height: 17px; }
.theme-sun { display: none; }
:root[data-theme="dark"] .theme-moon { display: none; }
:root[data-theme="dark"] .theme-sun { display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

header { border-bottom: 1px solid var(--line-strong); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(12px); }
header nav { max-width: 1160px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 1.25rem 2rem; }
.wordmark { display: flex; align-items: center; gap: .72rem; color: var(--text); font: 600 1.45rem/1 var(--serif); letter-spacing: .01em; text-decoration: none; }
.beta { margin-left: -.35rem; color: var(--muted); font: 600 .62rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.mark { position: relative; display: inline-grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--text); border-radius: 50%; background: transparent; color: var(--text); font: 500 15px/1 var(--serif); }
.mark::after { content: ""; position: absolute; left: 6px; right: 6px; top: 50%; border-top: 1px solid currentColor; }
.navlinks { display: flex; align-items: center; gap: 1.5rem; }
.navlinks > a { color: var(--muted); font-size: .76rem; font-weight: 650; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.navlinks > a:hover { color: var(--accent); }
.navlinks > a.button { color: var(--surface); }
.navlinks > a.button:hover { color: var(--accent); }
.navlinks > a.nav-icon-button { display: inline-grid; place-items: center; width: 34px; height: 34px; min-height: 34px; padding: 0; border-radius: 50%; background: transparent; color: var(--text); border-color: var(--line-strong); }
.nav-icon-button svg { width: 17px; height: 17px; }
.navlinks form { margin: 0; }
.navlinks form > button { margin-top: 0; }

main { max-width: 1160px; min-height: 72vh; margin: auto; padding: 3.5rem 2rem 5rem; }
h1, h2, h3 { margin: 0 0 1rem; font-family: var(--serif); font-weight: 500; line-height: 1.1; letter-spacing: -.025em; }
h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: 1.65rem; }
h3 { font-size: 1.18rem; }
p { margin: .65rem 0 1.2rem; }
.eyebrow { display: flex; align-items: center; gap: .55rem; margin-bottom: 1.5rem; color: var(--muted); font: 700 .66rem/1.4 var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.eyebrow::before { content: "∴"; color: var(--accent); font: 400 1rem/1 var(--serif); letter-spacing: 0; }
.dot { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border: 1px solid var(--accent); border-radius: 50%; background: transparent; }

.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 4rem; align-items: center; margin: 0; padding: 2.1rem 0 4rem; }
.hero h1 { font-size: clamp(3rem, 5.7vw, 4.7rem); line-height: 1.03; letter-spacing: -.045em; }
.hero h1 span { position: relative; color: var(--text); font-style: italic; text-decoration: none; }
.hero h1 span::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.07em; height: 3px; background: var(--accent); transform: skewX(-28deg); }
.lede { max-width: 590px; margin: 1.5rem 0; color: var(--muted); font-family: var(--serif); font-size: 1.15rem; line-height: 1.7; }
.etymology { max-width: 570px; margin: 1.25rem 0; padding-top: .75rem; border-top: 1px solid var(--line); color: var(--muted); font: italic .86rem/1.55 var(--serif); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem; margin: 1rem 0; }
.quiet, small { color: var(--muted); font-size: .88rem; }
.identity-demo { position: relative; overflow: hidden; border: 1px solid var(--line-strong); background: var(--surface); box-shadow: var(--shadow); }
.identity-demo::before, .identity-demo::after { content: ""; position: absolute; z-index: 2; width: 42px; height: 42px; pointer-events: none; }
.identity-demo::before { top: 9px; right: 9px; border-top: 1px solid var(--accent); border-right: 1px solid var(--accent); }
.identity-demo::after { bottom: 9px; left: 9px; border-bottom: 1px solid var(--accent); border-left: 1px solid var(--accent); }
.demo-head { display: flex; align-items: center; gap: 1rem; padding: 2rem; background: var(--soft); font: .65rem/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.demo-head strong { display: block; margin-top: .3rem; font: 500 1.35rem/1.2 var(--serif); letter-spacing: 0; text-transform: none; }
.mark.large { width: 48px; height: 48px; font-size: 20px; }
.demo-row { display: flex; gap: 1rem; align-items: center; padding: 1.4rem; border-bottom: 1px solid var(--line); }
.demo-row strong { font-family: var(--serif); font-size: .96rem; font-weight: 600; }
.demo-row p { margin: .25rem 0 0; color: var(--muted); font: .7rem/1.5 var(--mono); }
.number { color: var(--accent); font: 12px var(--mono); }
.proof { color: var(--accent) !important; background: var(--accent-soft) !important; }
.key-algorithm-badge { white-space: nowrap; }
.pq-badge { color: var(--accent) !important; background: var(--accent-soft) !important; font-weight: 800; letter-spacing: .06em; }
.demo-row > .proof { margin-left: auto; padding: .2rem .5rem; font: .58rem/1.4 var(--mono); white-space: nowrap; }
.demo-foot { padding: 1rem; color: var(--muted); font: .66rem/1.5 var(--mono); text-align: center; }

.intro-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; border-top: 1px solid var(--line-strong); padding-top: 2.5rem; counter-reset: proposition; }
.intro-grid article { position: relative; counter-increment: proposition; }
.intro-grid article::before { content: "0" counter(proposition) " /"; display: block; margin-bottom: 1rem; color: var(--accent); font: .65rem var(--mono); }
.intro-grid h2 { font-size: 1.3rem; }
.intro-grid p:not(.eyebrow) { color: var(--muted); font-size: .9rem; }
.notice { margin: 1.5rem 0; padding: 1rem 1.25rem; border: 1px solid var(--line); border-left: 3px double var(--accent); background: var(--accent-soft); font-size: .88rem; }
.error { color: var(--danger); border-left-color: var(--danger); background: var(--surface); }
.notice.success { background: var(--soft); border-left-color: var(--accent); color: var(--text); }
section { margin: 0 0 3.5rem; }
footer { max-width: 1096px; margin: auto; padding: 2rem 0; display: flex; align-items: center; gap: 1.5rem; border-top: 1px solid var(--line-strong); color: var(--muted); font: .72rem/1.5 var(--mono); }
footer::before { content: "∎"; color: var(--accent); }
footer p { margin: 0; }
footer > span { margin-left: auto; }

.auth { max-width: 460px; margin: 1rem auto 3rem; }
.auth.wide { max-width: 720px; }
.auth h1 { font-size: 2.7rem; }
.auth > p { color: var(--muted); }
form > label, label { display: block; margin: 1rem 0 .4rem; font-size: .77rem; font-weight: 700; letter-spacing: .04em; }
input, select, textarea { display: block; width: 100%; min-width: 0; margin-top: .35rem; padding: .75rem .85rem; border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0; background: var(--soft); color: var(--text); outline: 1px solid transparent; transition: border-color .15s, outline-color .15s, background-color .15s; }
input:hover, select:hover, textarea:hover { border-color: var(--accent); }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline-color: var(--accent); background: var(--surface); }
textarea { resize: vertical; }
form > button { margin-top: 1rem; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 450; letter-spacing: 0; }
.check input { width: auto; margin-top: .3rem; accent-color: var(--accent); outline: 0; }

.card { position: relative; margin: .75rem 0; padding: 1.1rem; overflow-wrap: anywhere; border: 1px solid var(--line); background-color: var(--surface); background-image: linear-gradient(var(--accent), var(--accent)), linear-gradient(var(--accent), var(--accent)); background-position: top left, top left; background-repeat: no-repeat; background-size: 18px 1px, 1px 18px; }
.attestation-card, .profile-key-card, .agent-key-card { background-image: none; }
.card form + form { margin-top: 1rem; }
.cardtop { display: flex; gap: .65rem; align-items: center; flex-wrap: wrap; }
.attestation-actions { display: flex; gap: .4rem; grid-column: 2; grid-row: 1 / span 3; margin: 0; }
.attestation-author { display: flex; align-items: center; gap: .65rem; width: max-content; grid-column: 1; margin: 0; color: var(--text); text-decoration: none; }
.attestation-author:hover span:last-child { color: var(--accent); }
.attestation-author .directory-image { object-fit: cover; }
.attestation-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: .45rem .8rem; padding: .8rem; }
.attestation-card .text, .attestation-card .meta { margin: 0; }
.attestation-card .text { max-height: 7.2em; padding: 0; }
.attestation-card > .attestation-meta, .attestation-card > .quiet { grid-column: 1; }
.attestation-meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: .2rem .75rem; margin: 0; }
.attestation-meta .hash { font-size: .68rem; white-space: nowrap; }
.zk-badge { width: max-content; font-style: normal; }
.unpublished-attestation { display: flex; align-items: center; gap: .55rem; margin: 0; font-family: var(--serif); font-style: italic; }
.icon-action { display: inline-grid; place-items: center; width: 31px; height: 31px; min-height: 31px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--text); text-decoration: none; }
.icon-action:hover { border-color: var(--accent); background: transparent; color: var(--accent); }
.icon-action svg { width: 16px; height: 16px; }

.new-attestation-page { max-width: 720px; margin: 0 auto; }
.new-attestation-page > .quiet { margin-bottom: 1.5rem; }
.attestation-type-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin-bottom: 1.25rem; }
.attestation-type { justify-content: flex-start; gap: .7rem; min-width: 0; padding: .85rem; border-color: var(--line); background: var(--surface); color: var(--text); text-align: left; text-transform: none; letter-spacing: 0; }
.attestation-type:hover, .attestation-type.active { border-color: var(--accent); background: var(--accent-soft); color: var(--text); transform: none; }
.attestation-type.active { box-shadow: inset 3px 0 var(--accent); }
.attestation-type svg { flex: 0 0 20px; width: 20px; height: 20px; }
.attestation-type span { min-width: 0; font-size: .82rem; }
.attestation-type small { display: block; margin-top: .2rem; font-size: .68rem; font-weight: 450; }
.timelock-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.new-attestation-page .actions { margin-bottom: 0; }
.tag { display: inline-block; padding: .2rem .5rem; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); font: 600 .66rem/1.3 var(--mono); letter-spacing: .03em; }
.icon-tag { display: inline-grid; place-items: center; width: 25px; height: 25px; padding: 0; vertical-align: middle; }
.icon-tag svg { width: 14px; height: 14px; }
.meta { color: var(--muted); font: .7rem/1.55 var(--mono); }
pre { max-height: 400px; overflow: auto; padding: 1rem; border-left: 2px solid var(--line-strong); background: var(--soft); font: .82rem/1.7 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
pre.text { padding: .5rem 0; border: 0; background: transparent; font-family: var(--serif); font-size: .98rem; }
pre.text code { font: inherit; }
.hash { display: block; overflow-wrap: anywhere; color: var(--accent); font: .82rem/1.5 var(--mono); }
summary { cursor: pointer; font-weight: 600; }
details > summary { padding: .3rem 0; }
details[open] > summary { margin-bottom: 1rem; }
.copy { min-height: 0; margin: 0 0 .8rem; padding: .3rem .6rem; font-size: .65rem; }

.profile-overview { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.15rem; margin-bottom: 2rem; padding: 1.1rem; border: 1px solid var(--line-strong); background: var(--surface); }
.profile-overview > section { margin: 0; }
.profile-overview-single { grid-template-columns: 1fr; }
.profile-head { display: flex; align-items: flex-start; gap: 1.25rem; margin: 0; }
.external-entries { border-left: 1px solid var(--line); padding-left: 1.15rem; }
.external-entries .entry:last-child { border-bottom: 0; }
.profile-details { flex: 1; min-width: 0; }
.profile-details .eyebrow { margin: 0 0 .7rem; }
.profile-details h1 { margin-bottom: .45rem; font-size: 1.8rem; overflow-wrap: anywhere; }
.profile-details .username { margin: 0 0 .7rem; }
.profile-details .bio { margin: .55rem 0 .75rem; }
.profile-details .meta { margin: .45rem 0; }
.username { color: var(--accent); font: .92rem/1.5 var(--mono); overflow-wrap: anywhere; }
.bio { max-width: 700px; white-space: pre-wrap; }
.entry { display: flex; flex-wrap: wrap; gap: 1.5rem; padding: 1.2rem 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.profile-overview .entry { gap: .8rem; padding: .78rem 0; }
.entry strong { min-width: 120px; font-family: var(--serif); font-weight: 600; }
.service-name { display: inline-flex; align-items: center; gap: .6rem; }
.service-icon { display: inline-grid; place-items: center; flex: 0 0 25px; width: 25px; height: 25px; color: var(--text); }
.service-icon svg { width: 20px; height: 20px; }
.entry .tag { margin-left: auto; }
.entry-prompt { color: var(--prompt); font-family: var(--serif); font-style: italic; text-decoration: none; }
.entry-prompt:hover { color: var(--accent); }

.people { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin: 2rem 0; }
.follow-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.follow-columns-single { grid-template-columns: 1fr; }
.follow-columns .people { grid-template-columns: 1fr; margin-bottom: 0; }
.person { display: flex; align-items: center; gap: 1rem; padding: 1.3rem; border: 1px solid var(--line); background: var(--surface); color: var(--text); text-decoration: none; overflow-wrap: anywhere; transition: border-color .15s, transform .15s; }
.person:hover { border-color: var(--accent); transform: translateX(3px); }
.person h2 { margin: 0; font-size: 1.1rem; }
.person p { margin: .3rem 0 0; color: var(--muted); font-size: .9rem; }
.avatar { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--accent); font-family: var(--serif); }
.arrow { margin-left: auto; color: var(--accent); font-family: var(--serif); }
.search { max-width: 700px; }
.search .actions { flex-wrap: nowrap; }
.search input { margin: 0; }
.empty { padding: 1.5rem; border: 1px dashed var(--line-strong); color: var(--muted); font-family: var(--serif); font-style: italic; }
.account-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.account-head h1 { font-size: 3rem; }
.tabs { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 3rem; padding: 1rem 0; border-bottom: 1px solid var(--line-strong); }
.tabs a { font: 650 .72rem/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.record-action { margin-bottom: 2rem; }
.skip { position: absolute; top: -80px; left: 1rem; z-index: 10; padding: 1rem; background: var(--surface); }
.skip:focus { top: 1rem; }

.profile-image { display: block; flex: 0 0 124px; width: 124px; height: 124px; margin: 0; border-radius: 50%; object-fit: cover; filter: saturate(.82) contrast(1.03); }
.directory-image { flex-shrink: 0; border-radius: 50%; }
.settings-menu { position: relative; color: var(--muted); font-size: .82rem; }
.settings-menu > summary { padding: .4rem; list-style: none; cursor: pointer; }
.settings-menu > summary::-webkit-details-marker { display: none; }
.settings-menu > summary::after { content: "  ∨"; color: var(--accent); font-family: var(--serif); }
.settings-menu[open] > summary { color: var(--text); }
.settings-links { position: absolute; top: calc(100% + .45rem); right: 0; z-index: 5; min-width: 195px; padding: .45rem; border: 1px solid var(--line-strong); background: var(--surface); box-shadow: var(--shadow); }
.settings-links a { display: block; padding: .5rem .65rem; color: var(--text); text-decoration: none; white-space: nowrap; }
.settings-links a:hover, .settings-links a:focus-visible { background: var(--soft); color: var(--accent); }
.settings-links form { margin-top: .35rem; padding-top: .35rem; border-top: 1px solid var(--line); }
.settings-links .settings-signout { display: block; width: 100%; min-height: 0; padding: .5rem .65rem; border: 0; background: transparent; color: var(--danger); font-size: inherit; font-weight: 600; line-height: 1.6; text-align: left; text-transform: none; }
.settings-links .settings-signout:hover, .settings-links .settings-signout:focus-visible { background: var(--soft); color: var(--danger); transform: none; }
.follow-heading { display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; }
.follow-heading h3 { margin: 0; }
.person .directory-image { object-fit: cover; }

.profile-editor .section-heading { margin-bottom: 1.5rem; }
.profile-editor .section-heading .eyebrow { margin-bottom: .65rem; }
.profile-editor .section-heading h2 { margin-bottom: .55rem; }
.profile-editor .section-heading > p:last-child { margin: 0; color: var(--muted); }
.profile-editor-grid { display: grid; grid-template-columns: minmax(230px, 310px) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.profile-preview { position: sticky; top: 1.5rem; margin: 0; padding: 1.75rem; }
.profile-preview .eyebrow { margin-bottom: 1.25rem; }
.editor-portrait { display: block; width: 120px; height: 120px; margin-bottom: 1.4rem; border-radius: 50%; object-fit: cover; }
.portrait-placeholder { display: grid; place-items: center; border: 1px solid var(--line); background: transparent; color: var(--muted); }
.portrait-placeholder svg { width: 52px; height: 52px; }
.profile-preview h3 { margin-bottom: .25rem; font-size: 1.4rem; overflow-wrap: anywhere; }
.profile-preview .username { margin: 0 0 1.1rem; font-size: .84rem; }
.preview-bio { max-height: 6.5em; overflow: hidden; color: var(--muted); font-family: var(--serif); font-size: .94rem; white-space: pre-wrap; }
.profile-preview .button { width: 100%; justify-content: center; margin-top: .45rem; }
.preview-foot { margin-top: 1.5rem; padding-top: 1.15rem; border-top: 1px solid var(--line); color: var(--muted); font: .72rem/1.5 var(--mono); }
.preview-foot .dot { width: 6px; height: 6px; }
.preview-foot p { margin: .4rem 0 0; }
.profile-editor-forms { min-width: 0; }
.profile-editor-forms .editor-card { margin: 0 0 1.25rem; padding: 1.75rem; }
.editor-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1.15rem; padding-bottom: 1.15rem; border-bottom: 1px solid var(--line); }
.editor-card-head .eyebrow { margin: 0 0 .45rem; }
.editor-card-head h3 { margin: 0; font-size: 1.3rem; }
.editor-card-head .tag { flex-shrink: 0; }
.editor-card > .quiet { margin-bottom: 1.2rem; }
.editor-card label { margin-top: 1.3rem; }
.editor-card input, .editor-card textarea { margin-top: .5rem; }
.editor-card textarea { min-height: 140px; }
.editor-card input[type="file"] { padding: .7rem; }
.editor-card input[type="file"]::file-selector-button { margin-right: .8rem; padding: .45rem .7rem; border: 1px solid var(--line); border-radius: 0; background: var(--surface); color: var(--text); font: 650 .72rem var(--sans); cursor: pointer; }
.field-help { margin: .35rem 0 .9rem; color: var(--muted); font-size: .78rem; }
.readonly-field { display: grid; gap: .1rem; padding: .85rem 1rem; border-left: 2px solid var(--line-strong); background: var(--soft); }
.readonly-field > span { color: var(--muted); font: 600 .68rem var(--mono); }
.readonly-field strong { font: 500 .96rem var(--serif); overflow-wrap: anywhere; }
.readonly-field small { font-size: .75rem; }
.editor-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; margin-top: 1.4rem; padding-top: 1.35rem; border-top: 1px solid var(--line); }
.editor-actions button { margin: 0; }

.entry-editor { margin: .65rem 0; padding: 1rem; }
.entry-editor .cardtop { justify-content: flex-end; margin-bottom: .65rem; }
.entry-edit-form { display: grid; grid-template-columns: minmax(140px, .7fr) minmax(220px, 1.3fr) auto; gap: .75rem; align-items: end; }
.entry-edit-form > label { margin: 0; }
.entry-edit-form > label input, .entry-edit-form > label select { margin-top: .3rem; }
.entry-edit-form > button { margin: 0; padding: .75rem .9rem; }
.entry-editor-actions { gap: .5rem; margin: .7rem 0 0; }
.card .entry-editor-actions form { margin: 0; }
.entry-editor-actions button { min-height: 0; margin: 0; padding: .48rem .7rem; font-size: .68rem; }
.entry-remove-form { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.entry-remove-form .check { margin: 0; font-size: .8rem; }
.verified-website-badge { color: var(--accent); }
.website-proof { margin-top: .75rem; padding: .85rem; border: 1px solid var(--line); background: var(--soft); }
.website-proof > p { margin: .45rem 0; font-size: .82rem; }
.website-proof-text { display: block; padding: .65rem; border-left: 2px solid var(--accent); background: var(--surface); font: .72rem/1.5 var(--mono); overflow-wrap: anywhere; }
.website-proof-actions { gap: .5rem; margin: .7rem 0 0; }
.website-proof-actions form { margin: 0 !important; }
.website-proof-actions button { min-height: 0; margin: 0; padding: .48rem .7rem; font-size: .68rem; }
.website-proof-status { margin: .7rem 0 0; color: var(--muted); font-size: .8rem; }

.attestation-editor { display: grid; grid-template-columns: minmax(0, 7fr) minmax(240px, 3fr); gap: .75rem; margin: .5rem 0; padding: .75rem; }
.attestation-editor-content, .attestation-editor-controls { min-width: 0; }
.attestation-editor-controls { padding-left: 1rem; border-left: 1px solid var(--line); }
.attestation-editor .cardtop { justify-content: flex-start; }
.attestation-editor .text { max-height: 110px; margin: 0 0 .4rem; padding: .5rem; background: var(--soft); }
.attestation-editor .hash { font-size: .74rem; }
.attestation-editor .meta { margin: .55rem 0 0; }
.attestation-editor-links { gap: .65rem; margin: .65rem 0; }
.attestation-editor-links .button { flex-basis: 100%; justify-content: center; padding: .48rem .7rem; font-size: .68rem; }
.attestation-state-form { margin-top: .55rem !important; padding-top: .65rem; border-top: 1px solid var(--line); }
.attestation-state-form .check { margin: 0; font-size: .8rem; }
.attestation-state-form > button { width: 100%; min-height: 0; margin: .6rem 0 0; padding: .48rem .7rem; font-size: .68rem; }
.follow-editor { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1rem; margin: .65rem 0; padding: .8rem 1rem; }
.follow-editor .follow-heading { min-width: 0; margin: 0; }
.follow-editor .follow-heading h3 { overflow-wrap: anywhere; }
.follow-editor-actions { gap: .5rem; margin: 0; }
.card .follow-editor-actions form { margin: 0; }
.follow-editor-actions button { min-height: 0; margin: 0; padding: .48rem .7rem; font-size: .68rem; }

.key-editor { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: .8rem; row-gap: .3rem; margin: .4rem 0; padding: .6rem .75rem; }
.key-editor .cardtop { grid-column: 1 / -1; justify-content: flex-start; gap: .4rem; }
.key-editor .cardtop strong { margin-right: .2rem; }
.key-summary { display: flex; grid-column: 1 / -1; align-items: baseline; justify-content: space-between; gap: .2rem .8rem; min-width: 0; flex-wrap: wrap; }
.key-fingerprint { min-width: 0; font: .68rem/1.35 var(--mono); }
.key-summary .meta { white-space: nowrap; }
.key-editor .key-material { margin: 0; font-size: .74rem; white-space: nowrap; }
.key-editor .key-material[open] { grid-column: 1 / -1; width: 100%; white-space: normal; }
.key-editor details pre, .profile-key-card details pre { max-height: 120px; margin: .55rem 0 0; padding: .65rem; font-size: .72rem; line-height: 1.45; white-space: pre-wrap; }
.key-verification { grid-column: 1 / -1; margin-top: .15rem; padding-top: .55rem; border-top: 1px solid var(--line); }
.key-verification > summary { color: var(--accent); }
.key-verification > p { margin: .55rem 0; font-size: .82rem; }
.key-verification > pre { max-height: 105px; margin: .55rem 0; padding: .65rem; font-size: .72rem; line-height: 1.45; }
.key-verification form { margin: .55rem 0 0 !important; }
.key-verification form label { margin: 0 0 .5rem; }
.key-verification textarea { min-height: 75px; }
.key-verification form button { margin-top: .5rem; padding: .55rem .75rem; font-size: .68rem; }
.key-editor-actions { grid-column: 1 / -1; justify-content: flex-end; gap: .4rem; margin: 0; padding-top: .35rem; border-top: 1px solid var(--line); }
.card .key-editor-actions form { margin: 0; }
.key-editor-actions button { min-height: 0; margin: 0; padding: .48rem .7rem; font-size: .68rem; }
.key-remove-form { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.key-remove-form .check { margin: 0; font-size: .8rem; }
.profile-key-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .28rem .8rem; margin: .4rem 0; padding: .6rem .75rem; }
.profile-key-head { grid-column: 1 / -1; gap: .4rem; }
.profile-key-head .key-download { margin-left: auto; font-size: .8rem; white-space: nowrap; }
.profile-key-card .key-material { margin: 0; font-size: .74rem; white-space: nowrap; }
.profile-key-card .key-material[open] { grid-column: 1 / -1; white-space: normal; }
.agent-key-card { margin: .45rem 0; padding: .75rem .9rem; }
.agent-key-card .cardtop { margin-bottom: .4rem; }
.agent-key-card pre { max-height: 5rem; margin: .45rem 0; padding: .55rem .65rem; overflow: auto; font-size: .78rem; }
.agent-key-card .quiet, .agent-key-card .meta { margin: .35rem 0; font-size: .8rem; }
.security-card { max-width: 650px; }
.security-card h3 { margin-top: 0; }

.dashboard-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; margin-bottom: 2rem; }
.dashboard-header .eyebrow { margin-bottom: .75rem; }
.dashboard-header h1 { font-size: clamp(2.35rem, 5vw, 3.6rem); }
.dashboard-header .lede { margin-bottom: 0; }
.dashboard-header .actions { flex-shrink: 0; }
.dashboard-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-bottom: 2.5rem; }
.dashboard-stat { display: flex; flex-direction: column; gap: .25rem; padding: 1.2rem 1.3rem; border: 1px solid var(--line); background: var(--surface); color: var(--text); text-decoration: none; transition: border-color .15s, transform .15s; }
.dashboard-stat:hover { border-color: var(--accent); transform: translateY(-2px); }
.dashboard-stat strong { font: 500 1.9rem/1 var(--serif); }
.dashboard-stat span { color: var(--muted); font: .72rem/1.4 var(--mono); }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 330px); gap: 2rem; align-items: start; }
.dashboard-feed { min-width: 0; }
.dashboard-feed > section + section { margin-top: 3rem; }
.dashboard-section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1rem; }
.dashboard-section-head .eyebrow { margin: 0 0 .5rem; }
.dashboard-section-head h2 { margin: 0; }
.dashboard-section-head > a { flex-shrink: 0; font: .72rem var(--mono); }
.dashboard-sidebar { position: sticky; top: 1.5rem; min-width: 0; }
.dashboard-sidebar > .card:first-child { margin-top: 0; }
.dashboard-profile-card { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 1rem; align-items: center; }
.dashboard-profile-card img, .dashboard-avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.dashboard-avatar { display: grid; place-items: center; border: 1px solid var(--line); background: transparent; color: var(--muted); font: 1.4rem var(--serif); }
.dashboard-profile-card .eyebrow { margin: 0 0 .35rem; }
.dashboard-profile-card h2 { margin: 0; font-size: 1.25rem; overflow-wrap: anywhere; }
.dashboard-profile-card .username { margin: .2rem 0 0; font-size: .8rem; }
.dashboard-profile-card > a { grid-column: 1 / -1; }
.dashboard-actions-card h2, .dashboard-pending h2, .dashboard-search h2 { font-size: 1.2rem; }
.dashboard-actions-card > a { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; }
.dashboard-actions-card > a:last-child { padding-bottom: 0; border-bottom: 0; }
.dashboard-actions-card > a:hover { color: var(--accent); }
.dashboard-pending > a { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .6rem; padding: .65rem 0; text-decoration: none; }
.dashboard-pending code { overflow: hidden; color: var(--text); font: .7rem var(--mono); text-overflow: ellipsis; white-space: nowrap; }
.dashboard-search label { margin-top: 0; }
.dashboard-search button { width: 100%; }
.dashboard-own-attestation { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: .45rem .8rem; padding: .8rem; }
.dashboard-own-attestation .text { grid-column: 1; max-height: 110px; margin: 0; padding: .5rem; background: var(--soft); }
.dashboard-own-attestation > .attestation-meta { grid-column: 1; margin: 0; }

@media (max-width: 800px) {
  header nav { padding: 1rem; gap: 1rem; flex-wrap: wrap; }
  .navlinks { gap: .9rem; flex-wrap: wrap; }
  main { padding: 2rem 1.15rem 3rem; }
  .hero { grid-template-columns: 1fr; gap: 2rem; padding-top: .5rem; }
  .hero h1 { font-size: 3.5rem; }
  .intro-grid { grid-template-columns: 1fr; gap: 1rem; }
  .intro-grid article { padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
  .people, .follow-columns { grid-template-columns: 1fr; }
  .account-head { align-items: flex-start; flex-direction: column; }
  .account-head h1 { font-size: 2.4rem; }
  .profile-head { gap: 1rem; }
  .profile-overview { grid-template-columns: 1fr; gap: 1rem; padding: 1.1rem; }
  .external-entries { padding: 1rem 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .profile-head .profile-image { flex-basis: 110px; width: 110px; height: 110px; }
  .entry { gap: .7rem; }
  .entry .tag { margin-left: 0; }
  footer { margin: 0 1rem; flex-wrap: wrap; }
  footer > span { width: 100%; margin: 0; }
  .card { padding: 1.1rem; }
  .profile-editor-grid { grid-template-columns: 1fr; gap: 1rem; }
  .profile-preview { position: static; }
  .profile-editor-forms .editor-card { padding: 1.2rem; }
  .entry-edit-form { grid-template-columns: 1fr; }
  .entry-editor .cardtop { justify-content: flex-start; }
  .attestation-editor { grid-template-columns: 1fr; }
  .attestation-editor-controls { padding-top: 1rem; padding-left: 0; border-top: 1px solid var(--line); border-left: 0; }
  .follow-editor { grid-template-columns: minmax(0, 1fr) auto; }
  .follow-editor-actions { grid-column: 1 / -1; }
  .key-editor .cardtop { justify-content: flex-start; }
  .key-editor { grid-template-columns: 1fr; }
  .key-editor .cardtop strong { width: auto; }
  .key-editor .key-material { justify-self: start; }
  .profile-key-card { grid-template-columns: 1fr; }
  .profile-key-head .key-download { width: 100%; margin-left: 0; }
  .profile-key-card .key-material { justify-self: start; }
  .attestation-type-options, .timelock-fields { grid-template-columns: 1fr; }
  .dashboard-header { align-items: flex-start; flex-direction: column; gap: 1rem; }
  .dashboard-header .actions { margin: 0; }
  .dashboard-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .dashboard-sidebar { position: static; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2.9rem; }
  .wordmark { font-size: 1.25rem; }
  .mark { width: 31px; height: 31px; }
  .navlinks { width: 100%; }
  .profile-head { flex-direction: column; }
  .dashboard-stats { grid-template-columns: 1fr 1fr; gap: .65rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; transform: none !important; }
}
