:root {
  color-scheme: light;
  --canvas: #fff;
  --surround: #f7f7f7;
  --ink: #101010;
  --muted: #646464;
  --border: #e5e5e5;
  --surface: #f4f4f4;
  --focus: #396acd;
  --like: #bc2252;
  --gutter: 16px;
  --top: 48px;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --canvas: #101010;
  --surround: #151515;
  --ink: #f5f5f5;
  --muted: #a0a0a0;
  --border: #303030;
  --surface: #242424;
  --focus: #a3baff;
  --like: #ff7197;
}
* { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--top) + 48px); }
body {
  margin: 0;
  background: var(--surround);
  color: var(--ink);
  font: 1rem/1.4 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  overflow-wrap: anywhere;
}
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
p, h1, h2, figure { margin: 0; }
h1 { font-size: 1.6rem; line-height: 1.15; letter-spacing: -.035em; }
h2 { font-size: 1rem; }
svg { width: 20px; height: 20px; flex: none; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 10; left: 8px; top: 8px; background: var(--canvas); padding: 8px; }
.column { width: 100%; max-width: 612px; min-height: 100dvh; margin-inline: auto; background: var(--canvas); }
.topbar {
  position: sticky;
  z-index: 3;
  top: 0;
  display: grid;
  min-height: var(--top);
  grid-template-columns: minmax(44px, 1fr) auto minmax(44px, 1fr);
  align-items: center;
  padding-inline: 7px;
  background: var(--canvas);
}
.top-title { grid-column: 2; font-weight: 700; text-align: center; }
.utilities { grid-column: 3; display: flex; justify-content: end; }
.brand { color: var(--ink); font-size: 1.45rem; font-weight: 850; letter-spacing: -.055em; }
.brand.mobile { min-height: 44px; display: flex; align-items: center; padding-left: 9px; width: fit-content; padding-right: 14px; }
.desktop { display: none !important; }
.primary {
  position: fixed;
  z-index: 4;
  inset: auto 0 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  justify-items: center;
  align-items: center;
  min-height: 56px;
  padding-bottom: env(safe-area-inset-bottom);
  border-top: 1px solid var(--border);
  background: var(--canvas);
}
.nav-item, .icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: inherit;
}
.nav-item { color: var(--muted); }
.nav-item svg { width: 22px; height: 22px; }
.nav-item[aria-current] { color: var(--ink); }
.compose { background: var(--surface); }
@media (hover: hover) {
  .nav-item:hover, .icon:hover, .outlined:hover, .topics a:hover { background: var(--surface); }
  .handle:hover, .identity-meta a:hover, .project-link a:hover, .prose a:hover { text-decoration: underline; }
}
main { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
.identity { padding: 16px var(--gutter) 13px; }
.identity-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.identity-row h1 { margin-bottom: 5px; }
.avatar {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  background: var(--avatar);
  color: white;
  border-radius: 50%;
  font-size: .72rem;
  font-weight: 750;
  letter-spacing: -.035em;
}
.avatar-large { width: 72px; height: 72px; font-size: 1.38rem; }
.bio { white-space: pre-line; margin: 10px 0 8px; }
.topics { display: flex; flex-wrap: wrap; gap: 5px; }
.topics a {
  color: var(--muted);
  padding: 5px 9px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: .77rem;
}
.identity-meta { color: var(--muted); font-size: .84rem; margin-block: 9px; }
.profile-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.outlined, .solid {
  display: grid;
  place-items: center;
  padding: 6px 10px;
  min-height: 40px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--canvas);
  text-align: center;
  font-size: .875rem;
  font-weight: 700;
}
.solid { background: var(--ink); color: var(--canvas); border-color: var(--ink); }
.tabs {
  position: sticky;
  top: var(--top);
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-bottom: 1px solid var(--border);
  background: var(--canvas);
}
.tabs a, .filters a {
  display: grid;
  place-items: center;
  min-height: 44px;
  padding: 5px 1px;
  border-bottom: 1px solid transparent;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 650;
}
.tabs a[aria-current], .filters a[aria-current] { color: var(--ink); border-bottom-color: var(--ink); }
.post-group { padding: 10px var(--gutter); border-bottom: 1px solid var(--border); }
.post {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  column-gap: 10px;
  padding-block: 2px 6px;
}
.post + .post { margin-top: 5px; }
.avatar-rail { position: relative; padding-top: 3px; }
.connected > .avatar-rail::after {
  position: absolute;
  content: '';
  top: 44px;
  bottom: 1px;
  left: 17px;
  width: 2px;
  background: var(--border);
}
.byline { display: flex; align-items: center; min-height: 26px; gap: 6px; position: relative; padding-right: 39px; }
.byline .icon { position: absolute; top: 0; right: -9px; height: 44px; transform: translateY(-7px); }
.byline .icon svg { width: 17px; }
.handle { font-size: .92rem; font-weight: 700; }
.byline time, .pinned, .context, .conversation-link, .attachment figcaption { color: var(--muted); font-size: .78rem; }
.pinned { display: flex; gap: 5px; align-items: center; margin: 0 0 8px -2px; }
.pinned svg { width: 14px; height: 14px; }
.post-body { display: block; min-height: 24px; margin-top: 1px; white-space: pre-wrap; }
.actions { display: flex; flex-wrap: wrap; margin: 1px 0 -6px -9px; }
.actions svg { width: 18px; height: 18px; }
.actions [aria-pressed="true"] { color: var(--like); }
.actions [aria-pressed="true"] svg { fill: currentColor; }
.context { display: block; margin: 0 0 6px 46px; }
.conversation-link { display: inline-flex; align-items: center; min-height: 34px; margin-left: 46px; }
.disclosure { color: var(--muted); font-size: .78rem; margin: 16px 0 0 46px; }
.thread { padding: 12px var(--gutter) 18px; }
.thread-branch, .inline-replies { --thread-step: 24px; --reply-center: 22px; }
.thread-replies { padding-left: var(--thread-step); }
.thread-branch > .post + .post { margin-top: 0; }
.thread-branch .connected > .avatar-rail::after,
.reply-node > .connected > .avatar-rail::after { bottom: -3px; }
.reply-node { position: relative; }
.reply-node > .post { position: relative; }
.reply-node > .post > .avatar-rail > .avatar { position: relative; z-index: 1; }
.thread-replies > .reply-node:not(:last-child)::before,
.thread-replies > .reply-node::after {
  content: '';
  position: absolute;
  pointer-events: none;
  left: calc(17px - var(--thread-step));
  border-color: var(--border);
  border-style: solid;
}
.thread-replies > .reply-node:not(:last-child)::before { inset-block: 0; border-width: 0 0 0 2px; }
.thread-replies > .reply-node::after {
  top: 0;
  width: var(--thread-step);
  height: var(--reply-center);
  border-width: 0 0 2px 2px;
  border-bottom-left-radius: 10px;
}
.thread-replies > .reply-node:not(:last-child)::after { top: calc(var(--reply-center) - 10px); height: 10px; }
.inline-preview-children { margin-left: -18px; }
.quote { display: grid; gap: 4px; margin-top: 10px; padding: 10px; border: 1px solid var(--border); border-radius: 10px; font-size: .875rem; }
.attachment { margin-top: 10px; max-width: 460px; }
.attachment button {
  display: block;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: var(--surface);
  overflow: hidden;
  width: 100%;
}
.attachment img { display: block; width: 100%; height: auto; }
.attachment figcaption { margin-top: 4px; }
.project-link { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 9px; margin-top: 6px; font-size: .84rem; color: var(--muted); }
.status { font-size: .73rem; padding: 2px 7px; background: var(--surface); border-radius: 100px; }
.media-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px; padding: 3px; }
.media-grid .attachment { margin: 0; }
.media-grid button { border-radius: 4px; height: 100%; }
.media-grid img { aspect-ratio: 1.45; object-fit: contain; background: #141414; height: 100%; }
.empty { padding: 28px var(--gutter); color: var(--muted); }
.rows, .people, .activity { margin: 0; padding: 0; list-style: none; }
.rows li, .activity li, .people li { border-bottom: 1px solid var(--border); }
.rows a { display: grid; grid-template-columns: 1fr auto; gap: 3px 10px; padding: 14px var(--gutter); }
.rows span { grid-row: 2; color: var(--muted); font-size: .875rem; }
.rows svg { grid-row: 1 / 3; grid-column: 2; align-self: center; color: var(--muted); }
.search-form { margin: 8px var(--gutter) 14px; display: flex; align-items: center; gap: 8px; border-radius: 9px; padding-left: 12px; background: var(--surface); color: var(--muted); }
.search-form input { min-width: 0; flex: 1; border: 0; min-height: 44px; padding: 4px 10px 4px 0; background: transparent; border-radius: 9px; color: var(--ink); }
.search-section, .section-title { padding: 8px var(--gutter); }
.search-section h2 { margin-bottom: 8px; }
.people a, .activity a { display: flex; align-items: center; gap: 10px; padding: 10px 0; }
.people span span, .activity small { display: block; color: var(--muted); font-size: .82rem; }
.activity a { padding-inline: var(--gutter); }
.filters { padding-inline: var(--gutter); display: flex; flex-wrap: wrap; gap: 14px; border-bottom: 1px solid var(--border); }
.filters a { padding-inline: 4px; }
.composer { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 10px; padding: 17px var(--gutter); }
.composer h1 { font-size: 1rem; letter-spacing: 0; }
.composer p, .feed-intro p { color: var(--muted); margin: 5px 0 15px; }
.composer form { display: grid; gap: 6px; }
.composer label { font-size: .85rem; font-weight: 650; margin-top: 4px; }
.composer input, .composer textarea, .copy-field { width: 100%; min-height: 44px; background: var(--surface); padding: 10px; border: 1px solid var(--border); border-radius: 8px; }
.composer textarea { resize: vertical; }
.composer-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 6px; }
.composer-actions a, .prose a { text-decoration: underline; }
.prose, .feed-intro { padding: 20px var(--gutter); }
.prose p { margin-block: 8px 20px; }
.feed-intro { border-bottom: 1px solid var(--border); }
dialog { color: var(--ink); border: 1px solid var(--border); border-radius: 14px; background: var(--canvas); padding: 14px; width: min(420px, calc(100% - 30px)); }
dialog::backdrop { background: rgb(0 0 0 / 62%); }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; gap: 8px; }
.dialog-heading h2 { margin-left: 7px; }
.menu-items { display: grid; }
.menu-items > * { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 8px; background: transparent; border: 0; border-top: 1px solid var(--border); text-align: left; }
.menu-items > :hover { background: var(--surface); }
.dialog-note { color: var(--muted); padding: 4px 8px 12px; font-size: .875rem; }
#viewer { width: min(780px, calc(100% - 20px)); max-height: calc(100dvh - 20px); }
#viewer img { display: block; max-width: 100%; width: auto; height: auto; max-height: 66dvh; margin: auto; border-radius: 8px; object-fit: contain; }
.viewer-controls { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-top: 6px; color: var(--muted); font-size: .84rem; }
.notice { position: fixed; z-index: 6; left: 50%; bottom: calc(66px + env(safe-area-inset-bottom)); transform: translateX(-50%); max-width: calc(100% - 24px); }
.notice:not(:empty) { background: var(--ink); color: var(--canvas); border-radius: 12px; padding: 9px 13px; font-size: .875rem; }
@media (min-width: 768px) {
  :root { --gutter: 24px; --top: 54px; }
  .column { border-inline: 1px solid var(--border); width: calc(100% - 144px); }
  .desktop { display: revert !important; }
  .icon.desktop { display: inline-grid !important; }
  .mobile, [data-mobile] { display: none !important; }
  .brand.desktop { position: fixed; left: 24px; top: 22px; z-index: 4; }
  .primary { inset: 50% auto auto 16px; transform: translateY(-50%); grid-template-columns: 1fr; gap: 20px; background: transparent; border: 0; }
  .topbar { border-bottom: 1px solid var(--border); padding-inline: 12px; }
  .identity { padding-top: 20px; padding-bottom: 17px; }
  .bio { margin-top: 11px; }
  .identity-meta { margin-block: 12px; }
  .post-group { padding-block: 12px; }
  .post + .post { margin-top: 9px; }
  main { padding-bottom: 40px; }
}

:root { --canvas: #fff; --surround: #f8f8f8; }
.identity { padding-bottom: 10px; }
.identity-meta { margin-block: 8px; }
.identity-row h1 { font-weight: 800; letter-spacing: -.055em; }
.topbar { border-bottom: 1px solid var(--border); }
.topics a { padding: 4px 9px; font-size: .78rem; }
.outlined { border-color: var(--border); min-height: 38px; }
.outlined[data-follow]:not([aria-pressed="true"]) { background: var(--ink); color: var(--canvas); border-color: var(--ink); }
.tabs a { font-size: .84rem; }
.home-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.post { padding-block: 1px 3px; }
.post + .post { margin-top: 4px; }
.post-body { line-height: 1.38; }
.actions { margin-bottom: -5px; }
.actions .icon { border-radius: 50%; }
.actions .reply-action { width: auto; min-width: 44px; padding-inline: 8px; display: flex; justify-content: center; gap: 4px; }
.reply-action span { color: var(--muted); font-size: .73rem; font-variant-numeric: tabular-nums; }
.conversation-link { min-height: 28px; }
.avatar { box-shadow: inset 0 0 0 1px rgb(0 0 0 / 10%); }
.attachment button { border-radius: 12px; }
.poll { display: grid; gap: 5px; margin-top: 12px; max-width: 420px; }
.poll button { background: var(--canvas); color: var(--ink); border: 1px solid var(--border); border-radius: 9px; min-height: 44px; padding: 7px 12px; text-align: left; }
.poll button[aria-pressed="true"] { color: var(--canvas); background: var(--ink); border-color: var(--ink); }
.poll small { color: var(--muted); }
.empty a { text-decoration: underline; text-underline-offset: 2px; }
@media (min-width: 768px) {
  .identity { padding-bottom: 13px; }
  .post + .post { margin-top: 6px; }
}
@media (prefers-reduced-motion: no-preference) {
  .actions button:active svg, .nav-item:active svg { transform: scale(.88); }
  .attachment button:active img { transform: scale(.988); }
  .actions svg, .nav-item svg, .attachment img { transition: transform 130ms ease-out; }
}
.surprise { margin-block: 13px 6px; padding-inline: 15px; }
body { font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif; }
@media (max-width: 767px) {
  .identity { padding-top: 13px; }
  .bio { margin-block: 8px; }
}
.nav-item[aria-current="page"] svg { stroke-width: 2.2; }
.post-group:has(.pinned) .conversation-link { margin-bottom: 4px; }
.conversation-link:hover { text-decoration: underline; text-underline-offset: 3px; }

.avatar { overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.inline-replies { margin-left: 46px; }
.inline-replies summary { display: list-item; min-height: 34px; padding-block: 6px; color: var(--muted); font-size: .84rem; cursor: pointer; }
.inline-replies summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.inline-replies[open] { margin-bottom: 6px; }
.inline-replies[open] > .reply-node { margin-left: -46px; padding-top: 5px; }
@media (max-width: 430px) {
  .thread-branch, .inline-replies { --thread-step: clamp(20px, 6vw, 24px); }
}

.post-with-mentions { position: relative; }
.post-hit { position: absolute; inset: 0; border-radius: 4px; }
.mention { position: relative; z-index: 1; color: var(--focus); font-weight: 600; }
.mention:hover { text-decoration: underline; }
.cameo-mark { color: var(--muted); font-size: .72rem; }
.dm-list, .bubbles { list-style: none; margin: 0; padding: 0; }
.dm-list li { border-bottom: 1px solid var(--border); }
.dm-list a { display: grid; align-items: center; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; padding: 12px var(--gutter); }
.dm-list .avatar, .chat-members .avatar { width: 42px; height: 42px; }
.dm-preview { display: grid; gap: 2px; min-width: 0; }
.dm-preview > span { color: var(--muted); font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-meta { color: var(--muted); display: grid; justify-items: end; gap: 7px; font-size: .77rem; }
.dm-dot { width: 7px; height: 7px; background: var(--focus); border-radius: 50%; }
.dm-note, .chat-members p { color: var(--muted); font-size: .82rem; }
.dm-note { padding: 14px var(--gutter); }
.chat-members { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 5px; padding: 15px var(--gutter) 8px; }
.chat-members p { flex-basis: 100%; text-align: center; margin-top: 3px; }
.bubbles { display: grid; gap: 11px; padding: 10px var(--gutter) 16px; }
.bubble-row { display: flex; align-items: end; gap: 7px; max-width: 84%; }
.bubble-row .avatar { width: 28px; height: 28px; }
.bubble-author { display: block; color: var(--muted); font-size: .74rem; padding: 0 10px 2px; }
.bubble { background: var(--surface); border-radius: 17px 17px 17px 4px; padding: 8px 12px; white-space: pre-wrap; }
.bubble-row.outgoing { justify-self: end; text-align: right; }
.outgoing .bubble { border-radius: 17px 17px 4px 17px; color: var(--canvas); background: var(--ink); text-align: left; }
.dm-compose input { flex: 1; min-width: 0; min-height: 44px; color: var(--ink); background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 8px 14px; }

.more-feed { margin: 14px auto 6px; padding-inline: 16px; }
.more-feed[hidden] { display: none; }
.chat-column {
  height: var(--chat-viewport, 100dvh);
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.chat-column .topbar { position: static; flex: none; }
.chat-column main { display: flex; flex: 1; flex-direction: column; min-height: 0; padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
.chat { flex: 1; min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.chat-history { min-height: 0; overflow-y: auto; overscroll-behavior-y: contain; }
.chat-history:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.dm-compose { display: grid; gap: 6px; background: var(--canvas); border-top: 1px solid var(--border); padding: 7px var(--gutter) 8px; }
.dm-input-row { display: flex; align-items: center; gap: 4px; }
.dm-quick { display: flex; align-items: center; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.dm-quick button { flex: none; min-height: 32px; padding: 4px 9px; border-radius: 100px; font-size: .75rem; font-weight: 500; }
.bubble-row > .avatar, .bubble-row > div { min-width: 0; }
.dm-reaction { width: 26px; height: 30px; color: var(--muted); flex: none; }
.dm-reaction svg { width: 15px; height: 15px; }
.dm-reaction[aria-pressed="true"] { color: var(--like); }
.dm-reaction[aria-pressed="true"] svg { fill: currentColor; }
.dm-keyboard .primary { display: none; }
.dm-keyboard .chat-column main { padding-bottom: 0; }
@media (max-width: 767px) { .primary { min-height: calc(56px + env(safe-area-inset-bottom)); } }
@media (min-width: 768px) { .chat-column main { padding-bottom: 0; } }

/* Route landmarks receive programmatic focus without outlining the whole feed. */
#content:focus, #content :is(section, article)[tabindex="-1"]:focus { outline: none; }
.draft-email { width: fit-content; min-height: 44px; padding-inline: 14px; margin-bottom: 12px; }

/* Compact surfaces share spacing without reproducing the reference chrome. */
.home-composer { display: flex; align-items: center; gap: 10px; padding: 11px var(--gutter); border-bottom: 1px solid var(--border); }
.home-composer button { display: grid; gap: 2px; flex: 1; min-height: 44px; padding: 0; border: 0; background: transparent; text-align: left; }
.home-composer button span { color: var(--muted); }
.settings-list { padding: 6px var(--gutter); }
.settings-list > * { width: 100%; display: grid; grid-template-columns: 22px minmax(0, 1fr) 18px; align-items: center; gap: 12px; min-height: 52px; padding: 8px 0; border: 0; border-bottom: 1px solid var(--border); background: transparent; text-align: left; }
.settings-list svg:last-child { width: 17px; color: var(--muted); }
.appearance { display: flex; flex-wrap: wrap; gap: 7px; margin: 16px var(--gutter); padding: 9px 0; border: 0; }
.appearance legend { font-weight: 700; }
.appearance button { padding-inline: 12px; }
.appearance [aria-pressed="true"] { background: var(--ink); color: var(--canvas); border-color: var(--ink); }
.actions [data-save][aria-pressed="true"] { color: var(--ink); }
.actions [data-save][aria-pressed="true"] svg { fill: currentColor; }
.profile-actions .outlined { background: var(--surface); border-color: transparent; font-weight: 650; }
.menu-items { background: var(--canvas); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; margin-block: 8px; }
.menu-items > * { gap: 10px; padding: 10px 12px; }
.menu-items > :first-child { border-top: 0; }
.feed-shortcuts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.feed-shortcuts button { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px; min-height: 50px; padding: 8px; border: 1px solid var(--border); border-radius: 10px; background: var(--canvas); font-size: .85rem; }
.feed-shortcuts svg { width: 16px; }
#menu[data-variant="drawer"] {
  position: fixed;
  inset: 0 auto auto 0;
  margin: 0;
  width: min(340px, calc(100% - 48px));
  height: 100dvh;
  max-height: 100dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-width: 0 1px 0 0;
  border-radius: 0;
  padding-bottom: max(14px, env(safe-area-inset-bottom));
  background: var(--surround);
}
#menu[data-variant="drawer"] h2:focus { outline: none; }
#draft { width: min(520px, calc(100% - 24px)); }
.draft-editor { display: grid; gap: 6px; padding: 12px 7px; border-top: 1px solid var(--border); }
.draft-editor textarea { width: 100%; resize: vertical; max-height: 45dvh; color: var(--ink); background: var(--canvas); padding: 8px; border: 1px solid var(--border); border-radius: 8px; }
.draft-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; justify-content: space-between; padding: 4px 7px; }
.draft-actions small { color: var(--muted); }
.post-group > .post-preview { margin-left: 46px; grid-template-columns: 26px minmax(0, 1fr); column-gap: 7px; }
.post-preview .avatar { width: 26px; height: 26px; }
@media (max-width: 767px) {
  :root { --nav-reserve: calc(62px + env(safe-area-inset-bottom)); }
  .primary { inset: auto 12px calc(8px + env(safe-area-inset-bottom)); height: 54px; min-height: 0; padding: 3px 5px; border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 2px 12px rgb(0 0 0 / 10%); }
  .primary .nav-item[aria-current] { background: var(--surface); }
  .primary .compose { background: transparent; }
  main { padding-bottom: calc(var(--nav-reserve) + 12px); }
  .chat-column main { padding-bottom: var(--nav-reserve); }
  .dm-keyboard .chat-column main { padding-bottom: 0; }
  .notice { bottom: calc(var(--nav-reserve) + 8px); }
  #menu[data-variant="sheet"] { inset: auto 0 0; width: 100%; max-width: none; margin: 0; max-height: 80dvh; border-radius: 18px 18px 0 0; padding-bottom: max(14px, env(safe-area-inset-bottom)); background: var(--surround); }
  #menu[data-variant="sheet"]::before { content: ''; display: block; width: 28px; height: 3px; margin: 0 auto; background: var(--muted); border-radius: 3px; }
}
.home-topbar .top-title { font-size: 1.2rem; letter-spacing: -.045em; font-weight: 800; }
#menu::backdrop, #draft::backdrop { background: rgb(0 0 0 / 32%); }
.connected:has(+ .post-preview) > .avatar-rail::after {
  bottom: -23px;
  width: 26px;
  border: solid var(--border);
  border-width: 0 0 2px 2px;
  border-bottom-left-radius: 16px;
  background: transparent;
}
@media (hover: none) {
  a, button, summary { -webkit-tap-highlight-color: transparent; }
  .icon:active, .nav-item:active { opacity: .7; }
}
.profile-actions.with-message { grid-template-columns: repeat(2, minmax(0, 1fr)) 44px; }
.profile-actions [data-profile-message] { background: var(--surface); width: 44px; }
.draft-quote { display: flex; align-items: start; gap: 4px; min-width: 0; }
.draft-quote .quote { margin: 0; flex: 1; min-width: 0; }
.story-mark { display: inline-block; margin-block: 2px; color: var(--muted); font-size: .77rem; }
.story-mark:hover { text-decoration: underline; }
.actions .like-action { width: auto; min-width: 44px; padding-inline: 8px; display: flex; align-items: center; justify-content: center; gap: 4px; }
.like-action [data-like-count] { color: var(--muted); font-size: .76rem; }
.device-post { position: relative; padding: 12px 56px 12px var(--gutter); border-bottom: 1px solid var(--border); }
.device-post > .icon { position: absolute; top: 4px; right: 7px; }
.device-post small { color: var(--muted); margin-left: 4px; }
.device-post p { white-space: pre-wrap; margin-top: 4px; }
.sync-likes p, .sync-likes form { flex-basis: 100%; }
.sync-likes form { display: flex; flex-wrap: wrap; gap: 6px; }
.sync-likes label { flex-basis: 100%; font-size: .85rem; }
.sync-likes input { min-width: 0; flex: 1; padding: 8px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
