:root {
  --color-base: #100F13;
  --color-surface: #18171C;
  --color-raised: #211F25;
  --color-text: #F7F5F8;
  --color-muted: #AAA6B1;
  --color-primary: #F47F9D;
  --color-primary-ink: #30131D;
  --color-accent: #D9B7FF;
  --color-accent-ink: #241538;
  --color-link: #FFA0B6;
  --color-focus: #FFD2DE;
  --color-focus-alt: #55333F;
  --color-border: #37343D;
  --color-error: #FFB4B9;
  --color-success: #A8D8B7;
  --font-display: 'Inter Variable', Inter, system-ui, sans-serif;
  --font-body: 'Inter Variable', Inter, system-ui, sans-serif;
  --text-body: 1rem;
  --leading-body: 1.5rem;
  --text-small: .875rem;
  --leading-small: 1.25rem;
  --text-h1: clamp(2rem, 6vw, 3rem);
  --text-h2: clamp(1.5rem, 4vw, 2rem);
  --text-h3: 1.25rem;
  --leading-display: 1.08;
  --space-half: 4px;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-6: 48px;
  --space-8: 64px;
  --space-12: 96px;
  --space-16: 128px;
  --target-min: 48px;
  --radius-sm: 10px;
  --radius-card: 18px;
  --radius-sheet: 22px;
  --radius-pill: 999px;
  --border: 1px solid var(--color-border);
  --shadow: 0 8px 24px rgb(0 0 0 / .22);
  --shadow-hover: 0 18px 54px rgb(0 0 0 / .38);
  --focus-ring: 3px solid var(--color-focus);
  --focus-offset: 2px;
  --content-max: 100vw;
  --header-h: 72px;
  --logo-h: 32px;
  --text-logo: 1.25rem;
  color-scheme: dark;
  font-family: var(--font-body);
  font-size: 16px;
  background: var(--color-base);
  color: var(--color-text);
  scroll-padding-bottom: 96px;
}
* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; background: var(--color-base); scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--color-base); color: var(--color-text); font: var(--text-body)/var(--leading-body) var(--font-body); }
button, input, textarea, select { font: inherit; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
a { color: var(--color-link); text-underline-offset: .18em; }
img, video, iframe { max-width: 100%; }
svg { display: block; }
:focus-visible { outline: var(--focus-ring); outline-offset: var(--focus-offset); }
::selection { color: var(--color-primary-ink); background: var(--color-primary); }
.skip-link { position: fixed; z-index: 1000; top: 8px; left: 8px; transform: translateY(-160%); padding: 12px 16px; color: var(--color-primary-ink); background: var(--color-primary); border-radius: var(--radius-sm); }
.skip-link:focus { transform: translateY(0); }
.loading-screen { min-height: 100vh; display: grid; place-items: center; align-content: center; gap: 16px; color: var(--color-muted); }
.loading-screen p { margin: 0; font-size: var(--text-small); }
.loading-orbit { width: 24px; height: 24px; border: 2px solid var(--color-border); border-top-color: var(--color-primary); border-radius: 50%; animation: orbit 900ms linear infinite; }
@keyframes orbit { to { transform: rotate(360deg); } }
.app-root { min-height: 100vh; }
.muted { color: var(--color-muted); }
.eyebrow { margin: 0 0 8px; color: var(--color-accent); font-size: .8125rem; line-height: 1.2; font-weight: 700; letter-spacing: .015em; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); letter-spacing: -.035em; }
h1 { font-size: var(--text-h1); line-height: var(--leading-display); }
h2 { font-size: var(--text-h2); line-height: var(--leading-display); }
h3 { font-size: var(--text-h3); line-height: 1.25; }
p { margin: 0 0 16px; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
.btn { min-height: var(--target-min); display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 20px; border: 1px solid transparent; border-radius: 11px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease; }
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(1px); }
.btn-primary { color: var(--color-primary-ink); background: var(--color-primary); }
.btn-primary:hover { background: #FF93AD; }
.btn-secondary { color: var(--color-text); background: var(--color-raised); border-color: var(--color-border); }
.btn-secondary:hover { background: #322C2F; }
.btn-accent { color: var(--color-accent-ink); background: var(--color-accent); }
.btn-quiet { color: var(--color-text); background: transparent; border-color: var(--color-border); }
.btn-danger { color: #FFF5F6; background: #A6384D; border-color: #B34A5E; }
.btn-danger:hover { background: #BD455A; }
.btn-block { width: 100%; }
.icon-button { width: 48px; height: 48px; display: inline-grid; place-items: center; padding: 0; color: var(--color-text); background: var(--color-surface); border: var(--border); border-radius: 14px; }
.icon-button:hover { border-color: var(--color-primary); background: var(--color-raised); }
.icon-button svg { width: 22px; height: 22px; stroke: currentColor; }
.icon-button.is-active { color: var(--color-accent); border-color: var(--color-accent); }
.form-field { display: grid; gap: 8px; color: var(--color-text); font-size: var(--text-small); font-weight: 600; }
.form-field input, .form-field textarea, .form-field select, .composer textarea, .search-input {
  width: 100%; min-height: 48px; padding: 12px 16px; color: var(--color-text); background: var(--color-raised);
  border: 1px solid var(--color-border); border-radius: var(--radius-sm);
}
.form-field textarea, .composer textarea { min-height: 96px; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--color-muted); opacity: 1; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus, .search-input:focus { border-color: var(--color-primary); }
.notice { padding: 16px; color: var(--color-muted); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-sm); font-size: var(--text-small); line-height: var(--leading-small); }
.notice strong { color: var(--color-text); }
.notice.error { color: var(--color-error); border-color: #A74753; }
.notice.success { color: var(--color-success); border-color: #347353; }
.text-link { color: var(--color-link); text-decoration: underline; text-underline-offset: .2em; }
.auth-screen { min-height: 100vh; display: grid; grid-template-columns: minmax(280px, 1fr) minmax(360px, 520px); align-items: stretch; }
.auth-art { position: relative; min-height: 720px; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 48px; background: #20191D; border-right: 1px solid var(--color-border); }
.auth-art:before, .auth-art:after { display: none; }
.auth-mark, .auth-art-copy, .auth-art-bottom { position: relative; z-index: 1; }
.brand-lockup { display: inline-flex; align-items: center; gap: 12px; color: var(--color-text); font-family: var(--font-display); font-size: var(--text-logo); font-weight: 750; letter-spacing: -.04em; text-decoration: none; white-space: nowrap; }
.brand-lockup img { width: var(--logo-h); height: var(--logo-h); flex: none; }
.auth-art-copy { max-width: 600px; }
.auth-art-copy h1 { max-width: 12ch; margin: 16px 0; }
.auth-art-copy p { max-width: 46ch; color: var(--color-muted); font-size: 1.1rem; }
.auth-art-bottom { color: var(--color-muted); font-size: var(--text-small); }
.auth-panel { display: flex; align-items: center; justify-content: center; padding: 48px 40px; }
.auth-card { width: 100%; max-width: 420px; display: grid; gap: 24px; }
.auth-card-head { display: grid; gap: 8px; }
.auth-card-head p { margin: 0; color: var(--color-muted); }
.mobile-brand { display: none; }
.age-check { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; color: var(--color-muted); font-size: var(--text-small); line-height: var(--leading-small); }
.age-check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--color-primary); }
.auth-footer { border-top: var(--border); padding-top: 20px; color: var(--color-muted); font-size: .8125rem; line-height: 1.25rem; }
.app-frame { min-height: 100vh; }
.desktop-rail { position: fixed; z-index: 20; inset: 0 auto 0 0; width: 248px; display: flex; flex-direction: column; gap: 28px; padding: 28px 20px 20px; background: var(--color-base); border-right: var(--border); }
.desktop-rail .brand-lockup { margin: 0 0 8px 8px; }
.rail-nav { display: grid; gap: 8px; }
.nav-item { min-height: 48px; display: flex; align-items: center; gap: 14px; padding: 0 14px; color: var(--color-muted); background: transparent; border: 1px solid transparent; border-radius: 12px; text-align: left; text-decoration: none; font-weight: 650; white-space: nowrap; }
.nav-item:hover, .nav-item.active { color: var(--color-text); background: var(--color-surface); }
.nav-item.active { border-color: var(--color-border); }
.nav-item.active svg { color: var(--color-primary); }
.nav-item svg { width: 21px; height: 21px; flex: none; stroke: currentColor; }
.rail-bottom { margin-top: auto; display: grid; gap: 10px; }
.rail-user { display: flex; align-items: center; gap: 12px; padding: 12px 8px; border-top: var(--border); }
.avatar { width: 44px; height: 44px; flex: none; display: inline-grid; place-items: center; color: var(--color-primary); background: var(--color-raised); border: 1px solid var(--color-border); border-radius: 50%; font-weight: 750; text-transform: uppercase; }
.avatar.small { width: 36px; height: 36px; font-size: .75rem; }
.user-meta { min-width: 0; display: grid; gap: 2px; }
.user-meta strong, .user-meta span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-meta span { color: var(--color-muted); font-size: .8125rem; }
.app-main { min-height: 100vh; margin-left: 248px; }
.topbar { position: sticky; z-index: 15; top: 0; height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 32px; background: var(--color-base); border-bottom: var(--border); }
.topbar-title { font-weight: 700; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.topbar .search-input { width: min(360px, 32vw); min-height: 44px; padding: 8px 16px 8px 44px; border-radius: var(--radius-pill); }
.search-wrap { position: relative; }
.search-wrap svg { position: absolute; top: 12px; left: 16px; width: 20px; color: var(--color-muted); stroke: currentColor; }
.content-area { width: 100%; max-width: none; margin: 0; padding: 28px clamp(18px, 2.4vw, 44px); }
.mobile-top { display: none; }
.mobile-nav { display: none; }
.safety-banner { width: 100%; margin: 0 0 24px; padding: 12px 16px; color: var(--color-muted); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-sm); font-size: .8125rem; }
.safety-banner strong { color: var(--color-primary); }
.stories-row { width: 100%; margin: 0 0 24px; display: flex; gap: 16px; overflow-x: auto; padding: 4px 4px 16px; scrollbar-width: thin; }
.story-chip { width: 72px; flex: 0 0 72px; display: grid; justify-items: center; gap: 8px; padding: 0; color: var(--color-muted); background: none; border: 0; font-size: .75rem; }
.story-ring { width: 64px; height: 64px; display: grid; place-items: center; padding: 3px; border: 2px solid var(--color-accent); border-radius: 50%; }
.story-ring.seen { border-color: var(--color-border); }
.story-inner { width: 100%; height: 100%; display: grid; place-items: center; background: var(--color-raised); border: 2px solid var(--color-base); border-radius: 50%; color: var(--color-primary); font-weight: 700; }
.story-label { max-width: 72px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-discovery { display: grid; gap: 10px; margin: 0 0 14px; }
.feed-sort-row, .feed-tag-row, .feed-hashtag-row { display: flex; align-items: center; gap: 8px; overflow-x: auto; padding: 2px 1px 5px; scrollbar-width: none; }
.feed-sort-row::-webkit-scrollbar, .feed-tag-row::-webkit-scrollbar, .feed-hashtag-row::-webkit-scrollbar { display: none; }
.feed-sort { min-height: 40px; flex: 0 0 auto; padding: 0 15px; color: var(--color-muted); background: transparent; border: 0; border-bottom: 2px solid transparent; font-size: .9rem; font-weight: 720; }
.feed-sort.active { color: var(--color-text); border-bottom-color: var(--color-primary); }
.feed-tag, .feed-hashtag, .feed-card-tag { min-height: 34px; flex: 0 0 auto; padding: 0 13px; color: var(--color-muted); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-pill); font-size: .8125rem; font-weight: 650; }
.feed-tag.active, .feed-hashtag.active { color: var(--color-text); background: var(--color-raised); border-color: var(--color-primary); }
.feed-hashtag-row { margin-top: -4px; }
.feed-hashtag { min-height: 29px; padding-inline: 10px; font-size: .75rem; }
.feed-layout { display: block; width: 100%; }
.feed-column { width: 100%; min-width: 0; height: min(76svh, 860px); min-height: 540px; display: flex; flex-direction: column; gap: 16px; overflow-y: auto; overscroll-behavior-y: contain; scroll-snap-type: y mandatory; scrollbar-width: none; }
.feed-column::-webkit-scrollbar { display: none; }
.feed-card { position: relative; flex: 0 0 100%; width: 100%; height: 100%; min-height: 0; overflow: hidden; display: grid; grid-template-rows: 1fr auto; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-card); isolation: isolate; scroll-snap-align: start; scroll-snap-stop: always; }
.feed-media { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: #0D0B0D; }
.feed-media:after { content: ""; position: absolute; inset: 30% 0 0; background: linear-gradient(transparent, rgb(11 9 17 / .35) 28%, rgb(11 9 17 / .95)); pointer-events: none; }
.feed-media iframe, .feed-media img, .feed-media video { width: 100%; height: 100%; border: 0; object-fit: cover; }
.feed-media iframe { position: absolute; inset: 0; z-index: 0; }
.feed-media video { display: block; cursor: pointer; }
.feed-audio-toggle { position: absolute; z-index: 3; top: 18px; right: 18px; width: 44px; height: 44px; display: grid; place-items: center; color: white; background: rgb(11 9 17 / .62); border: 1px solid rgb(248 246 252 / .32); border-radius: 50%; }
.feed-audio-toggle svg { width: 20px; height: 20px; stroke: currentColor; }
.feed-demo-badge { position: absolute; z-index: 2; top: 18px; left: 18px; padding: 7px 11px; color: white; background: rgb(11 9 17 / .62); border: 1px solid rgb(248 246 252 / .28); border-radius: var(--radius-pill); font-size: .75rem; font-weight: 700; }
.feed-stage { min-height: 0; }
.feed-meta { position: relative; align-self: end; display: flex; align-items: end; justify-content: space-between; gap: 16px; padding: 24px; }
.feed-main-meta { min-width: 0; }
.creator-line { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.creator-name { color: var(--color-text); font-weight: 750; text-decoration: none; }
.creator-handle { color: var(--color-muted); font-size: .8125rem; }
.feed-caption { max-width: 58ch; margin: 0; color: var(--color-text); text-shadow: 0 1px 8px #000; }
.feed-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.feed-card-tag { min-height: 27px; padding: 0 9px; color: white; background: rgb(11 9 17 / .56); border-color: rgb(248 246 252 / .32); font-size: .75rem; }
.feed-demo-source { display: block; max-width: 60ch; margin-top: 8px; color: rgb(255 255 255 / .76); font-size: .6875rem; text-decoration: underline; text-underline-offset: 2px; }
.feed-actions { display: grid; justify-items: center; gap: 12px; flex: none; }
.feed-action { min-width: 48px; display: grid; justify-items: center; gap: 4px; padding: 0; color: var(--color-text); background: none; border: 0; font-size: .75rem; text-shadow: 0 1px 8px #000; }
.feed-action .icon-button { width: 52px; height: 52px; background: rgb(11 9 17 / .68); border-color: rgb(248 246 252 / .45); }
.feed-action.is-liked .icon-button { color: var(--color-accent); border-color: var(--color-accent); }
.feed-action.is-saved .icon-button { color: var(--color-primary); border-color: var(--color-primary); }
.feed-side { display: none; }
.content-tag-field { display: grid; gap: 10px; padding: 14px; border: var(--border); border-radius: var(--radius-sm); }
.content-tag-field legend { padding: 0 5px; color: var(--color-text); font-size: .875rem; font-weight: 700; }
.content-tag-field p { margin: 0; font-size: .8125rem; }
.content-tag-options { display: flex; flex-wrap: wrap; gap: 8px; }
.content-tag-option { position: relative; }
.content-tag-option input { position: absolute; opacity: 0; }
.content-tag-option span { min-height: 36px; display: inline-flex; align-items: center; padding: 0 12px; color: var(--color-muted); background: var(--color-raised); border: 1px solid var(--color-border); border-radius: var(--radius-pill); font-size: .8125rem; cursor: pointer; }
.content-tag-option input:checked + span { color: var(--color-text); border-color: var(--color-primary); box-shadow: inset 0 0 0 1px var(--color-primary); }
.content-tag-option input:focus-visible + span { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.side-card { padding: 20px; background: var(--color-surface); border: var(--border); border-radius: var(--radius-card); }
.side-card p:last-child { margin-bottom: 0; }
.side-card h3 { margin-bottom: 8px; }
.empty-state { min-height: 360px; display: grid; place-items: center; align-content: center; gap: 12px; padding: 40px; text-align: center; background: var(--color-surface); border: var(--border); border-radius: var(--radius-card); }
.empty-orbit { width: 56px; height: 56px; display: grid; place-items: center; margin-bottom: 8px; color: var(--color-primary); background: var(--color-raised); border: 1px solid var(--color-border); border-radius: 12px; }
.empty-orbit svg { width: 25px; height: 25px; stroke: currentColor; }
.empty-state p { max-width: 44ch; margin: 0; color: var(--color-muted); }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.page-heading p { max-width: 58ch; margin: 8px 0 0; color: var(--color-muted); }
.admin-page-access { width: fit-content; max-width: 100%; margin: 0 0 12px; padding: 0; background: transparent; border: 0; }
.admin-page-access > summary { min-height: 32px; display: inline-flex; align-items: center; gap: 8px; padding: 0 10px; color: var(--color-muted); background: var(--color-surface); border: var(--border); border-radius: 9px; cursor: pointer; font-size: .8125rem; font-weight: 650; list-style: none; }
.admin-page-access > summary::-webkit-details-marker { display: none; }
.admin-page-access > summary:after { content: "+"; color: var(--color-primary); font-size: 1rem; }
.admin-page-access[open] > summary:after { content: "−"; }
.admin-page-links { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 12px; }
.admin-page-link { min-height: 42px; display: inline-flex; align-items: center; gap: 8px; padding: 0 12px; color: var(--color-text); background: var(--color-raised); border: var(--border); border-radius: var(--radius-pill); font-size: .875rem; font-weight: 650; }
.admin-page-link:hover, .admin-page-link.active { border-color: var(--color-primary); color: var(--color-primary); }
.admin-page-link svg { width: 18px; height: 18px; stroke: currentColor; }
.admin-page-lock { display: grid; justify-items: start; gap: 8px; padding-top: 8px; color: var(--color-muted); font-size: .875rem; }
.admin-page-lock p { margin: 0; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.creator-card { min-width: 0; display: grid; gap: 12px; padding: 20px; background: var(--color-surface); border: var(--border); border-radius: var(--radius-card); }
.creator-card-top { display: flex; align-items: center; gap: 12px; }
.creator-card p { color: var(--color-muted); margin: 0; font-size: var(--text-small); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.gallery-tile { position: relative; aspect-ratio: 1; overflow: hidden; padding: 0; background: var(--color-raised); border: 1px solid var(--color-border); border-radius: var(--radius-sm); }
.gallery-tile img { width: 100%; height: 100%; display: block; object-fit: cover; }
.gallery-tile .tile-placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: var(--color-muted); background: #272124; }
.profile-hero { display: grid; grid-template-columns: 112px 1fr; align-items: center; gap: 24px; padding: clamp(20px, 3vw, 32px); background: var(--color-surface); border: var(--border); border-radius: var(--radius-card); }
.profile-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.profile-safety-trigger { width: 48px; height: 48px; }
.profile-hero .avatar { width: 104px; height: 104px; font-size: 1.5rem; }
.profile-stats { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 16px; color: var(--color-muted); font-size: var(--text-small); }
.profile-stats strong { color: var(--color-text); }
.tabs { display: flex; gap: 8px; margin: 24px 0 16px; border-bottom: var(--border); }
.tab-button { min-height: 48px; padding: 0 16px; color: var(--color-muted); background: transparent; border: 0; border-bottom: 2px solid transparent; font-weight: 700; }
.tab-button.active { color: var(--color-text); border-bottom-color: var(--color-primary); }
.strangers-page { width: 100%; max-width: none; }
.stranger-safety-card { display: flex; align-items: flex-start; gap: 16px; padding: 20px; color: var(--color-muted); background: var(--color-surface); border: var(--border); border-radius: var(--radius-card); }
.stranger-safety-card > svg { width: 24px; height: 24px; flex: none; color: var(--color-primary); stroke: currentColor; }
.stranger-safety-card strong { display: block; margin-bottom: 4px; color: var(--color-text); }
.stranger-safety-card p, .stranger-status-card p:last-child { margin-bottom: 0; }
.stranger-status-card { display: grid; gap: 12px; padding: clamp(22px, 5vw, 40px); background: var(--color-surface); border: var(--border); border-radius: var(--radius-card); }
.stranger-status-card h2 { font-size: clamp(1.5rem, 4vw, 2rem); }
.stranger-status-card .eyebrow { margin-bottom: -4px; }
.stranger-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.stranger-verification-status { width: fit-content; padding: 6px 10px; color: var(--color-muted); background: var(--color-raised); border: var(--border); border-radius: var(--radius-pill); font-size: .8125rem; }
.stranger-connection-status { color: var(--color-success); font-weight: 700; }
.stranger-footnote { margin: 0; font-size: .8125rem; }
.inbox-layout { min-height: calc(100svh - 190px); height: max(650px, calc(100svh - 190px)); display: grid; grid-template-columns: minmax(290px, 340px) minmax(0, 1fr); overflow: hidden; background: var(--color-surface); border: var(--border); border-radius: var(--radius-card); }
.conversation-list { min-height: 0; overflow-y: auto; border-right: var(--border); background: #171416; }
.conversation-list-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 18px 14px; border-bottom: var(--border); }
.conversation-list-head h2 { font-size: 1.25rem; }
.saved-messages-link { width: calc(100% - 24px); min-height: 52px; display: flex; align-items: center; gap: 10px; margin: 12px; padding: 0 12px; color: var(--color-text); background: var(--color-surface); border: var(--border); border-radius: 10px; text-align: left; font-weight: 650; }
.saved-messages-link svg { width: 20px; height: 20px; color: var(--color-accent); stroke: currentColor; }
.saved-messages-hint { margin-left: auto; color: var(--color-muted); font-size: .75rem; font-weight: 500; }
.conversation-search { width: calc(100% - 24px); min-height: 44px; margin: 0 12px 12px; padding: 8px 12px; color: var(--color-text); background: var(--color-raised); border: 1px solid var(--color-border); border-radius: 10px; }
.conversation-filters { display: flex; gap: 6px; padding: 0 12px 12px; }
.conversation-filter { min-height: 34px; padding: 0 12px; color: var(--color-muted); background: transparent; border: 1px solid transparent; border-radius: 9px; font-size: .8125rem; font-weight: 650; }
.conversation-filter:hover, .conversation-filter.active { color: var(--color-text); background: var(--color-raised); border-color: var(--color-border); }
.conversation-items { display: grid; }
.conversation-row { min-width: 0; display: flex; align-items: center; border-top: 1px solid rgb(64 56 60 / .68); }
.conversation-item { min-width: 0; flex: 1; min-height: 72px; display: flex; align-items: center; gap: 12px; padding: 12px; color: var(--color-text); background: transparent; border: 0; text-align: left; }
.conversation-item:hover, .conversation-item.active { background: #242023; }
.conversation-item .user-meta { flex: 1; }
.conversation-item .user-meta strong { font-size: .9375rem; }
.conversation-last { color: var(--color-muted); font-size: .8125rem; }
.unread-count { min-width: 24px; height: 24px; display: grid; place-items: center; padding: 0 6px; color: #271119; background: var(--color-primary); border-radius: 12px; font-size: .75rem; font-weight: 750; }
.conversation-archive { width: 38px; height: 38px; margin-right: 8px; opacity: .7; }
.conversation-archive svg { width: 17px; height: 17px; }
.conversation-row:hover .conversation-archive, .conversation-archive:focus-visible { opacity: 1; }
.conversation-list-empty { padding: 28px 18px; color: var(--color-muted); font-size: .875rem; }
.chat-panel { min-width: 0; min-height: 0; display: grid; grid-template-rows: auto 1fr auto; }
.chat-head { min-height: 76px; display: flex; align-items: center; gap: 14px; padding: 12px 22px; border-bottom: var(--border); }
.chat-head > .creator-line { min-width: 0; flex: 1; margin: 0; }
.typing-status { color: var(--color-muted); font-size: .8125rem; }
.chat-controls { display: flex; gap: 8px; }
.chat-messages { min-height: 0; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; padding: 22px clamp(18px, 4vw, 56px); background: #141214; }
.chat-empty { display: grid; place-items: center; align-content: center; color: var(--color-muted); text-align: center; }
.message { max-width: min(78%, 720px); display: grid; gap: 6px; align-self: flex-start; }
.message.mine { align-self: flex-end; }
.message-bubble { padding: 12px 16px; color: var(--color-text); background: #292528; border: 1px solid #393236; border-radius: 16px 16px 16px 5px; white-space: pre-wrap; overflow-wrap: anywhere; }
.message.mine .message-bubble { color: var(--color-primary-ink); background: var(--color-primary); border-color: transparent; border-radius: 16px 16px 5px 16px; }
.message-reply-quote { margin: 0 0 2px; padding: 8px 10px; color: var(--color-muted); background: var(--color-raised); border-left: 2px solid var(--color-accent); font-size: .8125rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.message-meta { display: flex; align-items: center; gap: 8px; color: var(--color-muted); font-size: .75rem; }
.message.mine .message-meta { justify-content: end; }
.message-attachment { width: min(320px, 100%); min-height: 160px; overflow: hidden; display: grid; place-items: center; margin-top: 8px; background: #110F18; border: 1px solid var(--color-border); border-radius: 16px; }
.message-attachment iframe { width: 100%; height: 360px; border: 0; }
.message-attachment img { width: 100%; max-height: 360px; object-fit: contain; }
.message-compose { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 14px 20px 18px; border-top: var(--border); background: var(--color-surface); }
.message-compose-fields { min-width: 0; display: grid; gap: 8px; }
.message-compose textarea { width: 100%; min-height: 54px; max-height: 160px; resize: none; padding: 14px; color: var(--color-text); background: #141214; border: 1px solid var(--color-border); border-radius: 12px; }
.message-compose textarea:focus { border-color: var(--color-primary); outline: none; }
.reply-note { min-height: 0; font-size: .8125rem; }
.message-delivery { color: var(--color-muted); font-size: .75rem; }
.compose-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.compose-hint { color: var(--color-muted); font-size: .75rem; }
.compose-actions { display: flex; align-items: center; gap: 8px; }
.one-view-toggle { display: flex; align-items: center; gap: 8px; color: var(--color-muted); font-size: .8125rem; }
.page-column { width: 100%; max-width: none; margin: 0; }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.settings-card { display: grid; gap: 16px; padding: 24px; background: var(--color-surface); border: var(--border); border-radius: var(--radius-card); }
.modal-backdrop { position: fixed; z-index: 80; inset: 0; display: grid; place-items: center; padding: 24px; background: rgb(0 0 0 / .72); }
.modal { width: min(620px, 100%); max-height: min(86vh, 900px); overflow-y: auto; padding: 24px; background: var(--color-surface); border: var(--border); border-radius: var(--radius-sheet); box-shadow: var(--shadow-hover); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.modal-form { display: grid; gap: 16px; }
.modal-actions { display: flex; justify-content: end; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.camera-view { width: 100%; max-height: 55vh; display: block; background: #000; border-radius: var(--radius-card); object-fit: contain; }
.camera-controls { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.story-viewer { position: fixed; z-index: 90; inset: 0; display: grid; place-items: center; padding: 20px; background: rgb(0 0 0 / .9); }
.story-frame { position: relative; width: min(460px, 100%); height: min(82vh, 820px); overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 20px; background: var(--color-raised); border: var(--border); border-radius: var(--radius-card); }
.story-frame img, .story-frame iframe { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.story-frame:after { content: ""; position: absolute; z-index: 1; inset: 0; pointer-events: none; background: linear-gradient(rgb(0 0 0 / .55), transparent 30%, transparent 60%, rgb(0 0 0 / .72)); }
.story-top, .story-bottom { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.toast-region { position: fixed; z-index: 120; right: 24px; bottom: 24px; display: grid; gap: 8px; }
.toast { max-width: min(420px, calc(100vw - 48px)); padding: 14px 18px; color: var(--color-text); background: var(--color-raised); border: var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.stranger-wordmark { min-height: 42px; display: flex; align-items: center; gap: 10px; color: var(--color-text); }
.stranger-wordmark img { width: 34px; height: 34px; }
.stranger-wordmark-name { font-family: var(--font-display); font-size: 1.125rem; font-weight: 800; letter-spacing: -.045em; }
.stranger-wordmark-divider { color: var(--color-border); font-size: 1.25rem; }
.stranger-wordmark-label { color: var(--color-muted); font-size: .875rem; font-weight: 650; }
.strangers-page > .stranger-wordmark { margin-bottom: -10px; }
.stranger-icebreaker { display: grid; gap: 6px; padding: 16px; background: var(--color-surface); border: var(--border); border-radius: var(--radius-card); }
.stranger-icebreaker .eyebrow { margin: 0; }
.stranger-icebreaker-prompt { margin: 0; font-weight: 700; }
.stranger-call-peer { margin-left: auto; color: var(--color-muted); font-size: .875rem; }
.call-overlay { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 24px; background: rgb(17 16 19 / .97); }
.stranger-call-overlay { align-items: start; overflow-y: auto; }
.call-card { width: min(900px, 100%); display: grid; grid-template-columns: 1fr; gap: 16px; }
.stranger-call-card { width: min(1220px, 100%); }
.stranger-call-layout { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 16px; align-items: stretch; }
.call-stage { position: relative; min-height: 320px; overflow: hidden; display: grid; place-items: center; background: var(--color-surface); border: var(--border); border-radius: var(--radius-card); }
.call-stage video { width: 100%; height: min(70vh, 640px); object-fit: cover; }
.call-stage video.local-video { position: absolute; right: 16px; bottom: 16px; width: min(28%, 200px); height: 180px; border: 2px solid var(--color-text); border-radius: 16px; }
.stranger-local-off { position: absolute; right: 16px; bottom: 16px; width: min(28%, 200px); height: 180px; display: grid; place-items: center; padding: 12px; color: var(--color-muted); background: var(--color-raised); border: 2px solid var(--color-text); border-radius: 16px; font-size: .875rem; font-weight: 700; }
.call-status { color: var(--color-muted); text-align: center; }
.call-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.stranger-call-control { gap: 8px; }
.stranger-call-control svg { width: 18px; height: 18px; stroke: currentColor; }
.stranger-call-control[aria-pressed="true"] { color: var(--color-accent); border-color: var(--color-accent); }
.stranger-chat { min-width: 0; min-height: 320px; max-height: min(70vh, 640px); display: grid; grid-template-rows: auto minmax(90px, 1fr) auto auto auto; gap: 10px; padding: 14px; background: var(--color-surface); border: var(--border); border-radius: var(--radius-card); }
.stranger-chat-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.stranger-chat-head h2 { font-size: 1.125rem; }
.stranger-chat-head span { color: var(--color-muted); font-size: .6875rem; }
.stranger-chat-messages { min-height: 90px; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; padding: 4px; }
.stranger-chat-empty { margin: auto; color: var(--color-muted); text-align: center; font-size: .8125rem; }
.stranger-chat-message { max-width: 90%; display: grid; gap: 2px; align-self: flex-start; padding: 8px 11px; background: var(--color-raised); border: var(--border); border-radius: 14px 14px 14px 4px; }
.stranger-chat-message.mine { align-self: flex-end; background: #31232A; border-radius: 14px 14px 4px 14px; }
.stranger-chat-message.reaction { padding: 5px 12px; font-size: 1.5rem; }
.stranger-chat-message.reaction .stranger-chat-author { font-size: .625rem; }
.stranger-chat-author { color: var(--color-muted); font-size: .625rem; font-weight: 700; }
.stranger-chat-body { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .8125rem; line-height: 1.25rem; }
.stranger-chat-reactions, .stranger-chat-prompts { display: flex; flex-wrap: wrap; gap: 6px; }
.stranger-reaction { min-width: 38px; min-height: 36px; padding: 3px 8px; background: var(--color-raised); border: var(--border); border-radius: var(--radius-pill); font-size: 1.125rem; }
.stranger-reaction:hover, .stranger-prompt-chip:hover { border-color: var(--color-primary); }
.stranger-prompt-chip { min-height: 32px; padding: 0 9px; color: var(--color-muted); background: transparent; border: var(--border); border-radius: var(--radius-pill); font-size: .6875rem; }
.stranger-chat-compose { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; }
.stranger-chat-compose textarea { width: 100%; min-height: 44px; max-height: 100px; resize: vertical; padding: 10px 12px; color: var(--color-text); background: var(--color-raised); border: var(--border); border-radius: 14px; font-size: .8125rem; }
.stranger-chat-compose .btn { min-height: 44px; padding: 0 14px; }
.friend-requests-card, .friends-list-card { display: grid; gap: 12px; margin-bottom: 16px; padding: 18px 20px; background: var(--color-surface); border: var(--border); border-radius: var(--radius-card); }
.friend-requests-card h2, .friends-list-card h2 { font-size: 1.125rem; }
.friend-request-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 12px; border-top: var(--border); }
.friend-list-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 12px; border-top: var(--border); }
.friend-request-person { display: flex; align-items: center; gap: 10px; }
.friend-request-person > div:last-child { display: grid; }
.friend-request-person span:not(.avatar) { color: var(--color-muted); font-size: .8125rem; }
.friend-request-actions { display: flex; gap: 8px; }
.friend-request-actions .btn { min-height: 40px; padding: 0 14px; }
.stranger-chat-head .stranger-friend-button { min-height: 34px; padding: 0 10px; font-size: .6875rem; }
.camera-icon-inline { display: inline-grid; width: 24px; height: 24px; place-items: center; vertical-align: middle; }
.camera-icon-inline svg { width: 20px; height: 20px; stroke: currentColor; }
.media-unavailable { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; color: var(--color-muted); text-align: center; background: #171416; }
.explore-search { display: flex; gap: 8px; margin: 0 0 24px; }
.explore-search .search-input { flex: 1; }
.explore-results { display: grid; gap: 24px; }
.post-search-list { display: grid; gap: 8px; }
.comment-list { display: grid; gap: 16px; margin-bottom: 24px; }
.comment-item { padding: 16px 0; border-bottom: var(--border); }
.comment-head { display: flex; align-items: center; gap: 12px; }
.comment-body { margin: 12px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.comment-controls { display: flex; gap: 12px; margin-top: 8px; }
.comment-reply { margin: 16px 0 0 40px; padding-left: 16px; border-left: 2px solid var(--color-border); }
.comment-image { width: min(320px, 100%); max-height: 360px; display: block; object-fit: contain; margin: 8px 0; border-radius: var(--radius-sm); }
.comment-video { width: min(320px, 100%); height: 360px; display: block; margin: 8px 0; border: 0; border-radius: var(--radius-sm); }
.comment-item .message-action, .message-action { min-height: 32px; padding: 4px 8px; color: var(--color-muted); background: transparent; border: 0; border-radius: var(--radius-sm); font-size: .8125rem; }
.message-action:hover { color: var(--color-text); background: var(--color-raised); }
.composer { display: grid; gap: 12px; padding-top: 16px; border-top: var(--border); }
.upload-preview { min-height: 48px; display: flex; align-items: center; padding: 12px 16px; background: var(--color-raised); border: var(--border); border-radius: var(--radius-sm); }
.profile-post-tile { display: block; }
.profile-post-tile iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.profile-post-caption { position: absolute; z-index: 2; inset: auto 0 0; max-height: 50%; overflow: hidden; padding: 32px 8px 8px; color: var(--color-text); background: linear-gradient(transparent, rgb(11 9 17 / .92)); font-size: .75rem; line-height: 1rem; }
.explore-search .btn { min-width: 104px; }
.gallery-tile:focus-visible { outline-color: var(--color-focus); }

/* Video feed: reserve the full app viewport for one complete, snap-scrolling clip. */
.app-frame.is-video-feed { height: 100svh; min-height: 0; overflow: hidden; }
.app-frame.is-video-feed .app-main { height: 100svh; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.app-frame.is-video-feed .topbar { position: relative; flex: 0 0 var(--header-h); }
.app-frame.is-video-feed #admin-page-nav { flex: none; }
.app-frame.is-video-feed .content-area { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.app-frame.is-video-feed #app-banner { flex: none; }
.app-frame.is-video-feed #view { flex: 1 1 auto; min-height: 0; height: 100%; overflow: hidden; }
.app-frame.is-video-feed .admin-page-access { margin: 0; padding: 4px 14px; }
.app-frame.is-video-feed .admin-page-links { padding: 8px 0; }
.feed-page { position: relative; width: 100%; height: 100%; min-height: 0; overflow: hidden; background: #080708; }
.feed-layout { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; }
.feed-column { width: 100%; height: 100%; min-height: 0; gap: 0; overflow-y: auto; scroll-snap-type: y mandatory; }
.feed-card { position: relative; flex: 0 0 100%; width: 100%; height: 100%; min-height: 0; display: block; overflow: hidden; border: 0; border-radius: 0; background: #050506; }
.feed-media { z-index: 0; overflow: hidden; background: #050506; }
.feed-media iframe, .feed-media img, .feed-media video { display: block; width: 100%; height: 100%; object-fit: contain; background: #050506; }
.feed-media iframe { z-index: 1; }
.feed-media:after { z-index: 2; inset: 48% 0 0; background: linear-gradient(transparent 0%, rgb(7 6 8 / .22) 20%, rgb(7 6 8 / .9) 100%); }
.feed-stage { position: absolute; z-index: 1; inset: 0; pointer-events: none; }
.feed-meta { position: absolute; z-index: 3; inset: auto 0 0; min-height: 180px; padding: 24px 30px calc(58px + env(safe-area-inset-bottom)); align-items: end; }
.feed-main-meta { width: min(760px, calc(100% - 88px)); min-width: 0; }
.feed-caption { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-height: 1.45; }
.feed-actions { gap: 14px; }
.feed-action .icon-button { width: 50px; height: 50px; }
.feed-audio-toggle, .feed-demo-badge { z-index: 4; }
.feed-discovery { position: absolute; z-index: 5; inset: 0 0 auto; display: grid; gap: 2px; margin: 0; padding: 12px 22px 28px; background: linear-gradient(rgb(7 6 8 / .82), rgb(7 6 8 / .34) 75%, transparent); pointer-events: none; }
.feed-discovery > * { pointer-events: auto; }
.feed-sort-row, .feed-tag-row { min-width: 0; gap: 6px; padding: 1px 0 4px; }
.feed-sort { min-height: 38px; padding-inline: 12px; color: rgb(255 255 255 / .78); text-shadow: 0 1px 4px #000; }
.feed-sort.active { color: #fff; border-bottom-color: var(--color-primary); }
.feed-tag, .feed-hashtag { min-height: 30px; padding-inline: 11px; color: #fff; background: rgb(16 14 17 / .56); border-color: rgb(255 255 255 / .24); font-size: .75rem; backdrop-filter: blur(10px); }
.feed-tag.active, .feed-hashtag.active { background: rgb(220 77 131 / .76); border-color: rgb(255 255 255 / .56); }
.feed-demo-source { max-width: min(60ch, 100%); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-seek { position: absolute; z-index: 5; inset: auto 0 0; min-height: 40px; display: grid; grid-template-columns: 36px minmax(0, 1fr) 36px; align-items: center; gap: 8px; padding: 2px 16px 6px; color: #fff; background: linear-gradient(transparent, rgb(7 6 8 / .62)); opacity: 0; pointer-events: none; transition: opacity .15s ease; }
.feed-card.has-duration .feed-seek { opacity: 1; pointer-events: auto; }
.feed-seek span { color: rgb(255 255 255 / .88); font-size: .6875rem; font-variant-numeric: tabular-nums; text-align: center; text-shadow: 0 1px 4px #000; }
.feed-seek-input { width: 100%; height: 22px; margin: 0; padding: 0; appearance: none; background: transparent; cursor: pointer; touch-action: pan-x; }
.feed-seek-input::-webkit-slider-runnable-track { height: 3px; background: rgb(255 255 255 / .52); border-radius: 999px; }
.feed-seek-input::-moz-range-track { height: 3px; background: rgb(255 255 255 / .52); border-radius: 999px; }
.feed-seek-input::-webkit-slider-thumb { width: 12px; height: 12px; margin-top: -4.5px; appearance: none; background: #fff; border: 2px solid var(--color-primary); border-radius: 50%; }
.feed-seek-input::-moz-range-thumb { width: 9px; height: 9px; background: #fff; border: 2px solid var(--color-primary); border-radius: 50%; }
.feed-seek-input:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; border-radius: 999px; }
.app-frame.is-video-feed .empty-state { position: absolute; inset: 0; z-index: 2; min-height: 100%; border: 0; border-radius: 0; background: #111013; }

/* Upload is a two-step task so the media, details and discovery tags feel connected. */
.upload-stepper { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 2px; }
.upload-step { min-width: 0; display: flex; align-items: center; gap: 10px; padding: 10px 12px; color: var(--color-muted); border-bottom: 2px solid var(--color-border); font-size: .8125rem; }
.upload-step > span { width: 24px; height: 24px; flex: none; display: grid; place-items: center; border: 1px solid var(--color-border); border-radius: 50%; font-size: .75rem; }
.upload-step.is-current { color: var(--color-text); border-color: var(--color-primary); }
.upload-step.is-current > span, .upload-step.is-complete > span { color: var(--color-primary-ink); background: var(--color-primary); border-color: var(--color-primary); }
.upload-panel { display: grid; gap: 16px; }
.upload-panel[hidden] { display: none; }
.upload-preview { min-height: 210px; flex-direction: column; justify-content: center; gap: 10px; overflow: hidden; padding: 14px; color: var(--color-muted); text-align: center; background: #111013; }
.upload-preview-media { width: 100%; max-height: min(34svh, 320px); object-fit: contain; background: #050506; border-radius: 10px; }
.upload-preview-label { max-width: 100%; overflow: hidden; color: var(--color-muted); font-size: .75rem; text-overflow: ellipsis; white-space: nowrap; }
.upload-file-input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.upload-source-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.upload-source-actions .btn { min-height: 48px; }
.upload-source-actions svg { width: 18px; height: 18px; flex: none; stroke: currentColor; }
.upload-hint { margin: -6px 0 0; font-size: .8125rem; }
.upload-file-summary { min-width: 0; overflow: hidden; padding: 10px 12px; color: var(--color-muted); background: var(--color-raised); border: var(--border); border-radius: var(--radius-sm); font-size: .8125rem; text-overflow: ellipsis; white-space: nowrap; }
.hashtag-field small { color: var(--color-muted); font-size: .75rem; font-weight: 450; }
.hashtag-preview { min-height: 22px; display: flex; flex-wrap: wrap; gap: 6px; }
.hashtag-preview-chip { padding: 4px 9px; color: var(--color-primary); background: rgb(220 77 131 / .1); border: 1px solid rgb(220 77 131 / .32); border-radius: var(--radius-pill); font-size: .75rem; }
.hashtag-preview-empty { color: var(--color-muted); font-size: .75rem; font-weight: 450; }

@media (max-width: 767px) {
  .app-frame.is-video-feed .app-main { height: calc(100svh - 64px - env(safe-area-inset-bottom)); min-height: 0; padding-bottom: 0; }
  .app-frame.is-video-feed .mobile-top { position: relative; z-index: 6; flex: 0 0 var(--header-h); }
  .app-frame.is-video-feed .content-area { padding: 0; }
  .app-frame.is-video-feed .admin-page-access { margin: 0; padding: 3px 10px; }
  .app-frame.is-video-feed .feed-discovery { padding: 5px 10px 24px; }
  .app-frame.is-video-feed .feed-sort-row, .app-frame.is-video-feed .feed-tag-row { padding-inline: 0; }
  .app-frame.is-video-feed .feed-sort { min-height: 34px; padding-inline: 10px; font-size: .78rem; }
  .app-frame.is-video-feed .feed-tag, .app-frame.is-video-feed .feed-hashtag { min-height: 28px; padding-inline: 9px; font-size: .6875rem; }
  .app-frame.is-video-feed .feed-meta { min-height: 168px; gap: 8px; padding: 18px 12px 48px; }
  .app-frame.is-video-feed .feed-main-meta { width: calc(100% - 58px); }
  .app-frame.is-video-feed .creator-line { gap: 9px; margin-bottom: 8px; }
  .app-frame.is-video-feed .creator-line .avatar { width: 36px; height: 36px; }
  .app-frame.is-video-feed .feed-caption { font-size: .9rem; line-height: 1.3rem; -webkit-line-clamp: 4; }
  .app-frame.is-video-feed .feed-card-tags { max-height: 62px; overflow: hidden; }
  .app-frame.is-video-feed .feed-card-tag { min-height: 25px; padding-inline: 7px; font-size: .6875rem; }
  .app-frame.is-video-feed .feed-actions { gap: 8px; }
  .app-frame.is-video-feed .feed-action .icon-button { width: 42px; height: 42px; }
  .app-frame.is-video-feed .feed-action .icon-button svg { width: 19px; height: 19px; }
  .app-frame.is-video-feed .feed-action { font-size: .6875rem; }
  .app-frame.is-video-feed .feed-demo-badge { top: 10px; left: 10px; padding: 5px 8px; font-size: .625rem; }
  .app-frame.is-video-feed .feed-audio-toggle { top: 10px; right: 10px; width: 38px; height: 38px; }
  .feed-seek { min-height: 38px; grid-template-columns: 32px minmax(0, 1fr) 32px; gap: 5px; padding-inline: 9px; padding-bottom: max(4px, env(safe-area-inset-bottom)); }
  .feed-seek span { font-size: .625rem; }
  .upload-source-actions { grid-template-columns: 1fr; }
  .upload-preview { min-height: 170px; }
}
@media (max-width: 1199px) {
  .desktop-rail { width: 88px; align-items: center; padding: 24px 12px; }
  .desktop-rail .brand-lockup { margin: 0; }
  .brand-word, .nav-label, .rail-user .user-meta, .rail-bottom .btn-label { display: none; }
  .nav-item { width: 56px; justify-content: center; padding: 0; }
  .nav-item svg { width: 23px; height: 23px; }
  .rail-user { justify-content: center; padding: 16px 0; }
  .app-main { margin-left: 88px; }
  .feed-layout { display: block; }
}
@media (max-width: 767px) {
  :root { --header-h: 56px; --logo-h: 28px; --text-logo: 1.125rem; }
  .auth-screen { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .auth-panel { min-height: 100vh; align-items: start; padding: 32px 24px 40px; }
  .auth-card { max-width: 480px; margin: 0 auto; padding-top: 8vh; }
  .mobile-brand { display: inline-flex; margin-bottom: 36px; }
  .auth-card-head h1 { font-size: 2rem; }
  .desktop-rail { display: none; }
  .app-main { margin-left: 0; padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
  .topbar { display: none; }
  .mobile-top { position: sticky; z-index: 16; top: 0; height: var(--header-h); display: flex; align-items: center; justify-content: space-between; padding: 0 16px; background: var(--color-base); border-bottom: var(--border); }
  .mobile-top .brand-lockup { font-size: var(--text-logo); }
  .mobile-top .brand-lockup img { width: var(--logo-h); height: var(--logo-h); }
  .content-area { padding: 20px 16px 32px; }
  .admin-page-access { width: auto; margin: 12px 16px 0; padding: 10px 12px; }
  .admin-page-links { gap: 6px; }
  .admin-page-link { min-height: 40px; padding: 0 10px; font-size: .8125rem; }
  .mobile-nav { position: fixed; z-index: 30; inset: auto 0 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; min-height: calc(64px + env(safe-area-inset-bottom)); padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); background: var(--color-surface); border-top: var(--border); }
  .mobile-nav .nav-item { width: auto; min-height: 48px; display: grid; justify-items: center; align-content: center; gap: 2px; padding: 4px; border-radius: 12px; font-size: .625rem; }
  .mobile-nav .nav-item svg { width: 20px; height: 20px; }
  .mobile-nav .nav-label { display: block; }
  .feed-layout { display: block; }
  .feed-discovery { margin: 0 -16px 8px; gap: 4px; }
  .feed-sort-row, .feed-tag-row, .feed-hashtag-row { padding-inline: 16px; }
  .feed-sort { min-height: 38px; padding-inline: 12px; font-size: .82rem; }
  .feed-tag { min-height: 32px; padding-inline: 11px; font-size: .75rem; }
  .stories-row { margin: 0 -16px 12px; padding: 4px 16px 10px; }
  .feed-column { width: auto; height: calc(100svh - 370px); min-height: 260px; gap: 12px; margin: 0 -16px; }
  .feed-card { border-radius: 0; border-left: 0; border-right: 0; }
  .feed-meta { padding: 16px; gap: 8px; transform: none; }
  .feed-actions { gap: 8px; }
  .feed-action .icon-button { width: 46px; height: 46px; }
  .feed-audio-toggle { top: 14px; right: 14px; width: 40px; height: 40px; }
  .feed-demo-badge { top: 14px; left: 14px; font-size: .6875rem; }
  .feed-caption { font-size: .9375rem; line-height: 1.375rem; }
  .page-heading { align-items: start; flex-direction: column; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .creator-card { padding: 16px; }
  .profile-hero { grid-template-columns: 72px 1fr; gap: 16px; padding: 20px; }
  .profile-hero .avatar { width: 72px; height: 72px; font-size: 1rem; }
  .profile-stats { gap: 12px; }
  .inbox-layout { height: auto; min-height: calc(100svh - 180px); grid-template-columns: 1fr; }
  .friend-request-row, .friend-list-row { align-items: flex-start; flex-direction: column; }
  .conversation-list { max-height: 340px; border-right: 0; border-bottom: var(--border); }
  .chat-panel { min-height: 560px; }
  .message { max-width: 88%; }
  .message-compose { grid-template-columns: 1fr; }
  .compose-actions { justify-content: space-between; }
  .settings-grid { grid-template-columns: 1fr; }
  .modal-backdrop { padding: 8px; align-items: end; }
  .modal { max-height: 92svh; border-radius: 24px 24px 12px 12px; padding: 20px; }
  .toast-region { right: 12px; bottom: calc(84px + env(safe-area-inset-bottom)); }
  .stranger-call-overlay { padding: 8px; }
  .stranger-call-layout { grid-template-columns: 1fr; }
  .stranger-call-card { gap: 10px; }
  .stranger-chat { min-height: 220px; max-height: 34svh; }
  .call-stage { min-height: 42svh; }
  .call-stage video { height: 42svh; }
}
@media (max-width: 400px) {
  .auth-panel { padding-inline: 16px; }
  .card-grid { grid-template-columns: 1fr; }
  .profile-hero { grid-template-columns: 1fr; }
  .gallery-grid { gap: 4px; }
  .feed-card { min-height: 0; }
  .feed-meta { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Focused interaction polish for report menus and comment threads. */
.form-field select { color-scheme: dark; cursor: pointer; }
.profile-safety-menu {
  position: fixed; z-index: 110; width: min(280px, calc(100vw - 24px)); padding: 8px;
  color: var(--color-text); background: #201E23; border: 1px solid #3B373E;
  border-radius: 14px; box-shadow: 0 18px 48px rgb(0 0 0 / .42);
}
.profile-safety-menu-title { display: block; padding: 8px 10px 7px; color: var(--color-muted); font-size: .75rem; font-weight: 700; letter-spacing: .045em; text-transform: uppercase; }
.profile-safety-menu-item {
  width: 100%; display: grid; gap: 4px; padding: 10px; color: var(--color-text);
  background: transparent; border: 0; border-radius: 9px; text-align: left;
}
.profile-safety-menu-item:hover, .profile-safety-menu-item:focus-visible { background: #302D33; }
.profile-safety-menu-item strong { font-size: .9rem; }
.profile-safety-menu-item span { color: var(--color-muted); font-size: .76rem; line-height: 1.35; }
.profile-safety-menu-item.is-destructive strong { color: #FF9BAF; }
.optional-label { color: var(--color-muted); font-size: .75rem; font-weight: 500; }
.modal.comments-modal {
  width: min(640px, 100%); height: min(78svh, 760px); max-height: calc(100svh - 32px);
  display: flex; flex-direction: column; overflow: hidden; padding: 0;
}
.comments-modal .modal-head { flex: none; margin: 0; padding: 22px 24px 14px; border-bottom: var(--border); }
.comments-modal .modal-content {
  min-height: 0; flex: 1; display: flex; flex-direction: column; overflow: hidden; padding: 0 24px 20px;
}
.comment-demo-note { flex: none; margin: 0; padding: 11px 0; color: var(--color-muted); font-size: .75rem; }
.comment-list { min-height: 0; flex: 1; overflow-y: auto; overscroll-behavior: contain; margin: 0; padding: 0 6px 12px 0; scrollbar-gutter: stable; }
.comment-item { padding: 14px 0; border-bottom-color: #363239; }
.comment-head { gap: 10px; }
.comment-head .avatar { width: 38px; height: 38px; font-size: .8rem; }
.comment-body { margin: 9px 0 4px 48px; color: #E8E5E9; font-size: .9rem; line-height: 1.45; }
.comment-controls { gap: 5px; margin: 3px 0 0 42px; }
.comment-item .message-action { min-height: 34px; padding: 4px 9px; }
.comment-reply { margin: 8px 0 0 48px; padding: 9px 0 0 13px; color: #E4E0E5; font-size: .82rem; line-height: 1.4; }
.comment-reply .comment-controls { margin: 2px 0 0; }
.comments-modal .composer { flex: none; gap: 10px; margin-top: 6px; padding: 14px 0 0; background: var(--color-surface); }
.comment-composer-field { gap: 6px; }
.comment-composer-field > span { color: var(--color-muted); font-size: .75rem; }
.comments-modal .composer textarea { min-height: 76px; max-height: 150px; resize: vertical; }
.comment-composer-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.comment-composer-actions .btn { min-width: 116px; }
.comment-composer-actions .btn svg { width: 18px; height: 18px; }
.comment-composer-hint { color: var(--color-muted); font-size: .75rem; }
.comment-loading, .comment-load-error { margin: 16px 0; color: var(--color-muted); font-size: .875rem; }
.comment-load-error { color: var(--color-error); }
@media (max-width: 767px) {
  .modal.comments-modal { width: 100%; height: min(88svh, 820px); max-height: calc(100svh - 8px); border-radius: 20px 20px 10px 10px; }
  .comments-modal .modal-head { padding: 18px 18px 12px; }
  .comments-modal .modal-content { padding: 0 18px 16px; }
  .comments-modal .composer textarea { min-height: 64px; }
  .comment-body { margin-left: 46px; }
  .comment-controls { margin-left: 40px; }
  .comment-reply { margin-left: 42px; }
}
