/* Keep shared geometry independent of route content and scrollbar presence. */
html { overflow-y: scroll; }
@supports (scrollbar-gutter: stable) {
  html { overflow-y: auto; scrollbar-gutter: stable; }
}
body.web-shell { overflow-x: clip; padding-bottom: 0; }
.web-shell #list-view { padding-bottom: 110px; }
html[data-web-route="search"] #feedPage,
html[data-web-route="feed"] #searchPage,
#feedPage[hidden], #searchPage[hidden] { display: none; }
.web-shell .feed-head { height: 59px; box-sizing: border-box; flex-wrap: nowrap; }
.web-page-heading { width: 104px; flex: 0 0 104px; display: flex; align-items: center; gap: 8px; }
.web-page-heading h1 { margin: 0; white-space: nowrap; }
.web-search-back { width: 28px; height: 28px; flex: 0 0 28px; border: 0; padding: 0; background: none; color: var(--ink); cursor: pointer; visibility: hidden; }
html[data-web-route="search"] .web-search-back { visibility: visible; }
.feed-search { margin-left: auto; position: relative; display: flex; align-items: center; gap: 8px; background: #EBEEF0; border-radius: 99px; padding: 8px 14px; width: 220px; flex: 0 0 220px; box-sizing: border-box; }
#searchPage { min-height: calc(100vh - 59px); }
.feed-search svg { flex: none; color: var(--muted); }
.feed-search input { border: none; outline: none; background: none; font-size: 13.5px; font-family: inherit; flex: 1; min-width: 0; }
.feed-search input[type="search"]::-webkit-search-cancel-button { display: none; }
.search-clear { flex: none; width: 18px; height: 18px; display: grid; place-items: center; border: 0; background: none; color: var(--muted); font-size: 13px; cursor: pointer; }
.search-clear[hidden] { display: grid; visibility: hidden; pointer-events: none; }
.search-tabs[hidden] { display: none; }
.search-tabs { display: flex; gap: 24px; padding: 0 16px; border-bottom: 1px solid var(--hairline); }
.stab { appearance: none; border: none; background: none; padding: 10px 2px; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--muted); position: relative; white-space: nowrap; font-family: inherit; }
.stab.active { color: var(--accent); font-weight: 800; }
.stab.active::after { content: ""; position: absolute; left: 2px; right: 2px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--accent); }
.web-shell #feedPage .tweet, .web-shell #searchPage .tweet,
.web-shell #feedPage .skel-card, .web-shell #searchPage .skel-card { animation: none; }
.feed-recovery { display: flex; justify-content: center; gap: 12px; padding: 12px 16px; }
.feed-recovery button[hidden] { display: none; }
.feed-recovery:has(button[hidden] + button[hidden]) { display: none; }
.nav-post { margin-top: 0; background: var(--accent); color: #fff; border: none; border-radius: 99px; font-size: 15px; font-weight: 700; padding: 14px 0; cursor: pointer; font-family: inherit; }
