:root {
  color-scheme: light;
  --paper: #f4f1e8;
  --paper-deep: #e9e4d6;
  --ink: #191918;
  --muted: #6f6c63;
  --line: #d5d0c3;
  --soft-line: #e3ded2;
  --white: #fbfaf6;
  --green: #246a50;
  --green-soft: #dce8df;
  --amber: #a96320;
  --red: #a53b31;
  --blue: #385e78;
  --radius: 18px;
  --shadow: 0 18px 60px rgba(37, 34, 27, .08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.honeypot { position: fixed !important; left: -10000px !important; opacity: 0 !important; pointer-events: none !important; }

.page-shell {
  width: min(1440px, 100%);
  min-height: calc(100vh - 43px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 230px minmax(480px, 680px) minmax(290px, 370px);
  border-inline: 1px solid var(--line);
}

.left-rail {
  position: sticky;
  top: 43px;
  align-self: start;
  height: calc(100vh - 43px);
  padding: 30px 22px 24px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  background: rgba(244, 241, 232, .94);
}

.wordmark { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; font: 750 1.18rem/1 Georgia, serif; letter-spacing: -.02em; }
.wordmark__mark { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; color: var(--paper); background: var(--ink); font: 700 1.2rem/1 Georgia, serif; }
.side-nav { display: grid; gap: 8px; margin-top: 48px; }
.side-nav__item { width: 100%; display: flex; align-items: center; gap: 13px; border: 0; border-radius: 12px; padding: 11px 12px; background: transparent; cursor: pointer; text-align: left; color: var(--muted); transition: .18s ease; }
.side-nav__item span:first-child { width: 24px; font-size: 1.2rem; text-align: center; }
.side-nav__item:hover, .side-nav__item.is-active { color: var(--ink); background: rgba(25, 25, 24, .06); }
.side-nav__item.is-active { font-weight: 700; }
.primary-action { margin-top: 18px; padding: 12px 18px; border: 1px solid var(--ink); border-radius: 999px; background: var(--ink); color: var(--paper); cursor: pointer; font-weight: 700; transition: transform .18s ease, box-shadow .18s ease; }
.primary-action:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(25,25,24,.16); }
.identity-card { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px 6px 0; min-width: 0; }
.identity-card__copy { min-width: 0; display: grid; gap: 2px; }
.identity-card__copy strong, .identity-card__copy span { white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.identity-card__copy strong { font-size: .88rem; }
.identity-card__copy span { color: var(--muted); font-size: .74rem; }

.feed-column { min-width: 0; border-right: 1px solid var(--line); background: var(--white); }
.feed-header { min-height: 104px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 28px; border-bottom: 1px solid var(--line); background: rgba(251,250,246,.92); backdrop-filter: blur(12px); }
.kicker { margin: 0 0 6px; color: var(--muted); font-size: .66rem; line-height: 1.2; font-weight: 800; letter-spacing: .16em; }
.feed-header h1 { margin: 0; font: 700 clamp(1.7rem, 4vw, 2.25rem)/1 Georgia, "Times New Roman", serif; letter-spacing: -.04em; }
.mode-badge { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--green); background: var(--green-soft); font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.mode-badge__dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(36,106,80,.12); }
.mode-badge[data-mode="members"] { color: var(--amber); background: #f2e4d2; }
.mode-badge[data-mode="owner_only"] { color: var(--red); background: #f3ddda; }

.welcome-note { margin: 22px 28px 0; padding: 16px 18px; display: flex; gap: 14px; border: 1px solid #b9cec1; border-radius: 14px; background: linear-gradient(135deg, #edf3ed, #f7f4ea); }
.welcome-note__symbol { width: 31px; height: 31px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: white; }
.welcome-note strong { font: 700 1rem/1.2 Georgia, serif; }
.welcome-note p { margin: 4px 0 0; color: #536459; font-size: .82rem; line-height: 1.5; }

.composer { display: flex; gap: 14px; padding: 26px 28px 22px; border-bottom: 1px solid var(--line); }
.avatar { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; border-radius: 50%; border: 1px solid #c6c0b2; background: linear-gradient(145deg, #ded8c9, #f5f0e5); font: 700 1rem/1 Georgia, serif; color: #4c4a43; }
.avatar--small { width: 34px; height: 34px; flex-basis: 34px; font-size: .82rem; }
.composer__body { flex: 1; min-width: 0; }
.composer textarea, .reply-form textarea { width: 100%; resize: vertical; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 1.05rem; line-height: 1.55; }
.composer textarea::placeholder, .reply-form textarea::placeholder { color: #9d988c; }
.guest-name-row { display: flex; align-items: center; gap: 9px; padding: 8px 0 14px; color: var(--muted); font-size: .76rem; }
.guest-name-row input { min-width: 0; max-width: 170px; padding: 5px 8px; border: 0; border-bottom: 1px solid var(--line); outline: 0; background: transparent; color: var(--ink); }
.guest-name-row input:focus { border-color: var(--ink); }
.composer__footer, .reply-form__footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; border-top: 1px solid var(--soft-line); }
.composer__tools, .reply-form__tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.composer__hint { color: var(--muted); font-size: .72rem; }
.composer__submit { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .7rem; }
.attach-button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; font-size: .7rem; font-weight: 700; }
.attach-button:hover:not(:disabled) { border-color: var(--ink); color: var(--ink); background: rgba(255,255,255,.62); }
.attach-button:disabled { cursor: not-allowed; opacity: .45; }
.media-selection { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 4px 0 12px; }
.media-selection:empty { display: none; }
.media-selection__item { position: relative; min-width: 0; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.media-selection__item img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.media-selection__item figcaption { padding: 5px 6px; overflow: hidden; color: var(--muted); font-size: .58rem; text-overflow: ellipsis; white-space: nowrap; }
.media-selection__item button { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; display: grid; place-items: center; padding: 0; border: 1px solid rgba(255,255,255,.72); border-radius: 50%; background: rgba(25,25,24,.82); color: white; cursor: pointer; line-height: 1; }
.media-selection--compact { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 8px; }
.button { border-radius: 999px; padding: 9px 16px; cursor: pointer; font-weight: 750; font-size: .8rem; transition: .18s ease; }
.button:disabled { cursor: not-allowed; opacity: .48; }
.button--ink { border: 1px solid var(--ink); background: var(--ink); color: var(--white); }
.button--ink:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 7px 16px rgba(25,25,24,.18); }
.button--outline { border: 1px solid var(--line); background: transparent; color: var(--ink); }
.button--outline:hover:not(:disabled) { border-color: var(--ink); }
.form-status { min-height: 1em; margin: 8px 0 0; color: var(--muted); font-size: .75rem; }
.form-status.is-error { color: var(--red); }
.form-status.is-good { color: var(--green); }

.feed-controls { min-height: 52px; display: flex; align-items: center; gap: 16px; padding: 0 28px; border-bottom: 1px solid var(--line); font-size: .78rem; }
.feed-controls strong { font: 700 .95rem/1 Georgia, serif; }
.feed-controls .text-button { margin-left: auto; }
.text-button { padding: 0; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: .74rem; text-decoration: underline; text-underline-offset: 3px; }
.text-button:hover { color: var(--ink); }
.moderation-toggle { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .72rem; }

.feed-item { position: relative; display: grid; grid-template-columns: 44px minmax(0,1fr); gap: 13px; padding: 22px 28px; border-bottom: 1px solid var(--soft-line); transition: background .15s ease; }
.feed-item:hover { background: #f9f7f0; }
.feed-item.is-moderated { background: repeating-linear-gradient(-45deg, #f3eee7, #f3eee7 10px, #f8f5ed 10px, #f8f5ed 20px); }
.feed-item__main { min-width: 0; }
.feed-item__meta { display: flex; align-items: baseline; gap: 7px; min-width: 0; }
.feed-item__meta strong { font-size: .87rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-item__meta .username, .feed-item__meta time { color: var(--muted); font-size: .72rem; white-space: nowrap; }
.state-label { padding: 2px 6px; border-radius: 999px; background: #f0d8d4; color: var(--red); font-size: .62rem; font-weight: 800; text-transform: uppercase; }
.feed-item__body { margin: 8px 0 0; overflow-wrap: anywhere; font: 400 .94rem/1.55 Georgia, "Times New Roman", serif; }
.media-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; margin-top: 11px; overflow: hidden; border-radius: 13px; }
.media-gallery a { display: block; min-width: 0; overflow: hidden; border: 1px solid var(--line); background: var(--paper-deep); }
.media-gallery img { display: block; width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .18s ease; }
.media-gallery a:hover img { transform: scale(1.015); }
.media-gallery--1 { display: block; }
.media-gallery--1 a { border-radius: 13px; }
.media-gallery--1 img { height: auto; max-height: 510px; aspect-ratio: auto; object-fit: contain; }
.video-cards { display: grid; gap: 6px; margin-top: 10px; }
.video-card { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--paper); color: var(--ink); text-decoration: none; }
.video-card:hover { border-color: var(--blue); background: #edf3f5; }
.video-card__play { width: 30px; height: 30px; flex: 0 0 30px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--white); font-size: .68rem; }
.video-card > span:last-child { min-width: 0; display: grid; gap: 2px; }
.video-card strong { font-size: .72rem; }
.video-card small { overflow: hidden; color: var(--muted); font-size: .62rem; text-overflow: ellipsis; white-space: nowrap; }
.feed-item__actions { margin-top: 14px; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.action-button { display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border: 1px solid transparent; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; font-size: .7rem; }
.action-button:hover { border-color: var(--line); background: var(--white); color: var(--ink); }
.action-button.owner-action { color: var(--red); }
.empty-state { padding: 70px 30px; text-align: center; color: var(--muted); }
.empty-state > span { display: inline-grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 50%; }
.empty-state h2 { margin: 16px 0 7px; color: var(--ink); font: 700 1.3rem/1 Georgia, serif; }
.empty-state p { margin: 0; font-size: .82rem; }
.load-more { width: 100%; padding: 15px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; }
.load-more:hover { background: var(--paper); color: var(--ink); }
.feed-status { min-height: 30px; margin: 0; padding: 10px 28px; color: var(--muted); font-size: .72rem; }

.right-rail { padding: 24px 20px 40px; display: flex; flex-direction: column; gap: 15px; background: var(--paper); }
.rail-card { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(251,250,246,.72); box-shadow: 0 5px 24px rgba(42,38,29,.035); }
.rail-card h2 { margin: 0; font: 700 1.25rem/1.13 Georgia, "Times New Roman", serif; letter-spacing: -.025em; }
.rail-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.participation-card { background: var(--ink); color: var(--white); border-color: var(--ink); box-shadow: var(--shadow); }
.participation-card .kicker, .participation-card p { color: #aaa79e; }
.participation-card h2 { font-size: 1.48rem; }
.principles { list-style: none; display: grid; gap: 14px; margin: 21px 0 0; padding: 18px 0 0; border-top: 1px solid #3b3b38; }
.principles li { display: flex; gap: 11px; align-items: flex-start; }
.principles li > span { width: 24px; height: 24px; flex: none; display: grid; place-items: center; border: 1px solid #66655f; border-radius: 50%; color: #c8c5bd; font: 700 .66rem/1 Georgia, serif; }
.principles strong { font-size: .8rem; }
.principles p { margin: 2px 0 0; font-size: .7rem; line-height: 1.45; }
.card-copy { margin: 12px 0 16px; color: var(--muted); font-size: .76rem; line-height: 1.55; }

.auth-tabs { display: flex; gap: 5px; margin-bottom: 14px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.auth-tab { flex: 1; padding: 6px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; font-size: .72rem; }
.auth-tab.is-active { background: var(--ink); color: var(--white); }
.auth-form, .settings-form { display: grid; gap: 11px; }
.auth-form label, .settings-form label, .reply-form label { display: grid; gap: 5px; color: var(--muted); font-size: .7rem; font-weight: 700; }
.auth-form input, .settings-form select { width: 100%; min-width: 0; padding: 9px 10px; border: 1px solid var(--line); border-radius: 9px; outline: 0; background: var(--white); color: var(--ink); font-size: .8rem; }
.auth-form input:focus, .settings-form select:focus { border-color: var(--ink); }
.signed-in { display: grid; justify-items: center; gap: 5px; padding: 12px 0 2px; }
.signed-in > span { color: var(--muted); font-size: .74rem; }
.signed-in .button { margin-top: 11px; }

.owner-card { border-color: #cba6a1; background: #faf0ed; }
.owner-seal { padding: 4px 7px; border: 1px solid #b77c74; border-radius: 5px; color: var(--red); font-size: .58rem; font-weight: 900; letter-spacing: .12em; transform: rotate(2deg); }
.check-row { display: flex !important; align-items: center; grid-template-columns: auto 1fr; }
.check-row input { width: auto; }
.report-desk { margin-top: 19px; padding-top: 14px; border-top: 1px solid #dfc4bf; }
.report-desk__head { display: flex; justify-content: space-between; align-items: center; font-size: .78rem; }
.reports-list { display: grid; gap: 8px; margin-top: 10px; }
.report-item { padding: 9px; border: 1px solid #dfc4bf; border-radius: 9px; background: rgba(255,255,255,.46); font-size: .7rem; }
.report-item p { margin: 4px 0 8px; color: var(--muted); line-height: 1.4; }
.report-item__actions { display: flex; gap: 10px; }
.muted { color: var(--muted); font-size: .72rem; }

.thread-backdrop { position: fixed; inset: 0; z-index: 35; background: rgba(25, 25, 24, .32); backdrop-filter: blur(2px); animation: thread-fade-in .16s ease both; }
.thread-card { position: fixed; z-index: 40; top: 58px; right: max(18px, calc((100vw - 1440px) / 2 + 18px)); width: min(430px, calc(100vw - 36px)); max-height: calc(100dvh - 76px); overflow: auto; overscroll-behavior: contain; border-color: #aebfc7; background: #f0f5f6; box-shadow: 0 24px 80px rgba(25, 25, 24, .3); animation: thread-float-in .2s ease both; }
.thread-card .rail-card__head { position: sticky; top: -20px; z-index: 2; margin: -20px -20px 0; padding: 20px; border-bottom: 1px solid rgba(174, 191, 199, .72); background: rgba(240, 245, 246, .96); backdrop-filter: blur(12px); }
.thread-card:focus { outline: none; }
.thread-card:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.thread-open { overflow: hidden; }
@keyframes thread-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes thread-float-in { from { opacity: 0; transform: translate3d(18px, 0, 0) scale(.985); } to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); } }
.icon-button { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer; font-size: 1.1rem; }
.thread-root { margin: 14px 0; padding: 12px; border-left: 2px solid var(--blue); background: rgba(255,255,255,.5); border-radius: 0 10px 10px 0; }
.thread-root strong { font-size: .76rem; }
.thread-root .markdown-body { margin-top: 6px; overflow-wrap: anywhere; font: .8rem/1.45 Georgia, serif; }
.thread-root .media-gallery, .comment .media-gallery { border-radius: 9px; }
.thread-root .media-gallery--1 a, .comment .media-gallery--1 a { border-radius: 9px; }
.thread-root .media-gallery--1 img, .comment .media-gallery--1 img { max-height: 320px; }
.thread-root .video-card, .comment .video-card { padding: 8px 9px; }
.comments-list { display: grid; gap: 0; }
.comment { position: relative; margin-left: calc(var(--thread-depth, 0) * 13px); padding: 12px 4px 12px 22px; border-top: 1px solid #d3dfe2; transition: margin .16s ease; }
.comment::before { content: ""; position: absolute; left: 6px; top: 0; bottom: 0; border-left: 1px solid #b8c8cd; }
.comment__context { margin: 0 0 5px; color: var(--blue); font-size: .62rem; font-weight: 700; }
.comment__meta { display: flex; gap: 6px; align-items: baseline; }
.comment__meta strong { font-size: .74rem; }
.comment__meta span, .comment__meta time { color: var(--muted); font-size: .63rem; }
.comment__body { margin: 5px 0 0; overflow-wrap: anywhere; font: .78rem/1.45 Georgia, serif; }
.comment__actions { margin-top: 5px; }
.reply-form { margin-top: 14px; padding-top: 14px; border-top: 1px solid #b8c8cd; }
.reply-target { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 10px; padding: 8px 10px; border: 1px solid #aebfc7; border-radius: 9px; background: #dde9ec; color: var(--blue); font-size: .7rem; }
.reply-target strong { color: var(--ink); }
.reply-form textarea { margin-top: 8px; padding: 9px; border: 1px solid #b8c8cd; border-radius: 10px; background: rgba(255,255,255,.55); font-size: .82rem; }
.reply-form__footer { margin-top: 8px; color: var(--muted); font-size: .66rem; }

.reaction-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; margin-top: 9px; font-family: Inter, ui-sans-serif, system-ui, sans-serif; }
.reaction-pill { display: inline-flex; align-items: center; gap: 5px; min-height: 27px; padding: 3px 8px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.62); color: var(--muted); cursor: pointer; font-size: .7rem; }
.reaction-pill:hover:not(:disabled), .reaction-pill.is-reacted { border-color: #88a9ba; background: #deebf0; color: var(--ink); }
.reaction-pill.is-reacted { box-shadow: inset 0 0 0 1px rgba(56,94,120,.12); }
.reaction-pill:disabled { cursor: default; }
.reaction-menu { position: relative; }
.reaction-menu > summary { display: inline-flex; align-items: center; gap: 5px; min-height: 27px; padding: 3px 8px; border: 1px dashed var(--line); border-radius: 999px; color: var(--muted); cursor: pointer; font-size: .68rem; list-style: none; user-select: none; }
.reaction-menu > summary::-webkit-details-marker { display: none; }
.reaction-menu > summary:hover, .reaction-menu[open] > summary { border-color: var(--blue); color: var(--ink); background: rgba(255,255,255,.72); }
.reaction-menu__picker { position: absolute; z-index: 8; top: calc(100% + 6px); left: 0; display: flex; gap: 3px; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); box-shadow: 0 12px 30px rgba(25,25,24,.18); }
.reaction-choice { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid transparent; border-radius: 9px; background: transparent; cursor: pointer; font-size: 1.05rem; }
.reaction-choice:hover, .reaction-choice.is-reacted { border-color: #a9bdc7; background: #deebf0; transform: translateY(-1px); }
.comment .reaction-bar { margin-top: 7px; }
.comment .reaction-menu > summary span { display: none; }

.markdown-body > :first-child { margin-top: 0; }
.markdown-body > :last-child { margin-bottom: 0; }
.markdown-body p { margin: .48em 0; }
.markdown-body strong { font-weight: 800; }
.markdown-body del { color: var(--muted); }
.markdown-body a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 2px; }
.markdown-body a:hover { color: var(--ink); }
.markdown-body code { padding: .12em .34em; border: 1px solid var(--line); border-radius: 5px; background: var(--paper-deep); font: .84em/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; }
.markdown-body pre { max-width: 100%; margin: .7em 0; padding: 10px 12px; overflow-x: auto; border: 1px solid var(--line); border-radius: 9px; background: var(--ink); color: var(--white); white-space: pre; }
.markdown-body pre code { padding: 0; border: 0; background: transparent; color: inherit; }
.markdown-body blockquote { margin: .65em 0; padding: .08em 0 .08em .85em; border-left: 3px solid var(--green); color: var(--muted); }
.markdown-body ul, .markdown-body ol { margin: .55em 0; padding-left: 1.4em; }
.markdown-body li + li { margin-top: .18em; }
.markdown-heading { margin: .7em 0 .3em; font-family: Georgia, "Times New Roman", serif; line-height: 1.2; }
.markdown-heading--1 { font-size: 1.22em; }
.markdown-heading--2 { font-size: 1.1em; }
.markdown-heading--3 { font-size: 1em; }

.page-footer { margin-top: auto; display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; padding: 18px 5px 0; color: var(--muted); font-size: .65rem; }
.page-footer a { color: inherit; }

@media (max-width: 1120px) {
  .page-shell { grid-template-columns: 90px minmax(480px, 680px) minmax(280px, 1fr); }
  .left-rail { padding-inline: 14px; align-items: center; }
  .wordmark > span:last-child, .side-nav__item span:last-child, .identity-card__copy { display: none; }
  .side-nav__item { justify-content: center; padding-inline: 8px; }
  .primary-action { width: 48px; height: 48px; padding: 0; font-size: 0; }
  .primary-action::before { content: "+"; font-size: 1.3rem; }
}

@media (max-width: 850px) {
  .page-shell { display: block; border: 0; }
  .left-rail { position: fixed; z-index: 15; top: auto; right: 12px; bottom: 12px; left: 12px; width: auto; height: 58px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 18px; flex-direction: row; align-items: center; background: rgba(244,241,232,.96); box-shadow: 0 12px 40px rgba(25,25,24,.2); backdrop-filter: blur(12px); }
  .wordmark { margin-right: auto; }
  .wordmark > span:last-child { display: inline; }
  .side-nav { display: flex; margin: 0; }
  .side-nav__item { width: 42px; }
  .primary-action { margin: 0 0 0 5px; width: 42px; height: 42px; }
  .identity-card { display: none; }
  .feed-column { border-right: 0; }
  .right-rail { padding-bottom: 94px; }
  .participation-card { display: none; }
  .thread-card { top: 54px; right: 10px; bottom: 10px; left: 10px; width: auto; max-height: none; border-radius: 22px; animation-name: thread-sheet-in; }
  @keyframes thread-sheet-in { from { opacity: 0; transform: translate3d(0, 24px, 0) scale(.99); } to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); } }
}

@media (max-width: 560px) {
  .feed-header { min-height: 86px; padding: 18px 17px; }
  .feed-header h1 { font-size: 1.55rem; }
  .mode-badge { padding: 7px 9px; font-size: .62rem; }
  .welcome-note { margin: 14px 14px 0; padding: 13px; }
  .composer { padding: 21px 15px 18px; gap: 10px; }
  .composer .avatar { width: 36px; height: 36px; flex-basis: 36px; }
  .composer__hint { display: none; }
  .feed-controls { padding-inline: 16px; }
  .feed-item { padding: 19px 15px; grid-template-columns: 38px minmax(0,1fr); gap: 10px; }
  .feed-item .avatar { width: 38px; height: 38px; flex-basis: 38px; }
  .right-rail { padding: 15px 14px 92px; }
  .wordmark > span:last-child { display: none; }
  .side-nav__item { width: 38px; }
  .thread-card { top: 46px; right: 6px; bottom: 6px; left: 6px; padding: 18px; border-radius: 18px; }
  .thread-card .rail-card__head { top: -18px; margin: -18px -18px 0; padding: 18px; }
  .comment { margin-left: calc(var(--thread-depth, 0) * 9px); }
  .reaction-menu__picker { position: fixed; top: auto; right: 12px; bottom: 14px; left: 12px; justify-content: space-around; padding: 10px; border-radius: 16px; }
  .reaction-choice { width: 42px; height: 42px; font-size: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
