/* Frame design layer. Original. Specs: /DESIGN.md. Loaded after styles.css; overrides base components.
   Fonts: Inter and Bricolage Grotesque, both SIL OFL 1.1 (public/fonts/OFL-*.txt). Icons: Lucide (ISC). */

/* ===== 0. System ===== */
@font-face { font-family: "Inter"; src: url(/fonts/inter-latin.woff2) format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url(/fonts/bricolage-latin.woff2) format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }

:root {
  --font-ui: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Bricolage Grotesque", "Inter", ui-sans-serif, system-ui, sans-serif;
  --on-accent: #0B0C0E;
  --accent-ink: var(--accent);
  --accent-soft: color-mix(in srgb, var(--accent) 14%, transparent);
  --r-tile: 2px; --r-chip: 6px; --r-card: 10px; --r-sheet: 16px; --r-av: 28%;
  --ease: cubic-bezier(.2,0,0,1); --ease-in: cubic-bezier(.05,.7,.1,1); --ease-out: cubic-bezier(.3,0,.8,.15);
  --rail: 240px; --col: 640px; --col-wide: 960px; --ctx: 320px;
  --hairline: color-mix(in srgb, var(--border) 70%, transparent);
}
[data-theme="light"] { --accent-ink: color-mix(in srgb, var(--accent) 45%, #14161A); --accent-soft: color-mix(in srgb, var(--accent) 28%, transparent); }

html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-ui); font-size: var(--fs); line-height: 1.4667; letter-spacing: var(--track); font-feature-settings: "cv11", "ss01"; }
::selection { background: color-mix(in srgb, var(--accent) 40%, transparent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.tnum, .profile-counts b, .act .cnt, .now-stats, .ev-stats, .vr-cnt, .stats b { font-variant-numeric: tabular-nums; }
h1, h2, h3 { letter-spacing: -.01em; }

/* type scale utilities */
.t-display { font: 700 32px/36px var(--font-display); letter-spacing: -.02em; }
.t-title1, .fr-title { font: 700 24px/28px var(--font-display); letter-spacing: -.015em; margin: 0; }
.t-title2 { font-size: 20px; line-height: 24px; font-weight: 650; }
.t-headline { font-size: 17px; line-height: 22px; font-weight: 600; }
.t-callout { font-size: 14px; line-height: 20px; font-weight: 500; }
.t-caption, .muted.small { font-size: 13px; line-height: 18px; }
.t-micro { font-size: 11px; line-height: 14px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }

/* page enter motion */
@keyframes fr-rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes fr-fade { from { opacity: 0; } to { opacity: 1; } }
#main > * { animation: fr-rise .15s var(--ease-in) both; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } #main > * { animation: none; } }
html[data-rm] #main > * { animation: none; }

/* ===== Shell ===== */
.layout { display: flex; justify-content: center; gap: 0; min-height: 100vh; }
.sidenav { width: var(--rail); justify-content: flex-start; border-right: 1px solid var(--hairline); }
.sidenav-inner { width: var(--rail); padding: 16px 12px 16px; gap: 2px; }
.primary { width: var(--col); border-left: 0; border-right: 0; padding: 0 0 48px; }
.layout.wide .primary { width: var(--col-wide); }
.layout[data-page=discover] .primary { display: block; }
.sidebar { width: var(--ctx); margin: 0 0 0 32px; }
.sidebar-inner { padding-top: 12px; }

/* wordmark */
.wordmark { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 12px; margin-bottom: 12px; border-radius: 12px; color: var(--text); }
.wordmark:hover { background: var(--hover); }
.wm-mark { display: inline-flex; width: 28px; height: 28px; } .wm-mark svg { width: 28px; height: 28px; }
.wm-text { font: 800 24px/1 var(--font-display); letter-spacing: -.03em; }

/* rail */
.rail-tabs { display: flex; flex-direction: column; gap: 2px; }
.nav-item { padding: 0; width: 100%; }
.nav-item > span { width: 100%; gap: 14px; padding: 10px 12px; border-radius: 12px; font-size: 16px; line-height: 22px; font-weight: 500; color: var(--muted); transition: background .1s var(--ease), color .1s var(--ease); }
.nav-item:hover > span { background: var(--hover); color: var(--text); }
.nav-item.active > span { color: var(--text); font-weight: 650; background: var(--surface-1); }
.nav-item.active > span::before { content: ""; position: absolute; }
.nav-icon { position: relative; display: inline-flex; width: 26px; height: 26px; align-items: center; justify-content: center; }
.nav-item .ic svg { width: 24px; height: 24px; stroke-width: 1.75; }
.nav-item.active .ic svg { stroke-width: 2.25; }
.nav-item.active .nav-icon .avatar { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--text); }
.nav-item .badge, .nav-icon .badge { position: absolute; top: -4px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: var(--on-accent); font-size: 11px; line-height: 18px; font-weight: 700; text-align: center; border: 2px solid var(--bg); box-sizing: content-box; }
.nav-create .nav-icon { background: var(--accent); color: var(--on-accent); border-radius: 8px; }
.nav-create .nav-icon .ic svg { width: 18px; height: 18px; stroke-width: 2.5; }
.post-btn { width: 100%; height: 44px; margin: 16px 0 8px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; background: var(--text); color: var(--bg); font-size: 15px; font-weight: 650; box-shadow: none; transition: transform .1s var(--ease), opacity .1s; }
.post-btn .ic { display: inline-flex; } .post-btn .ic svg { width: 18px; height: 18px; stroke-width: 2.5; }
.post-btn:active { transform: scale(.97); }
#nav-more { margin-top: 2px; }
.account-switch { margin: auto 0 0; border-radius: 12px; padding: 8px; gap: 10px; }
.account-switch .names { font-size: 14px; line-height: 18px; }
.m-top, .m-bar { display: none; }

/* 1024–1279: icon rail with context column */
@media (max-width: 1279px) {
  :root { --rail: 88px; }
  .sidenav-inner { align-items: center; padding: 16px 8px; }
  .wordmark { padding: 0; width: 48px; justify-content: center; } .wm-text { display: none; }
  .nav-item { display: flex; justify-content: center; } .nav-item > span { width: auto; padding: 12px; }
  .nav-item .lbl, .account-switch .names, .account-switch > .ic { display: none; }
  .post-btn { width: 48px; height: 48px; padding: 0; } .post-btn .lbl { display: none; }
  .account-switch { width: auto; }
  .sidebar { margin-left: 24px; }
}
@media (max-width: 1100px) { .sidebar { display: none; } }
@media (max-width: 1023px) { :root { --rail: 72px; } .layout.wide .primary { width: calc(100vw - var(--rail)); max-width: var(--col-wide); } }

/* < 768: top bar + bottom bar */
@media (max-width: 767px) {
  .sidenav { position: static !important; width: 0 !important; height: 0 !important; border: 0 !important; }
  .sidenav-inner { position: static !important; width: 0 !important; height: 0 !important; padding: 0 !important; overflow: visible !important; }
  .sidenav-inner > .wordmark, .rail-tabs, .post-btn, #nav-more, .account-switch, .sidenav .nav-item.opt { display: none !important; }
  .m-top { display: flex; position: fixed; top: 0; left: 0; right: 0; height: 56px; z-index: 60; align-items: center; justify-content: space-between; padding: 0 12px; background: var(--blur-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--hairline); }
  .m-top .wordmark { margin: 0; height: 40px; } .m-top .wm-text { display: inline; font-size: 22px; }
  .m-av { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; }
  .m-bar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; height: calc(64px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); z-index: 60; background: var(--blur-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--hairline); }
  .m-bar .nav-item { justify-content: center; align-items: center; }
  .m-bar .nav-item > span { flex-direction: column; gap: 2px; padding: 6px 4px; background: none !important; width: auto; }
  .m-bar .nav-item .lbl { display: block; font-size: 11px; line-height: 14px; font-weight: 600; }
  .m-bar .nav-create .nav-icon { width: 44px; height: 32px; border-radius: 10px; }
  .m-bar .nav-create .lbl { display: none; }
  .primary, .layout.wide .primary { width: 100% !important; max-width: 100%; padding: 56px 0 calc(72px + env(safe-area-inset-bottom)); border: 0; }
  .topbar { top: 56px; }
  .layout[data-page=watch] .m-top { display: none; }
  .layout[data-page=watch] .primary { padding-top: 0; padding-bottom: 0; }
  .layout[data-page=watch] .m-bar { background: rgba(11,12,14,.55); border-top-color: transparent; color: #F2F1EC; }
  .layout[data-page=watch] .m-bar .nav-item > span { color: rgba(242,241,236,.7); } .layout[data-page=watch] .m-bar .nav-item.active > span { color: #fff; }
  .layout[data-page=messages] .dm-thread, .layout[data-page=settings] .set-main { height: calc(100vh - 56px - 64px); top: 56px; }
  .new-posts-pill { top: 168px; }
  .toast { bottom: calc(80px + env(safe-area-inset-bottom)); }
}

/* ===== Components ===== */
/* avatars: rounded squares */
.avatar { border-radius: var(--r-av); font-family: var(--font-display); font-weight: 700; color: #fff; }
.avatar.lg { border-radius: 28%; border: 0; }
.hl-cover, .hl-cover img, .hl-cover > span { border-radius: 28%; }
/* story / live frames: 2px accent with a 2px gap; seen = 1px border colour; close list = dashed-feel double */
:root { --ring: var(--accent); --ring-seen: var(--border-strong); --ring-close: var(--success); }
.ring { border-radius: calc(28% + 2px); padding: 4px; background: transparent !important; box-shadow: inset 0 0 0 2px transparent; position: relative; }
.ring > .avatar { border: 0; border-radius: 28%; }
.ring.unseen { box-shadow: inset 0 0 0 2px var(--accent); }
.ring.seen { box-shadow: inset 0 0 0 1px var(--ring-seen); }
.ring.close { box-shadow: inset 0 0 0 2px var(--ring-close); } .ring.close.seen { box-shadow: inset 0 0 0 1px var(--ring-close); }
.ring.none { box-shadow: none; }
.ring.st > .avatar { width: 64px; height: 64px; font-size: 24px; }
.p-av.ring { background: transparent !important; }
.p-av.ring.unseen { box-shadow: inset 0 0 0 3px var(--accent); } .p-av.ring.close { box-shadow: inset 0 0 0 3px var(--ring-close); } .p-av.ring.seen { box-shadow: inset 0 0 0 1px var(--ring-seen); }

/* buttons */
.btn { height: 36px; padding: 0 16px; font-weight: 650; font-size: 14px; letter-spacing: 0; transition: transform .1s var(--ease), background .15s, opacity .15s, filter .15s; }
.btn:active:not([disabled]) { transform: scale(.97); }
.btn-lg { height: 48px; font-size: 16px; }
.btn-accent, .new-posts-pill button, .toast { background: var(--accent); color: var(--on-accent); }
.btn-accent:hover { filter: brightness(1.06); }
.btn-primary { background: var(--text); color: var(--bg); }
.btn-outline { border-color: var(--border-strong); }
.btn-ghost { color: var(--text); } .btn-ghost:hover { background: var(--hover); }
.btn-danger { color: #fff; }
.btn-sq { width: 36px; padding: 0; border: 1px solid var(--border-strong); border-radius: 999px; }
.follow-btn:not(.following) { background: var(--text); color: var(--bg); }
.icon-btn { border-radius: 12px; transition: background .1s var(--ease); }
.icon-btn:active { transform: scale(.94); }
.fr-bell { position: relative; color: var(--text); }
.fr-bell .badge { position: absolute; top: 2px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--accent); color: var(--on-accent); font-size: 10px; font-weight: 700; line-height: 16px; text-align: center; }
.mine .msg { background: var(--accent); color: var(--on-accent); border-radius: 20px 20px 6px 20px; }
.mine .msg a { color: inherit; text-decoration: underline; }
.post-text a, .profile-bio a, .ev-ctx a, .link { color: var(--link); }
.show-more, .card .more-link, .reply-audience, .icon-btn.accent, .dm-compose .icon-btn { color: var(--accent-ink); }
.spinner { border-color: color-mix(in srgb, var(--accent) 22%, transparent); border-top-color: var(--accent); }

/* inputs */
.searchbox { height: 42px; border-radius: 12px; background: var(--surface-1); border: 1px solid var(--hairline); }
.searchbox:focus-within { background: var(--bg); border-color: var(--accent); color: var(--text); }
.field input, .field textarea, .field select, input.input, select.input, textarea.input { border-radius: var(--r-chip) !important; }
.field:focus-within { border-color: var(--accent) !important; }
.field:focus-within label, .field:focus-within .lbl { color: var(--accent-ink) !important; }
input[type=checkbox], input[type=radio], input[type=range] { accent-color: var(--accent); }

/* tabs: header = segmented pills; in-page = underline */
.topbar { border-bottom: 1px solid var(--hairline); }
.topbar-row { min-height: 56px; gap: 12px; }
.topbar h2 { font-size: 20px; line-height: 24px; font-weight: 650; }
.tab { color: var(--muted); font-weight: 550; height: 48px; }
.tab:hover { background: transparent; color: var(--text); }
.tab.active { color: var(--text); font-weight: 650; }
.tab.active > span::after { height: 2px; border-radius: 2px; background: var(--text); }
.seg-tabs { gap: 6px; padding: 0 16px 12px; }
.seg-tabs .tab { flex: 0 0 auto; height: 32px; padding: 0 14px; border-radius: 999px; background: var(--surface-1); font-size: 14px; color: var(--muted); }
.seg-tabs .tab:hover { background: var(--surface-2); }
.seg-tabs .tab.active { background: var(--text); color: var(--bg); }
.seg-tabs .tab.active > span::after { display: none; }
.fr-head { border-bottom: 0; }
.fr-head-row { min-height: 64px; padding: 8px 16px 4px; }
.fr-head-row .fr-title { flex: 1; }

/* cards */
.card { border: 1px solid var(--hairline); border-radius: var(--r-card); background: var(--surface-1); }
.card h3 { font-size: 17px; line-height: 22px; font-weight: 650; padding: 14px 16px 6px; margin: 0; }
.card-h { display: flex; align-items: center; padding: 14px 16px 6px; }
.card-h h3 { padding: 0; flex: 1; display: flex; align-items: center; gap: 8px; }
.card-h a { font-size: 13px; font-weight: 600; color: var(--accent-ink); } .card-h a:hover { text-decoration: underline; }
.card.pad h3 { padding: 0 0 6px; } .card.pad .btn { margin-top: 12px; }
.card .row:hover, .trend:hover, .user-row:hover, .dm-item:hover, .set-item:hover, .notif:hover { background: var(--hover); }
.card.pad { padding: 16px; }

/* chips */
.chip { border-radius: var(--r-chip); background: var(--surface-1); border-color: var(--hairline); }

/* empty / error */
.empty { text-align: left; padding: 40px 24px; max-width: 420px; }
.empty h2 { font: 650 20px/24px var(--font-ui); margin: 0 0 6px; letter-spacing: -.01em; }
.empty p { font-size: 14px; line-height: 20px; margin: 0 0 20px; }
.empty .big { width: 56px; height: 56px; border-radius: 16px; background: var(--surface-1); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; color: var(--muted); }
.empty .big svg { width: 28px; height: 28px; }
.err-view { text-align: center; margin: 12vh auto; }
.err-frame { width: 88px; height: 88px; margin: 0 auto 20px; border-radius: 24px; border: 2px dashed var(--border-strong); display: flex; align-items: center; justify-content: center; color: var(--muted); font: 700 28px/1 var(--font-display); }
.err-actions, .err-view p:last-child { display: flex; gap: 8px; justify-content: center; }
.caught-up { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 32px 16px 48px; color: var(--muted); font-size: 13px; }
.caught-up > span:first-child { width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); display: flex; align-items: center; justify-content: center; }
.caught-up b { color: var(--text); font-size: 15px; font-weight: 650; }

/* ===== Stream (posts as cards) ===== */
.feed-items { display: flex; flex-direction: column; gap: 8px; padding: 0 12px; }
article.post { border: 1px solid var(--hairline); border-radius: var(--r-card); background: var(--surface-1); padding: 12px 16px 2px; transition: background .15s var(--ease), border-color .15s; }
article.post:hover { background: color-mix(in srgb, var(--surface-1) 70%, var(--surface-2)); border-color: var(--border); }
.post.no-border { border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-bottom-color: transparent; margin-bottom: -8px; }
.post-head .name { font-weight: 650; }
.post-head .meta { font-size: 14px; }
.post-text { font-size: 15px; line-height: 22px; }
.post-media, .post-video, .link-card, .quote { border-radius: var(--r-card) !important; border-color: var(--hairline) !important; }
.post-actions { margin-top: 8px; }
.act:active .ic { transform: scale(.88); }
.act.like.on .ic { animation: fr-pop .3s cubic-bezier(.3,1.6,.5,1); }
@keyframes fr-pop { 0% { transform: scale(.7); } 60% { transform: scale(1.18); } 100% { transform: scale(1); } }
.detail { padding: 16px 16px 0; }
.detail .post-text { font-size: 18px; line-height: 26px; }
.detail .stamp, .detail .stats, .detail .post-actions, .reply-row { border-color: var(--hairline); }
.composer { border: 1px solid var(--hairline); border-radius: var(--r-card); margin: 0 12px 12px; background: var(--surface-1); padding: 12px 14px 8px; }
.modal .composer { border: 0; margin: 0; background: transparent; }
.composer textarea { font-size: 17px; line-height: 24px; }
.new-posts-pill { top: 120px; } .new-posts-pill button { height: 34px; font-size: 14px; box-shadow: 0 6px 20px rgba(0,0,0,.3); }

/* story tray */
.story-tray { position: relative; }
.st-scroll { gap: 12px; padding: 4px 16px 16px; }
.st-item { width: 76px; }
.st-name { font-size: 12px; line-height: 16px; color: var(--muted); }
.st-item.mine .st-name { color: var(--text); }
.st-add { top: 52px; right: 2px; border-radius: 7px; color: var(--on-accent); background: var(--accent); border: 2px solid var(--bg); }
.st-arrow { border-radius: 10px; background: var(--surface-1); top: 26px; }

/* ===== Context notes (all three views) ===== */
.ctx-note { margin: 12px 0 4px; border: 1px solid var(--border); border-radius: var(--r-card); background: var(--bg); padding: 10px 12px; font-size: 14px; line-height: 20px; cursor: default; }
.ctx-head { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 650; color: var(--text); margin-bottom: 4px; }
.ctx-head .ic svg { width: 16px; height: 16px; color: var(--link); }
.ctx-head .sample-tag { margin-left: auto; }
.ctx-note p { margin: 0 0 8px; color: var(--text); }
.ctx-foot { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--muted); }
.ctx-foot a { color: var(--link); display: inline-flex; gap: 4px; align-items: center; } .ctx-foot a:hover { text-decoration: underline; } .ctx-foot .ic svg { width: 12px; height: 12px; }
.ctx-note.big { margin: 16px 0 0; padding: 14px 16px; font-size: 15px; line-height: 22px; }
.ctx-rate { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--hairline); font-size: 13px; color: var(--muted); }
.ctx-rate span { margin-right: auto; }
.ctx-rate .chip { cursor: pointer; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; } .ctx-rate .chip .ic svg { width: 14px; height: 14px; }
.ctx-rate .chip.on { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.ctx-add { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 13px; color: var(--muted); padding: 6px 10px; border-radius: 999px; border: 1px dashed var(--border-strong); }
.ctx-add:hover { color: var(--text); border-color: var(--text); } .ctx-add .ic svg { width: 14px; height: 14px; }
.tile-ctx { position: absolute; left: 6px; top: 6px; display: inline-flex; align-items: center; gap: 3px; height: 20px; padding: 0 7px; border-radius: 6px; background: rgba(11,12,14,.72); color: #F2F1EC; font-size: 11px; font-weight: 650; backdrop-filter: blur(6px); }
.tile-ctx svg { width: 12px; height: 12px; }
.v-ctx { pointer-events: auto; margin: 0 0 8px; max-width: 92%; background: rgba(11,12,14,.6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(242,241,236,.18); border-radius: 10px; font-size: 13px; line-height: 18px; color: #F2F1EC; }
.v-ctx summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; padding: 6px 10px; font-weight: 650; }
.v-ctx summary::-webkit-details-marker { display: none; } .v-ctx summary svg { width: 14px; height: 14px; }
.v-ctx > div, .v-ctx > p { padding: 0 10px 8px; margin: 0; }
.v-ctx a { color: #A9B8FF; }
.sample-tag { font-size: 10px; line-height: 16px; font-weight: 650; text-transform: uppercase; letter-spacing: .05em; padding: 0 6px; border-radius: 4px; background: var(--surface-2); color: var(--muted); }

/* ===== Grid (tiles) ===== */
.pgrid { gap: 2px; padding: 0; }
.pgrid .tile { aspect-ratio: 3 / 4; border-radius: var(--r-tile); }
.tile { background: var(--surface-1); }
.tile-text { background: var(--surface-2); font-size: 13px; line-height: 18px; padding: 14px; align-items: flex-start; }
.tile-hover { background: rgba(11,12,14,.5); }
.vgrid { gap: 2px; padding: 0; } .vg-cell { border-radius: var(--r-tile); }

/* ===== Discover ===== */
.dc { padding: 0 0 32px; }
.dc-head { display: flex; align-items: center; gap: 24px; padding: 20px 20px 12px; position: sticky; top: 0; z-index: 10; background: var(--blur-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.dc-head .fr-title { font-size: 32px; line-height: 36px; flex: none; }
.dc-search { flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0; max-width: 520px; margin-left: auto; padding: 0 !important; min-height: 0 !important; }
.dc-search > * { flex: 1; } .dc-search .search-wrap, .dc-search form { width: 100%; }
.chips-row { display: flex; gap: 6px; padding: 4px 20px 16px; overflow-x: auto; scrollbar-width: none; position: sticky; top: 76px; z-index: 9; background: var(--blur-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.chips-row::-webkit-scrollbar { display: none; }
.chip-tab.tab { flex: 0 0 auto; height: 34px; padding: 0 14px; border-radius: 999px; background: var(--surface-1); border: 1px solid var(--hairline); font-size: 14px; font-weight: 550; color: var(--muted); }
.chip-tab.tab:hover { color: var(--text); background: var(--surface-2); }
.chip-tab.tab.active { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip-tab.tab.active > span::after { display: none; }
.sec-head { display: flex; align-items: baseline; gap: 12px; padding: 8px 20px 12px; }
.sec-title { display: inline-flex; align-items: center; gap: 8px; font: 700 20px/24px var(--font-display); margin: 0; letter-spacing: -.01em; }
.sec-sub { font-size: 13px; color: var(--muted); }
.sec-link { margin-left: auto; font-size: 14px; font-weight: 600; color: var(--accent-ink); } .sec-link:hover { text-decoration: underline; }
.live-dot { width: 8px; height: 8px; border-radius: 2px; background: var(--muted); }
.live-dot.on { background: var(--like); box-shadow: 0 0 0 0 color-mix(in srgb, var(--like) 60%, transparent); animation: fr-live 1.6s var(--ease) infinite; }
@keyframes fr-live { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--like) 55%, transparent); } 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.now { margin-bottom: 24px; }
.now-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-auto-rows: minmax(132px, auto); gap: 8px; padding: 0 20px; }
.now-card { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: var(--r-card); background: var(--surface-1); border: 1px solid var(--hairline); overflow: hidden; min-width: 0; transition: background .15s var(--ease), border-color .15s, transform .1s var(--ease); }
.now-card:hover { background: var(--surface-2); border-color: var(--border); }
.now-card:active { transform: scale(.99); }
.now-card.lead { grid-row: span 2; justify-content: flex-end; padding: 18px; min-height: 280px; color: #F2F1EC; background: #16181C; }
.now-card.lead img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.now-card.lead::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(11,12,14,.92), rgba(11,12,14,.1)); }
.now-card.lead > span { position: relative; z-index: 1; }
.now-card.lead .now-tag { font: 700 32px/36px var(--font-display); letter-spacing: -.02em; }
.now-card.lead .now-ctx { color: rgba(242,241,236,.85); -webkit-line-clamp: 3; }
.now-card.lead .now-meta, .now-card.lead .now-stats { color: rgba(242,241,236,.72); }
.now-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; line-height: 16px; color: var(--muted); font-weight: 550; }
.live-pill, .rise-pill, .quiet-pill { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 8px; border-radius: 6px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.live-pill { background: var(--like); color: #fff; }
.live-pill::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: #fff; }
.rise-pill { background: var(--accent); color: var(--on-accent); } .rise-pill svg { width: 12px; height: 12px; }
.quiet-pill { background: var(--surface-2); color: var(--muted); }
.now-tag { font: 700 20px/24px var(--font-display); letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.now-ctx { font-size: 13px; line-height: 18px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.now-stats { margin-top: auto; padding-top: 6px; font-size: 12px; color: var(--muted); }
.now-stats b { color: inherit; font-weight: 700; }
.now-card:not(.lead) .now-stats b { color: var(--text); }
.dc-grid #ex-grid, .dc-grid .pgrid { padding: 0 20px; }
.dc-grid .pgrid { border-radius: var(--r-card); overflow: hidden; }
.trend-cards { padding: 0 12px; display: flex; flex-direction: column; gap: 2px; }
.trend-cards .trend { border-radius: var(--r-card); }
.trend .tag { font-weight: 650; font-size: 16px; }
@media (max-width: 767px) {
  .dc-head { top: 56px; flex-direction: column; align-items: stretch; gap: 12px; padding: 12px 16px 8px; }
  .dc-head .fr-title { font-size: 24px; line-height: 28px; }
  .dc-search { max-width: none; margin: 0; }
  .chips-row { top: 168px; padding: 4px 16px 12px; }
  .now-row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 16px; scrollbar-width: none; }
  .now-card { flex: 0 0 72%; scroll-snap-align: start; min-height: 150px; }
  .now-card.lead { flex-basis: 86%; min-height: 220px; }
  .sec-head { padding: 8px 16px 10px; } .dc-grid #ex-grid, .dc-grid .pgrid { padding: 0; } .dc-grid .pgrid { border-radius: 0; }
}

/* event page /now/:tag */
.ev-head { padding: 20px 16px 16px; display: flex; flex-direction: column; gap: 8px; }
.ev-title { font: 700 32px/36px var(--font-display); letter-spacing: -.02em; margin: 0; overflow-wrap: anywhere; }
.ev-ctx { margin: 0; font-size: 15px; line-height: 22px; color: var(--text); }
.ev-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 8px; }
.ev-stats > div { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: var(--r-card); background: var(--surface-1); border: 1px solid var(--hairline); font-size: 12px; color: var(--muted); min-width: 0; }
.ev-stats b { font: 700 20px/24px var(--font-display); color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 520px) { .ev-stats { grid-template-columns: repeat(2, 1fr); } }
.ev-head .seg { margin: 8px 0 0; width: max-content; border-radius: 999px; padding: 3px; gap: 2px; background: var(--surface-1); border-color: var(--hairline); }
.ev-head .seg a, .ev-head .seg button { padding: 6px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--muted); }
.ev-head .seg .on, .ev-head .seg [aria-current] { background: var(--text); color: var(--bg); }
.ev-note { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin: 0; } .ev-note .ic svg { width: 14px; height: 14px; }
#ev-feed { margin-top: 4px; }

/* ===== Profile ===== */
.fr-cover { height: 148px; border-radius: 0 0 var(--r-sheet) var(--r-sheet); margin: 0 12px; }
.fr-ph { padding: 0 24px 4px; }
.fr-ph .profile-top { display: flex; align-items: flex-end; gap: 20px; height: auto; margin-top: -44px; justify-content: flex-start; }
.fr-ph .profile-top .p-av { margin-top: 0; padding: 4px; border-radius: calc(28% + 4px); background: var(--bg) !important; flex: none; }
.fr-ph .avatar.lg { width: 112px; height: 112px; font-size: 44px; margin: 0; }
.fr-id { flex: 1; min-width: 0; padding-bottom: 4px; }
.fr-ph .profile-name { font: 700 24px/28px var(--font-display); letter-spacing: -.015em; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.p-handle { font-size: 14px; display: flex; gap: 8px; align-items: center; }
.fy { font-size: 11px; font-weight: 650; padding: 1px 6px; border-radius: 4px; background: var(--surface-2); color: var(--muted); }
.fr-ph .profile-counts { gap: 24px; margin: 10px 0 0; }
.fr-ph .profile-counts a { display: inline-flex; gap: 4px; align-items: baseline; font-size: 14px; }
.fr-ph .profile-counts b { font-size: 16px; font-weight: 700; }
.fr-ph .profile-counts a:hover { text-decoration: none; } .fr-ph .profile-counts a:hover .muted { color: var(--text); }
.fr-ph .profile-bio { margin: 16px 0 8px; font-size: 15px; line-height: 22px; max-width: 520px; }
.fr-ph .profile-meta { font-size: 13px; gap: 4px 16px; } .fr-ph .profile-meta .ic svg { width: 15px; height: 15px; }
.known { display: block; font-size: 13px; color: var(--muted); margin-top: 8px; }
.fr-ph .profile-actions { margin: 16px 0 4px; gap: 8px; flex-wrap: wrap; }
.fr-ph .profile-actions .btn { gap: 6px; } .fr-ph .profile-actions .btn .ic svg { width: 16px; height: 16px; }
.fr-ph .profile-actions > .btn:first-child { min-width: 132px; }
#p-highlights .hl-row { padding: 12px 0 8px; gap: 14px; scrollbar-width: none; }
.hl-cover { width: 64px; height: 64px; border-color: var(--border); }
.hl-name { font-size: 12px; color: var(--muted); }
.p-tabs { position: sticky; top: 56px; z-index: 8; background: var(--blur-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--hairline); padding: 0 12px; margin-top: 8px; }
.p-tabs .tab { height: 48px; padding: 0 14px; }
.p-tabs .tab > span { gap: 6px; }
.p-tabs .tab .ic svg { width: 18px; height: 18px; }
.p-tabs .tab em { font-style: normal; font-size: 14px; }
#p-feed { padding-top: 8px; }
#p-feed .pgrid, #p-feed .vgrid { padding: 0 12px; }
@media (max-width: 767px) {
  .fr-cover { height: 112px; margin: 0; border-radius: 0; }
  .fr-ph { padding: 0 16px 4px; }
  .fr-ph .profile-top { flex-direction: column; align-items: flex-start; gap: 8px; margin-top: -40px; }
  .fr-ph .avatar.lg { width: 88px; height: 88px; font-size: 34px; }
  .fr-ph .profile-counts { gap: 20px; }
  .fr-ph .profile-actions > .btn { flex: 1; min-width: 0; }
  .p-tabs { top: 112px; padding: 0; }
  .p-tabs .tab { flex: 1 0 auto; }
  #p-feed .pgrid, #p-feed .vgrid { padding: 0; }
}
.p-note { border-radius: 12px; background: var(--surface-1); }

/* ===== Watch (Stage) ===== */
.vfeed { background: #0B0C0E; }
.vstage { border-radius: var(--r-sheet); background: #16181C; }
.watch-top { background: linear-gradient(rgba(11,12,14,.7), transparent); border: 0; position: absolute; left: 0; right: 0; top: 0; z-index: 6; }
.watch-top .tabs { justify-content: center; gap: 4px; padding: 10px 0; }
.watch-top .tab { flex: 0 0 auto; height: 34px; padding: 0 14px; border-radius: 999px; color: rgba(242,241,236,.7); font-weight: 650; }
.watch-top .tab:hover { color: #fff; background: rgba(242,241,236,.08); }
.watch-top .tab.active { color: #0B0C0E; background: #F2F1EC; } .watch-top .tab.active > span::after { display: none; }
.vrail { color: #F2F1EC; }
.vr-av .avatar { border-radius: 28%; }
.vr-follow { background: var(--accent) !important; color: var(--on-accent) !important; border-radius: 6px !important; }
.v-info { background: linear-gradient(transparent, rgba(11,12,14,.72)); font-size: 14px; line-height: 20px; }
.v-author { font-weight: 650; }
.v-prog-fill { background: var(--accent) !important; } .v-prog-knob { background: var(--accent) !important; }
.vnav .icon-btn { background: var(--surface-1); border-color: var(--hairline); border-radius: 12px; }
.vsheet { border-radius: var(--r-sheet) var(--r-sheet) 0 0; background: var(--bg); }
@media (max-width: 767px) {
  .layout[data-page=watch] .watch { height: 100dvh; }
  .layout[data-page=watch] .vslide { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .layout[data-page=watch] .vstage { border-radius: 0; }
  .layout[data-page=watch] .vrail { bottom: calc(96px + env(safe-area-inset-bottom)); }
}

/* ===== Activity ===== */
.act-sec { font-size: 13px; line-height: 18px; font-weight: 650; text-transform: none; color: var(--muted); margin: 0; padding: 20px 20px 8px; letter-spacing: .01em; }
.notif { border: 0; border-radius: var(--r-card); margin: 0 8px; padding: 12px; gap: 12px; position: relative; }
.notif.unread { background: transparent; }
.notif.unread::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 2px; background: var(--accent); }
.notif .n-icon { width: 32px; } .notif .n-icon svg { width: 22px; height: 22px; }
.n-icon.follow { color: var(--accent-ink); } .n-icon.follow svg { fill: none; }
.notif .avs .avatar { width: 32px; height: 32px; font-size: 13px; }
.notif .n-body { font-size: 14px; line-height: 20px; }
.notif .n-text { font-size: 14px; margin-top: 4px; }
.n-time { font-size: 12px; color: var(--muted); margin-left: 6px; font-weight: 400; }
.n-icon.story, .n-icon.tag { color: var(--link); } .n-icon.collab { color: var(--success); }

/* ===== Messages ===== */
.dm-list { width: 380px; border-right: 1px solid var(--hairline); }
.dm-item { margin: 0 8px; padding: 12px; border-radius: var(--r-card); border-right: 0; }
.dm-item.active { background: var(--surface-1); box-shadow: inset 3px 0 0 var(--accent); }
.dm-item .info { font-size: 14px; }
.dm-empty h2 { font: 700 24px/28px var(--font-display); }
.dm-thread { background: var(--bg); }
.msg { border-radius: 20px 20px 20px 6px; background: var(--surface-2); padding: 10px 14px; font-size: 15px; line-height: 21px; }
.dm-compose { border-top: 1px solid var(--hairline); padding: 8px 12px; }
.dm-compose .box { border-radius: 22px; background: var(--surface-1); border: 1px solid var(--hairline); }
.dm-compose .box:focus-within { border-color: var(--accent); }
.dm-profile { border-color: var(--hairline); }
.dm-notes { border-color: var(--hairline); }
.note-bub { border-radius: 12px !important; }
.dm-req-banner { border-radius: var(--r-card); }
html.vanish .dm-thread, .dm-thread.vanish { background: #0B0C0E; }

/* ===== Settings and form pages ===== */
.set-nav { width: 360px; border-right: 1px solid var(--hairline); }
.set-item { margin: 0 8px; border-radius: var(--r-card); padding: 12px; }
.set-item.active { background: var(--surface-1); border-right: 0; box-shadow: inset 3px 0 0 var(--accent); }
.set-main { padding-bottom: 48px; }
.set-desc { font-size: 13px; line-height: 18px; }
.fp-group { margin: 8px 16px 24px; }
.fp-label { font-size: 13px; line-height: 18px; font-weight: 650; color: var(--muted); margin: 0 4px 10px; letter-spacing: .01em; }
.theme-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.theme-opt { position: relative; height: auto; display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 10px; padding: 8px 8px 12px; border-radius: 12px; border: 1px solid var(--hairline); background: var(--surface-1); cursor: pointer; text-align: left; font-weight: 400; transition: border-color .15s, transform .1s var(--ease); }
.theme-opt:hover { border-color: var(--border-strong); }
.theme-opt:active { transform: scale(.98); }
.theme-opt.on { border: 1px solid var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.th-mini { display: flex; flex-direction: column; gap: 6px; height: 72px; padding: 10px; border-radius: 8px; border: 1px solid rgba(127,127,127,.18); }
.th-mini i { display: block; height: 6px; border-radius: 3px; width: 70%; }
.th-mini i:first-child { width: 22px; height: 22px; border-radius: 6px; background: var(--accent) !important; }
.th-mini i:last-child { width: 45%; }
.th-dark .th-mini { background: #0B0C0E; } .th-dark .th-mini i { background: #2A2D33; }
.th-light .th-mini { background: #FAFAF7; } .th-light .th-mini i { background: #DEDED6; }
.th-dim .th-mini { background: #17151C; } .th-dim .th-mini i { background: #353040; }
.th-txt { display: flex; flex-direction: column; gap: 2px; padding: 0 4px; }
.th-txt b { font-size: 15px; font-weight: 650; }
.th-txt span { font-size: 12px; line-height: 16px; color: var(--muted); }
.theme-opt .checkbox { position: absolute; top: 14px; right: 14px; width: 20px; height: 20px; border-radius: 6px; border: 1px solid rgba(127,127,127,.5); display: flex; align-items: center; justify-content: center; background: transparent; }
.theme-opt .checkbox.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.theme-opt .checkbox svg { width: 14px; height: 14px; stroke-width: 3; }
.swatches { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 16px; padding: 4px; }
.swatch { width: auto; height: auto; border-radius: 0; display: inline-flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; font-size: 12px; color: var(--muted); background: none; }
.swatch > span { width: 40px; height: 40px; border-radius: 12px; background: var(--sw); display: flex; align-items: center; justify-content: center; color: #0B0C0E; transition: transform .1s var(--ease); }
.swatch > span svg { width: 18px; height: 18px; stroke-width: 3; }
.swatch:hover > span { transform: scale(1.06); }
.swatch.on > span { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--sw); }
.swatch.on { color: var(--text); font-weight: 650; }
.swatch em { font-style: normal; }
.fs-slider { display: flex; align-items: center; gap: 16px; padding: 12px 16px; border-radius: 12px; background: var(--surface-1); border: 1px solid var(--hairline); }
.fs-slider input { flex: 1; }
.preview-post { border-radius: 12px; }
@media (max-width: 520px) { .theme-opts { gap: 6px; } .th-mini { height: 56px; } .th-txt span { display: none; } }

/* ===== Overlays: modals, sheets, popovers, toasts ===== */
.modal-back { background: var(--overlay); backdrop-filter: blur(2px); animation: fr-fade .2s var(--ease-in); }
.modal { background: var(--bg); border-radius: var(--r-sheet); border: 1px solid var(--hairline); box-shadow: 0 24px 64px rgba(0,0,0,.45); animation: fr-rise .25s var(--ease-in); }
.modal-head { height: 56px; border-bottom: 1px solid var(--hairline); }
.modal-head h2 { font-size: 17px; line-height: 22px; font-weight: 650; }
.modal.sheet { width: 440px; }
.sheet-grab { display: none; width: 36px; height: 4px; border-radius: 2px; background: var(--border-strong); margin: 8px auto 0; }
.sheet-list { padding: 6px; }
.sheet-list .menu-item { border-radius: 10px; }
@media (max-width: 767px) {
  .modal-back { align-items: flex-end; padding-top: 0; }
  .modal { width: 100% !important; max-width: 100vw; margin: 0; border-radius: var(--r-sheet) var(--r-sheet) 0 0; max-height: 92vh; overflow-y: auto; animation: fr-sheet .28s var(--ease-in); padding-bottom: env(safe-area-inset-bottom); }
  .sheet-grab { display: block; }
}
@keyframes fr-sheet { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }
.popover { background: var(--surface-1); border: 1px solid var(--border); border-radius: 14px; padding: 6px; box-shadow: 0 16px 40px rgba(0,0,0,.4); animation: fr-pop-in .16s var(--ease-in); }
@keyframes fr-pop-in { from { opacity: 0; transform: scale(.97) translateY(-4px); } to { opacity: 1; transform: none; } }
.menu-item { border-radius: 9px; padding: 10px 12px; font-weight: 550; font-size: 15px; }
.menu-item:hover { background: var(--hover); }
.menu-item .ic svg { width: 18px; height: 18px; }
.toast { border-radius: 12px; font-weight: 600; font-size: 14px; padding: 12px 16px; box-shadow: 0 12px 32px rgba(0,0,0,.4); animation: fr-toast .2s var(--ease-in); }
.toast a { color: inherit; text-decoration: underline; }
@keyframes fr-toast { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ===== Create ===== */
.create-pop { min-width: 300px; }
.create-pop .menu-item .ic { width: 32px; height: 32px; border-radius: 9px; background: var(--surface-2); display: inline-flex; align-items: center; justify-content: center; }
.create-pop .menu-item:first-child .ic { background: var(--accent); color: var(--on-accent); }
.soon { margin-left: auto; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); border: 1px solid var(--border); padding: 0 6px; border-radius: 4px; }
.page-lede { padding: 8px 20px 16px; margin: 0; color: var(--muted); font-size: 15px; line-height: 22px; }
.mode-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 0 16px; }
.mode-card { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 16px; border-radius: 14px; border: 1px solid var(--hairline); background: var(--surface-1); text-align: left; min-height: 132px; transition: background .15s var(--ease), border-color .15s, transform .1s var(--ease); }
.mode-card:hover { background: var(--surface-2); border-color: var(--border); }
.mode-card:active { transform: scale(.98); }
.mode-card:first-child { grid-column: span 2; min-height: 112px; background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.mode-card:first-child .mode-d { color: color-mix(in srgb, var(--on-accent) 72%, transparent); }
.mode-card:first-child .mode-ic { background: rgba(11,12,14,.12); color: var(--on-accent); }
.mode-ic { width: 40px; height: 40px; border-radius: 11px; background: var(--surface-2); display: inline-flex; align-items: center; justify-content: center; margin-bottom: auto; }
.mode-ic .ic svg { width: 20px; height: 20px; }
.mode-t { font-size: 17px; line-height: 22px; font-weight: 650; margin-top: 12px; }
.mode-d { font-size: 13px; line-height: 18px; color: var(--muted); }
.tip-card { margin: 16px; padding: 14px 16px; border-radius: 12px; border: 1px dashed var(--border-strong); font-size: 13px; line-height: 18px; color: var(--muted); display: flex; gap: 10px; align-items: flex-start; }
.tip-card .ic svg { width: 16px; height: 16px; color: var(--accent-ink); }
@media (min-width: 900px) { .mode-grid { grid-template-columns: repeat(3, 1fr); } .mode-card:first-child { grid-column: span 3; } }

/* ===== Context column ===== */
.sidebar .search-wrap { position: sticky; top: 0; padding: 8px 0 12px; background: var(--bg); z-index: 2; }
.sidebar .card { margin-bottom: 12px; }
.side-now { display: flex; flex-direction: column; gap: 2px; padding: 4px 16px 12px; border-radius: 8px; transition: background .15s; }
.side-now:hover { background: var(--hover); }
.side-now b, .side-now strong { font-size: 15px; font-weight: 650; }
.side-now small, .side-now .muted { font-size: 12px; }
.sidebar .footer { font-size: 12px; line-height: 18px; color: var(--muted); padding: 4px 8px 24px; }
.sidebar .footer a:hover { text-decoration: underline; }

/* ===== Landing / auth ===== */
.fr-landing { gap: 48px; padding: 0 5vw; max-width: 1280px; margin: 0 auto; }
.lp-art { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.lp-mark svg { width: 64px; height: 64px; }
.lp-views { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; width: 100%; max-width: 520px; }
.lpv { aspect-ratio: 9 / 16; border-radius: 16px; background: var(--surface-1); border: 1px solid var(--hairline); padding: 12px; display: flex; flex-direction: column; gap: 8px; position: relative; overflow: hidden; }
.lpv.stream i { display: block; height: 22%; border-radius: 8px; background: var(--surface-2); }
.lpv.stream i.s { height: 6px; width: 60%; border-radius: 3px; }
.lpv.stream i:first-child { background: var(--accent); opacity: .9; }
.lpv.grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; gap: 3px; padding: 6px; }
.lpv.grid i { border-radius: 2px; background: var(--surface-2); }
.lpv.grid i:nth-child(5) { background: var(--accent); } .lpv.grid i:nth-child(1), .lpv.grid i:nth-child(9) { background: var(--border-strong); }
.lpv.stage { background: #0B0C0E; padding: 0; }
.lpv.stage i { position: absolute; inset: 10px; border-radius: 10px; background: linear-gradient(170deg, #202329, #0B0C0E); }
.lpv.stage b { position: absolute; right: 12px; bottom: 30%; width: 10px; height: 46px; border-radius: 5px; background: var(--accent); box-shadow: 0 -18px 0 -2px #F2F1EC; }
.lp-cap { font-size: 13px; color: var(--muted); text-align: center; }
.fr-landing .right h1 { font: 800 56px/60px var(--font-display); letter-spacing: -.03em; margin: 0 0 16px; }
.fr-landing .right h3 { font: 600 22px/28px var(--font-ui); color: var(--muted); margin: 0 0 32px; }
.fr-landing .cta .btn { height: 44px; }
.auth-body h2 { font: 700 28px/32px var(--font-display); }
@media (max-width: 767px) { .fr-landing { padding: 32px 20px; gap: 24px; } .fr-landing .right h1 { font-size: 36px; line-height: 40px; } .lp-views { max-width: 320px; } }

/* ===== Misc refinements ===== */
.user-row .names .bold, .dm-item .bold { font-weight: 650; }
.trend { padding: 12px 16px; }
hr, .divider { border-color: var(--hairline); }
.composer .c-toolbar { border-top-color: var(--hairline); }
.btn-accent .ic svg, .post-btn .ic svg { stroke: currentColor; }
/* create refinements */
.mode-card { min-height: 140px; }
.mode-ic { margin-bottom: 0; }
.mode-t { margin-top: auto; padding-top: 16px; display: flex; align-items: center; gap: 8px; }
.mode-card:first-child { min-height: 120px; }
.mode-card.is-soon { opacity: .6; cursor: default; }
.mode-t .soon { margin-left: 0; font-style: normal; }
.tip-card b { color: var(--text); font-weight: 650; display: block; margin-bottom: 2px; }
.tip-card p { margin: 0; }
.tip-card > .ic { flex: none; margin-top: 1px; }
/* discover lead card legibility */
.now-card.lead img { opacity: .4; filter: saturate(.8) blur(1px); }
.now-card.lead::after { background: linear-gradient(to top, rgba(11,12,14,.96) 30%, rgba(11,12,14,.35)); }
/* profile identity sits below the cover */
.fr-ph .profile-top { align-items: flex-start; }
.fr-ph .fr-id { padding-top: 52px; }
.p-tabs .tab { padding: 0 10px; }
@media (max-width: 767px) { .fr-ph .fr-id { padding-top: 0; } }
/* post detail: replies as a card stack */
#replies { display: flex; flex-direction: column; gap: 8px; padding: 8px 12px 0; }
.detail + .composer, .detail ~ .composer { margin-top: 12px; }
.detail .post-actions { height: 52px; }
/* landing refinements */
.lp-mark .wordmark, .lp-mark { display: inline-flex; align-items: center; gap: 10px; }
.lp-mark .wm-mark, .lp-mark .wm-mark svg { width: 40px; height: 40px; }
.lp-mark .wm-text { font-size: 36px; }
.lp-cap { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; max-width: 520px; font-size: 13px; font-weight: 600; color: var(--muted); }
.lp-cap span { text-align: center; }
.fr-landing .right .fine, .fr-landing .right .note { max-width: 300px; }
.lp-mark .wm-text { display: inline !important; }
/* mobile refinements */
@media (max-width: 767px) {
  .fr-head .fr-bell { display: none; }
  .fr-head-row { min-height: 52px; padding-top: 4px; }
  .m-bar .nav-icon .badge { top: -6px; right: -16px; }
  .sec-head { flex-wrap: wrap; row-gap: 2px; } .sec-sub { flex-basis: 100%; }
  .vrail { filter: drop-shadow(0 1px 3px rgba(0,0,0,.65)); }
  .layout[data-page=watch] .vr-ic { background: rgba(11,12,14,.42); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
}
.nav-icon .badge { top: -5px; right: -9px; }
.vr-ic { border-radius: 14px; }
/* create menu items: title over description */
.create-pop .menu-item, .create-sheet .menu-item { align-items: center; gap: 12px; padding: 8px 10px; }
.create-pop .menu-item > span:last-child, .create-sheet .menu-item > span:last-child { flex: 1; display: grid; grid-template-columns: 1fr auto; column-gap: 8px; text-align: left; }
.create-pop .menu-item b, .create-sheet .menu-item b { font-weight: 650; font-size: 15px; line-height: 20px; }
.create-pop .menu-item small, .create-sheet .menu-item small { grid-row: 2; font-size: 13px; line-height: 18px; font-weight: 400; color: var(--muted); }
.create-pop .menu-item .soon, .create-sheet .menu-item .soon { grid-row: 1 / 3; grid-column: 2; align-self: center; font-style: normal; }
.create-sheet .menu-item > .ic { width: 36px; height: 36px; border-radius: 10px; background: var(--surface-2); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.create-sheet .menu-item:first-child > .ic { background: var(--accent); color: var(--on-accent); }
.menu-item.is-disabled { opacity: .55; }
/* accent lines: Volt on Paper needs a deeper tone for rings, bars and outlines */
:root { --accent-line: var(--accent); }
[data-theme="light"] { --accent-line: color-mix(in srgb, var(--accent) 62%, #14161A); }
.ring.unseen { box-shadow: inset 0 0 0 2px var(--accent-line); }
.p-av.ring.unseen { box-shadow: inset 0 0 0 3px var(--accent-line); }
.theme-opt.on { border-color: var(--accent-line); box-shadow: 0 0 0 1px var(--accent-line); }
.set-item.active { box-shadow: inset 3px 0 0 var(--accent-line); }
.dm-item.active { box-shadow: none; } /* design-review fix 6: neutral highlight, no purple bar */
.notif.unread::before { background: var(--accent-line); }
.searchbox:focus-within, .dm-compose .box:focus-within, .field:focus-within { border-color: var(--accent-line) !important; }
:focus-visible { outline-color: var(--accent-line); }
.tab.active > span::after { background: var(--text); }
/* profile note bubble sits on the cover, above the avatar */
.fr-ph .p-note { top: -30px; left: 56%; white-space: normal; max-width: 160px; z-index: 2; }
.fr-ph .p-note { width: max-content; max-width: 200px; }
/* Watch: the overlaid tab bar only catches clicks on the pills; mute sits below it */
.watch-top, .watch-top .tabs { pointer-events: none; }
.watch-top .tab, .watch-top button, .watch-top a { pointer-events: auto; }
.vslide .v-mute { top: 62px; }
