:root {
  --paper: #f8f6f1;
  --surface: #fffefb;
  --ink: #272421;
  --muted: #77716b;
  --line: #e6e1d9;
  --coral: #d95f50;
  --coral-dark: #af4338;
  --coral-soft: #f6e2dc;
  --sage: #617c68;
  --sage-soft: #e6eee7;
  --chestnut: #704434;
  --yellow: #f1bf5c;
  --shadow: 0 14px 38px rgba(63, 49, 38, 0.11);
  --sidebar: 252px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  letter-spacing: 0;
}
button, textarea, input { font: inherit; }
button { color: inherit; }
button:focus-visible, textarea:focus-visible, label:has(input:focus-visible) {
  outline: 3px solid rgba(217, 95, 80, .24);
  outline-offset: 2px;
}

.app-shell { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  width: var(--sidebar);
  padding: 28px 18px 22px;
  background: #f1eee8;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px; color: inherit; text-decoration: none; }
.brand-mark {
  display: grid; place-items: center; width: 43px; height: 43px; flex: 0 0 auto;
  border-radius: 50%; background: var(--chestnut); color: white; font-family: "STKaiti", "KaiTi", serif; font-size: 23px;
  box-shadow: inset 0 0 0 4px rgba(255,255,255,.13);
}
.brand strong { display: block; font-family: "STKaiti", "KaiTi", serif; font-size: 21px; font-weight: 400; }
.brand small, .member-row small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; }
.side-nav { display: grid; gap: 6px; margin-top: 36px; }
.nav-item {
  width: 100%; min-height: 44px; border: 0; border-radius: 7px; padding: 0 12px;
  display: grid; grid-template-columns: 20px 1fr auto; gap: 10px; align-items: center;
  background: transparent; color: #5f5a55; cursor: pointer; text-align: left;
}
.nav-item:hover { background: rgba(255,255,255,.6); color: var(--ink); }
.nav-item.active { color: var(--coral-dark); background: var(--coral-soft); font-weight: 600; }
.nav-item svg { width: 18px; }
.nav-item b { min-width: 22px; color: var(--muted); font-size: 11px; font-weight: 500; text-align: right; }
.members { margin-top: 36px; padding: 0 8px; }
.section-label { color: #938b82; font-size: 10px; font-weight: 700; letter-spacing: .14em; }
.member-row { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; margin-top: 15px; }
.member-row strong { display: block; font-size: 13px; font-weight: 600; }
.avatar {
  display: inline-grid; place-items: center; width: 34px; height: 34px; flex: 0 0 auto;
  border-radius: 50%; color: white; font-family: "STKaiti", "KaiTi", serif; font-size: 16px;
}
.avatar-coral { background: var(--coral); }
.avatar-green { background: var(--sage); }
.avatar-unknown { background: #918980; }
.avatar-unknown svg { width: 13px; }
.online-dot, .live-dot { display: inline-block; border-radius: 50%; background: #55a46d; box-shadow: 0 0 0 3px #dfeae1; }
.online-dot { width: 8px; height: 8px; }
.live-dot { width: 7px; height: 7px; }
.privacy-note {
  margin-top: auto; padding: 14px; display: flex; gap: 10px; align-items: flex-start;
  background: rgba(255,255,255,.6); border: 1px solid var(--line); border-radius: 8px;
}
.privacy-note svg { width: 17px; color: var(--sage); }
.privacy-note strong, .privacy-note span { display: block; }
.privacy-note strong { font-size: 12px; }
.privacy-note span { margin-top: 3px; color: var(--muted); font-size: 10px; line-height: 1.45; }

.main { grid-column: 2; min-width: 0; }
.topbar {
  position: sticky; top: 0; z-index: 20; height: 66px; padding: 0 34px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(248,246,241,.88); border-bottom: 1px solid rgba(230,225,217,.85); backdrop-filter: blur(14px);
}
.top-title { display: flex; align-items: center; gap: 9px; }
.top-title strong { font-family: "STKaiti", "KaiTi", serif; font-size: 18px; font-weight: 400; }
.private-chip {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 7px; border-radius: 99px;
  background: var(--sage-soft); color: var(--sage); font-size: 10px; font-weight: 600;
}
.private-chip svg { width: 11px; height: 11px; }
.primary-button {
  min-height: 42px; padding: 0 18px; border: 0; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--coral); color: white; font-weight: 600; cursor: pointer; box-shadow: 0 7px 18px rgba(175,67,56,.18);
}
.primary-button:hover { background: var(--coral-dark); transform: translateY(-1px); }
.primary-button svg { width: 17px; }
.primary-button.compact { min-height: 38px; padding-inline: 14px; font-size: 13px; }
.icon-button {
  display: grid; place-items: center; width: 38px; height: 38px; padding: 0;
  border: 1px solid var(--line); border-radius: 50%; background: var(--surface); cursor: pointer;
}
.icon-button:hover { background: #f3efe8; }
.icon-button svg { width: 18px; }
.mobile-menu { display: none; }
.content-wrap { width: min(940px, calc(100% - 64px)); margin: 30px auto 80px; }

.cover { position: relative; height: 286px; overflow: hidden; border-radius: 8px; background: #8c6b55; box-shadow: var(--shadow); }
.cover > img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.cover-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(25,21,18,.66), rgba(25,21,18,.19) 60%, rgba(25,21,18,.08)); }
.cover-content { position: absolute; inset: auto 32px 28px; color: white; }
.cover-kicker { font-size: 10px; font-weight: 700; letter-spacing: .18em; opacity: .78; }
.cover h1 { margin: 7px 0 3px; font-family: "STKaiti", "KaiTi", serif; font-size: 42px; font-weight: 400; letter-spacing: 0; }
.cover p { margin: 0; font-size: 14px; opacity: .92; }
.cover-meta { display: flex; gap: 18px; margin-top: 18px; font-size: 11px; opacity: .86; }
.cover-meta span { display: flex; align-items: center; gap: 6px; }
.cover-meta svg { width: 14px; }

.composer-card {
  position: relative; z-index: 2; width: calc(100% - 56px); min-height: 78px; margin: -13px auto 34px; padding: 16px 18px;
  display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 9px 28px rgba(63,49,38,.08);
}
.composer-avatars { display: flex; min-width: 53px; }
.composer-avatars .avatar + .avatar { margin-left: -14px; box-shadow: 0 0 0 3px var(--surface); }
.composer-prompt {
  min-width: 0; flex: 1; height: 43px; padding: 0 15px; overflow: hidden;
  border: 1px solid var(--line); border-radius: 6px; background: #f8f6f2; color: #999189; cursor: text; text-align: left;
}
.composer-prompt:hover { border-color: #d3cbc1; }
.quick-actions { display: flex; gap: 4px; }
.quick-actions button {
  min-width: 54px; height: 43px; padding: 0 8px; border: 0; border-radius: 6px;
  display: flex; align-items: center; justify-content: center; gap: 5px; background: transparent; color: #655f59; font-size: 12px; cursor: pointer;
}
.quick-actions button:hover { background: #f4f0e9; color: var(--coral-dark); }
.quick-actions svg { width: 16px; }
.feed-heading { position: relative; display: flex; align-items: flex-end; justify-content: space-between; margin: 0 4px 18px; }
.feed-heading h2 { margin: 4px 0 0; font-family: "STKaiti", "KaiTi", serif; font-size: 26px; font-weight: 400; }
.filter-button {
  height: 36px; padding: 0 11px; display: flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: #69635d; font-size: 12px; cursor: pointer;
}
.filter-button svg { width: 14px; }
.filter-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 10; width: 142px; padding: 5px;
  display: none; background: var(--surface); border: 1px solid var(--line); border-radius: 7px; box-shadow: var(--shadow);
}
.filter-menu.open { display: grid; }
.filter-menu button { padding: 9px 10px; border: 0; border-radius: 5px; background: transparent; font-size: 12px; text-align: left; cursor: pointer; }
.filter-menu button:hover { background: var(--coral-soft); color: var(--coral-dark); }
.feed { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.post-card { overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 5px 20px rgba(63,49,38,.05); }
.post-card.wide { grid-column: 1 / -1; }
.post-media { position: relative; min-height: 230px; aspect-ratio: 4/3; overflow: hidden; background: #e9e5de; cursor: zoom-in; }
.post-card.wide .post-media { aspect-ratio: 16/9; }
.post-media img, .post-media video { width: 100%; height: 100%; display: block; object-fit: cover; }
.post-media video { background: #1f1e1c; }
.video-badge { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 99px; color: white; background: rgba(24,22,20,.72); font-size: 10px; backdrop-filter: blur(6px); }
.video-badge svg { width: 12px; }
.sticker-stage { aspect-ratio: 4/3; display: grid; place-items: center; background: #f2eadf; cursor: default; }
.sticker-stage[data-index="1"] { background: #e4eee8; }
.sticker-stage[data-index="2"] { background: #f5e4e1; }
.sticker-stage[data-index="3"] { background: #eee9f1; }
.sticker-stage .emoji-sticker { font-size: 90px; filter: drop-shadow(0 9px 4px rgba(60,42,28,.13)); transform: rotate(-4deg); }
.sticker-stage img { width: 70%; height: 70%; object-fit: contain; }
.post-body { padding: 15px 16px 16px; }
.post-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.post-author { display: flex; align-items: center; gap: 9px; }
.post-author .avatar { width: 28px; height: 28px; font-size: 13px; }
.post-author strong { display: block; font-size: 12px; }
.post-author time { display: block; margin-top: 1px; color: var(--muted); font-size: 10px; }
.post-menu-button { width: 32px; height: 32px; border: 0; border-radius: 50%; display: grid; place-items: center; background: transparent; color: var(--muted); cursor: pointer; }
.post-menu-button:hover { background: #f2eee8; color: var(--ink); }
.post-menu-button svg { width: 17px; }
.post-description { margin: 13px 0 0; color: #504b46; font-size: 13px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.interaction-bar { margin-top: 14px; padding-top: 11px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid #eee9e2; }
.reaction-group { display: flex; align-items: center; gap: 4px; }
.reaction-button { min-width: 34px; height: 32px; padding: 0 8px; border: 1px solid transparent; border-radius: 99px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; background: transparent; cursor: pointer; }
.reaction-button:hover { background: #f5f1eb; }
.reaction-button.active { border-color: #e9b5aa; background: var(--coral-soft); }
.reaction-button span { font-size: 16px; line-height: 1; }
.reaction-button b { color: var(--muted); font-size: 9px; font-weight: 600; }
.reply-toggle { height: 32px; padding: 0 8px; border: 0; border-radius: 6px; display: inline-flex; align-items: center; gap: 5px; background: transparent; color: #716a64; font-size: 10px; cursor: pointer; }
.reply-toggle:hover, .reply-toggle.active { background: var(--sage-soft); color: var(--sage); }
.reply-toggle svg { width: 14px; }
.reply-panel { margin: 11px -16px -16px; padding: 13px 16px 15px; background: #f8f6f2; border-top: 1px solid #ece6de; }
.reply-list { display: grid; gap: 11px; margin-bottom: 12px; }
.reply-item { display: grid; grid-template-columns: 27px 1fr 26px; gap: 8px; align-items: start; }
.reply-item .avatar { width: 27px; height: 27px; font-size: 12px; }
.reply-bubble { min-width: 0; }
.reply-bubble strong { font-size: 10px; }
.reply-bubble time { margin-left: 6px; color: #a09991; font-size: 8px; }
.reply-bubble p { margin: 3px 0 0; color: #4f4a45; font-size: 11px; line-height: 1.55; overflow-wrap: anywhere; }
.reply-delete { width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; background: transparent; color: #a29a91; cursor: pointer; }
.reply-delete:hover { background: #ece6de; color: var(--coral-dark); }
.reply-delete svg { width: 13px; }
.reply-empty { margin: 0 0 12px; color: #999189; font-size: 10px; text-align: center; }
.reply-form { display: grid; grid-template-columns: 30px minmax(0, 1fr) 34px; gap: 7px; align-items: center; }
.reply-member { width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.reply-member .avatar { width: 30px; height: 30px; font-size: 13px; }
.reply-form input { min-width: 0; height: 36px; padding: 0 11px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); font-size: 11px; outline: 0; }
.reply-form input:focus { border-color: var(--sage); box-shadow: 0 0 0 3px rgba(97,124,104,.11); }
.reply-send { width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; background: var(--sage); color: white; cursor: pointer; }
.reply-send:hover { background: #4d6856; }
.reply-send svg { width: 14px; }
.empty-state { margin-top: 28px; padding: 64px 24px; border: 1px dashed #d8d0c6; border-radius: 8px; text-align: center; }
.empty-icon { width: 58px; height: 58px; margin: 0 auto 16px; display: grid; place-items: center; border-radius: 50%; background: var(--sage-soft); color: var(--sage); }
.empty-icon svg { width: 25px; }
.empty-state h3 { margin: 0; font-family: "STKaiti", "KaiTi", serif; font-size: 22px; font-weight: 400; }
.empty-state p { margin: 8px 0 22px; color: var(--muted); font-size: 12px; }

.login-dialog { width: min(420px, calc(100% - 28px)); padding: 0; border: 0; border-radius: 8px; background: var(--surface); box-shadow: 0 30px 90px rgba(38,31,26,.32); }
.login-dialog::backdrop { background: rgba(39,36,33,.66); backdrop-filter: blur(6px); }
.login-shell { padding: 32px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.login-shell .brand-mark { width: 52px; height: 52px; margin-bottom: 16px; font-size: 27px; }
.login-shell h2 { margin: 5px 0 5px; font-family: "STKaiti", "KaiTi", serif; font-size: 29px; font-weight: 400; }
.login-shell > p { margin: 0 0 23px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.login-shell label { width: 100%; text-align: left; }
.login-shell label > span { display: block; margin-bottom: 7px; font-size: 11px; font-weight: 600; }
.password-input { height: 46px; padding: 0 6px 0 13px; display: grid; grid-template-columns: 20px 1fr 36px; gap: 8px; align-items: center; border: 1px solid var(--line); border-radius: 7px; background: #fbfaf7; }
.password-input:focus-within { border-color: var(--coral); box-shadow: 0 0 0 3px rgba(217,95,80,.12); }
.password-input > svg { width: 16px; color: var(--sage); }
.password-input input { min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font-size: 13px; }
.password-input button { width: 34px; height: 34px; border: 0; border-radius: 50%; display: grid; place-items: center; background: transparent; color: var(--muted); cursor: pointer; }
.password-input button:hover { background: #f1eee8; }
.password-input button svg { width: 16px; }
.login-shell .login-error { min-height: 20px; margin: 7px 0 3px; align-self: stretch; color: var(--coral-dark); font-size: 10px; text-align: left; }
.login-button { width: 100%; }
.login-shell > small { margin-top: 16px; display: flex; align-items: center; gap: 6px; color: #8d867f; font-size: 9px; }
.login-shell > small svg { width: 13px; color: var(--sage); }
.member-dialog { width: min(390px, calc(100% - 28px)); padding: 0; border: 0; border-radius: 8px; background: var(--surface); box-shadow: 0 30px 90px rgba(38,31,26,.32); }
.member-dialog::backdrop { background: rgba(39,36,33,.58); backdrop-filter: blur(5px); }
.member-picker { padding: 28px; text-align: center; }
.member-picker h2 { margin: 5px 0 4px; font-family: "STKaiti", "KaiTi", serif; font-size: 27px; font-weight: 400; }
.member-picker > p { margin: 0 0 21px; color: var(--muted); font-size: 11px; }
.member-picker > div { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.member-picker button { min-height: 88px; padding: 13px; border: 1px solid var(--line); border-radius: 7px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: #fbfaf7; cursor: pointer; }
.member-picker button:hover { border-color: #d9a096; background: var(--coral-soft); transform: translateY(-1px); }
.member-picker button strong { font-size: 11px; }
.composer-dialog { width: min(590px, calc(100% - 24px)); max-height: calc(100vh - 30px); padding: 0; border: 0; border-radius: 8px; background: var(--surface); box-shadow: 0 30px 90px rgba(38,31,26,.28); overflow: auto; }
.composer-dialog::backdrop, .viewer-dialog::backdrop { background: rgba(39,36,33,.58); backdrop-filter: blur(3px); }
.dialog-shell { margin: 0; }
.dialog-header { padding: 22px 24px 14px; display: flex; align-items: flex-start; justify-content: space-between; }
.dialog-header h2 { margin: 3px 0 0; font-family: "STKaiti", "KaiTi", serif; font-size: 27px; font-weight: 400; }
.type-tabs { margin: 0 24px 17px; padding: 4px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; background: #f1eee8; border-radius: 7px; }
.type-tab { height: 38px; border: 0; border-radius: 5px; display: flex; align-items: center; justify-content: center; gap: 7px; background: transparent; color: var(--muted); font-size: 12px; cursor: pointer; }
.type-tab.active { background: var(--surface); color: var(--coral-dark); font-weight: 600; box-shadow: 0 2px 8px rgba(63,49,38,.07); }
.type-tab svg { width: 15px; }
.media-panel, .sticker-panel { margin: 0 24px; }
.drop-zone { min-height: 190px; padding: 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1.5px dashed #cfc6bb; border-radius: 7px; background: #faf8f4; cursor: pointer; transition: .2s ease; }
.drop-zone:hover, .drop-zone.dragging { border-color: var(--coral); background: #fcf3f0; }
.drop-zone strong { margin-top: 12px; font-size: 13px; }
.drop-zone small { margin-top: 5px; color: var(--muted); font-size: 10px; }
.drop-icon { display: grid; place-items: center; width: 45px; height: 45px; border-radius: 50%; background: var(--coral-soft); color: var(--coral); }
.drop-icon svg { width: 20px; }
.media-preview { position: relative; min-height: 190px; max-height: 280px; overflow: hidden; border-radius: 7px; background: #eeeae3; }
.media-preview img, .media-preview video { width: 100%; max-height: 280px; display: block; object-fit: contain; }
.remove-preview { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 50%; color: white; background: rgba(28,25,23,.7); cursor: pointer; }
.remove-preview svg { width: 15px; }
.sticker-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.sticker-option { aspect-ratio: 1; border: 1px solid var(--line); border-radius: 7px; display: grid; place-items: center; background: #faf8f4; font-size: 34px; cursor: pointer; }
.sticker-option:hover { transform: translateY(-2px); border-color: #d5a096; }
.sticker-option.selected { border: 2px solid var(--coral); background: var(--coral-soft); }
.custom-sticker { height: 40px; margin-top: 11px; display: flex; align-items: center; justify-content: center; gap: 7px; border: 1px dashed #cec5ba; border-radius: 7px; color: #6e6760; font-size: 11px; cursor: pointer; }
.custom-sticker:hover { border-color: var(--sage); color: var(--sage); }
.custom-sticker svg { width: 15px; }
.custom-sticker-preview { margin-top: 10px; padding: 12px; position: relative; text-align: center; border-radius: 7px; background: #f2eee8; }
.custom-sticker-preview img { width: 96px; height: 96px; object-fit: contain; }
.description-field { position: relative; margin: 18px 24px 0; display: block; }
.description-field > span { display: block; margin-bottom: 7px; font-size: 12px; font-weight: 600; }
.description-field > span small { color: var(--muted); font-weight: 400; }
.description-field textarea { width: 100%; min-height: 90px; resize: vertical; padding: 12px 13px 26px; border: 1px solid var(--line); border-radius: 7px; background: #fcfbf8; color: var(--ink); font-size: 12px; line-height: 1.6; }
.description-field b { position: absolute; right: 10px; bottom: 9px; color: #a29a91; font-size: 9px; font-weight: 500; }
.dialog-footer { margin-top: 20px; padding: 15px 24px 20px; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); }
.author-select { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 10px; }
.author-select label { cursor: pointer; }
.author-select input { position: absolute; opacity: 0; pointer-events: none; }
.author-select .avatar { width: 30px; height: 30px; font-size: 13px; opacity: .45; }
.author-select input:checked + .avatar { opacity: 1; box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--yellow); }

.viewer-dialog { width: min(1000px, calc(100% - 32px)); height: min(86vh, 760px); padding: 0; border: 0; background: #171615; overflow: hidden; }
.viewer-dialog #viewerContent { width: 100%; height: 100%; display: grid; place-items: center; }
.viewer-dialog img, .viewer-dialog video { max-width: 100%; max-height: 100%; object-fit: contain; }
.viewer-close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255,255,255,.13); color: white; cursor: pointer; }
.viewer-close svg { width: 19px; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 100; padding: 11px 16px; display: flex; align-items: center; gap: 8px; border-radius: 7px; background: #292724; color: white; font-size: 12px; opacity: 0; pointer-events: none; transform: translate(-50%, 12px); transition: .25s ease; box-shadow: var(--shadow); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast svg { width: 16px; color: #83c996; }
.mobile-overlay { display: none; }

@media (max-width: 820px) {
  .app-shell { display: block; }
  .sidebar { transform: translateX(-100%); transition: transform .25s ease; box-shadow: var(--shadow); }
  body.menu-open .sidebar { transform: translateX(0); }
  .mobile-overlay { position: fixed; inset: 0; z-index: 25; background: rgba(39,36,33,.42); }
  body.menu-open .mobile-overlay { display: block; }
  .main { min-width: 0; }
  .topbar { padding: 0 18px; }
  .mobile-menu { display: grid; }
  .content-wrap { width: min(100% - 28px, 680px); margin-top: 18px; }
  .cover { height: 245px; }
  .cover-content { inset: auto 22px 24px; }
  .cover h1 { font-size: 35px; }
  .composer-card { width: calc(100% - 24px); }
  .feed { grid-template-columns: 1fr; }
  .post-card.wide { grid-column: auto; }
  .post-card.wide .post-media { aspect-ratio: 4/3; }
}

@media (max-width: 560px) {
  .topbar { height: 60px; }
  .top-title .private-chip { display: none; }
  .primary-button.compact span { display: none; }
  .primary-button.compact { width: 38px; min-height: 38px; padding: 0; }
  .content-wrap { width: calc(100% - 20px); margin: 10px auto 64px; }
  .cover { height: 230px; border-radius: 7px; }
  .cover > img { object-position: 57% center; }
  .cover-shade { background: linear-gradient(90deg, rgba(25,21,18,.64), rgba(25,21,18,.18)); }
  .cover-content { inset: auto 18px 20px; }
  .cover h1 { font-size: 32px; }
  .cover p { max-width: 250px; font-size: 12px; }
  .composer-card { width: calc(100% - 14px); min-height: 67px; margin-bottom: 28px; padding: 12px; }
  .composer-avatars { min-width: 40px; }
  .composer-avatars .avatar { width: 28px; height: 28px; font-size: 13px; }
  .composer-avatars .avatar + .avatar { margin-left: -12px; }
  .composer-prompt { height: 40px; font-size: 11px; }
  .quick-actions button { min-width: 38px; width: 38px; height: 38px; padding: 0; }
  .quick-actions span { display: none; }
  .quick-actions svg { width: 17px; }
  .feed-heading h2 { font-size: 23px; }
  .filter-button span { display: none; }
  .post-media { min-height: 220px; }
  .reaction-button { min-width: 32px; padding-inline: 6px; }
  .reply-panel { margin-left: -16px; margin-right: -16px; }
  .dialog-header { padding: 18px 16px 12px; }
  .type-tabs, .media-panel, .sticker-panel { margin-left: 16px; margin-right: 16px; }
  .description-field { margin-left: 16px; margin-right: 16px; }
  .sticker-grid { grid-template-columns: repeat(5, 1fr); gap: 6px; }
  .sticker-option { font-size: 28px; }
  .dialog-footer { padding: 14px 16px 18px; }
  .dialog-footer .primary-button { padding-inline: 13px; font-size: 12px; }
  .author-select > span { display: none; }
}

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