/* =========================================================================
   Social Tycoon — X / Twitter-style consumer theme ("Lights out" dark)
   ========================================================================= */
:root {
  color-scheme: dark;
  --tw-bg: #000; --tw-text: #e7e9ea; --tw-muted: #71767b; --tw-line: #2f3336;
  --tw-blue: #1d9bf0; --tw-blue-hover: #1a8cd8; --tw-pink: #f91880; --tw-green: #00ba7c;
  --tw-red: #f4212e; --tw-yellow: #ffd400;
  --tw-card: #16181c; --tw-input: #202327; --tw-outline: #536471; --tw-thread: #333639;
  --tw-row-hover: rgba(231, 233, 234, .03); --tw-btn-hover: rgba(239, 243, 244, .1);
  --tw-light: #eff3f4; --tw-light-hover: #d7dbdc; --tw-ink: #0f1419;
  --tw-menu-shadow: rgba(255, 255, 255, .2) 0 0 15px, rgba(255, 255, 255, .15) 0 0 3px 1px;
  --tw-head-bg: rgba(0, 0, 0, .65); --tw-bar-bg: rgba(0, 0, 0, .92); --tw-menu-hover: rgba(231, 233, 234, .06);
  --tw-field-line: #333639; --tw-danger-line: #67070f; --tw-alert-text: #ff6b76; --tw-amber-text: var(--tw-yellow); --tw-green-text: var(--tw-green); --tw-blue-text: var(--tw-blue);
  --tw-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --tw-tabbar: 53px;

  /* Shared views (settings, ads, dashboard…) read these */
  --st-bg: #000; --st-surface: #000; --st-surface-2: #16181c; --st-hover: rgba(231, 233, 234, .03);
  --st-text: #e7e9ea; --st-muted: #71767b; --st-border: #2f3336;
  --st-primary: #1d9bf0; --st-on-primary: #fff; --st-danger: #f4212e; --st-success: #00ba7c;
  --st-radius: 4px; --st-radius-lg: 16px; --st-pill: 9999px;
  --st-font: var(--tw-font); --st-shadow: none; --st-top: 0px;
}
/* X's light "Default" background: <html data-theme="light">, or the device's light setting when the member
   follows the device (data-appearance="device"). The base above is "Lights out". */
:root[data-theme=light] {
  color-scheme: light;
  --tw-bg: #fff; --tw-text: #0f1419; --tw-muted: #536471; --tw-line: #eff3f4;
  --tw-card: #f7f9f9; --tw-input: #eff3f4; --tw-outline: #cfd9de; --tw-thread: #cfd9de;
  --tw-row-hover: rgba(15, 20, 25, .03); --tw-btn-hover: rgba(15, 20, 25, .1);
  --tw-light: #0f1419; --tw-light-hover: #272c30; --tw-ink: #fff;
  --tw-menu-shadow: rgba(101, 119, 134, .2) 0 0 15px, rgba(101, 119, 134, .15) 0 0 3px 1px;
  --tw-head-bg: rgba(255, 255, 255, .85); --tw-bar-bg: rgba(255, 255, 255, .92); --tw-menu-hover: rgba(15, 20, 25, .03);
  --tw-field-line: #cfd9de; --tw-danger-line: #fdc9ce; --tw-alert-text: #f4212e; --tw-amber-text: #a37a00; --tw-green-text: #00875c; --tw-blue-text: #1570b0;
  --st-bg: #fff; --st-surface: #fff; --st-surface-2: #f7f9f9; --st-hover: rgba(15, 20, 25, .03);
  --st-text: #0f1419; --st-muted: #536471; --st-border: #eff3f4;
}
@media (prefers-color-scheme: light) {
  :root[data-appearance=device] {
    color-scheme: light;
    --tw-bg: #fff; --tw-text: #0f1419; --tw-muted: #536471; --tw-line: #eff3f4;
    --tw-card: #f7f9f9; --tw-input: #eff3f4; --tw-outline: #cfd9de; --tw-thread: #cfd9de;
    --tw-row-hover: rgba(15, 20, 25, .03); --tw-btn-hover: rgba(15, 20, 25, .1);
    --tw-light: #0f1419; --tw-light-hover: #272c30; --tw-ink: #fff;
    --tw-menu-shadow: rgba(101, 119, 134, .2) 0 0 15px, rgba(101, 119, 134, .15) 0 0 3px 1px;
    --tw-head-bg: rgba(255, 255, 255, .85); --tw-bar-bg: rgba(255, 255, 255, .92); --tw-menu-hover: rgba(15, 20, 25, .03);
    --tw-field-line: #cfd9de; --tw-danger-line: #fdc9ce; --tw-alert-text: #f4212e; --tw-amber-text: #a37a00; --tw-green-text: #00875c; --tw-blue-text: #1570b0;
    --st-bg: #fff; --st-surface: #fff; --st-surface-2: #f7f9f9; --st-hover: rgba(15, 20, 25, .03);
    --st-text: #0f1419; --st-muted: #536471; --st-border: #eff3f4;
  }
}
:root[data-theme=light] .tw-dialog::backdrop, :root[data-theme=light] .tw-drawer::backdrop { background: rgba(0, 0, 0, .4); }
@media (prefers-color-scheme: light) {
  :root[data-appearance=device] .tw-dialog::backdrop, :root[data-appearance=device] .tw-drawer::backdrop { background: rgba(0, 0, 0, .4); }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--tw-bg); color: var(--tw-text); font: 15px/1.3125 var(--tw-font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img, video { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--tw-blue); outline-offset: 1px; }
::selection { background: rgba(29, 155, 240, .45); }
.tw-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Icon boxes (icon() emits class="w-5 h-5" by default in shared views) */
svg[class*="w-"], svg[class*="h-"] { flex: none; }
.w-3 { width: 12px; } .h-3 { height: 12px; } .w-4 { width: 16px; } .h-4 { height: 16px; } .w-5 { width: 20px; } .h-5 { height: 20px; }
.w-6 { width: 24px; } .h-6 { height: 24px; } .w-8 { width: 32px; } .h-8 { height: 32px; }
.tw-ic-12 { width: 12px; height: 12px; } .tw-ic-14 { width: 14px; height: 14px; } .tw-ic-16 { width: 16px; height: 16px; }
.tw-ic-18 { width: 18.75px; height: 18.75px; } .tw-ic-20 { width: 20px; height: 20px; } .tw-ic-32 { width: 32px; height: 32px; }
.tw-ic-nav { width: 26.25px; height: 26.25px; } .tw-ic-act, .tw-ic-menu { width: 18.75px; height: 18.75px; }
.tw-ic, .tw-ic-12, .tw-ic-14, .tw-ic-16, .tw-ic-18, .tw-ic-20, .tw-ic-32, .tw-ic-nav, .tw-ic-act, .tw-ic-menu { flex: none; }

/* Avatars + names */
.tw-avatar, .avatar { display: block; flex: none; border-radius: 50%; object-fit: cover; background: var(--tw-thread); }
.avatar-initials { display: inline-flex; }
.tw-verified { flex: none; margin-left: 2px; }
.tw-name { display: inline-flex; align-items: center; min-width: 0; max-width: 100%; color: var(--tw-text); font-weight: 700; }
.tw-name-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.tw-name:hover .tw-name-text { text-decoration: underline; }
.tw-handle { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--tw-muted); }
.tw-sep, .tw-time { flex: none; color: var(--tw-muted); white-space: nowrap; }
a.tw-time:hover { text-decoration: underline; }
.tw-lock { display: inline-flex; flex: none; color: var(--tw-text); }
.tw-profile-name .tw-lock, .tw-head-title .tw-lock { margin-left: 4px; }
.tw-follows-you { flex: none; padding: 0 4px; border-radius: 4px; background: var(--tw-input); color: var(--tw-muted); font-size: 11px; line-height: 16px; }

/* ---------------------------------------------------------------------------
   Frame: left nav | center column | sidebar
   --------------------------------------------------------------------------- */
.tw-app { display: flex; justify-content: center; min-height: 100vh; min-height: 100dvh; }
.tw-nav { flex: none; width: 275px; }
.tw-nav-inner { position: sticky; top: 0; display: flex; flex-direction: column; align-items: flex-start; width: 275px; height: 100vh; height: 100dvh;
  padding: 0 12px 0 8px; overflow-y: auto; scrollbar-width: none; }
.tw-nav-inner::-webkit-scrollbar { display: none; }
/* An open More / account menu pops out over the timeline (like X) instead of being clipped by the scrolling
   nav column — longer labels ("Deconectează-te de la @…") need the room — and above the demo switcher. */
.tw-nav-inner:has(.tw-menu:not([hidden])) { z-index: 9999; overflow: visible; }
.tw-logo { display: grid; place-items: center; width: 52px; height: 52px; margin: 2px 0; border-radius: 50%; transition: background-color .2s; }
.tw-logo:hover { background: var(--tw-btn-hover); }
.tw-logo-mark { color: var(--tw-text); font-size: 31px; font-weight: 900; line-height: 1; letter-spacing: -.05em; }
.tw-nav-links { display: flex; flex-direction: column; align-items: flex-start; width: 100%; }
.tw-nav-link { display: inline-flex; align-items: center; gap: 20px; margin: 4px 0; padding: 12px; border: 0; border-radius: 9999px; background: none;
  color: var(--tw-text); font-size: 20px; line-height: 24px; transition: background-color .2s; }
.tw-nav-link:hover { background: var(--tw-btn-hover); }
.tw-nav-link.is-active { font-weight: 700; }
.tw-nav-ic { position: relative; display: flex; }
.tw-nav-link { max-width: 100%; }
.tw-nav-label { min-width: 0; padding-right: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tw-badge { position: absolute; top: -5px; right: -7px; min-width: 18px; height: 18px; padding: 0 5px; border: 1px solid var(--tw-bg); border-radius: 9999px;
  background: var(--tw-blue); color: #fff; font-size: 11px; font-weight: 700; line-height: 16px; text-align: center; }
.tw-nav-more { position: relative; }
.tw-nav-post { display: flex; align-items: center; justify-content: center; width: 90%; max-width: 233px; height: 52px; margin: 16px 0 4px; border: 0; border-radius: 9999px;
  background: var(--tw-blue); color: #fff; font-size: 17px; font-weight: 700; box-shadow: rgba(0, 0, 0, .08) 0 8px 28px; transition: background-color .2s; }
.tw-nav-post:hover { background: var(--tw-blue-hover); }
.tw-nav-post-ic { display: none; width: 24px; height: 24px; }
.tw-account { position: relative; width: 100%; margin: auto 0 12px; padding-top: 12px; }
.tw-account-btn { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; border: 0; border-radius: 9999px; background: none; text-align: left;
  color: var(--tw-text); transition: background-color .2s; }
.tw-account-btn:hover { background: var(--tw-btn-hover); }
.tw-account-id { display: flex; flex: 1; flex-direction: column; min-width: 0; line-height: 20px; }
.tw-account-name { display: flex; align-items: center; min-width: 0; font-weight: 700; }
.tw-account-handle { overflow: hidden; color: var(--tw-muted); text-overflow: ellipsis; white-space: nowrap; }
.tw-account-dots { width: 18.75px; height: 18.75px; flex: none; }

.tw-main { flex: none; width: 600px; max-width: 100%; min-height: 100vh; min-height: 100dvh; border-left: 1px solid var(--tw-line); border-right: 1px solid var(--tw-line); }
.tw-side { flex: none; width: 350px; margin: 0 10px 0 30px; }
.tw-tabbar, .tw-fab { display: none; }
.tw-side-inner { position: sticky; top: 0; max-height: 100vh; max-height: 100dvh; padding-bottom: 64px; overflow-y: auto; scrollbar-width: none; }
.tw-side-inner::-webkit-scrollbar { display: none; }
.tw-side-search { position: sticky; top: 0; z-index: 3; padding: 5px 0 11px; background: var(--tw-bg); }
.tw-side-foot { display: flex; flex-wrap: wrap; gap: 2px 12px; padding: 0 16px; color: var(--tw-muted); font-size: 13px; line-height: 16px; }
.tw-side-foot a:hover { text-decoration: underline; }

/* Search pill */
.tw-search { display: flex; align-items: center; height: 42px; margin: 0; padding: 0 16px 0 18px; border: 1px solid transparent; border-radius: 9999px; background: var(--tw-input); }
.tw-search:focus-within { border-color: var(--tw-blue); background: var(--tw-bg); }
.tw-search-ic { width: 16px; height: 16px; flex: none; color: var(--tw-muted); }
.tw-search:focus-within .tw-search-ic { color: var(--tw-blue); }
.tw-search-input { flex: 1; min-width: 0; height: 100%; padding: 0 12px; border: 0; outline: 0; background: none; color: var(--tw-text); font-size: 15px; }
.tw-search-input::placeholder { color: var(--tw-muted); }
.tw-search-input::-webkit-search-cancel-button { filter: invert(.6); }

/* Sidebar cards */
.tw-card { margin-bottom: 16px; overflow: hidden; border: 1px solid var(--tw-line); border-radius: 16px; }
.tw-card-title, .tw-section-title { padding: 12px 16px; font-size: 20px; font-weight: 800; line-height: 24px; }
.tw-card-more { display: block; padding: 16px; color: var(--tw-blue); transition: background-color .2s; }
.tw-card-more:hover { background: var(--tw-row-hover); }
.tw-trend { display: flex; flex-direction: column; padding: 12px 16px; line-height: 20px; transition: background-color .2s; }
.tw-trend:hover { background: var(--tw-row-hover); }
.tw-trend-meta, .tw-trend-count { color: var(--tw-muted); font-size: 13px; line-height: 16px; }
.tw-trend-name { margin: 2px 0; font-weight: 700; overflow-wrap: anywhere; }

/* ---------------------------------------------------------------------------
   Column header + tabs
   --------------------------------------------------------------------------- */
.tw-head { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--tw-line); background: var(--tw-head-bg);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.tw-head-row { display: flex; align-items: center; gap: 12px; min-height: 53px; padding: 0 16px; }
.tw-back { margin: 0 20px 0 -8px; }
.tw-head-title { flex: 1; min-width: 0; }
.tw-head-title h1 { display: flex; align-items: center; min-width: 0; overflow: hidden; font-size: 20px; font-weight: 800; line-height: 24px; white-space: nowrap; }
.tw-head-title h1 .tw-name { font-weight: 800; }
.tw-head-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.tw-head-sub { overflow: hidden; color: var(--tw-muted); font-size: 13px; line-height: 16px; text-overflow: ellipsis; white-space: nowrap; }
.tw-head-av { display: none; flex: none; padding: 0; border: 0; border-radius: 50%; background: none; }
.tw-head-search { flex: 1; min-width: 0; padding: 5px 0; }
.tw-mtop { display: none; }
.tw-tabs { display: flex; overflow-x: auto; scrollbar-width: none; }
.tw-tabs::-webkit-scrollbar { display: none; }
.tw-tab { display: flex; flex: 1 0 auto; justify-content: center; min-width: 56px; height: 53px; padding: 0 16px; color: var(--tw-muted); font-weight: 500;
  transition: background-color .2s; }
.tw-tab:hover { background: var(--tw-btn-hover); }
.tw-tab span { position: relative; display: flex; align-items: center; height: 100%; white-space: nowrap; }
.tw-tab.is-active { color: var(--tw-text); font-weight: 700; }
.tw-tab.is-active span::after { content: ""; position: absolute; bottom: 0; left: 50%; width: max(100%, 56px); height: 4px; border-radius: 9999px;
  background: var(--tw-blue); transform: translateX(-50%); }

/* Icon buttons, pills */
.tw-icon-btn { display: inline-grid; flex: none; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: transparent;
  color: var(--tw-text); transition: background-color .2s, color .2s; }
.tw-icon-btn:hover { background: var(--tw-btn-hover); }
.tw-btn-round { width: 36px; height: 36px; border: 1px solid var(--tw-outline); }
.tw-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 0 16px; border: 1px solid transparent;
  border-radius: 9999px; background: none; font-size: 15px; font-weight: 700; line-height: 20px; white-space: nowrap; cursor: pointer;
  transition: background-color .2s, opacity .2s, border-color .2s, color .2s; }
.tw-btn:disabled { opacity: .5; cursor: default; }
.tw-btn-sm { min-height: 32px; font-size: 14px; }
.tw-btn-lg { min-height: 40px; font-size: 15px; }
.tw-btn-blue { background: var(--tw-blue); color: #fff; }
.tw-btn-blue:not(:disabled):hover { background: var(--tw-blue-hover); }
.tw-btn-light { background: var(--tw-light); color: var(--tw-ink); }
.tw-btn-light:not(:disabled):hover { background: var(--tw-light-hover); }
.tw-btn-outline { border-color: var(--tw-outline); color: var(--tw-text); }
.tw-btn-outline:not(:disabled):hover { background: var(--tw-btn-hover); }
.tw-btn-accent { color: var(--tw-blue); }
.tw-btn-accent:not(:disabled):hover { background: rgba(29, 155, 240, .1); }
.tw-btn-danger { background: var(--tw-red); color: #fff; }
.tw-btn-danger:hover { background: #dc1e29; }
.tw-btn-following { min-width: 102px; }
.tw-btn-following:hover, .tw-btn-following:focus-visible { border-color: var(--tw-danger-line); background: rgba(244, 33, 46, .1) !important; color: var(--tw-red); }
/* "Following" / "Unfollow" (and "Blocked" / "Unblock") share one grid cell: the pill keeps the width
   of the longer label in every language ("Urmărești" / "Nu mai urmări") instead of jumping on hover. */
.tw-btn-following, .tw-btn-swap { display: inline-grid; justify-items: center; }
.tw-lbl-on, .tw-lbl-hover { grid-area: 1 / 1; }
.tw-lbl-hover { visibility: hidden; }
button:hover > .tw-lbl-on, button:focus-visible > .tw-lbl-on { visibility: hidden; }
button:hover > .tw-lbl-hover, button:focus-visible > .tw-lbl-hover { visibility: visible; }
.tw-link-btn { margin-top: 16px; padding: 0; border: 0; background: none; color: var(--tw-blue); }
.tw-link-btn:hover { text-decoration: underline; }

/* Menus (data-menu panels) */
.tw-more-menu, .tw-act-menu { position: relative; display: flex; }
.tw-menu { position: absolute; top: 0; left: 0; z-index: 60; min-width: 240px; max-width: 360px; padding: 4px 0; overflow: hidden; border-radius: 16px;
  background: var(--tw-bg); box-shadow: var(--tw-menu-shadow); }
.tw-menu-right { right: 0; left: auto; }
.tw-menu-nav { top: auto; bottom: calc(100% + 4px); min-width: 280px; }
.tw-menu-account { top: auto; bottom: calc(100% + 8px); left: 0; min-width: 280px; }
.tw-menu-form { display: block; margin: 0; }
.tw-menu-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 16px; border: 0; background: none; color: var(--tw-text);
  font-size: 15px; font-weight: 700; line-height: 20px; text-align: left; white-space: nowrap; transition: background-color .2s; }
.tw-menu-item > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.tw-menu-item:hover { background: var(--tw-menu-hover); }
.tw-menu-item .tw-badge { position: static; }
.tw-menu-danger { color: var(--tw-red); }
.tw-menu-sep { height: 1px; margin: 4px 0; background: var(--tw-line); }

/* ---------------------------------------------------------------------------
   Posts
   --------------------------------------------------------------------------- */
.tw-post, .tw-reply { position: relative; display: block; padding: 12px 16px; border-bottom: 1px solid var(--tw-line); cursor: pointer; transition: background-color .2s; }
.tw-post:hover, .tw-reply:hover { background: var(--tw-row-hover); }
.tw-ctx { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: center; margin: -4px 0 4px; color: var(--tw-muted);
  font-size: 13px; font-weight: 700; line-height: 16px; }
.tw-ctx-ic { justify-self: end; width: 16px; height: 16px; }
.tw-ctx a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tw-ctx a:hover { text-decoration: underline; }
.tw-post-row { display: flex; gap: 12px; }
.tw-post-av { position: relative; flex: none; width: 40px; }
.tw-post-main { flex: 1; min-width: 0; }
.tw-post-head { display: flex; align-items: flex-start; gap: 4px; margin-bottom: 2px; line-height: 20px; }
.tw-post-id { display: flex; flex: 1; align-items: center; gap: 4px; min-width: 0; overflow: hidden; white-space: nowrap; }
.tw-post-id .tw-name { flex: 0 1 auto; }
.tw-post-id .tw-handle { flex: 0 10 auto; }
.tw-ad { flex: none; color: var(--tw-muted); }
.tw-more-btn { width: 34.75px; height: 34.75px; margin: -7px -8px -8px 0; color: var(--tw-muted); }
.tw-more-btn:hover { background: rgba(29, 155, 240, .1); color: var(--tw-blue); }
.tw-text { font-size: 15px; line-height: 20px; white-space: pre-wrap; overflow-wrap: anywhere; }
.tw-text a, .tw-user-bio a, .tw-profile-bio a, .tw-note-snippet a, .tw-show-more, .link { color: var(--tw-blue); }
.tw-text a:hover, .tw-user-bio a:hover, .tw-profile-bio a:hover, .tw-show-more:hover { text-decoration: underline; }
.tw-replying { color: var(--tw-muted); line-height: 20px; }
.tw-replying a { color: var(--tw-blue); }

/* Media */
.tw-media { position: relative; max-width: 100%; margin-top: 12px; overflow: hidden; border: 1px solid var(--tw-line); border-radius: 16px; background: var(--tw-card); }
.tw-media-el { display: block; width: 100%; height: 100%; object-fit: cover; }
.tw-media img { cursor: zoom-in; }
.tw-mute { position: absolute; right: 8px; bottom: 8px; display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 50%;
  background: rgba(0, 0, 0, .7); color: #fff; }
.tw-mute svg + svg, html[data-muted="0"] .tw-mute svg:first-child { display: none; }
html[data-muted="0"] .tw-mute svg + svg { display: block; }
.tw-quote { display: block; margin-top: 12px; overflow: hidden; border: 1px solid var(--tw-line); border-radius: 16px; transition: background-color .2s; }
.tw-quote:hover { background: var(--tw-row-hover); }
.tw-quote-head { display: flex; align-items: center; gap: 4px; padding: 12px 12px 0; overflow: hidden; line-height: 20px; white-space: nowrap; }
.tw-quote-head .tw-avatar { margin-right: 2px; }
.tw-quote-text { display: block; padding: 4px 12px 12px; line-height: 20px; white-space: pre-wrap; overflow-wrap: anywhere; }
.tw-quote-head + .tw-quote-media { margin-top: 12px; }
.tw-quote-media { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--tw-card); }
.tw-quote-media img { width: 100%; height: 100%; object-fit: cover; }
.tw-quote-missing { padding: 16px; background: var(--tw-card); color: var(--tw-muted); cursor: default; }
.tw-play { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 44px; height: 44px; border: 3px solid #fff; border-radius: 50%;
  background: var(--tw-blue); color: #fff; transform: translate(-50%, -50%); }
/* Promoted units (tw_ad): X's website card — media with the headline over it, "From site"
   and the call to action under it — carousels, video captions */
.tw-promo .tw-post-head { align-items: center; }
.tw-adcard { position: relative; display: block; margin-top: 12px; overflow: hidden; border: 1px solid var(--tw-line); border-radius: 16px; background: var(--tw-card); }
a.tw-adcard:hover .tw-adcard-title { text-decoration: underline; }
.tw-adcard-media { position: relative; display: block; width: 100%; max-height: 520px; overflow: hidden; background: #000; }
.tw-adcard-media .tw-media-el, [data-pv-media-wrap] > img, [data-pv-media-wrap] > video { display: block; width: 100%; height: 100%; max-height: 520px; object-fit: cover; }
.tw-adcard-title { position: absolute; bottom: 12px; left: 12px; max-width: calc(100% - 24px); padding: 0 4px; overflow: hidden; border-radius: 4px;
  background: rgba(0, 0, 0, .77); color: #fff; font-size: 13px; line-height: 20px; text-overflow: ellipsis; white-space: nowrap; }
.tw-adcard-caption { display: block; padding: 12px; border-top: 1px solid var(--tw-line); font-weight: 700; line-height: 20px; }
.tw-adcard-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.tw-adcard-bar[hidden], .tw-adcard-title[hidden], .tw-ad-cta[hidden], .tw-adcard-from:has([data-pv="display_url"]:empty) { display: none; }
.tw-adcard-from { min-width: 0; overflow: hidden; color: var(--tw-muted); font-size: 13px; line-height: 16px; text-overflow: ellipsis; white-space: nowrap; }
.tw-ad-cta { display: inline-flex; flex: none; align-items: center; min-height: 32px; margin-left: auto; padding: 0 16px; border-radius: 9999px; background: var(--tw-light);
  color: var(--tw-ink); font-size: 14px; font-weight: 700; white-space: nowrap; transition: background-color .2s; }
.tw-ad-cta:hover { background: var(--tw-light-hover); }
.tw-adcard-text { display: flex; flex-direction: column; gap: 2px; padding: 12px; line-height: 20px; }
.tw-adcard-text .tw-adcard-from { white-space: normal; }
.tw-adcard-desc { color: var(--tw-muted); }
.tw-carousel { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.tw-carousel::-webkit-scrollbar { display: none; }
.tw-carousel-card { flex: 0 0 min(260px, 78%); overflow: hidden; border: 1px solid var(--tw-line); border-radius: 16px; scroll-snap-align: start; }
.tw-carousel-media { display: block; aspect-ratio: 1; overflow: hidden; background: var(--tw-card); }
.tw-carousel-media .tw-media-el { width: 100%; height: 100%; object-fit: cover; }
.tw-carousel-title, .tw-carousel-from { display: block; overflow: hidden; padding: 0 12px; text-overflow: ellipsis; white-space: nowrap; }
.tw-carousel-title { padding-top: 8px; font-weight: 700; line-height: 20px; }
.tw-carousel-from { padding-bottom: 10px; color: var(--tw-muted); font-size: 13px; line-height: 16px; }
.tw-ad-form { margin-top: 12px; }
/* "Not interested" / "Report": ads/action.php answers a note that replaces the unit */
.tw-main [data-ad-hidden] { padding: 16px; border-bottom: 1px solid var(--tw-line); color: var(--tw-muted); line-height: 20px; }
/* Why this ad? · Report ad */
.tw-ad-dialog .tw-dialog-inner, .tw-tip .tw-dialog-inner { width: 440px; }
.tw-ad-why, .tw-ad-report, .tw-tip-body { display: block; margin: 0; padding: 0 20px 20px; }
.tw-ad-why-lead { margin-bottom: 12px; font-weight: 700; line-height: 20px; }
.tw-ad-why ul { margin: 0; padding-left: 20px; line-height: 20px; }
.tw-ad-why li + li { margin-top: 10px; }
.tw-radios { display: flex; flex-direction: column; }
.tw-radio { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; cursor: pointer; line-height: 20px; }
.tw-radio input { order: 2; flex: none; width: 20px; height: 20px; accent-color: var(--tw-blue); }
.tw-ad-dialog-foot { margin-top: 12px; }
.tw-ad-dialog-foot .tw-btn, .tw-tip-send { width: 100%; }
/* Tips */
.tw-tip-who { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.tw-tip-who > div { display: flex; flex-direction: column; min-width: 0; line-height: 20px; }
.tw-tip-lead { margin-bottom: 16px; color: var(--tw-muted); line-height: 20px; }
.tw-notice { display: flex; flex-direction: column; gap: 2px; margin-bottom: 16px; padding: 12px; border: 1px solid rgba(29, 155, 240, .5); border-radius: 8px;
  background: rgba(29, 155, 240, .1); line-height: 20px; }
.tw-notice span { color: var(--tw-muted); }
.tw-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.tw-chip { min-height: 32px; padding: 0 16px; border: 1px solid var(--tw-outline); border-radius: 9999px; background: transparent; color: var(--tw-text); font-weight: 700;
  transition: background-color .2s, border-color .2s, color .2s; }
.tw-chip:hover { background: var(--tw-btn-hover); }
.tw-chip[aria-pressed="true"] { border-color: var(--tw-blue); background: rgba(29, 155, 240, .1); color: var(--tw-blue-text); }
.tw-tip-note { margin: 12px 0 16px; color: var(--tw-muted); font-size: 13px; line-height: 16px; }

/* Action bar */
.tw-actions { display: flex; align-items: center; justify-content: space-between; margin: 12px 0 0 -8px; }
.tw-act-slot { display: flex; flex: 1; min-width: 0; }
.tw-act-end { display: flex; flex: none; align-items: center; }
.tw-act-form { display: inline-flex; margin: 0; }
.tw-act { display: inline-flex; align-items: center; min-width: 0; height: 20px; padding: 0; border: 0; background: none; color: var(--tw-muted);
  font-size: 13px; line-height: 16px; transition: color .2s; }
.tw-act-ic { display: grid; flex: none; place-items: center; width: 34.75px; height: 34.75px; margin: -7px 0; border-radius: 9999px; transition: background-color .2s; }
.tw-act-n { min-width: 20px; padding: 0 12px 0 0; text-align: left; }
.tw-act-reply:hover, .tw-act-views:hover, .tw-act-bm:hover, .tw-act-share:hover, .tw-act-bm.is-on { color: var(--tw-blue); }
.tw-act-reply:hover .tw-act-ic, .tw-act-views:hover .tw-act-ic, .tw-act-bm:hover .tw-act-ic, .tw-act-share:hover .tw-act-ic { background: rgba(29, 155, 240, .1); }
.tw-act-rt:hover, .tw-act-rt.is-on { color: var(--tw-green-text); }
.tw-act-rt:hover .tw-act-ic { background: rgba(0, 186, 124, .1); }
.tw-act-like:hover, .tw-act-like.is-on { color: var(--tw-pink); }
.tw-act-like:hover .tw-act-ic { background: rgba(249, 24, 128, .1); }
.tw-act-menu .tw-menu { top: -8px; }
.tw-pop .tw-act-ic svg { animation: tw-pop .4s cubic-bezier(.2, .9, .3, 1.4); }
@keyframes tw-pop { 0% { transform: scale(.4); } 55% { transform: scale(1.3); } 100% { transform: scale(1); } }

/* Detail view */
.tw-detail { padding: 12px 16px 0; cursor: default; }
.tw-detail:hover { background: none; }
.tw-detail-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.tw-detail-id { display: flex; flex: 1; flex-direction: column; min-width: 0; line-height: 20px; }
.tw-detail-head .tw-more-btn { margin: 0 -8px 0 0; }
.tw-text-lg { font-size: 17px; line-height: 24px; }
.tw-detail-meta { display: flex; flex-wrap: wrap; gap: 4px; margin: 16px 0; color: var(--tw-muted); line-height: 20px; }
.tw-detail-meta a:hover { text-decoration: underline; }
.tw-detail-meta strong, .tw-stat strong { color: var(--tw-text); font-weight: 700; }
.tw-detail-stats { display: flex; flex-wrap: wrap; gap: 4px 20px; padding: 16px 4px; border-top: 1px solid var(--tw-line); color: var(--tw-muted); line-height: 20px; }
.tw-actions-big { justify-content: space-around; height: 48px; margin: 0; border-top: 1px solid var(--tw-line); }
.tw-actions-big .tw-act-slot { flex: none; }
.tw-actions-big .tw-act-end { display: contents; }
.tw-actions-big .tw-act-ic { width: 38.5px; height: 38.5px; }
.tw-actions-big .tw-ic-act { width: 22.5px; height: 22.5px; }

/* Reply box + reply threads */
.tw-replybox { border-bottom: 1px solid var(--tw-line); }
.tw-replybox-form { display: flex; align-items: flex-start; gap: 12px; padding: 12px 16px; }
.tw-replybox-main { flex: 1; min-width: 0; padding-top: 4px; }
.tw-replybox-text, .tw-composer-text, .tw-inline-reply-form textarea { display: block; width: 100%; padding: 6px 0; overflow: hidden; resize: none; border: 0; outline: 0;
  background: none; color: var(--tw-text); }
.tw-replybox-text { font-size: 20px; line-height: 24px; }
.tw-replybox-text::placeholder, .tw-composer-text::placeholder, .tw-inline-reply-form textarea::placeholder { color: var(--tw-muted); }
.tw-replybox-submit { display: flex; flex: none; align-items: center; gap: 12px; align-self: flex-end; }
.tw-replybox-submit .tw-btn { min-height: 36px; }
.tw-actions-reply { justify-content: flex-start; }
.tw-actions-reply .tw-act-slot { flex: 0 1 25%; }
.tw-thread:has(> .tw-subreplies > .tw-reply) > .tw-reply, .tw-subreplies > .tw-reply:not(:last-child), .tw-post-thread { border-bottom: 0; }
.tw-thread:has(> .tw-subreplies > .tw-reply) > .tw-reply .tw-post-av::after, .tw-subreplies > .tw-reply:not(:last-child) .tw-post-av::after,
.tw-post-thread .tw-post-av::after { content: ""; position: absolute; top: 44px; bottom: -28px; left: 19px; width: 2px; background: var(--tw-thread); }
.tw-inline-reply { padding: 4px 16px 12px 68px; border-bottom: 1px solid var(--tw-line); }
.tw-inline-reply-form { display: flex; align-items: center; gap: 8px; }
.tw-inline-reply-form textarea { flex: 1; min-width: 0; font-size: 15px; line-height: 20px; }
.tw-reply-pair { border-bottom: 1px solid var(--tw-line); }
.tw-reply-pair > .tw-reply { border-bottom: 0; }

/* Character ring (app.js sets --pct, data-state and the remaining count) */
.tw-ring { position: relative; display: grid; flex: none; place-items: center; width: 20px; height: 20px; color: var(--tw-muted); font-size: 13px;
  transition: width .15s, height .15s; }
.tw-ring::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(var(--tw-ring, var(--tw-blue)) var(--pct, 0%), var(--tw-line) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px)); mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px)); }
.tw-ring[data-state="warn"], .tw-ring[data-state="over"] { width: 30px; height: 30px; }
.tw-ring[data-state="warn"] { --tw-ring: var(--tw-yellow); }
.tw-ring[data-state="over"] { --tw-ring: var(--tw-red); color: var(--tw-red); }
form:has(textarea[data-max]:placeholder-shown) .tw-ring { visibility: hidden; }

/* Composer */
.tw-home-compose { border-bottom: 1px solid var(--tw-line); }
.tw-composer { display: flex; gap: 12px; margin: 0; padding: 12px 16px 8px; }
.tw-composer-av { flex: none; width: 40px; padding-top: 4px; }
.tw-composer-main { flex: 1; min-width: 0; }
.tw-composer-text { min-height: 52px; padding: 10px 0 12px; font-size: 20px; line-height: 24px; }
.tw-composer-dialog .tw-composer-text, .tw-composer-page .tw-composer-text { min-height: 96px; }
.tw-audience { height: 24px; margin: 2px 0 6px; padding: 0 28px 0 12px; border: 1px solid var(--tw-outline); border-radius: 9999px; outline: 0; cursor: pointer;
  -webkit-appearance: none; appearance: none; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d9bf0' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 9px center / 13px;
  color: var(--tw-blue); font-size: 14px; font-weight: 700; }
.tw-audience option { background: var(--tw-bg); color: var(--tw-text); }
.tw-composer-media { position: relative; }
.tw-composer-preview .st-preview-media { width: auto; max-height: 420px; margin: 4px 0 8px; border-radius: 16px; }
.tw-composer-clear { position: absolute; top: 12px; left: 8px; display: none; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 50%;
  background: rgba(15, 20, 25, .75); color: #fff; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.tw-composer-media:has(.st-preview-media) .tw-composer-clear { display: grid; }
.tw-composer .tw-quote { margin: 4px 0 12px; }
.tw-composer-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 8px; border-top: 1px solid var(--tw-line); }
.tw-composer-inline .tw-composer-bar { border-top-color: transparent; }
.tw-composer-inline:focus-within .tw-composer-bar, .tw-composer-inline:has(textarea:not(:placeholder-shown)) .tw-composer-bar { border-top-color: var(--tw-line); }
.tw-composer-tools { display: flex; margin-left: -8px; }
.tw-tool { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--tw-blue); cursor: pointer; transition: background-color .2s; }
.tw-tool:hover { background: rgba(29, 155, 240, .1); }
.tw-composer-submit { display: flex; align-items: center; gap: 12px; }
.tw-create .tw-composer { padding: 16px; border-bottom: 1px solid var(--tw-line); }

/* Dialogs (compose, new message) + photo viewer */
.tw-dialog, .tw-drawer, .tw-lightbox { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: var(--tw-text); }
.tw-dialog[open] { display: flex; align-items: flex-start; justify-content: center; padding: 5vh 16px 16px; overflow-y: auto; }
.tw-dialog::backdrop, .tw-drawer::backdrop { background: rgba(91, 112, 131, .4); }
.tw-dialog-inner { width: 600px; max-width: 100%; overflow: hidden; border-radius: 16px; background: var(--tw-bg); }
.tw-dialog-head { display: flex; align-items: center; gap: 20px; height: 53px; padding: 0 16px 0 8px; }
.tw-dialog-head h2 { font-size: 20px; font-weight: 800; }
.tw-dialog .tw-composer { padding-top: 4px; }
.tw-newdm .tw-dialog-inner { display: flex; flex-direction: column; max-height: 80vh; }
.tw-newdm-search { padding: 4px 16px 12px; border-bottom: 1px solid var(--tw-line); }
.tw-newdm-people { overflow-y: auto; }
.tw-drawer[open] { display: block; }
.tw-drawer-inner { display: flex; flex-direction: column; width: min(280px, 85%); height: 100%; padding: 12px 0 calc(12px + env(safe-area-inset-bottom));
  overflow-y: auto; background: var(--tw-bg); box-shadow: var(--tw-menu-shadow); animation: tw-drawer-in .2s ease-out; }
@keyframes tw-drawer-in { from { transform: translateX(-100%); } }
.tw-drawer-top { display: flex; align-items: center; justify-content: space-between; padding: 0 16px; }
.tw-drawer-id { display: flex; flex-direction: column; padding: 8px 16px 0; line-height: 20px; }
.tw-drawer-id .tw-name { font-size: 17px; }
.tw-drawer-counts { display: flex; gap: 20px; padding: 12px 16px; color: var(--tw-muted); }
.tw-drawer-counts strong { color: var(--tw-text); font-weight: 700; }
.tw-drawer-counts a:hover { text-decoration: underline; }
.tw-drawer-nav { display: flex; flex-direction: column; }
.tw-drawer .tw-menu-item { gap: 20px; padding: 14px 16px; font-size: 20px; line-height: 24px; white-space: normal; }
.tw-drawer .tw-menu-item > span:not(.tw-badge) { overflow-wrap: anywhere; }   /* long labels ("Setări și confidențialitate") wrap instead of being cut */
.tw-drawer .tw-ic-menu { width: 24px; height: 24px; }
.tw-lightbox[open] { display: grid; place-items: center; padding: 48px 16px; background: rgba(0, 0, 0, .92); }
.tw-lightbox::backdrop { background: rgba(0, 0, 0, .9); }
.tw-lightbox img { max-width: 100%; max-height: calc(100vh - 96px); object-fit: contain; }
.tw-lightbox-close { position: fixed; top: 12px; left: 12px; background: rgba(15, 20, 25, .75); }

/* ---------------------------------------------------------------------------
   People
   --------------------------------------------------------------------------- */
.tw-user { display: flex; gap: 12px; padding: 12px 16px; cursor: pointer; transition: background-color .2s; }
.tw-user:hover { background: var(--tw-row-hover); }
.tw-user-main { display: block; flex: 1; min-width: 0; }
.tw-user-top { display: flex; align-items: center; gap: 12px; }
.tw-user-id { display: flex; flex: 1; flex-direction: column; min-width: 0; line-height: 20px; }
.tw-user-handle { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; min-width: 0; }   /* "Follows you" drops under the handle when a long label ("Te urmărește") leaves no room */
.tw-user-bio { margin-top: 4px; line-height: 20px; overflow-wrap: anywhere; }
.tw-user-btns { display: flex; flex: none; gap: 8px; }
.tw-user-done { display: flex; align-items: center; gap: 8px; padding: 12px 16px 0; color: var(--tw-muted); }
.tw-user.tw-user-done { padding-bottom: 12px; cursor: default; }
.tw-section { border-bottom: 1px solid var(--tw-line); }
.tw-section .tw-card-more { border-top: 0; }
.tw-count { display: inline-block; min-width: 22px; margin-left: 6px; padding: 0 7px; border-radius: 9999px; background: var(--tw-blue); color: #fff; font-size: 13px;
  line-height: 22px; text-align: center; vertical-align: 2px; }
.tw-hint { padding: 12px 16px 16px; color: var(--tw-muted); line-height: 20px; }

/* Empty states, 404, load more */
.tw-empty { max-width: 400px; margin: 32px auto; padding: 0 32px; }
.tw-empty h2 { margin-bottom: 8px; font-size: 31px; font-weight: 800; line-height: 36px; overflow-wrap: anywhere; }
.tw-empty p { color: var(--tw-muted); line-height: 20px; }
.tw-protected { max-width: 400px; margin: 32px auto 0; padding: 0 32px; }
.tw-protected .tw-empty { margin: 12px 0 0; padding: 0; }
.tw-404 { padding: 40px 32px; text-align: center; }
.tw-404 h1 { font-size: 20px; font-weight: 800; line-height: 24px; }
.tw-404 p { margin: 8px 0 24px; color: var(--tw-muted); line-height: 20px; }
.tw-more-link { position: relative; display: block; padding: 16px; border-bottom: 1px solid var(--tw-line); color: var(--tw-blue); text-align: center; }
.tw-more-link:hover { background: var(--tw-row-hover); }
.tw-more-link.is-busy { color: transparent; }
.tw-more-link.is-busy::after { content: ""; position: absolute; top: 50%; left: 50%; width: 26px; height: 26px; margin: -13px 0 0 -13px; border: 3px solid rgba(29, 155, 240, .25);
  border-top-color: var(--tw-blue); border-radius: 50%; animation: tw-spin .7s linear infinite; }
@keyframes tw-spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------------------
   Profile
   --------------------------------------------------------------------------- */
.tw-banner { aspect-ratio: 3 / 1; overflow: hidden; background: var(--tw-thread); }
.tw-banner img { width: 100%; height: 100%; object-fit: cover; }
.tw-profile-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 12px 16px 0; }
.tw-profile-av { display: block; flex: none; width: 23.5%; min-width: 48px; aspect-ratio: 1; margin-top: calc(-11.8% - 12px); overflow: hidden;
  border: 4px solid var(--tw-bg); border-radius: 50%; background: var(--tw-bg); }
.tw-profile-av .tw-avatar { width: 100% !important; height: 100% !important; }
.tw-profile-av:hover .tw-avatar { filter: brightness(.9); }
.tw-profile-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; min-height: 36px; }
.tw-profile-info { padding: 4px 16px 0; }
.tw-profile-name { display: flex; font-size: 20px; line-height: 24px; }
.tw-profile-name .tw-name { font-weight: 800; }
.tw-profile-handle { display: flex; align-items: center; gap: 4px; line-height: 20px; }
.tw-profile-bio { margin-top: 12px; line-height: 20px; white-space: pre-wrap; overflow-wrap: anywhere; }
.tw-profile-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 12px; color: var(--tw-muted); line-height: 20px; }
.tw-profile-meta span { display: inline-flex; align-items: center; gap: 4px; min-width: 0; }
.tw-profile-meta a { color: var(--tw-blue); overflow-wrap: anywhere; }
.tw-profile-meta a:hover, .tw-profile-counts a:hover, .tw-known:hover { text-decoration: underline; }
.tw-profile-counts { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 12px; color: var(--tw-muted); line-height: 20px; }
.tw-profile-counts strong { color: var(--tw-text); font-weight: 700; }
.tw-known { display: flex; align-items: center; gap: 10px; margin-top: 12px; color: var(--tw-muted); font-size: 13px; line-height: 16px; }
.tw-known-faces { display: flex; flex: none; }
.tw-known-faces .tw-avatar { border: 2px solid var(--tw-bg); box-sizing: content-box; }
.tw-known-faces .tw-avatar + .tw-avatar { margin-left: -8px; }
.tw-profile .tw-tabs { margin-top: 16px; border-bottom: 1px solid var(--tw-line); }

/* Media grid (profile Media tab, Explore, Search) */
.tw-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; }
.tw-grid-cell { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: var(--tw-card); }
.tw-grid-cell img { width: 100%; height: 100%; object-fit: cover; transition: filter .2s; }
.tw-grid-cell:hover img { filter: brightness(.85); }
.tw-grid-badge { position: absolute; bottom: 6px; left: 6px; display: inline-flex; align-items: center; gap: 3px; padding: 1px 5px; border-radius: 4px;
  background: rgba(0, 0, 0, .77); color: #fff; font-size: 12px; font-weight: 700; line-height: 16px; }
.tw-grid > .tw-more-link { grid-column: 1 / -1; }

/* Explore */
.tw-hero { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 1px solid var(--tw-line); }
.tw-hero img { width: 100%; height: 100%; object-fit: cover; }
.tw-hero-body { position: absolute; right: 0; bottom: 0; left: 0; display: flex; flex-direction: column; gap: 2px; padding: 64px 16px 12px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .85)); color: #fff; }
.tw-hero-meta { font-size: 13px; line-height: 16px; opacity: .85; }
.tw-hero-title { font-size: 23px; font-weight: 800; line-height: 28px; overflow-wrap: anywhere; }
.tw-hero:hover .tw-hero-title { text-decoration: underline; }

/* ---------------------------------------------------------------------------
   Notifications
   --------------------------------------------------------------------------- */
.tw-note { display: flex; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--tw-line); cursor: pointer; transition: background-color .2s; }
.tw-note:hover { background: var(--tw-row-hover); }
.tw-note-ic { display: flex; flex: none; justify-content: flex-end; width: 40px; }
.tw-ic-note { width: 30px; height: 30px; }
.tw-tone-like { color: var(--tw-pink); } .tw-tone-repost { color: var(--tw-green); } .tw-tone-blue { color: var(--tw-blue); }
.tw-note-logo { color: var(--tw-text); font-size: 26px; font-weight: 900; line-height: 30px; }
.tw-note-main { flex: 1; min-width: 0; }
.tw-note-faces { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.tw-note-text { line-height: 20px; overflow-wrap: anywhere; }
.tw-note-text .tw-verified { margin: 0 2px; vertical-align: -3px; }
.tw-note-name { font-weight: 700; }
.tw-note-name:hover { text-decoration: underline; }
.tw-note-time, .tw-note-time .tw-time { color: var(--tw-muted); }
.tw-note-snippet { margin-top: 4px; line-height: 20px; white-space: pre-wrap; overflow-wrap: anywhere; }
.tw-note-excerpt { margin-top: 12px; color: var(--tw-muted); line-height: 20px; overflow-wrap: anywhere; }

/* ---------------------------------------------------------------------------
   Messages
   --------------------------------------------------------------------------- */
.tw-l-full .tw-main { flex: 0 1 990px; width: auto; max-width: 990px; }
.tw-dm { display: grid; grid-template-columns: minmax(0, 390px) minmax(0, 1fr); height: 100vh; height: 100dvh; }
.tw-dm-list { min-width: 0; overflow-y: auto; border-right: 1px solid var(--tw-line); }
.tw-dm-thread { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.tw-dm-search { padding: 12px 16px 4px; }
.tw-dm-search .tw-search { height: 40px; border-color: var(--tw-line); background: transparent; }
.tw-dm-search .tw-search:focus-within { border-color: var(--tw-blue); }
.tw-dm-item { position: relative; display: flex; gap: 12px; padding: 16px; transition: background-color .2s; }
.tw-dm-item:hover { background: var(--tw-row-hover); }
.tw-dm-item.is-active { background: var(--tw-card); }
.tw-dm-item.is-active::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 2px; background: var(--tw-blue); }
.tw-dm-item-main { display: flex; flex: 1; flex-direction: column; min-width: 0; line-height: 20px; }
.tw-dm-item-top { display: flex; align-items: center; gap: 4px; min-width: 0; overflow: hidden; white-space: nowrap; }
.tw-dm-item-prev { overflow: hidden; color: var(--tw-muted); text-overflow: ellipsis; white-space: nowrap; }
.tw-dm-item.is-unread .tw-dm-item-prev { color: var(--tw-text); font-weight: 700; }
.tw-dm-dot { flex: none; align-self: center; width: 8px; height: 8px; border-radius: 50%; background: var(--tw-blue); }
.tw-dm-welcome { padding-bottom: 32px; }
.tw-dm-welcome .tw-btn { margin-left: 32px; }
.tw-dm-blank { display: grid; flex: 1; place-items: center; padding: 32px; }
.tw-dm-blank > div { max-width: 400px; }
.tw-dm-blank h2 { font-size: 31px; font-weight: 800; line-height: 36px; }
.tw-dm-blank p { margin: 8px 0 28px; color: var(--tw-muted); line-height: 20px; }
.tw-dm-head .tw-avatar { margin-right: 4px; }
.tw-dm-back { display: none; }
.tw-dm-body { display: flex; flex: 1; flex-direction: column; padding: 0 16px 16px; overflow-y: auto; }
.tw-dm-intro { display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 0 -16px 16px; padding: 20px 16px 40px; border-bottom: 1px solid var(--tw-line);
  text-align: center; transition: background-color .2s; }
.tw-dm-intro:hover { background: var(--tw-row-hover); }
.tw-dm-intro .tw-avatar { margin-bottom: 4px; }
.tw-dm-intro-name .tw-name { font-size: 17px; }
.tw-dm-intro-bio { max-width: 380px; margin-top: 12px; line-height: 20px; overflow-wrap: anywhere; }
.tw-dm-intro-meta { margin-top: 12px; color: var(--tw-muted); }
.tw-msg { display: flex; flex-direction: column; align-items: flex-start; margin-top: 4px; }
.tw-msg.is-mine { align-items: flex-end; }
.tw-msg-from { margin: 8px 0 4px 4px; color: var(--tw-muted); font-size: 13px; }
.tw-msg-bubble { max-width: min(80%, 480px); padding: 12px 16px; border-radius: 24px 24px 24px 4px; background: var(--tw-line); line-height: 20px;
  white-space: pre-wrap; overflow-wrap: anywhere; }
.tw-msg.is-mine .tw-msg-bubble { border-radius: 24px 24px 4px 24px; background: var(--tw-blue); color: #fff; }
.tw-msg-bubble a { color: inherit; text-decoration: underline; }
.tw-msg-time { margin: 6px 4px 12px; color: var(--tw-muted); font-size: 13px; line-height: 16px; }
.tw-dm-compose { margin: 0; padding: 4px 12px; border-top: 1px solid var(--tw-line); }
.tw-dm-compose-box { display: flex; align-items: center; gap: 4px; margin: 8px 0; padding: 2px 4px 2px 16px; border-radius: 16px; background: var(--tw-input); }
.tw-dm-input { flex: 1; min-width: 0; height: 36px; border: 0; outline: 0; background: none; color: var(--tw-text); }
.tw-dm-input::placeholder { color: var(--tw-muted); }
.tw-dm-send { color: var(--tw-blue); }
.tw-dm-send:hover { background: rgba(29, 155, 240, .1); }

/* ---------------------------------------------------------------------------
   Logged-out landing (login / register)
   --------------------------------------------------------------------------- */
.tw-land { display: flex; min-height: calc(100vh - 44px); min-height: calc(100dvh - 44px); }
.tw-land-logo { display: flex; flex: 1 1 50%; align-items: center; justify-content: center; padding: 32px; }
.tw-land-glyph { color: var(--tw-text); font-size: min(380px, 44vh); font-weight: 900; line-height: .8; letter-spacing: -.06em; user-select: none; }
.tw-land-main { display: flex; flex: 1 1 50%; flex-direction: column; justify-content: center; min-width: 0; padding: 16px 32px; }
.tw-land-title { margin: 32px 0 44px; font-size: 64px; font-weight: 800; line-height: 76px; letter-spacing: -1.2px; }
.tw-land-sub { margin-bottom: 28px; font-size: 31px; font-weight: 800; line-height: 36px; }
.tw-land-btn { width: 300px; max-width: 100%; }
.tw-land-legal { width: 300px; max-width: 100%; margin-top: 8px; color: var(--tw-muted); font-size: 11px; line-height: 12px; }
.tw-land-signin { width: 300px; max-width: 100%; margin-top: 40px; }
.tw-land-signin h3, .tw-land-demo h3 { margin-bottom: 16px; font-size: 17px; font-weight: 700; }
.tw-land-form { display: flex; flex-direction: column; gap: 12px; width: 300px; max-width: 100%; margin: 0; }
.tw-land-form .tw-land-btn { margin-top: 8px; }
.tw-field { position: relative; display: block; }
.tw-field input { width: 100%; height: 56px; padding: 24px 8px 6px; border: 1px solid var(--tw-field-line); border-radius: 4px; outline: 0; background: var(--tw-bg);
  color: var(--tw-text); font-size: 17px; }
.tw-field span { position: absolute; top: 17px; left: 9px; color: var(--tw-muted); font-size: 17px; pointer-events: none; transition: top .15s, font-size .15s, color .15s; }
.tw-field input:focus { border-color: var(--tw-blue); box-shadow: inset 0 0 0 1px var(--tw-blue); }
.tw-field input:focus + span, .tw-field input:not(:placeholder-shown) + span { top: 7px; font-size: 13px; }
.tw-field input:focus + span { color: var(--tw-blue); }
.tw-alert { width: 300px; max-width: 100%; margin-bottom: 12px; padding: 12px; border: 1px solid rgba(244, 33, 46, .5); border-radius: 4px;
  background: rgba(244, 33, 46, .1); color: var(--tw-alert-text); line-height: 20px; }
.tw-alert-info { border-color: rgba(29, 155, 240, .5); background: rgba(29, 155, 240, .1); color: var(--tw-blue); }
.tw-land-demo { width: 100%; max-width: 560px; margin-top: 40px; }
.tw-land-demo-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.tw-land-demo-list form { margin: 0; }
.tw-land-demo-btn { padding: 10px 12px; }
.tw-land-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; padding: 12px 16px; color: var(--tw-muted); font-size: 13px; line-height: 16px; }
.tw-land-langs { display: inline-flex; align-items: center; gap: 6px 10px; }
.tw-land-lang:hover { text-decoration: underline; }
.tw-land-lang.is-active { color: var(--tw-text); font-weight: 700; }

/* ---------------------------------------------------------------------------
   Settings list · Accessibility, display, and languages · Languages
   --------------------------------------------------------------------------- */
.tw-set-intro { padding: 12px 16px; color: var(--tw-muted); font-size: 13px; line-height: 16px; }
.tw-set-row { display: flex; align-items: center; gap: 16px; padding: 12px 16px; transition: background-color .2s; }
.tw-set-row:hover { background: var(--tw-row-hover); }
.tw-set-ic { flex: none; width: 20px; height: 20px; color: var(--tw-muted); }
.tw-set-main { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; }
.tw-set-title { line-height: 20px; overflow-wrap: anywhere; }
.tw-set-sub { color: var(--tw-muted); font-size: 13px; line-height: 16px; }
.tw-set-chev { flex: none; width: 18.75px; height: 18.75px; color: var(--tw-muted); }
.tw-set-block { border-top: 1px solid var(--tw-line); }
.tw-set-h2 { padding: 12px 16px 4px; font-size: 20px; font-weight: 800; line-height: 24px; }
.tw-set-note { padding: 0 16px 12px; color: var(--tw-muted); font-size: 13px; line-height: 16px; }
/* Display (More → Display dialog; Settings → Display): a sample post, then the Background tiles (tw_display_panel) */
.tw-dsp-head { padding: 32px 32px 0; text-align: center; }
.tw-dsp-head h2 { font-size: 23px; font-weight: 800; line-height: 28px; }
.tw-dsp-head p { margin-top: 8px; color: var(--tw-muted); line-height: 20px; }
.tw-dsp-sample { display: flex; gap: 12px; margin: 20px 32px 4px; padding: 12px 16px; border: 1px solid var(--tw-line); border-radius: 16px; text-align: left; }
.tw-dsp-page .tw-dsp-sample { margin: 12px 16px 4px; }
.tw-dsp-av { display: grid; flex: none; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--tw-light); color: var(--tw-ink); }
.tw-dsp-logo { font-size: 22px; font-weight: 900; line-height: 1; letter-spacing: -.05em; }
.tw-dsp-body { min-width: 0; line-height: 20px; }
.tw-dsp-id { display: flex; align-items: center; gap: 4px; font-weight: 700; }
.tw-dsp-id .tw-handle { color: var(--tw-muted); font-weight: 400; }
.tw-dsp-body p { margin-top: 2px; }
.tw-dsp-form { margin: 0; }
.tw-dsp-set { min-width: 0; margin: 0; padding: 12px 32px 0; border: 0; }
.tw-dsp-page .tw-dsp-set { padding: 12px 16px 16px; }
.tw-dsp-h { padding: 0 0 4px; color: var(--tw-muted); font-size: 13px; font-weight: 700; line-height: 16px; }
.tw-bg-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 8px 12px; border-radius: 16px; background: var(--tw-card); }
.tw-bg-tile { position: relative; display: flex; align-items: center; gap: 12px; min-height: 62px; padding: 8px 12px; border: 1px solid var(--tw-outline); border-radius: 4px;
  cursor: pointer; font-weight: 700; line-height: 20px; }
.tw-bg-tile input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.tw-bg-light { background: #fff; color: #0f1419; }
.tw-bg-dark { background: #000; color: #f7f9f9; }
.tw-bg-device { background: var(--tw-bg); color: var(--tw-text); }
.tw-bg-tile:has(input:checked) { padding: 7px 11px; border: 2px solid var(--tw-blue); }
.tw-bg-tile:has(input:focus-visible) { outline: 2px solid var(--tw-blue); outline-offset: 2px; }
.tw-bg-dot { display: grid; flex: none; place-items: center; width: 20px; height: 20px; border: 2px solid #b9cad3; border-radius: 50%; }
.tw-bg-dark .tw-bg-dot { border-color: #3e4144; }
.tw-bg-device .tw-bg-dot { border-color: var(--tw-outline); background: linear-gradient(135deg, #fff 50%, #000 50%); }
.tw-bg-check { width: 12px; height: 12px; color: #fff; visibility: hidden; }
.tw-bg-tile input:checked + .tw-bg-dot { border-color: var(--tw-blue); background: var(--tw-blue); }
.tw-bg-tile input:checked + .tw-bg-dot .tw-bg-check { visibility: visible; }
.tw-dsp-note { padding: 8px 0 0; color: var(--tw-muted); font-size: 13px; line-height: 16px; }
.tw-dsp-foot { display: flex; justify-content: center; padding: 20px 32px 32px; }
.tw-dsp-done { min-width: 120px; }
@media (max-width: 500px) {
  .tw-bg-tiles { grid-template-columns: minmax(0, 1fr); }
  .tw-dsp-head, .tw-dsp-set { padding-right: 16px; padding-left: 16px; }
  .tw-dsp-sample { margin-right: 16px; margin-left: 16px; }
}
.tw-lang-list { display: flex; flex-direction: column; padding-bottom: 8px; }
.tw-lang-opt { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; line-height: 20px; transition: background-color .2s; }
.tw-lang-opt:hover { background: var(--tw-row-hover); }
.tw-lang-opt::after { content: ""; flex: none; width: 20px; height: 20px; border: 2px solid var(--tw-outline); border-radius: 50%; }
.tw-lang-opt.is-active { font-weight: 700; }
.tw-lang-opt.is-active::after { border: 6px solid var(--tw-blue); }

/* ---------------------------------------------------------------------------
   Shared views (settings, ads, dashboard…) in the dark X look
   --------------------------------------------------------------------------- */
.tw-main .st-wrap { max-width: none; padding: 16px; }
.tw-autohead + .st-wrap > .st-h1:first-child, .tw-autohead + .st-wrap > .st-row:first-child > .st-h1 { display: none; }
.tw-autohead + .st-wrap > .st-row:first-child:has(> .st-h1) { justify-content: flex-end; }
.st-card { background: transparent; }
/* Settings → Language: the label keeps its width and the select drops below it on narrow screens (Romanian labels are longer) */
.tw-main form.st-row:has(#st-lang) { flex-wrap: wrap; }
.tw-main form.st-row:has(#st-lang) .st-label { flex: 1 1 220px; margin: 0; }
.tw-main #st-lang { flex: 1 1 180px; max-width: none !important; }
.st-stats > .st-card + .st-card { margin-top: 0; }
.st-h2 { font-size: 20px; font-weight: 800; }
.st-btn { border-color: var(--tw-outline); border-radius: 9999px; background: transparent; color: var(--tw-text); font-weight: 700; }
.st-btn:hover { background: var(--tw-btn-hover); filter: none; }
.st-btn-primary { border-color: transparent; background: var(--tw-light); color: var(--tw-ink); }
.st-btn-primary:hover { background: var(--tw-light-hover); }
.st-btn-danger { border-color: var(--tw-danger-line); color: var(--tw-red); }
.st-btn-danger:hover { background: rgba(244, 33, 46, .1); }
.st-input, .st-textarea, .st-select { border-color: var(--tw-field-line); background: var(--tw-bg); }
.st-input:focus, .st-textarea:focus, .st-select:focus { border-color: var(--tw-blue); box-shadow: inset 0 0 0 1px var(--tw-blue); }
.st-select option { background: var(--tw-bg); }
.st-tabs { gap: 0; scrollbar-width: none; }
.st-tab { position: relative; flex: 1 0 auto; padding: 16px; border-bottom: 0; color: var(--tw-muted); font-size: 15px; font-weight: 500; text-align: center; }
.st-tab:hover { background: var(--tw-btn-hover); }
.st-tab.is-active { font-weight: 700; }
.st-tab.is-active::after { content: ""; position: absolute; bottom: 0; left: 50%; width: 56px; height: 4px; border-radius: 9999px; background: var(--tw-blue);
  transform: translateX(-50%); }
.st-chip, .st-chip-check span { border-color: var(--tw-outline); background: transparent; color: var(--tw-text); }
.st-status-green { background: rgba(0, 186, 124, .15); color: var(--tw-green-text); }
.st-status-amber { background: rgba(255, 212, 0, .15); color: var(--tw-amber-text); }
.st-status-slate { background: var(--tw-input); color: var(--tw-muted); }
.st-status-red { background: rgba(244, 33, 46, .15); color: var(--tw-red); }
.st-link { color: var(--tw-blue); }
.st-toast { border-radius: 4px; background: var(--tw-blue); color: #fff; font-weight: 400; box-shadow: var(--tw-menu-shadow); }
.st-toast-success { background: var(--tw-blue); }
.st-toast-error { background: var(--tw-red); }

/* The demo style switcher sits above the account switcher on desktop (a round button beside the icon-only nav) */
@media (min-width: 700px) {
  .st-preview { bottom: 88px; }
}
@media (min-width: 700px) and (max-width: 1264px) {
  .st-preview summary { justify-content: center; gap: 0; width: 34px; height: 34px; padding: 0; font-size: 0; }
  .st-preview summary .st-preview-dot { width: 12px; height: 12px; }
}

/* ---------------------------------------------------------------------------
   Signed out (theme.php tw_guest_*): X's visitor frame — logo + Explore, the
   "New to …?" card, the blue bar along the bottom and the Join dialog
   --------------------------------------------------------------------------- */
.tw-guest .tw-main { padding-bottom: 72px; }
.tw-guest .tw-side-inner { padding-bottom: 96px; }
.tw-join-card { padding-bottom: 16px; }
.tw-join-card-sub { padding: 0 16px; color: var(--tw-muted); font-size: 13px; line-height: 16px; }
.tw-join-card-btn { display: flex; width: calc(100% - 32px); min-height: 40px; margin: 16px 16px 0; font-size: 15px; }
.tw-join-card-legal { padding: 12px 16px 0; color: var(--tw-muted); font-size: 13px; line-height: 16px; }
.tw-side-foot .tw-land-langs { flex-basis: 100%; margin-top: 4px; }
.tw-guest-logo .tw-logo-mark { font-size: 26px; }
.tw-guestbar { position: fixed; right: 0; bottom: 0; left: 0; z-index: 45; background: var(--tw-blue); color: #fff; }
.tw-guestbar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 990px; margin: 0 auto; padding: 12px 16px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
.tw-guestbar-text { display: flex; flex-direction: column; min-width: 0; }
.tw-guestbar-text strong { font-size: 23px; font-weight: 700; line-height: 28px; }
.tw-guestbar-text span { font-size: 15px; line-height: 20px; }
.tw-guestbar-btns { display: flex; flex: none; gap: 12px; }
.tw-guestbar .tw-btn { min-height: 36px; padding: 0 16px; font-weight: 700; }
.tw-guestbar-login { border-color: rgba(255, 255, 255, .55); color: #fff; }
.tw-guestbar-login:hover { background: rgba(255, 255, 255, .1); }
.tw-guestbar-signup { background: #fff; color: #0f1419; }                 /* the bar is blue in both appearances */
.tw-guestbar-signup:hover { background: #e6e9ea; }
.tw-join .tw-dialog-inner { width: 600px; }
.tw-join-body { display: flex; flex-direction: column; align-items: center; padding: 8px 32px 48px; text-align: center; }
.tw-join-icons { display: flex; justify-content: center; margin-bottom: 20px; }
.tw-join-ic { width: 56px; height: 56px; color: var(--tw-blue); }
.tw-join-icons [data-join-icon=like] .tw-join-ic { color: var(--tw-pink); }
.tw-join-icons [data-join-icon=repost] .tw-join-ic { color: var(--tw-green); }
.tw-join-body h2 { max-width: 380px; font-size: 31px; font-weight: 800; line-height: 36px; }
.tw-join-body p { max-width: 380px; margin-top: 8px; color: var(--tw-muted); line-height: 20px; }
.tw-join-btn { width: 300px; max-width: 100%; margin-top: 12px; }
.tw-join-body p + .tw-join-btn { margin-top: 32px; }

/* ---------------------------------------------------------------------------
   Responsive: icon-only nav < 1265px, no sidebar < 1080px, phones < 700px
   --------------------------------------------------------------------------- */
@media (max-width: 1264px) {
  .tw-nav, .tw-nav-inner { width: 88px; }
  .tw-nav-inner { align-items: center; padding: 0 4px; }
  .tw-nav-links { align-items: center; }
  .tw-nav-label, .tw-nav-post-label, .tw-nav .tw-account-id, .tw-nav .tw-account-dots { display: none; }
  .tw-nav-post { width: 52px; height: 52px; padding: 0; }
  .tw-nav-post-ic { display: block; }
  .tw-account { display: flex; justify-content: center; }
  .tw-nav .tw-account-btn { width: auto; }
  .tw-menu-nav, .tw-menu-account { left: 0; }
}
@media (max-width: 1079px) {
  .tw-side { display: none; }
}
@media (min-width: 1080px) {
  .tw-p-explore .tw-wtf-inline { display: none; }
}
@media (max-width: 999px) {
  .tw-dm { grid-template-columns: minmax(0, 1fr); }
  .tw-dm.has-open .tw-dm-list, .tw-dm:not(.has-open) .tw-dm-thread { display: none; }
  .tw-dm-back { display: inline-grid; margin-right: 8px; }
  .tw-land { flex-direction: column; }
  .tw-land-logo { flex: none; justify-content: flex-start; padding: 24px 32px 0; }
  .tw-land-glyph { font-size: 56px; }
  .tw-land-title { margin: 24px 0 32px; font-size: 44px; line-height: 52px; }
}
@media (max-width: 699px) {
  :root { --st-preview-bottom: calc(var(--tw-tabbar) + 12px + env(safe-area-inset-bottom)); }
  .tw-nav, .tw-side { display: none; }
  .tw-main, .tw-l-full .tw-main { width: 100%; max-width: 100%; flex: 1 1 auto; border: 0; padding-bottom: calc(var(--tw-tabbar) + env(safe-area-inset-bottom)); }
  .tw-head-av { display: block; }
  .tw-back { margin-right: 12px; }
  .tw-mtop { display: flex; align-items: center; justify-content: space-between; height: 53px; padding: 0 16px; }
  .tw-mtop-logo { display: grid; place-items: center; }
  .tw-mtop-logo .tw-logo-mark { font-size: 26px; }
  .tw-home-compose { display: none; }
  .tw-mtop-end { width: 32px; }
  .tw-head-home .tw-tabs { border-top: 0; }
  .tw-tabbar { position: fixed; right: 0; bottom: 0; left: 0; z-index: 40; display: flex; height: calc(var(--tw-tabbar) + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid var(--tw-line); background: var(--tw-bar-bg); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
  .tw-tabbar-link { position: relative; display: grid; flex: 1; place-items: center; color: var(--tw-text); }
  .tw-tabbar-link .tw-badge { top: 7px; right: auto; left: 50%; margin-left: 3px; }
  .tw-fab { position: fixed; right: 16px; bottom: calc(var(--tw-tabbar) + 16px + env(safe-area-inset-bottom)); z-index: 41; display: grid; place-items: center;
    width: 56px; height: 56px; border: 0; border-radius: 50%; background: var(--tw-blue); color: #fff; box-shadow: var(--tw-menu-shadow); }
  .tw-fab-ic { width: 24px; height: 24px; }
  .st-toasts { bottom: calc(var(--tw-tabbar) + 24px + env(safe-area-inset-bottom)); }
  .tw-dialog[open] { padding: 0; }
  .tw-dialog-inner { width: 100%; min-height: 100%; border-radius: 0; }
  .tw-newdm .tw-dialog-inner { max-height: none; }
  .tw-dm { height: calc(100dvh - var(--tw-tabbar) - env(safe-area-inset-bottom)); }
  body:has(.tw-dm.has-open) .tw-tabbar { display: none; }
  body:has(.tw-dm.has-open) .tw-main { padding-bottom: 0; }
  .tw-dm.has-open { height: 100vh; height: 100dvh; }
  .tw-actions { margin-left: -5px; }
  .tw-actions:not(.tw-actions-big) .tw-act-ic { width: 28px; height: 28px; margin: -4px 0; }
  .tw-actions .tw-act-n { padding-right: 4px; }
  .tw-profile-meta { gap: 4px 10px; }
  .tw-empty h2, .tw-dm-blank h2 { font-size: 26px; line-height: 30px; }
  .tw-land-main { padding: 8px 24px 24px; }
  .tw-land-logo { padding: 20px 24px 0; }
  .tw-land-title { margin: 20px 0 24px; font-size: 36px; line-height: 42px; }
  .tw-land-sub { font-size: 23px; line-height: 28px; margin-bottom: 20px; }
  .tw-land-demo-list { grid-template-columns: minmax(0, 1fr); }
  .tw-guest .tw-main { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .tw-guestbar-text { display: none; }
  .tw-guestbar-btns { flex: 1; }
  .tw-guestbar .tw-btn { flex: 1; min-height: 40px; }
  .tw-join-body { padding: 8px 24px 40px; }
  .tw-join-body h2 { font-size: 26px; line-height: 30px; }
}
