/* XECUTE — the X kit. The product lives on X, so the site is laid out as X:
   rail · 600px timeline · right column, X's own metrics, hairlines and pills.
   Light ("Default") and black ("Lights out"), picked by the system or by the More menu.
   Flat: no glow, no shaded text, no blobs. Every class here starts with x-.
   Page-specific CSS belongs in the page's own <style>; this file is shared by all. */

/* ── tokens ──────────────────────────────────────────────────────────────── */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --fg: #0f1419;
  --mute: #536471;
  --line: #eff3f4;
  --line2: #cfd9de;
  --hover: rgba(15, 20, 25, .03);
  --hover2: rgba(15, 20, 25, .1);
  --card: #f7f9f9;
  --input: #eff3f4;
  --top: rgba(255, 255, 255, .85);
  --blue: #1d9bf0;
  --blue-h: #1a8cd8;
  --blue-bg: rgba(29, 155, 240, .1);
  --green: #00ba7c;
  --green-bg: rgba(0, 186, 124, .1);
  --pink: #f91880;
  --pink-bg: rgba(249, 24, 128, .1);
  --red: #f4212e;
  --red-bg: rgba(244, 33, 46, .1);
  --yellow: #ffd400;
  --purple: #7856ff;
  --orange: #ff7a00;
  --btn: #0f1419;
  --btn-fg: #ffffff;
  --btn-h: #272c30;
  --shade: rgba(0, 0, 0, .4);
  --menu-shadow: rgba(101, 119, 134, .2) 0 0 15px, rgba(101, 119, 134, .15) 0 0 3px 1px;
  --tip: rgba(83, 100, 113, .92);
  --ring: #8ecdf8;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #000000; --fg: #e7e9ea; --mute: #71767b; --line: #2f3336; --line2: #333639;
    --hover: rgba(231, 233, 234, .03); --hover2: rgba(231, 233, 234, .1);
    --card: #16181c; --input: #202327; --top: rgba(0, 0, 0, .65);
    --btn: #eff3f4; --btn-fg: #0f1419; --btn-h: #d7dbdc;
    --shade: rgba(91, 112, 131, .4);
    --menu-shadow: rgba(255, 255, 255, .2) 0 0 15px, rgba(255, 255, 255, .15) 0 0 3px 1px;
    --tip: rgba(91, 112, 131, .92);
  }
}
/* X's "Dim": the navy background, picked from Display. */
:root[data-theme="dim"] {
  color-scheme: dark;
  --bg: #15202b; --fg: #f7f9f9; --mute: #8b98a5; --line: #38444d; --line2: #425364;
  --hover: rgba(247, 249, 249, .03); --hover2: rgba(247, 249, 249, .1);
  --card: #1e2732; --input: #273340; --top: rgba(21, 32, 43, .75);
  --btn: #eff3f4; --btn-fg: #0f1419; --btn-h: #d7dbdc;
  --shade: rgba(91, 112, 131, .4);
  --menu-shadow: rgba(136, 153, 166, .2) 0 0 15px, rgba(136, 153, 166, .15) 0 0 3px 1px;
  --tip: rgba(91, 112, 131, .92);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #000000; --fg: #e7e9ea; --mute: #71767b; --line: #2f3336; --line2: #333639;
  --hover: rgba(231, 233, 234, .03); --hover2: rgba(231, 233, 234, .1);
  --card: #16181c; --input: #202327; --top: rgba(0, 0, 0, .65);
  --btn: #eff3f4; --btn-fg: #0f1419; --btn-h: #d7dbdc;
  --shade: rgba(91, 112, 131, .4);
  --menu-shadow: rgba(255, 255, 255, .2) 0 0 15px, rgba(255, 255, 255, .15) 0 0 3px 1px;
  --tip: rgba(91, 112, 131, .92);
}

/* ── base ────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }
body { background: var(--bg); color: var(--fg); font: 400 15px/20px var(--font); overflow-x: hidden;
       -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
img, svg { display: block; }
ul, ol { list-style: none; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 1px; }
.x-ta textarea:focus-visible, .x-search input:focus-visible, .x-field :focus-visible { outline: none; }
::selection { background: rgba(29, 155, 240, .3); }

.x-mute { color: var(--mute); }
.x-num { font-variant-numeric: tabular-nums; }
.x-up { color: var(--green); }
.x-dn { color: var(--red); }
.x-blue { color: var(--blue); }
.x-b { font-weight: 700; }
.x-link, a.x-link { color: var(--blue); }
.x-link:hover { text-decoration: underline; }
.x-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.x-hide { display: none !important; }
/* Kit classes set their own display (flex, grid, inline-flex), and any display rule beats the
   browser's own [hidden]. Hidden means hidden, everywhere. */
[hidden] { display: none !important; }
.x-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; }

/* icons: our own strokes. .f parts fill on active, .k parts cut out of a fill, .d are dots */
.x-i { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8;
       stroke-linecap: round; stroke-linejoin: round; }
.x-i .d { fill: currentColor; stroke: none; }
.x-ic-fill .f { fill: currentColor; }
.x-ic-fill .k { stroke: var(--bg); }

/* ── page frame ──────────────────────────────────────────────────────────── */
.x-app { display: flex; justify-content: center; align-items: flex-start; min-height: 100vh; }
.x-main { width: 600px; max-width: 100%; flex: none; min-width: 0; min-height: 100vh;
          border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.x-app.x-wide .x-main { width: 990px; }
.x-pad { padding: 12px 16px; }
.x-sep { height: 1px; background: var(--line); }
.x-gap { height: 12px; }

/* ── left rail ───────────────────────────────────────────────────────────── */
.x-rail { width: 275px; flex: none; position: sticky; top: 0; height: 100vh; z-index: 30;
          display: flex; justify-content: flex-end; }
.x-rail-in { width: 100%; height: 100%; display: flex; flex-direction: column; padding: 0 12px 0 8px;
             overflow-y: auto; scrollbar-width: none; }
.x-rail-in::-webkit-scrollbar { display: none; }
.x-logo { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px;
          border-radius: 9999px; margin-top: 2px; color: var(--fg); transition: background-color .2s; flex: none; }
.x-logo:hover { background: var(--hover2); }
.x-logo svg { width: 32px; height: 32px; }
.x-nav { display: flex; flex-direction: column; align-items: flex-start; margin: 2px 0 4px; }
.x-nav-a { display: inline-flex; align-items: center; gap: 20px; padding: 12px; border-radius: 9999px; margin: 4px 0;
           font-size: 20px; line-height: 24px; color: var(--fg); transition: background-color .2s; max-width: 100%; }
.x-nav-a:hover { background: var(--hover2); }
.x-nav-a .x-nav-t { padding-right: 16px; white-space: nowrap; }
.x-nav-a[aria-current="page"] { font-weight: 700; }
.x-nav-a[aria-current="page"] .x-i { stroke-width: 2.4; }
.x-nav-more.is-on { font-weight: 700; }
.x-nav-ic { position: relative; display: inline-flex; }
.x-nav-ic .x-i { width: 26.25px; height: 26.25px; }
.x-badge { position: absolute; top: -7px; left: 14px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9999px;
           background: var(--blue); color: #fff; font-size: 11px; line-height: 16px; font-weight: 700; text-align: center;
           border: 1px solid var(--bg); font-variant-numeric: tabular-nums; }
.x-badge:empty, .x-badge[hidden] { display: none; }
.x-post-btn { display: flex; align-items: center; justify-content: center; width: 90%; min-height: 52px; margin: 16px 0;
              background: var(--btn); color: var(--btn-fg); border-radius: 9999px; font-size: 17px; font-weight: 700;
              box-shadow: rgba(0, 0, 0, .08) 0 8px 28px; transition: background-color .2s; flex: none; }
.x-post-btn:hover { background: var(--btn-h); }
.x-post-btn .x-i { display: none; width: 24px; height: 24px; stroke-width: 2; }
.x-acct { display: flex; align-items: center; gap: 12px; width: 100%; margin: auto 0 12px; padding: 12px; border-radius: 9999px;
          text-align: left; transition: background-color .2s; flex: none; }
.x-acct:hover { background: var(--hover2); }
.x-acct-t { flex: 1; min-width: 0; line-height: 20px; }
.x-acct-t b, .x-acct-t span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.x-acct-t span { color: var(--mute); }
.x-acct > .x-i { width: 18.75px; height: 18.75px; }

/* phone-only bits of the frame */
.x-fab, .x-top-me, .x-top-row.x-top-phone { display: none; }

/* ── sticky main-column header ───────────────────────────────────────────── */
.x-top { position: sticky; top: 0; z-index: 20; background: var(--top);
         -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.x-top-row { display: flex; align-items: center; min-height: 53px; padding: 0 16px; gap: 0; }
.x-top-row:empty { display: none; }
.x-top-back { width: 34px; height: 34px; margin: 0 20px 0 -8px; border-radius: 9999px; display: inline-flex;
              align-items: center; justify-content: center; flex: none; transition: background-color .2s; }
.x-top-back:hover { background: var(--hover2); }
.x-top-back .x-i { width: 20px; height: 20px; stroke-width: 2.2; }
.x-top-t { flex: 1; min-width: 0; padding: 2px 0; }
.x-top-t h1 { font-size: 20px; line-height: 24px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.x-top-t p { font-size: 13px; line-height: 16px; color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.x-top-r { display: flex; align-items: center; gap: 8px; margin-left: 12px; }
.x-top-mid { flex: 1; display: flex; justify-content: center; }
.x-top-mid svg { width: 28px; height: 28px; }
.x-iconbtn { width: 34px; height: 34px; border-radius: 9999px; display: inline-flex; align-items: center; justify-content: center;
             color: var(--fg); transition: background-color .2s; flex: none; }
.x-iconbtn:hover { background: var(--hover2); }
.x-iconbtn .x-i { width: 20px; height: 20px; }

/* ── tabs (X's blue underline that slides) ───────────────────────────────── */
.x-tabs { position: relative; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.x-tabs::-webkit-scrollbar { display: none; }
.x-tabs-in { position: relative; display: flex; min-width: 100%; }
.x-tab { flex: 1 0 auto; display: flex; justify-content: center; padding: 0 16px; height: 53px; color: var(--mute);
         font-weight: 500; transition: background-color .2s; white-space: nowrap; }
.x-tab:hover { background: var(--hover2); }
.x-tab-t { position: relative; display: flex; align-items: center; height: 100%; }
.x-tab[aria-selected="true"] { color: var(--fg); font-weight: 700; }
.x-tab[aria-selected="true"] .x-tab-t::after { content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
         height: 4px; width: 100%; min-width: 56px; border-radius: 9999px; background: var(--blue); }
.x-tabs.has-ink .x-tab-t::after { display: none; }
.x-tabs-ink { position: absolute; left: 0; bottom: 0; height: 4px; border-radius: 9999px; background: var(--blue);
              width: 56px; transform: translateX(0); transition: transform .3s cubic-bezier(.2, .8, .2, 1), width .3s cubic-bezier(.2, .8, .2, 1); }
.x-tabs-ink.no-anim { transition: none; }

/* ── avatars ─────────────────────────────────────────────────────────────── */
.x-av { --s: 40px; width: var(--s); height: var(--s); border-radius: 9999px; flex: none; display: inline-grid; place-items: center;
        overflow: hidden; font-weight: 700; font-size: calc(var(--s) * .42); line-height: 1; color: #fff; position: relative;
        user-select: none; transition: filter .2s; }
a.x-av:hover, button.x-av:hover { filter: brightness(.88); }
/* the account's real X picture, laid over its initial tile (removed on error → the tile shows) */
.x-av > img.x-av-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.x-av-bot { background: #000; }
/* The mark carries its own black disc, so it fills the circle edge to edge. */
.x-av-bot svg { display: block; width: 100%; height: 100%; }
/* On a black page the disc needs X's hairline ring; it sits over the picture, so the disc can't hide it. */
.x-av-bot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; }
:root[data-theme="dark"] .x-av-bot::after, :root[data-theme="dim"] .x-av-bot::after { box-shadow: inset 0 0 0 1px #2f3336; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .x-av-bot::after { box-shadow: inset 0 0 0 1px #2f3336; } }
.x-av-anon { background: var(--line2); color: var(--bg); }
.x-av-anon svg { width: 62%; height: 62%; margin-top: 18%; }

/* the Automated label: X's small grey robot after the name */
.x-auto { display: inline-flex; align-items: center; color: var(--mute); flex: none; }
.x-auto .x-i { width: 16px; height: 16px; stroke-width: 1.9; }
.x-auto-line { display: inline-flex; align-items: center; gap: 4px; color: var(--mute); font-size: 13px; line-height: 16px; }
.x-auto-line .x-i { width: 15px; height: 15px; }

/* ── posts ───────────────────────────────────────────────────────────────── */
.x-post { position: relative; display: block; padding: 12px 16px 0; border-bottom: 1px solid var(--line);
          transition: background-color .2s; }
.x-post:hover { background: var(--hover); }
.x-post-ctx { display: flex; align-items: center; gap: 12px; margin: -2px 0 4px; color: var(--mute);
              font-size: 13px; line-height: 16px; font-weight: 700; }
.x-post-ctx > span:first-child { width: 40px; display: flex; justify-content: flex-end; flex: none; }
.x-post-ctx .x-i { width: 16px; height: 16px; stroke-width: 2.2; }
.x-post-ctx a:hover { text-decoration: underline; }
.x-post-row { display: flex; gap: 12px; }
.x-post-av { width: 40px; flex: none; display: flex; flex-direction: column; align-items: center; position: relative; }
.x-post-c { flex: 1; min-width: 0; padding-bottom: 12px; }
.x-post-h { display: flex; align-items: center; gap: 4px; min-width: 0; line-height: 20px; white-space: nowrap; }
.x-post-h .x-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 0 1 auto; }
.x-post-h a.x-name:hover { text-decoration: underline; }
.x-post-h .x-handle, .x-post-h .x-dot, .x-post-h .x-time { color: var(--mute); }
.x-post-h .x-handle { overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 0 1 auto; }
.x-post-h .x-time { flex: none; }
.x-post-h a.x-time:hover { text-decoration: underline; }
.x-post-h .x-dot { padding: 0 1px; flex: none; }
.x-post-menu { margin: -8px -8px -8px auto; width: 34.75px; height: 34.75px; border-radius: 9999px; display: inline-flex;
               align-items: center; justify-content: center; color: var(--mute); flex: none; transition: background-color .2s, color .2s; }
.x-post-menu:hover { background: var(--blue-bg); color: var(--blue); }
.x-post-menu .x-i { width: 18.75px; height: 18.75px; }
.x-post-reply { color: var(--mute); margin-top: 2px; }
.x-post-reply a { color: var(--blue); }
.x-post-reply a:hover { text-decoration: underline; }
.x-post-t { margin-top: 2px; overflow-wrap: anywhere; }
.x-post-t p + p { margin-top: 20px; }
.x-post-t.x-big { font-size: 17px; line-height: 24px; }
.x-post-t .x-hl { display: block; font-size: 20px; line-height: 24px; font-weight: 800; margin: 2px 0 6px; }
.x-post-t a, .x-tag { color: var(--blue); }
.x-post-t a:hover, a.x-tag:hover { text-decoration: underline; }
.x-post-num { color: var(--mute); }
.x-post-more { display: inline-block; color: var(--blue); margin-top: 4px; }
.x-post-more:hover { text-decoration: underline; }
.x-showthread { display: flex; gap: 12px; padding: 0 16px; border-bottom: 1px solid var(--line); color: var(--blue);
                transition: background-color .2s; width: 100%; text-align: left; }
.x-showthread:hover { background: var(--hover); }
.x-showthread > span:first-child { width: 40px; flex: none; display: flex; justify-content: center; }
.x-showthread > span:first-child::before { content: ""; width: 0; height: 100%; min-height: 44px; border-left: 2px dotted var(--line2); }
.x-showthread > span:last-child { padding: 12px 0; }

/* threads: the line between avatars */
.x-post.x-th-down { border-bottom: 0; }
.x-post.x-th-down .x-post-av::after { content: ""; position: absolute; top: 44px; bottom: 0; width: 2px; background: var(--line2); }
.x-post.x-th-up::before { content: ""; position: absolute; left: 35px; top: 0; height: 8px; width: 2px; background: var(--line2); }

/* action row */
.x-acts { display: flex; justify-content: space-between; max-width: 425px; margin-top: 12px; color: var(--mute); }
.x-act { display: inline-flex; align-items: center; min-height: 20px; font-size: 13px; line-height: 16px; color: var(--mute);
         transition: color .2s; -webkit-tap-highlight-color: transparent; }
.x-act-i { position: relative; display: inline-flex; }
.x-act-i::before { content: ""; position: absolute; inset: -8px; border-radius: 9999px; transition: background-color .2s; }
.x-act .x-i { width: 18.75px; height: 18.75px; position: relative; }
.x-act-n { padding: 0 12px 0 4px; font-variant-numeric: tabular-nums; }
.x-act:hover, .x-act.is-blue:hover { color: var(--blue); }
.x-act:hover .x-act-i::before { background: var(--blue-bg); }
.x-act.is-green:hover { color: var(--green); }
.x-act.is-green:hover .x-act-i::before { background: var(--green-bg); }
.x-act.is-pink:hover { color: var(--pink); }
.x-act.is-pink:hover .x-act-i::before { background: var(--pink-bg); }
.x-act-end { display: inline-flex; gap: 16px; }
/* A like that only lived in this browser never reached X. Real likes are links to X's intent
   (<a data-act="like">); an old-style local like button is hidden wherever a page still draws one. */
.x-act[data-like] { display: none !important; }

/* ── cards inside posts ──────────────────────────────────────────────────── */
.x-card { display: block; margin-top: 12px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
a.x-card:hover, .x-card.is-link:hover { background: var(--hover); }
.x-card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border-bottom: 1px solid var(--line); }
.x-card-b { padding: 12px; }
.x-card-f { padding: 12px; border-top: 1px solid var(--line); color: var(--mute); font-size: 13px; line-height: 16px;
            display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* quote card: someone's words embedded in a bot post */
.x-quote { display: block; margin-top: 12px; border: 1px solid var(--line); border-radius: 16px; padding: 12px; transition: background-color .2s; }
.x-quote:hover { background: var(--hover); }
.x-quote-h { display: flex; align-items: center; gap: 4px; line-height: 20px; white-space: nowrap; min-width: 0; overflow: hidden; }
.x-quote-h .x-av { --s: 20px; margin-right: 2px; }
.x-quote-h b { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.x-quote-h span { color: var(--mute); overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 0 1 auto; }
.x-quote-h .x-av { flex: none; }
.x-quote-t { margin-top: 4px; overflow-wrap: anywhere; }

/* X's large link card: media on top, title tag over it, "From domain" below */
.x-lcard { margin-top: 12px; }
.x-lcard-box { display: block; position: relative; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
a.x-lcard-box:hover .x-rc { filter: brightness(.97); }
.x-lcard-tag { position: absolute; left: 12px; bottom: 12px; max-width: calc(100% - 24px); padding: 0 4px; border-radius: 4px;
               background: rgba(0, 0, 0, .77); color: #fff; font-size: 13px; line-height: 20px; white-space: nowrap;
               overflow: hidden; text-overflow: ellipsis; }
.x-lcard-from { margin-top: 4px; font-size: 13px; line-height: 16px; color: var(--mute); }
.x-lcard-from a:hover { text-decoration: underline; }

/* X media: a picture in a post — 16px corners, hairline border, opens full size */
.x-media { position: relative; margin-top: 12px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--hover2); }
.x-media-a { display: block; }
.x-media img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.x-media-a:hover img { filter: brightness(.94); }
.x-media-tag:hover { text-decoration: underline; }
/* a grid of pictures (X shows up to four; a profile's own set can be six) */
.x-mgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; border: 1px solid var(--line);
           border-radius: 16px; overflow: hidden; background: var(--line); }
.x-mgrid > * { position: relative; display: block; aspect-ratio: 1; background: var(--card); overflow: hidden; }
.x-mgrid img { display: block; width: 100%; height: 100%; object-fit: cover; }
.x-mgrid-l { position: absolute; left: 8px; bottom: 8px; max-width: calc(100% - 16px); padding: 0 4px; border-radius: 4px;
             background: rgba(0, 0, 0, .77); color: #fff; font-size: 12px; line-height: 18px; font-weight: 700;
             white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* "@friend invited you" — under the page header, on any page opened from a referral link */
.x-ref { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--blue-bg); }
.x-ref-av { flex: none; }
.x-ref-t { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.x-ref-b { flex: none; }
.x-ref-x { flex: none; width: 34px; height: 34px; }

/* the receipt "image" the bot attaches */
.x-rc { background: var(--card); padding: 14px 16px 44px; display: grid; gap: 10px; transition: filter .2s; }
.x-rc.is-notag { padding-bottom: 14px; }
.x-rc-top { display: flex; align-items: center; gap: 8px; color: var(--mute); font-size: 13px; line-height: 16px; }
.x-rc-top .x-av { --s: 20px; }
.x-rc-top b { color: var(--fg); }
.x-rc-top .x-rc-id { margin-left: auto; font-variant-numeric: tabular-nums; }
.x-rc-verb { font-size: 13px; line-height: 16px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--tone, var(--blue)); }
.x-rc-big { font-size: 28px; line-height: 32px; font-weight: 800; letter-spacing: -.01em; font-variant-numeric: tabular-nums;
            overflow-wrap: anywhere; }
.x-rc-big small { font-size: 17px; font-weight: 700; color: var(--mute); letter-spacing: 0; }
.x-rc-sub { color: var(--mute); overflow-wrap: anywhere; }
.x-rc-tape { height: 0; border-top: 2px dashed var(--line2); }
.x-rc-meta { display: flex; justify-content: space-between; gap: 12px; color: var(--mute); font-size: 13px; line-height: 16px; flex-wrap: wrap; }
.x-tone-buy { --tone: var(--green); }
.x-tone-sell { --tone: var(--red); }
.x-tone-swap, .x-tone-send { --tone: var(--blue); }
.x-tone-drop, .x-tone-reward { --tone: var(--purple); }
.x-tone-burn { --tone: var(--orange); }

/* stat grid card (used inside posts) */
.x-statgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.x-statgrid > div { padding: 12px; border-right: 1px solid var(--line); min-width: 0; }
.x-statgrid > div:last-child { border-right: 0; }
.x-statgrid b { display: block; font-size: 20px; line-height: 24px; font-weight: 800; font-variant-numeric: tabular-nums;
                overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.x-statgrid span { display: block; color: var(--mute); font-size: 13px; line-height: 16px; }

/* ── Community Note ──────────────────────────────────────────────────────── */
.x-cn { margin-top: 12px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--bg); }
.x-cn-h { display: flex; align-items: center; gap: 8px; padding: 12px 12px 0; font-weight: 700; }
.x-cn-h .x-i { width: 18.75px; height: 18.75px; color: var(--fg); }
.x-cn-b { padding: 8px 12px 12px; overflow-wrap: anywhere; }
.x-cn-b p + p { margin-top: 12px; }
.x-cn-b a { color: var(--blue); }
.x-cn-b a:hover { text-decoration: underline; }
.x-cn-f { border-top: 1px solid var(--line); padding: 12px; color: var(--mute); font-size: 13px; line-height: 16px; }
.x-cn-f a { color: var(--blue); }
.x-cn.x-cn-flat { margin: 0; border-radius: 0; border-left: 0; border-right: 0; border-top: 0; }
.x-cn-wrap { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.x-cn-wrap .x-cn { margin-top: 0; }

/* ── buttons, chips, fields ──────────────────────────────────────────────── */
.x-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 0 16px;
         border-radius: 9999px; font-size: 15px; line-height: 20px; font-weight: 700; white-space: nowrap; cursor: pointer;
         background: var(--btn); color: var(--btn-fg); border: 1px solid transparent; transition: background-color .2s, opacity .2s; }
.x-btn:hover { background: var(--btn-h); }
.x-btn-blue { background: var(--blue); color: #fff; }
.x-btn-blue:hover { background: var(--blue-h); }
.x-btn-outline { background: transparent; color: var(--fg); border-color: var(--line2); }
.x-btn-outline:hover { background: var(--hover2); }
.x-btn-danger { background: transparent; color: var(--red); border-color: rgba(244, 33, 46, .5); }
.x-btn-danger:hover { background: var(--red-bg); }
.x-btn-sm { min-height: 32px; padding: 0 14px; font-size: 14px; }
.x-btn-lg { min-height: 52px; padding: 0 32px; font-size: 17px; }
.x-btn-block { display: flex; width: 100%; }
.x-btn[disabled], .x-btn.is-off { opacity: .5; pointer-events: none; }
.x-btn .x-i { width: 18px; height: 18px; }
.x-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0; min-width: 0; }
.x-chips::-webkit-scrollbar { display: none; }
/* The composer's example row scrolls sideways: fade its right edge so a cut-off chip reads as
   "there's more" rather than as broken, and pad the end so the last chip can clear the fade. */
.x-compose-chips { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent);
                   mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); padding-right: 40px; }
.x-chip { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border-radius: 9999px;
          border: 1px solid var(--line2); color: var(--blue); font-size: 14px; line-height: 16px; font-weight: 700; white-space: nowrap;
          transition: background-color .2s; }
.x-chip:hover { background: var(--blue-bg); }
.x-chip .x-i { width: 16px; height: 16px; }
.x-pill { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; line-height: 16px; font-weight: 700;
          border-radius: 4px; padding: 2px 6px; background: var(--blue-bg); color: var(--blue); white-space: nowrap; }
.x-pill.is-green { background: var(--green-bg); color: var(--green); }
.x-pill.is-red { background: var(--red-bg); color: var(--red); }
.x-pill.is-grey { background: var(--hover2); color: var(--mute); }
.x-field { display: block; position: relative; border: 1px solid var(--line2); border-radius: 4px; padding: 8px 8px 6px;
           transition: border-color .2s, box-shadow .2s; }
.x-field:focus-within { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.x-field > span { display: block; font-size: 13px; line-height: 16px; color: var(--mute); }
.x-field:focus-within > span { color: var(--blue); }
.x-field input, .x-field select, .x-field textarea { display: block; width: 100%; border: 0; outline: 0; background: transparent;
           font-size: 17px; line-height: 24px; padding-top: 4px; resize: vertical; }
.x-field select { appearance: none; cursor: pointer; }
.x-field + .x-field { margin-top: 16px; }
.x-help { font-size: 13px; line-height: 16px; color: var(--mute); margin-top: 6px; }
.x-switch { appearance: none; width: 40px; height: 24px; border-radius: 9999px; background: var(--line2); position: relative;
            cursor: pointer; flex: none; transition: background-color .2s; }
.x-switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 9999px;
                   background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s; }
.x-switch:checked { background: var(--blue); }
.x-switch:checked::after { transform: translateX(16px); }

/* ── composer ────────────────────────────────────────────────────────────── */
.x-compose { display: flex; gap: 12px; padding: 4px 16px 8px; border-bottom: 1px solid var(--line); }
.x-compose-av { flex: none; padding-top: 4px; }
.x-compose-c { flex: 1; min-width: 0; }
.x-ta { position: relative; }
.x-ta-bd, .x-ta textarea { font: 400 20px/24px var(--font); padding: 12px 0; white-space: pre-wrap; overflow-wrap: break-word;
                            word-break: break-word; letter-spacing: normal; }
.x-ta-bd { position: absolute; inset: 0; color: var(--fg); pointer-events: none; overflow: hidden; }
.x-ta-bd .m, .x-ta-bd .c { color: var(--blue); }
.x-ta-bd .ph { color: var(--mute); }
.x-ta textarea { position: relative; display: block; width: 100%; min-height: 52px; border: 0; outline: 0; resize: none; overflow: hidden;
                 background: transparent; color: transparent; caret-color: var(--fg); }
.x-ta textarea::placeholder { color: transparent; }
.x-who-replies { display: inline-flex; align-items: center; gap: 4px; color: var(--blue); font-size: 14px; line-height: 16px;
                 font-weight: 700; padding: 0 12px 12px 0; }
.x-who-replies .x-i { width: 16px; height: 16px; }
.x-who-replies.is-off { color: var(--mute); font-weight: 400; }
.x-compose.is-quiet:not(.is-active) .x-who-replies { display: none; }
.x-compose-chips { padding-bottom: 12px; }
.x-compose-bar { display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--line); padding-top: 8px; min-width: 0; }
.x-tools { display: flex; align-items: center; flex: 1; min-width: 0; margin-left: -8px; overflow-x: auto; scrollbar-width: none; }
.x-tools::-webkit-scrollbar { display: none; }
.x-tool { width: 34px; height: 34px; border-radius: 9999px; display: inline-flex; align-items: center; justify-content: center;
          color: var(--blue); flex: none; transition: background-color .2s; }
.x-tool:hover { background: var(--blue-bg); }
.x-tool .x-i { width: 20px; height: 20px; }
.x-count { width: 30px; height: 30px; flex: none; display: inline-grid; place-items: center; position: relative; font-size: 13px; color: var(--mute); }
.x-count svg { position: absolute; inset: 0; width: 30px; height: 30px; transform: rotate(-90deg); }
.x-count .bg { stroke: var(--line2); }
.x-count .fg { stroke: var(--blue); transition: stroke-dashoffset .15s; }
.x-count.is-warn .fg { stroke: var(--yellow); }
.x-count.is-over .fg { stroke: var(--red); }
.x-count.is-over span { color: var(--red); }
.x-count-sep { width: 1px; height: 31px; background: var(--line2); margin: 0 4px; flex: none; }
.x-would { margin: 4px 0 12px; }
.x-would:empty { display: none; }
.x-would-post { display: flex; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 16px; }
.x-would-post .x-av { --s: 32px; }
.x-would-post .x-post-h { font-size: 15px; }
.x-would-post .x-post-t { margin-top: 0; }
.x-would-quiet { display: flex; align-items: center; gap: 8px; color: var(--mute); font-size: 14px; line-height: 18px; padding: 10px 12px;
                 border: 1px dashed var(--line2); border-radius: 16px; }
.x-would-quiet .x-i { width: 18px; height: 18px; }
.x-would-dry { font-size: 13px; line-height: 16px; color: var(--mute); padding: 6px 2px 0; }

/* ── layers: modal, menu, drawer, hovercard, toast, tooltip ──────────────── */
.x-layer { position: fixed; inset: 0; z-index: 1000; display: flex; justify-content: center; align-items: flex-start;
           background: var(--shade); padding: 5vh 16px; overflow-y: auto; animation: x-fade .15s ease; }
@keyframes x-fade { from { opacity: 0; } }
.x-modal { width: 600px; max-width: 100%; background: var(--bg); border-radius: 16px; display: flex; flex-direction: column;
           max-height: 90vh; overflow: hidden; }
.x-modal.is-sm { width: 420px; }
.x-modal:focus, .x-modal:focus-visible { outline: none; }
.x-modal-h { display: flex; align-items: center; gap: 12px; min-height: 53px; padding: 0 16px; flex: none; }
.x-modal-h h2 { flex: 1; font-size: 20px; line-height: 24px; font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.x-modal-h .x-iconbtn { margin-left: -8px; }
.x-modal-h .x-modal-r { margin-left: auto; }
.x-modal-h .x-modal-r a, .x-modal-h .x-modal-r button { color: var(--blue); font-weight: 700; font-size: 14px; }
.x-modal-b { padding: 0 16px 16px; overflow-y: auto; }
.x-modal-b.is-pad { padding: 0 32px 32px; }
.x-modal .x-compose { border-bottom: 0; padding: 0 0 8px; }
.x-menu { position: fixed; z-index: 1100; min-width: 220px; max-width: min(380px, calc(100vw - 16px)); background: var(--bg);
          border-radius: 12px; box-shadow: var(--menu-shadow); overflow: hidden; padding: 4px 0; animation: x-fade .12s ease; }
.x-menu-i { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 16px; font-size: 15px; line-height: 20px;
            font-weight: 700; text-align: left; color: var(--fg); transition: background-color .2s; }
.x-menu-i:hover, .x-menu-i:focus-visible { background: var(--hover); outline: none; }
.x-menu-i .x-i { width: 18.75px; height: 18.75px; }
.x-menu-i.is-red { color: var(--red); }
.x-menu-sep { height: 1px; background: var(--line); margin: 4px 0; }
.x-menu-h { padding: 12px 16px 4px; font-size: 13px; line-height: 16px; color: var(--mute); font-weight: 700; }
.x-menu.is-big .x-menu-i { font-size: 20px; line-height: 24px; gap: 16px; padding: 12px 16px; }
.x-menu.is-big .x-menu-i .x-i { width: 24px; height: 24px; }
/* X's background picker: each option drawn in its own colours. Side by side where there's room,
   one per row in a menu or the phone drawer. */
.x-theme { display: grid; grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); gap: 8px; padding: 4px 16px 12px; }
.x-menu .x-theme, .x-drawer .x-theme { grid-template-columns: minmax(0, 1fr); }
.x-theme button { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 12px; border-radius: 4px;
                  font-weight: 700; border: 1px solid var(--line2); white-space: nowrap; }
.x-theme button[data-t="light"] { background: #fff; color: #0f1419; border-color: #cfd9de; }
.x-theme button[data-t="dim"] { background: #15202b; color: #f7f9f9; border-color: #38444d; }
.x-theme button[data-t="dark"] { background: #000; color: #e7e9ea; border-color: #333639; }
.x-theme.is-big { padding: 4px 0 0; gap: 12px; }
.x-theme.is-big button { min-height: 62px; padding: 0 20px; gap: 16px; font-size: 15px; }
.x-theme button[aria-pressed="true"] { border: 2px solid var(--blue); }
.x-theme i { width: 18px; height: 18px; border-radius: 9999px; border: 2px solid #b9cad3; flex: none; display: grid; place-items: center; }
.x-theme button[aria-pressed="true"] i { background: var(--blue); border-color: var(--blue); }
.x-theme button[aria-pressed="true"] i::after { content: ""; width: 6px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0;
                                               transform: translateY(-1px) rotate(45deg); }
.x-drawer-bg { position: fixed; inset: 0; z-index: 1000; background: var(--shade); animation: x-fade .15s ease; }
.x-drawer { position: fixed; z-index: 1001; top: 0; bottom: 0; left: 0; width: 280px; max-width: 80vw; background: var(--bg);
            overflow-y: auto; box-shadow: var(--menu-shadow); animation: x-slide .2s ease; padding-bottom: 24px; }
@keyframes x-slide { from { transform: translateX(-100%); } }
.x-drawer-me { padding: 16px; display: grid; gap: 4px; }
.x-drawer-me b { font-size: 17px; line-height: 20px; margin-top: 8px; }
.x-drawer .x-menu-i { font-size: 20px; line-height: 24px; gap: 20px; padding: 14px 16px; }
.x-drawer .x-menu-i .x-i { width: 24px; height: 24px; }
.x-hc { position: fixed; z-index: 1050; width: 300px; max-width: calc(100vw - 16px); background: var(--bg); border-radius: 16px;
        box-shadow: var(--menu-shadow); padding: 16px; animation: x-fade .15s ease; }
.x-hc-top { display: flex; justify-content: space-between; align-items: flex-start; }
.x-hc-top .x-av { --s: 64px; }
.x-hc-name { margin-top: 8px; display: flex; align-items: center; gap: 4px; font-size: 17px; line-height: 20px; font-weight: 800; }
.x-hc-name:hover { text-decoration: underline; }
.x-hc-handle { color: var(--mute); }
.x-hc-bio { margin-top: 12px; }
.x-hc .x-auto-line { margin-top: 8px; }
.x-hc .x-stats { margin-top: 12px; }
.x-toast { position: fixed; left: 50%; bottom: 20px; z-index: 1200; transform: translateX(-50%); max-width: calc(100vw - 32px);
           display: flex; align-items: center; gap: 16px; padding: 12px 16px; border-radius: 4px; background: var(--blue); color: #fff;
           box-shadow: rgba(101, 119, 134, .2) 0 0 15px, rgba(101, 119, 134, .15) 0 0 3px 1px; animation: x-rise .2s ease; }
.x-toast a { font-weight: 700; text-decoration: underline; white-space: nowrap; }
.x-toast.is-out { opacity: 0; transition: opacity .3s; }
@keyframes x-rise { from { transform: translate(-50%, 16px); opacity: 0; } }
[data-tip] { position: relative; }
[data-tip]::after { content: attr(data-tip); position: absolute; left: 50%; top: calc(100% + 4px); transform: translateX(-50%);
                    background: var(--tip); color: #fff; font-size: 11px; line-height: 12px; font-weight: 400; padding: 3px 5px;
                    border-radius: 2px; white-space: nowrap; pointer-events: none; opacity: 0; visibility: hidden; z-index: 60;
                    transition: opacity .1s; }
[data-tip]:hover::after { opacity: 1; visibility: visible; transition-delay: .5s; }
@media (hover: none) { [data-tip]::after { display: none; } }

/* ── "Show N posts" ──────────────────────────────────────────────────────── */
.x-newrow { display: block; width: 100%; padding: 16px; text-align: center; color: var(--blue); border-bottom: 1px solid var(--line);
            transition: background-color .2s; }
.x-newrow:hover { background: var(--hover); }
.x-newpill { position: fixed; z-index: 25; top: 64px; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center;
             gap: 6px; padding: 0 16px 0 12px; min-height: 40px; border-radius: 9999px; background: var(--blue); color: #fff;
             font-weight: 700; box-shadow: rgba(101, 119, 134, .2) 0 0 8px, rgba(101, 119, 134, .25) 0 1px 3px 1px; animation: x-drop .25s ease; }
.x-newpill:hover { background: var(--blue-h); }
.x-newpill .x-i { width: 18px; height: 18px; stroke-width: 2.4; }
.x-newpill .x-av { --s: 24px; box-shadow: 0 0 0 2px var(--blue); margin-left: -8px; font-size: 11px; }
.x-newpill .x-av:first-of-type { margin-left: 0; }
@keyframes x-drop { from { transform: translate(-50%, -12px); opacity: 0; } }

/* ── loading ─────────────────────────────────────────────────────────────── */
.x-sk { display: flex; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.x-sk-av { width: 40px; height: 40px; border-radius: 9999px; flex: none; }
.x-sk-c { flex: 1; display: grid; gap: 8px; padding-top: 4px; }
.x-sk-l { height: 12px; border-radius: 9999px; }
.x-sk-m { height: 120px; border-radius: 16px; margin-top: 4px; }
.x-sk-av, .x-sk-l, .x-sk-m { background: var(--card); animation: x-pulse 1.4s ease-in-out infinite; }
@keyframes x-pulse { 50% { opacity: .45; } }
.x-spin { width: 26px; height: 26px; margin: 24px auto; border-radius: 9999px; border: 3px solid var(--blue-bg); border-top-color: var(--blue);
          animation: x-rot .75s linear infinite; }
@keyframes x-rot { to { transform: rotate(360deg); } }

/* ── empty states, section heads, rows ───────────────────────────────────── */
.x-empty { padding: 32px; max-width: 400px; margin: 0 auto; }
.x-empty h2 { font-size: 31px; line-height: 36px; font-weight: 800; }
.x-empty p { color: var(--mute); margin-top: 8px; }
.x-empty .x-btn { margin-top: 28px; }
.x-sec-h { padding: 12px 16px; font-size: 20px; line-height: 24px; font-weight: 800; }
.x-sec-sub { padding: 0 16px 12px; color: var(--mute); margin-top: -8px; }
.x-more { display: block; width: 100%; padding: 16px; color: var(--blue); text-align: left; border-bottom: 1px solid var(--line);
          transition: background-color .2s; }
.x-more:hover { background: var(--hover); }
.x-cell { display: flex; align-items: center; gap: 12px; padding: 12px 16px; transition: background-color .2s; min-width: 0; }
a.x-cell:hover, .x-cell.is-link:hover { background: var(--hover); cursor: pointer; }
.x-cell-ic { width: 40px; height: 40px; border-radius: 9999px; display: grid; place-items: center; flex: none; background: var(--blue-bg); color: var(--blue); }
.x-cell-ic .x-i { width: 20px; height: 20px; }
.x-cell-m { flex: 1; min-width: 0; line-height: 20px; }
.x-cell-m > b, .x-cell-m > span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.x-cell-m > b { display: flex; align-items: center; gap: 4px; }
.x-cell-m > span { color: var(--mute); }
.x-cell-m > p { margin-top: 4px; }
.x-cell-r { flex: none; text-align: right; font-variant-numeric: tabular-nums; }
.x-cell-r small { display: block; color: var(--mute); font-size: 13px; line-height: 16px; }
.x-list > * + * { border-top: 1px solid var(--line); }
.x-stats { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 14px; line-height: 16px; }
.x-stats span { color: var(--mute); }
.x-stats b { color: var(--fg); font-weight: 700; margin-right: 4px; font-variant-numeric: tabular-nums; }
.x-stats a:hover { text-decoration: underline; }
.x-checks li { display: flex; gap: 12px; align-items: flex-start; padding: 6px 0; }
.x-checks .x-i { width: 18.75px; height: 18.75px; color: var(--blue); stroke-width: 2.4; margin-top: 1px; }
.x-checks li.is-no .x-i { color: var(--mute); }

/* ── trends + sparklines ─────────────────────────────────────────────────── */
.x-trend { position: relative; display: flex; gap: 12px; padding: 12px 16px; transition: background-color .2s; cursor: pointer; width: 100%; text-align: left; }
.x-trend:hover { background: var(--hover); }
.x-trend:focus-visible { outline-offset: -2px; }
.x-trend-m { flex: 1; min-width: 0; }
.x-trend-k { font-size: 13px; line-height: 16px; color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.x-trend-t { font-weight: 700; margin: 2px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.x-trend-t span { font-weight: 400; color: var(--mute); }
.x-trend-s { font-size: 13px; line-height: 16px; color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.x-trend-r { flex: none; display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 4px;
             font-size: 13px; line-height: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
/* X's ⋯ at the top right of a trend, with the day's move beside it */
.x-trend-top { display: inline-flex; align-items: center; gap: 2px; }
.x-trend.has-menu .x-trend-r { justify-content: space-between; }
.x-trend-menu { width: 34.75px; height: 34.75px; margin: -9px -10px -9px 0; border-radius: 9999px; display: inline-flex;
                align-items: center; justify-content: center; color: var(--mute); flex: none; transition: background-color .2s, color .2s; }
.x-trend-menu:hover, .x-trend-menu:focus-visible { background: var(--blue-bg); color: var(--blue); }
.x-trend-menu .x-i { width: 18.75px; height: 18.75px; }
.x-spark { display: block; overflow: visible; }
.x-hero { display: block; border-bottom: 1px solid var(--line); transition: background-color .2s; cursor: pointer; width: 100%; text-align: left; }
.x-hero:hover { background: var(--hover); }
.x-hero-media { position: relative; background: var(--card); height: 220px; overflow: hidden; }
.x-hero-media svg { position: absolute; inset: 24px 0 0; width: 100%; height: calc(100% - 24px); }
.x-hero-badge { position: absolute; left: 16px; top: 14px; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; line-height: 16px;
                font-weight: 700; color: var(--fg); }
.x-hero-badge i { width: 8px; height: 8px; border-radius: 9999px; background: var(--red); }
.x-hero-px { position: absolute; right: 16px; top: 12px; text-align: right; font-weight: 800; font-size: 20px; line-height: 24px;
             font-variant-numeric: tabular-nums; }
.x-hero-px small { display: block; font-size: 13px; line-height: 16px; font-weight: 700; }
.x-hero-c { padding: 12px 16px; }
.x-hero-c .x-trend-t { font-size: 20px; line-height: 24px; font-weight: 800; white-space: normal; }
/* X's Explore hero: a picture with the words laid over it. The picture is the market's last
   24 hours, drawn on ink — a picture looks the same in every theme. */
.x-hero-media.is-pic { height: 300px; background: #0f1419; color: #fff; }
.x-hero-media.is-pic .x-hero-chart { position: absolute; left: 0; right: 0; top: 56px; bottom: 104px; }
.x-hero-media.is-pic .x-hero-chart svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.x-hero-media.is-pic .x-hero-px { top: 14px; color: #fff; }
.x-hero-media.is-pic .x-hero-px .x-up { color: #00ba7c; }
.x-hero-media.is-pic .x-hero-px .x-dn { color: #ff5c66; }
.x-hero-media.is-pic .x-hero-c { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 16px 16px; }
.x-hero-k { display: flex; align-items: center; gap: 6px; font-size: 13px; line-height: 16px; color: #c4cfd6; min-width: 0; }
.x-hero-k > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.x-hero-live { flex: none; padding: 0 4px; border-radius: 4px; background: #f4212e; color: #fff; font-size: 12px; line-height: 16px;
               font-weight: 800; letter-spacing: .02em; }
.x-hero-live.is-saved { background: rgba(255, 255, 255, .2); font-weight: 700; letter-spacing: 0; }
.x-hero-t { margin-top: 4px; font-size: 23px; line-height: 28px; font-weight: 800; color: #fff; overflow-wrap: anywhere; }
.x-hero-s { margin-top: 2px; font-size: 13px; line-height: 16px; color: #c4cfd6; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.x-hero:hover .x-hero-media.is-pic { filter: brightness(1.08); }
.x-hero:focus-visible { outline-offset: -2px; }

/* ── profile header ──────────────────────────────────────────────────────── */
.x-pf { border-bottom: 1px solid var(--line); }
.x-pf-banner { aspect-ratio: 3 / 1; max-height: 200px; width: 100%; background: var(--line2); position: relative; overflow: hidden; }
.x-pf-banner > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.x-pf-row { display: flex; justify-content: flex-end; align-items: flex-start; gap: 8px; padding: 12px 16px 0; min-height: 76px; position: relative; }
.x-pf-av { position: absolute; left: 16px; top: 0; transform: translateY(-50%); --s: 134px; border: 4px solid var(--bg);
           box-sizing: content-box; }
.x-pf-av.x-av-bot, .x-pf-av.x-av-bot::after { box-shadow: none; }
.x-pf-c { padding: 4px 16px 16px; }
.x-pf-name { display: flex; align-items: center; gap: 4px; font-size: 20px; line-height: 24px; font-weight: 800; margin-top: 4px; }
.x-pf-name .x-auto .x-i { width: 20px; height: 20px; }
.x-pf-handle { color: var(--mute); }
.x-pf-bio { margin-top: 12px; overflow-wrap: anywhere; }
.x-pf-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 12px; color: var(--mute); }
.x-pf-meta > span, .x-pf-meta > a { display: inline-flex; align-items: center; gap: 4px; min-width: 0; }
.x-pf-meta a { color: var(--blue); }
.x-pf-meta a:hover { text-decoration: underline; }
.x-pf-meta .x-i { width: 18.75px; height: 18.75px; color: var(--mute); }
.x-pf .x-stats { margin-top: 12px; }

/* ── notifications ───────────────────────────────────────────────────────── */
.x-nrow { display: flex; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); transition: background-color .2s; }
.x-nrow:hover { background: var(--hover); }
.x-nrow-ic { width: 40px; flex: none; display: flex; justify-content: flex-end; color: var(--tone, var(--blue)); }
.x-nrow-ic .x-i { width: 30px; height: 30px; stroke-width: 2; }
.x-nrow-ic .x-i .f { fill: currentColor; }
.x-nrow-c { flex: 1; min-width: 0; }
.x-nrow-avs { display: flex; align-items: center; gap: 8px; }
.x-nrow-avs .x-av { --s: 32px; }
.x-nrow-avs .x-time { margin-left: auto; color: var(--mute); font-size: 13px; }
.x-nrow-t { margin-top: 12px; overflow-wrap: anywhere; }
.x-nrow-t a { font-weight: 700; }
.x-nrow-t a:hover { text-decoration: underline; }
.x-nrow-q { margin-top: 12px; color: var(--mute); overflow-wrap: anywhere; }

/* ── settings two-pane ───────────────────────────────────────────────────── */
.x-set { display: grid; grid-template-columns: 390px minmax(0, 1fr); min-height: 100vh; }
.x-set-nav { border-right: 1px solid var(--line); }
.x-set-nav h2 { font-size: 20px; line-height: 24px; font-weight: 800; padding: 14px 16px; }
.x-set-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; transition: background-color .2s; border-right: 2px solid transparent; }
.x-set-item:hover { background: var(--hover); }
.x-set-item > span { flex: 1; min-width: 0; }
.x-set-item small { display: block; color: var(--mute); font-size: 13px; line-height: 16px; }
.x-set-item::after { content: ""; width: 8px; height: 8px; border: solid var(--mute); border-width: 2px 2px 0 0; transform: rotate(45deg); flex: none; margin-right: 4px; }
.x-set-item[aria-current="true"] { background: var(--hover); border-right-color: var(--blue); }
.x-set-pane { min-width: 0; }
.x-set-sec { border-bottom: 1px solid var(--line); padding: 4px 0 12px; scroll-margin-top: 60px; }
.x-set-sec > h2 { font-size: 20px; line-height: 24px; font-weight: 800; padding: 12px 16px 4px; }
.x-set-p { padding: 4px 16px 8px; color: var(--mute); }
.x-set-p b { color: var(--fg); }

/* ── Premium-style tier cards ────────────────────────────────────────────── */
.x-tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; padding: 12px 16px; }
.x-tier { border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.x-tier.is-on { border: 2px solid var(--blue); padding: 19px; }
.x-tier-name { font-size: 20px; line-height: 24px; font-weight: 800; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.x-tier-price { font-size: 40px; line-height: 44px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.x-tier-price small { font-size: 15px; line-height: 20px; font-weight: 400; color: var(--mute); letter-spacing: 0; margin-left: 4px; }
.x-tier-sub { color: var(--mute); font-size: 14px; line-height: 18px; }
.x-tier .x-checks { font-size: 14px; line-height: 18px; flex: 1; }

/* ── right column ────────────────────────────────────────────────────────── */
.x-side { width: 350px; flex: none; margin-left: 30px; position: sticky; top: 0; height: 100vh; overflow-y: auto;
          scrollbar-width: none; padding-bottom: 64px; }
.x-side::-webkit-scrollbar { display: none; }
.x-search { position: sticky; top: 0; z-index: 3; background: var(--bg); padding: 6px 0 12px; }
.x-search label { display: flex; align-items: center; gap: 4px; height: 42px; padding: 0 16px 0 12px; border-radius: 9999px; background: var(--input);
                  border: 1px solid transparent; color: var(--mute); cursor: text; }
.x-search label:focus-within { background: var(--bg); border-color: var(--blue); color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.x-search .x-i { width: 18.75px; height: 18.75px; margin: 0 8px 0 4px; }
.x-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--fg); font-size: 15px; }
.x-search input::placeholder { color: var(--mute); }
.x-search input::-webkit-search-cancel-button { display: none; }
.x-box { border: 1px solid var(--line); border-radius: 16px; margin-bottom: 16px; overflow: hidden; }
.x-box > h2 { font-size: 20px; line-height: 24px; font-weight: 800; padding: 12px 16px; }
.x-box-p { padding: 0 16px 12px; }
.x-box-p p + p { margin-top: 4px; }
.x-box-p .x-btn { margin-top: 12px; }
.x-box-more { display: block; padding: 16px; color: var(--blue); transition: background-color .2s; }
.x-box-more:hover { background: var(--hover); }
.x-box .x-cell { padding: 12px 16px; }
/* a right-column box with nothing to show: X's small empty state */
.x-side-empty { padding: 4px 16px 16px; }
.x-side-empty b { display: block; font-size: 17px; line-height: 20px; font-weight: 800; overflow-wrap: anywhere; }
.x-side-empty p { margin-top: 4px; color: var(--mute); font-size: 14px; line-height: 18px; }
.x-side-empty .x-btn { margin-top: 12px; }
.x-foot { padding: 0 16px; font-size: 13px; line-height: 16px; color: var(--mute); display: flex; flex-wrap: wrap; gap: 2px 12px; }
.x-foot a:hover { text-decoration: underline; }
.x-foot .x-dry { color: var(--fg); }

/* ── more X pieces: shared so pages stop rebuilding them ──────────────────── */
/* X's outline circle buttons beside Follow / Edit profile */
.x-iconbtn.is-outline { width: 36px; height: 36px; border: 1px solid var(--line2); }
.x-iconbtn.is-outline:hover { background: var(--hover2); }
.x-iconbtn.is-outline .x-i { width: 20px; height: 20px; }

/* X's search clear button: a small blue disc with a white ×, only while there is text */
.x-search-x { width: 22px; height: 22px; margin-right: -6px; border-radius: 9999px; background: var(--blue); color: #fff;
              display: inline-grid; place-items: center; flex: none; }
.x-search .x-search-x .x-i { width: 12px; height: 12px; margin: 0; stroke-width: 3; }

/* an asset's picture: X's rounded square for organisations, lettered with the ticker */
.x-av.x-tok { border-radius: calc(var(--s) * .2); font-weight: 800; letter-spacing: -.02em; }
.x-av.x-tok.is-round { border-radius: 9999px; }

/* unread notifications get X's blue tint; j/k marks the post you're on */
.x-nrow.is-new { background: rgba(29, 155, 240, .06); }
.x-nrow.is-new:hover { background: rgba(29, 155, 240, .1); }
.x-post.is-kb, .x-nrow.is-kb { background: var(--hover); }
.x-post.is-kb:focus-visible, .x-nrow.is-kb:focus-visible { outline: 2px solid var(--ring); outline-offset: -2px; }

/* X's radio (a ring, solid blue with a white tick when picked) and checkbox */
.x-radio, .x-check { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; margin: 0; flex: none; display: inline-grid;
                     place-items: center; border: 2px solid var(--mute); cursor: pointer; transition: background-color .2s, border-color .2s; }
.x-radio { border-radius: 9999px; }
.x-check { border-radius: 4px; }
.x-radio:checked, .x-check:checked { border-color: var(--blue); background: var(--blue); }
.x-radio:checked::after, .x-check:checked::after { content: ""; width: 5px; height: 9px; border: solid #fff; border-width: 0 2.4px 2.4px 0;
                                                   transform: translateY(-1px) rotate(45deg); }
.x-radio:focus-visible, .x-check:focus-visible { outline-offset: 2px; }
/* X's settings row: icon · title over a grey line · control or chevron */
.x-set-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; min-width: 0; transition: background-color .2s; }
a.x-set-row:hover, label.x-set-row:hover, .x-set-row[data-href]:hover { background: var(--hover); cursor: pointer; }
.x-set-row > .x-i { width: 18.75px; height: 18.75px; color: var(--mute); flex: none; }
.x-set-row-m { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.x-set-row-m > b { display: block; font-weight: 400; }
.x-set-row-m > small { display: block; color: var(--mute); font-size: 13px; line-height: 16px; margin-top: 2px; }

/* an example command as a quoted post (X.cmdQuote) */
.x-cmdq-row { display: flex; align-items: center; gap: 12px; }
.x-cmdq-m { flex: 1; min-width: 0; }
.x-cmdq-h { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; line-height: 20px; color: var(--mute); min-width: 0; }
.x-cmdq-av { display: inline-flex; flex: none; }
.x-cmdq-h .x-av { --s: 20px; margin-right: 2px; }
.x-cmdq-h b { color: var(--fg); overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.x-cmdq-h .x-pill { margin-left: 4px; }
.x-cmdq-t { margin-top: 4px; overflow-wrap: anywhere; }
.x-cmdq-why { margin-top: 2px; color: var(--mute); font-size: 14px; line-height: 18px; }
.x-cmdq-b { flex: none; display: flex; align-items: center; gap: 2px; }
.x-cmdq-b .x-iconbtn { width: 32px; height: 32px; color: var(--mute); }
.x-cmdq-b .x-iconbtn:hover { color: var(--blue); background: var(--blue-bg); }
.x-cmdq-b .x-iconbtn .x-i { width: 18px; height: 18px; }

/* X's "Something went wrong. Try reloading." */
.x-err { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 40px 32px; text-align: center;
         color: var(--mute); border-bottom: 1px solid var(--line); }
.x-err-why { font-size: 13px; line-height: 16px; max-width: 360px; }

/* X's small confirm dialog ("Discard post?") */
.x-layer.x-alert-layer { align-items: center; padding: 16px; }
.x-alert { width: 320px; max-width: 100%; background: var(--bg); border-radius: 16px; padding: 32px; }
.x-alert h2 { font-size: 20px; line-height: 24px; font-weight: 700; overflow-wrap: anywhere; }
.x-alert p { color: var(--mute); margin-top: 8px; overflow-wrap: anywhere; }
.x-alert .x-btn { margin-top: 12px; min-height: 44px; font-size: 15px; }
.x-alert .x-btn:first-of-type { margin-top: 24px; }
.x-btn-red { background: var(--red); color: #fff; }
.x-btn-red:hover { background: #dc1d2a; }

/* Display: "Customize your view" */
.x-disp { padding: 0 16px 8px; }
.x-disp > h2 { text-align: center; font-size: 23px; line-height: 28px; font-weight: 800; }
.x-disp-p { text-align: center; color: var(--mute); margin-top: 8px; }
.x-disp-prev { display: flex; gap: 12px; margin: 20px 0 4px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 16px; }
.x-disp > h3 { font-size: 13px; line-height: 16px; font-weight: 700; color: var(--mute); margin: 20px 0 4px; }
.x-disp-f { display: flex; justify-content: center; margin-top: 28px; }
.x-disp-f .x-btn { min-height: 40px; padding: 0 24px; }

/* Keyboard shortcuts */
.x-keys { padding-bottom: 8px; }
.x-keys h3 { font-size: 17px; line-height: 20px; font-weight: 800; padding: 16px 0 4px; }
.x-keys dl > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0;
                   border-bottom: 1px solid var(--line); }
.x-keys dd { display: inline-flex; align-items: center; gap: 4px; flex: none; font-size: 13px; }
.x-keys kbd { display: inline-block; min-width: 24px; padding: 2px 8px; border-radius: 4px; background: var(--input); color: var(--fg);
              font: 700 13px/18px var(--font); text-align: center; }

/* "Try a command", docked bottom right where X keeps its chat. Not a chat: each try shows the
   command, how the bot reads it ("would reply"), and the one real action — Post on X. Desktop only. */
.x-dock { position: fixed; z-index: 28; right: 20px; bottom: 0; width: 400px; max-width: calc(100vw - 40px); background: var(--bg);
          border-radius: 16px 16px 0 0; box-shadow: var(--menu-shadow); display: flex; flex-direction: column; }
.x-dock-h { display: flex; align-items: center; gap: 4px; height: 53px; padding: 0 8px 0 16px; flex: none; }
.x-dock-t { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; height: 100%; text-align: left; }
.x-dock-t b { font-size: 20px; line-height: 24px; font-weight: 800; }
.x-dock-t .x-av { --s: 24px; }
.x-dock.is-open .x-dock-t > span { display: none; }
.x-dock-tog .x-i { transition: transform .2s; }
.x-dock.is-open .x-dock-tog .x-i { transform: rotate(180deg); }
.x-dock-b { display: flex; flex-direction: column; height: min(500px, calc(100vh - 120px)); border-top: 1px solid var(--line); }
.x-dock-who { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); flex: none;
              transition: background-color .2s; min-width: 0; }
.x-dock-who:hover { background: var(--hover); }
.x-dock-who > span { min-width: 0; }
.x-dock-who b { display: flex; align-items: center; gap: 4px; }
.x-dock-who small { display: block; color: var(--mute); font-size: 13px; line-height: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.x-dock-log { flex: 1; min-height: 0; overflow-y: auto; padding: 0; display: flex; flex-direction: column;
              overscroll-behavior: contain; }
.x-dock-empty { padding: 20px 16px; }
.x-dock-empty h3 { font-size: 20px; line-height: 24px; font-weight: 800; overflow-wrap: anywhere; }
.x-dock-empty p { margin: 6px 0 16px; color: var(--mute); }
.x-dock-chips { flex-wrap: wrap; overflow: visible; }
.x-try { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.x-try-k { font-size: 13px; line-height: 16px; color: var(--mute); }
.x-try-cmd { margin-top: 2px; font-weight: 700; overflow-wrap: anywhere; white-space: pre-wrap; }
.x-try-cmd .m, .x-try-cmd .c { color: var(--blue); }
.x-try .x-would-post, .x-try .x-would-quiet { margin-top: 10px; }
.x-try-wait { margin-top: 10px; color: var(--mute); font-size: 14px; line-height: 18px; }
.x-try-f { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.x-dock-in { padding: 4px 12px; border-top: 1px solid var(--line); flex: none; }
.x-dock-in label { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 4px 0 16px; margin: 4px 0; border-radius: 16px;
                   background: var(--input); cursor: text; }
.x-dock-in input { flex: 1; min-width: 0; height: 40px; border: 0; outline: 0; background: transparent; color: var(--fg); font-size: 15px; }
.x-dock-in input:focus-visible { outline: none; }
.x-dock-in input::placeholder { color: var(--mute); }
.x-dock-send { width: 34px; height: 34px; border-radius: 9999px; display: inline-grid; place-items: center; color: var(--blue); flex: none;
               transition: background-color .2s, opacity .2s; }
.x-dock-send:hover { background: var(--blue-bg); }
.x-dock-send[disabled] { opacity: .5; cursor: default; background: none; }
.x-dock-send .x-i { width: 20px; height: 20px; }
.x-dock-f { padding: 0 16px 10px; color: var(--mute); font-size: 12px; line-height: 16px; flex: none; }
/* Signed out on the wallet, X's blue sign-in bar owns the bottom of the screen. */
body.wl-anon .x-dock { display: none; }

/* ── responsive: icon rail ≤1280, no right column ≤1020, tab bar ≤700 ────── */
@media (max-width: 1280px) {
  .x-rail { width: 88px; }
  .x-rail-in { align-items: center; padding: 0 4px; }
  .x-nav { align-items: center; }
  .x-nav-a { gap: 0; }
  .x-nav-a .x-nav-t { display: none; }
  .x-post-btn { width: 52px; height: 52px; padding: 0; }
  .x-post-btn-t { display: none; }
  .x-post-btn .x-i { display: block; }
  .x-acct { width: auto; padding: 12px; }
  .x-acct-t, .x-acct > .x-i { display: none; }
}
@media (max-width: 1100px) { .x-side { width: 290px; margin-left: 24px; } }
@media (max-width: 1020px) {
  .x-side, .x-dock { display: none; }
  .x-app.x-wide .x-main { width: 600px; }
  .x-set { grid-template-columns: minmax(0, 1fr); }
  .x-set-nav { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 700px) {
  .x-app { display: block; }
  .x-main, .x-app.x-wide .x-main { width: 100%; border: 0; padding-bottom: calc(53px + env(safe-area-inset-bottom)); }
  .x-rail { position: fixed; top: auto; bottom: 0; left: 0; right: 0; width: 100%; height: auto; display: block;
            background: var(--bg); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .x-rail-in { flex-direction: row; height: 53px; padding: 0; overflow: visible; }
  .x-logo, .x-post-btn, .x-acct, .x-nav-more { display: none !important; }
  .x-nav { flex-direction: row; justify-content: space-around; width: 100%; margin: 0; }
  .x-nav-a { margin: 0; padding: 10px 12px; }
  .x-nav-a:hover { background: transparent; }
  .x-fab { display: flex; position: fixed; z-index: 31; right: 16px; bottom: calc(53px + 16px + env(safe-area-inset-bottom));
           width: 56px; height: 56px; border-radius: 9999px; align-items: center; justify-content: center; background: var(--blue); color: #fff;
           box-shadow: rgba(101, 119, 134, .2) 0 0 8px, rgba(101, 119, 134, .25) 0 1px 3px 1px; }
  .x-fab .x-i { width: 24px; height: 24px; stroke-width: 2.2; }
  .x-top-me { display: inline-flex; margin-right: 16px; }
  .x-top-row.x-top-phone { display: flex; }
  .x-top-me .x-av { --s: 32px; }
  .x-top-back { margin-right: 16px; }
  .x-layer { padding: 0; }
  .x-modal, .x-modal.is-sm { width: 100%; min-height: 100%; max-height: none; border-radius: 0; }
  .x-toast { bottom: calc(53px + 16px + env(safe-area-inset-bottom)); }
  .x-newpill { top: 112px; }
  .x-statgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .x-statgrid > div:nth-child(2) { border-right: 0; }
  .x-statgrid > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .x-ta-bd, .x-ta textarea { font-size: 17px; line-height: 22px; }
  .x-hero-media { height: 180px; }
  .x-hero-media.is-pic { height: 240px; }
  .x-hero-media.is-pic .x-hero-chart { top: 48px; bottom: 96px; }
  .x-hero-t { font-size: 20px; line-height: 24px; }
  /* Fees is in the drawer on a phone, like X's Premium; the tab bar keeps five */
  .x-nav-a[data-k="fees"] { display: none; }
  .x-pf-av { --s: 80px; }
  .x-pf-row { min-height: 52px; }
  .x-empty { padding: 32px 20px; }
  .x-empty h2 { font-size: 26px; line-height: 30px; }
}
@media (max-width: 500px) {
  .x-ref { flex-wrap: wrap; }
  .x-ref-t { flex-basis: calc(100% - 52px - 46px); }
  .x-ref-b { order: 3; margin-left: 52px; }
  .x-mgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .x-theme.is-big { grid-template-columns: minmax(0, 1fr); }
  .x-cmdq-row { flex-wrap: wrap; }
  .x-cmdq-b { width: 100%; justify-content: flex-end; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important;
                           transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* the slim test-mode line (replaces the big Community Note while dry-run / replies are off) */
.x-testbar { display: flex; align-items: center; gap: 8px; margin: 8px 16px; padding: 7px 12px; border: 1px solid var(--line);
  border-radius: 999px; font-size: 13px; line-height: 16px; color: var(--mute); background: var(--bg); }
.x-testbar-dot { width: 7px; height: 7px; border-radius: 50%; background: #ffd400; flex: none; }
.x-testbar-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.x-testbar a { color: var(--blue); white-space: nowrap; }
.x-testbar a:hover { text-decoration: underline; }

/* real X profile pictures and banners on a signed-in profile */
.x-pf-banner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
img.x-pf-img { object-fit: cover; background: var(--line2); }

/* phone bar: room for Memes — Fees moves to the page links on phones */
@media (max-width: 700px) { .x-nav-a[data-k="fees"] { display: none; } }

/* home feed: inline "Trending memes" module (X's inline "Who to follow" shape) */
.hm-mod { border-bottom: 1px solid var(--line); padding: 12px 16px 4px; }
.hm-mod h2 { font-size: 20px; line-height: 24px; font-weight: 800; margin: 0 0 4px; }
.hm-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; color: inherit; text-decoration: none; }
.hm-row:hover { background: var(--hover); }
.hm-ic { width: 40px; height: 40px; border-radius: 50%; flex: none; object-fit: cover; background: var(--line2); display: grid; place-items: center; font-weight: 800; font-size: 12px; color: #fff; overflow: hidden; }
.hm-m { flex: 1; min-width: 0; }
.hm-m b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-m span { color: var(--mute); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.hm-ch { font-weight: 700; font-size: 15px; flex: none; }
.hm-up { color: var(--green, #00ba7c); } .hm-dn { color: var(--red, #f4212e); }
.hm-more { display: block; padding: 12px 0; color: var(--blue); text-decoration: none; }
.hm-more:hover { text-decoration: underline; }
