/* Twemoji as a real font, so emoji are visible while typing in the text box (the page-level <img> emoji can't be used
   inside a textarea). Only loaded when an emoji is actually on screen, thanks to unicode-range. */
@font-face {
  font-family: "Twemoji";
  src: url(/fonts/twemoji.woff2) format("woff2");
  font-display: swap;
  unicode-range: U+203C, U+2049, U+2139, U+2194-2199, U+21A9-21AA, U+231A-231B, U+2328, U+23CF, U+23E9-23F3, U+23F8-23FA, U+24C2, U+25AA-25AB, U+25B6, U+25C0, U+25FB-25FE, U+2600-27BF, U+2934-2935, U+2B05-2B07, U+2B1B-2B1C, U+2B50, U+2B55, U+3030, U+303D, U+3297, U+3299, U+1F000-1FAFF, U+200D, U+FE0F, U+20E3, U+E0020-E007F;
}
@font-face {
  font-family: "Lexend";
  src: url(/fonts/lexend-latin-wght-normal.woff2) format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Lexend";
  src: url(/fonts/lexend-latin-ext-wght-normal.woff2) format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* No borders or dividers anywhere: depth comes from surface tone and spacing. */
:root, :root[data-theme="dark"] {
  --bg: #000000;
  --raised: #0e0e11;
  --hover: #151519;
  --field: #1a1a1f;
  --text: #f3f3f6;
  --muted: #8e8e9a;
  --accent: #ff5d8f;
  --accent-ink: #1c0610;
  --accent-soft: rgba(255, 93, 143, 0.15);
  --primary: #ffffff;
  --primary-ink: #000000;
  --green: #46dba2;
  --green-soft: rgba(70, 219, 162, 0.14);
  --danger: #ff6666;
  --scrim: rgba(0, 0, 0, 0.72);
}
:root[data-theme="light"] {
  --bg: #ffffff;
  --raised: #f5f4f7;
  --hover: #efeef2;
  --field: #e9e8ed;
  --text: #121215;
  --muted: #6a6a76;
  --accent: #e3306c;
  --accent-ink: #ffffff;
  --accent-soft: rgba(227, 48, 108, 0.12);
  --primary: #0f0f12;
  --primary-ink: #ffffff;
  --green: #12906a;
  --green-soft: rgba(18, 144, 106, 0.12);
  --danger: #d63636;
  --scrim: rgba(20, 20, 30, 0.45);
}

* { box-sizing: border-box; }
html { color-scheme: dark light; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Lexend", "Twemoji", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus { outline: none; }
/* Keyboard users still get a focus marker on buttons and links; text fields just lighten. */
button:focus-visible, a:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 12px; }
.ico { display: inline-flex; vertical-align: middle; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* layout */
.app {
  display: grid;
  grid-template-columns: 260px minmax(0, 600px) 330px;
  justify-content: center;
  gap: 28px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}
.side { position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 14px 0 16px; scrollbar-width: none; }
.side::-webkit-scrollbar { display: none; }
.left { display: flex; flex-direction: column; }
main { min-width: 0; padding-bottom: 96px; }

/* nav */
.brand { display: block; padding: 6px 14px 16px; width: fit-content; }

.nav { display: flex; flex-direction: column; gap: 4px; }
.nav a, .nav button.navlink {
  display: flex; align-items: center; gap: 16px; padding: 12px 16px; border-radius: 999px;
  font-size: 17px; text-align: left; width: fit-content;
}
.nav a:hover { background: var(--raised); }
.nav a.on { font-weight: 600; }
.nav .badge {
  background: var(--primary); color: var(--primary-ink); font-size: 12px; font-weight: 600;
  border-radius: 999px; padding: 0 7px; min-width: 20px; text-align: center; line-height: 20px;
}
.nav .post-btn { margin: 14px 0 0 4px; width: calc(100% - 8px); padding: 14px 20px; font-size: 16px; }
.acct-wrap { margin-top: auto; position: relative; padding-top: 16px; }
.acct { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: 999px; text-align: left; }
.acct:hover { background: var(--raised); }
.acct .who { flex: 1; min-width: 0; line-height: 1.3; }
.acct .who b { display: flex; align-items: center; gap: 4px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acct .who span { display: block; color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acct .menu { top: auto; bottom: calc(100% - 6px); left: 0; right: 0; min-width: 0; }
.authbtns { display: flex; flex-direction: column; gap: 10px; margin-top: auto; padding: 16px 6px 0; }

/* buttons and fields */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: 999px; background: var(--primary); color: var(--primary-ink); font-weight: 500;
}
.btn:hover { opacity: 0.88; }
.btn.quiet { background: var(--field); color: var(--text); }
.btn.quiet:hover { background: var(--hover); opacity: 1; }
.btn.small { padding: 6px 14px; font-size: 14px; }
.btn.danger { background: var(--danger); color: #fff; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: 0.4; cursor: default; }
.linkbtn { color: var(--accent); }
.linkbtn:hover { text-decoration: underline; }
.danger-text { color: var(--danger); }
input[type=text], input[type=password], input[type=search], textarea, select {
  width: 100%; background: var(--field); border: 0; border-radius: 14px; padding: 12px 16px;
}
input[type=text]:focus, input[type=password]:focus, input[type=search]:focus, textarea:focus, select:focus { background: var(--hover); }
::placeholder { color: var(--muted); }
textarea { resize: none; display: block; }
label.field { display: block; margin: 0 0 14px; }
label.field > span { display: block; font-size: 13px; color: var(--muted); margin: 0 0 6px 4px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.check { display: flex; align-items: center; gap: 12px; margin: 6px 0 14px; cursor: pointer; }
.check input[type=checkbox] {
  appearance: none; -webkit-appearance: none; flex: none;
  width: 20px; height: 20px; border-radius: 7px; background: var(--field);
  display: inline-grid; place-content: center; cursor: pointer; margin: 0;
}
.check input[type=checkbox]:hover { background: var(--hover); }
.check input[type=checkbox]:checked { background: var(--primary); }
.check input[type=checkbox]:checked::after {
  content: ""; width: 5px; height: 10px; margin-top: -2px;
  border: solid var(--primary-ink); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}

/* page header and tabs */
.head { position: sticky; top: 0; z-index: 5; background: var(--bg); padding: 14px 6px 8px; display: flex; align-items: center; gap: 14px; }
.head h1 { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.head .back { padding: 8px; border-radius: 50%; }
.head .back:hover { background: var(--raised); }
.tabs { display: flex; gap: 6px; padding: 4px 4px 12px; flex-wrap: wrap; }
.tab { padding: 8px 16px; border-radius: 999px; color: var(--muted); }
.tab:hover { background: var(--raised); color: var(--text); }
.tab.on { background: var(--field); color: var(--text); font-weight: 500; }

/* surfaces */
.surface { background: var(--raised); border-radius: 22px; padding: 18px 20px; margin: 0 0 16px; }
.surface h2 { margin: 0 0 12px; font-size: 17px; font-weight: 600; }
.surface h3 { margin: 18px 0 8px; font-size: 15px; font-weight: 500; }
.surface p { margin: 0 0 12px; }

/* avatars and badges */
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 600; font-size: 17px; flex: none; user-select: none; object-fit: cover; background-color: var(--field); }
.avatar.big { width: 96px; height: 96px; font-size: 38px; }
.avatar.sm { width: 36px; height: 36px; font-size: 15px; }
.vbadge { display: inline-flex; color: var(--accent); vertical-align: -3px; flex: none; }
.pill { display: inline-block; font-size: 12px; padding: 2px 10px; border-radius: 999px; background: var(--field); color: var(--muted); font-weight: 400; }
.pill.accent { background: var(--accent-soft); color: var(--accent); }
.role { vertical-align: middle; }

/* composer: sits on the page background, nothing around it */
.composer { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 14px 6px 6px; margin: 0 0 8px; }
.composer.plain { padding-top: 0; }
.composer textarea { background: transparent; padding: 10px 0 6px; font-size: 19px; line-height: 1.45; min-height: 56px; border-radius: 0; }
.composer textarea:focus { background: transparent; }
.composer .tools { display: flex; align-items: center; gap: 2px; margin: 4px 0 0 -8px; padding-top: 6px; }
.tool { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.tool:hover { background: var(--hover); color: var(--text); }
.tool.on { background: var(--accent-soft); color: var(--accent); }
.tool[disabled] { opacity: 0.4; cursor: default; }
.composer .count { font-size: 13px; color: var(--muted); margin: 0 12px 0 auto; }
.composer .count.over { color: var(--danger); }
.composer .count.warn { color: #f5b44a; }
.compose-bg { margin: 0 0 12px; }
.previews { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 4px 0 6px; }
.preview { position: relative; border-radius: 18px; overflow: hidden; background: var(--field); }
.preview img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.preview.busy img { opacity: 0.45; }
.preview .rm { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border-radius: 50%; background: rgba(0, 0, 0, 0.7); color: #fff; display: grid; place-items: center; }
.preview .alt { position: absolute; left: 8px; right: 8px; bottom: 8px; width: auto; background: rgba(0, 0, 0, 0.7); color: #fff; border-radius: 12px; padding: 6px 10px; font-size: 13px; }
.preview .alt::placeholder { color: rgba(255, 255, 255, 0.7); }
.preview .alt:focus { background: rgba(0, 0, 0, 0.85); }

/* posts */
.post { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 16px 12px; border-radius: 22px; cursor: pointer; position: relative; }
.post:hover { background: var(--raised); }
.post.detail { cursor: default; background: transparent; padding: 12px 6px; }
.post.detail:hover { background: transparent; }
.post .head-row { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.post .names { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; min-width: 0; flex: 1; }
.post .name { font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.post .name:hover { text-decoration: underline; }
.post .tag, .post .time { color: var(--muted); font-size: 14px; }
.post .more { width: 32px; height: 32px; margin: -6px -6px 0 0; border-radius: 50%; display: grid; place-items: center; color: var(--muted); flex: none; align-self: flex-start; }
.post .more:hover { background: var(--hover); color: var(--text); }
.post .banner { grid-column: 2; color: var(--muted); font-size: 13px; margin: -8px 0 -6px; display: flex; gap: 6px; align-items: center; }
.post .replying { color: var(--muted); font-size: 13px; margin: 1px 0 0; }
.post .replying a, .post .body a { color: var(--accent); }
.post .replying a:hover, .post .body a:hover { text-decoration: underline; }
.post .body { font-size: 16px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; margin: 3px 0 0; }
.post.detail .body { font-size: 20px; }
.sensitive { position: relative; }
.sensitive .inner { filter: blur(16px); pointer-events: none; user-select: none; }
.sensitive .reveal { position: absolute; inset: 0; display: grid; place-items: center; }
.quote { background: transparent; border-radius: 18px; padding: 10px 12px; margin: 8px 0 0 -12px; display: block; }
.quote:hover { background: var(--hover); }
.quote .qhead { display: flex; align-items: center; gap: 6px; min-width: 0; }
.quote .qhead .muted { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.avatar.xs { width: 22px; height: 22px; font-size: 11px; }
.quote .qname { font-weight: 500; }
.quote .qbody { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.media { display: grid; gap: 4px; margin: 10px 0 0; border-radius: 20px; overflow: hidden; }
.media button { display: block; padding: 0; background: var(--field); overflow: hidden; min-height: 0; }
.media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.media.n1 { grid-template-columns: 1fr; }
.media.n1 img { max-height: 540px; height: auto; }
.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 button:first-child { grid-row: 1 / 3; }
.media.n4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; aspect-ratio: 16 / 9; }
.actions { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); max-width: 440px; margin: 6px 0 -8px -9px; position: relative; }





.menu { position: absolute; right: 0; top: 100%; z-index: 20; background: var(--field); border-radius: 18px; padding: 6px; min-width: 220px; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5); }
.menu button { display: flex; width: 100%; gap: 12px; align-items: center; padding: 11px 14px; border-radius: 12px; text-align: left; }
.menu button:hover { background: var(--hover); }
.menu button.danger-text { color: var(--danger); }
.menu.left { right: auto; left: 0; }
.menu.up { top: auto; bottom: 100%; }

/* lists */
.person { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 18px; }
.person:hover { background: var(--raised); }
.person .names { flex: 1; min-width: 0; }
.person .names b { display: flex; align-items: center; gap: 4px; font-weight: 500; }
.person .names span { color: var(--muted); font-size: 14px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notif { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 14px; padding: 14px 16px; margin: 0 0 6px; border-radius: 20px; align-items: start; cursor: pointer; }
.notif:hover { background: var(--raised); }
.notif.unread { background: var(--hover); }
.notif .kind { width: 28px; flex: none; padding-top: 2px; }
.notif .kind.like { color: var(--accent); }
.notif .kind.repost { color: var(--green); }
.notif p { margin: 0; }
.notif .ex { color: var(--muted); font-size: 14px; margin-top: 2px; overflow-wrap: anywhere; }
.empty { text-align: center; padding: 56px 24px; color: var(--muted); }
.empty h3 { color: var(--text); margin: 0 0 6px; font-weight: 500; font-size: 18px; }
.more-btn { display: block; margin: 14px auto; }

/* profile */
.profile { padding: 4px 6px 14px; }
.profile .top { display: flex; justify-content: space-between; align-items: flex-end; margin: -48px 14px 14px; position: relative; }
.profile h2 { margin: 0; font-size: 24px; font-weight: 600; letter-spacing: -0.02em; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.profile .bio { margin: 10px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.profile .counts { display: flex; gap: 20px; margin-top: 12px; color: var(--muted); }
.profile .counts b { color: var(--text); font-weight: 600; }

/* settings */
.hub a { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 20px; }
.hub a:hover { background: var(--raised); }
.hub .ic { width: 44px; height: 44px; border-radius: 50%; background: var(--field); display: grid; place-items: center; flex: none; }
.hub b { display: block; font-weight: 500; }
.hub span.d { color: var(--muted); font-size: 14px; }
.hub .chev { margin-left: auto; color: var(--muted); }
.avatar-edit { display: flex; align-items: center; gap: 18px; margin: 0 0 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }

/* side widgets */
.search { position: relative; margin: 6px 0 16px; }
.search input { padding-left: 46px; border-radius: 999px; }
.search .ico { position: absolute; left: 16px; top: 13px; color: var(--muted); }
.trend { display: block; padding: 9px 12px; border-radius: 14px; }
.trend:hover { background: var(--hover); }
.trend b { display: block; font-weight: 500; }
.trend span { color: var(--muted); font-size: 13px; }
.foot { color: var(--muted); font-size: 13px; padding: 4px 14px; display: flex; gap: 14px; flex-wrap: wrap; }
.foot a:hover { text-decoration: underline; }

/* modal, lightbox, toast */
.overlay { position: fixed; inset: 0; background: var(--scrim); z-index: 50; overflow-y: auto; padding: 7vh 14px 30px; }
.modal { background: var(--bg); border-radius: 26px; max-width: 580px; margin: 0 auto; padding: 18px 18px 14px; }
.modal h2 { margin: 0 0 8px; font-size: 18px; font-weight: 600; }
.lightbox { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.92); z-index: 70; display: grid; place-items: center; padding: 20px; cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 12px; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 12px 20px; border-radius: 999px; z-index: 80; max-width: 90vw; }
.toast.err { background: var(--danger); color: #fff; }

/* auth */
.auth { max-width: 420px; margin: 8vh auto 0; }
.auth h1 { font-size: 30px; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 6px; }
.codes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; background: var(--field); border-radius: 18px; padding: 16px; font-variant-numeric: tabular-nums; letter-spacing: 0.04em; margin: 0 0 14px; }
.err { color: var(--danger); margin: 0 0 12px; }

/* admin */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; margin: 0 0 16px; }
.stat { background: var(--raised); border-radius: 18px; padding: 14px 16px; }
.stat b { display: block; font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }
.stat span { color: var(--muted); font-size: 13px; }
.item { background: var(--raised); border-radius: 20px; padding: 14px 16px; margin: 0 0 10px; }
.item p { margin: 4px 0; overflow-wrap: anywhere; }
.item .row { margin-top: 8px; }
.item select { width: auto; padding: 7px 12px; }

@media (max-width: 1100px) {
  .app { grid-template-columns: 76px minmax(0, 620px); }
  .right { display: none; }
  .nav a, .nav button.navlink { padding: 14px; }
  .nav .lbl, .brand .lbl, .acct .who, .acct .dots { display: none; }
  .brand { padding-left: 24px; }
  .nav .post-btn { width: 56px; height: 44px; padding: 0; margin: 14px 0 0 10px; }
  .nav .post-btn .lbl { display: inline; }
  .acct { padding: 8px; width: auto; }
  .acct .menu { left: 0; right: auto; min-width: 220px; }
  .authbtns { display: none; }
}
@media (max-width: 720px) {
  .app { grid-template-columns: minmax(0, 1fr); padding: 0 8px; gap: 0; }
  .left { position: fixed; bottom: 0; left: 0; right: 0; top: auto; height: auto; z-index: 30; background: var(--bg); padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); overflow: visible; flex-direction: row; }
  .left .brand, .left .post-btn, .left .acct-wrap { display: none; }
  .nav { flex-direction: row; justify-content: space-around; width: 100%; }
  .composer { grid-template-columns: 36px 1fr; gap: 10px; }
  .composer .avatar { width: 36px; height: 36px; font-size: 15px; }
  .post { padding: 14px 6px; gap: 12px; }
  .previews { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: no-preference) {
  .btn, .act, .tab, .post, .tool { transition: background-color 0.12s, color 0.12s, filter 0.12s; }
}

/* post actions: halo around the icon only; the number sits beside it with no extra capsule */
.act { justify-self: start; display: inline-flex; align-items: center; gap: 1px; color: var(--muted); font-size: 14px; border-radius: 0; padding: 0; min-width: 0; }
.act .halo { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.act .n { padding-right: 8px; font-variant-numeric: tabular-nums; }
.act:hover .halo { background: var(--hover); }
.act:hover { color: var(--text); }
.act.repost:hover, .act.repost.on { color: var(--green); }
.act.repost:hover .halo { background: var(--green-soft); }
.act.like:hover, .act.like.on { color: var(--accent); }
.act.like:hover .halo { background: var(--accent-soft); }
.act.like.on svg { fill: currentColor; }
.act.static { cursor: default; }
.act.static:hover { color: var(--muted); }
.act.static:hover .halo { background: transparent; }

/* thread connectors: a short line joining avatars in a conversation */
.avcol { display: flex; flex-direction: column; align-items: center; align-self: stretch; }
.avcol a { display: block; line-height: 0; flex: none; }
.avcol .line { flex: 1; width: 2px; margin-top: 6px; min-height: 8px; background: var(--field); border-radius: 2px; }
.post .stub { position: absolute; left: 33px; width: 2px; height: 16px; background: var(--field); }
.post .stub.up { top: 0; }
.post .stub.down { bottom: 0; }
.post.detail .stub { left: 27px; }

/* video */
.media.video { display: block; background: #000; }
.media video { display: block; width: 100%; max-height: 560px; background: #000; }
.preview video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.preview .pct { position: absolute; left: 8px; top: 8px; background: rgba(0, 0, 0, 0.7); color: #fff; border-radius: 999px; padding: 3px 10px; font-size: 12px; }
.fab { display: none; }
@media (max-width: 720px) {
  .fab { display: inline-flex; position: fixed; right: 16px; bottom: calc(78px + env(safe-area-inset-bottom)); z-index: 25; padding: 14px 24px; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5); }
}

/* notifications */
.notif .acts { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; align-items: center; }
.notif .nname:hover { text-decoration: underline; }

/* profile banner: avatar overlaps it, with a gap ring in the page colour (not a border) */
.pbanner { aspect-ratio: 3 / 1; border-radius: 22px; background: var(--raised); overflow: hidden; }
.pbanner img { display: block; width: 100%; height: 100%; object-fit: cover; }
.profile .top .avatar.big { box-shadow: 0 0 0 5px var(--bg); }

/* emoji (Twemoji artwork) and the picker */
.emoji { width: 1.25em; height: 1.25em; vertical-align: -0.28em; display: inline-block; margin: 0 0.04em; }
.composer .tools { position: relative; }
.emoji-pop { position: absolute; left: -6px; top: calc(100% + 6px); z-index: 40; width: min(360px, 88vw); background: var(--field); border-radius: 22px; padding: 12px; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55); }
.emoji-pop.up { top: auto; bottom: calc(100% + 6px); }
.emoji-pop input { background: var(--hover); border-radius: 999px; padding: 9px 16px; font-size: 14px; }
.emoji-tabs { display: flex; gap: 2px; margin: 8px 0 4px; overflow-x: auto; scrollbar-width: none; }
.emoji-tabs button { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.emoji-tabs button:hover, .emoji-tabs button.on { background: var(--hover); }
.emoji-tabs .emoji { width: 20px; height: 20px; margin: 0; vertical-align: 0; }
.emoji-label { font-size: 12px; color: var(--muted); margin: 8px 4px 4px; }
.emoji-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; max-height: 250px; overflow-y: auto; scrollbar-width: thin; }
.emoji-grid button { aspect-ratio: 1; border-radius: 10px; display: grid; place-items: center; padding: 0; }
.emoji-grid button:hover { background: var(--hover); }
.emoji-grid .emoji { width: 26px; height: 26px; margin: 0; vertical-align: 0; }

/* maintenance */
.maint { max-width: 460px; margin: 18vh auto 0; padding: 0 20px; text-align: center; }
.maint h1 { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; margin: 18px 0 8px; }
.maint p { margin: 0 0 18px; white-space: pre-wrap; }
.maint-form { max-width: 320px; margin: 16px auto 0; display: grid; gap: 10px; text-align: left; }
.maint-banner { display: flex; align-items: center; gap: 10px; background: var(--hover); border-radius: 16px; padding: 10px 16px; margin: 6px 0 10px; font-size: 14px; }
.maint-banner span { flex: 1; }

/* polish */
.emoji-tabs button { flex: 1 1 0; width: auto; min-width: 0; }
.notif .vbadge, .person .vbadge { margin-left: 4px; }

/* logo */
.brand img { display: block; height: 46px; width: auto; }
.auth-logo { display: block; height: 64px; width: auto; margin: 0 0 18px; }
.maint-logo { display: block; height: 96px; width: auto; margin: 0 auto; }

/* review fixes */
body[data-page="home"] .fab, body[data-page="post"] .fab { display: none !important; }
.surface .pbanner { background: var(--field); }
.nav a.only-compact { display: none; }
@media (max-width: 1100px) { .nav a.only-compact { display: flex; } }
.btn.danger { background: #d13a3a; color: #fff; }
.ctls { margin-top: 10px; display: grid; gap: 8px; }
.ctl { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 10px; align-items: center; }
.ctl .cl { font-size: 13px; color: var(--muted); }
.ctl .row { margin: 0; }

/* media inside a quoted post */
.media .cell { display: block; position: relative; overflow: hidden; background: var(--field); min-height: 0; }
.media.n3 .cell:first-child { grid-row: 1 / 3; }
.quote { cursor: pointer; }
.quote .qlink { display: block; }
.quote .media { margin-top: 10px; border-radius: 14px; }
.quote .media.n1 img { max-height: 300px; }
.quote .media video { max-height: 300px; object-fit: cover; pointer-events: none; }
.playbadge { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.playbadge > span { width: 46px; height: 46px; border-radius: 50%; background: rgba(0, 0, 0, 0.6); color: #fff; display: grid; place-items: center; }
