:root {
  --bg: #f0f2f5; --card: #fff; --text: #050505; --text2: #65676b; --line: #ced0d4; --hover: #f2f2f2;
  --input: #f0f2f5; --accent: #1a6ed8; --accent-soft: #e7f0fd; --shadow: 0 1px 2px rgba(0,0,0,.2);
  --menu-shadow: 0 12px 28px rgba(0,0,0,.2), 0 2px 4px rgba(0,0,0,.1); --green: #31a24c; --red: #e41e3f;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #18191a; --card: #242526; --text: #e4e6eb; --text2: #b0b3b8; --line: #3e4042; --hover: #3a3b3c;
    --input: #3a3b3c; --accent: #4b97f0; --accent-soft: #263951; --shadow: 0 1px 2px rgba(0,0,0,.4); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #18191a; --card: #242526; --text: #e4e6eb; --text2: #b0b3b8; --line: #3e4042; --hover: #3a3b3c;
  --input: #3a3b3c; --accent: #4b97f0; --accent-soft: #263951; --shadow: 0 1px 2px rgba(0,0,0,.4); color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.34 -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input, textarea, select { font: inherit; color: inherit; }
svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
[hidden] { display: none !important; }
.muted { color: var(--text2); }
.link { color: var(--accent); }
.link:hover, .hover-u:hover { text-decoration: underline; }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 20; height: 56px; background: var(--card); box-shadow: var(--shadow); display: flex; align-items: center; justify-content: space-between; padding: 0 16px; gap: 8px; }
.tb-left { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1; }
.logo img { width: 40px; height: 40px; display: block; }
.search { display: flex; align-items: center; gap: 6px; background: var(--input); border-radius: 50px; padding: 0 12px; height: 40px; width: 240px; max-width: 100%; color: var(--text2); }
.search input { border: 0; background: none; outline: none; width: 100%; color: var(--text); }
.tb-center { display: flex; height: 100%; flex: 0 1 560px; justify-content: center; }
.tb-center a { flex: 1; max-width: 112px; display: flex; align-items: center; justify-content: center; color: var(--text2); border-bottom: 3px solid transparent; margin-top: 3px; border-radius: 8px 8px 0 0; }
.tb-center a:hover { background: var(--hover); }
.tb-center a svg { width: 26px; height: 26px; }
.tb-center a.active { color: var(--accent); border-bottom-color: var(--accent); }
.tb-right { display: flex; gap: 8px; flex: 1; justify-content: flex-end; }
.circle { width: 40px; height: 40px; border-radius: 50%; background: var(--input); display: grid; place-items: center; overflow: hidden; }
.circle:hover { filter: brightness(.95); }
.avatar-btn img { width: 100%; height: 100%; object-fit: cover; }

.menu { position: fixed; z-index: 40; top: 52px; right: 12px; width: 340px; max-width: calc(100vw - 24px); background: var(--card); border-radius: 8px; box-shadow: var(--menu-shadow); padding: 8px; }
.menu-item { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 6px; width: 100%; text-align: left; font-weight: 500; }
.menu-item:hover { background: var(--hover); }
.menu-item .ic { width: 36px; height: 36px; border-radius: 50%; background: var(--input); display: grid; place-items: center; }
.menu-item small { display: block; font-weight: 400; color: var(--text2); }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 8px; }

/* Layout */
.layout { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 680px) minmax(0, 360px); justify-content: space-between; gap: 16px; }
.left, .right { position: sticky; top: 56px; align-self: start; max-height: calc(100vh - 56px); overflow-y: auto; padding: 16px 8px; }
main { padding: 16px 0 60px; min-width: 0; }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 8px; font-weight: 500; }
.nav-item:hover { background: var(--hover); }
.nav-item .ic { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; }
.nav-item .ic svg { width: 24px; height: 24px; }
.nav-item img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.side-h { color: var(--text2); font-weight: 600; font-size: 17px; margin: 12px 8px 4px; }
.foot { font-size: 13px; color: var(--text2); padding: 12px 8px; }

.profile-mode .layout { display: block; }
.profile-mode .left, .profile-mode .right { display: none; }

/* Cards */
.card { background: var(--card); border-radius: 8px; box-shadow: var(--shadow); margin-bottom: 16px; }
.card-pad { padding: 12px 16px; }
.card h2 { font-size: 20px; margin: 0 0 12px; }

/* Profile header */
.phead { background: var(--card); box-shadow: var(--shadow); margin: -16px 0 16px; }
.phead-in { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.cover { position: relative; aspect-ratio: 2.7 / 1; max-height: 400px; width: 100%; border-radius: 0 0 8px 8px; overflow: hidden; background: linear-gradient(135deg, #a7c4ef, #5a8fd8 50%, #2d5aa0); }
.cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover .edit-cover { position: absolute; right: 16px; bottom: 16px; z-index: 3; }
.pinfo .big-avatar, .pinfo .pactions { position: relative; z-index: 4; }
.pinfo { display: flex; align-items: flex-end; gap: 16px; padding: 0 16px 16px; margin-top: -84px; position: relative; flex-wrap: wrap; pointer-events: none; }
.pinfo > * { pointer-events: auto; }
.big-avatar { width: 168px; height: 168px; border-radius: 50%; border: 4px solid var(--card); background: var(--input); overflow: hidden; position: relative; flex: none; }
.big-avatar img { width: 100%; height: 100%; object-fit: cover; }
.big-avatar .cam { position: absolute; right: 8px; bottom: 8px; }
.pname { flex: 1; min-width: 200px; padding-bottom: 8px; }
.pname h1 { margin: 0; font-size: 32px; line-height: 1.2; }
.pactions { display: flex; gap: 8px; padding-bottom: 12px; }
.ptabs { display: flex; border-top: 1px solid var(--line); margin: 0 16px; overflow-x: auto; }
.ptabs a { padding: 16px; font-weight: 600; color: var(--text2); border-bottom: 3px solid transparent; white-space: nowrap; }
.ptabs a:hover { background: var(--hover); border-radius: 6px 6px 0 0; }
.ptabs a.active { color: var(--accent); border-bottom-color: var(--accent); }
.pbody { max-width: 1100px; margin: 0 auto; padding: 0 16px; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 16px; align-items: start; }
.pbody .side { position: sticky; top: 72px; }
.pbody.single { display: block; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 6px; font-weight: 600; background: var(--input); }
.btn:hover { filter: brightness(.95); }
.btn.primary { background: var(--accent); color: #fff; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; cursor: default; }
.btn svg { width: 16px; height: 16px; }

.intro-row { display: flex; gap: 12px; align-items: center; padding: 6px 0; }
.intro-row svg { color: var(--text2); }
.bio { text-align: center; padding: 4px 0 12px; border-bottom: 1px solid var(--line); margin-bottom: 8px; white-space: pre-wrap; }
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; border-radius: 8px; overflow: hidden; }
.photo-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; cursor: pointer; }
.photo-grid.big { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); border-radius: 0; gap: 8px; }
.photo-grid.big img { border-radius: 8px; }

/* Composer */
.composer .row { display: flex; gap: 8px; align-items: center; }
.avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--input); flex: none; display: block; }
.avatar.sm { width: 32px; height: 32px; }
.fake-input { flex: 1; text-align: left; background: var(--input); border-radius: 20px; padding: 0 12px; height: 40px; color: var(--text2); font-size: 17px; }
.fake-input:hover { filter: brightness(.96); }
.composer .acts { display: flex; border-top: 1px solid var(--line); margin-top: 12px; padding-top: 8px; }
.composer .acts button { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 8px; border-radius: 8px; color: var(--text2); font-weight: 600; }
.composer .acts button:hover { background: var(--hover); }

/* Posts */
.post-h { display: flex; gap: 8px; padding: 12px 16px 0; align-items: flex-start; }
.post-h .who { flex: 1; min-width: 0; }
.post-h .name { font-weight: 600; }
.post-h .meta { font-size: 13px; color: var(--text2); display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.post-h .meta svg { width: 12px; height: 12px; }
.dots { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--text2); }
.dots:hover { background: var(--hover); }
.pin-flag { font-size: 13px; color: var(--text2); padding: 10px 16px 0; display: flex; gap: 6px; align-items: center; }
.pin-flag svg { width: 14px; height: 14px; }
.post-body { padding: 4px 16px 12px; white-space: pre-wrap; word-wrap: break-word; overflow-wrap: anywhere; }
.post-body.short { font-size: 24px; line-height: 1.25; }
.post-body a { color: var(--accent); }
.see-more { font-weight: 600; cursor: pointer; }
.bgpost { margin: 4px 0 0; min-height: 320px; display: grid; place-items: center; text-align: center; color: #fff; font-size: 28px; font-weight: 700; padding: 40px 32px; white-space: pre-wrap; overflow-wrap: anywhere; }
.bgpost, .cmp-text.bgmode, .bg-row button[class*="bg-"] { background: var(--grad); color: var(--gtext, #fff); }
.bg-blue { --grad: linear-gradient(135deg, #2f86f0, #1449a3); }
.bg-red { --grad: linear-gradient(135deg, #f5576c, #c0152f); }
.bg-purple { --grad: linear-gradient(135deg, #9b5de5, #5a189a); }
.bg-sunset { --grad: linear-gradient(135deg, #f9a825, #e63e6d); }
.bg-ocean { --grad: linear-gradient(135deg, #00b4d8, #0353a4); }
.bg-forest { --grad: linear-gradient(135deg, #52b788, #1b4332); }
.bg-night { --grad: linear-gradient(135deg, #3a3a5c, #0b0b1a); }
.bg-peach { --grad: linear-gradient(135deg, #ffd6a5, #ff8fab); --gtext: #3a1a1a; }

.gallery { display: grid; gap: 3px; margin-top: 4px; }
.gallery .g { position: relative; overflow: hidden; background: var(--input); cursor: pointer; }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery.n1 .g img { height: auto; max-height: 720px; object-fit: contain; background: #000; }
.gallery.n1.tall .g img { max-height: 680px; }
.gallery.n2 { grid-template-columns: 1fr 1fr; }
.gallery.n2 .g { aspect-ratio: 1 / 1; }
.gallery.n3 { grid-template-columns: 1fr 1fr; grid-template-rows: 2fr 1fr; aspect-ratio: 1 / 1; }
.gallery.n3 .g:first-child { grid-column: span 2; }
.gallery.n4 { grid-template-columns: 1fr 1fr; }
.gallery.n4 .g { aspect-ratio: 1 / 1; }
.gallery.n5 { grid-template-columns: repeat(6, 1fr); }
.gallery.n5 .g { grid-column: span 3; aspect-ratio: 1 / 1; }
.gallery.n5 .g:nth-child(n+3) { grid-column: span 2; }
.gallery .more { position: absolute; inset: 0; background: rgba(0,0,0,.45); color: #fff; font-size: 32px; font-weight: 600; display: grid; place-items: center; }

.counts { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; color: var(--text2); gap: 8px; }
.rx-sum { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.rx-sum:hover span { text-decoration: underline; }
.rx-icons { display: flex; }
.rx-icons i { font-style: normal; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; background: var(--card); box-shadow: 0 0 0 2px var(--card); margin-left: -3px; }
.rx-icons i:first-child { margin-left: 0; }
.counts .cc { cursor: pointer; }
.counts .cc:hover { text-decoration: underline; }
.actions { display: flex; margin: 0 12px; border-top: 1px solid var(--line); padding: 4px 0; position: relative; }
.actions > button, .actions > .like-wrap { flex: 1; }
.act { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 6px 2px; border-radius: 6px; color: var(--text2); font-weight: 600; width: 100%; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.act:hover { background: var(--hover); }
.act .emo { font-size: 18px; line-height: 1; }
.act.on-like { color: var(--accent); }
.act.on-love { color: #f33e58; }
.act.on-care, .act.on-haha, .act.on-wow, .act.on-sad { color: #f7b125; }
.act.on-angry { color: #e9710f; }
.act:disabled { opacity: .5; cursor: default; }

.picker { position: absolute; z-index: 15; bottom: calc(100% + 4px); left: 0; background: var(--card); border-radius: 40px; box-shadow: var(--menu-shadow); display: flex; padding: 4px 6px; gap: 2px; animation: pop .15s ease-out; }
.picker button { font-size: 32px; width: 44px; height: 44px; line-height: 1; transition: transform .12s; position: relative; }
.picker button:hover { transform: scale(1.3) translateY(-6px); }
.picker button:hover::after { content: attr(data-label); position: absolute; top: -26px; left: 50%; transform: translateX(-50%) scale(.77); background: rgba(0,0,0,.8); color: #fff; font-size: 12px; padding: 2px 8px; border-radius: 10px; white-space: nowrap; }
@keyframes pop { from { transform: translateY(8px) scale(.9); opacity: 0; } }

/* Comments */
.comments { padding: 4px 16px 12px; border-top: 1px solid var(--line); margin: 0 0; }
.c-sort { font-weight: 600; color: var(--text2); font-size: 14px; padding: 6px 0; }
.cmt { display: flex; gap: 6px; margin: 8px 0 0; }
.cmt .cbody { min-width: 0; max-width: calc(100% - 40px); }
.bubble { background: var(--input); border-radius: 18px; padding: 8px 12px; display: inline-block; position: relative; max-width: 100%; overflow-wrap: anywhere; }
.bubble .cn { font-weight: 600; font-size: 13px; display: flex; gap: 6px; align-items: center; }
.bubble .ct { white-space: pre-wrap; }
.badge { font-size: 11px; font-weight: 600; background: var(--accent-soft); color: var(--accent); padding: 1px 6px; border-radius: 4px; }
.c-acts { display: flex; gap: 12px; font-size: 12px; color: var(--text2); padding: 2px 12px; font-weight: 600; align-items: center; position: relative; flex-wrap: wrap; }
.c-acts button { font-weight: 600; }
.c-acts button:hover { text-decoration: underline; }
.c-acts .t { font-weight: 400; }
.c-acts .crx { position: absolute; right: -8px; top: -14px; background: var(--card); border-radius: 10px; box-shadow: var(--shadow); padding: 1px 4px 1px 2px; display: flex; align-items: center; gap: 2px; font-weight: 400; }
.c-acts .crx i { font-style: normal; font-size: 12px; }
.c-acts .picker { bottom: calc(100% + 2px); }
.c-acts .picker button { font-size: 26px; width: 36px; height: 36px; }
.replies { margin-left: 38px; }
.replies .avatar { width: 24px; height: 24px; }
.cmt-form { display: flex; gap: 6px; margin-top: 10px; align-items: flex-start; }
.cmt-form .fields { flex: 1; min-width: 0; background: var(--input); border-radius: 18px; padding: 4px 8px 4px 12px; }
.cmt-form input, .cmt-form textarea { width: 100%; border: 0; background: none; outline: none; resize: none; padding: 5px 0; display: block; }
.cmt-form input { font-size: 13px; font-weight: 600; border-bottom: 1px solid var(--line); }
.cmt-form .send-row { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--text2); }
.cmt-form .send { color: var(--accent); padding: 4px; border-radius: 50%; }
.cmt-form .send:disabled { color: var(--text2); opacity: .5; }
.view-more { font-weight: 600; color: var(--text2); padding: 6px 0 0; display: block; }
.view-more:hover { text-decoration: underline; }
.notice { font-size: 13px; color: var(--text2); padding: 8px 0 0; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(244,244,244,.8); display: grid; place-items: center; padding: 16px; }
:root[data-theme="dark"] .modal { background: rgba(0,0,0,.7); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .modal { background: rgba(0,0,0,.7); } }
.dialog { background: var(--card); border-radius: 8px; box-shadow: var(--menu-shadow); width: 500px; max-width: 100%; max-height: calc(100vh - 32px); display: flex; flex-direction: column; }
.dialog-h { position: relative; text-align: center; font-size: 20px; font-weight: 700; padding: 16px 48px; border-bottom: 1px solid var(--line); }
.dialog-h .x { position: absolute; right: 12px; top: 12px; }
.dialog-b { padding: 16px; overflow-y: auto; }
.dialog-f { padding: 0 16px 16px; }
.cmp-who { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.cmp-who .name { font-weight: 600; }
.privacy-sel { font-size: 13px; font-weight: 600; background: var(--input); border: 0; border-radius: 6px; padding: 2px 6px; margin-top: 2px; }
.cmp-text { width: 100%; border: 0; outline: none; background: none; resize: none; font-size: 24px; min-height: 120px; }
.cmp-text.small { font-size: 15px; }
.cmp-text.bgmode { min-height: 300px; border-radius: 8px; text-align: center; font-size: 28px; font-weight: 700; padding: 100px 24px; }
.cmp-text.bgmode::placeholder { color: rgba(255,255,255,.8); }
.bg-row { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0; }
.bg-row button { width: 32px; height: 32px; border-radius: 8px; border: 2px solid transparent; background: var(--input); }
.bg-row button.sel { border-color: var(--accent); }
.add-to { display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: 8px; padding: 8px 16px; margin: 12px 0; font-weight: 600; }
.add-to .tools { display: flex; gap: 4px; }
.add-to .tools button { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; }
.add-to .tools button:hover { background: var(--hover); }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; margin: 8px 0; }
.thumbs div { position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: var(--input); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.thumbs .rm { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; background: var(--card); display: grid; place-items: center; font-size: 14px; }
.thumbs .busy { position: absolute; inset: 0; background: rgba(0,0,0,.4); display: grid; place-items: center; color: #fff; font-size: 12px; }
.chip { display: inline-flex; gap: 6px; align-items: center; background: var(--input); border-radius: 16px; padding: 4px 10px; font-size: 13px; margin: 0 6px 6px 0; }
.chip button { font-size: 12px; }
.field { display: block; margin-bottom: 12px; }
.field span { display: block; font-size: 13px; font-weight: 600; color: var(--text2); margin-bottom: 4px; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid var(--line); background: var(--card); border-radius: 6px; padding: 10px 12px; outline-color: var(--accent); }
.feel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.feel-grid button { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 8px; text-align: left; }
.feel-grid button:hover { background: var(--hover); }
.feel-grid .e { font-size: 22px; width: 36px; height: 36px; display: grid; place-items: center; background: var(--input); border-radius: 50%; }
.rx-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: -16px -16px 12px; padding: 0 12px; }
.rx-tabs span { padding: 12px 10px; font-weight: 600; color: var(--text2); }
.rx-tabs span.on { color: var(--accent); border-bottom: 3px solid var(--accent); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 60; background: #000; display: flex; align-items: center; justify-content: center; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox .lb-btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.15); color: #fff; display: grid; place-items: center; font-size: 24px; }
.lightbox .lb-btn:hover { background: rgba(255,255,255,.3); }
.lightbox .close { top: 12px; left: 12px; }
.lightbox .prev { left: 16px; top: 50%; margin-top: -24px; }
.lightbox .next { right: 16px; top: 50%; margin-top: -24px; }
.lightbox .count { position: absolute; bottom: 16px; color: #ccc; font-size: 14px; }

.toast { position: fixed; z-index: 70; left: 16px; bottom: 16px; background: var(--card); color: var(--text); box-shadow: var(--menu-shadow); border-radius: 8px; padding: 12px 16px; font-weight: 500; max-width: calc(100vw - 32px); }

.empty { text-align: center; padding: 40px 16px; color: var(--text2); }
.spinner { width: 28px; height: 28px; border: 3px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; margin: 20px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { height: 220px; background: var(--card); border-radius: 8px; margin-bottom: 16px; position: relative; overflow: hidden; }
.skeleton::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(127,127,127,.08), transparent); animation: shimmer 1.2s infinite; }
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

@media (max-width: 1260px) {
  .layout { grid-template-columns: minmax(0, 280px) minmax(0, 680px) minmax(0, 300px); }
}
@media (max-width: 1100px) {
  .layout { grid-template-columns: minmax(0, 680px) minmax(0, 320px); justify-content: center; }
  .left { display: none; }
}
@media (max-width: 900px) {
  .layout { grid-template-columns: minmax(0, 680px); }
  .right { display: none; }
  main { padding: 12px 0 60px; }
  .pbody { grid-template-columns: minmax(0, 1fr); }
  .pbody .side { position: static; }
  .search { width: 40px; padding: 0 10px; }
  .search input { width: 0; }
  .search:focus-within { width: 200px; }
  .search:focus-within input { width: 100%; }
}
@media (max-width: 680px) {
  .topbar { padding: 0 8px; }
  .tb-center a { max-width: 64px; }
  .card { border-radius: 0; }
  .phead-in, .pbody { padding: 0; }
  .cover { border-radius: 0; }
  .pinfo { flex-direction: column; align-items: center; text-align: center; margin-top: -90px; }
  .pname { min-width: 0; }
  .pname h1 { font-size: 26px; }
  .big-avatar { width: 150px; height: 150px; }
  .pactions { width: 100%; justify-content: center; }
  .ptabs { margin: 0 8px; }
  .menu { right: 8px; }
  .bgpost { min-height: 260px; font-size: 24px; }
}

.gallery.profile-pic { background: linear-gradient(var(--input), var(--input)); padding: 24px 0; display: grid; place-items: center; }
.gallery.profile-pic .g { width: min(320px, 70%); aspect-ratio: 1; border-radius: 50%; border: 4px solid var(--card); }
.gallery.profile-pic .g img { height: 100%; max-height: none; object-fit: cover; background: none; }
