.composer-inner { position:relative; }
.mention-suggestions { position:absolute; top:calc(100% + 8px); left:0; z-index:4; width:min(320px,100%); max-height:min(280px,30dvh); overflow:auto; padding:4px; border:1px solid var(--line); border-radius:6px; background:var(--page); box-shadow:0 4px 18px #0002; }
.mention-suggestions [role="option"] { display:block; width:100%; min-height:44px; padding:8px 12px; border-radius:4px; text-align:left; font-size:12px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.mention-suggestions [role="option"][aria-selected="true"], .mention-suggestions [role="option"]:hover { background:var(--blue-wash); color:var(--blue); }
.avatar { overflow:hidden; }
.avatar:has(> img) { border:0; background:transparent; }
.avatar img { display:block; width:100%; height:100%; object-fit:cover; border-radius:50%; }
.avatar-link { padding:0; border-radius:50%; flex-shrink:0; }
.author-link { padding:0; text-align:left; }
.mention-context { display:flex; align-items:center; flex-wrap:wrap; gap:6px; margin-bottom:5px; color:var(--muted); font-size:10px; }
.mention-thread-label { overflow-wrap:anywhere; }
.author-link:hover { text-decoration:underline; }
.header-title, .header-title>div { flex:1; min-width:0; }
.feed-heading { display:flex; align-items:center; flex-wrap:nowrap; gap:8px 12px; min-width:0; }
.feed-heading h1 { min-width:0; flex:1; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.feed-divider>span { min-width:0; overflow-wrap:anywhere; }
.feed-divider:after { min-width:24px; }
.feed-heading:has(.post-title) { flex-wrap:nowrap; gap:8px; }
.feed-heading h1:has(.post-title) { display:flex; align-items:center; flex:1; overflow:hidden; }
.post-source { color:inherit; font-weight:inherit; white-space:nowrap; flex-shrink:0; }
.breadcrumb-separator { white-space:pre; color:var(--muted); }
.post-title { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
#back-to-channel { display:inline-flex; align-items:center; gap:6px; padding:0; color:inherit; font-size:inherit; line-height:inherit; white-space:nowrap; }
#back-to-channel:hover { color:var(--blue); text-decoration:underline; }
#back-to-channel svg { width:14px; height:14px; transform:rotate(180deg); }
.pinned-post { margin-bottom:24px; }
#load-more-replies, #show-newest-replies { min-height:44px; }
#load-more-replies:disabled { opacity:.55; }
#show-newest-replies { display:block; margin:-12px 0 20px 50px; }
.focused-reply { scroll-margin:70px; }
.reply-focus-flash { animation:reply-focus 2.2s ease-out; }
@media(prefers-reduced-motion:reduce) { .reply-focus-flash { animation:none; outline:2px solid var(--blue); outline-offset:4px; } }
@keyframes reply-focus { 0%,55% { background:#dbe7fb; box-shadow:0 0 0 10px #dbe7fb; } 100% { background:transparent; box-shadow:0 0 0 0 transparent; } }
.search-filters { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; padding:12px 24px 0; }
.search-filters label { display:grid; gap:4px; color:var(--muted); font-size:9px; letter-spacing:.5px; text-transform:uppercase; }
.search-filters select { appearance:none; -webkit-appearance:none; width:100%; min-width:0; min-height:44px; padding:10px 36px 10px 12px; border:1px solid var(--line); border-radius:5px; background-color:#fdfcf9; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b6e74' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 12px center; color:var(--text); font:12px var(--mono); line-height:1.5; letter-spacing:0; text-transform:none; text-overflow:ellipsis; cursor:pointer; }
.search-filters select:hover:not(:disabled):not(:focus-visible) { border-color:var(--blue); background-color:var(--blue-wash); }
.search-filters select:focus-visible { outline:none; border-color:var(--focus-border); box-shadow:var(--focus-shadow); }
.search-filters select:disabled { opacity:.55; cursor:not-allowed; }
.search-filters option { background:var(--page); color:var(--text); }
.search-filters option:checked { background:var(--blue-wash); color:var(--blue-dark); }
.search-filters option:disabled { color:var(--muted); }
@media(max-width:720px) { .search-filters select { font-size:16px; } }
@media(forced-colors:active) { .search-filters select { appearance:auto; -webkit-appearance:auto; background-image:none; padding-right:12px; } }
.search-result { position:relative; }
.search-result.search-active, .search-result:focus-visible { background:var(--blue-wash); }
.search-hit strong { padding-right:130px; }
.search-result-date { position:absolute; top:11px; right:10px; max-width:125px; overflow:hidden; color:var(--muted); font-size:9px; text-overflow:ellipsis; white-space:nowrap; }
.search-result .search-excerpt { color:var(--text); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.search-excerpt mark { border-radius:2px; background:#f1df9d; color:inherit; }
.search-load-more { display:block; width:calc(100% - 20px); min-height:44px; margin:8px 10px; border:1px solid var(--line); border-radius:5px; color:var(--blue); }
.search-load-more:hover { background:var(--blue-wash); }
.search-error button { min-height:40px; margin-top:8px; padding:6px 12px; border-radius:4px; background:var(--blue-wash); color:var(--blue); }
@media(max-width:560px) {
  .search-filters { grid-template-columns:1fr; padding:10px 16px 0; }
  .search-hit strong { padding-right:0; }
  .search-result-date { position:static; display:block; margin-top:2px; }
}
@media(max-width:560px) and (max-height:600px) {
  #search-dialog .search-filters { grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; }
  #search-dialog .search-filters select { padding-left:8px; padding-right:26px; background-position:right 6px center; }
  #search-dialog .dialog-heading { padding:12px 16px; }
}
.message[data-message]:not(.pinned-post) { cursor:pointer; }
.message[data-message]:not(.pinned-post):hover .thread-toggle { color:var(--blue); }
h1 { overflow-wrap:anywhere; }
.follow-button { padding:8px 14px; min-height:38px; border:1px solid var(--blue); color:var(--blue); border-radius:5px; font-size:11px; background:var(--page); }
.follow-button[aria-pressed="true"] { background:var(--blue-wash); }
#follow-profile { display:inline-flex; align-items:center; justify-content:center; gap:6px; flex-shrink:0; white-space:nowrap; }
#follow-profile svg { width:14px; height:14px; }
.follow-icon { display:inline-flex; align-items:center; justify-content:center; width:44px; height:44px; padding:10px; flex-shrink:0; }
.follow-icon:hover, #follow-profile:hover { background:var(--blue-wash); }
.follow-icon:disabled, #follow-profile:disabled { opacity:.55; }
.follow-icon svg { width:20px; height:20px; }
.channel-row { display:flex; align-items:center; min-width:0; }
.channel-row>.nav-item { flex:1; width:0; }
.channel-row:has(>.nav-item.selected) { background:var(--blue-wash); border-radius:5px; }
.channel-unfollow { width:44px; height:44px; }
.channel-unfollow svg { width:14px; height:14px; }
.channel-unfollow:disabled { opacity:.55; }
.following-label { margin-top:24px; align-items:center; gap:12px; }
.sidebar-section-link { padding:0; min-height:24px; color:var(--blue); font-size:10px; letter-spacing:0; line-height:inherit; white-space:nowrap; }
.sidebar-section-link:hover, .sidebar-section-link.selected { text-decoration:underline; text-underline-offset:3px; }
.unread-dot { display:inline-block; width:8px; height:8px; flex-shrink:0; border-radius:50%; background:var(--blue); }
.nav-item.has-unread>span:nth-child(2) { font-weight:700; }
.following-empty { font-size:10px; color:var(--muted); padding:0 13px 8px; }
.message-aside { display:flex; flex-direction:column; align-items:center; align-self:flex-start; gap:8px; flex:0 0 44px; width:44px; min-width:0; }
.post-meta { display:block; }
.post-meta-content { display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 8px; min-width:0; }
.post-actions { display:flex; flex-direction:column; align-items:center; gap:4px; width:100%; }
.post-actions .post-reply-count { display:inline-flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:2px 5px; max-width:100%; margin:0; color:var(--muted); font-size:11px; line-height:24px; }
.post-actions .post-reply-count svg { width:14px; height:14px; }
.post-actions .delete-post-button { width:44px; height:44px; margin:0; }
.message-title { margin:0; max-width:100%; font-size:14px; line-height:1.6; letter-spacing:0; overflow-wrap:anywhere; }
.message-by { display:inline-flex; align-items:baseline; gap:4px; font-size:11px; color:var(--muted); }
.message-by .message-name { font-size:11px; font-weight:400; }
.composer-title-field { display:grid; grid-template-columns:minmax(0,1fr); align-items:center; gap:4px 10px; margin:0 16px; padding:10px 0; border-bottom:1px solid var(--line); }
.composer-title-field label { flex-shrink:0; color:var(--muted); font-size:11px; }
.composer-title-field input { min-width:0; width:100%; border:0; background:transparent; color:var(--text); font-size:11px; }
.composer-title-field input:focus-visible { outline:none; box-shadow:none; }
/* Keep an empty, unfocused composer to a single selectable line. */
.composer-area:not(.is-selected):not(.has-draft) :is(.composer-title-field,.composer-controls,.composer-footer) { display:none; }
.composer-area:not(.is-selected):not(.has-draft) .composer textarea { height:44px!important; min-height:44px; padding:11px 16px; overflow:hidden; }
.channel-create { display:grid; gap:8px; padding:16px 24px 24px; border-top:1px solid var(--line); }
.channel-create label { font-size:11px; }
.channel-create input { min-width:0; width:100%; padding:8px; border:1px solid var(--line); border-radius:4px; background:var(--page); }
#channel-create-error { color:#a32c24; font-size:11px; }
.sidebar>* { flex-shrink:0; }
.sidebar .nav-item>:first-child { display:grid; place-items:center; width:20px; height:20px; flex:0 0 20px; }
.sidebar .nav-item>.avatar { font-size:10px; }
@media(min-width:900px) {
  .app-shell.sidebar-docked { grid-template-columns:300px minmax(0,1fr); }
  .app-shell.sidebar-docked .sidebar { position:relative; inset:auto; width:100%; height:100%; min-height:0; z-index:auto; box-shadow:none; }
  .app-shell.sidebar-docked #open-nav, .app-shell.sidebar-docked #close-nav { display:none; }
}
.nav-item>span:nth-child(2) { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.message-meta { flex-wrap:wrap; }
.delete-post-button { margin-left:auto; width:30px; height:30px; padding:6px; }
.delete-post-button svg { width:15px; height:15px; }
.delete-post-button:hover { color:#a32c24; background:#fff1ef; }
.delete-dialog { width:430px; }
.delete-dialog .dialog-heading h2 { min-width:0; overflow-wrap:anywhere; }
.delete-dialog>p { padding:0 24px; font-size:12px; color:var(--muted); }
.delete-actions { display:flex; justify-content:flex-end; gap:12px; padding:20px 24px; }
.delete-actions button { min-height:44px; padding:10px 14px; border-radius:4px; background:var(--blue-wash); }
#confirm-delete, #confirm-unfollow-channel { background:#a32c24; color:white; }
.delete-actions button:disabled { opacity:.55; cursor:default; }
.settings-footer { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; border-top:1px solid var(--line); margin-top:20px; padding-top:12px; }
.settings-footer .settings-about { margin-top:0; }
.settings-signout { min-height:44px; padding:10px 12px; border:1px solid #e3c9c7; border-radius:4px; color:#a32c24; }
.settings-signout:hover { background:#fff1ef; }
.settings-signout:disabled { opacity:.55; }
.avatar-settings { display:flex; align-items:center; gap:16px; margin:14px 0; }
.settings-avatar .avatar { width:64px; height:64px; font-size:22px; }
.avatar-settings button { padding:10px 12px; min-height:44px; background:var(--blue-wash); color:var(--blue); border-radius:4px; }
.settings-content #avatar-status { font-size:11px; overflow-wrap:anywhere; }
.attachment-previews { max-height:260px; overflow:auto; margin:10px 16px 0; }
.attachment-help { color:var(--muted); font-size:10px; padding:2px 2px 8px; }
.image-stack { isolation:isolate; height:auto; width:min(322px,calc(100% - 12px)); padding:0 12px 24px 0; overflow:visible; border:0; background:transparent; }
.image-stack .stack-card { position:absolute; top:calc(var(--card-index)*7px); left:calc(var(--card-index)*6px); width:calc(100% - 12px); height:auto; aspect-ratio:3/2; max-height:none; object-fit:cover; border:1px solid #d8d5cd; border-radius:7px; box-shadow:0 3px 10px #0002; transform:rotate(calc(var(--card-index)*1.5deg)); }
/* The top card reserves the responsive stack height before lazy images load. */
.image-stack .stack-card:first-child { position:relative; top:0; left:0; width:100%; }
.image-stack .image-badge { z-index:20; bottom:32px; right:22px; }
.image-navigation { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:12px 16px; font-size:11px; }
.image-navigation button { min-height:40px; color:var(--blue); }
.image-navigation button:disabled { opacity:.4; cursor:default; }
.message-text.markdown { white-space:normal; }
.markdown p+p, .markdown p+ul, .markdown p+ol, .markdown blockquote, .markdown pre, .markdown table { margin-top:10px; }
.markdown h1, .markdown h2, .markdown h3, .markdown h4, .markdown h5, .markdown h6 { font-size:1.1em; line-height:1.5; letter-spacing:0; margin:12px 0 6px; }
.markdown> :first-child { margin-top:0; }
.markdown ul, .markdown ol { padding-left:24px; margin-bottom:0; }
.markdown li+li { margin-top:3px; }
.markdown blockquote { border-left:3px solid #d5deec; padding:2px 14px; margin-left:0; color:var(--muted); }
.markdown code { background:#eeede7; border-radius:3px; font-size:.92em; padding:2px 4px; white-space:pre-wrap; overflow-wrap:anywhere; }
.markdown pre { max-width:100%; overflow:auto; white-space:pre; background:#eeede7; border:1px solid var(--line); border-radius:5px; padding:12px; }
.markdown pre code { padding:0; white-space:pre; overflow-wrap:normal; }
.markdown a { color:var(--blue); text-underline-offset:3px; overflow-wrap:anywhere; }
.markdown a.mention-link { text-decoration:none; }
.markdown a.mention-link:hover, .markdown a.mention-link:focus-visible { text-decoration:underline; }
@media(forced-colors:active) {
  .composer:focus-within, .search-field:focus-within, :is(button,a,input,textarea,select):focus-visible:not(:disabled), .search-filters select:focus-visible { outline:2px solid Highlight; outline-offset:2px; box-shadow:none; }
  .composer-title-field input:focus-visible, .composer textarea:focus-visible, .search-field input:focus-visible { outline:none; box-shadow:none; }
}
.markdown table { display:block; max-width:100%; overflow:auto; border-collapse:collapse; }
.markdown th, .markdown td { border:1px solid var(--line); padding:5px 9px; text-align:left; }
.markdown hr { border:0; border-top:1px solid var(--line); margin:14px 0; }
@media(max-width:720px) {
  .settings-content input, .channel-create input { font-size:16px; }
  .image-navigation { gap:8px; }
}
