:root {
  --bg: #ffffff;
  --fg: #0f0f0f;
  --muted: #737373;
  --line: #dbdbdb;
  --soft: #efefef;
  --hover: #f2f2f2;
  --link: #00376b;
  --accent: #0095f6;
  --heart: #ff3040;
  --ring: linear-gradient(45deg, #f9ce34, #ee2a7b 55%, #6228d7);
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --script: "Grand Hotel", "Brush Script MT", cursive;
  --serif: Georgia, "Times New Roman", serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --fg: #f5f5f5;
    --muted: #a8a8a8;
    --line: #262626;
    --soft: #262626;
    --hover: #1a1a1a;
    --link: #e0f1ff;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--font); font-size: 14px; line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
.muted { color: var(--muted); }
.pad { padding: 24px 16px; }
.center { text-align: center; }
.small { font-size: 12px; }

.logo-full { font-family: var(--script); font-size: 30px; line-height: 1; white-space: nowrap; }

/* ---------- avatar ---------- */
.avatar { flex: none; display: inline-block; border-radius: 50%; padding: 2px; position: relative; }
.avatar.ring { background: var(--ring); }
.avatar.seen { background: var(--line); }
.avatar.plain { padding: 0; }
.av-in { display: block; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; background: var(--soft); }
.avatar.ring .av-in, .avatar.seen .av-in { border: 2px solid var(--bg); }
.av-in img { width: 100%; height: 100%; object-fit: cover; }
.initial { display: grid; place-items: center; width: 100%; height: 100%; font-weight: 600; font-size: 13px; color: #fff; text-transform: uppercase; }
.badge { display: inline-block; width: 13px; height: 13px; margin-left: 3px; vertical-align: -1px; color: var(--accent); }

/* ---------- mobile chrome ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar-in { height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 12px 0 16px; }
.top-title { flex: 1; text-align: center; font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-icons { display: flex; gap: 8px; }
.top-btn { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; }
.top-btn svg { width: 24px; height: 24px; }
.top-btn[data-translate][aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.top-btn[data-translate][aria-pressed="true"] svg { width: 20px; height: 20px; }

.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 20;
  display: flex; justify-content: space-around; align-items: center;
  height: calc(50px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: var(--bg); border-top: 1px solid var(--line);
}
.tabbar > * { width: 44px; height: 44px; display: grid; place-items: center; }
.tabbar svg { width: 26px; height: 26px; }
.me-ni { width: 26px; height: 26px; border-radius: 50%; overflow: hidden; display: block; background: var(--soft); }
.me-ni img { width: 100%; height: 100%; object-fit: cover; }
.me-ni.on { outline: 2px solid var(--fg); outline-offset: 1px; }

/* ---------- desktop sidebar ---------- */
.side {
  display: none; position: fixed; top: 0; left: 0; bottom: 0; z-index: 20;
  flex-direction: column; padding: 8px 12px 20px;
  border-right: 1px solid var(--line); background: var(--bg);
}
.side-logo { height: 92px; display: flex; align-items: center; padding: 0 12px; }
.logo-mini { display: none; font-family: var(--script); font-size: 34px; line-height: 1; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-bottom { margin-top: auto; }
.nav-item { display: flex; align-items: center; gap: 16px; width: 100%; padding: 12px; border-radius: 8px; font-size: 16px; text-align: left; }
.nav-item:hover { background: var(--hover); }
.nav-item b { font-weight: 400; }
.nav-item.on b { font-weight: 700; }
.nav-item .ni { display: grid; place-items: center; width: 26px; height: 26px; flex: none; }
.nav-item .ni svg { width: 26px; height: 26px; }
.nav-item[data-translate][aria-pressed="true"] .ni { color: var(--accent); }

/* ---------- layout ---------- */
.layout { display: flex; justify-content: center; gap: 64px; }
.col { width: 100%; max-width: 470px; min-width: 0; padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
body:not([data-page="home"]) .col { max-width: 630px; }
.rail { display: none; }

@media (min-width: 768px) {
  .topbar, .tabbar { display: none; }
  .side { display: flex; width: 73px; }
  .side .logo-full, .side .nav-item b { display: none; }
  .logo-mini { display: block; }
  .side-logo { justify-content: center; padding: 0; }
  .nav-item { justify-content: center; }
  .layout { margin-left: 73px; padding: 24px 24px 0; }
  .col { padding-bottom: 48px; }
}
@media (min-width: 1264px) {
  .side { width: 245px; }
  .side .logo-full, .side .nav-item b { display: inline; }
  .logo-mini { display: none; }
  .side-logo { justify-content: flex-start; padding: 0 12px; }
  .nav-item { justify-content: flex-start; }
  .layout { margin-left: 245px; }
}
@media (min-width: 1160px) {
  .rail { display: block; width: 320px; flex: none; padding-top: 36px; position: sticky; top: 0; align-self: flex-start; }
}

.loading { display: flex; justify-content: center; gap: 6px; padding: 80px 0; }
.loading span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.loading span:nth-child(2) { animation-delay: .2s; }
.loading span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .2; } 40% { opacity: 1; } }

/* ---------- stories bar ---------- */
.stories { display: flex; gap: 14px; overflow-x: auto; padding: 12px 14px 14px; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.stories::-webkit-scrollbar { display: none; }
.story-item { flex: none; width: 70px; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.story-name { width: 100%; font-size: 12px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 768px) { .stories { border: 0; padding: 4px 0 20px; } }

/* ---------- story viewer ---------- */
.story { position: fixed; inset: 0; z-index: 50; background: #111; display: grid; place-items: center; }
.story-frame { position: relative; width: 100%; height: 100%; max-width: 420px; max-height: 100dvh; overflow: hidden; color: #fff; display: flex; align-items: center; justify-content: center; }
@media (min-width: 600px) { .story-frame { height: min(92vh, 760px); border-radius: 10px; } }
.story-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.story-bars { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; gap: 4px; z-index: 3; }
.story-bars i { flex: 1; height: 2.5px; border-radius: 2px; background: rgba(255,255,255,.35); overflow: hidden; }
.story-bars b { display: block; height: 100%; width: 0; background: #fff; }
.story-bars i.done b { width: 100%; }
.story-bars i.now b { animation: storybar 5s linear forwards; }
@keyframes storybar { to { width: 100%; } }
.story-head { position: absolute; top: 22px; left: 12px; right: 6px; display: flex; align-items: center; justify-content: space-between; z-index: 4; }
.story-user { display: flex; align-items: center; gap: 8px; font-size: 13.5px; text-shadow: 0 1px 4px rgba(0,0,0,.4); }
.story-user span:last-child { opacity: .75; }
.story-av { width: 32px; height: 32px; border-radius: 50%; overflow: hidden; display: block; }
.story-av img { width: 100%; height: 100%; object-fit: cover; }
.story-close { width: 40px; height: 40px; display: grid; place-items: center; }
.story-close svg { width: 24px; height: 24px; }
.story-text { position: relative; z-index: 2; margin: 0; padding: 0 32px; font-size: 22px; font-weight: 600; line-height: 1.45; text-align: center; word-break: keep-all; }
.story-text.over { position: absolute; bottom: 70px; left: 0; right: 0; font-size: 17px; text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.story-zone { position: absolute; top: 70px; bottom: 0; width: 40%; z-index: 3; }
.story-zone.left { left: 0; } .story-zone.right { right: 0; width: 60%; }

/* ---------- search ---------- */
.search-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; }
.search-box { flex: 1; display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-radius: 10px; background: var(--soft); }
.search-box svg { width: 16px; height: 16px; color: var(--muted); }
.search-box input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 15px; }
.search-box input::-webkit-search-cancel-button { display: none; }
.search-cancel { font-weight: 600; }
.search-results { padding: 6px 14px 20px; }
.search-results .rail-title { margin: 8px 0 6px; }
.result-list, .user-list, .rail-list { list-style: none; margin: 0; padding: 0; }
.user-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.user-list { padding: 4px 16px; }
.u-who { flex: 1; min-width: 0; line-height: 1.3; display: block; }
.u-who b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.u-who > span { display: block; color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tag-ico { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: 20px; }
@media (min-width: 768px) { .search-bar { padding: 0 0 16px; } .search-results { padding: 0 0 20px; } }

/* ---------- buttons ---------- */
.follow { height: 32px; padding: 0 16px; border-radius: 8px; background: var(--accent); color: #fff; font-weight: 600; white-space: nowrap; }
.follow.on { background: var(--soft); color: var(--fg); }
.follow.sm { height: 30px; padding: 0 14px; font-size: 13px; }
.btn-grey { height: 32px; padding: 0 16px; border-radius: 8px; background: var(--soft); font-weight: 600; white-space: nowrap; }
.link-accent { color: var(--accent); font-weight: 600; font-size: 12px; }

/* ---------- hashtag header ---------- */
.tag-head { display: flex; align-items: center; gap: 24px; padding: 22px 16px 14px; }
.tag-avatar { flex: none; width: 86px; height: 86px; border-radius: 50%; overflow: hidden; background: var(--soft); display: grid; place-items: center; }
.tag-avatar img { width: 100%; height: 100%; object-fit: cover; }
.tag-avatar .hash { font-size: 40px; font-weight: 300; color: var(--muted); }
.tag-meta h1 { margin: 0 0 2px; font-size: 20px; font-weight: 700; word-break: break-all; }
.tag-meta .count { margin: 0 0 10px; color: var(--muted); }
.tag-meta .count b { color: var(--fg); font-weight: 600; }
.tag-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.related { display: flex; gap: 6px; overflow-x: auto; padding: 2px 16px 14px; scrollbar-width: none; }
.related::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 6px 12px; border-radius: 999px; background: var(--soft); color: var(--link); font-weight: 500; font-size: 13px; }

/* ---------- profile ---------- */
.profile-head { display: flex; gap: 20px; padding: 18px 16px 16px; align-items: flex-start; }
.p-main { flex: 1; min-width: 0; }
.p-name-row { display: flex; flex-direction: column; gap: 10px; }
.p-name-row h1 { margin: 0; font-size: 20px; font-weight: 400; display: flex; align-items: center; word-break: break-all; }
.p-name-row h1 .badge { width: 16px; height: 16px; margin-left: 6px; }
.p-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.p-stats { list-style: none; margin: 14px 0 0; padding: 0; display: flex; gap: 22px; }
.p-stats b { font-weight: 600; }
.p-bio { margin-top: 12px; display: flex; flex-direction: column; gap: 1px; }
.p-bio b { font-weight: 600; }
.p-bio p { margin: 0; white-space: pre-line; }
.p-link { display: inline-flex; align-items: center; gap: 4px; color: var(--link); font-weight: 600; }
.p-link svg { width: 14px; height: 14px; }
.p-mutual { margin-top: 8px; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12.5px; }
.mini-avs { display: flex; }
.mini-avs span { width: 20px; height: 20px; border-radius: 50%; overflow: hidden; border: 2px solid var(--bg); margin-left: -6px; display: block; }
.mini-avs span:first-child { margin-left: 0; }
.mini-avs img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 767px) {
  .profile-head { gap: 16px; }
  .p-stats { gap: 14px; font-size: 13.5px; }
}
@media (min-width: 768px) {
  .profile-head { gap: 64px; padding: 16px 32px 36px; }
  .profile-head > .avatar { width: 150px !important; height: 150px !important; }
  .p-name-row { flex-direction: row; align-items: center; gap: 18px; flex-wrap: wrap; }
  .p-stats { gap: 36px; font-size: 16px; }
}

/* ---------- tabs & grid ---------- */
.view-tabs { display: flex; border-top: 1px solid var(--line); }
.view-tabs > * { flex: 1; height: 44px; display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--muted); border-top: 1px solid transparent; margin-top: -1px; font-size: 12px; font-weight: 600; letter-spacing: .04em; }
.view-tabs > [aria-pressed="true"] { color: var(--fg); border-top-color: var(--fg); }
.view-tabs svg { width: 22px; height: 22px; }
.view-tabs span { display: none; }
.follow-tabs { border-top: 0; border-bottom: 1px solid var(--line); }
.follow-tabs > * { border-top: 0; border-bottom: 1px solid transparent; margin: 0 0 -1px; font-size: 14px; }
.follow-tabs > [aria-pressed="true"] { border-bottom-color: var(--fg); }
.follow-tabs span { display: inline; }
@media (min-width: 768px) {
  .tag-head { padding: 8px 0 18px; gap: 40px; }
  .tag-avatar { width: 128px; height: 128px; }
  .tag-meta h1 { font-size: 24px; }
  .related { padding: 0 0 18px; }
  .view-tabs span { display: inline; }
  .view-tabs:not(.follow-tabs) svg { width: 14px; height: 14px; }
}

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.grid > a { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--soft); display: block; }
.grid img { width: 100%; height: 100%; object-fit: cover; transition: filter .15s; }
.grid > a:hover img { filter: brightness(.82); }
.grid .mini-card { position: absolute; inset: 0; display: grid; place-items: center; padding: 10px; text-align: center; color: #f3eee6; font-size: 11px; line-height: 1.4; word-break: keep-all; }
.grid .mini-card.profile { background: #f7f5f1; color: #1c1c1c; font-family: var(--serif); font-size: 10px; letter-spacing: .16em; }
.grid .mini-card.article { background: #fbfaf7; color: #111; display: flex; flex-direction: column; justify-content: center; gap: 8px; font-family: var(--serif); }
.grid .mini-card.article b { font-size: 8.5px; letter-spacing: .14em; border-bottom: 1px solid #111; padding-bottom: 5px; }
.grid .mini-card.article span { font-size: 11.5px; font-weight: 700; line-height: 1.3; }
.grid .multi { position: absolute; top: 6px; right: 6px; width: 18px; height: 18px; color: #fff; filter: drop-shadow(0 0 2px rgba(0,0,0,.5)); }
.grid .stats { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; gap: 18px; color: #fff; font-weight: 700; font-size: 15px; background: rgba(0,0,0,.28); }
.grid .stats i { font-style: normal; display: inline-flex; align-items: center; gap: 6px; }
.grid .stats svg { width: 18px; height: 18px; }
@media (hover: hover) { .grid > a:hover .stats { display: flex; } }
@media (min-width: 768px) { .grid { gap: 4px; } }
.empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 60px 16px; color: var(--muted); }
.empty svg { width: 44px; height: 44px; }
.empty b { color: var(--fg); font-size: 18px; }
.more-from { padding: 20px 16px 10px; color: var(--muted); font-weight: 600; margin: 0; }
.more-from a { color: var(--fg); }

/* ---------- post ---------- */
.post { border-bottom: 1px solid var(--line); padding-bottom: 14px; scroll-margin-top: 60px; }
.post-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 14px; }
.who { flex: 1; min-width: 0; line-height: 1.25; }
.handle { font-weight: 600; }
.who .when { color: var(--muted); }
.who .loc { display: block; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.more { width: 28px; height: 28px; display: grid; place-items: center; }
.more svg { width: 20px; height: 20px; }

.media { position: relative; aspect-ratio: 4 / 5; background: var(--soft); overflow: hidden; user-select: none; -webkit-user-select: none; }
.slides { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.slides::-webkit-scrollbar { display: none; }
.slides img { flex: none; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: center; -webkit-user-drag: none; }
.counter { position: absolute; top: 12px; right: 12px; padding: 3px 9px; border-radius: 999px; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; }
.nav-arrow { position: absolute; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%; background: rgba(255,255,255,.85); color: #111; display: none; place-items: center; box-shadow: 0 1px 6px rgba(0,0,0,.25); }
.nav-arrow svg { width: 14px; height: 14px; }
.nav-arrow.prev { left: 10px; } .nav-arrow.next { right: 10px; }
@media (hover: hover) { .media:hover .nav-arrow:not([disabled]) { display: grid; } }
.dots { display: flex; justify-content: center; gap: 4px; height: 6px; margin-top: 12px; margin-bottom: -18px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line); }
.dots i.on { background: var(--accent); }

.card-holder { height: 100%; }
.ph-icon { display: grid; place-items: center; width: 100%; height: 100%; color: rgba(255,255,255,.75); }
.ph-icon svg { width: 34px; height: 34px; }
.quote-card { height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 44px 36px; text-align: center; color: #f3eee6; }
.quote-card p { margin: 0; font-size: clamp(19px, 5.2vw, 24px); font-weight: 600; line-height: 1.45; text-wrap: balance; word-break: keep-all; }
.quote-card .place { margin-top: 24px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; opacity: .55; }

/* news article screenshot */
.article { height: 100%; background: #fbfaf7; color: #111; display: flex; flex-direction: column; overflow: hidden; }
.art-mast { padding: 16px 18px 12px; text-align: center; font-family: var(--serif); font-weight: 700; font-size: 17px; letter-spacing: .12em; border-bottom: 3px double #111; margin: 0 18px; }
.art-body { flex: 1; padding: 14px 18px 0; display: flex; flex-direction: column; min-height: 0; }
.art-section { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #a3171e; margin-bottom: 8px; }
.art-head { margin: 0 0 8px; font-family: var(--serif); font-size: clamp(19px, 5.4vw, 23px); line-height: 1.18; font-weight: 700; word-break: keep-all; }
.art-dek { margin: 0 0 10px; font-family: var(--serif); font-size: 13.5px; line-height: 1.45; color: #4a4a4a; word-break: keep-all; }
.art-by { font-size: 10.5px; color: #666; letter-spacing: .04em; margin-bottom: 12px; }
.art-photo { flex: 1; min-height: 120px; background: linear-gradient(160deg, #8d8a84, #4d4a46); overflow: hidden; }
.art-photo img { width: 100%; height: 100%; object-fit: cover; }
.art-credit { font-size: 9.5px; color: #777; padding: 5px 0 12px; }

/* company page screenshot */
.shot { height: 100%; display: flex; flex-direction: column; background: #f7f5f1; color: #1c1c1c; }
.shot-bar { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: #e9e6e0; font-size: 11px; color: #555; }
.shot-bar .lock { width: 11px; height: 11px; }
.shot-bar .url { flex: 1; padding: 4px 10px; border-radius: 999px; background: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shot-nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid #ddd8cf; }
.shot-nav .brand { font-family: var(--serif); font-size: 13px; letter-spacing: .26em; }
.shot-nav .menu { display: flex; flex-direction: column; gap: 3px; } .shot-nav .menu i { width: 16px; height: 1.5px; background: #1c1c1c; display: block; }
.shot-body { flex: 1; padding: 18px 20px 20px; display: flex; flex-direction: column; overflow: hidden; }
.shot-crumb { font-size: 11px; letter-spacing: .1em; color: #8a7a62; margin-bottom: 14px; }
.shot-photo { width: 48%; aspect-ratio: 4 / 5; background: linear-gradient(160deg, #d9d3c8, #b8afa1); margin-bottom: 14px; overflow: hidden; }
.shot-photo img { width: 100%; height: 100%; object-fit: cover; }
.shot-name { font-size: 21px; font-weight: 700; margin: 0 0 2px; letter-spacing: -.01em; }
.shot-title { font-size: 12px; color: #6c6458; margin: 0 0 12px; }
.shot-rule { width: 28px; height: 1px; background: #8a7a62; margin-bottom: 12px; }
.shot-bio { font-size: 12px; line-height: 1.65; color: #3a3631; margin: 0; word-break: keep-all; }

.pop { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.pop svg { width: 96px; height: 96px; color: #fff; filter: drop-shadow(0 4px 18px rgba(0,0,0,.35)); animation: pop .9s ease forwards; }
@keyframes pop { 0% { transform: scale(0); opacity: 0; } 15% { transform: scale(1.15); opacity: 1; } 30% { transform: scale(.95); } 45%, 75% { transform: scale(1); opacity: 1; } 100% { transform: scale(1); opacity: 0; } }

.actions { display: flex; align-items: center; gap: 14px; padding: 10px 12px 6px; }
.actions .spacer { flex: 1; }
.actions button { width: 26px; height: 26px; display: grid; place-items: center; }
.actions svg { width: 24px; height: 24px; }
.like.on, .c-like.on { color: var(--heart); }
.like.on svg, .c-like.on svg { animation: beat .35s ease; }
.like.on path, .c-like.on path { fill: currentColor; }
.save.on path { fill: currentColor; }
@keyframes beat { 50% { transform: scale(1.22); } }

.likes { padding: 0 14px; font-weight: 600; }
.text { padding: 4px 14px 0; word-break: break-word; white-space: pre-line; }
.tag, .mention { color: var(--link); }
.caption-more { color: var(--muted); margin-left: 2px; }
.tagged-line { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; padding: 6px 14px 0; font-size: 13px; color: var(--muted); }
.tagged-line svg { width: 14px; height: 14px; display: block; }
.tagged-line a { color: var(--fg); font-weight: 600; }
.link-btn { display: block; padding: 6px 14px 0; color: var(--muted); font-size: 14px; }

.comments { list-style: none; margin: 6px 0 0; padding: 0; }
.c { display: flex; gap: 10px; padding: 5px 14px; }
.c.reply { padding-left: 50px; }
.c-av { flex: none; width: 26px; height: 26px; border-radius: 50%; overflow: hidden; display: block; background: var(--soft); }
.c-av img { width: 100%; height: 100%; object-fit: cover; }
.c-av .initial { font-size: 11px; }
.c.reply .c-av { width: 22px; height: 22px; }
.c-body { flex: 1; min-width: 0; word-break: break-word; line-height: 1.4; }
.c-meta { display: flex; gap: 12px; margin-top: 3px; font-size: 12px; color: var(--muted); }
.c-meta b { font-weight: 600; }
.c-like { flex: none; width: 18px; height: 18px; margin-top: 2px; display: grid; place-items: center; color: var(--muted); }
.c-like svg { width: 12px; height: 12px; }

.caught-up { display: flex; flex-direction: column; align-items: center; padding: 36px 16px 20px; text-align: center; }
.caught-up span { width: 56px; height: 56px; border-radius: 50%; background: var(--ring); position: relative; margin-bottom: 10px; }
.caught-up span::after { content: ""; position: absolute; left: 20px; top: 15px; width: 12px; height: 20px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg); }
.caught-up p { margin: 0; font-size: 16px; font-weight: 600; }
.caught-up small { color: var(--muted); }

@media (min-width: 768px) {
  .post { margin-bottom: 18px; padding-bottom: 18px; }
  .post-head { padding-left: 2px; padding-right: 0; }
  .media { border-radius: 4px; border: 1px solid var(--line); }
  .actions, .likes, .text, .link-btn, .tagged-line { padding-left: 2px; padding-right: 2px; }
  .actions { padding-top: 12px; }
  .c { padding-left: 2px; padding-right: 2px; }
  .c.reply { padding-left: 38px; }
}

/* ---------- right rail ---------- */
.rail-me { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.rail-title { display: flex; justify-content: space-between; color: var(--muted); font-weight: 600; margin: 0 0 8px; }
.rail-title a { color: var(--fg); font-size: 12px; }
.rail-list { margin-bottom: 28px; }
.rail-list .user-row { padding: 6px 0; }
.rail-list .follow { background: none; color: var(--accent); padding: 0; height: auto; font-size: 12px; }
.rail-list .follow.on { color: var(--fg); }
.rail-foot { color: #c7c7c7; font-size: 11.5px; line-height: 1.7; }
@media (prefers-color-scheme: dark) { .rail-foot { color: #555; } }

/* menus without content: drawn the same, but nothing happens */
.inert { cursor: default; -webkit-tap-highlight-color: transparent; }
.nav-item.inert:hover { background: none; }
.actions .inert { width: 26px; height: 26px; display: grid; place-items: center; }
.actions .inert svg { width: 24px; height: 24px; }
.tabbar .inert svg { opacity: 1; }

.search-link { display: flex; }
.search-link .search-box { gap: 8px; }

/* ---------- messages ---------- */
.inbox-title { margin: 0; padding: 16px 16px 4px; font-weight: 700; font-size: 16px; }
.dm-head { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 24px 16px 18px; text-align: center; }
.dm-head b { font-size: 18px; margin-top: 6px; }
.dm-head .btn-grey { margin-top: 10px; display: inline-flex; align-items: center; }
.dm-list { list-style: none; margin: 0; padding: 0 12px 24px; display: flex; flex-direction: column; gap: 2px; }
.dm-stamp { align-self: center; color: var(--muted); font-size: 11.5px; margin: 14px 0 6px; }
.dm { display: flex; align-items: flex-end; gap: 8px; max-width: 78%; }
.dm.me { align-self: flex-end; }
.dm.them { align-self: flex-start; }
.dm.tail { margin-bottom: 6px; }
.dm-av { flex: none; width: 28px; height: 28px; border-radius: 50%; overflow: hidden; display: block; }
.dm-av img { width: 100%; height: 100%; object-fit: cover; }
.bubble { padding: 9px 13px; border-radius: 20px; line-height: 1.4; word-break: break-word; white-space: pre-line; }
.dm.them .bubble { background: var(--soft); }
.dm.me .bubble { background: #3797f0; color: #fff; }

/* ---------- notifications ---------- */
.act-group { margin: 0; padding: 18px 16px 6px; font-weight: 700; font-size: 15px; }
.act-row { display: flex; align-items: center; gap: 12px; padding: 8px 16px; }
.act-row p { flex: 1; margin: 0; line-height: 1.4; word-break: break-word; }
.act-thumb { flex: none; width: 44px; height: 44px; border-radius: 4px; overflow: hidden; display: block; }
.act-thumb img, .act-thumb span { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (min-width: 768px) {
  .inbox-title, .act-group { padding-left: 0; }
  .act-row { padding-left: 0; padding-right: 0; }
}

#toast { position: fixed; left: 50%; bottom: 80px; transform: translateX(-50%) translateY(16px); opacity: 0; transition: .25s; background: #262626; color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 13.5px; pointer-events: none; z-index: 60; max-width: calc(100% - 32px); text-align: center; }
#toast.show { opacity: 1; transform: translateX(-50%); }
@media (min-width: 768px) { #toast { bottom: 32px; } }
