/* Mirage — mobile-first, dark, Instagram-shaped. One file, no build step. */
:root {
  --bg: #0a0a0d;
  --surface: #121217;
  --surface-2: #1a1a21;
  --surface-3: #23232c;
  --border: #262630;
  --text: #f3f3f7;
  --text-2: #b8b8c6;
  --muted: #7d7d8e;
  --accent: #ff5c7a;
  --accent-2: #8b7cff;
  --like: #ff3b5c;
  --ok: #3ddc97;
  --warn: #ffb347;
  --danger: #ff5c5c;
  --radius: 14px;
  --radius-sm: 9px;
  --top-h: 52px;
  --nav-h: 58px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font);
  font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom));
}
body.auth-body { padding-bottom: 0; }
a { color: inherit; text-decoration: none; }
a.link, .link { color: var(--accent-2); }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
hr { border: 0; border-top: 1px solid var(--border); margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.row { display: flex; align-items: center; gap: 10px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.grow { flex: 1; min-width: 0; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
[hidden] { display: none !important; }

/* ---------- shell ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20; height: var(--top-h);
  background: rgba(10,10,13,.82); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner { max-width: 640px; margin: 0 auto; height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 12px; }
.topbar-left { display: flex; align-items: center; gap: 6px; min-width: 0; }
.topbar-title { font-weight: 600; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-actions { display: flex; justify-content: flex-end; align-items: center; gap: 4px; }
.wordmark {
  font-weight: 800; font-size: 22px; letter-spacing: -.02em;
  background: linear-gradient(120deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.page { max-width: 640px; margin: 0 auto; min-height: calc(100vh - var(--top-h) - var(--nav-h)); }
.page-pad { padding: 16px; }
.bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; height: calc(var(--nav-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(10,10,13,.88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--border);
  display: flex; justify-content: space-around; align-items: center;
}
.bottomnav a { position: relative; display: flex; align-items: center; justify-content: center; width: 56px; height: 48px; color: var(--text-2); border-radius: 12px; }
.bottomnav a.active { color: var(--text); }
.bottomnav a.active .icon { stroke-width: 2.4; }
.bottomnav a.compose .icon { width: 28px; height: 28px; padding: 2px; border: 2px solid currentColor; border-radius: 9px; }
.bottomnav a .avatar { outline: 2px solid transparent; outline-offset: 1px; }
.bottomnav a.active .avatar { outline-color: var(--text); }
.iconbtn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; color: var(--text); background: transparent; border: 0; cursor: pointer; }
.iconbtn:hover { background: var(--surface-2); }
.badge {
  position: absolute; top: 6px; right: 6px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px;
  background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; line-height: 17px; text-align: center;
  border: 2px solid var(--bg);
}
.bottomnav .badge { top: 4px; right: 10px; }
.icon { width: 24px; height: 24px; flex: none; }
.banner { display: flex; gap: 10px; align-items: center; margin: 12px 16px 0; padding: 10px 12px; border-radius: var(--radius-sm); font-size: 13px; }
.banner-warn { background: rgba(255,179,71,.12); color: var(--warn); border: 1px solid rgba(255,179,71,.35); }
.banner-info { background: rgba(139,124,255,.12); color: var(--accent-2); border: 1px solid rgba(139,124,255,.35); }

/* ---------- avatars ---------- */
.avatar {
  --size: 40px; width: var(--size); height: var(--size); border-radius: 50%; overflow: hidden; flex: none; display: inline-block;
  background: var(--tint, var(--surface-3)); position: relative;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar svg { width: 100%; height: 100%; fill: rgba(255,255,255,.72); display: block; }
.avatar-link { display: inline-flex; flex: none; }

/* ---------- buttons & forms ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: 11px; border: 1px solid var(--border);
  background: var(--surface-2); color: var(--text); font-weight: 600; font-size: 14px; cursor: pointer; line-height: 1.2; white-space: nowrap;
}
.btn:hover { background: var(--surface-3); }
.btn:disabled { opacity: .5; cursor: default; }
.btn-primary { background: linear-gradient(120deg, var(--accent), #ff7a92); border-color: transparent; color: #fff; }
.btn-primary:hover { filter: brightness(1.06); background: linear-gradient(120deg, var(--accent), #ff7a92); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-danger { color: var(--danger); border-color: rgba(255,92,92,.4); background: rgba(255,92,92,.08); }
.btn-sm { padding: 6px 11px; font-size: 13px; border-radius: 9px; }
.btn-block { width: 100%; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text-2); }
.field > span { font-weight: 600; }
input[type=text], input[type=password], input[type=number], input[type=time], input[type=email], input:not([type]), textarea, select {
  width: 100%; padding: 11px 12px; border-radius: 11px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-size: 15px; outline: none;
}
input:focus, textarea:focus, select:focus { border-color: var(--accent-2); box-shadow: 0 0 0 3px rgba(139,124,255,.18); }
textarea { resize: none; min-height: 44px; }
.input-prefix { display: flex; align-items: center; border: 1px solid var(--border); border-radius: 11px; background: var(--surface); padding-left: 12px; }
.input-prefix b { color: var(--muted); }
.input-prefix input { border: 0; background: transparent; padding-left: 4px; }
.input-prefix:focus-within { border-color: var(--accent-2); box-shadow: 0 0 0 3px rgba(139,124,255,.18); }
.input-prefix input:focus { box-shadow: none; }
.field-error, .form-error { color: var(--danger); font-size: 13px; font-style: normal; }
.form-error { background: rgba(255,92,92,.1); border: 1px solid rgba(255,92,92,.35); padding: 9px 12px; border-radius: var(--radius-sm); }
.form-ok { color: var(--ok); font-size: 13px; background: rgba(61,220,151,.1); border: 1px solid rgba(61,220,151,.3); padding: 9px 12px; border-radius: var(--radius-sm); }
input[type=range] { width: 100%; accent-color: var(--accent); }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--accent); }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text); }

/* ---------- auth ---------- */
.auth { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.auth-card { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 24px 20px; }
.auth-brand { font-weight: 800; font-size: 30px; letter-spacing: -.03em; text-align: center; background: linear-gradient(120deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-who { display: flex; align-items: center; gap: 12px; }
.avatar-picker { display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer; }
.avatar-picker input { display: none; }
.avatar-picker-label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--accent-2); }
.avatar-picker-label em { color: var(--muted); font-style: normal; }
.avatar-preview img:not([hidden]) + svg, .avatar-preview:has(img:not([hidden])) svg { display: none; }

/* ---------- feed / post card ---------- */
.feed { display: flex; flex-direction: column; }
.card { background: var(--bg); border-bottom: 1px solid var(--border); padding: 12px 0 14px; }
.card-head { display: flex; align-items: center; gap: 10px; padding: 0 14px 10px; }
.card-head .who { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.card-head .who b { font-size: 14px; }
.card-head .who span { font-size: 12.5px; color: var(--muted); }
.card-head .spacer { flex: 1; }
.card-media img { width: 100%; height: auto; max-height: 80vh; object-fit: cover; background: var(--surface); }
.imgcard { width: 100%;
  margin: 0; position: relative; aspect-ratio: 4 / 5; max-height: 72vh; display: flex; align-items: flex-end; padding: 18px;
  background:
    radial-gradient(120% 90% at 10% 0%, hsl(var(--h, 260) 40% 22%) 0%, transparent 60%),
    radial-gradient(100% 90% at 100% 100%, hsl(calc(var(--h, 260) + 60) 45% 20%) 0%, transparent 60%),
    var(--surface-2);
}
.imgcard .imgcard-badge { position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 999px; background: rgba(0,0,0,.55); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; backdrop-filter: blur(6px); }
.imgcard .imgcard-badge .icon { width: 14px; height: 14px; }
.imgcard .imgcard-text { font-size: 14px; color: var(--text-2); line-height: 1.5; font-style: italic; text-shadow: 0 1px 2px rgba(0,0,0,.6); max-height: 100%; overflow: auto; }
.imgcard .imgcard-text::before { content: "Described image · "; color: var(--muted); font-style: normal; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; display: block; margin-bottom: 6px; }
.card-actions { display: flex; align-items: center; gap: 2px; padding: 8px 8px 0; }
.card-actions .iconbtn { width: 40px; height: 40px; color: var(--text); }
.card-actions .iconbtn.liked { color: var(--like); }
.card-actions .iconbtn.liked .icon { animation: pop .3s ease; }
@keyframes pop { 0% { transform: scale(.7); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }
.card-likes { padding: 2px 14px 0; font-weight: 600; font-size: 14px; }
.card-caption { padding: 4px 14px 0; word-wrap: break-word; }
.card-caption b { margin-right: 6px; }
.card-caption.text-post { padding-top: 2px; font-size: 16px; line-height: 1.5; padding-bottom: 2px; }
.card-caption.text-post + [data-likes] .card-actions { padding-top: 2px; }
.card-caption.text-post.long { font-size: 15px; }
.card-more { padding: 6px 14px 0; color: var(--muted); font-size: 14px; }
.card-time { padding: 4px 14px 0; color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; }
.card-comments { padding: 6px 14px 0; display: flex; flex-direction: column; gap: 6px; }
.comment { display: flex; gap: 10px; align-items: flex-start; }
.comment .comment-body { min-width: 0; flex: 1; font-size: 14px; }
.comment .comment-body b { margin-right: 6px; }
.comment .comment-meta { display: flex; gap: 12px; font-size: 12px; color: var(--muted); margin-top: 3px; }
.comment .comment-meta button { background: none; border: 0; padding: 0; color: var(--muted); font-weight: 600; cursor: pointer; font-size: 12px; }
.comment .comment-meta button:hover { color: var(--text-2); }
.comment.reply { margin-left: 44px; }
.comment.mine .comment-body b { color: var(--accent-2); }
.comment-form { display: flex; align-items: center; gap: 10px; padding: 10px 14px 0; }
.comment-form textarea { flex: 1; padding: 9px 12px; border-radius: 20px; min-height: 40px; max-height: 120px; font-size: 14px; }
.comment-form .btn { border-radius: 20px; }
.comment-form .replying { font-size: 12px; color: var(--muted); }
.typing-dots { display: inline-flex; gap: 3px; align-items: center; }
.typing-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing-dots i:nth-child(2) { animation-delay: .2s; } .typing-dots i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }
.composer-bar { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.composer-bar .fake-input { flex: 1; padding: 10px 14px; border-radius: 22px; background: var(--surface-2); color: var(--muted); font-size: 14px; }
.empty { padding: 48px 24px; text-align: center; color: var(--muted); }
.empty h3 { color: var(--text); margin: 0 0 6px; }
.load-more { display: flex; justify-content: center; padding: 18px; }
.new-posts-pill { position: sticky; top: calc(var(--top-h) + 10px); z-index: 10; display: flex; justify-content: center; pointer-events: none; height: 0; }
.new-posts-pill button { pointer-events: auto; padding: 8px 14px; border-radius: 999px; border: 0; background: var(--accent-2); color: #fff; font-weight: 700; box-shadow: 0 6px 20px rgba(0,0,0,.4); cursor: pointer; }

/* ---------- compose ---------- */
.compose-form { display: flex; flex-direction: column; gap: 14px; padding: 16px; }
.compose-form textarea { min-height: 110px; font-size: 16px; }
.drop { position: relative; border: 1.5px dashed var(--border); border-radius: var(--radius); background: var(--surface); min-height: 140px; display: flex; align-items: center; justify-content: center; color: var(--muted); cursor: pointer; overflow: hidden; }
.drop:has(img:not([hidden])) { border-style: solid; min-height: 0; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop img { width: 100%; max-height: 60vh; object-fit: contain; background: #000; }
.drop .drop-label { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 20px; font-size: 14px; }
.drop:has(img:not([hidden])) .drop-label { display: none; }
.compose-actions { display: flex; align-items: center; gap: 10px; }
.compose-actions .count { color: var(--muted); font-size: 13px; }

/* ---------- profile ---------- */
.profile-head { padding: 20px 16px 8px; display: flex; flex-direction: column; gap: 14px; }
.profile-top { display: flex; align-items: center; gap: 20px; }
.profile-stats { display: flex; gap: 22px; flex: 1; justify-content: space-around; text-align: center; }
.profile-stats b { display: block; font-size: 17px; }
.profile-stats span { font-size: 12.5px; color: var(--muted); }
.profile-name { font-weight: 700; font-size: 15px; }
.profile-meta { color: var(--muted); font-size: 13px; }
.profile-bio { font-size: 14px; white-space: pre-wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); font-size: 12px; color: var(--text-2); }
.chip.rel { color: var(--accent-2); border-color: rgba(139,124,255,.4); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
details.appearance { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; font-size: 13.5px; color: var(--text-2); }
details.appearance summary { cursor: pointer; font-weight: 600; color: var(--text); list-style: none; display: flex; align-items: center; gap: 8px; }
details.appearance summary::-webkit-details-marker { display: none; }
details.appearance p { margin: 8px 0 0; line-height: 1.55; }
.tabs { display: flex; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-top: 8px; }
.tabs a { flex: 1; text-align: center; padding: 12px; font-size: 13px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; }
.tabs a.active { color: var(--text); border-bottom-color: var(--text); }
.profile-actions { display: flex; gap: 8px; }
.profile-actions .btn { flex: 1; }
.comment-list { display: flex; flex-direction: column; }
.comment-list .comment-row { padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 14px; }
.comment-list .comment-row .ctx { color: var(--muted); font-size: 12.5px; margin-top: 3px; }

/* ---------- people ---------- */
.people { display: flex; flex-direction: column; }
.person { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.person .who b { display: block; font-size: 14px; }
.person .who span { color: var(--muted); font-size: 12.5px; }

/* ---------- dms ---------- */
.threads { display: flex; flex-direction: column; }
.thread-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.thread-row .who { flex: 1; min-width: 0; }
.thread-row .who b { font-size: 14px; }
.thread-row .preview { color: var(--muted); font-size: 13.5px; }
.thread-row.unread .preview { color: var(--text); font-weight: 600; }
.thread-row .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent-2); flex: none; }
.thread-row time { color: var(--muted); font-size: 12px; }
.chat { display: flex; flex-direction: column; min-height: calc(100vh - var(--top-h) - var(--nav-h)); }
.chat-messages { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 14px 12px; overflow-y: auto; }
.bubble { max-width: 78%; padding: 9px 13px; border-radius: 18px; font-size: 15px; line-height: 1.4; white-space: pre-wrap; word-wrap: break-word; }
.bubble.them { align-self: flex-start; background: var(--surface-2); border-bottom-left-radius: 6px; }
.bubble.me { align-self: flex-end; background: linear-gradient(120deg, var(--accent-2), #6f5cff); color: #fff; border-bottom-right-radius: 6px; }
.bubble-time { font-size: 11px; color: var(--muted); align-self: center; margin: 6px 0 2px; }
.chat-form { position: sticky; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom)); display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px; background: var(--bg); border-top: 1px solid var(--border); }
.chat-form textarea { flex: 1; border-radius: 20px; max-height: 140px; }
.chat-form .btn { border-radius: 20px; height: 44px; }
.chat-head { display: flex; align-items: center; gap: 10px; }
.chat-head .who b { display: block; font-size: 14px; line-height: 1.2; }
.chat-head .who span { font-size: 12px; color: var(--muted); }

/* ---------- notifications ---------- */
.notifs { display: flex; flex-direction: column; }
.notif { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 14px; }
.notif.unread { background: rgba(139,124,255,.07); }
.notif .text { flex: 1; min-width: 0; }
.notif .text time { color: var(--muted); font-size: 12.5px; margin-left: 6px; }
.notif .thumb { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: var(--surface-2); flex: none; }
.notif .thumb.imgcard { aspect-ratio: auto; padding: 0; max-height: none; border-radius: 8px; }
.notif .thumb.imgcard .imgcard-badge { display: none; }
.section-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 6px; font-size: 13px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }

/* ---------- settings / admin ---------- */
.settings { padding: 16px; display: flex; flex-direction: column; gap: 22px; }
.settings h2 { font-size: 16px; margin: 0 0 10px; }
.settings .panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.vibe-scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.vibe-scale b { color: var(--text-2); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
table.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.table th, table.table td { padding: 9px 10px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
table.table th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: var(--surface-3); color: var(--text-2); }
.pill.ok { background: rgba(61,220,151,.15); color: var(--ok); }
.pill.warn { background: rgba(255,179,71,.15); color: var(--warn); }
.pill.bad { background: rgba(255,92,92,.15); color: var(--danger); }
.pill.run { background: rgba(139,124,255,.18); color: var(--accent-2); }
.admin-nav { display: flex; gap: 6px; padding: 12px 16px 0; flex-wrap: wrap; }
.admin-nav a { padding: 7px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); font-size: 13px; font-weight: 600; color: var(--text-2); }
.admin-nav a.active { color: var(--text); border-color: var(--accent-2); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; font-size: 13.5px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; }
pre { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; overflow: auto; white-space: pre-wrap; }

@media (min-width: 700px) {
  body { font-size: 15px; }
  .card { border: 1px solid var(--border); border-radius: var(--radius); margin: 14px 0; background: var(--surface); }
  .feed { padding: 0 0 20px; }
  .card-media img { border-radius: 0; }
}


/* ---------- follows, suggestions, explore ---------- */
.follow-inline { background: none; border: 0; padding: 0 2px; color: var(--accent-2); font-weight: 700; font-size: 12.5px; cursor: pointer; }
.follow-inline[aria-pressed="true"] { color: var(--muted); font-weight: 600; }
.suggest { border-bottom: 1px solid var(--border); padding-bottom: 6px; }
.suggest-row { display: flex; gap: 10px; overflow-x: auto; padding: 4px 14px 14px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.suggest-row::-webkit-scrollbar { display: none; }
.suggest-card { flex: 0 0 148px; scroll-snap-align: start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 10px 12px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.suggest-card b { font-size: 13px; display: block; max-width: 128px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest-card span { font-size: 11.5px; color: var(--muted); max-width: 128px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest-card .btn { margin-top: 4px; width: 100%; }
.profile-stats a { color: inherit; }
.person .btn { flex: none; }
.explore-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; padding: 0 0 20px; }
.tile { position: relative; display: block; aspect-ratio: 1; background: var(--surface-2); overflow: hidden; }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile.text, .tile.desc { padding: 10px; font-size: 12px; line-height: 1.35; color: var(--text-2); }
.tile.desc { background: radial-gradient(120% 90% at 10% 0%, hsl(var(--h, 260) 40% 24%) 0%, transparent 60%), radial-gradient(100% 90% at 100% 100%, hsl(calc(var(--h, 260) + 60) 45% 20%) 0%, transparent 60%), var(--surface-2); font-style: italic; }
.tile .tile-text { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.tile .tile-who { position: absolute; left: 6px; bottom: 5px; font-size: 10px; color: rgba(255,255,255,.75); text-shadow: 0 1px 2px rgba(0,0,0,.8); font-style: normal; }
.tile .tile-badge { position: absolute; top: 6px; right: 6px; color: rgba(255,255,255,.8); }
.tile .tile-badge .icon { width: 16px; height: 16px; }


/* ---------- comment likes ---------- */
.comment-like { display: flex; flex-direction: column; align-items: center; gap: 1px; margin-left: 8px; flex: none; min-width: 18px; padding-top: 3px; }
.comment-like button { background: none; border: 0; padding: 4px; margin: -4px; color: var(--muted); cursor: pointer; line-height: 0; }
.comment-like button .icon { width: 12px; height: 12px; stroke-width: 2; }
.comment-like.liked button { color: var(--like); }
.comment-like > span { font-size: 10.5px; color: var(--muted); line-height: 1; margin-top: 3px; }

.mention { color: var(--accent-2); font-weight: 600; }
