/* Presence rail — "Active recently" (KUX-3109a, spec 76 §Decision).
   Its own file, tokens only: it is a feature surface, not shell chrome.
   Built at 375px first; the rail itself is the reader panel's sheet there. */

.kk-pr-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.kk-pr-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.kk-pr-who { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.kk-pr-who b { font-size: var(--kk-fs-meta); font-weight: 600; color: var(--kk-ink); display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.kk-pr-who b span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kk-pr-who > span { font-size: var(--kk-fs-micro); color: var(--kk-text-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* A self-chosen name is a label, never the identity (ADR 0014). */
.kk-pr-nick { font-weight: 400; color: var(--kk-text-soft); }

/* The surface a write arrived by. CLI and MCP hold no connection between
   calls, so the rail states the surface and the age — never "online". */
.kk-pr-via { flex: none; width: 34px; text-align: center; font-family: var(--kk-font-mono); font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 3px 0; border-radius: var(--kk-r-xs); border: 1px solid var(--kk-line); color: var(--kk-text-soft); }
.kk-pr-via-mcp { border-color: var(--kk-pr-mcp); color: var(--kk-pr-mcp); }
.kk-pr-via-cli { border-color: var(--kk-pr-cli); color: var(--kk-pr-cli); }
.kk-pr-age { flex: none; font-family: var(--kk-font-mono); font-size: 10.5px; color: var(--kk-text-soft); }
.kk-pr-note, .kk-pr-empty { margin: var(--kk-s-3) 0 0; font-size: var(--kk-fs-micro); line-height: 1.45; color: var(--kk-text-soft); }
.kk-pr-empty { margin: 0; }
.kk-pr-more { margin: var(--kk-s-2) 0 0; font-size: var(--kk-fs-micro); color: var(--kk-text-soft); }

:root { --kk-pr-mcp: #8a6fb0; --kk-pr-cli: #4f7a9b; }
:root:not([data-theme="light"]) { }
[data-theme="dark"] { --kk-pr-mcp: #b49ad6; --kk-pr-cli: #7fa9c7; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --kk-pr-mcp: #b49ad6; --kk-pr-cli: #7fa9c7; } }

/* Disclosure (presence.md §Settled shape · Disclosure). Every reader sees it,
   member or not, because non-members never see the rail it describes. At phone
   width the sentence folds into an eye in the action bar that opens it. */
.kk-presence-notice { display: flex; align-items: center; gap: 6px; margin: 0 0 var(--kk-s-3); color: var(--kk-text-soft); font-size: var(--kk-fs-micro); }
.kk-presence-notice svg { flex: none; }
.kk-pn-eye { display: none; align-items: center; justify-content: center; padding: 2px; border: 0; background: none; color: var(--kk-text-soft); cursor: pointer; }
.kk-pn-pop { position: fixed; inset: auto 16px auto 16px; top: 64px; margin: 0; border: 1px solid var(--kk-line); border-radius: var(--kk-r-md); background: var(--kk-card); color: var(--kk-text); padding: 10px 12px; font-size: var(--kk-fs-micro); max-width: min(22rem, calc(100vw - 32px)); box-shadow: var(--kk-shadow-md, 0 6px 24px rgba(0,0,0,.14)); }

@media (max-width: 600px) {
  .kk-presence-notice .kk-pn-text, .kk-presence-notice > svg { display: none; }
  .kk-pn-eye { display: inline-flex; }
}
