:root {
  --bg: #000000;
  --text: #e7e9ea;
  --muted: #71767b;
  --line: #2f3336;
  --blue: #1d9bf0;
  --blue-dim: rgba(29, 155, 240, 0.1);
  --green: #00ba7c;
  --green-dim: rgba(0, 186, 124, 0.1);
  --pink: #f91880;
  --pink-dim: rgba(249, 24, 128, 0.1);
  --red: #f4212e;
  --card: #16181c;
  --search: #202327;
  --banner: #333639;
  --sheet: #000000;
  --topbar: rgba(0, 0, 0, 0.65);
  --hover: rgba(231, 233, 234, 0.1);
  --hover-soft: rgba(255, 255, 255, 0.03);
  --shadow: rgba(255, 255, 255, 0.2);
  --shadow-tight: rgba(255, 255, 255, 0.15);
  --fill: #eff3f4;
  --on-fill: #0f1419;
  --fill-hover: #d7dbdc;
  --thread: #2f3336;
  --ava: #2f3336;
  --initials-bg: #3d4248;
  --initials-fg: #fff;
  --tab-arrow: rgba(61, 66, 72, 0.78);
  --tab-arrow-hover: rgba(91, 98, 107, 0.92);
  --tab-arrow-shadow: 0 0 8px rgba(0, 0, 0, 0.45);
  --tooltip-bg: rgba(91, 112, 131, 0.88);
  --tooltip-text: #ffffff;
  --bell-border: #536471;
  --font: TwitterChirp, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --top: 53px;
  color-scheme: dark;
}
html[data-theme="dim"] {
  --bg: #15202B;
  --text: #f7f9f9;
  --muted: #8b98a5;
  --line: #38444d;
  --card: #1e2732;
  --search: #273340;
  --banner: #38444d;
  --sheet: #15202B;
  --topbar: rgba(21, 32, 43, 0.85);
  --tab-arrow: rgba(56, 68, 77, 0.82);
  --tab-arrow-hover: rgba(90, 106, 120, 0.92);
  --tab-arrow-shadow: 0 0 8px rgba(0, 0, 0, 0.35);
  --tooltip-bg: rgba(91, 112, 131, 0.88);
  --tooltip-text: #ffffff;
  --thread: #38444d;
  color-scheme: dark;
}
html[data-theme="default"] {
  --bg: #FFFFFF;
  --text: #0f1419;
  --muted: #536471;
  --line: #eff3f4;
  --card: #f7f9f9;
  --search: #eff3f4;
  --banner: #cfd9de;
  --sheet: #FFFFFF;
  --topbar: rgba(255, 255, 255, 0.85);
  --hover: rgba(15, 20, 25, 0.1);
  --hover-soft: rgba(15, 20, 25, 0.03);
  --shadow: rgba(101, 119, 134, 0.2);
  --shadow-tight: rgba(101, 119, 134, 0.12);
  --fill: #0f1419;
  --on-fill: #fff;
  --fill-hover: #272c30;
  --thread: #cfd9de;
  --ava: #cfd9de;
  --initials-bg: #cfd9de;
  --initials-fg: #0f1419;
  --bell-border: #cfd9de;
  --tab-arrow: rgba(255, 255, 255, 0.88);
  --tab-arrow-hover: rgba(247, 249, 249, 0.98);
  --tab-arrow-shadow: 0 0 8px rgba(101, 119, 134, 0.35);
  --tooltip-bg: rgba(15, 20, 25, 0.78);
  --tooltip-text: #ffffff;
  color-scheme: light;
}
.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: absolute;
  left: 12px;
  top: 8px;
  z-index: 50;
  transform: translateY(-150%);
  background: var(--blue);
  color: #fff;
  border: 0;
  border-radius: 9999px;
  font-weight: 700;
  padding: 8px 16px;
}
.skip:focus { transform: none; }

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
html, body { overscroll-behavior: none; touch-action: manipulation; }
body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 20px;
  min-height: 100vh;
  -webkit-tap-highlight-color: transparent;
}
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 180ms; animation-timing-function: ease; }
.nav, .topbar, .bottom-nav, .drawer, .fab, .tab, button, .mhead {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
.post-text, .status-text, .bio, .desc-body, input, textarea { -webkit-user-select: text; user-select: text; }
button, input, textarea { font-family: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
::selection { background: rgba(29, 155, 240, 0.35); }

.app {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  max-width: 1265px;
  margin: 0 auto;
  min-height: 100vh;
}

.nav {
  width: var(--nav-w, 275px);
  flex: 0 0 var(--nav-w, 275px);
  position: sticky;
  top: 0;
  z-index: 2;
  height: 100vh;
  padding: 8px 12px 0;
  display: flex;
  flex-direction: column;
}
.nav-split {
  position: absolute;
  top: 0;
  bottom: 0;
  right: -4px;
  z-index: 6;
  width: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: col-resize;
  touch-action: none;
}
.nav-split:focus { outline: none; }
.nav-split::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 3px;
  width: 2px;
  background: transparent;
}
.nav-split:hover::before,
.nav-split.is-dragging::before,
.nav-split:focus-visible::before {
  background: var(--blue);
}
.nav-scroll {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  padding-bottom: 8px;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
  scrollbar-gutter: stable;
  -ms-overflow-style: none;
}
.nav:hover .nav-scroll,
.nav-scroll:focus-within {
  scrollbar-color: var(--line) transparent;
}
.nav-scroll::-webkit-scrollbar { width: 6px; }
.nav-scroll::-webkit-scrollbar-track { background: transparent; }
.nav-scroll::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 9999px;
}
.nav:hover .nav-scroll::-webkit-scrollbar-thumb,
.nav-scroll:focus-within::-webkit-scrollbar-thumb {
  background: var(--line);
}
/* Keep every nav row at its natural height. Otherwise the flex column shrinks
   the rows when an open folder makes the sidebar taller than the viewport,
   which squashes icons, labels and their spacing instead of scrolling. */
.nav-scroll > * { flex: 0 0 auto; }
.logo, .nav-item, .icon-btn, .more-btn, .m-ava, .m-icon {
  border: 0;
  background: transparent;
  color: var(--text);
  border-radius: 9999px;
}
.logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: max-content;
  max-width: 100%;
  height: 50px;
  margin: 2px 0 6px;
  padding: 0 12px;
  color: #fff;
}
.logo .logo-full { display: block; height: 28px; width: auto; max-width: 100%; }
.logo .logo-short { display: none; }
.logo .logo-si { display: none; }
html[data-theme="default"] .logo,
html[data-theme="default"] .m-logo { color: #000; }
.logo:hover, .nav-item:hover, .icon-btn:hover, .more-btn:hover, .m-ava:hover, .m-icon:hover {
  background: var(--hover);
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px;
  font-size: 20px;
  line-height: 24px;
  width: max-content;
  max-width: 100%;
}
.nav-item svg { width: 26.25px; height: 26.25px; fill: currentColor; flex: none; }
.nav-item.on { font-weight: 700; }
.nav-folder-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 1px 0;
}
.nav-folder-head {
  display: flex;
  align-items: center;
  position: relative;
  width: 100%;
  max-width: 100%;
  border-radius: 9999px;
}
.nav-folder-btn {
  width: 100%;
  max-width: 100%;
  gap: 0;
  cursor: pointer;
  text-align: left;
  position: relative;
}
.nav-folder-btn .nav-ico { margin-right: 20px; }
.nav-folder-btn .nav-label { flex: 1 1 auto; margin-right: 8px; }
.nav-folder-count {
  flex: none;
  margin-left: 0;
  margin-right: 4px;
  font-size: 13px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 9999px;
  background: var(--hover);
  color: var(--muted);
  line-height: 16px;
}
.nav-folder-caret {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: var(--muted);
  transition: transform 0.2s cubic-bezier(0.2, 0, 0, 1), opacity 0.15s ease;
}
.nav-folder-caret svg {
  width: 18px;
  height: 18px;
}
.nav-folder-wrapper.open .nav-folder-caret {
  transform: rotate(90deg);
}
.nav-folder-rename-btn {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  width: 32px;
  height: 32px;
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-folder-rename-btn svg {
  width: 18px;
  height: 18px;
}
.nav-folder-head:hover .nav-folder-rename-btn,
.nav-folder-head:focus-within .nav-folder-rename-btn {
  opacity: 0.8;
  pointer-events: auto;
}
.nav-folder-head:hover .nav-folder-caret,
.nav-folder-head:focus-within .nav-folder-caret {
  opacity: 0;
}
.nav-folder-rename-btn:hover {
  opacity: 1 !important;
  background: var(--hover);
}
.nav-folder-rename-form {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  width: 100%;
  max-width: 260px;
  margin: 2px 0 4px;
}
.nav-folder-rename-input {
  flex: 1;
  min-width: 0;
  height: 36px;
  background: var(--bg);
  color: var(--text);
  border: 1.5px solid var(--blue);
  border-radius: 9999px;
  padding: 0 12px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
}
/* Folders animate open/closed on height. The height is measured in JS when a
   folder is toggled, because animating grid fr tracks stays at 0 when the
   sidebar column has an auto height. */
.nav-folder-children {
  display: block;
  width: 100%;
  height: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: height 0.24s cubic-bezier(0.2, 0, 0, 1), opacity 0.16s ease, visibility 0s linear 0.24s;
}
.nav-folder-wrapper.open > .nav-folder-children {
  height: auto;
  opacity: 1;
  visibility: visible;
  transition: height 0.24s cubic-bezier(0.2, 0, 0, 1), opacity 0.16s ease, visibility 0s;
}
.nav-folder-children-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 0;
  overflow: hidden;
  margin: 0 0 2px 22px;
  padding-left: 8px;
  border-left: 2px solid var(--line);
}
/* Strip the vertical box pieces while closed so the measured height starts
   from a true zero. */
.nav-folder-children:not(.open) > .nav-folder-children-inner {
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-top-width: 0;
  border-bottom-width: 0;
}
.nav-folder-child {
  font-size: 20px;
  line-height: 24px;
  padding: 12px;
}
@media (prefers-reduced-motion: reduce) {
  .nav-folder-children,
  .nav-folder-caret,
  .nav-folder-rename-btn { transition: none; }
}
.nav-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: var(--blue);
  border: 2px solid var(--bg);
}
.nav-folder-wrapper.open .nav-dot { display: none; }
.nav-customize-btn {
  cursor: pointer;
  color: var(--muted);
  margin-top: 2px;
}
.nav-customize-btn:hover {
  color: var(--text);
}
.post-btn {
  margin: 16px 0 12px;
  width: 233px;
  max-width: 100%;
  height: 52px;
  border: 0;
  border-radius: 9999px;
  background: var(--fill);
  color: var(--on-fill);
  font-size: 17px;
  font-weight: 700;
  padding: 0;
}
.post-btn:hover { background: var(--fill-hover); }
.post-btn .post-ico { display: none; }
.account-pill {
  margin-top: auto;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  border-radius: 9999px;
  padding: 12px;
  text-align: left;
}
.account-pill:hover { background: var(--hover); }
.account-meta { display: flex; flex-direction: column; min-width: 0; line-height: 20px; }
.account-meta b { font-size: 15px; }
.account-meta span { color: var(--muted); font-size: 15px; }
.account-pill .dots { margin-left: auto; color: var(--text); }

html[data-nav="icons"] .nav {
  width: 88px;
  flex-basis: 88px;
  padding: 0 4px;
  align-items: center;
}
html[data-nav="icons"] .nav-scroll { align-items: center; }
html[data-nav="icons"] .logo { width: 50px; height: 50px; margin: 2px 0; padding: 0; justify-content: center; }
html[data-nav="icons"] .logo .logo-full,
html[data-nav="icons"] .logo .logo-short { display: none; }
html[data-nav="icons"] .logo .logo-si { display: block; height: 26px; width: auto; }
html[data-nav="icons"] .nav-label,
html[data-nav="icons"] .account-meta,
html[data-nav="icons"] .post-label,
html[data-nav="icons"] .account-pill .dots { display: none; }
html[data-nav="icons"] .nav-item { width: 50px; height: 50px; justify-content: center; padding: 0; gap: 0; overflow: visible; }
html[data-nav="icons"] .post-btn { width: 50px; height: 50px; padding: 0; max-width: none; }
html[data-nav="icons"] .post-btn .post-ico { display: block; width: 24px; height: 24px; margin: 0 auto; fill: var(--on-fill); }
html[data-nav="icons"] .account-pill { width: 50px; height: 50px; justify-content: center; padding: 0; }
html[data-nav="icons"] .nav-item,
html[data-nav="icons"] .logo,
html[data-nav="icons"] .post-btn,
html[data-nav="icons"] .account-pill { position: relative; }
html[data-nav="icons"] .nav-folder-wrapper {
  align-items: center;
}
html[data-nav="icons"] .nav-folder-head {
  width: 50px;
  height: 50px;
  justify-content: center;
}
html[data-nav="icons"] .nav-folder-btn {
  width: 50px;
  height: 50px;
  justify-content: center;
  padding: 0;
  gap: 0;
  border-radius: 9999px;
}
html[data-nav="icons"] .nav-folder-btn .nav-ico { margin-right: 0; }
html[data-nav="icons"] .nav-folder-count,
html[data-nav="icons"] .nav-folder-caret,
html[data-nav="icons"] .nav-folder-rename-btn,
html[data-nav="icons"] .nav-folder-rename-form {
  display: none !important;
}
html[data-nav="icons"] .nav-folder-children-inner {
  align-items: center;
  /* Auto side margins keep the child pill on the same vertical axis as the
     folder icon (and every other rail icon) instead of hugging the left edge. */
  margin: 4px auto 6px;
  padding: 6px 0;
  width: 58px;
  border-left: 0;
  background: var(--card, rgba(255, 255, 255, 0.05));
  border: 1px solid var(--border);
  border-radius: 29px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.25);
  gap: 4px;
}
html[data-nav="icons"] .nav-folder-child {
  width: 50px;
  height: 50px;
  justify-content: center;
  padding: 0;
  gap: 0;
}
html[data-nav="icons"] .nav-customize-btn {
  width: 50px;
  height: 50px;
  justify-content: center;
  padding: 0;
  gap: 0;
}

/* X-Style Tooltip */
.x-tooltip {
  position: fixed;
  z-index: 100000;
  pointer-events: none;
  background-color: var(--tooltip-bg, rgba(91, 112, 131, 0.88));
  color: var(--tooltip-text, #ffffff);
  font-family: var(--font, TwitterChirp, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif);
  font-size: 11px;
  font-weight: 500;
  line-height: 12px;
  letter-spacing: 0.01em;
  padding: 3px 6px;
  border-radius: 2px;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.35);
  white-space: nowrap;
  max-width: 240px;
  text-overflow: ellipsis;
  overflow: hidden;
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.12s ease, transform 0.12s ease;
  will-change: opacity, transform;
  display: none;
}
.x-tooltip.is-visible {
  display: block;
  opacity: 1;
  transform: scale(1);
}
.center {
  width: 600px;
  flex: 0 0 600px;
  min-height: 100vh;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  min-width: 0;
}
@media (min-width: 1280px) {
  .center { width: auto; flex: 1 1 auto; }
}
html.is-split-drag,
html.is-split-drag * {
  cursor: col-resize !important;
  user-select: none !important;
}
.side {
  width: 350px;
  flex: 0 0 350px;
  padding: 0 16px 32px 24px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--topbar);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.topbar::before {
  content: "";
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  top: 0;
  height: env(safe-area-inset-top, 0px);
  background: var(--bg);
  pointer-events: none;
}
.mhead { display: none; }
.tabs-bar {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  height: 53px;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.tabs {
  display: flex;
  flex-wrap: nowrap;
  height: 53px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  flex: 1;
  min-width: 0;
  border-bottom: 0;
  white-space: nowrap;
}
.tabs::-webkit-scrollbar { display: none; }
/* A height change from the mobile URL bar must not anchor these rows back to the start. */
.tabs,
.sp-row,
.story-tray,
.pills,
.yt-strip,
.hist-chips,
.cm-filter-bar,
.games-row,
.mu-hscroll,
.shorts,
.vault-nav-tabs,
.tv-tabs-nav,
.tv-streams-scroll,
[data-hscroll] {
  overflow-anchor: none;
  touch-action: pan-x pan-y;
}
.tab {
  position: relative;
  flex: 1 0 auto;
  min-width: 56px;
  height: 53px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}
.tab:hover { background: var(--hover); }
.tab.on { color: var(--text); font-weight: 700; }
.tab span { position: relative; line-height: 20px; white-space: nowrap; }
.tab.on span:not(.tab-grip)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -16.5px;
  height: 4px;
  border-radius: 9999px;
  background: var(--blue);
}
.tab-pair {
  position: relative;
  flex: 1 0 auto;
  min-width: 56px;
  height: 53px;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
}
.tab-pair .tab { flex: 0 0 auto; padding-right: 2px; }
.tab-pair .tab.on span::after { content: none; }
.tab-pair.on::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 4px;
  border-radius: 9999px;
  background: var(--blue);
}
.tab-caret {
  width: 28px;
  height: 28px;
  margin-right: 2px;
  border: 0;
  border-radius: 9999px;
  background: transparent;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.tab-pair.on .tab-caret { color: var(--text); }
.tab-caret:hover, .tab-caret[aria-expanded="true"] { background: var(--hover); }
.tab-caret svg { width: 16px; height: 16px; fill: currentColor; }
.tab-manage {
  position: relative;
  z-index: 5;
  flex: none;
  width: 46px;
  height: 53px;
  border: 0;
  background: transparent;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.tab-manage:hover { background: var(--hover); }
.tab-manage svg { width: 20px; height: 20px; fill: currentColor; }
.tabs-bar::before,
.tabs-bar::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 48px;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
}
.tabs-bar.is-fade-left::before {
  left: 0;
  opacity: 1;
  background: linear-gradient(to right, var(--bg) 0%, var(--bg) 22%, transparent 100%);
}
.tabs-bar.is-fade-right::after {
  right: 46px;
  opacity: 1;
  background: linear-gradient(to left, var(--bg) 0%, var(--bg) 22%, transparent 100%);
}
.tab-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 34px;
  height: 34px;
  margin: 0;
  border: 0;
  border-radius: 9999px;
  padding: 0;
  color: var(--text);
  background: var(--tab-arrow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--tab-arrow-shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, background 0.15s ease;
}
.tabs-bar:hover .tab-arrow:not([hidden]),
.tabs-bar:focus-within .tab-arrow:not([hidden]) {
  opacity: 1;
  pointer-events: auto;
}
.tab-arrow:hover { background: var(--tab-arrow-hover); }
.tab-arrow svg { width: 18px; height: 18px; fill: currentColor; }
.tab-arrow.left { left: 8px; }
.tab-arrow.right { right: 54px; }
.tab-arrow[hidden] { display: none; }
.tab-sheet {
  position: fixed;
  inset: 0;
  z-index: 35;
  background: transparent;
}
.menu.tab-menu {
  animation: tab-pop 0.16s ease;
  position: fixed;
  top: 0;
  left: 0;
  right: auto;
  z-index: 40;
  width: max-content;
  min-width: 300px;
  max-width: min(360px, calc(100vw - 16px));
  max-height: min(80vh, 640px);
  overflow: auto;
  padding: 8px 0;
  background: var(--sheet);
  border-radius: 16px;
}
@keyframes tab-pop {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}
@keyframes tab-sheet-in {
  from { transform: translateY(100%); }
  to { transform: none; }
}
@media (pointer: coarse) {
  .tab-arrow { display: none !important; }
}
@media (max-width: 499px) {
  .tab-arrow { display: none !important; }
  .tab-sheet { background: rgba(91, 112, 131, 0.4); }
  .menu.tab-menu {
    top: auto !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0;
    width: 100%;
    min-width: 0;
    max-width: none;
    max-height: 88vh;
    border-radius: 16px 16px 0 0;
    padding: 0 0 calc(8px + env(safe-area-inset-bottom));
    box-shadow: none;
    animation: tab-sheet-in 0.22s ease;
  }
}
.tab-grab { display: none; }
.tab-menu .tab-choice {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 66px;
  padding: 0 20px;
  background: none;
  border: 0;
  color: var(--text);
  text-align: left;
  font-size: 17px;
  font-weight: 700;
  line-height: 22px;
}
.tab-menu .tab-choice:hover { background: var(--hover); }
.tab-menu .tab-choice-ico { width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; flex: none; color: var(--text); }
.tab-menu .tab-ico {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tab-menu .tab-choice-label { flex: 1; min-width: 0; }
.tab-radio, .tab-check {
  width: 22px;
  height: 22px;
  box-sizing: border-box;
  border: 2px solid var(--muted);
  border-radius: 999px;
  flex: none;
  position: relative;
}
.tab-check { border-radius: 6px; }
.tab-radio.on { border-color: var(--blue); }
.tab-radio.on::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 999px;
  background: var(--blue);
}
.tab-check.on { background: var(--blue); border-color: var(--blue); }
.tab-check.on::after {
  content: "";
  display: block;
  width: 5px;
  height: 9px;
  margin: 2px auto 0;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.tab-menu-gap { height: 1px; margin: 6px 0; background: var(--line); }
.tab-menu-label {
  padding: 16px 20px 6px;
  color: var(--text);
  font-size: 20px;
  line-height: 24px;
  font-weight: 800;
}
.tab-manage-row { gap: 8px; flex-wrap: nowrap; }
.tab-manage-row .who-copy { flex: 1; }
.tab-manage-row .icon-btn, .tab-manage-row .outline { flex: none; }
.tab-manage-row .outline { height: 32px; padding: 0 12px; border-radius: 9999px; font-weight: 700; }
@media (max-width: 499px) {
  .tab-grab {
    display: flex;
    justify-content: center;
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 10px 0 6px;
    background: var(--sheet);
    touch-action: none;
  }
  .tab-grab::before {
    content: "";
    width: 36px;
    height: 4px;
    border-radius: 999px;
    background: var(--muted);
  }
}
.page-head {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 53px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
}
.page-head h1, .pt-name {
  margin: 0;
  font-size: 20px;
  line-height: 24px;
  font-weight: 700;
}
.page-head .grow { margin-right: auto; }
.pt-count, .subhead { color: var(--muted); font-size: 13px; line-height: 16px; font-weight: 400; }
.icon-btn, .more-btn, .m-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.icon-btn svg, .more-btn svg, .m-icon svg { width: 20px; height: 20px; fill: currentColor; }
.head-text { min-width: 0; }
.head-text h1, .pt-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.post {
  padding: 12px 16px 8px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  content-visibility: auto;
  contain-intrinsic-size: auto 220px;
}
.post.boot-card {
  content-visibility: visible;
  contain-intrinsic-size: auto;
}
@media (hover: hover) {
  .post:hover { background: var(--hover-soft); }
}
.repost-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 2px 36px;
  color: var(--muted);
  font-size: 13px;
  line-height: 16px;
  font-weight: 700;
}
.repost-line svg { width: 16px; height: 16px; fill: currentColor; }
.repost-line a:hover { text-decoration: underline; }
.yt-item .repost-line { margin: 0 0 8px; }
.yt-item .quote { margin-top: 8px; }
.yt-open { display: block; color: inherit; text-decoration: none; }
.yt-by a, .yt-copy a { color: inherit; text-decoration: none; }
.yt-by a:hover { text-decoration: underline; }
.post-row { display: flex; gap: 12px; align-items: flex-start; }
.post-main { flex: 1; min-width: 0; }
.ava, .ava img {
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  display: block;
  object-fit: cover;
  background: var(--ava);
  flex: none;
}
.ava { overflow: hidden; }
.ava.silhouette { display: flex; align-items: center; justify-content: center; color: var(--muted); }
.ava.silhouette svg { width: 68%; height: 68%; display: block; }
.ava-none { display: none; }
a:not(:has(> :not(.ava-none))):has(> .ava-none),
.ava-col:has(.ava-none),
.sp-ava:has(.ava-none),
.sp-stack:has(.ava-none),
.dmsgs-head-face:has(.ava-none) { display: none; }
.post:has(.post-row > a:has(> .ava-none)) .repost-line,
.post:has(.ava-col:has(.ava-none)) .repost-line { margin-left: 0; }
.pava-row:not(:has(.ava)):not(:has(.pava)) { margin-top: 0; min-height: 0; align-items: center; }
.profile-bar + .pinfo .pava-row,
.hcard:not(:has(.hbanner)) .pava-row { margin-top: 0; min-height: 0; }
.initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--initials-bg);
  color: var(--initials-fg);
  font-weight: 700;
  font-size: 16px;
}
.byline {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  font-size: 15px;
  line-height: 20px;
}
.byline .name {
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
}
.byline .name:hover, .handle:hover, .time:hover { text-decoration: underline; }
.handle, .dot, .time { color: var(--muted); font-weight: 400; }
.handle {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.byline .handle { flex: 1 1 auto; flex-shrink: 100; }
.time, .dot, .src, .more-btn { flex: none; }
.more-btn { margin-left: auto; color: var(--muted); }
.more-btn:hover { color: var(--blue); background: var(--blue-dim); }
.vbadge { display: inline-flex; width: 18px; height: 18px; flex: none; align-items: center; }
.vbadge svg { width: 18px; height: 18px; fill: currentColor; display: block; }
.vbadge path { fill-rule: evenodd; }
.vbadge.blue { color: #1d9bf0; }
.vbadge.business { color: #e2b719; }
.vbadge.government { color: #8b98a5; }
.src { display: inline-flex; color: var(--muted); width: 16px; height: 16px; }
.src svg { width: 14px; height: 14px; fill: currentColor; }
.replying { color: var(--muted); font-size: 15px; line-height: 20px; margin: 0 0 2px; }
.replying a { color: var(--blue); }
.replying a:hover { text-decoration: underline; }
.post-text, .bio, .quote-text {
  font-size: 15px;
  line-height: 20px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--text);
}
.entity { color: var(--blue); }
.entity:hover { text-decoration: underline; }
.show-more {
  border: 0;
  background: none;
  color: var(--blue);
  padding: 0;
  font-size: 15px;
  line-height: 20px;
}
.show-more:hover { text-decoration: underline; }
.translate-link { display: block; margin-top: 4px; text-align: left; }

.media {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  display: grid;
  gap: 2px;
  background: #000;
}
.media.m1 { container-type: inline-size; }
.media.m2 { grid-template-columns: 1fr 1fr; height: 288px; }
.media.m3 { grid-template-columns: 1.35fr 1fr; grid-template-rows: 1fr 1fr; height: 288px; }
.media.m3 .tile:first-child { grid-row: 1 / span 2; }
.media.m4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; height: 288px; }
.tile { position: relative; min-width: 0; min-height: 0; background: var(--card); }
.media.m1 img, .media.m1 video {
  width: 100%;
  max-height: 510px;
  object-fit: contain;
  display: block;
  background: #000;
}
.media.m1 > .tile.has-ratio {
  width: 100%;
  max-height: 125cqi;
  background: #000;
  overflow: hidden;
}
.media.m1 > .tile.has-ratio > img,
.media.m1 > .tile.has-ratio.vplay .vposter,
.media.m1 > .tile.has-ratio.vplay video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  object-position: center;
  background: #000;
}
.media.m1 > .tile.has-ratio.vplay .vposter { object-fit: cover; }
.media.m1 > .tile.has-ratio.is-clamped > img,
.media.m1 > .tile.has-ratio.is-clamped.vplay video,
.media.m1 > .tile.has-ratio.is-clamped.vplay .vposter { object-fit: cover; }
@media (max-width: 699px) {
  .media.m1 > .tile.has-ratio { max-height: 177.78cqi; }
}
.media.m2 img, .media.m2 video, .media.m3 img, .media.m3 video, .media.m4 img, .media.m4 video,
.tile img, .tile video { width: 100%; height: 100%; object-fit: cover; display: block; }
.play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 68px;
  height: 48px;
  margin: 0;
  transform: translate(-50%, -50%);
  border-radius: 12px;
  border: 0;
  background: rgba(33, 33, 33, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  z-index: 3;
  transition: background 0.18s cubic-bezier(0, 0, 0.2, 1), transform 0.18s cubic-bezier(0, 0, 0.2, 1);
}
.play svg { width: 24px; height: 24px; fill: #fff; }
.vplay:hover .play, .play:hover {
  background: #ff0000;
  transform: translate(-50%, -50%) scale(1.08);
}
.alt-badge, .gif-badge {
  position: absolute;
  left: 8px;
  bottom: 8px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 16px;
  border-radius: 4px;
  padding: 0 4px;
}
.gif-badge { left: auto; right: 8px; top: 8px; bottom: auto; }
.vdur {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 2;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  border-radius: 4px;
  padding: 1px 4px;
  pointer-events: none;
}
.vplay { cursor: pointer; background: #000; min-height: 180px; overflow: hidden; }
.media.m1 .vplay { min-height: 0; max-height: none; background: #000; }
.media.m1 > .tile.vplay:not(.has-ratio) { max-height: 510px; }
.vplay .vposter, .media.m1 .vplay .vposter {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center;
  background: #000;
}
.vplay .vposter.face, .yt-thumb img.face {
  filter: blur(16px);
  transform: scale(1.12);
}
.vplay .vdur, .vplay .gif-badge { z-index: 3; }
.vplay video, .vplay iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
  z-index: 1;
}
.vplay video, .media .vplay video { max-height: none; object-fit: cover; object-position: center; }
.vplay iframe { object-fit: contain; }
.vplay .vshield {
  position: absolute;
  inset: 0;
  z-index: 3;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: pointer;
}
.vplay.is-shown .vposter,
.vplay.is-playing.is-shown .vposter,
.vplay.is-shown > .play,
.vplay.is-shown .vdur { visibility: hidden; opacity: 0; pointer-events: none; }
.vplay.is-shown video, .vplay.is-shown iframe, .vplay.is-playing iframe { z-index: 2; }
.vplay.is-playing > .play,
.yt-thumb.is-playing > .play { visibility: hidden; }
.vmute {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 4;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 20, 25, 0.75);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.vmute svg { width: 18px; height: 18px; fill: #fff; }
.vmute[hidden], .vleft[hidden] { display: none !important; }
.vleft {
  position: absolute;
  left: 8px;
  bottom: 8px;
  z-index: 4;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  border-radius: 4px;
  padding: 2px 4px;
  pointer-events: none;
}
.player .vmute, .player .vleft { display: none !important; }
.vplay.is-failed { cursor: default; }
.vplay.is-failed > .play,
.vplay.is-failed .vdur { display: none; }
.vretry {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 3;
  border: 0;
  border-radius: 9999px;
  background: #fff;
  color: #0f1419;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 16px;
  padding: 6px 12px;
}
.vfallback {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  min-height: 72px;
  padding: 28px 88px 12px 12px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.78));
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 20px;
  text-decoration: none;
}
.vfallback[hidden], .vretry[hidden] { display: none !important; }
.player.vplay { min-height: 0; }
.player.vplay .vposter { width: 100%; height: 100%; object-fit: contain; background: #000; }
.tile.broken, .media.broken {
  background: var(--banner);
  min-height: 180px;
}
.media.m1 .tile.broken { min-height: 240px; }
.tile.broken img, .tile.broken video, .media.broken img, .media.broken video { display: none; }
.unavailable {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  color: var(--muted);
  padding: 12px 16px;
  font-size: 15px;
  line-height: 20px;
}
.embed-tile { background: #000; }
.embed-tile iframe {
  width: 100%;
  height: 540px;
  border: 0;
  display: block;
  background: #000;
}
.open-original {
  display: block;
  padding: 10px 12px;
  color: var(--blue);
  font-size: 15px;
}
.tile.broken .open-original { padding: 16px; }
.archive-more {
  padding: 16px;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
}

.quote {
  display: block;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  padding: 12px;
  cursor: pointer;
  color: inherit;
}
.quote:hover { background: var(--hover-soft); }
.quote-head { display: flex; align-items: center; gap: 4px; min-width: 0; }
.quote-head .name {
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
  white-space: nowrap;
}
.quote-head .handle {
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.quote-head .dot, .quote-head .time { color: var(--muted); flex: none; }
.quote-text { margin-top: 2px; }
.quote .ava, .quote .ava img, .quote .initials { width: 20px; height: 20px; font-size: 11px; }
.quote .media { margin-top: 12px; }

.actions {
  display: flex;
  align-items: center;
  margin-top: 4px;
  max-width: 425px;
  color: var(--muted);
}
.action-stats {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  gap: 4px;
}
.action-more {
  display: flex;
  flex: none;
  align-items: center;
  gap: 4px;
  margin-left: 12px;
}
.action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: 0;
  color: inherit;
  font-size: 13px;
  line-height: 16px;
  padding: 8px 0;
  flex: 0 0 auto;
  white-space: nowrap;
  position: relative;
}
.action .count { font-size: 13px; line-height: 16px; }
.action .ic {
  width: 18.75px;
  height: 18.75px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex: none;
}
.action .ic::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 34.75px;
  height: 34.75px;
  border-radius: 9999px;
  transform: translate(-50%, -50%);
  pointer-events: auto;
}
.action svg { width: 18.75px; height: 18.75px; fill: currentColor; }
.action.reply:hover { color: var(--blue); }
.action.reply:hover .ic::after { background: var(--blue-dim); }
.action.repost:hover, .action.repost.on { color: var(--green); }
.action.repost:hover .ic::after { background: var(--green-dim); }
.repost-wrap { position: relative; display: inline-flex; }
.menu.repost-menu {
  left: 0;
  right: auto;
  bottom: calc(100% + 6px);
  top: auto;
  min-width: 168px;
  z-index: 8;
}
.action.like:hover, .action.like.on { color: var(--pink); }
.action.like:hover .ic::after { background: var(--pink-dim); }
.action.views:hover, .action.bookmark:hover, .action.share:hover { color: var(--blue); }
.action.views:hover .ic::after, .action.bookmark:hover .ic::after, .action.share:hover .ic::after { background: var(--blue-dim); }
.action.bookmark.on { color: var(--blue); }
.menu {
  position: absolute;
  right: 8px;
  z-index: 6;
  background: var(--sheet);
  border-radius: 12px;
  box-shadow: 0 0 15px var(--shadow), 0 0 3px 1px var(--shadow-tight);
  overflow: hidden;
  min-width: 180px;
}
.menu button, .menu a {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  color: var(--text);
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 700;
}
.menu button:hover, .menu a:hover { background: var(--hover); }
.post { position: relative; }

.side-search { position: sticky; top: 0; background: var(--bg); padding: 6px 0 12px; z-index: 4; }
.search {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 44px;
  background: var(--search);
  border-radius: 9999px;
  padding: 0 16px;
  border: 1px solid transparent;
}
.search svg { width: 16px; height: 16px; fill: var(--muted); flex: none; }
.search input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: none;
  font-size: 15px;
  height: 40px;
}
.search input::placeholder { color: var(--muted); }
.search:focus-within { background: var(--bg); border-color: var(--blue); }
.search:focus-within svg { fill: var(--blue); }
.card {
  background: var(--card);
  border-radius: 16px;
  margin: 12px 0 16px;
  overflow: hidden;
}
.card h2 {
  margin: 0;
  padding: 12px 16px;
  font-size: 20px;
  line-height: 24px;
  font-weight: 800;
}
.who-row, .list-row, .acct-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  background: transparent;
  border: 0;
  color: inherit;
  text-align: left;
}
.who-main, .list-main { display: flex; gap: 12px; align-items: center; min-width: 0; flex: 1; color: inherit; }
.who-main:hover .name, .acct-row:hover { text-decoration: none; }
a.who-row:hover, .who-row:hover, .list-row:hover, .acct-row:hover { background: var(--hover-soft); }
.add-account { display: flex; gap: 8px; align-items: center; min-width: 0; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.add-account .search { flex: 1; min-width: 0; }
.row-actions { display: flex; align-items: center; flex: none; gap: 12px; }
.row-actions .follow { display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; }
.follow.remove-pill {
  background: transparent;
  color: #f4212e;
  border: 1px solid #f4212e;
  height: 32px;
  padding: 0 16px;
  font-weight: 700;
  font-size: 14px;
  line-height: 16px;
}
.follow.remove-pill:hover {
  background: rgba(244, 33, 46, 0.1);
  color: #f4212e;
  border-color: #f4212e;
}
.who-copy, .list-copy { min-width: 0; overflow: hidden; }
.who-copy .name, .list-copy .name { font-weight: 700; font-size: 15px; display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who-copy .handle, .list-copy .meta { color: var(--muted); font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.show-more-row {
  display: block;
  padding: 16px;
  color: var(--blue);
  font-size: 15px;
}
.show-more-row:hover { background: var(--hover-soft); }
.fineprint { color: var(--muted); font-size: 13px; line-height: 16px; padding: 4px 16px 16px; display: flex; flex-wrap: wrap; gap: 8px 12px; }
.fineprint a:hover { text-decoration: underline; }

a.follow { display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; }
.follow {
  border-radius: 9999px;
  border: 1px solid transparent;
  background: var(--fill);
  color: var(--on-fill);
  font-weight: 700;
  font-size: 14px;
  line-height: 16px;
  height: 32px;
  padding: 0 16px;
  flex: none;
}
.follow:hover { background: var(--fill-hover); }
.follow.lg { height: 36px; font-size: 15px; min-width: 108px; }
.follow.following {
  background: transparent;
  color: var(--text);
  border-color: #536471;
}
.follow.following .u { display: none; }
.follow.following:hover {
  background: rgba(244, 33, 46, 0.1);
  color: var(--red);
  border-color: rgba(244, 33, 46, 0.4);
}
.follow.following:hover .f { display: none; }
.follow.following:hover .u { display: inline; }
.added-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 12px;
  border-radius: 9999px;
  border: 1px solid var(--blue);
  color: var(--blue);
  background: transparent;
  font-weight: 700;
  font-size: 14px;
  line-height: 16px;
  flex: none;
}
.added-from {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 16px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.feed-section { border-bottom: 1px solid var(--line); }
.feed-section h2 {
  margin: 0;
  padding: 12px 16px 4px;
  font-size: 17px;
  line-height: 20px;
}
.acct-row { align-items: flex-start; }
.row-actions { margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 520px) {
  .row-actions { gap: 8px; }
  .added-pill, .row-actions .follow { padding: 0 12px; }
}

.pbanner {
  width: 100%;
  aspect-ratio: 3 / 1;
  background: var(--banner);
  object-fit: cover;
  display: block;
}
.pinfo { padding: 12px 16px 0; position: relative; }
.pava-row { display: flex; align-items: flex-end; justify-content: space-between; margin-top: -67px; min-height: 67px; }
.pactions { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; flex-wrap: nowrap; }
.pactions .outline {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  white-space: nowrap;
  flex: none;
  height: 36px;
  padding: 0 12px;
}
.pava, .pava img {
  width: 134px;
  height: 134px;
  border-radius: 9999px;
  border: 4px solid var(--bg);
  background: var(--bg);
  object-fit: cover;
  display: block;
}
.pava.initials { font-size: 48px; }
.pname { margin: 12px 0 0; font-size: 20px; line-height: 24px; font-weight: 800; display: flex; align-items: center; gap: 4px; }
.phandle { color: var(--muted); font-size: 15px; }
.bio { margin-top: 12px; }
.pmeta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 15px;
}
.pmeta a { color: var(--blue); }
.pmeta a:hover, .counts b { text-decoration: none; }
.pmeta span, .pmeta a { display: inline-flex; align-items: center; gap: 4px; }
.pmeta svg { width: 18px; height: 18px; fill: var(--muted); }
.counts { display: flex; gap: 20px; margin-top: 12px; font-size: 15px; }
.counts b { font-weight: 700; }
.counts span { color: var(--muted); }
.counts a { color: inherit; }
.counts a:hover, .counts a:hover b, .counts a:hover span { text-decoration: underline; }
.connect-row { display: flex; align-items: flex-start; gap: 12px; width: 100%; padding: 12px 16px; }
.connect-row .who-main { align-items: flex-start; }
.connect-row:hover { background: var(--hover-soft); }
.connect-bio { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: normal; color: var(--text); font-size: 15px; line-height: 20px; margin-top: 2px; }
.ptabs {
  position: sticky;
  top: 0;
  z-index: 4;
  background: var(--topbar);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.ptabs::before {
  content: "";
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  top: 0;
  height: 0;
  background: var(--bg);
  pointer-events: none;
}

.status { padding: 12px 16px 8px; }
.status-author { display: flex; gap: 12px; align-items: center; }
.status-author .name { font-weight: 800; font-size: 17px; line-height: 20px; display: flex; align-items: center; gap: 2px; }
.status-text { font-size: 17px; line-height: 24px; margin-top: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.ancestor .post-text { font-size: 15px; line-height: 20px; }
.status-time { margin-top: 16px; color: var(--muted); font-size: 15px; line-height: 20px; }
.status-time a { color: var(--blue); }
.status-views { margin-top: 16px; padding: 16px 0 12px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 15px; }
.status-views b { font-weight: 700; }
.poll { margin-top: 12px; display: flex; flex-direction: column; gap: 4px; pointer-events: none; }
.poll-choice {
  position: relative;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  font-size: 15px;
  line-height: 20px;
}
.poll-bar { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(29, 155, 240, 0.35); }
.poll-label, .poll-pct { position: relative; z-index: 1; }
.poll-pct { color: var(--muted); font-variant-numeric: tabular-nums; }
.poll-total { color: var(--muted); font-size: 13px; line-height: 16px; margin-top: 4px; }
.status .actions { margin-top: 4px; padding-bottom: 4px; }
.status.has-thread { padding-bottom: 0; }
.status-thread { display: flex; gap: 12px; align-items: stretch; }
.status-main { flex: 1; min-width: 0; }
.status.has-thread .status-author { align-items: flex-start; }

.show-thread {
  color: var(--blue);
  font-size: 15px;
  line-height: 20px;
  display: inline-block;
  margin-top: 2px;
}
.show-thread:hover { text-decoration: underline; }

.composer {
  display: flex;
  gap: 12px;
  padding: 12px 16px 16px;
  border-bottom: 1px solid var(--line);
}
.composer-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.composer-placeholder {
  color: var(--muted);
  font-size: 20px;
  line-height: 24px;
  padding: 12px 0 4px;
}
.composer-bar { display: flex; justify-content: flex-end; }
.reply-send {
  background: var(--blue);
  color: #fff;
  border: 0;
  border-radius: 9999px;
  font-weight: 700;
  height: 36px;
  padding: 0 16px;
  opacity: 0.5;
}
.reply-send:disabled { cursor: default; }
.composer.bridge { position: relative; }
.composer.bridge::before {
  content: "";
  position: absolute;
  left: 35px;
  top: -1px;
  bottom: -13px;
  width: 2px;
  background: var(--thread);
  z-index: 0;
}
.composer .ava { position: relative; z-index: 1; }

.reply-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 8px 16px 0;
}
.reply-fresh {
  color: var(--muted);
  font-size: 13px;
  line-height: 16px;
}
.reply-tabs { position: static; }
.source-checked { color: var(--muted); font-size: 13px; padding: 12px 16px 0; }
.source-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.source-state { width: 44px; flex: none; font-size: 13px; font-weight: 700; }
.source-state.up { color: #00ba7c; }
.source-state.down { color: #f4212e; }
.source-name { font-weight: 700; }
.source-detail { color: var(--muted); font-size: 13px; line-height: 18px; margin-top: 2px; }

.reply-empty {
  color: var(--muted);
  text-align: center;
  padding: 32px 16px;
  font-size: 15px;
  line-height: 20px;
}
.reply-card { cursor: pointer; }
@media (hover: hover) {
  .reply-card:hover { background: var(--hover-soft); }
}
.ancestor {
  display: flex;
  gap: 12px;
  padding: 12px 16px 0;
  cursor: pointer;
}
@media (hover: hover) {
  .ancestor:hover { background: var(--hover-soft); }
}
.ancestor-main { flex: 1; min-width: 0; padding-bottom: 12px; }
.ancestor .ava-col { align-self: stretch; }
.ancestor .thread-line, .ancestor-gap .thread-line {
  width: 2px;
  flex: 1;
  min-height: 12px;
  margin-top: 4px;
  background: var(--thread);
}
.ancestor-gap {
  display: flex;
  gap: 12px;
  padding: 0 16px;
  align-items: stretch;
}
.ancestor-more {
  display: block;
  margin: 4px 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--blue);
  font-size: 15px;
  line-height: 20px;
  text-align: left;
  cursor: pointer;
}
.ancestor-more:hover { text-decoration: underline; }
.ancestor-loading {
  color: var(--muted);
  font-size: 13px;
  line-height: 16px;
  margin: 0 16px 8px 68px;
}
.status.has-parent { position: relative; }
.status.has-parent::before {
  content: "";
  position: absolute;
  left: 35px;
  top: 0;
  width: 2px;
  height: 16px;
  background: var(--thread);
}
.show-replies {
  display: block;
  color: var(--blue);
  font-size: 15px;
  line-height: 20px;
  margin: 0 16px 12px 68px;
  text-decoration: none;
}
.show-replies:hover { text-decoration: underline; }
.ava-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 40px;
  flex: none;
}
.post.continues .post-row { align-items: stretch; }
.thread { display: block; }
.thread > .post.continues { border-bottom: 0; }
.thread-line {
  width: 2px;
  background: var(--thread);
  flex: 1;
  min-height: 12px;
  margin-top: 4px;
  border-radius: 1px;
}
.post.continues .thread-line {
  position: absolute;
  left: 35px;
  top: 56px;
  bottom: -13px;
  margin: 0;
  min-height: 0;
  flex: none;
}
.more-replies {
  display: block;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  color: var(--blue);
  font-size: 15px;
  line-height: 20px;
  padding: 16px;
  text-align: center;
}
.more-replies:hover { background: var(--hover-soft); }
.more-replies.spam { color: var(--muted); }

.empty, .error-box {
  padding: 40px 32px;
  text-align: center;
}
.empty h2, .error-box h2 { margin: 8px 0; font-size: 31px; line-height: 36px; font-weight: 800; }
.empty p, .error-box p { color: var(--muted); font-size: 15px; line-height: 20px; margin: 0 auto; max-width: 360px; }
.retry, .primary {
  margin-top: 16px;
  background: var(--blue);
  color: #fff;
  border: 0;
  border-radius: 9999px;
  font-weight: 700;
  height: 36px;
  padding: 0 16px;
}
.import-btn { display: inline-flex; align-items: center; margin-left: 8px; cursor: pointer; }
.empty-action { text-align: center; }
.empty-action .save { margin-top: 16px; }
.explore-form { padding: 4px 16px 12px; }
.list-section h2 {
  margin: 0;
  padding: 16px 16px 4px;
  font-size: 20px;
  line-height: 24px;
  font-weight: 800;
}
.skel { padding: 12px 16px; display: flex; gap: 12px; }
.skel i, .skel .av {
  background: linear-gradient(90deg, var(--card) 25%, var(--line) 37%, var(--card) 63%);
  background-size: 400% 100%;
  animation: skel 1.2s ease infinite;
}
.skel i { display: block; border-radius: 8px; height: 12px; margin: 8px 0; }
.skel .av { width: 40px; height: 40px; border-radius: 9999px; flex: none; }
@keyframes skel { from { background-position: 100% 0; } to { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) {
  .skel i, .skel .av, .center.route-in, .menu.tab-menu { animation: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

.bottom-nav, .fab { display: none; }
.modal-back, .drawer-back {
  position: fixed;
  inset: 0;
  background: rgba(91, 112, 131, 0.4);
  z-index: 30;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 5vh 16px;
}
.share-back {
  position: fixed;
  inset: 0;
  z-index: 35;
  background: transparent;
}
.share-pop {
  position: fixed;
  width: max-content;
  min-width: 260px;
  max-width: min(340px, calc(100vw - 24px));
  background: var(--sheet);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 0 15px var(--shadow), 0 0 3px 1px var(--shadow-tight);
  padding: 4px 0;
}
.share-pop button, .share-pop a {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 12px;
  background: none;
  border: 0;
  color: inherit;
  text-align: left;
  font-size: 15px;
  font-weight: 700;
  padding: 12px 16px;
  min-height: 44px;
  white-space: nowrap;
}
.share-pop button:hover, .share-pop a:hover { background: var(--hover); }
.share-pop svg { width: 18.75px; height: 18.75px; fill: currentColor; flex: none; }
.share-grab { display: none; }
.share-rule { height: 1px; background: var(--line); margin: 4px 0; }
.share-note { margin: 0; padding: 10px 16px 4px; color: var(--muted); font-size: 13px; line-height: 16px; white-space: normal; }
@media (max-width: 499px) {
  .share-back { background: rgba(91, 112, 131, 0.4); }
  .share-pop {
    top: auto !important;
    left: 0 !important;
    right: 0;
    bottom: 0;
    width: 100%;
    min-width: 0;
    max-width: none;
    border-radius: 16px 16px 0 0;
    padding: 0 0 env(safe-area-inset-bottom);
  }
  .share-grab {
    display: block;
    width: 36px;
    height: 4px;
    border-radius: 999px;
    background: #3e4144;
    margin: 8px auto 4px;
  }
}
.modal {
  width: min(600px, 100%);
  background: var(--sheet);
  border-radius: 16px;
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 0 16px var(--shadow);
}
.modal-head {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 53px;
  padding: 0 16px;
  background: var(--sheet);
  z-index: 1;
}
.modal-head h2 { margin: 0; font-size: 20px; flex: 1; }
.save {
  background: var(--fill);
  color: var(--on-fill);
  border: 0;
  border-radius: 9999px;
  font-weight: 700;
  height: 32px;
  padding: 0 16px;
}
.save:hover:not(:disabled) { background: var(--fill-hover); }
.save:disabled { opacity: 0.5; cursor: default; }
.modal-body { padding: 8px 16px 24px; }
.modal-body h3 { margin: 4px 0 8px; font-size: 17px; line-height: 20px; }
.mute-form { display: flex; flex-direction: column; align-items: stretch; gap: 8px; margin: 8px 0 4px; }
.mute-form .search { min-width: 0; }
.mute-form .follow { align-self: flex-start; }
.mute-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.mute-row button { border: 0; background: none; color: var(--red); font-weight: 700; font-size: 13px; }
.field { display: block; margin: 16px 0; }
.field span { display: block; color: var(--muted); font-size: 13px; margin-bottom: 6px; }
.field input, .field textarea, .member-search, .explore-search input {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 8px 0;
  font-size: 17px;
  outline: none;
}
.field textarea { min-height: 80px; resize: vertical; }
.field input:focus, .field textarea:focus { border-bottom-color: var(--blue); }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch {
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  border: 2px solid transparent;
  padding: 0;
}
.swatch.on { border-color: var(--text); }
.danger {
  background: none;
  border: 0;
  color: var(--red);
  font-weight: 700;
  padding: 12px 0;
}
.member-search { margin-bottom: 8px; }
.list-banner { height: 120px; width: 100%; }
.list-body { padding: 12px 16px 0; }
.list-body h1, .list-body h2 { margin: 4px 0; font-size: 20px; line-height: 24px; }
.outline {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  border-radius: 9999px;
  font-weight: 700;
  height: 36px;
  padding: 0 16px;
}
.outline:hover { background: var(--hover); }
.list-tools { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 8px 0 12px; }
.pin.on { color: var(--blue); }
.color-chip { width: 48px; height: 48px; border-radius: 12px; flex: none; }

.drawer-back { justify-content: flex-start; padding: 0; background: rgba(0, 0, 0, 0.4); }
.drawer {
  width: min(280px, 80vw);
  height: 100%;
  background: var(--sheet);
  padding: 12px 0 24px;
  overflow: auto;
}
.drawer a, .drawer button.linky {
  display: flex;
  width: 100%;
  gap: 16px;
  align-items: center;
  background: none;
  border: 0;
  color: inherit;
  font-size: 20px;
  font-weight: 700;
  padding: 14px 20px;
  text-align: left;
}
.drawer a:hover, .drawer button.linky:hover { background: var(--hover); }
.drawer a svg, .drawer button svg { width: 24px; height: 24px; fill: currentColor; }

#toast {
  position: fixed;
  left: 50%;
  bottom: 80px;
  transform: translateX(-50%);
  background: var(--blue);
  color: #fff;
  border-radius: 8px;
  padding: 12px 16px;
  z-index: 40;
  font-weight: 700;
}
#hover { position: fixed; z-index: 25; width: 300px; }
.hcard {
  background: var(--sheet);
  border-radius: 16px;
  box-shadow: 0 0 15px var(--shadow), 0 0 3px 1px var(--shadow-tight);
  overflow: hidden;
}
.hcard .hbanner { height: 84px; background: var(--banner); }
.hcard .hbody { padding: 0 12px 12px; }
.hcard .pava-row { margin-top: -30px; min-height: 40px; }
.hcard .pava, .hcard .pava img { width: 64px; height: 64px; border-width: 3px; }
.hbio { margin-top: 8px; font-size: 15px; line-height: 20px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pfollow-note { margin: 10px 0 0; color: var(--muted); font-size: 13px; line-height: 18px; }
.live-more { padding: 16px; text-align: center; color: var(--muted); font-size: 14px; }
.yt-c-name a { color: inherit; }

@media (max-width: 1279px) {
  .nav-split { display: none; }
}
@media (max-width: 1279px) and (min-width: 500px) {
  .nav { width: 88px; flex-basis: 88px; padding: 0 4px; align-items: center; }
  .nav-scroll { align-items: center; }
  .logo { width: 50px; height: 50px; margin: 2px 0; padding: 0; justify-content: center; }
  .logo .logo-full, .logo .logo-short { display: none; }
  .logo .logo-si { display: block; height: 26px; width: auto; }
  .nav-label, .account-meta, .post-label, .account-pill .dots { display: none; }
  .nav-item { width: 50px; height: 50px; justify-content: center; padding: 0; gap: 0; }
  .post-btn { width: 50px; height: 50px; padding: 0; max-width: none; }
  .post-btn .post-label { display: none; }
  .post-btn .post-ico { display: block; width: 24px; height: 24px; margin: 0 auto; fill: var(--on-fill); }
  .account-pill { width: 50px; height: 50px; justify-content: center; padding: 0; }
  .nav-folder-wrapper { align-items: center; }
  .nav-folder-head { width: 50px; height: 50px; justify-content: center; }
  .nav-folder-btn { width: 50px; height: 50px; justify-content: center; padding: 0; gap: 0; border-radius: 9999px; }
  .nav-folder-btn .nav-ico { margin-right: 0; }
  .nav-folder-count, .nav-folder-caret, .nav-folder-rename-btn, .nav-folder-rename-form { display: none !important; }
  .nav-folder-children-inner {
    align-items: center;
    margin: 4px auto 6px;
    padding: 6px 0;
    width: 58px;
    border-left: 0;
    background: var(--card, rgba(255, 255, 255, 0.05));
    border: 1px solid var(--border);
    border-radius: 29px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.25);
    gap: 4px;
  }
  .nav-folder-child { width: 50px; height: 50px; justify-content: center; padding: 0; gap: 0; }
  .nav-customize-btn { width: 50px; height: 50px; justify-content: center; padding: 0; gap: 0; }
  .center { width: auto; flex: 1 1 0%; max-width: none; min-width: 0; }
}
@media (max-width: 999px) {
  .side {
    display: none;
    width: 0;
    flex: 0 0 0px;
    min-width: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
  }
}
@media (min-width: 1000px) and (max-width: 1279px) {
  .side { display: block; width: 320px; flex: 0 0 320px; min-width: 0; padding-left: 16px; }
  .center { width: auto; flex: 1 1 0%; max-width: none; min-width: 0; }
}
@media (max-width: 499px) {
  .nav, .side { display: none; }
  .app { max-width: none; }
  .center {
    width: 100%;
    flex: 1 1 auto;
    border: 0;
    max-width: none;
    padding-top: var(--top);
  }
  .topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    transition: transform 0.2s ease;
  }
  .topbar.is-hidden { transform: translateY(calc(-100% + env(safe-area-inset-top))); }
  .topbar {
    padding-top: env(safe-area-inset-top);
    padding-left: var(--safe-l, env(safe-area-inset-left, 0px));
    padding-right: var(--safe-r, env(safe-area-inset-right, 0px));
  }
  .center { padding-top: calc(var(--top) + env(safe-area-inset-top)); overscroll-behavior: contain; }
  .center { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .modal-body { padding-bottom: 72px; }
  .mhead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 53px;
    padding: 0 16px;
    position: relative;
  }
  .m-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    height: 32px;
    color: #fff;
    text-decoration: none;
  }
  .m-logo .logo-full { display: none; }
  .m-logo .logo-short { display: block; height: 22px; width: auto; max-width: 70vw; }
  .m-ava, .m-icon, .icon-btn, .more-btn, .tab-caret {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
  }
  .m-ava .ava, .m-ava .initials { width: 32px; height: 32px; font-size: 14px; }
  .m-logo { min-height: 44px; }
  .action { min-width: 44px; min-height: 44px; }
  .x-tooltip { display: none !important; }
  .bottom-nav {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(53px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    padding-left: var(--safe-l, env(safe-area-inset-left, 0px));
    padding-right: var(--safe-r, env(safe-area-inset-right, 0px));
    background: var(--topbar);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
    z-index: 20;
    justify-content: space-around;
    align-items: center;
  }
  .bottom-nav a {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    border-radius: 9999px;
  }
  .bottom-nav a.on { color: var(--text); }
  .bottom-nav svg { width: 26.25px; height: 26.25px; fill: currentColor; }
  .fab {
    display: flex;
    position: fixed;
    right: 20px;
    bottom: calc(69px + env(safe-area-inset-bottom));
    width: 56px;
    height: 56px;
    padding: 0;
    border-radius: 9999px;
    border: 0;
    background: var(--blue);
    color: #fff;
    align-items: center;
    justify-content: center;
    z-index: 21;
    box-shadow: 0 2px 8px rgba(29, 155, 240, 0.45);
  }
  .fab svg { width: 24px; height: 24px; fill: #fff; }
  .pava-row { margin-top: -40px; }
  .pactions { margin-bottom: 4px; }
  .pava, .pava img { width: 80px; height: 80px; }
  .pava.initials { font-size: 28px; }
  .ptabs { top: 53px; }
  .topbar.is-hidden ~ .ptabs, .profile-bar.is-hidden ~ .ptabs { top: 0; }
  .topbar.is-hidden ~ .ptabs::before, .profile-bar.is-hidden ~ .ptabs::before {
    height: calc(env(safe-area-inset-top, 0px) + 1px);
  }
  .post { padding: 12px 16px 4px; }
  .modal-back { padding: 0; align-items: stretch; }
  .modal { width: 100%; max-height: none; height: 100%; border-radius: 0; }
  .empty h2 { font-size: 23px; line-height: 28px; }
  #toast { bottom: calc(76px + env(safe-area-inset-bottom)); }
}

.app.wide { max-width: 1750px; }
.app.wide .center { width: auto; flex: 1 1 auto; max-width: none; border-right: 0; }
.subs .page-head h1 { margin-right: auto; }
.subs-feed { display: flow-root; min-width: 0; }
.yt-toggle { display: flex; gap: 4px; margin-left: auto; }
.yt-toggle button, .text-btn {
  border: 0;
  background: transparent;
  color: var(--text);
  border-radius: 999px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.yt-toggle button:hover, .text-btn:hover, .pill:hover { background: var(--hover); }
.yt-toggle button.on { background: var(--blue-dim); color: var(--blue); }
.yt-toggle svg { width: 20px; height: 20px; fill: currentColor; }
.yt-chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  overflow-x: auto;
  overflow-anchor: none;
  touch-action: pan-x pan-y;
  padding: 12px;
  position: sticky;
  top: 53px;
  z-index: 4;
  background: var(--bg);
  scrollbar-width: none;
  transition: top 0.2s ease;
}
.yt-chips::-webkit-scrollbar { display: none; }
.yt-chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  max-width: 240px;
}
.yt-chip span { overflow: hidden; text-overflow: ellipsis; }
.yt-chip.on { background: var(--fill); color: var(--on-fill); border-color: transparent; }
.yt-chip svg { width: 18px; height: 18px; fill: currentColor; }
.yt-chip, .yt-card, .yt-item, .short-card, .yt-ch { -webkit-touch-callout: none; }
.chip-icon, .collage { width: 20px; height: 20px; border-radius: 4px; flex: none; object-fit: cover; }
.collage { display: grid; overflow: hidden; background: var(--search); }
.collage.one { grid-template-columns: 1fr; }
.collage.two { grid-template-columns: 1fr 1fr; }
.collage.four { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.collage img { width: 100%; height: 100%; object-fit: cover; display: block; }
.collage.lg, .chip-icon.lg { width: 64px; height: 64px; border-radius: 8px; }
.group-face { display: flex; justify-content: center; padding: 8px 0; min-height: 64px; }
.group-pick {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  background: none;
  border: 0;
  color: inherit;
  text-align: left;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.group-pick .who-copy { flex: 1; }
.group-pick .tick {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  border: 2px solid var(--muted);
  flex: none;
  margin-left: auto;
  box-sizing: border-box;
}
.group-pick.on .tick { background: var(--fill); border-color: var(--fill); }
.group-pick.on .tick::after {
  content: "";
  display: block;
  width: 5px;
  height: 9px;
  margin: 2px auto 0;
  border: solid var(--on-fill);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.group-sheet .outline { display: flex; align-items: center; justify-content: center; width: 100%; margin: 12px 0 4px; }
.group-save {
  display: block;
  margin: 0 16px 8px;
  background: none;
  border: 0;
  color: var(--blue);
  font-weight: 700;
  font-size: 14px;
  padding: 4px 0;
}
.group-menu {
  position: fixed;
  z-index: 40;
  min-width: 220px;
  max-width: min(320px, calc(100vw - 16px));
  background: var(--sheet);
  border-radius: 12px;
  box-shadow: 0 0 15px var(--shadow), 0 0 3px 1px var(--shadow-tight);
  overflow: hidden;
}
.group-menu button {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 12px;
  background: none;
  border: 0;
  color: inherit;
  text-align: left;
  font-size: 15px;
  font-weight: 700;
  padding: 12px 16px;
  min-height: 44px;
}
.group-menu button:hover { background: var(--hover); }
.group-menu button:disabled { opacity: 0.4; }
.group-menu button[aria-pressed="true"]::after {
  content: "";
  width: 8px;
  height: 14px;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-left: auto;
}
.group-menu-title { padding: 12px 16px 4px; font-weight: 800; }
.group-menu-empty { padding: 8px 16px; color: var(--muted); }
.remove-back { align-items: center; justify-content: center; padding: 16px; }
.remove-sheet {
  width: 320px;
  max-width: 100%;
  height: auto;
  padding: 32px;
  border-radius: 16px;
}
.remove-grab { display: none; }
.remove-sheet h2 { margin: 0; font-size: 20px; line-height: 24px; font-weight: 800; }
.remove-sheet p { margin: 8px 0 0; color: var(--muted); font-size: 15px; line-height: 20px; }
.remove-go, .remove-cancel {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 44px;
  margin: 0;
  padding: 0 16px;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 15px;
  line-height: 20px;
}
.remove-go { margin-top: 24px; background: #f4212e; color: #fff; border: 1px solid transparent; }
.remove-go:hover { background: #dc1e28; }
.remove-cancel { margin-top: 12px; background: transparent; color: var(--text); border: 1px solid #536471; }
.remove-cancel:hover { background: var(--hover); }
@media (max-width: 499px) {
  .yt-chips { top: calc(var(--top) + env(safe-area-inset-top)); }
  .topbar.is-hidden ~ .yt-chips { top: env(safe-area-inset-top); }
  .modal-back:has(.group-sheet) { align-items: flex-end; padding: 0; }
  .modal.group-sheet { height: auto; max-height: 88vh; border-radius: 16px 16px 0 0; width: 100%; }
  .modal-back.remove-back { align-items: flex-end; justify-content: center; padding: 0; }
  .modal.remove-sheet {
    width: 100%;
    height: auto;
    max-height: none;
    border-radius: 16px 16px 0 0;
    padding: 8px 32px calc(32px + env(safe-area-inset-bottom));
    animation: remove-sheet-in 0.2s ease;
  }
  .remove-grab {
    display: block;
    width: 36px;
    height: 4px;
    border-radius: 999px;
    background: #536471;
    margin: 4px auto 16px;
  }
}
@keyframes remove-sheet-in {
  from { transform: translateY(100%); }
  to { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .modal.remove-sheet { animation: none; }
  .yt-chips { transition: none; }
}
@media (max-width: 499px) {
  .group-menu {
    top: auto !important;
    left: 0 !important;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: none;
    border-radius: 16px 16px 0 0;
    padding-bottom: env(safe-area-inset-bottom);
  }
}
.yt-strip {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  overflow-x: auto;
  padding: 12px 12px 4px;
  scrollbar-width: none;
}
.yt-strip::-webkit-scrollbar { display: none; }
.yt-ch {
  width: 84px;
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 16px;
  text-align: center;
  padding: 4px;
  border-radius: 12px;
}
.yt-ch .ch-name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  width: 76px;
  height: 32px;
  max-height: 32px;
  line-height: 16px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  text-align: center;
  overflow-wrap: break-word;
}
.yt-ch:hover { background: var(--hover); }
.yt-ch.on { color: var(--text); font-weight: 500; }
.yt-ch .ava, .yt-ch .ava img, .yt-all {
  width: 56px;
  height: 56px;
  border-radius: 50%;
}
.yt-all {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--search);
  color: var(--text);
  font-weight: 700;
}
.yt-ch.on .ava, .yt-ch.on .yt-all { outline: 2px solid var(--text); outline-offset: 2px; }
.yt-sec { padding: 8px 16px 20px; }
.yt-sec h2 { margin: 8px 0 12px; font-size: 16px; line-height: 22px; font-weight: 700; }
.yt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px 16px; }
.yt-card { display: block; color: inherit; }
.yt-thumb { position: relative; aspect-ratio: 16 / 9; background: var(--banner); border-radius: 12px; overflow: hidden; }
.yt-thumb.vplay { min-height: 0; background: var(--banner); }
.yt-thumb img, .yt-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.yt-thumb > img { position: absolute; inset: 0; z-index: 2; }
.yt-thumb video, .yt-thumb iframe { position: absolute; inset: 0; z-index: 1; border: 0; background: #000; }
.yt-thumb .plat, .yt-thumb .yt-time { z-index: 3; }
.yt-thumb.is-shown > img { visibility: hidden; }
.yt-thumb.is-shown video, .yt-thumb.is-shown iframe { z-index: 2; }
.yt-thumb.broken img, .yt-thumb.broken video { display: none; }
.yt-time {
  position: absolute;
  right: 4px;
  bottom: 4px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  padding: 1px 4px;
  border-radius: 4px;
}
.plat {
  position: absolute;
  left: 4px;
  top: 4px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 11px;
  line-height: 16px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
}
.yt-meta { display: flex; gap: 12px; margin-top: 12px; }
.yt-ava, .yt-meta .ava, .yt-meta .ava img { width: 36px; height: 36px; }
.yt-copy { min-width: 0; }
.yt-title {
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.yt-card:hover .yt-title { background: transparent; }
.yt-by, .yt-sub { color: var(--muted); font-size: 12px; line-height: 18px; }
.yt-by { display: flex; align-items: center; gap: 2px; }
.subs.list .yt-grid { display: flex; flex-direction: column; gap: 8px; }
.subs.list .yt-card { display: grid; grid-template-columns: minmax(240px, 360px) minmax(0, 1fr); gap: 16px; align-items: start; padding: 8px; border-radius: 12px; }
.subs.list .yt-card:hover { background: var(--hover); }
.subs.list .yt-meta { margin-top: 0; }
.subs.list .yt-open { min-width: 0; }
.shorts { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; }
.shorts::-webkit-scrollbar { display: none; }
.short-card { width: 168px; flex: none; color: inherit; }
.short-card .yt-thumb { aspect-ratio: 9 / 16; border-radius: 12px; }
.short-card .yt-title { margin-top: 8px; font-size: 14px; }
.watch { display: grid; grid-template-columns: minmax(0, 1fr) 402px; gap: 24px; padding: 12px 24px 48px; align-items: start; }
.player { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 16px; overflow: visible; }
.player iframe, .player video, .player img, .player .html5-video-player { width: 100%; height: 100%; border: 0; display: block; object-fit: contain; background: #000; border-radius: 16px; }
.player .html5-video-container { border-radius: 16px; overflow: hidden; }
.player.is-playing .vposter, .player.is-playing > .play, .player.is-playing .vdur { display: none !important; }
.watch-title { margin: 12px 0; font-size: 20px; line-height: 28px; font-weight: 700; }
.watch-chan { display: flex; align-items: center; gap: 12px; }
.watch-who { min-width: 0; margin-right: auto; }
.watch-who .name { font-weight: 700; display: flex; align-items: center; gap: 4px; }
.text-btn { width: auto; height: auto; padding: 8px 0; color: var(--text); font-weight: 700; gap: 6px; }
.text-btn svg { width: 18px; height: 18px; fill: currentColor; }
.pills { display: flex; gap: 8px; overflow-x: auto; margin: 12px 0; min-width: 0; scrollbar-width: none; }
.pill, .pill-group { display: inline-flex; align-items: center; gap: 6px; background: var(--search); border: 0; border-radius: 999px; color: var(--text); font-weight: 700; font-size: 14px; }
.pill { height: 36px; padding: 0 16px; }
.pill svg, .yt-c-likes svg { width: 18px; height: 18px; fill: currentColor; }
.pill.on { color: var(--blue); }
.pill-group .pill { background: transparent; border-radius: 0; }
.pill-group .pill + .pill { border-left: 1px solid var(--line); }
.desc { background: var(--search); border-radius: 12px; padding: 12px; margin-top: 8px; }
.desc.clamped .desc-body { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.desc-body { white-space: pre-wrap; margin-top: 8px; }
.watch-comments { margin-top: 24px; }
.watch-comments h3 { margin: 0 0 12px; font-size: 16px; }
.yt-c { display: flex; gap: 12px; padding: 10px 0; }
.yt-c .ava, .yt-c .ava img { width: 40px; height: 40px; }
.yt-c-main { min-width: 0; }
.yt-c-name { font-size: 13px; font-weight: 700; }
.yt-c-name span, .yt-c-likes { color: var(--muted); font-weight: 400; font-size: 12px; }
.yt-c-main p { margin: 4px 0; white-space: pre-wrap; }
.yt-c-likes { display: flex; align-items: center; gap: 6px; }
.yt-replies { border: 0; background: transparent; color: var(--blue); font-weight: 700; padding: 6px 0; }
.yt-kids { margin-left: 16px; }
.upnext h2 { margin: 0 0 12px; font-size: 16px; }
.up-row { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 8px; margin-bottom: 8px; padding: 4px; border-radius: 12px; }
.up-row:hover { background: var(--hover); }
@media (max-width: 1279px) and (min-width: 500px) {
  .app.wide .center { width: auto; max-width: none; flex: 1 1 auto; }
}
@media (max-width: 1099px) {
  .watch { grid-template-columns: 1fr; padding: 0 0 32px; }
  .watch-main { padding: 0; min-width: 0; }
  .watch-main > :not(.player) { margin-left: 12px; margin-right: 12px; }
  .player { border-radius: 0; margin: 0; width: 100%; }
  .upnext { padding: 0 12px; min-width: 0; }
}

.center.route-in { animation: route-in 180ms ease; }
@keyframes route-in { from { opacity: 0; } to { opacity: 1; } }

.wco { display: none; background: var(--bg); }
.wco-title {
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 12px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.2px;
  color: var(--text);
  pointer-events: none;
}
@media (display-mode: window-controls-overlay) {
  .wco {
    display: block;
    background: var(--bg);
    position: fixed;
    left: env(titlebar-area-x, 0);
    top: env(titlebar-area-y, 0);
    width: env(titlebar-area-width, 100%);
    height: env(titlebar-area-height, 40px);
    z-index: 40;
    app-region: drag;
    -webkit-app-region: drag;
    border-bottom: 1px solid var(--line);
  }
  .nav { padding-top: env(titlebar-area-height, 40px); }
}
#install-banner {
  position: fixed;
  z-index: 80;
  left: 12px;
  right: 12px;
  bottom: calc(64px + env(safe-area-inset-bottom));
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.install-card {
  pointer-events: auto;
  width: min(420px, 100%);
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
  padding: 14px 14px 12px;
}
.install-card b { display: block; font-size: 17px; }
.install-card ol { margin: 8px 0 0; padding-left: 18px; }
.install-actions { display: flex; gap: 8px; margin-top: 12px; }
.install-actions button {
  height: 34px;
  border-radius: 999px;
  padding: 0 14px;
  font-weight: 700;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
}
.install-actions button:first-child { background: var(--text); color: var(--bg); border-color: transparent; }
#native-pip, #native-pressure {
  position: fixed;
  z-index: 70;
  right: 12px;
  bottom: calc(72px + env(safe-area-inset-bottom));
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 700;
  background: #000;
  color: #fff;
}
#native-pressure {
  left: 12px;
  right: 12px;
  bottom: auto;
  top: calc(8px + env(safe-area-inset-top));
  text-align: center;
  background: #111;
  border: 1px solid var(--line);
}
@media (display-mode: standalone), (display-mode: window-controls-overlay) {
  .topbar { padding-top: env(safe-area-inset-top); }
  .bottom-nav { padding-bottom: env(safe-area-inset-bottom); height: calc(53px + env(safe-area-inset-bottom)); }
}
@media (max-width: 499px), (display-mode: standalone), (display-mode: window-controls-overlay) {
  body::before {
    content: "";
    position: fixed;
    z-index: 8;
    top: 0;
    left: 0;
    right: 0;
    height: calc(env(safe-area-inset-top, 0px) + 1px);
    background: var(--bg);
    pointer-events: none;
  }
  .topbar {
    background:
      linear-gradient(var(--bg), var(--bg)) 0 0 / 100% calc(env(safe-area-inset-top, 0px) + 1px) no-repeat,
      var(--topbar);
  }
  .topbar::before { height: calc(env(safe-area-inset-top, 0px) + 1px); }
}

.home-fresh {
  position: sticky;
  top: 0;
  height: 0;
  z-index: 6;
  overflow: visible;
  pointer-events: none;
}
.home-fresh > span {
  display: block;
  height: 3px;
  width: 35%;
  background: var(--blue);
  animation: home-fresh 0.9s ease-in-out infinite;
}
@keyframes home-fresh {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}

#pull {
  position: fixed;
  left: 50%;
  top: calc(12px + env(safe-area-inset-top));
  z-index: 30;
  width: 32px;
  height: 32px;
  margin-left: -16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}
#pull.on { opacity: 1; }
.spin {
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid rgba(29, 155, 240, 0.25);
  border-top-color: var(--blue);
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

#new-posts {
  position: fixed;
  left: 50%;
  top: calc(64px + env(safe-area-inset-top));
  transform: translateX(-50%);
  z-index: 24;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue);
  color: #fff;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  padding: 6px 16px 6px 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
#new-posts[hidden] { display: none; }
html.tv-on #new-posts { display: none; }
.pill-faces { display: inline-flex; align-items: center; }
.pill-ava {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid var(--bg);
  margin-left: -8px;
  background: #1d9bf0;
}
.pill-faces .pill-ava:first-child { margin-left: 0; }
.reply-context {
  margin: 0 0 8px 52px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 8px 12px;
}
#offline {
  position: fixed;
  left: 50%;
  right: auto;
  bottom: calc(66px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 30;
  width: max-content;
  max-width: calc(100vw - 32px);
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
  text-align: center;
  font-weight: 700;
  font-size: 13px;
  line-height: 18px;
  padding: 8px 14px;
}
#offline[hidden] { display: none; }
#update {
  position: fixed;
  top: calc(12px + env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  z-index: 45;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--blue);
  color: #fff;
  border-radius: 999px;
  font-weight: 700;
  padding: 8px 8px 8px 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  white-space: nowrap;
}
#update[hidden] { display: none; }
#autoplay-debug {
  position: fixed;
  left: 8px;
  right: 8px;
  bottom: calc(64px + env(safe-area-inset-bottom));
  z-index: 40;
  max-height: 40vh;
  overflow: auto;
  margin: 0;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(15, 20, 25, 0.92);
  color: #fff;
  font: 11px/16px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre-wrap;
  pointer-events: none;
}
#update button {
  border: 0;
  background: #fff;
  color: #0f1419;
  border-radius: 999px;
  font-weight: 800;
  padding: 6px 12px;
}
#viewer {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: none;
  overscroll-behavior: none;
}
#viewer[hidden] { display: none; }
#viewer img, #viewer video {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  background: #000;
}
#viewer video { width: 100%; height: 100%; }
#viewer .html5-video-player { width: 100%; height: 100%; max-width: 100%; max-height: 100%; }
.viewer-x {
  z-index: 1000001 !important;
  position: absolute;
  top: calc(12px + env(safe-area-inset-top));
  left: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 20, 25, 0.75);
  color: #fff;
  font-size: 22px;
  line-height: 36px;
}
.viewer-count {
  position: absolute;
  top: calc(18px + env(safe-area-inset-top));
  left: 0;
  right: 0;
  text-align: center;
  color: #fff;
  font-weight: 700;
  pointer-events: none;
}
@media (min-width: 500px) {
  #offline { bottom: 24px; }
}
.install-sheet { display: flex; flex-direction: column; gap: 12px; }
.install-step { display: flex; gap: 12px; align-items: center; font-size: 17px; font-weight: 700; }
.install-step span {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.theme-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 16px; }
.theme-row button.on { background: var(--blue); color: #fff; border-color: var(--blue); }

@media (max-width: 499px) {
  .yt-grid, .subs.list .yt-grid { display: flex; flex-direction: column; gap: 16px; }
  .subs.list .yt-card { grid-template-columns: 1fr; padding: 0; }
  .subs.list .yt-card:hover { background: transparent; }
  .yt-sec { padding: 8px 12px 16px; }
  .short-card { width: 45vw; }
  .watch-title { font-size: 18px; line-height: 26px; }
}

.subs.grid .yt-grid {
  display: grid;
  position: relative;
  z-index: 0;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  column-gap: 16px;
  row-gap: 0;
}
.subs.grid .yt-item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  column-gap: 12px;
  grid-template-rows: subgrid;
  grid-row: span 4;
  min-width: 0;
  cursor: pointer;
  color: inherit;
}
.subs.grid .yt-label,
.subs.grid .yt-shot { grid-column: 1 / -1; min-width: 0; }
.subs.grid .yt-label { grid-row: 1; }
.subs.grid .yt-label:empty { margin: 0; padding: 0; font-size: 0; line-height: 0; }
.subs.grid .yt-shot { grid-row: 2; display: block; }
.subs.grid .yt-label .repost-line {
  display: flex;
  margin: 0 0 8px;
  min-width: 0;
  max-width: 100%;
}
.subs.grid .yt-label .repost-line svg { flex: none; }
.subs.grid .yt-label .repost-line a,
.subs.grid .yt-label .repost-line span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.subs.grid .yt-face {
  grid-column: 1;
  grid-row: 3 / span 2;
  align-self: start;
  margin-top: 12px;
  width: 36px;
  height: 36px;
}
.subs.grid .yt-face .ava,
.subs.grid .yt-face .ava img { width: 36px; height: 36px; }
.subs.grid .yt-title-link {
  grid-column: 2;
  grid-row: 3;
  min-width: 0;
  margin-top: 12px;
  height: 40px;
  overflow: hidden;
}
.subs.grid .yt-item .yt-title {
  height: 40px;
  min-height: 40px;
  max-height: 40px;
  line-height: 20px;
}
.subs.grid .yt-lines {
  grid-column: 2;
  grid-row: 4;
  min-width: 0;
  padding-bottom: 24px;
}
.subs.grid .yt-by,
.subs.grid .yt-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.subs.grid .yt-by a {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.subs.grid .yt-by .vbadge { flex: none; }
.subs.grid .yt-lines .quote { margin-top: 8px; }

.post-text .tg-spoiler, .status-text .tg-spoiler, .tg-spoiler {
  background: var(--muted);
  color: transparent;
  border-radius: 4px;
  cursor: pointer;
  padding: 0 2px;
}
.tg-spoiler.open { background: transparent; color: inherit; }
.tg-emoji { width: 1.15em; height: 1.15em; vertical-align: -0.15em; display: inline-block; }
.post-text b, .status-text b { font-weight: 700; }
.post-text i, .status-text i { font-style: italic; }
.post-text u, .status-text u { text-decoration: underline; }
.post-text s, .status-text s { text-decoration: line-through; }
.post-text code, .status-text code, .post-text pre, .status-text pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
}
.post-text pre, .status-text pre {
  white-space: pre-wrap;
  margin: 4px 0;
  padding: 8px;
  border-radius: 8px;
  background: var(--hover-soft);
}
.post-text blockquote, .status-text blockquote {
  margin: 4px 0;
  padding-left: 10px;
  border-left: 3px solid var(--line);
}
.edited { color: var(--muted); font-size: 13px; }
.file-card, .link-card {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}
.file-card { padding: 12px; }
.file-kind { color: var(--muted); font-size: 13px; font-weight: 700; }
.file-title { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-extra { color: var(--muted); font-size: 13px; margin-left: auto; }
.link-card-img { width: 120px; height: 120px; object-fit: cover; flex: none; background: var(--hover-soft); }
.link-card-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 10px 12px 10px 0; }
.link-card:not(:has(.link-card-img)) .link-card-copy { padding-left: 12px; }
.link-site { color: var(--muted); font-size: 13px; }
.link-title { font-weight: 700; }
.link-desc { color: var(--muted); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile.round { border-radius: 999px; aspect-ratio: 1; max-width: 280px; overflow: hidden; }
.tile.round .vposter, .tile.round video { border-radius: 999px; object-fit: cover; }
.pbanner.theme { background: var(--banner); }
.tg-comments { border-top: 1px solid var(--line); }
.tg-comments iframe { width: 100%; height: 480px; border: 0; background: var(--bg); }
.poll-question { font-weight: 700; margin-bottom: 4px; }

.nav-ico { position: relative; display: inline-flex; }
.nav-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}
.notify-bell {
  width: 36px;
  height: 36px;
  box-sizing: border-box;
  border-radius: 999px;
  border: 1px solid var(--bell-border);
  background: transparent;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  padding: 0;
}
.notify-bell:hover, .notify-bell[aria-expanded="true"] { background: var(--hover); }
.notify-bell svg { width: 18px; height: 18px; fill: currentColor; }
.notify-bell .bell-add, .notify-bell .bell-on { display: none; }
.notify-bell:hover .bell-off, .notify-bell:focus-visible .bell-off { display: none; }
.notify-bell:hover .bell-add, .notify-bell:focus-visible .bell-add { display: inline-flex; }
.notify-bell.on .bell-off, .notify-bell.on .bell-add { display: none; }
.notify-bell.on .bell-on { display: inline-flex; }
.notify-bell.on:hover .bell-add, .notify-bell.on:focus-visible .bell-add { display: none; }
.notify-bell.on:hover .bell-on, .notify-bell.on:focus-visible .bell-on { display: inline-flex; }
.bell-sheet { position: fixed; inset: 0; z-index: 45; background: transparent; }
.menu.bell-menu {
  position: fixed;
  z-index: 46;
  width: max-content;
  min-width: 280px;
  max-width: min(360px, calc(100vw - 16px));
  max-height: min(80vh, 640px);
  overflow: auto;
  background: var(--sheet);
  color: var(--text);
  border-radius: 16px;
  box-shadow: 0 0 15px var(--shadow), 0 0 3px 1px var(--shadow-tight);
  padding: 8px 0 4px;
}
.bell-grab { display: none; }
.bell-choice {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  background: none;
  border: 0;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  text-align: left;
}
.bell-choice:hover { background: var(--hover); }
.bell-choice-ico, .bell-mark { width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.bell-choice-ico svg, .bell-mark svg { width: 20px; height: 20px; fill: currentColor; }
.bell-choice-label { flex: 1; min-width: 0; }
.bell-mark { color: var(--blue); }
.bell-note { margin: 4px 16px 12px; color: var(--muted); font-size: 13px; line-height: 16px; }
.note-row { display: flex; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.note-ico { width: 32px; flex: none; color: var(--blue); padding-top: 2px; }
.note-ico svg { width: 24px; height: 24px; fill: currentColor; }
.note-main { color: inherit; min-width: 0; flex: 1; }
.note-main:hover { text-decoration: none; }
.note-title { font-weight: 700; font-size: 15px; line-height: 20px; }
.note-post { display: flex; gap: 10px; margin-top: 8px; min-width: 0; }
.note-copy { min-width: 0; flex: 1; }
.note-copy b { font-size: 15px; }
.note-copy p { margin: 4px 0 0; font-size: 15px; line-height: 20px; }
.note-img { display: block; width: 100%; max-height: 180px; object-fit: cover; border-radius: 12px; margin-top: 8px; }
@media (max-width: 499px) {
  .bell-sheet { background: rgba(91, 112, 131, 0.4); }
  .menu.bell-menu {
    top: auto !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0;
    width: 100%;
    min-width: 0;
    max-width: none;
    border-radius: 16px 16px 0 0;
    box-shadow: none;
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
  }
  .bell-grab {
    display: flex;
    justify-content: center;
    padding: 10px 0 6px;
  }
  .bell-grab::before {
    content: "";
    width: 36px;
    height: 4px;
    border-radius: 999px;
    background: var(--muted);
  }
}
.app.explore-mode { max-width: none; }
.app.explore-mode .side { display: none; }
.app.explore-mode .center {
  width: auto;
  max-width: none;
  flex: 1 1 auto;
  border-right: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.ghome {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100%;
}
.ghome-mid {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: calc(33vh - 36px) 20px 32px;
}
.ghome-logo { color: #fff; margin: 0 0 28px; line-height: 0; }
.ghome-logo svg, .gresults-logo svg { display: block; width: auto; fill: currentColor; }
.ghome-logo svg { height: clamp(44px, 8vw, 78px); max-width: min(92vw, 540px); }
html[data-theme="default"] .ghome-logo,
html[data-theme="default"] .gresults-logo { color: #000; }
.gform { width: min(584px, 100%); }
.gform-box { position: relative; width: 100%; }
.search.gsearch {
  height: 48px;
  width: 100%;
  padding: 0 8px 0 18px;
  gap: 10px;
  background: var(--search);
  border: 1px solid transparent;
}
.search.gsearch input {
  font-family: var(--font);
  font-size: 16px;
  height: 44px;
  text-overflow: clip;
}
.search.gsearch input::placeholder { text-overflow: clip; }
.search.gsearch:focus-within {
  background: var(--bg);
  border-color: var(--blue);
  box-shadow: 0 0 0 1px var(--blue);
}
.search.gsearch .gsearch-lead svg { width: 18px; height: 18px; }
.search.gsearch:focus-within .gsearch-lead svg { fill: var(--blue); }
.gsearch-tools { display: flex; align-items: center; gap: 0; flex: none; }
.gsearch-tools button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.gsearch-tools button[hidden] { display: none; }
.gsearch-tools button:hover { background: var(--hover); }
.gsearch-tools svg { width: 18px; height: 18px; fill: currentColor; }
.search.gsearch:focus-within .gsearch-tools svg { fill: currentColor; }
.gsearch.is-listening .gsearch-mic { color: var(--blue); background: var(--blue-dim); }
@media (prefers-reduced-motion: no-preference) {
  .gsearch.is-listening .gsearch-mic { animation: gmic 1.2s ease infinite; }
}
@keyframes gmic { 50% { transform: scale(1.08); } }
.gsuggest {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 8;
  max-height: min(360px, 48vh);
  overflow: auto;
  background: var(--sheet);
  border-radius: 16px;
  box-shadow: 0 0 15px var(--shadow), 0 0 3px 1px var(--shadow-tight);
  padding: 6px 0;
}
.gsuggest[hidden] { display: none; }
.gsuggest-label {
  padding: 8px 16px 2px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.gsuggest-row { display: flex; align-items: center; }
.gsuggest-pick {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 8px 16px;
  background: none;
  border: 0;
  color: inherit;
  text-align: left;
  font-family: var(--font);
  font-size: 15px;
  line-height: 20px;
}
.gsuggest-pick.on, .gsuggest-pick:hover { background: var(--hover); }
.gsuggest .ava, .gsuggest .ava img { width: 32px; height: 32px; }
.gsuggest-ico {
  width: 20px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}
.gsuggest-ico svg { width: 18px; height: 18px; fill: var(--muted); }
.gsuggest-hash { font-weight: 700; font-size: 16px; color: var(--muted); }
.gsuggest-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gsuggest-copy { min-width: 0; display: flex; flex-direction: column; }
.gsuggest-copy .name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gsuggest-copy .handle { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gsuggest-x {
  width: 32px;
  height: 32px;
  margin-right: 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  padding: 0;
}
.gsuggest-x:hover { background: var(--hover); color: var(--text); }
.gsuggest-x svg { width: 16px; height: 16px; fill: currentColor; }
.gactions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}
.gbtn {
  min-height: 36px;
  height: 36px;
  padding: 0 18px;
  border-radius: 9999px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 14px;
  line-height: 16px;
}
.gbtn.fill {
  background: var(--fill);
  color: var(--on-fill);
  border: 1px solid transparent;
}
.gbtn.fill:hover { background: var(--fill-hover); }
.gbtn.line {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--bell-border);
}
.gbtn.line:hover { background: var(--hover); }
.gtrend {
  width: min(584px, 100%);
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.gtrend-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
}
.gtrend-toggle:hover { background: var(--hover); color: var(--text); }
.gtrend-toggle svg { width: 16px; height: 16px; fill: currentColor; }
.gtrend-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.gtrend-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}
.gtrend-chips[hidden] { display: none; }
.gchip {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: var(--search);
  color: var(--text);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
}
.gchip:hover { background: var(--hover); }
.ghome-foot {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 8px;
  padding: 12px 16px 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  line-height: 16px;
}
.ghome-foot a, .ghome-foot button {
  color: var(--muted);
  background: none;
  border: 0;
  font-family: var(--font);
  font-size: 13px;
  padding: 8px 10px;
  border-radius: 4px;
}
.ghome-foot a:hover, .ghome-foot button:hover { text-decoration: underline; }
.gresults {
  align-self: flex-start;
  width: min(600px, 100%);
}
.gresults-head {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 5;
  background: var(--topbar);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.gresults-row {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px 0;
}
.gresults-logo {
  color: #fff;
  flex: none;
  display: flex;
  align-items: center;
  height: 32px;
}
.gresults-logo svg { height: 22px; }
.gresults-head .gform { flex: 1; width: auto; min-width: 0; max-width: none; }
.gresults-tabs { position: relative; z-index: 1; background: transparent; }
.gresults .card { margin-left: 0; margin-right: 0; }
@media (min-width: 700px) {
  .gresults-logo svg { height: 28px; }
}
@media (max-width: 499px) {
  .app.explore-mode .center { padding-bottom: calc(128px + env(safe-area-inset-bottom)); }
  .ghome-mid { padding-top: calc(22vh - 12px); padding-left: 16px; padding-right: 16px; }
  .ghome-logo { margin-bottom: 20px; }
  .gactions { margin-top: 22px; }
}
@media (max-height: 640px) {
  .ghome-mid { padding-top: 48px; }
}
.discord-emoji { width: 1.25em; height: 1.25em; vertical-align: -0.25em; object-fit: contain; }
.discord-meta { display: flex; align-items: center; gap: 8px; margin-top: 2px; color: var(--muted); font-size: 13px; line-height: 16px; }
.discord-channel { color: var(--blue); font-weight: 700; }
.discord-thread { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.discord-bot { border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; font-size: 11px; font-weight: 700; letter-spacing: 0.02em; }

.nav-item svg.clock, .drawer a svg.clock, .drawer button svg.clock, .bottom-nav svg.clock, .bnav-ico svg.clock {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.vprog {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 4px;
  background: var(--red);
  z-index: 3;
  pointer-events: none;
}
.player.is-playing .vprog { display: none; }
.hist-back { display: none; }
.hist-bar .page-head { border-bottom: 0; }
.hist-bar .tabs { border-bottom: 1px solid var(--line); }
.hist-search { padding: 8px 16px 0; }
.hist-search .search { width: 100%; }
.hist-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 16px 0;
  scrollbar-width: none;
}
.hist-chips::-webkit-scrollbar { display: none; }
.hist-chip {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  border-radius: 9999px;
  padding: 6px 14px;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}
.hist-chip.on { background: var(--fill); color: var(--on-fill); border-color: transparent; }
.hist-tools { display: flex; gap: 8px; padding: 8px 16px; }
.hist-tools .outline { height: 32px; padding: 0 14px; border-radius: 9999px; font-weight: 700; }
.hist-note { color: var(--muted); margin: 0; padding: 0 16px 8px; font-size: 13px; line-height: 16px; }
.hist-day { padding: 14px 16px 4px; color: var(--muted); font-weight: 700; font-size: 13px; line-height: 16px; }
.xa {
  display: block;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: transparent;
}
.xa:hover { background: var(--hover-soft); text-decoration: none; }
.xa-cover { display: block; width: 100%; aspect-ratio: 2.4 / 1; object-fit: cover; background: var(--hover-soft); }
.xa-copy { display: block; padding: 12px 12px 10px; }
.xa-title { font-weight: 800; font-size: 17px; line-height: 22px; color: var(--text); }
.xa-preview {
  margin-top: 4px;
  color: var(--muted);
  font-size: 15px;
  line-height: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.xa-label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 16px;
}
.xa-label svg { width: 16px; height: 16px; fill: currentColor; }
.quote .xa { margin-top: 12px; }
.xa-page { padding: 0 16px 80px; }
.xa-cover-lg {
  display: block;
  width: calc(100% + 32px);
  max-height: 280px;
  margin: 0 -16px 16px;
  object-fit: cover;
  background: var(--hover-soft);
}
.xa-title-lg {
  margin: 0 0 16px;
  font-size: 26px;
  line-height: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.xa-author { display: flex; align-items: center; gap: 10px; }
.xa-author .who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.xa-author .name { font-weight: 800; color: var(--text); }
.xa-author .handle { color: var(--muted); }
.xa-author .ava, .xa-author .ava img, .xa-author .initials { width: 40px; height: 40px; }
.xa-date { color: var(--muted); font-size: 15px; line-height: 20px; margin: 10px 0 4px; }
.xa-body { font-size: 20px; line-height: 28px; color: var(--text); margin-top: 8px; }
.xa-body p { margin: 0 0 16px; }
.xa-body .xa-h { font-size: 23px; line-height: 28px; font-weight: 800; margin: 28px 0 12px; }
.xa-body blockquote {
  margin: 0 0 16px;
  padding-left: 16px;
  border-left: 4px solid var(--line);
}
.xa-body ul, .xa-body ol { margin: 0 0 16px; padding-left: 28px; }
.xa-body li { margin: 0 0 8px; }
.xa-body a { color: var(--blue); }
.xa-img, .xa-video, .xa-link {
  display: block;
  width: 100%;
  border-radius: 16px;
  margin: 0 0 16px;
}
.xa-link {
  border: 1px solid var(--line);
  padding: 12px;
  color: var(--text);
  font-weight: 700;
  font-size: 15px;
  line-height: 20px;
  text-decoration: none;
}
.xa-embed { margin: 0 0 16px; }
.xa-embed .quote { margin-top: 0; }
.xa-embed-link, .xa-view a { color: var(--blue); font-weight: 700; }
.xa-fallback {
  white-space: pre-wrap;
  font-size: 20px;
  line-height: 28px;
  color: var(--text);
}
.xa-full {
  display: inline-flex;
  margin-top: 16px;
  background: var(--text);
  color: var(--bg);
  border-radius: 9999px;
  padding: 10px 16px;
  font-weight: 700;
  text-decoration: none;
}
.xa-full:hover { text-decoration: none; opacity: 0.9; }
@media (min-width: 500px) {
  .xa-cover-lg {
    width: 100%;
    margin: 12px 0 16px;
    border-radius: 16px;
    max-height: 360px;
  }
  .xa-title-lg { font-size: 34px; line-height: 40px; }
}
@media (max-width: 499px) {
  .hist-back { display: inline-flex; }
}
.tabs-bar.notes-tabs::after { right: 0; }
.tabs-bar.notes-tabs .tab-arrow.right { right: 8px; }
.notes-top .page-head { border-bottom: 0; }
.tab-grip {
  display: inline-flex;
  width: 14px;
  height: 18px;
  margin-right: 6px;
  flex: none;
  cursor: grab;
  touch-action: none;
  background: radial-gradient(circle, var(--muted) 1.2px, transparent 1.6px) 0 0 / 6px 6px;
}
.tab-grip:active { cursor: grabbing; }
.tab-order-row.is-dragging, .tab-manage-row.is-dragging { opacity: 0.45; }
.notes-top .note-gear { border: 0; border-radius: 9999px; background: transparent; color: var(--text); }
.notes-top .note-gear:hover { background: var(--hover); }
.notes-top .note-gear svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tab-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  margin-right: 6px;
  flex: none;
  display: inline-block;
}
.bell-split { height: 1px; background: var(--line); margin: 8px 0; }
.tab-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 8px 0;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  text-align: left;
}
.tab-switch i {
  width: 40px;
  height: 22px;
  border-radius: 999px;
  background: var(--line);
  position: relative;
  flex: none;
}
.tab-switch i::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #fff;
}
.tab-switch.on i { background: var(--blue); }
.tab-switch.on i::after { transform: translateX(18px); }
.set-desc {
  margin: -2px 0 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 16px;
}
.privacy-shield-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  z-index: 3;
  pointer-events: none;
}
.privacy-shield-badge svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}
.outline.danger {
  color: var(--red);
  border-color: var(--line);
}
.outline.danger:hover {
  background: rgba(244, 33, 46, 0.1);
}

.tor-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  margin-bottom: 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(120, 86, 255, 0.08);
  color: var(--text);
}
.tor-banner svg {
  width: 28px;
  height: 28px;
  fill: #9b59b6;
  flex: none;
}
.tor-banner p {
  margin: 2px 0 0;
  font-size: 13px;
  line-height: 16px;
}

.swatch-none {
  width: auto;
  min-width: 36px;
  padding: 0 10px;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  border: 2px solid var(--line);
  font-size: 13px;
  font-weight: 700;
}
.tab-order-row, .tab-edit-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  border-bottom: 1px solid var(--line);
}
.tab-order-name, .tab-edit-row span { flex: 1; min-width: 0; font-weight: 700; }
.tab-edit-row { margin: 4px 0; }
.tab-edit-row .tab-dot { margin-right: 8px; }

.nav-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-item.nav-back { gap: 10px; padding-left: 8px; padding-right: 8px; }
.nav-item.nav-back .nav-label { letter-spacing: -0.01em; }
.nav-item { overflow: hidden; }
html[data-nav="icons"] .nav-item { overflow: visible; }
.page-head h1, .head-text h1 { overflow-wrap: anywhere; }
.page-head.settings-head { height: auto; min-height: 53px; padding-top: 8px; padding-bottom: 8px; }
.outline { height: auto; min-height: 36px; padding: 8px 16px; white-space: normal; text-align: center; }
.follow, a.follow { height: auto; min-height: 32px; max-width: 100%; padding: 6px 16px; white-space: normal; text-align: center; }
.drawer a, .drawer button.linky { overflow-wrap: anywhere; }
.set-list { display: flex; flex-direction: column; }
.set-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}
.set-row:hover { background: var(--hover); }
.set-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.set-copy b { font-size: 15px; line-height: 20px; overflow-wrap: anywhere; }
.set-sub { color: var(--muted); font-size: 13px; line-height: 16px; overflow-wrap: anywhere; }
.set-chev { margin-left: auto; flex: none; color: var(--muted); }
.set-chev svg { width: 18px; height: 18px; fill: currentColor; }
.set-block { padding: 12px 16px 4px; }
.set-block h2 { margin: 12px 0 4px; font-size: 15px; }
.keys-slot { margin: 8px 0 18px; padding-top: 8px; border-top: 1px solid var(--line); }
.keys-item { margin: 10px 0; }
.keys-paste, .keys-label { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.keys-label { width: 100%; }
.keys-status { margin-top: 4px; }
.lang-search { padding: 12px 16px 0; }
.lang-list { display: flex; flex-direction: column; }
.lang-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 16px;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
  font: inherit;
  font-size: 17px;
  text-align: left;
}
.lang-row:hover { background: var(--hover); }
.lang-radio {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--muted);
  flex: none;
  box-sizing: border-box;
}
.lang-radio.on {
  border-color: var(--blue);
  box-shadow: inset 0 0 0 4px var(--sheet), inset 0 0 0 11px var(--blue);
}
@media (max-width: 499px) {
  .center.settings-flow { padding-top: 0; }
  .center.settings-flow .topbar { position: sticky; top: 0; }
}

/* Facebook-style Friends Section in X.com Theme */
.friends-section {
  padding: 16px;
}
.friends-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}
.friends-header-left {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.friends-heading {
  font-size: 20px;
  font-weight: 800;
  margin: 0;
  color: var(--text);
}
.friends-sub {
  font-size: 14px;
  color: var(--muted);
}
.friends-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.friends-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 9999px;
  padding: 6px 14px;
  min-width: 180px;
}
.friends-search-box:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 1px var(--blue);
}
.friends-search-box svg {
  width: 16px;
  height: 16px;
  fill: var(--muted);
  flex: none;
}
.friends-search-input {
  background: transparent;
  border: 0;
  color: var(--text);
  font-size: 14px;
  outline: none;
  width: 100%;
}
.friends-pills {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}
.friends-pill {
  background: transparent;
  border: 0;
  border-radius: 9999px;
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s, color 0.15s;
}
.friends-pill:hover {
  background: var(--hover-soft);
  color: var(--text);
}
.friends-pill.active {
  background: var(--hover-soft);
  color: var(--blue);
}
.pill-count {
  font-size: 12px;
  opacity: 0.8;
}
.pill-badge {
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 9999px;
}
.friends-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 680px) {
  .friends-grid {
    grid-template-columns: 1fr;
  }
  .friends-header {
    flex-direction: column;
    align-items: stretch;
  }
  .friends-search-box {
    width: 100%;
  }
}
.friend-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card);
  transition: background 0.15s;
}
.friend-card:hover {
  background: var(--hover-soft);
}
.friend-card-media {
  flex: none;
  display: block;
  text-decoration: none;
}
.friend-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.friend-avatar.initials {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  background: var(--card-border, #333);
  color: #fff;
}
.friend-card-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.friend-card-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.friend-card-name:hover {
  text-decoration: underline;
}
.friend-card-handle {
  font-size: 13px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.friend-card-mutual {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}
.friend-card-bio {
  font-size: 12px;
  color: var(--text);
  opacity: 0.85;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 2px;
}
.friend-card-actions {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.friend-btn {
  border-radius: 9999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 13px;
  line-height: 16px;
  height: 32px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.friend-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex: none;
}
.friend-btn.friend-add {
  background: #1877f2;
  color: #fff;
  border-color: #1877f2;
}
.friend-btn.friend-add:hover {
  background: #166fe5;
  border-color: #166fe5;
}
.friend-btn.friend-pending {
  background: transparent;
  color: var(--text);
  border-color: #536471;
}
.friend-btn.friend-pending .u { display: none; }
.friend-btn.friend-pending:hover {
  background: rgba(244, 33, 46, 0.1);
  color: var(--red);
  border-color: rgba(244, 33, 46, 0.4);
}
.friend-btn.friend-pending:hover .f { display: none; }
.friend-btn.friend-pending:hover .u { display: inline; }
.friend-btn.friend-accept {
  background: var(--fill);
  color: var(--on-fill);
}
.friend-btn.friend-accept:hover {
  background: var(--fill-hover);
}
.friend-btn.friend-decline {
  background: transparent;
  color: var(--text);
  border-color: #536471;
}
.friend-btn.friend-decline:hover {
  background: rgba(244, 33, 46, 0.1);
  color: var(--red);
  border-color: rgba(244, 33, 46, 0.4);
}
.friend-btn.friend-mutual {
  background: transparent;
  color: var(--text);
  border-color: #536471;
}
.friend-btn.friend-mutual .u { display: none; }
.friend-btn.friend-mutual:hover {
  background: rgba(244, 33, 46, 0.1);
  color: var(--red);
  border-color: rgba(244, 33, 46, 0.4);
}
.friend-btn.friend-mutual:hover .f { display: none; }
.friend-btn.friend-mutual:hover .u { display: inline; }
.friend-btn-group {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pmutual {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}
.tab-n {
  opacity: 0.7;
  font-weight: normal;
  font-size: 12px;
}


/* Customize Sidebar Modal */
.nav-customize-modal {
  width: min(640px, 100%);
}
.nav-customize-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.nav-customize-intro p {
  margin: 0;
  font-size: 14px;
  line-height: 18px;
}
.nav-new-folder-form {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 16px;
}
.nav-cust-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nav-cust-item-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  min-height: 48px;
}
.nav-cust-item-row.is-hidden {
  opacity: 0.5;
}
.nav-cust-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: var(--text);
  flex: none;
}
.nav-cust-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}
.nav-cust-name {
  font-weight: 600;
  font-size: 15px;
  flex: 1;
  min-width: 0;
}
.nav-cust-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav-move-select {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 9999px;
  padding: 4px 10px;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  cursor: pointer;
}
.nav-cust-folder-box {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.nav-cust-folder-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--hover);
  border-bottom: 1px solid var(--line);
}
.nav-cust-folder-head .nav-cust-name {
  font-size: 16px;
  font-weight: 700;
}
.nav-cust-folder-items {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 10px;
}
.nav-cust-folder-subrow {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--line);
  font-size: 14px;
}
.nav-cust-folder-subrow.is-hidden {
  opacity: 0.5;
}
.icon-btn.danger:hover {
  color: var(--red);
  background: rgba(244, 33, 46, 0.1);
}

body.upd-open { overflow: hidden; }
.upd-root[hidden] { display: none; }
.upd-pill {
  position: fixed;
  top: calc(12px + env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000002;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  padding: 8px 14px 8px 10px;
  box-shadow: 0 2px 12px var(--shadow);
  cursor: pointer;
}
.upd-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--blue);
}
.upd-pill[hidden] { display: none; }
.upd-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000002;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(28px + env(safe-area-inset-top)) 24px calc(28px + env(safe-area-inset-bottom));
  background: var(--bg);
  color: var(--text);
}
.upd-overlay[hidden] { display: none; }
.upd-card { width: min(420px, 100%); text-align: center; }
.upd-logo-wrap {
  position: relative;
  width: 108px;
  height: 108px;
  margin: 0 auto 8px;
}
.upd-ring { width: 108px; height: 108px; display: block; }
.upd-track { fill: none; stroke: var(--line); stroke-width: 3; }
.upd-arc {
  fill: none;
  stroke: var(--blue);
  stroke-width: 3;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
}
.upd-logo {
  position: absolute;
  left: 18px;
  top: 18px;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: var(--card);
}
.upd-brand {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.upd-card h1 {
  margin: 6px 0 0;
  font-size: 28px;
  line-height: 32px;
  letter-spacing: -0.4px;
  font-weight: 800;
}
.upd-version { margin: 8px 0 0; color: var(--muted); font-size: 15px; }
.upd-version[hidden], .upd-progress[hidden], .upd-notes[hidden], .upd-error[hidden], .upd-detail[hidden] { display: none; }
.upd-progress { margin-top: 22px; text-align: left; }
.upd-bar {
  height: 4px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}
.upd-bar > i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--blue);
}
.upd-count { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.upd-steps { list-style: none; margin: 16px 0 0; padding: 0; }
.upd-step {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 36px;
  color: var(--muted);
  font-weight: 600;
}
.upd-step.is-now { color: var(--text); }
.upd-step.is-done { color: var(--text); }
.upd-mark {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 2px solid var(--line);
  box-sizing: border-box;
  flex: 0 0 auto;
}
.upd-step.is-now .upd-mark { border-color: var(--blue); }
.upd-step.is-done .upd-mark {
  border-color: var(--green);
  background: var(--green);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='white' d='M6.2 11.2 3.4 8.4l1.2-1.2 1.6 1.6 4.2-4.2 1.2 1.2z'/></svg>");
  background-size: 14px 14px;
  background-repeat: no-repeat;
  background-position: center;
}
.upd-notes { margin: 22px 0 0; text-align: left; }
.upd-notes h2 { margin: 0 0 8px; font-size: 15px; }
.upd-notes ul { list-style: none; margin: 0; padding: 0; }
.upd-notes li {
  position: relative;
  margin: 0;
  padding: 8px 0 8px 18px;
  border-top: 1px solid var(--line);
  line-height: 20px;
}
.upd-notes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--blue);
}
.upd-error { margin: 16px 0 0; color: var(--red); font-weight: 700; }
.upd-detail { margin: 8px 0 0; color: var(--muted); font-size: 13px; word-break: break-all; }
.upd-actions { margin-top: 22px; display: flex; flex-direction: column; gap: 4px; }
.upd-go, .upd-later {
  font: inherit;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}
.upd-go {
  background: var(--fill);
  color: var(--on-fill);
  font-weight: 800;
  font-size: 17px;
  padding: 14px 20px;
}
.upd-go:hover { background: var(--fill-hover); }
.upd-go[hidden], .upd-later[hidden] { display: none; }
.upd-later {
  background: transparent;
  color: var(--blue);
  font-weight: 700;
  padding: 12px 20px;
}
.upd-root:not(.upd-reduce)[data-phase="offer"] .upd-logo { animation: upd-float 2.8s ease-in-out infinite; }
.upd-root:not(.upd-reduce)[data-phase="offer"] .upd-ring { animation: upd-spin 2.4s linear infinite; }
.upd-root:not(.upd-reduce) .upd-bar > i { transition: width 0.2s linear; }
@keyframes upd-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-6px) scale(1.03); }
}
@keyframes upd-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .upd-logo, .upd-ring, .upd-bar > i { animation: none !important; transition: none !important; }
}

.bnav-screen { padding-bottom: 24px; }
.bottom-nav.bottom-nav-preview {
  display: flex;
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  height: 64px;
  margin: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg);
  align-items: center;
  justify-content: space-around;
  z-index: 1;
}
.bnav-preview-ico { color: var(--text); display: inline-flex; }
.bnav-preview-ico svg, .bnav-ico svg { width: 22px; height: 22px; fill: currentColor; }
.bnav-row {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 56px;
  padding: 0 12px 0 4px;
  border-bottom: 1px solid var(--line);
}
.bnav-row.is-dragging { background: var(--hover); }
.bnav-grip {
  touch-action: none;
  width: 32px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  padding: 0;
}
.bnav-grip-ico { width: 10px; height: 16px; fill: var(--muted); }
.bnav-row .icon-btn { width: 34px; height: 34px; flex: none; }
.bnav-row .icon-btn svg { width: 18px; height: 18px; }
.bnav-ico { display: inline-flex; flex: none; width: 28px; justify-content: center; }
.bnav-name { flex: 1; min-width: 0; font-weight: 700; font-size: 15px; }
.bnav-switch {
  width: 40px;
  height: 22px;
  border: 0;
  padding: 0;
  border-radius: 999px;
  background: transparent;
  flex: none;
}
.bnav-switch i {
  display: block;
  width: 40px;
  height: 22px;
  border-radius: 999px;
  background: #3e4144;
  position: relative;
}
.bnav-switch i::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #fff;
}
.bnav-switch.on i { background: var(--blue); }
.bnav-switch.on i::after { transform: translateX(18px); }
html[data-theme="default"] .bnav-switch:not(.on) i { background: #cfd9de; }
html[data-theme="dim"] .bnav-switch:not(.on) i { background: #3e4144; }
.bnav-switch:disabled { opacity: 0.45; }
.bnav-reset { padding: 16px; }
.bnav-layout h2 { margin: 0; padding: 8px 16px 0; font-size: 20px; line-height: 24px; }
.bnav-layout .phandle { margin: 0; padding: 8px 16px 4px; }
.bnav-layout .tab-switch { padding-left: 16px; padding-right: 16px; }
.tab-switch:disabled { opacity: 0.45; }

header.nav.nav-land { display: none; }

/* Phone landscape uses the same icon rail as X: the mark stays at the top,
   the icons scroll in the middle, and Post plus the account stay at the
   bottom. A short height tightens the rail but never below a 44px target. */
@media (orientation: landscape) and (max-height: 520px) and (max-width: 1100px) {
  .app {
    width: 100%;
    max-width: none;
    margin: 0;
    justify-content: flex-start;
    box-sizing: border-box;
    background: var(--bg);
    padding-left: var(--safe-l, env(safe-area-inset-left, 0px));
    padding-right: var(--safe-r, env(safe-area-inset-right, 0px));
  }
  header.nav:not(.nav-land) { display: none !important; }
  header.nav.nav-land,
  html[data-nav="icons"] header.nav.nav-land {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 80px;
    flex: 0 0 80px;
    height: 100dvh;
    max-height: 100dvh;
    min-height: 0;
    position: sticky;
    top: 0;
    box-sizing: border-box;
    padding: 4px 0 calc(4px + var(--safe-b, env(safe-area-inset-bottom, 0px)));
    overflow: visible;
  }
  html[data-nav="icons"] .nav.nav-land .nav-scroll,
  .nav.nav-land .nav-scroll {
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    gap: 4px;
    padding: 4px 0;
    margin: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: auto;
    scrollbar-width: none;
  }
  .nav.nav-land .nav-scroll::-webkit-scrollbar { width: 0; height: 0; display: none; }
  .nav.nav-land .nav-scroll > * { flex: 0 0 auto; min-height: 44px; }
  html[data-nav="icons"] .nav.nav-land .logo,
  .nav.nav-land .logo {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    flex: 0 0 48px;
    margin: 0;
    padding: 0;
    justify-content: center;
  }
  html[data-nav="icons"] .nav.nav-land .logo .logo-full,
  html[data-nav="icons"] .nav.nav-land .logo .logo-short,
  .nav.nav-land .logo .logo-full,
  .nav.nav-land .logo .logo-short { display: none; }
  html[data-nav="icons"] .nav.nav-land .logo .logo-si,
  .nav.nav-land .logo .logo-si { display: block; height: 26px; width: auto; }
  html[data-nav="icons"] .nav.nav-land .nav-scroll .nav-label,
  html[data-nav="icons"] .nav.nav-land .post-label,
  html[data-nav="icons"] .nav.nav-land .account-meta,
  html[data-nav="icons"] .nav.nav-land .account-pill .dots,
  .nav.nav-land .nav-scroll .nav-label,
  .nav.nav-land .post-label,
  .nav.nav-land .account-meta,
  .nav.nav-land .account-pill .dots { display: none; }
  html[data-nav="icons"] .nav.nav-land .nav-scroll > a.nav-item,
  .nav.nav-land .nav-scroll > a.nav-item,
  .nav.nav-land .nav-land-more > summary {
    width: 48px;
    height: 48px;
    min-width: 44px;
    min-height: 44px;
    flex: 0 0 auto;
    justify-content: center;
    align-items: center;
    padding: 0;
    gap: 0;
    overflow: visible;
  }
  .nav.nav-land .nav-scroll > a.nav-item svg,
  .nav.nav-land .nav-land-more > summary svg { width: 24px; height: 24px; }
  html[data-nav="icons"] .nav.nav-land .post-btn,
  .nav.nav-land .post-btn {
    width: 48px;
    height: 48px;
    min-width: 44px;
    min-height: 44px;
    flex: 0 0 48px;
    max-width: none;
    margin: 4px 0 0;
    padding: 0;
  }
  html[data-nav="icons"] .nav.nav-land .post-btn .post-ico,
  .nav.nav-land .post-btn .post-ico { display: block; width: 22px; height: 22px; margin: 0 auto; fill: var(--on-fill); }
  html[data-nav="icons"] .nav.nav-land .account-pill,
  .nav.nav-land .account-pill {
    width: 48px;
    height: 48px;
    min-width: 44px;
    min-height: 44px;
    flex: 0 0 48px;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 4px 0 0;
    gap: 0;
  }
  .nav.nav-land .account-pill .ava,
  .nav.nav-land .account-pill .initials { width: 32px; height: 32px; font-size: 14px; }
  .nav.nav-land .nav-land-more {
    position: relative;
    width: 48px;
    height: 48px;
    min-width: 44px;
    min-height: 44px;
    flex: 0 0 48px;
  }
  .nav.nav-land .nav-land-more > summary { list-style: none; cursor: pointer; }
  .nav.nav-land .nav-land-more > summary::-webkit-details-marker { display: none; }
  .nav.nav-land .nav-land-menu {
    position: absolute;
    left: calc(100% + 8px);
    bottom: 0;
    display: flex;
    flex-direction: column;
    width: max-content;
    min-width: 220px;
    max-height: min(280px, 70dvh);
    overflow: auto;
    padding: 4px 0;
    background: var(--sheet);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 0 15px var(--shadow);
    z-index: 30;
  }
  html[data-nav="icons"] .nav.nav-land .nav-land-menu .nav-item,
  .nav.nav-land .nav-land-menu .nav-item {
    width: 100%;
    height: auto;
    min-width: 0;
    min-height: 44px;
    flex: 0 0 auto;
    justify-content: flex-start;
    padding: 0 16px;
    gap: 12px;
  }
  html[data-nav="icons"] .nav.nav-land .nav-land-menu .nav-label,
  .nav.nav-land .nav-land-menu .nav-label { display: block; }
  nav.bottom-nav, .fab { display: none !important; }
  .side {
    display: none !important;
    width: 0 !important;
    flex: 0 0 0px !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }
  .app .center,
  .app.wide .center,
  .app.explore-mode .center {
    flex: 1 1 0%;
    width: auto;
    max-width: none;
    min-width: 0;
    margin: 0;
    padding-bottom: calc(76px + var(--safe-b, env(safe-area-inset-bottom, 0px)));
  }
  .tabs-bar, .topbar, .tabs { max-width: 100%; min-width: 0; }
  .tabs-bar { position: relative; z-index: 4; }
}
@media (orientation: landscape) and (max-height: 500px) and (max-width: 1100px) {
  header.nav.nav-land,
  html[data-nav="icons"] header.nav.nav-land {
    width: 68px;
    flex: 0 0 68px;
  }
  html[data-nav="icons"] .nav.nav-land .logo,
  .nav.nav-land .logo,
  html[data-nav="icons"] .nav.nav-land .nav-scroll > a.nav-item,
  .nav.nav-land .nav-scroll > a.nav-item,
  .nav.nav-land .nav-land-more,
  .nav.nav-land .nav-land-more > summary,
  html[data-nav="icons"] .nav.nav-land .post-btn,
  .nav.nav-land .post-btn,
  html[data-nav="icons"] .nav.nav-land .account-pill,
  .nav.nav-land .account-pill {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    flex-basis: 44px;
  }
  .nav.nav-land .nav-scroll { gap: 4px; }
}

@media (orientation: portrait) and (min-width: 500px) and (max-width: 1279px) {
  html[data-nav-layout="bar"] header.nav,
  html[data-nav-layout="bar"] .side { display: none !important; }
  html[data-nav-layout="bar"] .side {
    width: 0 !important;
    flex: 0 0 0px !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }
  html[data-nav-layout="bar"] .app {
    width: 100%;
    max-width: none;
    margin: 0;
    justify-content: flex-start;
    box-sizing: border-box;
    background: var(--bg);
    padding-left: var(--safe-l, env(safe-area-inset-left, 0px));
    padding-right: var(--safe-r, env(safe-area-inset-right, 0px));
  }
  html[data-nav-layout="bar"] .app .center,
  html[data-nav-layout="bar"] .app.wide .center {
    width: auto;
    max-width: none;
    flex: 1 1 0%;
    margin: 0;
    border: 0;
    min-width: 0;
    padding-top: calc(var(--top) + env(safe-area-inset-top));
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
  }
  html[data-nav-layout="bar"] .topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding-top: env(safe-area-inset-top);
    padding-left: var(--safe-l, env(safe-area-inset-left, 0px));
    padding-right: var(--safe-r, env(safe-area-inset-right, 0px));
    z-index: 5;
  }
  html[data-nav-layout="bar"] .mhead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 53px;
    padding: 0 16px;
    position: relative;
  }
  html[data-nav-layout="bar"] nav.bottom-nav {
    display: flex !important;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(53px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    padding-left: var(--safe-l, env(safe-area-inset-left, 0px));
    padding-right: var(--safe-r, env(safe-area-inset-right, 0px));
    background: var(--topbar);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
    z-index: 20;
    justify-content: space-around;
    align-items: center;
  }
  html[data-nav-layout="bar"] nav.bottom-nav a {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    border-radius: 9999px;
  }
  html[data-nav-layout="bar"] nav.bottom-nav a.on { color: var(--text); }
  html[data-nav-layout="bar"] nav.bottom-nav svg { width: 26.25px; height: 26.25px; fill: currentColor; }
  html[data-nav-layout="bar"] .fab {
    display: flex !important;
    position: fixed;
    right: 20px;
    bottom: calc(69px + env(safe-area-inset-bottom));
    width: 56px;
    height: 56px;
    padding: 0;
    border-radius: 9999px;
    border: 0;
    background: var(--blue);
    color: #fff;
    align-items: center;
    justify-content: center;
    z-index: 21;
  }
  html[data-nav-layout="bar"] .fab svg { width: 24px; height: 24px; fill: #fff; }
}

@media (orientation: landscape) and (max-width: 1279px) {
  html[data-nav-layout="bar"][data-nav-bar-land="1"] header.nav,
  html[data-nav-layout="bar"][data-nav-bar-land="1"] header.nav.nav-land,
  html[data-nav-layout="bar"][data-nav-bar-land="1"] .side { display: none !important; }
  html[data-nav-layout="bar"][data-nav-bar-land="1"] .side {
    width: 0 !important;
    flex: 0 0 0px !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }
  html[data-nav-layout="bar"][data-nav-bar-land="1"] .app {
    width: 100%;
    max-width: none;
    margin: 0;
    justify-content: flex-start;
    box-sizing: border-box;
    background: var(--bg);
    padding-left: var(--safe-l, env(safe-area-inset-left, 0px));
    padding-right: var(--safe-r, env(safe-area-inset-right, 0px));
  }
  html[data-nav-layout="bar"][data-nav-bar-land="1"] .app .center,
  html[data-nav-layout="bar"][data-nav-bar-land="1"] .app.wide .center {
    width: auto;
    max-width: none;
    flex: 1 1 0%;
    margin: 0;
    min-width: 0;
    padding-bottom: calc(72px + var(--safe-b, env(safe-area-inset-bottom, 0px)));
  }
  html[data-nav-layout="bar"][data-nav-bar-land="1"] nav.bottom-nav {
    display: flex !important;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(53px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    padding-left: var(--safe-l, env(safe-area-inset-left, 0px));
    padding-right: var(--safe-r, env(safe-area-inset-right, 0px));
    background: var(--topbar);
    border-top: 1px solid var(--line);
    z-index: 20;
    justify-content: space-around;
    align-items: center;
  }
  html[data-nav-layout="bar"][data-nav-bar-land="1"] .fab { display: none !important; }
}

.device-screen { padding-bottom: 28px; }
.device-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 12px 0 8px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--hover); }
.device-seg button { border: 0; border-radius: 999px; background: transparent; color: inherit; margin: 0; min-height: 36px; padding: 8px 6px; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.device-seg button.on { background: var(--blue); color: #fff; }
.device-seg button:focus-visible, .device-switch:focus-visible, .device-actions button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.device-note { margin-top: 0; color: var(--muted); font-size: 13px; line-height: 18px; }
.device-switch { align-items: flex-start; gap: 12px; padding-top: 12px; padding-bottom: 12px; cursor: pointer; }
.device-switch span { min-width: 0; }
.device-switch b { display: block; font-size: 15px; line-height: 20px; }
.device-switch .set-sub { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; font-weight: 400; line-height: 18px; }
.device-switch i { margin-top: 2px; }
.device-banner, .device-warn { margin: 8px 0 12px; padding: 12px 14px; border-radius: 16px; background: var(--hover); font-size: 14px; line-height: 20px; }
.device-warn { border: 1px solid var(--line); }
.device-stat { padding: 12px 0; border-bottom: 1px solid var(--line); }
.device-stat b { font-size: 15px; }
.device-stat .set-sub { color: var(--muted); font-size: 13px; line-height: 18px; }
.device-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.device-ai textarea { width: 100%; min-height: 96px; box-sizing: border-box; resize: vertical; }

/* Below the desktop shell, the page itself fills the screen. Safe-area
   padding is the only inset, and it stays inside the border box so the
   background still reaches the edge. A hidden right column keeps no width. */
@media (max-width: 1279px) {
  .app,
  .app.wide,
  .app.explore-mode {
    width: 100%;
    max-width: none;
    margin: 0;
    justify-content: flex-start;
    box-sizing: border-box;
    background: var(--bg);
    padding-left: var(--safe-l, env(safe-area-inset-left, 0px));
    padding-right: var(--safe-r, env(safe-area-inset-right, 0px));
  }
  .app .center,
  .app.wide .center,
  .app.explore-mode .center,
  html[data-nav-layout="bar"] .app .center,
  html[data-nav-layout="bar"] .app.wide .center,
  html[data-nav-layout="bar"][data-nav-bar-land="1"] .app .center,
  html[data-nav-layout="bar"][data-nav-bar-land="1"] .app.wide .center {
    flex: 1 1 0%;
    width: auto;
    max-width: none;
    min-width: 0;
    margin-left: 0;
    margin-right: 0;
  }
}
