/* app.css — "The Ledger". All values derive from tokens.css. */
* { box-sizing: border-box; }
:root { color-scheme: light; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--signal); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); }
.error { color: var(--danger); padding: var(--s4); font-family: var(--font-mono); font-size: var(--fs-sm); }
::selection { background: var(--signal); color: #fff; }

/* eyebrow — the registry's structural label */
.eyebrow {
  font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--faint);
}

/* buttons */
.btn {
  font-family: var(--font-mono); font-size: var(--fs-sm); line-height: 1;
  display: inline-flex; align-items: center; gap: var(--s2);
  padding: var(--s2) var(--s3); border: 1px solid var(--line-strong);
  background: var(--panel); color: var(--ink); border-radius: var(--radius);
  cursor: pointer; text-decoration: none;
}
.btn:hover { background: var(--panel-2); text-decoration: none; }
.btn-primary { background: var(--signal); border-color: var(--signal); color: #fff; }
.btn-primary:hover { background: var(--ink); border-color: var(--ink); }
.btn-danger { color: var(--danger); }
.btn-danger:hover { background: var(--danger); border-color: var(--danger); color: #fff; }

input, textarea {
  font-family: var(--font-body); font-size: var(--fs-body); color: var(--ink);
  background: var(--paper); border: 1px solid var(--line-strong);
  border-radius: var(--radius); padding: var(--s2) var(--s3); width: 100%;
}
input:focus, textarea:focus { outline: none; border-color: var(--signal); }
textarea { resize: vertical; font-family: var(--font-mono); font-size: var(--fs-sm); line-height: 1.55; }

/* provenance marker — HUMAN (●, signal) vs AGENT (◆, orange) */
.prov { font-family: var(--font-mono); font-size: var(--fs-sm); white-space: nowrap; }
.prov::before {
  content: "\25CF"; margin-right: 6px; font-size: .7em; vertical-align: 1px; color: var(--signal);
}
.prov.agent { color: var(--agent); }
.prov.agent::before { content: "\25C6"; color: var(--agent); }

/* authorship dot — the compact mark of the same vocabulary as .prov:
   ● filled ultramarine = human, ◆ burnt-orange diamond = agent. Reused in the
   register's Authors column and the head tally. */
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%;
  background: var(--signal); flex: none; }
.dot.agent { background: var(--agent); border-radius: 1px; transform: rotate(45deg); }

/* type tag — a quiet ledger value by default (a category, not a control) */
.tag {
  font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted); white-space: nowrap;
}
.reg-row .tag, .page-head .tag { display: inline-block; }
/* on the document head the type leads the meta line — give it a tick of weight */
.page-head .tag { color: var(--ink); font-weight: 600;
  padding-left: 10px; position: relative; }
.page-head .tag::before { content: ""; position: absolute; left: 0; top: 50%;
  transform: translateY(-50%); width: 3px; height: 3px; background: var(--ink); }

/* ---- layout ---- */
.layout { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 100vh; }
.layout.has-meta { grid-template-columns: var(--sidebar-w) 1fr var(--meta-w); }
.layout.sidebar-collapsed { grid-template-columns: var(--rail-w) 1fr; }
.layout.has-meta.sidebar-collapsed { grid-template-columns: var(--rail-w) 1fr var(--meta-w); }
.layout.has-meta.meta-collapsed { grid-template-columns: var(--sidebar-w) 1fr var(--rail-w); }
.layout.has-meta.sidebar-collapsed.meta-collapsed { grid-template-columns: var(--rail-w) 1fr var(--rail-w); }
.sidebar {
  border-right: 1px solid var(--line); background: var(--grey);
  padding: var(--s5) var(--s4); display: flex; flex-direction: column; gap: var(--s5);
  position: sticky; top: 0; height: 100vh; overflow: hidden;
}
.sidebar .search input { background: var(--paper); }
.side-actions .btn, .sidebar .btn { background: var(--paper); }
.sidebar .btn:hover { background: var(--grey-2); }
.nav-item:hover { background: var(--grey-2); }
.nav-item.active { background: var(--grey-2); }

/* collapse rails — thin vertical strip with a re-open button + rotated label */
.pane-toggle {
  position: absolute; top: var(--s4); z-index: 2;
  width: 24px; height: 24px; padding: 0; line-height: 1;
  border: 1px solid var(--line-strong); background: var(--paper); color: var(--muted);
  border-radius: var(--radius); cursor: pointer; font-family: var(--font-mono); font-size: var(--fs-sm);
}
.pane-toggle:hover { background: var(--panel-2); color: var(--ink); }
.sidebar { position: sticky; }
.sidebar .pane-toggle { right: var(--s3); }
.meta-pane .pane-toggle { right: var(--s3); }
.meta-pane .meta-sec:first-child .eyebrow { padding-right: 30px; }

.rail {
  border-right: 1px solid var(--line); background: var(--grey);
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; align-items: center; gap: var(--s4); padding-top: var(--s4);
}
.rail.rail-right { border-right: 0; border-left: 1px solid var(--line); }
.rail-open {
  width: 26px; height: 26px; padding: 0; border: 1px solid var(--line-strong);
  background: var(--paper); color: var(--muted); border-radius: var(--radius); cursor: pointer;
  font-family: var(--font-mono); font-size: var(--fs-sm);
}
.rail-open:hover { background: var(--panel-2); color: var(--ink); }
.rail-label {
  writing-mode: vertical-rl; font-family: var(--font-mono); font-size: var(--fs-xs);
  letter-spacing: .14em; text-transform: uppercase; color: var(--faint); user-select: none;
}
.layout.sidebar-collapsed .sidebar,
.layout.meta-collapsed .meta-pane { display: none; }
.layout:not(.sidebar-collapsed) .rail-left,
.layout:not(.meta-collapsed) .rail-right { display: none; }

/* ---- meta pane (right) ---- */
.meta-pane {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  border-left: 1px solid var(--line); background: var(--grey);
  padding: var(--s5) var(--s4);
}
.meta-body { display: flex; flex-direction: column; gap: var(--s6); }
.meta-sec .eyebrow { display: block; margin-bottom: var(--s4); }
.meta-meta { display: grid; grid-template-columns: auto 1fr; gap: var(--s2) var(--s3);
  font-size: var(--fs-sm); margin: 0; }
.meta-meta dt { font-family: var(--font-mono); font-size: var(--fs-xs); text-transform: uppercase;
  letter-spacing: .08em; color: var(--faint); align-self: center; }
.meta-meta dd { margin: 0; color: var(--ink); overflow: hidden; text-overflow: ellipsis; }
.toc { display: flex; flex-direction: column; gap: 1px; }
.toc a { display: block; padding: 2px 0 2px var(--s2); color: var(--muted); font-size: var(--fs-sm);
  border-left: 2px solid transparent; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toc a:hover { color: var(--ink); text-decoration: none; border-left-color: var(--line-strong); }
.toc a.lvl-2 { padding-left: var(--s4); }
.toc a.lvl-3 { padding-left: var(--s5); font-size: var(--fs-xs); }
.meta-link { display: flex; gap: var(--s2); align-items: baseline; padding: var(--s1) 0;
  font-size: var(--fs-sm); overflow: hidden; }
.meta-link .id { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--faint); }
.meta-empty { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--faint); }
.brand { line-height: 1.05; }
.brand a { color: var(--ink); font-family: var(--font-display); font-weight: 700;
  font-size: 1.24rem; letter-spacing: var(--track-display); }
.brand a:hover { text-decoration: none; color: var(--signal-ink); }
.brand .eyebrow { display: block; margin-top: 5px; }
.side-actions .btn { width: 100%; justify-content: center; }
.search input { font-family: var(--font-mono); font-size: var(--fs-sm); background: var(--paper); }

.nav { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 1px; }
.nav-group { margin: var(--s4) 0 var(--s2); }
.nav-item {
  display: block; padding: 3px var(--s2); color: var(--ink); border-left: 2px solid transparent;
  font-size: var(--fs-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.nav-item:hover { background: var(--panel-2); text-decoration: none; }
.nav-item.active { border-left-color: var(--signal); font-weight: 600; background: var(--panel-2); }
.nav-item .id { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--faint);
  display: block; }
.side-identity { margin-top: var(--s3); padding-top: var(--s3); border-top: 1px solid var(--line); }
.side-user { display: flex; align-items: center; gap: var(--s2); width: 100%; padding: var(--s1) var(--s2);
  background: none; border: 0; cursor: pointer; text-align: left; color: var(--ink); }
.side-user:hover { background: var(--panel-2); }
.side-user-name { font-size: var(--fs-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-user-badge { font-family: var(--font-mono); font-size: var(--fs-xs); text-transform: uppercase;
  letter-spacing: .06em; color: var(--agent); border: 1px solid var(--agent); border-radius: 3px;
  padding: 0 4px; }
.side-footer { display: flex; gap: var(--s2); margin-top: var(--s2);
  font-family: var(--font-mono); font-size: var(--fs-sm); }
.side-btn { flex: 1; justify-content: center; }

/* ---- profile pane (floating overlay) ---- */
.overlay { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center;
  padding: var(--s4); background: rgba(20, 20, 20, .38); }
.pane { width: 480px; max-width: 100%; max-height: 90vh; overflow-y: auto;
  background: var(--panel); border: 1px solid var(--line-strong); border-top: 2px solid var(--signal);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: var(--s6); }
.pane-loading { padding: var(--s5); text-align: center; }
.pane-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s3);
  margin-bottom: var(--s5); }
.pane-head h2 { font-family: var(--font-display); font-weight: 600; letter-spacing: -.02em;
  font-size: var(--fs-1); margin: var(--s1) 0 0; }
.pane-close { background: none; border: 0; cursor: pointer; color: var(--muted); font-size: 1.5rem;
  line-height: 1; padding: 0 var(--s1); }
.pane-close:hover { color: var(--ink); }
.pane-meta { display: grid; grid-template-columns: auto 1fr; gap: var(--s2) var(--s4); margin: 0 0 var(--s5);
  font-size: var(--fs-sm); }
.pane-meta dt { font-family: var(--font-mono); font-size: var(--fs-xs); text-transform: uppercase;
  letter-spacing: .08em; color: var(--faint); align-self: center; }
.pane-meta dd { margin: 0; color: var(--ink); }
.pane-sec { padding-top: var(--s4); margin-top: var(--s4); border-top: 1px solid var(--line); }
.pane-sec .eyebrow { display: block; margin-bottom: var(--s2); }
.pane-sec p { margin: 0 0 var(--s3); font-size: var(--fs-sm); }
.pane-form { display: flex; flex-direction: column; gap: var(--s2); }
.pane-form button { align-self: flex-start; margin-top: var(--s1); }
.key-row { display: flex; gap: var(--s2); margin-bottom: var(--s3); }
.key-row input { flex: 1; font-size: var(--fs-sm); }
.cmd-row { display: flex; gap: var(--s2); align-items: stretch; }
.cmd { flex: 1; font-family: var(--font-mono); font-size: var(--fs-xs); line-height: 1.5;
  background: var(--paper); border: 1px solid var(--line); border-left: 2px solid var(--signal);
  border-radius: var(--radius); padding: var(--s2) var(--s3); overflow-x: auto; white-space: pre-wrap;
  word-break: break-all; }

.content { padding: var(--s7) var(--s6); }

/* ---- page head ---- */
.page-head { margin-bottom: var(--s5); }
.page-head h1 { font-family: var(--font-display); font-weight: 600; letter-spacing: -.02em;
  font-size: var(--fs-1); margin: var(--s2) 0 var(--s3); line-height: 1.15; }
.page-head .meta { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center;
  margin-bottom: var(--s3); font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--muted); }
.page-head .meta-when { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.page-head .actions { display: flex; gap: var(--s2); }
.actions { display: flex; gap: var(--s2); }
/* details pane: author + relative-age annotations on dates */
.meta-meta dd .by { color: var(--muted); }
.meta-meta dd .rel { font-size: var(--fs-xs); }

/* ---- register index (home) ---- */
.registry-head { display: flex; align-items: flex-end; justify-content: space-between;
  gap: var(--s4); margin-bottom: var(--s5); flex-wrap: wrap; }
.registry-head h1 { font-family: var(--font-display); font-weight: 600;
  letter-spacing: var(--track-display); font-size: var(--fs-hero); margin: var(--s2) 0 0; }
/* head tally — the register's authorship at a glance */
.reg-tally { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s3) var(--s4);
  padding-bottom: 4px; }
.reg-count { color: var(--muted); font-size: var(--fs-sm); }
.reg-tally-mark { display: inline-flex; align-items: center; gap: 7px; font-size: var(--fs-sm); }
.reg-tally-mark .mono { color: var(--ink); font-weight: 600; }
.reg-tally-label { font-family: var(--font-mono); font-size: var(--fs-2xs); text-transform: uppercase;
  letter-spacing: .1em; color: var(--faint); }

/* the register: a ruled ledger. Columns — Record · Type · Authors · Last edit */
.registry { border-top: 2px solid var(--ink); }
.reg-row {
  display: grid; grid-template-columns: minmax(0, 1fr) 132px 62px 150px; gap: var(--s4);
  align-items: center; padding: var(--s3) var(--s3) var(--s3) 0;
  border-bottom: 1px solid var(--grid); cursor: pointer; position: relative;
}
.reg-row::before {  /* ledger tick: a hairline that fills ultramarine on hover */
  content: ""; position: absolute; left: 0; top: 0; bottom: -1px; width: 2px;
  background: transparent;
}
.reg-row:hover { background: var(--panel); }
.reg-row:hover::before { background: var(--signal); }
.reg-title { font-weight: 500; min-width: 0; }
.reg-title a { color: var(--ink); }
.reg-title a:hover { color: var(--signal-ink); }
.reg-title .id { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--faint);
  display: block; margin-top: 1px; }
.reg-authors { display: flex; align-items: center; gap: 6px; }
.reg-rev { font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--muted); }
.reg-edit { display: flex; flex-direction: column; gap: 2px; }
.reg-edit-line { display: flex; align-items: baseline; gap: var(--s2); }
.reg-when { font-size: var(--fs-xs); }
.reg-col-head { display: grid; grid-template-columns: minmax(0, 1fr) 132px 62px 150px; gap: var(--s4);
  padding: 0 var(--s3) var(--s2) 0; }
.reg-empty { font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--muted); }

/* ---- document: the APPEND RAIL (signature) + body ----
   The rail is the identity of the whole app: a vertical, monospaced ledger of
   every revision, each tick colored by its author (human ● / agent ◆) and joined
   by a hairline that reads as a timeline the record was written down. */
.doc { display: grid; grid-template-columns: var(--spine-w) minmax(0, var(--content-max)); gap: var(--s5); }
.spine { position: relative; padding-top: 2px; }
.spine::before {  /* the connecting hairline — the ledger's spine */
  content: ""; position: absolute; left: 5px; top: 15px; bottom: 15px; width: 2px;
  background: var(--line-strong); transform-origin: top; }
.spine-item { position: relative; display: flex; align-items: center; gap: var(--s2);
  padding: 6px 0 6px 20px; color: var(--muted); font-family: var(--font-mono);
  font-size: var(--fs-xs); letter-spacing: .02em; }
.spine-item:hover { text-decoration: none; color: var(--ink); }
.spine-item::before {                     /* the marker tick */
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 12px; height: 12px; border-radius: 50%; background: var(--paper);
  border: 2px solid var(--signal); box-sizing: border-box; }
.spine-item.agent::before { border-color: var(--agent); border-radius: 1px;
  transform: translateY(-50%) rotate(45deg); } /* diamond = agent, matches ◆ */
.spine-item.is-current::before { background: var(--signal); box-shadow: 0 0 0 3px var(--signal-soft); }
.spine-item.is-current.agent::before { background: var(--agent); box-shadow: 0 0 0 3px var(--agent-soft); }
.spine-item.is-current { color: var(--ink); font-weight: 600; }

@media (prefers-reduced-motion: no-preference) {
  .spine::before { animation: rail-draw .5s ease-out both; }
  .spine-item { animation: tick-in .32s ease-out both; }
  .spine-item:nth-child(1) { animation-delay: .04s; }
  .spine-item:nth-child(2) { animation-delay: .09s; }
  .spine-item:nth-child(3) { animation-delay: .14s; }
  .spine-item:nth-child(n+4) { animation-delay: .19s; }
  @keyframes rail-draw { from { transform: scaleY(0); } }
  @keyframes tick-in { from { opacity: 0; transform: translateX(-3px); } }
}

.rev-banner { margin-bottom: var(--s4); padding: var(--s2) var(--s3); border: 1px solid var(--agent);
  background: var(--agent-soft); border-radius: var(--radius); font-family: var(--font-mono);
  font-size: var(--fs-sm); display: flex; justify-content: space-between; align-items: center; }

/* ---- markdown ---- */
.markdown { max-width: var(--content-max); }
.markdown > :first-child { margin-top: 0; }
.markdown h1, .markdown h2, .markdown h3 { font-family: var(--font-display); font-weight: 600;
  letter-spacing: -.01em; line-height: 1.25; margin: var(--s5) 0 var(--s3); }
.markdown h1 { font-size: var(--fs-1); }
.markdown h2 { font-size: var(--fs-2); }
.markdown h3 { font-size: var(--fs-3); }
.markdown p, .markdown ul, .markdown ol { margin: 0 0 var(--s4); }
.markdown code { font-family: var(--font-mono); font-size: .86em; background: var(--panel-2);
  padding: 1px 5px; border-radius: var(--radius); }
.markdown pre { background: var(--panel); border: 1px solid var(--line); border-left: 2px solid var(--signal);
  padding: var(--s4); overflow-x: auto; border-radius: var(--radius); }
.markdown pre code { background: none; padding: 0; }
.markdown blockquote { border-left: 2px solid var(--line-strong); margin: 0 0 var(--s4);
  padding-left: var(--s4); color: var(--muted); }
.markdown table { border-collapse: collapse; width: 100%; margin-bottom: var(--s4); }
.markdown th, .markdown td { border: 1px solid var(--line); padding: var(--s2) var(--s3); text-align: left; }
.markdown th { font-family: var(--font-mono); font-size: var(--fs-xs); text-transform: uppercase;
  letter-spacing: .06em; color: var(--muted); }

/* ---- standalone /file/ links ---- */
.embed-link { font-family: var(--font-mono); font-size: var(--fs-sm); display: inline-block;
  padding: var(--s1) var(--s3); border: 1px dashed var(--line-strong); border-radius: var(--radius); }

/* ---- backlinks: "referenced by" ledger ---- */
.backlinks { margin-top: var(--s6); padding-top: var(--s4); border-top: 1px solid var(--line-strong); }
.backlinks .eyebrow { display: block; margin-bottom: var(--s3); }
.backlink { display: flex; gap: var(--s2); align-items: baseline; padding: var(--s2) 0;
  border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: var(--fs-sm); }
.backlink .id { color: var(--faint); }

/* ---- editor ---- */
.editor { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5); align-items: start; }
.editor-form { display: flex; flex-direction: column; gap: var(--s3); }
.field-row { display: grid; grid-template-columns: 1fr 160px; gap: var(--s3); }
.editor-form textarea { min-height: 60vh; }
.editor-preview { position: sticky; top: var(--s5); }
.editor-preview .eyebrow { display: block; margin-bottom: var(--s2); }
.preview { border: 1px solid var(--line); border-left: 2px solid var(--signal); border-radius: var(--radius);
  padding: var(--s4); min-height: 300px; background: var(--panel); }

/* ---- login ---- */
.login-wrap { display: grid; place-items: center; min-height: 100vh; padding: var(--s4);
  background: var(--paper); }
.login { width: 320px; padding: var(--s6); background: var(--panel);
  border: 1px solid var(--line-strong); border-top: 2px solid var(--signal); border-radius: var(--radius);
  box-shadow: var(--shadow); display: flex; flex-direction: column; gap: var(--s3); }
.login .brand { margin-bottom: var(--s2); }
.login .brand a { font-size: 1.6rem; }
.login button { margin-top: var(--s1); }

/* ---- toast ---- */
.toast { position: fixed; bottom: var(--s5); left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: var(--fs-sm); background: var(--ink); color: var(--paper);
  padding: var(--s2) var(--s4); border-radius: var(--radius); box-shadow: var(--shadow); z-index: 50; }
.toast-error { background: var(--danger); color: #fff; }

@media (prefers-reduced-motion: no-preference) {
  .toast { animation: rise .18s ease-out; }
  @keyframes rise { from { opacity: 0; transform: translate(-50%, 6px); } }
}

@media (max-width: 1100px) {
  .layout.has-meta, .layout.has-meta.sidebar-collapsed,
  .layout.has-meta.meta-collapsed, .layout.has-meta.sidebar-collapsed.meta-collapsed {
    grid-template-columns: var(--sidebar-w) 1fr;
  }
  .layout.has-meta.sidebar-collapsed, .layout.has-meta.sidebar-collapsed.meta-collapsed {
    grid-template-columns: var(--rail-w) 1fr;
  }
  .meta-pane, .rail-right { display: none !important; }
}
@media (max-width: 860px) {
  .layout, .layout.has-meta, .layout.sidebar-collapsed { grid-template-columns: 1fr; }
  .sidebar, .meta-pane { position: static; height: auto; }
  .rail { display: none !important; }
  .layout.sidebar-collapsed .sidebar { display: flex; }
  .content { padding: var(--s5) var(--s4); }
  .doc { grid-template-columns: 1fr; }
  .spine { display: flex; gap: var(--s3); flex-wrap: wrap; padding: 0 0 var(--s4); }
  .spine::before { display: none; }
  .editor { grid-template-columns: 1fr; }
  .editor-preview { position: static; }
  /* narrow: keep Record + Authors (the identity), drop Type + Last edit */
  .reg-row, .reg-col-head { grid-template-columns: minmax(0, 1fr) 62px; }
  .reg-row > :nth-child(2), .reg-col-head > :nth-child(2),
  .reg-row > :nth-child(4), .reg-col-head > :nth-child(4) { display: none; }
  .registry-head { align-items: flex-start; }
}

/* private files: edit-restricted to the author — a status chip, so it keeps a border */
.tag-private { color: var(--agent); border: 1px solid var(--agent); border-radius: var(--radius);
  padding: 1px 6px; }
.page-head .tag-private { padding-left: 6px; font-weight: 500; }
.page-head .tag-private::before { display: none; }
.private-toggle { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--muted); cursor: pointer; }
.private-toggle input { width: auto; margin: 0; }
