/* Pearlo — black by default (white mode in settings), TomPearl.com pink #ff24b8. Top bar + floating dock + Tom's table (no X-style sidebar). */
@font-face { font-family: Fredoka; src: url(assets/fredoka.ttf) format("truetype"); font-weight: 300 700; font-display: swap; } /* wordmark only */
[hidden] { display: none !important; }

/* White mode (data-theme="light", or "auto" on a light device). */
:root {
  --bg: #ffffff; --surface: #ffffff; --surface-2: #f3f3f6; --surface-3: #e8e8ed; --line: #ebebef; --line-2: #d9d9df;
  --text: #0f0f14; --muted: #686874; --faint: #a2a2ad;
  --accent: #ff24b8; --accent-2: #e8109f; --accent-text: #d4008f; --accent-soft: #ffe5f5; --on-accent: #ffffff;
  --ink: #0f0f14; --on-ink: #ffffff;
  --gag: #7fa312; --gag-soft: #eef6d6; --pink: #ff24b8; --pink-soft: #ffe5f5; --green: #0f9d63; --green-soft: #dcf6ea; --amber: #c9861a; --red: #e0245e; --red-soft: #ffe4ea;
  --banner: linear-gradient(135deg, #ffc2e8 0%, #ffe3f4 60%, #f4e6ff 100%);
  --scrim: rgba(0, 0, 0, .45);
  --shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 6px 24px rgba(0, 0, 0, .06);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, .18);
  --r: 18px; --r-sm: 12px; --r-xs: 8px;
  --col: 640px; --rail: 330px; --top: 64px; --card: #ffffff;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}
/* Black mode: the default (set on <html> by the server), or "auto" on a dark device. */
:root[data-theme="dark"] {
  --bg: #000000; --surface: #000000; --surface-2: #16161b; --surface-3: #222228; --line: #25252c; --line-2: #36363e;
  --text: #f4f4f7; --muted: #8d8d98; --faint: #5d5d67; --card: #0c0c10;
  --accent-text: #ff4fc6; --accent-soft: #33102a; --ink: #f4f4f7; --on-ink: #0f0f14;
  --gag: #a6cc2e; --gag-soft: #1e2a08; --pink-soft: #33102a; --green-soft: #0f2a1d; --red-soft: #3a1420;
  --banner: linear-gradient(135deg, #6a1150 0%, #2e0a23 60%, #1c0b26 100%);
  --scrim: rgba(70, 70, 84, .55);
  --shadow: 0 0 0 1px rgba(255, 255, 255, .07), 0 8px 26px rgba(0, 0, 0, .6);
  --shadow-lg: 0 0 0 1px rgba(255, 255, 255, .1), 0 10px 40px rgba(0, 0, 0, .7);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #000000; --surface: #000000; --surface-2: #16161b; --surface-3: #222228; --line: #25252c; --line-2: #36363e;
  --text: #f4f4f7; --muted: #8d8d98; --faint: #5d5d67; --card: #0c0c10;
  --accent-text: #ff4fc6; --accent-soft: #33102a; --ink: #f4f4f7; --on-ink: #0f0f14;
  --gag: #a6cc2e; --gag-soft: #1e2a08; --pink-soft: #33102a; --green-soft: #0f2a1d; --red-soft: #3a1420;
  --banner: linear-gradient(135deg, #6a1150 0%, #2e0a23 60%, #1c0b26 100%);
  --scrim: rgba(70, 70, 84, .55);
  --shadow: 0 0 0 1px rgba(255, 255, 255, .07), 0 8px 26px rgba(0, 0, 0, .6);
  --shadow-lg: 0 0 0 1px rgba(255, 255, 255, .1), 0 10px 40px rgba(0, 0, 0, .7);
  color-scheme: dark;
} }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 70px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 15.5px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Hiragino Sans", "Noto Sans JP", sans-serif; -webkit-font-smoothing: antialiased; overflow-wrap: anywhere; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
img, video { display: block; max-width: 100%; }
svg.i { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
svg.i.fill { fill: currentColor; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--on-ink); padding: 10px 16px; border-radius: 12px; }
.skip:focus { top: 12px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; } }

/* ───────── shell: top bar, feed + Tom's table, floating dock ───────── */
.topbar { position: sticky; top: 0; z-index: 25; height: var(--top); background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transition: transform .25s var(--ease); }
.top-in { max-width: calc(var(--col) + var(--rail) + 60px); height: 100%; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; gap: 14px; }
.brand { display: flex; align-items: center; gap: 10px; font: 700 30px/1 Fredoka, ui-rounded, sans-serif; letter-spacing: -.5px; color: var(--text); flex: none; }
.brand img { width: 40px; height: 40px; }
.brand b { color: var(--accent); }
.top-search { flex: 1; max-width: 400px; margin-left: auto; }
.top-search .search input { height: 42px; }
.top-search .search svg.i { top: 10px; }
.topbar .top-search-btn { display: none; }
.top-right { display: flex; align-items: center; gap: 8px; flex: none; }
.me-btn { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px 0 4px; border-radius: 999px; background: var(--surface-2); transition: background .15s; }
.me-btn:hover { background: var(--surface-3); }
.me-btn .who { display: flex; align-items: center; gap: 6px; max-width: 160px; }
.me-btn .who b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-btn .lvl { font: 600 12px/1 Fredoka, sans-serif; color: var(--accent-text); white-space: nowrap; }
.badge { min-width: 19px; height: 19px; padding: 0 6px; border-radius: 99px; background: var(--pink); color: #fff; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; line-height: 1; }
.shell { display: grid; grid-template-columns: minmax(0, var(--col)) var(--rail); justify-content: center; gap: 0 30px; min-height: calc(100vh - var(--top)); }
.main { min-width: 0; padding-bottom: 120px; }
.rail { position: sticky; top: var(--top); height: calc(100vh - var(--top)); overflow-y: auto; padding: 10px 0 110px; display: flex; flex-direction: column; gap: 14px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { flex-shrink: 0; }
.dock { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 30; display: flex; align-items: center; gap: 2px; padding: 6px; border-radius: 999px; background: color-mix(in srgb, var(--surface-2) 90%, transparent); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); }
.dock a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 64px; padding: 0 8px; height: 52px; border-radius: 999px; color: var(--muted); transition: color .15s, background .15s; }
.dock a:hover { color: var(--text); background: var(--surface-3); }
.dock a .lbl { font-size: 10.5px; font-weight: 600; line-height: 1; white-space: nowrap; }
.dock a[aria-current="page"] { color: var(--accent-text); }
.dock a[aria-current="page"] svg.i { stroke-width: 2.5; }
.dock .badge { position: absolute; top: 2px; left: calc(50% + 4px); border: 2px solid var(--surface-2); }
.dock .drop { display: flex; align-items: center; gap: 8px; height: 52px; margin: 0 8px; padding: 0 24px 0 18px; border-radius: 999px; background: var(--accent); color: #fff; font: 600 19px/1 Fredoka, ui-rounded, sans-serif; box-shadow: 0 6px 24px rgba(255, 36, 184, .45); transition: transform .12s, background .15s; }
.dock .drop:hover { background: var(--accent-2); transform: translateY(-2px); }
.dock .drop:active { transform: scale(.96); }
.dock .drop svg.i { stroke-width: 2.8; }
body.in-chat .dock { display: none; }

/* ───────── buttons, inputs ───────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 999px; font-weight: 600; font-size: 15px; border: 1.5px solid var(--line-2); background: var(--surface); transition: transform .1s, background .15s, opacity .15s; white-space: nowrap; }
.btn:hover { background: var(--surface-2); }
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn.primary { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.btn.primary:hover { background: var(--accent-2); }
.btn.pearl { background: var(--accent); color: var(--on-accent); border: 0; }
.btn.pearl:hover { background: var(--accent-2); }
.btn.pearl:hover { filter: saturate(1.2) brightness(1.02); }
.btn.pearl:active { transform: scale(.98); }
.btn.danger { background: var(--red); color: #fff; border-color: transparent; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.sm { height: 32px; padding: 0 13px; font-size: 14px; }
.btn.lg { height: 50px; padding: 0 24px; font-size: 18px; width: 100%; }
.btn.following:hover { border-color: var(--red); color: var(--red); background: var(--red-soft); }
.icon-btn { width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); transition: background .15s, color .15s; flex: none; }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field > span { font-weight: 600; font-size: 14px; }
.field small { color: var(--muted); }
.input, .field input[type=text], .field input[type=url], .field input[type=number], .field input:not([type]), .field textarea, .field select, .search input {
  width: 100%; border: 1.5px solid var(--line-2); background: var(--surface); border-radius: var(--r-sm); padding: 11px 14px; outline: none; transition: border-color .15s, box-shadow .15s; }
.input:focus, .field input:focus, .field textarea:focus, .field select:focus, .search input:focus { border-color: var(--accent-text); box-shadow: 0 0 0 4px var(--accent-soft); }
.field textarea { resize: vertical; min-height: 90px; }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); margin-top: 2px; flex: none; }
.check b { display: block; font-weight: 600; }
.check small { color: var(--muted); }
.radio-cards { display: grid; gap: 8px; }
.radio-cards label { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1.5px solid var(--line-2); border-radius: var(--r-sm); cursor: pointer; }
.radio-cards label:has(input:checked) { border-color: var(--accent-text); background: var(--accent-soft); }
.radio-cards input { margin-top: 3px; accent-color: var(--accent-text); }
.search { position: relative; }
.search input { padding-left: 44px; border-radius: 999px; background: var(--surface-2); border-color: transparent; height: 46px; }
.search svg.i { position: absolute; left: 15px; top: 12px; color: var(--muted); }

/* ───────── headers, tabs ───────── */
.head { position: sticky; top: var(--top); z-index: 20; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.head-row { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 6px 14px; }
.head-row h1 { font: 600 23px/1.15 Fredoka, ui-rounded, sans-serif; margin: 0; line-height: 1.15; min-width: 0; }
.head-row h1 small { display: block; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-size: 13px; color: var(--muted); font-weight: 400; }
.head-row .grow { flex: 1; min-width: 0; }
.tabs { display: flex; gap: 6px; padding: 8px 12px 10px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a, .tabs button { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 16px; border-radius: 999px; background: var(--surface-2); font-weight: 600; font-size: 14.5px; color: var(--muted); white-space: nowrap; transition: background .15s, color .15s; }
.tabs a:hover, .tabs button:hover { color: var(--text); background: var(--surface-3); }
.tabs [aria-selected="true"], .tabs [aria-selected="true"]:hover { background: var(--accent); color: #fff; }
.tabs [aria-selected="true"] .badge { background: #fff; color: var(--accent-2); }
.home-head .tabs { padding: 12px 0 14px; gap: 8px; }
.home-head .tabs a { height: 44px; padding: 0 22px; font: 600 18px/1 Fredoka, ui-rounded, sans-serif; }
.chips { display: flex; gap: 8px; padding: 10px 14px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 34px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line-2); display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; background: var(--surface); }
.chip[aria-pressed="true"], .chip.on { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }

/* ───────── composer ───────── */
.composer { display: flex; gap: 12px; padding: 14px 16px 10px; border-bottom: 1px solid var(--line); }
.composer .body { flex: 1; min-width: 0; }
.composer textarea { width: 100%; border: 0; background: transparent; outline: none; resize: none; font-size: 19px; line-height: 1.4; min-height: 56px; padding: 8px 0; }
.composer .title-input { width: 100%; border: 0; border-bottom: 1px dashed var(--line-2); background: transparent; outline: none; font-size: 19px; font-weight: 700; padding: 6px 0 8px; }
.composer .target { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 99px; border: 1.5px solid var(--line-2); color: var(--accent-text); font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.composer .tools { display: flex; align-items: center; gap: 2px; border-top: 1px solid var(--line); padding-top: 8px; margin-top: 6px; flex-wrap: wrap; }
.composer .tools .icon-btn { color: var(--accent-text); }
.composer .tools .icon-btn[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent-text); }
.composer .count { margin-left: auto; font-size: 13px; color: var(--muted); padding: 0 10px; }
.composer .count.over { color: var(--red); font-weight: 700; }
.composer .flags { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0; }
.composer .flag { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; padding: 4px 10px; border-radius: 99px; background: var(--surface-2); }
.attach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin: 8px 0; }
.attach { position: relative; border-radius: var(--r-sm); overflow: hidden; background: var(--surface-2); aspect-ratio: 1; }
.attach img { width: 100%; height: 100%; object-fit: cover; }
.attach .x { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 50%; background: rgba(0, 0, 0, .65); color: #fff; display: flex; align-items: center; justify-content: center; }
.attach .alt { position: absolute; left: 6px; bottom: 6px; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: rgba(0, 0, 0, .65); color: #fff; }
.attach .bar { position: absolute; left: 0; bottom: 0; height: 4px; background: var(--pink); transition: width .2s; }
.attach.err { outline: 2px solid var(--red); }
.attach .state { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; color: #fff; background: rgba(0, 0, 0, .35); text-align: center; padding: 8px; }
.poll-builder { border: 1.5px solid var(--line-2); border-radius: var(--r-sm); padding: 10px; margin: 8px 0; display: grid; gap: 8px; }
.poll-builder .row { display: flex; gap: 8px; align-items: center; }
.poll-builder .row input { flex: 1; }
.ac { position: absolute; z-index: 60; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); box-shadow: var(--shadow-lg); min-width: 240px; max-width: 320px; overflow: hidden; }
.ac button { display: flex; gap: 10px; align-items: center; width: 100%; padding: 9px 12px; text-align: left; }
.ac button[aria-selected="true"], .ac button:hover { background: var(--surface-2); }

/* ───────── post card ───────── */
.post { display: block; margin: 0 0 12px; padding: 14px 16px 12px 22px; border: 1px solid var(--line); border-radius: 22px; background: var(--card); position: relative; cursor: pointer; transition: background .15s, border-color .15s; content-visibility: auto; contain-intrinsic-size: auto 280px; }
/* taste strip: the card's left edge shows the yum (pink, top) / yuck (green, bottom) split */
.post::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 5px; border-radius: 0 5px 5px 0; background: var(--line-2); }
.post.has-m::before { background: linear-gradient(to bottom, var(--pink) 0 calc(var(--m) * 1%), var(--gag) calc(var(--m) * 1%) 100%); }
.post.hot { border-color: color-mix(in srgb, var(--pink) 40%, var(--line)); box-shadow: 0 0 28px -10px color-mix(in srgb, var(--pink) 60%, transparent); }
.post:hover { border-color: var(--line-2); }
.post.detail { cursor: default; padding-top: 16px; margin-top: 4px; }
.post.detail:hover { border-color: var(--line); }
.post .context { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 600; margin: -2px 0 8px; }
.post .context svg.i { width: 16px; height: 16px; }
.post .context a:hover { text-decoration: underline; }
.av { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; background: var(--surface-3); flex: none; }
.av.sm { width: 32px; height: 32px; }
.av.xs { width: 24px; height: 24px; }
.av.lg { width: 92px; height: 92px; }
.av.sq { border-radius: 14px; }
.post .meta { display: flex; align-items: baseline; gap: 6px; min-width: 0; flex-wrap: wrap; line-height: 1.3; }
.post .meta .name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60%; }
.post .meta .name:hover { text-decoration: underline; }
.post .meta .handle, .post .meta .dot, .post .meta time { color: var(--muted); font-size: 15px; white-space: nowrap; }
.post .meta .handle { overflow: hidden; text-overflow: ellipsis; max-width: 40%; }
.verified { display: inline-flex; width: 17px; height: 17px; vertical-align: -3px; }
.staff-tag { font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-text); }
.post .head-line { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.post .head-line > a .av { width: 42px; height: 42px; }
.post .head-line .meta { flex: 1; }
.post .head-line .icon-btn { margin: 0 -8px 0 0; width: 34px; height: 34px; }
.post.detail .head-line { align-items: center; gap: 10px; margin-bottom: 4px; }
.post.detail .head-line .meta { flex-direction: column; align-items: flex-start; gap: 0; }
.post.detail .meta .name, .post.detail .meta .handle { max-width: 100%; }
.comm-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; color: var(--text); padding: 1px 9px 1px 3px; border-radius: 99px; background: var(--surface-2); margin: 2px 0 4px; max-width: 100%; }
.comm-chip img, .comm-chip .dotc { width: 18px; height: 18px; border-radius: 50%; }
.comm-chip:hover { background: var(--surface-3); }
.post h2.ptitle { font: 600 21px/1.25 Fredoka, ui-rounded, sans-serif; line-height: 1.3; margin: 2px 0 4px; font-weight: 700; }
.post.detail h1.ptitle { font: 600 27px/1.2 Fredoka, ui-rounded, sans-serif; margin: 4px 0 6px; }
.post .text { white-space: pre-wrap; font-size: 16.5px; line-height: 1.5; }
.post.detail .text { font-size: 19px; }
.post .text.clamp { display: -webkit-box; -webkit-line-clamp: 9; -webkit-box-orient: vertical; overflow: hidden; }
.post .more { color: var(--accent-text); font-weight: 600; margin-top: 2px; }
.text a, .rich a { color: var(--accent-text); }
.text a:hover, .rich a:hover { text-decoration: underline; }
.spoiler-text { background: var(--text); color: transparent; border-radius: 4px; cursor: pointer; user-select: none; transition: color .2s, background .2s; }
.spoiler-text.shown { background: var(--surface-2); color: inherit; user-select: auto; }
.pill { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 6px; text-transform: uppercase; letter-spacing: .3px; }
.pill.nsfw { background: var(--red-soft); color: var(--red); }
.pill.spoiler { background: var(--accent-soft); color: var(--accent-text); }
.pill.pin { background: var(--green-soft); color: var(--green); }
.pill.lock { background: var(--surface-3); color: var(--muted); }
.pill.warn { background: #fff1d6; color: #9a5c00; }
:root[data-theme="dark"] .pill.warn { background: #3a2a10; color: #f0c070; }
.removed-note { margin: 6px 0; padding: 10px 12px; border-radius: var(--r-sm); background: var(--surface-2); color: var(--muted); font-size: 14px; }

/* media */
.media { margin-top: 10px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); display: grid; gap: 3px; background: var(--line); position: relative; }
.media.n2 { grid-template-columns: 1fr 1fr; aspect-ratio: 16 / 9; }
.media.n3 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; aspect-ratio: 16 / 9; }
.media.n3 .m:first-child { grid-row: 1 / 3; }
.media.n4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; aspect-ratio: 16 / 9; }
.media .m { position: relative; overflow: hidden; background: var(--surface-3); min-height: 0; }
.media.n1 .m { max-height: 560px; }
.media .m img, .media .m video { width: 100%; height: 100%; object-fit: cover; }
.media.n1 .m img, .media.n1 .m video { object-fit: contain; max-height: 560px; background: #000; }
.media .m .alt-badge { position: absolute; left: 8px; bottom: 8px; font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 5px; background: rgba(0, 0, 0, .7); color: #fff; }
.media .play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.media .play span { width: 62px; height: 62px; border-radius: 50%; background: rgba(0, 0, 0, .6); display: flex; align-items: center; justify-content: center; color: #fff; backdrop-filter: blur(4px); }
.media .dur { position: absolute; right: 8px; bottom: 8px; font-size: 12px; font-weight: 700; padding: 2px 7px; border-radius: 6px; background: rgba(0, 0, 0, .7); color: #fff; }
.media .processing { padding: 40px 20px; text-align: center; color: var(--muted); font-weight: 600; background: var(--surface-2); }
.veil { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 16px; color: #fff; background: rgba(30, 15, 8, .25); }
.veil b { font-size: 16px; text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }
.veil small { opacity: .9; text-shadow: 0 1px 4px rgba(0, 0, 0, .6); max-width: 280px; }
.veil .btn { background: rgba(255, 255, 255, .92); color: #0f0f14; border: 0; }

/* link card, embeds, quote */
.linkcard { display: flex; margin-top: 10px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface); }
.linkcard.big { flex-direction: column; }
.linkcard .lc-img { width: 128px; flex: none; background: var(--surface-3); object-fit: cover; aspect-ratio: 1; }
.linkcard.big .lc-img { width: 100%; aspect-ratio: 1.91; }
.linkcard .lc-body { padding: 10px 14px; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.linkcard .lc-host { color: var(--muted); font-size: 13px; }
.linkcard .lc-title { font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.linkcard .lc-desc { color: var(--muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.linkcard:hover { background: var(--surface-2); }
.embed { margin-top: 10px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 9; background: #000; position: relative; }
.embed iframe { width: 100%; height: 100%; border: 0; }
.embed .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.quote { margin-top: 10px; border: 1px solid var(--line-2); border-radius: var(--r); padding: 10px 12px; cursor: pointer; }
.quote:hover { background: var(--surface-2); }
.quote .meta { font-size: 14px; }
.quote .text { font-size: 15px; }
.quote .media { margin-top: 8px; max-height: 240px; }
.quote.gone { color: var(--muted); cursor: default; }

/* poll */
.poll { margin-top: 10px; display: grid; gap: 7px; }
.poll button.opt { text-align: left; padding: 10px 14px; border: 1.5px solid var(--accent-text); color: var(--accent-text); border-radius: 999px; font-weight: 600; }
.poll button.opt:hover { background: var(--accent-soft); }
.poll .res { position: relative; padding: 9px 14px; border-radius: 10px; overflow: hidden; display: flex; justify-content: space-between; gap: 10px; font-weight: 500; }
.poll .res .fillbar { position: absolute; inset: 0 auto 0 0; background: var(--surface-3); border-radius: 10px; z-index: 0; transition: width .6s var(--ease); }
.poll .res.mine .fillbar { background: var(--accent-soft); }
.poll .res > span { position: relative; z-index: 1; }
.poll .res.win { font-weight: 700; }
.poll .foot { color: var(--muted); font-size: 14px; }

/* actions */
.actions { display: flex; align-items: center; justify-content: space-between; gap: 8px 10px; flex-wrap: wrap; margin: 12px 0 0; }
.acts-rest { display: flex; gap: 2px; margin-right: -6px; }
/* Yuck | meter | Yum — the main thing you do on Pearlo */
.vote { display: inline-flex; align-items: center; height: 42px; padding: 0 3px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.vote .act { height: 36px; padding: 0 13px 0 11px; gap: 6px; font: 600 16px/1 Fredoka, ui-rounded, sans-serif; }
.vote .act svg.i { width: 22px; height: 22px; }
.vote .act.l.on { background: var(--pink-soft); }
.vote .act.g.on { background: var(--gag-soft); }
.vote .act .burst { left: 22px; }
.vote-mid { display: inline-flex; align-items: center; gap: 7px; height: 22px; padding: 0 10px; border-left: 1px solid var(--line-2); border-right: 1px solid var(--line-2); font: 700 14px/1 Fredoka, ui-rounded, sans-serif; color: var(--text); white-space: nowrap; }
.vote-mid.none small { font: 500 12px/1 Fredoka, ui-rounded, sans-serif; color: var(--faint); }
.vm-bar { width: 46px; height: 7px; border-radius: 7px; background: var(--gag); overflow: hidden; }
.vm-bar i { display: block; height: 100%; background: var(--pink); transition: width .4s var(--ease); }
.post.detail .actions { border-top: 1px solid var(--line); margin: 12px 0 0; padding: 12px 0 0; }
.act { display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 8px 0 7px; border-radius: 99px; color: var(--muted); font-size: 14px; transition: color .15s, background .15s; }
.act svg.i { width: 20px; height: 20px; }
.act:hover { background: var(--surface-2); color: var(--text); }
.act.c:hover { color: var(--accent-text); background: var(--accent-soft); }
.act.r:hover, .act.r.on { color: var(--green); }
.act.r:hover { background: var(--green-soft); }
.act.l:hover, .act.l.on { color: var(--pink); }
.act.l:hover { background: var(--pink-soft); }
.act.l.on svg.i { fill: currentColor; }
.act.g:hover, .act.g.on { color: var(--gag); }
.act.g:hover { background: var(--gag-soft); }
.act.g.on svg.i { fill: currentColor; }
.act.b.on { color: var(--amber); }
.act.b.on svg.i { fill: var(--amber); }
.act.pop svg.i { animation: pop .35s var(--ease); }
@keyframes pop { 40% { transform: scale(1.35); } }
/* Vote burst (PL.voteFx): the burst sits on the icon centre (padding-left + half the icon). */
.act { position: relative; }
.act.l svg.i, .act.g svg.i { fill: transparent; transition: fill .2s .12s; }
.act.fx-taste svg.i { transform-origin: 50% 90%; animation: tasteJelly .6s cubic-bezier(.3,.7,.4,1); }
.act.fx-gag svg.i { animation: gagRetch .6s ease-in-out; }
.act .burst { position: absolute; left: 17px; top: 50%; width: 0; height: 0; pointer-events: none; color: inherit; }
.cmt .cacts .act .burst { left: 15.5px; }
.act .burst.taste::before { content: ""; position: absolute; left: -15px; top: -15px; width: 30px; height: 30px; border-radius: 50%; border: 2.5px solid currentColor; opacity: 0; animation: voteRing .5s ease-out forwards; }
.act .burst i { position: absolute; left: -2.5px; top: -2.5px; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: 0; --d: 21px; }
.act .burst.taste i { animation: voteSpark .62s .06s cubic-bezier(.15,.75,.35,1) forwards; }
.act .burst.taste i:nth-child(even) { width: 3px; height: 3px; left: -1.5px; top: -1.5px; --d: 17px; background: #ff7fd3; }
.act .burst i:nth-child(1) { --a: 0deg; } .act .burst i:nth-child(2) { --a: 45deg; } .act .burst i:nth-child(3) { --a: 90deg; } .act .burst i:nth-child(4) { --a: 135deg; }
.act .burst i:nth-child(5) { --a: 180deg; } .act .burst i:nth-child(6) { --a: 225deg; } .act .burst i:nth-child(7) { --a: 270deg; } .act .burst i:nth-child(8) { --a: 315deg; }
.act .burst.gag i { width: 3px; height: 5px; left: -1.5px; top: -2.5px; border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%; animation: voteSpray .7s .08s cubic-bezier(.2,.6,.4,1) forwards; }
.act .burst.gag i:nth-child(1) { --a: 104deg; --d: 18px; } .act .burst.gag i:nth-child(2) { --a: 134deg; --d: 22px; } .act .burst.gag i:nth-child(3) { --a: 160deg; --d: 17px; }
.act .burst.gag i:nth-child(4) { --a: 180deg; --d: 23px; } .act .burst.gag i:nth-child(5) { --a: 200deg; --d: 17px; } .act .burst.gag i:nth-child(6) { --a: 226deg; --d: 22px; }
.act .burst.gag i:nth-child(7) { --a: 256deg; --d: 18px; }
@keyframes tasteJelly { 0% { transform: none; } 18% { transform: translateY(2px) scale(1.32, .68); } 42% { transform: translateY(-6px) scale(.84, 1.26); } 62% { transform: translateY(0) scale(1.14, .9); } 80% { transform: scale(.96, 1.05); } 100% { transform: none; } }
@keyframes gagRetch { 0% { transform: none; } 14% { transform: translateX(-2px) rotate(-16deg) scale(1.18); } 28% { transform: translateX(2px) rotate(14deg) scale(1.18); } 42% { transform: translateX(-2px) rotate(-11deg) scale(1.12); } 56% { transform: translateX(1px) rotate(8deg) scale(1.06); } 72% { transform: rotate(-4deg); } 100% { transform: none; } }
@keyframes voteRing { 0% { opacity: .9; transform: scale(.35); } 100% { opacity: 0; transform: scale(1.3); border-width: 0; } }
@keyframes voteSpark { 0% { opacity: 0; transform: rotate(var(--a)) translateY(-10px) scale(1); } 12%, 70% { opacity: 1; } 100% { opacity: 0; transform: rotate(var(--a)) translateY(calc(var(--d) * -1)) scale(.3); } }
@keyframes voteSpray { 0% { opacity: 0; transform: rotate(var(--a)) translateY(-9px) rotate(calc(var(--a) * -1)) translateY(0); } 12% { opacity: 1; }
  55% { opacity: 1; transform: rotate(var(--a)) translateY(calc(var(--d) * -1)) rotate(calc(var(--a) * -1)) translateY(1px); }
  100% { opacity: 0; transform: rotate(var(--a)) translateY(calc(var(--d) * -1.1)) rotate(calc(var(--a) * -1)) translateY(8px); } }
.stats-line { display: flex; gap: 16px; padding: 12px 0; color: var(--muted); font-size: 15px; flex-wrap: wrap; }
.stats-line b { color: var(--text); }
.stats-line button:hover { text-decoration: underline; }
.post.detail .when { color: var(--muted); font-size: 15px; padding: 12px 0 0; }

/* ───────── comments ───────── */
.comments { padding: 0 0 20px; }
.sortbar { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.sortbar label { color: var(--muted); font-size: 14px; }
.sortbar select { border: 1.5px solid var(--line-2); border-radius: 99px; padding: 5px 12px; background: var(--surface); }
.cmt { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 0 10px; padding: 10px 16px 2px; position: relative; }
.cmt .kids { grid-column: 1 / -1; margin-left: 16px; padding-left: 16px; border-left: 2px solid var(--line); }
.cmt .kids .cmt { padding-right: 0; padding-left: 0; }
.cmt .bubble { min-width: 0; }
.cmt .meta { display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; font-size: 14px; }
.cmt .meta .name { font-weight: 700; }
.cmt .meta .op { font-size: 11px; font-weight: 700; color: var(--accent-text); background: var(--accent-soft); padding: 0 6px; border-radius: 5px; }
.cmt .meta time, .cmt .meta .handle { color: var(--muted); }
.cmt .text { white-space: pre-wrap; font-size: 15.5px; margin: 2px 0; }
.cmt .text.gone { color: var(--muted); font-style: italic; }
.cmt .cacts { display: flex; gap: 2px; margin-left: -8px; }
.cmt .cacts .act { height: 30px; font-size: 13px; }
.cmt .cacts .act svg.i { width: 17px; height: 17px; }
.cmt img.cimg { max-width: 260px; max-height: 260px; border-radius: 12px; margin: 6px 0; border: 1px solid var(--line); }
.more-replies { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-text); font-weight: 600; font-size: 14px; padding: 6px 0 8px; }
.reply-box { grid-column: 2; margin: 6px 0 8px; }
.cbox { display: flex; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); align-items: flex-start; }
.cbox .wrap { flex: 1; min-width: 0; border: 1.5px solid var(--line-2); border-radius: 18px; padding: 4px 4px 4px 14px; display: flex; align-items: flex-end; gap: 6px; background: var(--surface); }
.cbox .wrap:focus-within { border-color: var(--accent-text); box-shadow: 0 0 0 4px var(--accent-soft); }
.cbox textarea { flex: 1; border: 0; outline: none; resize: none; background: transparent; padding: 7px 0; min-height: 36px; max-height: 220px; font-size: 15.5px; }
.cbox .btn { height: 34px; }
.locked-note { padding: 14px 16px; color: var(--muted); display: flex; gap: 8px; align-items: center; border-bottom: 1px solid var(--line); }

/* ───────── profile + community headers ───────── */
.banner { height: 190px; background: var(--banner); position: relative; overflow: hidden; }
.banner img { width: 100%; height: 100%; object-fit: cover; }
.banner.comm { height: 140px; }
.prof { padding: 0 16px 12px; position: relative; }
.prof .top { display: flex; justify-content: space-between; align-items: flex-end; margin-top: -48px; gap: 10px; }
.prof .top .av.lg { border: 4px solid var(--surface); width: 112px; height: 112px; }
.prof .top .btns { display: flex; gap: 8px; padding-bottom: 6px; flex-wrap: wrap; justify-content: flex-end; }
.prof h1 { margin: 10px 0 0; font-size: 23px; line-height: 1.2; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.prof .handle { color: var(--muted); }
.prof .bio { white-space: pre-wrap; margin: 10px 0; }
.prof .facts { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--muted); font-size: 15px; }
.prof .facts span, .prof .facts a { display: inline-flex; align-items: center; gap: 4px; }
.prof .facts svg.i { width: 18px; height: 18px; }
.prof .facts a { color: var(--accent-text); }
.prof .counts { display: flex; gap: 18px; margin-top: 10px; }
.prof .counts a:hover { text-decoration: underline; }
.prof .counts b { font-weight: 700; }
.prof .counts span { color: var(--muted); }
.follows-you { font-size: 12px; font-weight: 600; padding: 1px 7px; border-radius: 6px; background: var(--surface-2); color: var(--muted); }
.mutuals { display: flex; align-items: center; gap: 8px; margin-top: 10px; color: var(--muted); font-size: 14px; }
.mutuals .stack { display: flex; }
.mutuals .stack img { margin-left: -8px; border: 2px solid var(--surface); }
.mutuals .stack img:first-child { margin-left: 0; }
.comm-head { padding: 0 16px 14px; }
.comm-head .top { display: flex; gap: 14px; align-items: flex-end; margin-top: -34px; }
.comm-head .icon { width: 84px; height: 84px; border-radius: 24px; border: 4px solid var(--surface); background: var(--surface-3); object-fit: cover; flex: none; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 34px; color: #fff; }
.comm-head h1 { margin: 0; font-size: 24px; line-height: 1.15; }
.comm-head .slug { color: var(--muted); font-size: 15px; }
.comm-head .desc { margin: 10px 0 8px; white-space: pre-wrap; }
.comm-head .facts { display: flex; gap: 16px; color: var(--muted); font-size: 14px; flex-wrap: wrap; align-items: center; }
.comm-head .facts b { color: var(--text); }
.comm-head .facts .live::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-right: 5px; }
.comm-head .btns { display: flex; gap: 8px; margin-left: auto; padding-bottom: 4px; }

/* ───────── lists, cards, rail ───────── */
.box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.rail .box { background: var(--surface); }
.box h2 { font-size: 19px; margin: 0; padding: 14px 16px 6px; font-weight: 700; }
.box .foot { display: block; padding: 12px 16px; color: var(--accent-text); font-weight: 500; }
.box .foot:hover { background: var(--surface-2); }
.row-link { display: flex; align-items: center; gap: 12px; padding: 10px 16px; transition: background .15s; min-width: 0; }
.row-link:hover { background: var(--surface-2); }
.row-link .txt { flex: 1; min-width: 0; line-height: 1.25; }
.row-link .txt b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-link .txt small { color: var(--muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-link .txt p { margin: 3px 0 0; font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.trend { display: block; padding: 10px 16px; }
.trend:hover { background: var(--surface-2); }
.trend small { color: var(--muted); display: block; font-size: 13px; }
.trend b { font-size: 16px; }
.cicon { width: 40px; height: 40px; border-radius: 12px; flex: none; object-fit: cover; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 18px; }
.cicon.sm { width: 28px; height: 28px; border-radius: 9px; font-size: 13px; }
.rail .legal { color: var(--faint); font-size: 13px; padding: 0 12px; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.rail .legal a:hover { text-decoration: underline; }
.announce { margin: 10px 16px; padding: 10px 14px; border-radius: var(--r-sm); background: var(--accent-soft); color: var(--text); font-weight: 500; border-left: 4px solid var(--accent); }
.section-title { font-size: 20px; font-weight: 700; padding: 18px 16px 8px; margin: 0; display: flex; justify-content: space-between; align-items: baseline; }
.section-title a { font-size: 14px; color: var(--accent-text); font-weight: 500; }
.grid-media { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; padding: 0 0 6px; }
.grid-media a { aspect-ratio: 1; overflow: hidden; background: var(--surface-3); position: relative; }
.grid-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.grid-media a:hover img { transform: scale(1.04); }
.grid-media .ic { position: absolute; top: 6px; right: 6px; color: #fff; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .6)); }
.comm-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; padding: 12px 16px; }
.ccard { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface); display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.ccard:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.ccard .cb { height: 64px; background: var(--banner); }
.ccard .cb img { width: 100%; height: 100%; object-fit: cover; }
.ccard .ci { padding: 0 14px 14px; flex: 1; display: flex; flex-direction: column; }
.ccard .ci .cicon { margin-top: -22px; border: 3px solid var(--surface); width: 48px; height: 48px; border-radius: 15px; }
.ccard h3 { margin: 6px 0 0; font-size: 17px; }
.ccard .slug { color: var(--muted); font-size: 14px; }
.ccard p { margin: 6px 0 10px; font-size: 14px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }
.ccard .cf { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--muted); }
.topic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; padding: 6px 16px 14px; }
.topic-grid a { padding: 14px; border-radius: var(--r-sm); background: var(--surface-2); font-weight: 600; text-transform: capitalize; }
.topic-grid a small { display: block; color: var(--muted); font-weight: 400; text-transform: none; }
.topic-grid a:hover { background: var(--surface-3); }

/* ───────── notifications ───────── */
.notif { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 0 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); cursor: pointer; }
.notif:hover { background: var(--surface-2); }
.notif.unread { background: color-mix(in srgb, var(--accent-soft) 55%, transparent); }
.notif .nic { width: 40px; display: flex; justify-content: flex-end; padding-top: 2px; }
.notif .nic svg.i { width: 28px; height: 28px; }
.notif .nic.k-like { color: var(--pink); } .notif .nic.k-like svg.i { fill: var(--pink-soft); }
.notif .nic.k-septic, .notif .nic.k-rescued { color: var(--gag); } .notif .nic.k-ratio, .notif .nic.k-ratioed { color: var(--pink); } .notif .nic.k-appeal { color: var(--amber); }
.notif .nic.k-follow, .notif .nic.k-follow_request, .notif .nic.k-follow_accepted { color: var(--accent-text); }
.notif .nic.k-repost, .notif .nic.k-quote { color: var(--green); }
.notif .nic.k-comment, .notif .nic.k-reply, .notif .nic.k-mention { color: var(--text); }
.notif .nic.k-mod, .notif .nic.k-system { color: var(--amber); }
.notif .avs { display: flex; gap: 4px; margin-bottom: 6px; }
.notif .ntext b { font-weight: 700; }
.notif .excerpt { color: var(--muted); margin-top: 4px; font-size: 15px; white-space: pre-wrap; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.notif time { color: var(--muted); font-size: 13px; }

/* ───────── messages ───────── */
.dm-layout { display: grid; grid-template-columns: 1fr; height: calc(100vh - 0px); }
.conv { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.conv:hover { background: var(--surface-2); }
.conv.unread .txt b, .conv.unread .txt p { font-weight: 700; color: var(--text); }
.conv .txt { flex: 1; min-width: 0; }
.conv .txt .l1 { display: flex; gap: 6px; align-items: baseline; }
.conv .txt .l1 b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv .txt .l1 small, .conv .txt .l1 time { color: var(--muted); white-space: nowrap; font-size: 14px; }
.conv .txt p { margin: 2px 0 0; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 15px; }
.conv .dotu { width: 10px; height: 10px; border-radius: 50%; background: var(--pink); flex: none; }
.chat { display: flex; flex-direction: column; height: calc(100vh - var(--top)); }
.chat .msgs { flex: 1; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 3px; overscroll-behavior: contain; }
.chat .intro { text-align: center; padding: 20px 10px 26px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.chat .intro .av { margin: 0 auto 8px; }
.chat .intro small { color: var(--muted); display: block; }
.msg { max-width: 78%; display: flex; flex-direction: column; align-items: flex-start; }
.msg.mine { align-self: flex-end; align-items: flex-end; }
.msg .bub { padding: 9px 14px; border-radius: 20px; background: var(--surface-2); white-space: pre-wrap; word-break: break-word; position: relative; }
.msg.mine .bub { background: var(--accent); color: var(--on-accent); }
.msg.gap { margin-top: 10px; }
.msg .bub.deleted { background: transparent; border: 1px dashed var(--line-2); color: var(--muted); font-style: italic; }
.msg .bub img { border-radius: 14px; max-height: 300px; margin: -3px -8px; }
.msg .bub.img-only { padding: 0; background: none; overflow: hidden; border-radius: 18px; }
.msg .bub.img-only img { margin: 0; }
.msg .when { font-size: 12px; color: var(--muted); margin: 2px 6px 0; }
.msg .msg-menu { opacity: 0; }
.msg:hover .msg-menu, .msg:focus-within .msg-menu { opacity: 1; }
.typing { align-self: flex-start; display: flex; gap: 4px; padding: 12px 14px; border-radius: 20px; background: var(--surface-2); margin-top: 6px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 60%, 100% { opacity: .25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.chat .send { display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px; border-top: 1px solid var(--line); background: var(--surface); }
.chat .send .wrap { flex: 1; display: flex; align-items: flex-end; background: var(--surface-2); border-radius: 22px; padding: 2px 4px 2px 14px; }
.chat .send textarea { flex: 1; border: 0; background: transparent; outline: none; resize: none; padding: 9px 0; max-height: 140px; min-height: 40px; }
.chat .request-bar { padding: 14px 16px; border-top: 1px solid var(--line); text-align: center; display: grid; gap: 10px; }
.chat .request-bar .btns { display: flex; gap: 8px; justify-content: center; }
.chat .pending-img { display: flex; gap: 8px; padding: 8px 12px 0; }
.chat .pending-img img { height: 70px; border-radius: 10px; }

/* ───────── menus, modals, toasts ───────── */
.menu { position: fixed; z-index: 85; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); box-shadow: var(--shadow-lg); min-width: 220px; max-width: 300px; padding: 6px 0; animation: menuIn .14s var(--ease); }
@keyframes menuIn { from { opacity: 0; transform: translateY(-4px) scale(.98); } }
.menu button, .menu a { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 16px; text-align: left; font-weight: 500; }
.menu button:hover, .menu a:hover, .menu button:focus-visible { background: var(--surface-2); outline: none; }
.menu .danger { color: var(--red); }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
.menu .label { padding: 6px 16px 2px; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
.scrim { position: fixed; inset: 0; z-index: 80; background: var(--scrim); display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px 16px; overflow-y: auto; animation: fadeIn .15s; }
@keyframes fadeIn { from { opacity: 0; } }
.modal { width: 100%; max-width: 600px; background: var(--surface); border-radius: 22px; box-shadow: var(--shadow-lg); animation: modalIn .2s var(--ease); position: relative; }
.modal.sm { max-width: 420px; }
.modal.lg { max-width: 760px; }
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.modal .mh { display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 16px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); border-radius: 22px 22px 0 0; z-index: 2; }
.modal .mh h2 { font-size: 19px; margin: 0; flex: 1; }
.modal .mb { padding: 16px; }
.modal .mf { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 16px 16px; }
.modal.confirm .mb { padding: 22px 22px 6px; }
.modal.confirm h2 { margin: 0 0 8px; font-size: 21px; }
.modal.confirm p { margin: 0; color: var(--muted); }
.modal.confirm .mf { flex-direction: column; padding: 18px 22px 22px; }
.modal.confirm .mf .btn { height: 46px; }
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, .94); display: flex; align-items: center; justify-content: center; }
.lightbox img, .lightbox video { max-width: 96vw; max-height: 88vh; object-fit: contain; }
.lightbox .icon-btn { position: absolute; color: #fff; background: rgba(255, 255, 255, .12); }
.lightbox .icon-btn:hover { background: rgba(255, 255, 255, .25); }
.lightbox .close { top: 14px; left: 14px; }
.lightbox .prev { left: 14px; top: 50%; }
.lightbox .next { right: 14px; top: 50%; }
.lightbox .cap { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); color: #fff; max-width: 80vw; text-align: center; font-size: 14px; background: rgba(0, 0, 0, .5); padding: 6px 12px; border-radius: 10px; }
.toasts { position: fixed; left: 50%; bottom: calc(100px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: var(--ink); color: var(--on-ink); padding: 12px 18px; border-radius: 14px; box-shadow: var(--shadow-lg); font-weight: 500; pointer-events: auto; display: flex; gap: 12px; align-items: center; animation: toastIn .25s var(--ease); max-width: min(92vw, 480px); }
.toast.err { background: var(--red); color: #fff; }
.toast a, .toast button { color: inherit; font-weight: 700; text-decoration: underline; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } }

/* ───────── states ───────── */
.empty { text-align: center; padding: 48px 28px; color: var(--muted); }
.empty img { width: 92px; margin: 0 auto 12px; opacity: .95; }
.empty h3 { color: var(--text); font-size: 21px; margin: 0 0 6px; }
.empty p { margin: 0 auto 16px; max-width: 360px; }
.err-box { margin: 20px 16px; padding: 18px; border-radius: var(--r); background: var(--red-soft); color: var(--red); text-align: center; }
.end { text-align: center; color: var(--faint); padding: 26px 0; font-size: 14px; }
.sentinel { height: 1px; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line-2); border-top-color: var(--accent); animation: spin .8s linear infinite; margin: 24px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.skel { padding: 14px 16px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 46px 1fr; gap: 12px; }
.skel i { display: block; background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.3s infinite; border-radius: 8px; height: 14px; margin-bottom: 9px; }
.skel i.c { width: 46px; height: 46px; border-radius: 50%; }
.skel i.w60 { width: 60%; } .skel i.w90 { width: 90%; } .skel i.w40 { width: 40%; } .skel i.img { height: 180px; border-radius: 14px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.new-posts { position: sticky; top: 140px; z-index: 15; display: flex; justify-content: center; height: 0; }
.new-posts button { height: 38px; padding: 0 18px; border-radius: 99px; background: var(--accent); color: var(--on-accent); font-weight: 600; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 8px; animation: toastIn .3s; }

/* ───────── admin ───────── */
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; padding: 14px 16px; }
.kpi { padding: 12px 14px; border-radius: var(--r-sm); background: var(--surface-2); }
.kpi b { display: block; font-size: 24px; line-height: 1.1; }
.kpi small { color: var(--muted); font-size: 13px; }
.kpi.alert { background: var(--red-soft); color: var(--red); }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 90px; padding: 0 16px; }
.bars div { flex: 1; background: var(--accent); border-radius: 4px 4px 0 0; min-height: 2px; position: relative; opacity: .85; }
.bars div:hover { opacity: 1; }
.bars-x { display: flex; gap: 4px; padding: 4px 16px 14px; font-size: 10px; color: var(--muted); }
.bars-x span { flex: 1; text-align: center; overflow: hidden; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { color: var(--muted); font-weight: 600; font-size: 13px; }
.report { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.report .rhead { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.report .target { border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; margin: 8px 0; pointer-events: none; max-height: 420px; }
.report .target .post { border: 0; }
.report .rbtns { display: flex; gap: 8px; flex-wrap: wrap; }
.report .rdetail { font-size: 14px; color: var(--muted); margin: 4px 0; }
.media-review { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; padding: 14px 16px; }
.media-review .mr { border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; font-size: 12px; }
.media-review .mr img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--surface-3); cursor: zoom-in; }
.media-review .mr .mrb { padding: 8px; display: grid; gap: 6px; }
.media-review .mr .lbls { color: var(--muted); }
.settings-form { padding: 14px 16px; }
.settings-form fieldset { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; margin: 0 0 14px; }
.settings-form legend { font-weight: 700; padding: 0 6px; }
.settings-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0 14px; }
.settings-grid .field { margin-bottom: 10px; }
.settings-grid .field span { font-size: 13px; font-family: ui-monospace, monospace; font-weight: 500; }
.log-row { display: flex; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--line); font-size: 14px; align-items: flex-start; }
.log-row .lr { flex: 1; min-width: 0; }
.log-row code { background: var(--surface-2); padding: 1px 6px; border-radius: 5px; font-size: 13px; }
.log-row time { color: var(--muted); white-space: nowrap; font-size: 13px; }
.set-section { border-bottom: 1px solid var(--line); padding: 6px 16px 14px; }
.set-section h2 { font-size: 18px; margin: 14px 0 8px; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; }
.set-row .l b { display: block; font-weight: 600; }
.set-row .l small { color: var(--muted); }
.switch { position: relative; width: 48px; height: 28px; flex: none; }
.switch input { opacity: 0; width: 100%; height: 100%; position: absolute; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: var(--line-2); transition: background .2s; }
.switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.switch input:checked + span { background: var(--green); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:focus-visible + span { outline: 3px solid var(--accent-text); outline-offset: 2px; }
.user-row { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.user-row .txt { flex: 1; min-width: 0; line-height: 1.25; }
.user-row .txt b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-row .txt small { color: var(--muted); }
.user-row .txt p { margin: 4px 0 0; font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rules { margin: 0; padding: 0 16px 12px; list-style: none; counter-reset: r; }
.rules li { counter-increment: r; padding: 8px 0; border-bottom: 1px solid var(--line); }
.rules li:last-child { border-bottom: 0; }
.rules li b::before { content: counter(r) ". "; color: var(--muted); }
.rules li p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.about-pad { padding: 4px 16px 14px; color: var(--muted); font-size: 15px; }
.login-card { margin: 24px 16px; padding: 28px 22px; border-radius: 22px; background: var(--banner); color: var(--text); text-align: center; border: 1px solid var(--line); }
.login-card img { width: 90px; margin: 0 auto 8px; }
.login-card h2 { margin: 0 0 6px; font-size: 26px; }
.login-card p { margin: 0 0 16px; }
.login-card .btns { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.login-card .btn { border-color: var(--line-2); }

/* ───────── responsive ───────── */
@media (max-width: 1080px) { .shell { grid-template-columns: minmax(0, var(--col)); } .rail { display: none; } .top-in { max-width: calc(var(--col) + 32px); } }
@media (max-width: 860px) { .me-btn .who { display: none; } .me-btn { padding: 0 4px; } }
@media (max-width: 700px) {
  :root { --top: 52px; }
  .shell { display: block; }
  .main { padding: 0 8px calc(100px + env(safe-area-inset-bottom)); }
  .top-in { padding: 0 10px; gap: 6px; }
  .topbar .brand { font-size: 24px; }
  .topbar .brand img { width: 34px; height: 34px; }
  .topbar.hidden { transform: translateY(-100%); }
  .top-search { display: none; }
  .topbar .top-search-btn { display: inline-flex; margin-left: auto; }
  .me-btn { background: none; height: 40px; }
  .head { top: 52px; margin: 0 -8px; padding: 0 8px; }
  .head.flush { top: 0; }
  .head { transition: top .25s var(--ease); }
  .bar-hidden .head { top: 0; }   /* top bar slid away: no see-through gap above the view header */
  .home-head .tabs { padding: 8px 0 10px; gap: 6px; }
  .home-head .tabs a { height: 40px; padding: 0 16px; font-size: 16.5px; }
  .dock { left: 10px; right: 10px; transform: none; justify-content: space-between; bottom: calc(10px + env(safe-area-inset-bottom)); padding: 5px; }
  .dock a { flex: 1; min-width: 0; padding: 0; height: 48px; }
  .dock a .lbl, .dock a.wide { display: none; }
  .dock svg.i { width: 25px; height: 25px; }
  .dock .drop { width: 54px; height: 54px; padding: 0; margin: -14px 4px 0; justify-content: center; border-radius: 50%; }
  .dock .drop span { display: none; }
  .dock .drop svg.i { width: 27px; height: 27px; }
  .post { padding: 12px 12px 10px 18px; border-radius: 18px; margin-bottom: 10px; }
  .post .head-line > a .av { width: 38px; height: 38px; }
  .acts-rest .act { padding: 0 6px; }
  .vote .act { padding: 0 10px 0 9px; }
  .composer { padding: 12px; }
  .banner { height: 130px; }
  .banner.comm { height: 100px; }
  .prof .top .av.lg { width: 86px; height: 86px; }
  .prof .top { margin-top: -38px; }
  .scrim { padding: 0; align-items: flex-start; }   /* modal grows with its content (stretch pinned it to the screen height and the footer spilled out) */
  .modal, .modal.sm, .modal.lg { max-width: none; border-radius: 0; min-height: 100%; }
  .modal .mh { border-radius: 0; }
  .modal:not(.confirm) .mf { position: sticky; bottom: 0; z-index: 2; background: var(--surface); border-top: 1px solid var(--line); padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
  .modal.confirm { min-height: 0; border-radius: 22px 22px 0 0; margin-top: auto; }
  .scrim:has(.modal.confirm) { align-items: flex-end; }
  .menu.sheet { left: 0 !important; right: 0; top: auto !important; bottom: 0; max-width: none; border-radius: 20px 20px 0 0; padding-bottom: calc(10px + env(safe-area-inset-bottom)); animation: sheetIn .2s var(--ease); }
  @keyframes sheetIn { from { transform: translateY(100%); } }
  .chat .msgs { padding: 12px; }
  .comm-cards { grid-template-columns: 1fr; }
  .new-posts { top: 120px; }
  .msg { max-width: 86%; }
}

/* chat fills the screen; on phones the bottom bar steps aside like X/Instagram */
body.in-chat .main { padding-bottom: 0; }
.chat .head { position: static; }
.chat .head h1 a small { display: block; font-weight: 400; }
@media (max-width: 700px) {
  body.in-chat .main { padding: 0; }
  body.in-chat .chat { height: calc(100vh - 52px); height: calc(100dvh - 52px); }
}

/* ───────── identity: Tastes good / Gag meter, The Septic Tank, receipts, RATIO, levels, post health ───────── */
.meter { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin: 8px 0 0; }
.meter b { color: var(--text); font-weight: 700; }
.meter-bar { width: 64px; height: 5px; border-radius: 9px; background: var(--gag); overflow: hidden; display: inline-block; opacity: .9; }
.meter-bar span { display: block; height: 100%; background: var(--pink); }
.septic { margin: 8px 0; padding: 12px 14px; border-radius: var(--r-sm); border: 1.5px dashed var(--gag); background: var(--gag-soft); display: grid; gap: 8px; justify-items: start; }
.septic-label { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: var(--gag); }
.septic-label svg.i { width: 16px; height: 16px; }
.septic-text { font-size: 14px; color: var(--text); line-height: 1.45; }
.septic-text a { color: var(--accent-text); font-weight: 600; }
.septic-n { color: var(--muted); white-space: nowrap; }
.septic .btn.on { border-color: var(--gag); color: var(--gag); }
.receipt { margin: 10px 0 4px; border: 1.5px solid var(--line-2); border-radius: 14px; padding: 12px 14px; background: linear-gradient(135deg, var(--pink-soft), transparent 70%); cursor: default; max-width: 460px; }
.receipt .rc-head { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: var(--accent-text); }
.receipt .rc-head svg.i { width: 16px; height: 16px; }
.receipt .rc-ver { margin-left: auto; display: inline-flex; align-items: center; gap: 3px; color: var(--green); letter-spacing: .3px; }
.receipt .rc-main { display: flex; align-items: center; gap: 14px; margin-top: 6px; }
.receipt .rc-score { font-size: 32px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; letter-spacing: -.5px; }
.receipt .rc-what { display: grid; font-size: 13px; color: var(--muted); min-width: 0; }
.receipt .rc-what b { color: var(--text); font-size: 15px; }
.receipt .rc-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; padding-top: 10px; border-top: 1.5px dashed var(--line-2); font-size: 13px; color: var(--muted); }
.receipt.beat { padding: 8px 12px; margin-top: 6px; }
.receipt.beat .rc-score { font-size: 22px; }
.receipt-pick { position: relative; }
.receipt-pick .x { position: absolute; top: 18px; right: 8px; width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--surface-3); }
.lvl { display: inline-flex; align-items: center; font-size: 11px; font-weight: 800; padding: 1px 6px; border-radius: 5px; background: var(--surface-3); color: var(--text); letter-spacing: .2px; margin-left: 2px; white-space: nowrap; vertical-align: middle; }
h1 .lvl { font-size: 12px; margin-left: 6px; }
.ratio-badge { font-size: 11px; font-weight: 900; letter-spacing: .7px; padding: 1px 7px; border-radius: 5px; background: var(--pink); color: #fff; }
.explore-intro { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.explore-intro b { font-size: 17px; }
.explore-intro p { margin: 4px 0 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.septic-intro b { color: var(--gag); cursor: pointer; }
.ratio-item { border-bottom: 1px solid var(--line); padding-top: 12px; }
.ratio-reply { display: flex; gap: 10px; padding: 0 16px 10px; }
.ratio-reply .meta { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.ratio-reply .meta .handle { color: var(--muted); }
.ratio-n { font-size: 13px; color: var(--muted); margin-top: 4px; }
.ratio-item > .post { margin: 0 16px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); }
.health-status { display: flex; gap: 8px; align-items: center; font-size: 17px; }
.health-status.s-live { color: var(--green); } .health-status.s-septic { color: var(--gag); } .health-status.s-removed, .health-status.s-held { color: var(--red); }
.health-note { color: var(--muted); font-size: 14px; margin: 6px 0; line-height: 1.45; }
.health-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 12px 0; }
.health-grid .hs { background: var(--surface-2); border-radius: 10px; padding: 10px; display: grid; gap: 2px; }
.health-grid .hs b { font-size: 18px; font-variant-numeric: tabular-nums; }
.health-grid .hs span { font-size: 12px; color: var(--muted); }
.faint { color: var(--faint); }
.appeal-box, .appeal-form { margin-top: 12px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-sm); display: grid; gap: 8px; justify-items: start; }
.appeal-box p { margin: 0; font-size: 14px; }
.appeal-form textarea { width: 100%; border: 1.5px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); color: var(--text); padding: 10px 12px; resize: vertical; font: inherit; }
.appeal-body { white-space: pre-wrap; color: var(--text); }
@media (max-width: 520px) { .health-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .receipt .rc-score { font-size: 26px; } }

/* ───────── Tom's table (right column): Tom hosts Pearlo with his real voice ───────── */
.tom-host { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: 24px; background: var(--banner); border: 1px solid var(--line); }
.tom-face { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; flex: none; border: 3px solid var(--pink); box-shadow: 0 4px 18px rgba(255, 36, 184, .35); }
.tom-say { min-width: 0; }
.tom-say small { display: block; font: 600 13px/1 Fredoka, ui-rounded, sans-serif; letter-spacing: 1.2px; text-transform: uppercase; color: var(--accent-text); }
.tom-bubble { display: block; margin-top: 8px; padding: 9px 14px; border-radius: 18px 18px 18px 5px; background: var(--surface); color: var(--text); font: 500 16px/1.25 Fredoka, ui-rounded, sans-serif; text-align: left; box-shadow: var(--shadow); }
.tom-bubble:hover { background: var(--surface-2); }
.tom-bubble.talk { animation: tomTalk .55s var(--ease); }
@keyframes tomTalk { 0%, 100% { transform: none; } 25% { transform: rotate(-3deg) scale(1.05); } 60% { transform: rotate(2deg); } }
.tt { border: 1px solid var(--line); border-radius: 22px; background: var(--card); padding: 4px 0 8px; }
.tt h2 { display: flex; align-items: center; gap: 8px; margin: 0; padding: 12px 16px 6px; font: 600 18px/1.2 Fredoka, ui-rounded, sans-serif; }
.tt h2 svg.i { width: 21px; height: 21px; color: var(--accent-text); }
.tt-plate h2 svg.i { color: var(--gag); }
.post.folded { padding: 12px 16px; cursor: default; }
.post.folded::before { display: none; }
.fold-note { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; }
.fold-note span { flex: 1; }
.fold-note svg.i { width: 18px; height: 18px; flex: none; }
.tt-foot { display: flex; gap: 16px; padding: 6px 16px 4px; font-size: 13px; }
.tt-foot a { color: var(--accent-text); }
.tt-foot a:hover { text-decoration: underline; }
.tt h2 a { margin-left: auto; font: 500 13px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; color: var(--accent-text); }
.tt h2 a:hover { text-decoration: underline; }
.tt .spinner { margin: 10px auto; }
.mini { display: flex; gap: 10px; padding: 8px 16px; transition: background .15s; }
.mini:hover { background: var(--surface-2); }
.mini .av.xs { margin-top: 2px; }
.mini-txt { min-width: 0; display: flex; flex-direction: column; gap: 3px; font-size: 14px; line-height: 1.35; }
.mini-txt b { display: flex; align-items: center; gap: 6px; }
.mini-txt > span { color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini-txt small { color: var(--muted); font-size: 12px; }
.mini .rancid { color: var(--gag); font-weight: 700; }
.split { display: flex; align-items: center; gap: 7px; }
.split-bar { width: 80px; height: 7px; border-radius: 7px; background: var(--gag); overflow: hidden; }
.split-bar i { display: block; height: 100%; background: var(--pink); }
.split b { font: 700 12px/1 Fredoka, ui-rounded, sans-serif; color: var(--text); }
.tt-empty { margin: 0; padding: 4px 16px 8px; color: var(--muted); font-size: 14px; }
.tt-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px 14px 6px; }
.tt-chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px 0 4px; border-radius: 99px; background: var(--surface-2); font-size: 13px; font-weight: 600; }
.tt-chip:hover { background: var(--surface-3); }
.tt-chip .cicon.sm { width: 26px; height: 26px; border-radius: 50%; font-size: 12px; }
.rail .login-card { margin: 0; }
.rail .announce { margin: 0; }
.post .context.fresh { color: var(--accent-text); }

/* Phone notifications prompt (after a first post) */
.push-ask { position: fixed; left: 50%; bottom: calc(90px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 99; width: min(94vw, 440px);
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: var(--card, var(--surface)); color: var(--text);
  border: 1px solid var(--line); box-shadow: var(--shadow-lg); animation: toastIn .25s var(--ease); }
.push-ask > svg { flex: none; width: 22px; height: 22px; color: var(--accent); margin-top: 2px; }
.push-ask .pa-txt { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.push-ask .pa-txt small { color: var(--muted); font-size: 13px; line-height: 1.35; }
.push-ask .pa-btns { display: flex; flex-direction: column; gap: 6px; flex: none; }
.embed.tiktok { aspect-ratio: 9 / 16; max-width: 340px; max-height: 600px; }
.embed.tiktok .tt-blank { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; padding: 18px 16px; gap: 6px; color: #fff; background: linear-gradient(160deg, #111 0%, #2a0a20 100%); }
.embed.tiktok .tt-blank b { font-size: 22px; letter-spacing: .02em; }
.embed.tiktok .tt-blank span { font-size: 13px; opacity: .75; }
.embed.tiktok .tt-src { position: absolute; left: 10px; bottom: 10px; z-index: 2; font-size: 12px; font-weight: 700; color: #fff; background: rgba(0,0,0,.55); padding: 3px 8px; border-radius: 999px; }
.embed.tiktok iframe ~ .tt-src, .embed.tiktok:has(iframe) .tt-src { display: none; }
/* live threads */
.live-here { color: var(--muted); font-weight: 600; font-size: 13px; margin-left: 6px; }
.live-typing { display: flex; align-items: center; gap: 8px; padding: 6px 16px 2px; font-size: 13px; color: var(--muted); }
.live-typing .dots { display: inline-flex; gap: 3px; }
.live-typing .dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent-text); animation: plDot 1.2s infinite ease-in-out; }
.live-typing .dots i:nth-child(2) { animation-delay: .15s; } .live-typing .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes plDot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.cmt.live-new { animation: plLiveIn .5s ease-out; background: var(--lav-soft); transition: background 3s; }
@keyframes plLiveIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .cmt.live-new, .live-typing .dots i { animation: none; } }
/* GETs */
.get-badge { display: inline-flex; align-items: center; margin-left: 6px; padding: 1px 7px; border-radius: 6px; font: 800 11px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .03em; color: var(--accent-text); border: 1px solid currentColor; background: transparent; cursor: pointer; white-space: nowrap; text-decoration: none; }
.get-badge.big { color: #111; background: linear-gradient(90deg, #ffd34d, #ff24b8, #ffd34d); background-size: 200% 100%; border-color: transparent; animation: plGetShine 3s linear infinite; }
@keyframes plGetShine { to { background-position: -200% 0; } }
.prof-gets { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.prof-gets .lbl { font-weight: 700; font-size: 13px; color: var(--muted); margin-right: 2px; }
.prof-gets .get-badge { margin-left: 0; }
@media (prefers-reduced-motion: reduce) { .get-badge.big { animation: none; } }

/* ───────── Tom Pearl stickers ───────── */
.sticker{display:block;width:160px;height:160px;object-fit:contain;user-select:none;-webkit-user-drag:none;filter:drop-shadow(0 2px 3px rgba(0,0,0,.25))}
.sticker-btn{display:block;padding:0;background:none;border:0;cursor:pointer;border-radius:12px}
.sticker-btn:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.sticker.wob{animation:pl-wob .45s cubic-bezier(.3,1.6,.5,1)}
@keyframes pl-wob{0%{transform:scale(1)}35%{transform:scale(1.12) rotate(-4deg)}70%{transform:scale(.97) rotate(2deg)}100%{transform:scale(1)}}
@media (prefers-reduced-motion:reduce){.sticker.wob{animation:none}}
.cmt-sticker{margin:4px 0 2px}
.bub.sticker-only{background:none!important;padding:0!important;box-shadow:none!important;border:0!important}
.bub.sticker-only .sticker{width:150px;height:150px}
.sticker-picker{position:fixed;z-index:80;width:360px;max-width:calc(100vw - 16px);height:420px;max-height:calc(100vh - 16px);display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--line);border-radius:16px;box-shadow:0 12px 40px rgba(0,0,0,.45);overflow:hidden}
.sticker-picker.sheet{left:0;right:0;bottom:0;top:auto;width:auto;max-width:none;height:62vh;border-radius:18px 18px 0 0}
.sp-scrim.clear{background:transparent}
.sp-scrim{z-index:79}
.sp-head{display:flex;align-items:center;gap:10px;padding:10px 12px 6px}
.sp-head b{font-size:14px;white-space:nowrap}
.sp-search{flex:1;min-width:0;background:var(--surface-2);border:1px solid var(--line);border-radius:999px;padding:6px 12px;color:inherit;font:inherit;font-size:13px}
.sp-tabs{display:flex;gap:4px;padding:0 10px 6px;overflow-x:auto;scrollbar-width:none}
.sp-tabs button{flex:none;padding:5px 11px;border-radius:999px;font-size:13px;font-weight:600;color:var(--muted);background:none;border:0;cursor:pointer}
.sp-tabs button.on{background:var(--accent);color:#fff}
.sp-grid{flex:1;overflow-y:auto;display:grid;grid-template-columns:repeat(auto-fill,minmax(80px,1fr));gap:4px;padding:4px 10px 12px;align-content:start}
.sp-item{aspect-ratio:1;padding:4px;border:0;background:none;border-radius:12px;cursor:pointer;transition:transform .12s,background .12s}
.sp-item img{width:100%;height:100%;object-fit:contain;pointer-events:none}
.sp-item:hover,.sp-item:focus-visible{background:var(--surface-2);transform:scale(1.06)}
.sp-empty{grid-column:1/-1;text-align:center;color:var(--muted);padding:40px 10px;font-size:14px}

/* Community perks: members see every post, Best keeps good posts alive (11-16) */
.composer .target-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.composer .target-row .target { margin-bottom: 0; }
.composer .target-hint { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--muted); text-align: left; padding: 2px 0; }
.composer .target-hint svg.i { width: 14px; height: 14px; flex: none; }
.composer .target-hint:hover { color: var(--text); }
.composer .target-hint.on { color: var(--accent-text); }
.composer .target-hint .sep { opacity: .6; margin: 0 2px; }
.comm-perks { display: grid; gap: 6px; margin: 0 16px 12px; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); font-size: 13.5px; color: var(--muted); }
.comm-perks > div { display: flex; gap: 8px; align-items: flex-start; }
.comm-perks svg.i { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--accent-text); }
.comm-perks b { color: var(--text); }
.best-tag { display: inline-flex; align-items: center; gap: 3px; margin-left: 6px; padding: 0 7px; border-radius: 99px; background: #ffcc33; color: #2a1d00; font-size: 11.5px; font-weight: 800; line-height: 18px; }
.best-tag svg.i { width: 12px; height: 12px; }
.best-tag.solo { margin: 2px 0 4px; width: max-content; }
.post .context.best { color: var(--amber); }
.post .context.member { color: var(--accent-text); }
.notif .nic.k-best { color: var(--amber); }

/* Write first, sign up after (11-16): the sheet a guest sees after pressing Reply */
.join-card { margin: 0; padding: 24px 20px 18px; }
.join-quote { margin: 0 0 12px; padding: 10px 14px; border-left: 3px solid var(--pink); border-radius: 10px; background: rgba(0,0,0,.25); text-align: left; font-size: 15px; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 120px; overflow: hidden; }
.join-form { display: flex; flex-direction: column; gap: 8px; text-align: left; }
.join-form input { width: 100%; padding: 11px 13px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; }
.join-form input:focus { outline: 2px solid var(--pink); outline-offset: 0; }
.join-form .btn.primary { margin-top: 4px; justify-content: center; }
.join-status { margin: 2px 0 0 !important; min-height: 1.2em; font-size: 14px; color: var(--muted); text-align: center; }
.join-status.bad { color: #ff6b6b; }
.join-card .linkish { background: none; border: 0; color: var(--pink); font: inherit; font-size: 14px; cursor: pointer; padding: 4px; }
.join-card .btn.google { width: 100%; justify-content: center; gap: 8px; margin-bottom: 10px; background: #fff; color: #222; }
.join-card .btn.google .g { display: inline-flex; width: 18px; height: 18px; } .join-card .btn.google svg { width: 18px; height: 18px; }
.join-sent { text-align: center; } .join-sent b { display: block; font-size: 17px; margin-bottom: 4px; }
