/* Fonts are self-hosted (no third-party requests). SIL Open Font License, see /fonts. */
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/space-grotesk-latin-ext-700-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/space-grotesk-latin-700-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/jetbrains-mono-latin-ext-500-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/jetbrains-mono-latin-500-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #0d0e11;
  --bg-2: #121317;
  --surface: #16181d;
  --surface-2: #1e2128;
  --line: #2a2e37;
  --text: #f2f3f5;
  --text-2: #b4b9c3;
  --muted: #9ba1ad;
  --faint: #7d8390;
  --accent: #c8f135;
  --accent-ink: #0d0e11;
  --danger: #ff8a7a;
  --radius: 16px;
  --display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
a { color: inherit; }
p { margin: 0; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { opacity: 0.45; cursor: not-allowed; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
input::placeholder, textarea::placeholder { color: var(--faint); }
[hidden] { display: none !important; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--mono); }
.accent { color: var(--accent); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }

/* ---------- layout ---------- */

.app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.view { flex: 1; display: flex; flex-direction: column; }
.screen {
  padding: max(24px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom));
  gap: 0;
}
.screen.centered { align-items: center; justify-content: center; text-align: center; }
.push { margin-top: auto; display: flex; flex-direction: column; gap: 12px; padding-top: 24px; }

.topbar { display: flex; align-items: center; justify-content: space-between; }
.wordmark { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; text-decoration: none; }
.pill { font-size: 11px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; }

.hero {
  margin: 48px 0 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(36px, 11vw, 46px);
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.title { margin: 16px 0 0; font-family: var(--display); font-weight: 700; font-size: 32px; line-height: 1.1; letter-spacing: -0.03em; }
.lead { margin-top: 12px; color: var(--text-2); font-size: 16px; }
.lead.narrow { max-width: 300px; }
.eyebrow { margin-top: 24px; font-size: 12px; color: var(--muted); letter-spacing: 0.04em; }
.label { display: block; font-size: 13px; font-weight: 500; color: var(--muted); }
.note { margin-top: 20px; background: var(--surface); border-radius: 12px; padding: 14px 16px; color: var(--text-2); font-size: 14px; }
.form-error { margin-top: 10px; color: var(--danger); font-size: 14px; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
}
.btn-lg { min-height: 56px; border-radius: var(--radius); font-size: 17px; }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-secondary { background: var(--surface-2); border-color: var(--line); color: var(--text); }
.btn-ghost { background: none; border-color: var(--line); color: var(--text); font-weight: 500; }
.btn-ghost:hover, .btn-secondary:hover { background: #252932; }

.icon-btn {
  flex: none;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 12px;
  background: none;
  color: var(--text);
  text-decoration: none;
}
.icon-btn.back { margin-left: -10px; align-self: flex-start; }
.icon-btn.square { width: 52px; height: 52px; background: var(--surface-2); border: 1px solid var(--line); }

/* ---------- landing ---------- */

#btn-start { margin-top: 32px; width: 100%; }
.turnstile { display: flex; justify-content: center; margin-top: 12px; }
.turnstile:empty { margin: 0; }
.steps { list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; }
.steps li div { display: flex; flex-direction: column; }
.steps li span:not(.step-n) { color: var(--muted); font-size: 14px; }
.step-n {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--accent);
}
.foot { margin-top: auto; padding-top: 32px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.with-icon { display: flex; align-items: center; gap: 8px; }

/* ---------- created ---------- */

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.linkcard { margin: 28px 0 12px; display: flex; flex-direction: column; gap: 14px; }
.link-text { font-size: 15px; word-break: break-all; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }

/* ---------- join ---------- */

.grow-form { flex: 1; display: flex; flex-direction: column; margin-top: 28px; }
.row { display: flex; gap: 10px; margin-top: 8px; }
.input {
  width: 100%;
  min-width: 0;
  height: 52px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 0 16px;
  font-size: 16px; /* 16px stops iOS from zooming on focus */
}
.input.round { height: 48px; border-radius: 24px; padding: 0 18px; }
.textarea { height: auto; padding: 12px 16px; resize: vertical; margin-top: 8px; }
.input:focus { border-color: var(--muted); outline: none; }

/* ---------- chat ---------- */

.chat { height: 100vh; height: 100dvh; min-height: 0; }
.chat-head {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: max(10px, env(safe-area-inset-top)) 8px 10px 6px;
  border-bottom: 1px solid var(--surface-2);
}
.avatar {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--accent);
}
.who { flex: 1; min-width: 0; }
.peer-name { font-size: 15px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.peer-sub { font-size: 12px; color: var(--muted); }
.btn-pill {
  flex: none;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: none;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}
.enc-bar {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px;
  font-size: 12px;
  color: var(--muted);
  background: var(--bg-2);
}
.me-name { color: var(--text); }
.conn-bar { flex: none; padding: 6px; text-align: center; font-size: 12px; background: #3a2f12; color: #ffd98a; }
.banner {
  flex: none;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 14px 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--accent);
  font-size: 14px;
}
.banner > :first-child { flex: 1; min-width: 0; }
.banner .mono { font-size: 15px; word-break: break-all; }

.scroller {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column-reverse; /* keeps the newest message in view */
  padding: 8px 14px 12px;
  overscroll-behavior: contain;
}
.waiting { margin-top: 12px; display: flex; flex-direction: column; gap: 12px; color: var(--text-2); font-size: 14px; }
.msg-list { list-style: none; margin: 0; padding: 0; }
.msg { display: flex; flex-direction: column; padding-top: 8px; }
.msg.mine { align-items: flex-end; }
.msg.theirs { align-items: flex-start; }
.msg.system { align-items: center; padding-top: 12px; }
.bubble { max-width: 80%; padding: 9px 13px; overflow-wrap: anywhere; white-space: pre-wrap; }
.mine .bubble { background: var(--accent); color: var(--accent-ink); border-radius: 18px 18px 4px 18px; }
.theirs .bubble { background: var(--surface-2); border-radius: 18px 18px 18px 4px; }
.system .bubble {
  max-width: 88%;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  background: var(--surface);
  border-radius: 999px;
  padding: 6px 12px;
}
.bubble .time { font-size: 11px; margin-top: 2px; color: var(--muted); }
.mine .bubble .time { text-align: right; color: #3b4313; }
.bubble.typing { color: var(--muted); font-size: 13px; }
.bubble.undecryptable { font-style: italic; opacity: 0.7; }
.warn { max-width: 80%; margin-top: 4px; font-size: 12px; color: #ffd98a; }

.composer {
  flex: none;
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 10px 14px max(14px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--surface-2);
}
.send {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 24px;
  border: 0;
  background: var(--accent);
  color: var(--accent-ink);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- full / error ---------- */

.big-icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: var(--surface-2);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.centered .btn { margin-top: 32px; }

/* ---------- terms ---------- */

.prose h3 { margin: 28px 0 6px; font-family: var(--display); font-size: 18px; }
.prose p { color: var(--text-2); }

/* ---------- sheets (dialogs) ---------- */

.sheet {
  width: 100%;
  max-width: 480px;
  margin: auto auto 0;
  padding: 0;
  border: 0;
  border-radius: 24px 24px 0 0;
  background: var(--surface);
  color: var(--text);
}
.sheet::backdrop { background: rgba(5, 6, 8, 0.72); }
.sheet-body { display: flex; flex-direction: column; padding: 12px 24px max(28px, env(safe-area-inset-bottom)); }
.sheet h3 { margin: 20px 0 8px; font-family: var(--display); font-size: 24px; letter-spacing: -0.02em; }
.sheet .label { margin-top: 18px; margin-bottom: 8px; }
.sheet .input { background: var(--bg); }
.grabber { align-self: center; width: 40px; height: 4px; border-radius: 2px; background: var(--line); }
.check {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border-radius: 12px;
  background: var(--bg);
  cursor: pointer;
}
.check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); }
.check > span { display: flex; flex-direction: column; font-size: 14px; }
.menu-item {
  min-height: 52px;
  margin-top: 8px;
  border: 0;
  border-radius: 12px;
  background: var(--bg);
  text-align: left;
  padding: 0 16px;
  font-size: 16px;
}
.menu-item:first-of-type { margin-top: 20px; }
.menu-item.danger { color: var(--danger); }
.sheet-body > .btn-ghost:last-child { margin-top: 16px; }

/* ---------- toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 96px;
  transform: translateX(-50%);
  max-width: calc(100% - 48px);
  background: var(--text);
  color: var(--bg);
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  z-index: 10;
}

/* ---------- admin ---------- */

.admin { max-width: 960px; margin: 0 auto; padding: 24px 16px 64px; }
.admin-login { margin-top: 40px; max-width: 480px; }
.admin-login .label { margin-top: 20px; }
.admin-section { margin-top: 36px; }
.admin-section h2 { margin: 0 0 12px; font-family: var(--display); font-size: 20px; letter-spacing: -0.01em; }
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.admin-head h2 { margin: 0; }
.admin-card { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin-bottom: 10px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.kpi-label { font-size: 13px; color: var(--muted); }
.kpi-value { margin-top: 4px; font-size: 24px; }
.kpi-sub { min-height: 1em; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th, .admin-table td { padding: 10px 12px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--surface-2); }
.admin-table th:first-child, .admin-table td:first-child { text-align: left; }
.admin-table th { color: var(--muted); font-weight: 500; background: var(--surface); }
.admin-table tbody tr:last-child td { border-bottom: 0; }
.excerpt { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
details summary { cursor: pointer; color: var(--muted); font-size: 14px; }

/* notify banner */
.banner.notify { border-color: var(--line); }
.banner.notify .banner-actions { display: flex; gap: 6px; flex: none; }

/* ---------- inbox ---------- */

.inbox-cta { margin-top: 10px; width: 100%; }
.link-btn { align-self: center; min-height: 44px; padding: 0 12px; border: 0; background: none; color: var(--muted); font-size: 14px; text-decoration: underline; }
.label.spaced { margin-top: 16px; margin-bottom: 8px; }
.grow-form > .label:first-child { margin-bottom: 8px; }
.handle-field {
  display: flex;
  align-items: center;
  height: 56px;
  margin-top: 8px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 0 16px;
  font-size: 16px;
}
.handle-field.ok { border-color: var(--accent); }
.handle-field.bad { border-color: var(--danger); }
.handle-field input { flex: 1; min-width: 0; height: 54px; border: 0; background: none; font-size: 16px; font-family: var(--mono); padding: 0; }
.handle-field input:focus { outline: none; }
.handle-field:focus-within { outline: 2px solid var(--text); outline-offset: 2px; }
.handle-msg { margin-top: 8px; min-height: 20px; }
.handle-msg.ok { color: var(--accent); }
.handle-msg.bad { color: var(--danger); }
.login-status { margin-top: 16px; }
.eyebrow.accent { color: var(--accent); }
.link-text.big { font-size: 20px; }

.inbox-head { flex: none; display: flex; align-items: center; gap: 10px; padding: max(16px, env(safe-area-inset-top)) 16px 12px; }
.inbox-title { margin: 0; font-family: var(--display); font-size: 26px; letter-spacing: -0.03em; }
.icon-btn.outlined { border: 1px solid var(--line); }
.pills { flex: none; display: flex; gap: 8px; padding: 0 16px 12px; }
.pill-btn { height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: none; font-size: 13px; font-weight: 600; }
.pill-btn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.convo-scroll { flex: 1; min-height: 0; overflow-y: auto; border-top: 1px solid var(--surface-2); }
.convo-list { list-style: none; margin: 0; padding: 0; }
.convo {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 0;
  border-bottom: 1px solid var(--surface-2);
  background: none;
  text-align: left;
}
.convo.unread { background: var(--bg-2); }
.convo .avatar { width: 44px; height: 44px; }
.convo-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.convo-top, .convo-bottom { display: flex; align-items: center; gap: 8px; }
.convo-name { flex: 1; min-width: 0; font-family: var(--mono); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.convo-time { flex: none; font-size: 12px; color: var(--muted); }
.convo-preview { flex: 1; min-width: 0; font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.convo.unread .convo-preview { color: var(--text); }
.badge { flex: none; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.convo-empty { padding: 40px 24px; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; color: var(--muted); }
.inbox-foot { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding: 8px 16px max(12px, env(safe-area-inset-bottom)); border-top: 1px solid var(--surface-2); color: var(--muted); }
.inbox-foot-actions { display: flex; gap: 4px; }
.inbox-foot .link-btn { padding: 0 8px; }

.profile { margin-top: 36px; display: flex; align-items: center; gap: 14px; }
.avatar-lg { width: 56px; height: 56px; border-radius: 18px; font-family: var(--display); font-weight: 700; font-size: 24px; }
.profile-name { font-size: 20px; }

/* prompt + share */
.prompt-card {
  flex: none;
  margin: 0 16px 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  text-align: left;
}
.prompt-label { grid-column: 1; }
.prompt-text { grid-column: 1; font-family: var(--display); font-weight: 700; font-size: 17px; overflow-wrap: anywhere; }
.prompt-edit { grid-column: 2; grid-row: 1 / span 2; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { min-height: 36px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); font-size: 13px; text-align: left; }
.chip:hover { border-color: var(--muted); }
.share-note { margin-top: 8px; }
.share-preview { width: 100%; height: auto; aspect-ratio: 1; margin: 8px 0 4px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); }
.share-hint { margin-top: 8px; }
.share-x { margin-top: 10px; }
#dlg-share .sheet-body { max-height: 92vh; overflow-y: auto; }
.msg .share-btn { margin-top: 2px; min-height: 32px; padding: 0 4px; border: 0; background: none; color: var(--muted); font-size: 12px; text-decoration: underline; }

/* avatars with photos */
.avatar { overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-btn { flex: none; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); padding: 0; font-family: var(--display); font-weight: 700; font-size: 20px; color: var(--accent); background: var(--surface-2); }
.avatar-xl { width: 128px; height: 128px; border-radius: 50%; align-self: center; margin: 16px 0 8px; font-family: var(--display); font-weight: 700; font-size: 52px; }
.profile .avatar-lg { border-radius: 50%; }
.sheet .file-btn { position: relative; overflow: hidden; }
.sheet .file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.stack { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.report-link { margin-top: 4px; font-size: 12px; }

/* seen */
.msg .seen { margin-top: 3px; font-size: 11px; color: var(--muted); }

/* message actions: reactions + reply */
.msg { position: relative; }
.bubble { cursor: pointer; }
.system .bubble { cursor: default; }
.msg-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-top: 6px;
  padding: 4px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}
.msg-actions button { min-width: 40px; height: 40px; border: 0; border-radius: 999px; background: none; font-size: 20px; line-height: 1; }
.msg-actions button:hover, .msg-actions button[aria-pressed="true"] { background: var(--surface-2); }
.msg-actions .reply-action { font-size: 13px; font-weight: 600; padding: 0 12px; color: var(--text); }
.reactions { display: flex; gap: 4px; margin-top: -6px; position: relative; z-index: 1; }
.mine .reactions { margin-right: 8px; }
.theirs .reactions { margin-left: 8px; }
.reaction { min-height: 26px; padding: 0 8px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; display: inline-flex; align-items: center; }
.reaction.mine-reaction { border-color: var(--accent); }
.quote {
  display: block;
  width: 100%;
  margin-bottom: 6px;
  padding: 6px 10px;
  border: 0;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.22);
  text-align: left;
  font-size: 13px;
  line-height: 1.35;
  color: inherit;
}
.theirs .quote { background: rgba(255, 255, 255, 0.06); }
.quote-who { display: block; font-weight: 600; font-size: 12px; opacity: 0.85; }
.quote-text { display: block; opacity: 0.85; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg.flash .bubble { outline: 2px solid var(--accent); outline-offset: 2px; }
.reply-bar { flex: none; display: flex; align-items: center; gap: 8px; padding: 8px 8px 0 16px; border-top: 1px solid var(--surface-2); }
.reply-body { flex: 1; min-width: 0; padding-left: 10px; box-shadow: inset 2px 0 0 var(--accent); }
.reply-who { color: var(--accent); font-weight: 600; }
.reply-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reply-bar + .composer { border-top: 0; }
#ttl-label { color: var(--accent); }
.choices { border: 0; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 8px; }
.choices .check { margin-top: 0; align-items: center; }
.paused-banner { flex: none; margin: 0 16px 12px; padding: 12px 14px; border-radius: 14px; background: #2a2412; border: 1px solid #5a4a1a; display: flex; align-items: center; gap: 12px; font-size: 14px; }
.paused-banner p { flex: 1; }

/* the encryption line holds several inline bits (name, timer): lay it out as text */
.enc-bar { display: block; text-align: center; line-height: 1.5; }
.enc-bar svg { vertical-align: -1px; margin-right: 4px; }
