:root {
  color-scheme: dark;
  --bg: #0f070b;
  --bg-2: #160a10;
  --surface: #1b0e14;
  --surface-2: #241119;
  --surface-3: #311522;
  --wine: #5b1432;
  --wine-2: #7d1b43;
  --pink: #ff406f;
  --pink-2: #ff7894;
  --coral: #ff8068;
  --cream: #fff7f4;
  --text: #f8eef1;
  --muted: #bfaeb5;
  --faint: #85747b;
  --line: rgba(255,255,255,.095);
  --line-hot: rgba(255,64,111,.35);
  --green: #49d6a2;
  --yellow: #ffcb69;
  --blue: #86a9ff;
  --sidebar: 252px;
  --top: 76px;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 30px 90px rgba(0,0,0,.5);
}

* { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.5; text-rendering: optimizeLegibility; }
body.age-locked { overflow: hidden; }
body.age-locked .app-shell { opacity: 1; filter: saturate(.72) brightness(.68); pointer-events: none; user-select: none; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid rgba(255,64,111,.45); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 9999; padding: 12px 18px; border-radius: 12px; background: var(--cream); color: var(--bg); font-weight: 800; }
.skip-link:focus { top: 16px; }

/* shared controls */
.btn { min-height: 42px; border: 1px solid transparent; border-radius: 13px; padding: 0 17px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; background: transparent; color: var(--text); font-weight: 750; cursor: pointer; transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary { background: linear-gradient(135deg,var(--pink),#d92c5a); box-shadow: 0 12px 30px rgba(255,64,111,.25); }
.btn-primary:hover { box-shadow: 0 16px 38px rgba(255,64,111,.36); }
.btn-soft { background: rgba(255,255,255,.07); border-color: var(--line); }
.btn-soft:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.18); }
.btn-outline { border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.025); }
.btn-outline:hover { border-color: var(--pink); background: rgba(255,64,111,.08); }
.btn-link { color: var(--muted); }
.btn-link:hover { color: var(--text); }
.btn-large { min-height: 54px; padding-inline: 24px; border-radius: 16px; }
.btn-full { width: 100%; }
.btn-create { min-height: 44px; background: linear-gradient(135deg,var(--pink),#d82e5b); box-shadow: 0 10px 28px rgba(255,64,111,.2); }
.icon-button { width: 44px; height: 44px; border-radius: 14px; border: 1px solid var(--line); display: grid; place-items: center; background: rgba(255,255,255,.035); cursor: pointer; position: relative; transition: .2s ease; }
.icon-button:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.17); }
.icon-button b { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 10px; display: grid; place-items: center; background: var(--pink); color: #fff; font-size: 10px; }
.unread-dot { position: absolute; top: 8px; right: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 3px var(--bg-2); }
.overline { margin: 0 0 9px; color: var(--pink-2); font-size: 11px; font-weight: 850; letter-spacing: .17em; text-transform: uppercase; }
.muted { color: var(--muted); }
.tiny { color: var(--faint); font-size: 12px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(73,214,162,.11); }
.online-dot { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px rgba(73,214,162,.65); }
.content-tag { border: 1px solid rgba(255,255,255,.23); border-radius: 100px; background: rgba(15,7,11,.7); backdrop-filter: blur(8px); padding: 5px 9px; color: #fff; font-size: 9px; font-weight: 900; letter-spacing: .12em; }
.ui-icon { width: 1.25em; height: 1.25em; display: inline-block; flex: 0 0 auto; overflow: visible; color: currentColor; vertical-align: middle; }
.icon-button .ui-icon, .camera-control .ui-icon { width: 21px; height: 21px; }
.btn .ui-icon { width: 18px; height: 18px; }

/* age gate */
.age-gate { position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center; overflow: auto; padding: 20px; background: radial-gradient(circle at 12% 8%,rgba(132,27,68,.36),transparent 31%), radial-gradient(circle at 90% 92%,rgba(83,25,57,.32),transparent 34%), rgba(9,4,7,.72); backdrop-filter: blur(6px) saturate(.78); -webkit-backdrop-filter: blur(6px) saturate(.78); transition: opacity .5s ease, visibility .5s ease; }
.age-gate.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.age-atmosphere, .age-atmosphere i { position: absolute; inset: 0; pointer-events: none; }
.age-atmosphere { overflow: clip; contain: paint; }
.age-atmosphere:before { content: ""; position: absolute; inset: 0; opacity: .15; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E"); }
.age-atmosphere i { margin: auto; border: 1px solid rgba(255,255,255,.045); border-radius: 50%; animation: agePulse 8s ease-in-out infinite; }
.age-atmosphere i:nth-child(1) { width: 520px; height: 520px; }
.age-atmosphere i:nth-child(2) { width: 820px; height: 820px; animation-delay: -2.5s; }
.age-atmosphere i:nth-child(3) { width: 1180px; height: 1180px; animation-delay: -5s; }
.age-entry { width: min(1180px,100%); position: relative; padding: 27px 32px 30px; border: 1px solid rgba(255,255,255,.12); border-radius: 30px; overflow: hidden; background: linear-gradient(145deg,rgba(35,13,23,.95),rgba(15,7,11,.97)); box-shadow: 0 50px 150px rgba(0,0,0,.68); backdrop-filter: blur(22px); animation: gateIn .7s cubic-bezier(.2,.8,.2,1) both; }
.age-entry:after { content: ""; position: absolute; z-index: -1; left: 16%; right: 16%; top: -180px; height: 260px; border-radius: 50%; background: rgba(255,64,111,.18); filter: blur(75px); }
.age-entry-head { display: flex; align-items: center; justify-content: space-between; }
.age-brand { display: inline-flex; align-items: center; gap: 11px; }
.age-brand strong { font-size: 18px; letter-spacing: -.04em; }
.age-brand em, .brand-name em { color: var(--pink); font-style: normal; }
.age-badge { width: 46px; height: 46px; border: 1px solid rgba(255,64,111,.52); border-radius: 50%; display: grid; place-items: center; color: var(--pink-2); background: rgba(255,64,111,.07); font-size: 13px; font-weight: 900; box-shadow: 0 0 30px rgba(255,64,111,.11); }
.brand-symbol { width: 38px; height: 38px; border-radius: 13px; display: grid; place-items: center; position: relative; overflow: hidden; background: linear-gradient(135deg,var(--pink),#a8184b); color: #fff; box-shadow: 0 8px 24px rgba(255,64,111,.25); font-weight: 950; font-size: 14px; font-style: italic; letter-spacing: -.13em; }
.brand-symbol:after { content: ""; position: absolute; width: 38px; height: 12px; background: rgba(255,255,255,.18); transform: rotate(-40deg) translate(2px,-8px); }
.brand-symbol span { color: #ffd6df; }
.brand-symbol.brand-symbol-heart { background: #16080e; }
.brand-symbol.brand-symbol-heart:after { content: none; }
.brand-symbol-heart img { width: 100%; height: 100%; object-fit: cover; }
.brand-symbol.big { width: 82px; height: 82px; border-radius: 26px; font-size: 28px; }
.age-entry-copy { margin: 12px auto 18px; text-align: center; }
.age-entry-copy .overline { margin-bottom: 6px; }
.age-entry-copy h1 { margin: 0; font-family: Georgia,serif; font-size: clamp(34px,4.3vw,54px); line-height: .98; letter-spacing: -.05em; }
.age-entry-copy h1 em { color: var(--pink-2); font-weight: 400; }
.age-entry-copy > p:last-child { margin: 10px auto 0; max-width: 610px; color: var(--muted); font-size: 13px; }
.interest-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 13px; }
.interest-card { position: relative; height: clamp(220px,31vh,320px); min-width: 0; padding: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.12); border-radius: 20px; background: #190b11; cursor: pointer; box-shadow: 0 18px 45px rgba(0,0,0,.32); isolation: isolate; transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease; }
.interest-card:after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg,rgba(6,2,4,.02) 34%,rgba(7,3,5,.9) 100%); }
.interest-card img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 26%; filter: saturate(.88) brightness(.84); transition: transform .45s ease, filter .3s ease; }
.interest-card:nth-child(3) img { object-position: 50% 23%; }
.interest-card:nth-child(4) img { object-position: 50% 20%; }
.interest-card > span { position: absolute; z-index: 2; left: 17px; right: 50px; bottom: 15px; display: grid; text-align: left; }
.interest-card small { color: rgba(255,255,255,.67); font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.interest-card strong { color: #fff; font-size: 24px; line-height: 1.15; letter-spacing: -.035em; }
.interest-card > i { position: absolute; z-index: 3; right: 14px; bottom: 16px; width: 29px; height: 29px; border: 1px solid rgba(255,255,255,.36); border-radius: 50%; display: grid; place-items: center; background: rgba(10,4,7,.62); color: transparent; font-size: 13px; font-style: normal; transition: .2s ease; }
.interest-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,.28); box-shadow: 0 24px 55px rgba(0,0,0,.46); }
.interest-card:hover img { transform: scale(1.035); filter: saturate(1) brightness(.94); }
.interest-card.is-selected { border-color: var(--pink); box-shadow: 0 0 0 2px rgba(255,64,111,.25),0 24px 60px rgba(0,0,0,.48); }
.interest-card.is-selected img { filter: saturate(1.04) brightness(.96); }
.interest-card.is-selected > i { border-color: var(--pink); background: var(--pink); color: #fff; box-shadow: 0 7px 20px rgba(255,64,111,.36); }
.interest-grid.has-error .interest-card { border-color: rgba(255,110,130,.45); }
.age-interest-error { margin: 10px 0 -4px; color: #ff9caf; font-size: 12px; font-weight: 750; text-align: center; }
.age-consent { width: min(900px,100%); margin: 20px auto 0; display: grid; grid-template-columns: minmax(260px,340px) minmax(0,1fr); column-gap: 24px; align-items: center; }
.age-consent .btn { grid-row: 1 / span 2; width: 100%; }
.age-consent > p { margin: 0; color: #9f8d95; font-size: 11px; line-height: 1.45; }
.age-leave { width: max-content; max-width: 100%; margin-top: 5px; padding: 0; border: 0; border-bottom: 1px solid transparent; background: none; color: #c7b6bd; font-size: 11px; cursor: pointer; transition: color .2s ease,border-color .2s ease; }
.age-leave:hover { color: #fff; border-color: rgba(255,255,255,.35); }

/* shell and sidebar */
.app-shell { min-height: 100vh; opacity: 0; filter: none; transition: opacity .4s ease; }
.app-shell.is-ready { opacity: 1; }
.sidebar { position: fixed; z-index: 1000; left: 0; top: 0; bottom: 0; width: var(--sidebar); display: flex; flex-direction: column; background: linear-gradient(180deg,#170a10,#11070b); border-right: 1px solid var(--line); }
.sidebar-head { height: 76px; padding: 14px 15px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { border: 0; background: transparent; padding: 0; display: flex; align-items: center; gap: 10px; cursor: pointer; text-align: left; }
.brand-name { display: grid; font-size: 17px; font-weight: 900; letter-spacing: -.045em; line-height: 1; }
.brand-name small { margin-top: 5px; color: var(--faint); font-size: 8px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.sidebar-close { display: none; }
.main-nav { flex: 1; padding: 12px 10px 20px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.1) transparent; }
.main-nav p { margin: 17px 11px 7px; color: #6f5d65; font-size: 9px; font-weight: 900; letter-spacing: .15em; }
.nav-link { border: 0; cursor: pointer; }
.main-nav .nav-link, .sidebar-foot > .nav-link { width: 100%; min-height: 42px; margin: 2px 0; padding: 0 11px; border-radius: 12px; display: flex; align-items: center; gap: 11px; background: transparent; color: #ad9ca4; font-size: 13px; font-weight: 650; text-align: left; transition: .18s ease; }
.main-nav .nav-link:hover, .sidebar-foot > .nav-link:hover { color: var(--text); background: rgba(255,255,255,.05); }
.main-nav .nav-link.is-active { color: #fff; background: linear-gradient(90deg,rgba(255,64,111,.18),rgba(255,64,111,.05)); box-shadow: inset 2px 0 var(--pink); }
.nav-icon { width: 21px; flex: 0 0 21px; display: grid; place-items: center; color: currentColor; font-size: 17px; }
.nav-icon .ui-icon { width: 19px; height: 19px; }
.nav-count { margin-left: auto; min-width: 24px; padding: 3px 6px; border-radius: 8px; background: rgba(255,255,255,.07); color: var(--faint); font-size: 9px; text-align: center; }
.nav-count.accent { background: var(--pink); color: white; }
.main-nav .live-dot { margin-left: auto; }
.sidebar-foot { padding: 10px; border-top: 1px solid var(--line); }
.mode-toggle { padding: 11px; display: flex; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer; }
.mode-toggle span { display: grid; }
.mode-toggle b { color: var(--muted); font-size: 11px; }
.mode-toggle small { color: #65555c; font-size: 9px; }
.mode-toggle input { position: absolute; opacity: 0; }
.mode-toggle i { width: 38px; height: 22px; border-radius: 20px; padding: 3px; background: #2f1c24; transition: .2s; }
.mode-toggle i:before { content: ""; display: block; width: 16px; height: 16px; border-radius: 50%; background: #8b767f; transition: .2s; }
.mode-toggle input:checked + i { background: var(--pink); }
.mode-toggle input:checked + i:before { transform: translateX(16px); background: #fff; }
.workspace { min-height: 100vh; margin-left: var(--sidebar); }
.topbar { position: sticky; top: 0; z-index: 800; height: var(--top); padding: 0 clamp(18px,3vw,42px); display: flex; align-items: center; gap: 20px; background: rgba(15,7,11,.86); border-bottom: 1px solid var(--line); backdrop-filter: blur(22px); }
.global-search { width: min(520px,44vw); height: 44px; padding: 0 12px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.035); }
.global-search:focus-within { border-color: var(--line-hot); background: rgba(255,255,255,.055); }
.global-search > span { color: var(--faint); font-size: 22px; }
.global-search > .ui-icon { width: 21px; height: 21px; color: var(--faint); }
.global-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); }
.global-search input::placeholder { color: #75646b; }
.global-search kbd { padding: 3px 7px; border: 1px solid var(--line); border-radius: 7px; color: var(--faint); font-size: 10px; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 9px; }
body:not(.is-authenticated) .auth-only, body.is-authenticated .guest-only { display: none !important; }
.guest-login { min-height: 42px; padding-inline: 15px; border: 1px solid var(--line); background: rgba(255,255,255,.035); color: var(--text); }
.guest-login:hover { border-color: var(--line-hot); background: rgba(255,255,255,.065); }
.guest-signup { min-height: 42px; white-space: nowrap; }
.account-button { height: 46px; padding: 4px 10px 4px 5px; border: 1px solid var(--line); border-radius: 15px; display: flex; align-items: center; gap: 9px; background: rgba(255,255,255,.035); cursor: pointer; }
.account-button > span:first-child { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg,#762045,var(--pink)); color: white; font-weight: 900; }
.account-button > span:nth-child(2) { max-width: 110px; overflow: hidden; text-overflow: ellipsis; font-size: 12px; font-weight: 750; white-space: nowrap; }
.account-chevron { width: 16px; height: 16px; color: var(--faint); }
.menu-button, .mobile-brand { display: none; }
.app-view { min-height: calc(100vh - var(--top)); padding: 32px clamp(18px,3.2vw,52px) 80px; outline: 0; }
.mobile-tabbar { display: none; }

/* page scaffolding */
.page { width: min(1500px,100%); margin: 0 auto; animation: pageIn .35s ease both; }
.page-head { margin-bottom: 25px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.page-head h1, .page-head h2 { margin: 0; font-family: Georgia,serif; font-size: clamp(31px,4vw,48px); line-height: 1; letter-spacing: -.04em; }
.page-head p:not(.overline) { max-width: 670px; margin: 10px 0 0; color: var(--muted); }
.head-actions, .filter-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.filter-chip { min-height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: 100px; background: rgba(255,255,255,.025); color: var(--muted); font-size: 12px; font-weight: 700; cursor: pointer; transition: .2s; }
.filter-chip:hover, .filter-chip.is-active { color: #fff; border-color: var(--line-hot); background: rgba(255,64,111,.13); }
.section-title { margin: 34px 0 15px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.section-title h2 { margin: 0; font-size: 20px; letter-spacing: -.025em; }
.section-title p { margin: 3px 0 0; color: var(--faint); font-size: 12px; }
.section-title button { border: 0; background: none; color: var(--pink-2); font-size: 12px; font-weight: 750; cursor: pointer; }
.card { border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg,rgba(255,255,255,.055),rgba(255,255,255,.022)); box-shadow: 0 18px 60px rgba(0,0,0,.14); }
.empty-state { padding: 58px 24px; border: 1px dashed rgba(255,255,255,.14); border-radius: var(--radius); text-align: center; color: var(--muted); }
.empty-state span { display: block; margin-bottom: 12px; font-size: 36px; }
.empty-state h3 { margin: 0 0 7px; color: var(--text); }

/* home */
.home-layout { display: grid; grid-template-columns: minmax(0,1fr) 315px; gap: 26px; }
.home-layout > section { min-width: 0; }
.story-strip { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: none; }
.story-strip::-webkit-scrollbar { display: none; }
.story-button { width: 76px; flex: 0 0 76px; border: 0; background: transparent; color: var(--text); text-align: center; cursor: pointer; }
.story-ring { width: 66px; height: 66px; margin: 0 auto 7px; padding: 3px; border-radius: 50%; background: linear-gradient(135deg,var(--pink),var(--coral),#8e2dff); }
.story-ring img { width: 100%; height: 100%; border: 3px solid var(--bg); border-radius: 50%; object-fit: cover; }
.story-button small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 10px; }
.latest-head { margin: 2px 0 6px; }
.latest-head h1 { margin: 0; font-family: Georgia,serif; font-size: clamp(35px,4vw,50px); line-height: 1; letter-spacing: -.045em; }
.latest-head .overline { margin-bottom: 7px; }
.feed-tabs { margin: 22px 0 14px; display: flex; gap: 4px; border-bottom: 1px solid var(--line); }
.feed-tabs button { padding: 12px 14px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--faint); font-size: 12px; font-weight: 750; cursor: pointer; }
.feed-tabs button.is-active { color: #fff; border-color: var(--pink); }
.latest-filters { margin-top: 8px; overflow-x: auto; scrollbar-width: none; }
.latest-filters::-webkit-scrollbar { display: none; }
.latest-filters button { flex: 0 0 auto; }
.feed-list { display: grid; gap: 16px; }
.feed-card { overflow: hidden; }
.feed-author { padding: 15px 16px 11px; display: flex; align-items: center; gap: 11px; }
.mini-avatar { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 13px; object-fit: cover; background: var(--surface-3); }
.author-copy { display: grid; min-width: 0; }
.author-copy strong { font-size: 13px; }
.author-copy small { color: var(--faint); font-size: 10px; }
.follow-button { margin-left: auto; border: 0; background: none; color: var(--pink-2); font-size: 11px; font-weight: 800; cursor: pointer; }
.more-button { width: 32px; height: 32px; border: 0; background: transparent; color: var(--faint); cursor: pointer; }
.feed-media { min-height: 360px; position: relative; overflow: hidden; cursor: pointer; }
.feed-media img { width: 100%; height: 100%; min-height: 360px; object-fit: cover; transition: transform .45s ease, filter .25s; }
.feed-media:hover img { transform: scale(1.02); }
.media-overlay { position: absolute; inset: auto 0 0; padding: 70px 18px 16px; background: linear-gradient(transparent,rgba(12,5,8,.82)); }
.media-overlay h3 { margin: 5px 0 0; font-family: Georgia,serif; font-size: 26px; }
.media-count { position: absolute; top: 14px; right: 14px; padding: 6px 10px; border-radius: 100px; background: rgba(15,7,11,.62); backdrop-filter: blur(10px); font-size: 10px; }
.play-circle { position: absolute; inset: 0; margin: auto; width: 58px; height: 58px; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; display: grid; place-items: center; background: rgba(15,7,11,.55); backdrop-filter: blur(10px); font-size: 23px; }
.feed-copy { padding: 16px 17px 4px; }
.feed-copy h3 { margin: 0 0 7px; font-size: 18px; }
.feed-copy p { margin: 0; color: var(--muted); font-size: 13px; }
.tag-row { margin-top: 11px; display: flex; flex-wrap: wrap; gap: 6px; }
.tag-row span { padding: 5px 9px; border-radius: 100px; background: rgba(255,64,111,.09); color: var(--pink-2); font-size: 10px; }
.feed-actions { padding: 12px 14px 15px; display: flex; align-items: center; gap: 6px; }
.action-button { min-height: 35px; padding: 0 10px; border: 0; border-radius: 10px; display: inline-flex; align-items: center; gap: 6px; background: transparent; color: var(--muted); font-size: 11px; font-weight: 700; cursor: pointer; transition: .18s; }
.action-button:hover { background: rgba(255,255,255,.06); color: #fff; }
.action-button.is-active { color: var(--pink-2); }
.action-button.save-action { margin-left: auto; }
.text-post { padding: 23px; }
.text-post blockquote { margin: 12px 0 4px; font-family: Georgia,serif; font-size: clamp(21px,3vw,30px); line-height: 1.3; color: #ffe7ed; }
.poll-inline { padding: 18px; }
.poll-inline h3 { margin: 0 0 15px; }
.poll-options { display: grid; gap: 8px; }
.poll-option { position: relative; min-height: 44px; padding: 0 13px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; display: flex; align-items: center; justify-content: space-between; background: rgba(255,255,255,.025); cursor: pointer; }
.poll-option i { position: absolute; inset: 0 auto 0 0; width: var(--poll,0%); background: rgba(255,64,111,.13); transition: width .5s ease; }
.poll-option span, .poll-option b { position: relative; z-index: 1; font-size: 12px; }
.poll-option b { color: var(--pink-2); }
.poll-option.is-selected { border-color: var(--line-hot); }
.right-rail { display: grid; align-content: start; gap: 16px; }
.rail-card { padding: 18px; }
.rail-card h3 { margin: 0 0 14px; font-size: 14px; }
.rail-card .rail-location { margin: -8px 0 11px; color: var(--faint); font-size: 9px; }
.best-photo-card { overflow: hidden; border-color: rgba(255,64,111,.3); background: radial-gradient(circle at 90% 0,rgba(255,64,111,.17),transparent 34%),var(--surface); box-shadow: 0 22px 50px rgba(5,1,3,.26); }
.best-photo-head { padding: 17px 17px 13px; display: flex; align-items: center; justify-content: space-between; }
.best-photo-head h3 { margin: 5px 0 0; font-family: Georgia,serif; font-size: 20px; letter-spacing: -.02em; }
.best-photo-kicker { display: inline-flex; align-items: center; gap: 6px; color: var(--pink-2); font-size: 9px; font-weight: 900; letter-spacing: .13em; }
.best-photo-rank { width: 37px; height: 37px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.17); border-radius: 13px; background: rgba(255,255,255,.055); color: #ffd6e1; font-family: Georgia,serif; font-size: 15px; }
.best-photo-media { width: 100%; aspect-ratio: 4/5; padding: 0; border: 0; position: relative; display: block; overflow: hidden; background: #321322; color: #fff; text-align: left; cursor: pointer; }
.best-photo-media img, .best-photo-media video { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .45s ease,filter .25s; }
.best-photo-media:hover img, .best-photo-media:hover video { transform: scale(1.025); }
.best-video-media { aspect-ratio: 16/10; }
.best-video-media .play-circle { z-index: 2; }
.best-photo-media .content-tag { position: absolute; z-index: 2; top: 13px; left: 13px; max-width: calc(100% - 82px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.best-photo-likes { position: absolute; z-index: 2; top: 13px; right: 13px; padding: 7px 9px; border-radius: 100px; display: inline-flex; align-items: center; gap: 5px; background: rgba(14,6,10,.72); color: #fff; font-size: 10px; font-weight: 850; backdrop-filter: blur(12px); }
.best-photo-likes .ui-icon { color: var(--pink-2); }
.best-photo-overlay { position: absolute; z-index: 1; inset: auto 0 0; padding: 76px 16px 17px; display: grid; background: linear-gradient(transparent,rgba(10,4,7,.92)); }
.best-photo-overlay strong { font-family: Georgia,serif; font-size: 24px; line-height: 1.08; }
.best-photo-overlay small { margin-top: 5px; color: #e5cbd3; font-size: 10px; }
.best-photo-copy { padding: 13px 14px 14px; }
.best-photo-copy > p { margin: 0 0 9px; color: var(--faint); font-size: 10px; line-height: 1.5; }
.best-photo-actions { display: flex; align-items: center; gap: 7px; }
.best-photo-actions .action-button { padding-left: 8px; }
.best-photo-open { margin-left: auto; padding: 6px 0; border: 0; background: transparent; color: var(--pink-2); font-size: 10px; font-weight: 850; cursor: pointer; }
.online-list, .activity-list { display: grid; gap: 8px; }
.online-person { padding: 7px; border: 0; border-radius: 12px; display: flex; align-items: center; gap: 9px; background: transparent; color: var(--text); text-align: left; cursor: pointer; }
.online-person:hover { background: rgba(255,255,255,.05); }
.online-person img { width: 38px; height: 38px; border-radius: 12px; object-fit: cover; }
.online-person div { display: grid; min-width: 0; }
.online-person strong { font-size: 11px; }
.online-person small { color: var(--faint); font-size: 9px; }
.online-person i { margin-left: auto; }
.room-mini { padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(135deg,rgba(255,64,111,.13),rgba(255,255,255,.025)); cursor: pointer; }
.room-mini strong { display: block; font-size: 12px; }
.room-mini small { color: var(--faint); font-size: 9px; }
.safety-mini { padding: 18px; background: linear-gradient(135deg,rgba(73,214,162,.09),rgba(255,255,255,.025)); }
.safety-mini span { color: var(--green); }
.safety-mini h3 { margin: 8px 0 5px; }
.safety-mini p { margin: 0 0 12px; color: var(--muted); font-size: 11px; }

/* grids and visual cards */
.media-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 15px; }
.media-card { min-width: 0; overflow: hidden; cursor: pointer; transition: transform .22s ease, border-color .22s; }
.media-card:hover { transform: translateY(-4px); border-color: rgba(255,64,111,.3); }
.media-thumb { aspect-ratio: 4/5; position: relative; overflow: hidden; background: #321322; }
.media-card.video .media-thumb { aspect-ratio: 16/10; }
.media-thumb img, .media-thumb video { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease, filter .25s; }
.community-photo-card .media-thumb, .community-video-card .media-thumb { width: 100%; padding: 0; border: 0; display: block; color: #fff; text-align: left; cursor: pointer; }
.community-photo-card .media-thumb .content-tag, .community-video-card .media-thumb .content-tag { position: absolute; z-index: 2; top: 10px; left: 10px; }
.community-photo-card .media-stats, .community-video-card .media-stats { align-items: center; }
.community-photo-card .media-stats .action-button, .community-video-card .media-stats .action-button { min-height: 28px; padding: 0; }
.media-card:hover .media-thumb img, .media-card:hover .media-thumb video { transform: scale(1.035); }
.media-card-body { padding: 13px; }
.media-card-body h3 { margin: 0; overflow: hidden; text-overflow: ellipsis; font-size: 13px; white-space: nowrap; }
.media-card-body p { margin: 4px 0 0; color: var(--faint); font-size: 10px; }
.media-stats { margin-top: 9px; display: flex; gap: 12px; color: var(--muted); font-size: 10px; }
.media-stats span:last-child { margin-left: auto; }
.profile-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 15px; }
.profile-card { overflow: hidden; cursor: pointer; transition: transform .22s ease, border-color .22s ease; }
.profile-card:hover { transform: translateY(-4px); border-color: rgba(255,64,111,.32); }
.profile-image { aspect-ratio: 4/5; position: relative; overflow: hidden; background: var(--surface-3); }
.profile-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease,filter .25s; }
.profile-card:hover .profile-image img { transform: scale(1.035); }
.profile-image .content-tag { position: absolute; top: 11px; left: 11px; }
.created-media { width: 100%; max-height: 420px; margin-bottom: 16px; border-radius: 16px; object-fit: cover; }
.member-avatar { width: 36px; height: 36px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg,var(--pink),var(--wine-2)); color: #fff; font-size: 11px; font-weight: 900; }
.panel-empty { padding: 34px 22px; text-align: center; color: var(--muted); }
.panel-empty > span { width: 52px; height: 52px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 17px; background: rgba(255,64,111,.1); color: var(--pink-2); font-size: 24px; }
.panel-empty h3 { margin: 0 0 6px; color: var(--text); }
.panel-empty p { margin: 0 0 18px; }
.privacy-status { display: inline-flex; align-items: center; gap: 6px; color: var(--green); font-weight: 800; }
.profile-online { position: absolute; right: 11px; top: 11px; padding: 5px 8px; border-radius: 100px; background: rgba(15,7,11,.68); color: #d7fff0; font-size: 9px; backdrop-filter: blur(9px); }
.profile-like { position: absolute; right: 12px; bottom: 12px; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.24); border-radius: 50%; display: grid; place-items: center; background: rgba(15,7,11,.58); color: #fff; cursor: pointer; backdrop-filter: blur(8px); }
.profile-like.is-active { background: var(--pink); border-color: var(--pink); }
.profile-body { padding: 14px; }
.profile-body h3 { margin: 0; font-size: 15px; }
.profile-body h3 span { color: var(--muted); font-weight: 500; }
.profile-body p { margin: 4px 0 9px; color: var(--faint); font-size: 10px; }
.profile-body small { display: block; color: var(--muted); font-size: 11px; line-height: 1.45; }
.profile-card.compact .profile-image { aspect-ratio: 1; }
.dating-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; }
.dating-card { padding: 19px; cursor: pointer; transition: .2s; }
.dating-card:hover { transform: translateY(-3px); border-color: var(--line-hot); }
.dating-card-head { display: flex; align-items: center; gap: 11px; }
.dating-card-head img { width: 48px; height: 48px; border-radius: 15px; object-fit: cover; }
.dating-card-head div { display: grid; }
.dating-card-head strong { font-size: 13px; }
.dating-card-head small { color: var(--faint); font-size: 10px; }
.dating-badge { margin-left: auto; padding: 5px 9px; border-radius: 100px; background: rgba(255,64,111,.12); color: var(--pink-2); font-size: 9px; font-weight: 800; }
.dating-card h3 { margin: 16px 0 7px; font-family: Georgia,serif; font-size: 21px; }
.dating-card > p { margin: 0; color: var(--muted); font-size: 12px; }
.dating-meta { margin-top: 15px; padding-top: 12px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; color: var(--faint); font-size: 10px; }
.room-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; }
.room-card { overflow: hidden; cursor: pointer; transition: transform .22s,border-color .22s; }
.room-card:hover { transform: translateY(-4px); border-color: var(--line-hot); }
.room-cover { height: 145px; position: relative; overflow: hidden; background: linear-gradient(135deg,#551a37,#24101a); }
.room-cover img { width: 100%; height: 100%; object-fit: cover; opacity: .75; }
.room-cover:after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent,rgba(15,7,11,.8)); }
.room-live { position: absolute; z-index: 2; top: 11px; left: 11px; padding: 5px 9px; border-radius: 100px; background: var(--pink); color: white; font-size: 9px; font-weight: 900; }
.room-count { position: absolute; z-index: 2; right: 11px; bottom: 10px; font-size: 10px; }
.room-body { padding: 14px; }
.room-body h3 { margin: 0; font-size: 14px; }
.room-body p { margin: 5px 0 0; color: var(--faint); font-size: 10px; }
.content-list { display: grid; gap: 12px; }
.list-card { padding: 17px; display: flex; gap: 16px; align-items: center; cursor: pointer; transition: .2s; }
.list-card:hover { border-color: var(--line-hot); background: rgba(255,64,111,.04); }
.list-card-icon { width: 56px; height: 56px; flex: 0 0 56px; border-radius: 17px; display: grid; place-items: center; background: linear-gradient(135deg,rgba(255,64,111,.25),rgba(112,27,64,.4)); color: var(--pink-2); font-size: 22px; }
.list-card-copy { min-width: 0; }
.list-card h3 { margin: 0 0 4px; font-size: 14px; }
.list-card p { margin: 0; color: var(--muted); font-size: 11px; }
.list-card-meta { margin-left: auto; flex: 0 0 auto; text-align: right; color: var(--faint); font-size: 10px; }
.list-card-meta b { display: block; margin-bottom: 4px; color: var(--pink-2); }
.feature-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; }
.feature-card { padding: 22px; position: relative; overflow: hidden; cursor: pointer; }
.feature-card:before { content: ""; position: absolute; width: 140px; height: 140px; right: -55px; top: -55px; border-radius: 50%; background: rgba(255,64,111,.1); }
.feature-card > span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: rgba(255,64,111,.13); color: var(--pink-2); font-size: 19px; }
.feature-card h3 { margin: 17px 0 7px; }
.feature-card p { margin: 0; color: var(--muted); font-size: 11px; }
.feature-card footer { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; color: var(--faint); font-size: 10px; }

/* messages and chat */
.messages-shell { min-height: 650px; overflow: hidden; display: grid; grid-template-columns: 330px 1fr; }
.conversation-list { border-right: 1px solid var(--line); }
.conversation-search { padding: 14px; border-bottom: 1px solid var(--line); }
.conversation-search input { width: 100%; height: 42px; padding: 0 13px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.035); color: var(--text); outline: 0; }
.conversation-item { width: 100%; padding: 13px 14px; border: 0; border-bottom: 1px solid rgba(255,255,255,.055); display: flex; gap: 10px; background: transparent; color: var(--text); text-align: left; cursor: pointer; }
.conversation-item:hover, .conversation-item.is-active { background: rgba(255,64,111,.07); }
.conversation-item img { width: 45px; height: 45px; flex: 0 0 45px; border-radius: 14px; object-fit: cover; }
.conversation-item > div { min-width: 0; flex: 1; }
.conversation-item strong { display: flex; justify-content: space-between; font-size: 12px; }
.conversation-item strong time { color: var(--faint); font-size: 9px; font-weight: 500; }
.conversation-item p { margin: 4px 0 0; overflow: hidden; color: var(--faint); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.conversation-item b { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: var(--pink); font-size: 9px; }
.message-thread { display: grid; grid-template-rows: auto 1fr auto; min-width: 0; }
.thread-head { padding: 13px 17px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 11px; }
.thread-head img { width: 40px; height: 40px; border-radius: 13px; object-fit: cover; }
.thread-head div { display: grid; }
.thread-head strong { font-size: 12px; }
.thread-head small { color: var(--green); font-size: 9px; }
.thread-head .icon-button:first-of-type { margin-left: auto; }
.message-log { max-height: 520px; min-height: 470px; padding: 22px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.message-bubble { max-width: min(74%,500px); padding: 10px 13px; border-radius: 15px 15px 15px 4px; align-self: flex-start; background: rgba(255,255,255,.07); font-size: 12px; }
.message-bubble.mine { align-self: flex-end; border-radius: 15px 15px 4px 15px; background: linear-gradient(135deg,#7b2147,#b82c59); }
.message-bubble small { display: block; margin-top: 4px; color: rgba(255,255,255,.55); font-size: 8px; text-align: right; }
.message-composer { padding: 12px; border-top: 1px solid var(--line); display: flex; gap: 8px; }
.message-composer input { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.04); color: var(--text); outline: 0; }
.chat-room-shell { min-height: 660px; display: grid; grid-template-columns: minmax(0,1fr) 330px; overflow: hidden; }
.chat-stage { min-width: 0; position: relative; display: grid; place-items: center; background: radial-gradient(circle at 50% 35%,#42162b,#160a10 62%); }
.chat-stage-copy { max-width: 460px; padding: 30px; text-align: center; }
.chat-stage-copy span { display: grid; place-items: center; width: 70px; height: 70px; margin: 0 auto 18px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; background: rgba(255,255,255,.05); font-size: 29px; }
.chat-stage-copy h2 { margin: 0; font-family: Georgia,serif; font-size: 37px; }
.chat-stage-copy p { color: var(--muted); }
.chat-stage-top { position: absolute; inset: 16px 16px auto; display: flex; justify-content: space-between; }
.chat-side { border-left: 1px solid var(--line); display: grid; grid-template-rows: auto 1fr auto; }
.chat-side header { padding: 15px; border-bottom: 1px solid var(--line); }
.chat-side header h3 { margin: 0; font-size: 13px; }
.chat-messages { max-height: 500px; padding: 14px; overflow-y: auto; display: grid; align-content: start; gap: 11px; }
.chat-line { display: grid; grid-template-columns: 30px 1fr; gap: 8px; }
.chat-line img { width: 30px; height: 30px; border-radius: 10px; object-fit: cover; }
.chat-line p { margin: 0; color: var(--muted); font-size: 10px; }
.chat-line strong { color: var(--pink-2); }

/* settings and safety */
.settings-layout { display: grid; grid-template-columns: 230px 1fr; gap: 18px; }
.settings-nav { padding: 10px; align-self: start; }
.settings-nav button { width: 100%; min-height: 42px; padding: 0 11px; border: 0; border-radius: 11px; display: flex; align-items: center; gap: 9px; background: transparent; color: var(--muted); cursor: pointer; }
.settings-nav button.is-active, .settings-nav button:hover { color: #fff; background: rgba(255,64,111,.1); }
.settings-panel { padding: 26px; }
.settings-panel h2 { margin: 0 0 5px; }
.settings-panel > p { margin: 0 0 22px; color: var(--muted); }
.setting-row { min-height: 66px; padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.setting-row div { display: grid; }
.setting-row strong { font-size: 12px; }
.setting-row small { color: var(--faint); font-size: 10px; }
.switch { position: relative; width: 44px; height: 25px; flex: 0 0 44px; }
.switch input { position: absolute; opacity: 0; }
.switch i { position: absolute; inset: 0; border-radius: 20px; background: #372029; cursor: pointer; transition: .2s; }
.switch i:before { content: ""; position: absolute; width: 19px; height: 19px; left: 3px; top: 3px; border-radius: 50%; background: #8f7b83; transition: .2s; }
.switch input:checked + i { background: var(--pink); }
.switch input:checked + i:before { transform: translateX(19px); background: #fff; }
.safety-hero { padding: 35px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 30px; background: radial-gradient(circle at 88% 40%,rgba(73,214,162,.16),transparent 28%),linear-gradient(130deg,rgba(73,214,162,.08),rgba(255,255,255,.025)); }
.safety-hero h2 { margin: 0; font-family: Georgia,serif; font-size: 34px; }
.safety-hero p { max-width: 650px; color: var(--muted); }
.safety-shield { width: 100px; height: 100px; border: 1px solid rgba(73,214,162,.28); border-radius: 31px; display: grid; place-items: center; color: var(--green); font-size: 41px; transform: rotate(8deg); }
.price-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 15px; }
.price-card { padding: 25px; position: relative; }
.price-card.is-featured { border-color: rgba(255,64,111,.5); background: linear-gradient(145deg,rgba(255,64,111,.14),rgba(255,255,255,.03)); }
.price-card .popular { position: absolute; top: 13px; right: 13px; padding: 4px 8px; border-radius: 100px; background: var(--pink); font-size: 8px; font-weight: 900; }
.price-card h3 { margin: 0; }
.price-card .price { margin: 14px 0; font-size: 32px; font-weight: 900; }
.price-card .price small { color: var(--faint); font-size: 10px; font-weight: 500; }
.price-card ul { min-height: 130px; margin: 0 0 18px; padding: 0; list-style: none; display: grid; gap: 8px; color: var(--muted); font-size: 11px; }

/* dialogs and panels */
dialog { color: var(--text); }
.modal { width: min(920px,calc(100% - 30px)); max-height: calc(100dvh - 30px); padding: 0; overflow: auto; border: 1px solid rgba(255,255,255,.15); border-radius: 28px; background: #170a10; box-shadow: var(--shadow); }
.modal::backdrop { background: rgba(7,3,5,.78); backdrop-filter: blur(8px); }
.modal[open] { animation: modalIn .3s cubic-bezier(.2,.8,.2,1); }
.modal-close { position: absolute; z-index: 10; top: 13px; right: 13px; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 12px; display: grid; place-items: center; background: rgba(15,7,11,.68); color: #fff; cursor: pointer; font-size: 20px; backdrop-filter: blur(8px); }
.modal-close.light { background: rgba(255,255,255,.1); }
.auth-modal { display: none; grid-template-columns: 1fr 1fr; }
.auth-modal[open] { display: grid; }
.auth-visual { min-height: 540px; padding: 42px; display: flex; flex-direction: column; justify-content: flex-end; position: relative; overflow: hidden; background: #170a10; }
.auth-visual-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 48%; }
#authDialog .auth-visual-image { object-position: 50% 0%; }
.auth-visual:after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg,rgba(9,3,6,.08) 22%,rgba(9,3,6,.25) 50%,rgba(9,3,6,.94) 100%); }
.auth-visual .brand-symbol { position: absolute; z-index: 2; top: 35px; left: 35px; }
.auth-visual p, .auth-visual small { position: relative; z-index: 2; }
.auth-visual p { margin: 0; font-family: Georgia,serif; font-size: 34px; line-height: 1.05; }
.auth-visual p em { color: var(--pink-2); }
.auth-visual small { margin-top: 10px; color: #d2bcc4; }
.auth-form { padding: 62px 45px 45px; display: flex; flex-direction: column; justify-content: center; }
.auth-form h2 { margin: 0; font-family: Georgia,serif; font-size: 40px; }
.auth-form > p:not(.overline) { margin: 10px 0 26px; color: var(--muted); font-size: 12px; }
.auth-form label, .field label { margin: 0 0 7px; color: var(--muted); font-size: 11px; font-weight: 700; }
.auth-form input, .field input, .field textarea, .field select { width: 100%; min-height: 48px; margin-bottom: 13px; padding: 0 13px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.045); color: var(--text); outline: 0; }
.field textarea { min-height: 120px; padding-top: 12px; resize: vertical; }
.field select { color-scheme: dark; background-color: var(--surface-2); }
.field select option, .field select optgroup { background-color: var(--surface-2); color: var(--text); }
.auth-form input:focus, .field input:focus, .field textarea:focus, .field select:focus { border-color: var(--line-hot); }
.auth-form .btn-soft { margin-top: 9px; }
.wizard-modal { width: min(1020px,calc(100% - 30px)); overflow: hidden; }
.wizard-modal[open] { display: grid; grid-template-columns: 340px 1fr; }
.wizard-aside { min-height: 650px; padding: 34px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; background: #170a10; }
.wizard-aside:after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg,rgba(9,3,6,.35),rgba(9,3,6,.68) 48%,rgba(9,3,6,.96)); }
.wizard-aside > :not(.auth-visual-image) { position: relative; z-index: 2; }
.wizard-aside h2 { margin: 0; font-family: Georgia,serif; font-size: 36px; line-height: 1.04; }
.wizard-aside h2 em { color: var(--pink-2); }
.wizard-aside p:not(.overline) { color: #cfb6c0; font-size: 12px; }
.wizard-member-count { margin-top: 14px; display: grid; }
.wizard-member-count strong { color: #fff; font-family: Georgia,serif; font-size: 32px; line-height: 1; letter-spacing: -.03em; }
.wizard-member-count span { margin-top: 4px; color: #f5b5c7; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.wizard-benefits { margin: 17px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.wizard-aside .wizard-benefits li { display: flex; align-items: center; gap: 9px; color: rgba(255,255,255,.9); font-size: 10px; line-height: 1.35; }
.wizard-benefits li > span { width: 26px; height: 26px; flex: 0 0 26px; border: 1px solid rgba(255,255,255,.16); border-radius: 9px; display: grid; place-items: center; background: rgba(255,64,111,.16); color: var(--pink-2); }
.wizard-benefits .ui-icon { width: 13px; height: 13px; }
.wizard-aside ol { margin: 20px 0; padding: 0; list-style: none; display: grid; gap: 11px; }
.wizard-aside li { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.48); font-size: 11px; }
.wizard-aside li i { width: 27px; height: 27px; border: 1px solid rgba(255,255,255,.17); border-radius: 9px; display: grid; place-items: center; font-style: normal; }
.wizard-aside li.is-active { color: #fff; }
.wizard-aside li.is-active i { border-color: var(--pink-2); background: var(--pink); }
.wizard-aside li.is-done i { border-color: rgba(73,214,162,.5); background: rgba(73,214,162,.15); color: var(--green); }
.wizard-aside > small { color: rgba(255,255,255,.42); }
.wizard-content { min-height: 650px; padding: 48px; display: grid; grid-template-rows: auto 1fr auto auto; background: #fff9f7; color: #2a121c; }
.wizard-progress { display: none; }
.wizard-content h2 { margin: 0; font-family: Georgia,serif; font-size: 36px; letter-spacing: -.04em; }
.wizard-content .lead { margin: 8px 0 26px; color: #735d66; }
.choice-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 11px; }
.choice-card { min-height: 96px; padding: 15px; border: 1px solid #eadde1; border-radius: 16px; display: flex; align-items: center; gap: 13px; background: #fff; color: #2a121c; text-align: left; cursor: pointer; transition: .2s; }
.choice-card:hover, .choice-card.is-selected { border-color: var(--pink); background: #fff2f5; box-shadow: 0 10px 26px rgba(122,28,63,.08); }
.choice-card > span { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 13px; display: grid; place-items: center; background: #f8e9ee; color: #9e2853; font-size: 19px; }
.choice-card div { display: grid; }
.choice-card strong { font-size: 13px; }
.choice-card small { color: #826d75; font-size: 10px; }
.wizard-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.wizard-content .field label { color: #6f5a63; }
.wizard-content .field input, .wizard-content .field select { border-color: #e4d5da; background: #fff; color: #2a121c; }
.wizard-content .field select { color-scheme: light; }
.wizard-content .field select option, .wizard-content .field select optgroup { background-color: #fff; color: #2a121c; }
.wizard-content .field input:disabled { background: #f4edef; color: #9b878e; cursor: not-allowed; }
.location-fields { align-items: start; }
.location-picker { position: relative; min-width: 0; }
.location-results { position: absolute; z-index: 8; top: calc(100% - 10px); left: 0; right: 0; max-height: 230px; overflow-y: auto; padding: 6px; border: 1px solid #decbd2; border-radius: 14px; display: grid; gap: 2px; background: #fff; box-shadow: 0 20px 42px rgba(75,26,45,.18); }
.location-results[hidden] { display: none; }
.location-results button { min-height: 42px; padding: 7px 10px; border: 0; border-radius: 9px; display: flex; align-items: center; justify-content: space-between; gap: 10px; background: transparent; color: #2a121c; text-align: left; cursor: pointer; }
.location-results button:hover, .location-results button:focus-visible { background: #fff0f4; outline: 0; }
.location-results button strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.location-results button small { flex: 0 0 auto; color: #8a737c; font-size: 9px; text-align: right; }
.location-empty { margin: 0; padding: 12px 10px; color: #806b73; font-size: 11px; }
.location-help { margin: 7px 0 0; color: #846e76; font-size: 10px; }
.selected-location { margin-top: 7px; padding: 12px 14px; border: 1px solid #d9e9e1; border-radius: 14px; display: flex; align-items: center; gap: 10px; background: #f0faf6; color: #187b5b; }
.selected-location > .ui-icon { width: 20px; height: 20px; }
.selected-location div { display: grid; }
.selected-location strong { color: #214a3c; font-size: 12px; }
.selected-location small { color: #5c7c70; font-size: 10px; }
.verification-step { max-width: 470px; margin: auto; text-align: center; }
.verification-icon { width: 68px; height: 68px; margin: 0 auto 18px; border-radius: 22px; display: grid; place-items: center; background: #f9e7ed; color: #a52d58; }
.verification-icon .ui-icon { width: 30px; height: 30px; }
.verification-code { max-width: 280px; margin: 0 auto; text-align: left; }
.verification-code input { height: 62px; font-size: 28px; font-weight: 800; letter-spacing: .28em; text-align: center; }
.verification-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 18px; }
.verification-links button { padding: 5px 0; border: 0; background: transparent; color: #9e2853; font-size: 11px; font-weight: 800; cursor: pointer; }
.verification-links button:hover { text-decoration: underline; }
.privacy-choice { margin-top: 9px; padding: 13px; border: 1px solid #eadde1; border-radius: 14px; display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.privacy-choice div { display: grid; }
.privacy-choice strong { font-size: 12px; }
.privacy-choice small { color: #856e77; font-size: 10px; }
.wizard-content footer { padding-top: 18px; border-top: 1px solid #ebdfe3; display: flex; justify-content: space-between; }
.wizard-content footer .btn[hidden] { display: none; }
.wizard-content footer .btn[hidden] + .btn { margin-left: auto; }
.wizard-content .btn-soft { color: #563642; background: #f4e9ed; border-color: #e6d8dd; }
.form-error { min-height: 22px; margin: 4px 0 0; color: #bd214c; font-size: 11px; font-weight: 700; }
.wizard-complete { display: grid; place-items: center; text-align: center; }
.wizard-complete > div { max-width: 450px; }
.wizard-complete span { width: 72px; height: 72px; margin: 0 auto 17px; border-radius: 50%; display: grid; place-items: center; background: #e8f9f2; color: #168b63; font-size: 30px; }
.content-modal { width: min(980px,calc(100% - 30px)); }
.detail-layout { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(320px,.9fr); min-height: 590px; }
.detail-media { min-height: 590px; position: relative; overflow: hidden; background: #30131f; }
.detail-media img, .detail-media video { width: 100%; height: 100%; object-fit: cover; }
.detail-copy { padding: 38px; }
.detail-copy h2 { margin: 0; font-family: Georgia,serif; font-size: 36px; line-height: 1.05; }
.detail-copy > p { color: var(--muted); font-size: 12px; }
.detail-profile-head { display: flex; align-items: center; gap: 11px; margin-bottom: 22px; }
.detail-profile-head img { width: 46px; height: 46px; border-radius: 14px; object-fit: cover; }
.detail-profile-head div { display: grid; }
.detail-profile-head strong { font-size: 12px; }
.detail-profile-head small { color: var(--green); font-size: 9px; }
.detail-actions { margin-top: 22px; display: flex; gap: 8px; flex-wrap: wrap; }
.comment-list { margin-top: 22px; padding-top: 17px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.comment { display: grid; grid-template-columns: 32px 1fr; gap: 8px; }
.comment img { width: 32px; height: 32px; border-radius: 10px; }
.comment p { margin: 0; color: var(--muted); font-size: 10px; }
.comment strong { color: var(--text); }
.profile-detail-hero { min-height: 360px; padding: 30px; display: flex; align-items: flex-end; position: relative; overflow: hidden; }
.profile-detail-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.profile-detail-hero:after { content: ""; position: absolute; inset: 30% 0 0; background: linear-gradient(transparent,#15090f); }
.profile-detail-title { position: relative; z-index: 2; }
.profile-detail-title h2 { margin: 0; font-family: Georgia,serif; font-size: 42px; }
.profile-detail-title p { margin: 5px 0 0; color: #ddc7cf; }
.profile-detail-body { padding: 26px; }
.profile-detail-body > p { color: var(--muted); }
.composer-modal { width: min(720px,calc(100% - 30px)); }
.composer-shell { padding: 34px; }
.composer-shell h2 { margin: 0; font-family: Georgia,serif; font-size: 34px; }
.composer-shell > p { margin: 7px 0 22px; color: var(--muted); }
.create-types { display: grid; grid-template-columns: repeat(4,1fr); gap: 9px; }
.create-type { min-height: 94px; padding: 10px; border: 1px solid var(--line); border-radius: 15px; display: grid; place-items: center; align-content: center; gap: 7px; background: rgba(255,255,255,.025); color: var(--muted); cursor: pointer; }
.create-type:hover { color: #fff; border-color: var(--line-hot); background: rgba(255,64,111,.08); }
.create-type span { font-size: 24px; }
.create-type small { font-size: 10px; font-weight: 700; }
.composer-form { display: grid; gap: 13px; }
.composer-form .field { display: grid; }
.upload-zone { min-height: 130px; padding: 20px; border: 1px dashed rgba(255,255,255,.2); border-radius: 16px; display: grid; place-items: center; text-align: center; color: var(--muted); cursor: pointer; }
.upload-zone:hover { border-color: var(--pink); background: rgba(255,64,111,.04); }
.upload-zone input { display: none; }
.upload-zone span { font-size: 26px; }
.composer-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.composer-actions { margin-top: 7px; display: flex; justify-content: flex-end; gap: 8px; }
.camera-modal { width: min(1000px,calc(100% - 20px)); background: #060305; }
.camera-shell { min-height: min(690px,calc(100dvh - 25px)); display: grid; grid-template-rows: 1fr auto; }
.camera-stage { position: relative; display: grid; place-items: center; overflow: hidden; }
.camera-stage video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.camera-placeholder { text-align: center; color: var(--muted); }
.camera-placeholder span { font-size: 48px; color: var(--pink); }
.camera-placeholder h2 { margin: 10px 0 5px; color: #fff; }
.camera-placeholder p { margin: 0; }
.camera-controls { padding: 14px; display: flex; justify-content: center; gap: 12px; }
.camera-control { width: 52px; height: 52px; border: 0; border-radius: 50%; display: grid; place-items: center; background: #272126; color: #fff; cursor: pointer; }
.camera-control.is-off { background: #5d1c32; }
.camera-control.danger { background: #e33b57; font-size: 22px; }
.slide-panel { position: fixed; z-index: 1800; right: 0; top: 0; bottom: 0; width: min(390px,100%); overflow-y: auto; border-left: 1px solid var(--line); background: #14090e; box-shadow: -30px 0 80px rgba(0,0,0,.4); transform: translateX(105%); transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.slide-panel.is-open { transform: translateX(0); }
.slide-panel > header { height: 80px; padding: 0 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.slide-panel > header h2 { margin: 0; font-size: 19px; }
.slide-panel > header .overline { margin-bottom: 2px; }
.panel-scrim { position: fixed; z-index: 1700; inset: 0; background: rgba(5,2,4,.62); opacity: 0; visibility: hidden; transition: .25s; }
.panel-scrim.is-visible { opacity: 1; visibility: visible; }
.notification-item { padding: 15px 18px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 42px 1fr; gap: 11px; }
.notification-item > span { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: rgba(255,64,111,.11); color: var(--pink-2); }
.notification-item p { margin: 0; color: var(--muted); font-size: 11px; }
.notification-item p strong { color: var(--text); }
.notification-item small { color: var(--faint); font-size: 9px; }
.account-summary { margin: 18px; padding: 18px; display: flex; align-items: center; gap: 12px; }
.account-summary > span { width: 54px; height: 54px; border-radius: 17px; display: grid; place-items: center; background: linear-gradient(135deg,#761e45,var(--pink)); font-size: 20px; font-weight: 900; }
.account-summary div { display: grid; }
.account-summary strong { font-size: 14px; }
.account-summary small { color: var(--faint); font-size: 10px; }
.account-links { padding: 0 11px; display: grid; }
.account-links button { min-height: 47px; padding: 0 11px; border: 0; border-radius: 12px; display: flex; align-items: center; gap: 11px; background: transparent; color: var(--muted); cursor: pointer; text-align: left; }
.account-links button:hover { background: rgba(255,255,255,.05); color: #fff; }
.account-links button span { width: 24px; color: var(--pink-2); }
.account-links button b { margin-left: auto; color: var(--yellow); font-size: 10px; }
.toast-region { position: fixed; z-index: 4000; right: 20px; bottom: 20px; display: grid; gap: 8px; pointer-events: none; }
.toast { min-width: 260px; max-width: 390px; padding: 13px 16px; border: 1px solid rgba(255,255,255,.14); border-radius: 14px; display: flex; align-items: center; gap: 9px; background: rgba(29,13,20,.95); color: #fff; box-shadow: 0 18px 50px rgba(0,0,0,.4); backdrop-filter: blur(15px); font-size: 11px; animation: toastIn .3s ease both; }
.toast span { color: var(--green); }
.toast.is-leaving { animation: toastOut .25s ease forwards; }

/* safe mode */
body.safe-mode .sensitive-media img, body.safe-mode .sensitive-media video { filter: blur(24px) saturate(.6); transform: scale(1.1); }
body.safe-mode .sensitive-media:after { content: "Slušný režim · kliknutím odhaliť"; position: absolute; z-index: 3; inset: 50% auto auto 50%; transform: translate(-50%,-50%); padding: 7px 10px; border-radius: 100px; background: rgba(15,7,11,.76); color: #fff; font-size: 9px; white-space: nowrap; }
body.safe-mode .sensitive-media.is-revealed img, body.safe-mode .sensitive-media.is-revealed video { filter: none; transform: none; }
body.safe-mode .sensitive-media.is-revealed:after { display: none; }

/* responsive */
@media (max-width: 1250px) {
  .home-layout { grid-template-columns: 1fr; }
  .right-rail { grid-template-columns: repeat(3,1fr); }
  .media-grid, .profile-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .room-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 980px) {
  :root { --sidebar: 0px; }
  .sidebar { width: 270px; transform: translateX(-105%); transition: transform .28s ease; box-shadow: 30px 0 80px rgba(0,0,0,.45); }
  .sidebar.is-open { transform: translateX(0); }
  .sidebar-close { display: grid; }
  .sidebar-scrim { position: fixed; z-index: 950; inset: 0; background: rgba(6,2,4,.66); opacity: 0; visibility: hidden; transition: .25s; }
  .sidebar-scrim.is-visible { opacity: 1; visibility: visible; }
  .workspace { margin-left: 0; }
  .menu-button, .mobile-brand { display: grid; }
  .mobile-brand { border: 0; background: transparent; padding: 0; }
  .global-search { width: min(420px,42vw); }
  .media-grid, .profile-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .messages-shell { grid-template-columns: 290px 1fr; }
}
@media (max-width: 760px) {
  .age-gate { align-items: start; padding: 10px; }
  .age-entry { margin: auto; padding: 20px; border-radius: 24px; }
  .age-entry-copy { margin-block: 10px 15px; }
  .age-entry-copy h1 { font-size: 38px; }
  .interest-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .interest-card { height: 190px; border-radius: 17px; }
  .age-consent { margin-top: 16px; grid-template-columns: 1fr; gap: 7px; text-align: center; }
  .age-consent .btn { grid-row: auto; }
  .age-consent > p { margin-top: 3px; }
  .age-leave { margin: 1px auto 0; }
  .topbar { height: 64px; padding: 0 12px; gap: 8px; }
  .app-view { min-height: calc(100vh - 64px); padding: 22px 12px 96px; }
  .global-search { flex: 1; width: auto; }
  .global-search kbd, .account-button > span:nth-child(2), .account-button i, .desktop-only, .btn-create { display: none; }
  .account-button { width: 44px; padding: 3px; }
  .account-button > span:first-child { width: 36px; }
  .top-actions { margin-left: 0; }
  body:not(.is-authenticated) .global-search, body:not(.is-authenticated) .mobile-brand { display: none; }
  body:not(.is-authenticated) .top-actions { margin-left: auto; gap: 6px; }
  .guest-login, .guest-signup { min-height: 38px; padding: 0 11px; font-size: 11px; }
  .top-actions > .icon-button:not(:first-of-type) { display: none; }
  .mobile-tabbar { position: fixed; z-index: 780; inset: auto 8px 8px; height: 68px; padding: 7px 7px max(7px,env(safe-area-inset-bottom)); border: 1px solid rgba(255,255,255,.13); border-radius: 20px; display: grid; grid-template-columns: repeat(5,1fr); background: rgba(26,12,18,.94); box-shadow: 0 16px 60px rgba(0,0,0,.48); backdrop-filter: blur(22px); }
  body:not(.is-authenticated) .mobile-tabbar { grid-template-columns: repeat(4,1fr); }
  .mobile-tabbar .nav-link { position: relative; border: 0; border-radius: 13px; display: grid; place-items: center; align-content: center; gap: 2px; background: transparent; color: var(--faint); cursor: pointer; }
  .mobile-tabbar .nav-link.is-active { color: var(--pink-2); background: rgba(255,64,111,.08); }
  .mobile-tabbar .nav-link > span { display: grid; place-items: center; font-size: 18px; }
  .mobile-tabbar .nav-link .ui-icon { width: 20px; height: 20px; }
  .mobile-tabbar small { font-size: 8px; }
  .mobile-tabbar b { position: absolute; right: 11px; top: 5px; width: 15px; height: 15px; border-radius: 50%; display: grid; place-items: center; background: var(--pink); color: #fff; font-size: 7px; }
  .mobile-create { align-self: start; justify-self: center; width: 50px; height: 50px; margin-top: -16px; border: 3px solid #1a0c12; border-radius: 50%; background: linear-gradient(135deg,var(--pink),#bd2854); color: white; font-size: 25px; cursor: pointer; box-shadow: 0 10px 30px rgba(255,64,111,.28); }
  .mobile-create .ui-icon { width: 23px; height: 23px; }
  .page-head { align-items: flex-start; flex-direction: column; }
  .page-head h1, .page-head h2 { font-size: 34px; }
  .head-actions, .filter-row { width: 100%; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .filter-chip { flex: 0 0 auto; }
  .latest-head h1 { font-size: 38px; }
  .right-rail { grid-template-columns: 1fr; }
  .right-rail .rail-card:nth-child(n+2) { display: none; }
  .feed-media, .feed-media img { min-height: 300px; }
  .media-grid, .profile-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .dating-grid, .room-grid, .feature-grid, .price-grid { grid-template-columns: 1fr; }
  .media-card-body { padding: 11px; }
  .profile-body { padding: 11px; }
  .profile-body small { display: none; }
  .list-card { align-items: flex-start; }
  .list-card-meta { display: none; }
  .messages-shell { min-height: auto; grid-template-columns: 1fr; }
  .conversation-list { border-right: 0; }
  .message-thread { display: none; }
  .messages-shell.thread-open .conversation-list { display: none; }
  .messages-shell.thread-open .message-thread { display: grid; }
  .message-log { min-height: calc(100dvh - 310px); }
  .chat-room-shell { grid-template-columns: 1fr; }
  .chat-stage { min-height: 400px; }
  .chat-side { border-left: 0; border-top: 1px solid var(--line); }
  .settings-layout { grid-template-columns: 1fr; }
  .settings-nav { display: flex; overflow-x: auto; }
  .settings-nav button { flex: 0 0 auto; width: auto; }
  .safety-hero { grid-template-columns: 1fr; }
  .safety-shield { display: none; }
  .auth-modal[open] { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .auth-form { padding: 50px 24px 26px; }
  .wizard-modal[open] { grid-template-columns: 1fr; }
  .wizard-aside { display: none; }
  .wizard-content { min-height: min(650px,calc(100dvh - 30px)); padding: 60px 22px 22px; }
  .wizard-progress { display: block; margin-bottom: 24px; }
  .wizard-progress > span { color: #8a737c; font-size: 10px; }
  .wizard-progress > div { height: 4px; margin-top: 7px; overflow: hidden; border-radius: 4px; background: #eadce1; }
  .wizard-progress i { display: block; width: 20%; height: 100%; background: var(--pink); transition: width .3s; }
  .choice-grid { grid-template-columns: 1fr; }
  .choice-card { min-height: 76px; }
  .wizard-fields { grid-template-columns: 1fr; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-media { min-height: 430px; }
  .detail-copy { padding: 25px; }
  .create-types { grid-template-columns: repeat(2,1fr); }
  .composer-shell { padding: 54px 20px 22px; }
  .composer-options { grid-template-columns: 1fr; }
  .toast-region { left: 12px; right: 12px; bottom: 86px; }
  .toast { min-width: 0; max-width: none; }
}
@media (max-width: 460px) {
  .age-gate { padding: 0; }
  .age-entry { min-height: 100dvh; padding: 15px 14px 18px; border-width: 0; border-radius: 0; }
  .age-badge { width: 40px; height: 40px; font-size: 12px; }
  .age-brand strong { font-size: 16px; }
  .age-entry-copy { margin: 8px auto 13px; }
  .age-entry-copy .overline { margin-bottom: 4px; font-size: 9px; }
  .age-entry-copy h1 { font-size: 32px; }
  .age-entry-copy > p:last-child { margin-top: 7px; font-size: 11px; }
  .interest-grid { gap: 8px; }
  .interest-card { height: 151px; border-radius: 15px; }
  .interest-card > span { left: 12px; right: 38px; bottom: 11px; }
  .interest-card small { font-size: 7px; }
  .interest-card strong { font-size: 18px; }
  .interest-card > i { right: 10px; bottom: 11px; width: 25px; height: 25px; }
  .age-interest-error { margin-top: 7px; font-size: 11px; }
  .age-consent { margin-top: 13px; gap: 5px; }
  .age-consent .btn { min-height: 49px; font-size: 13px; }
  .age-consent > p, .age-leave { font-size: 9px; }
  .mobile-brand { display: none; }
  .global-search { height: 40px; }
  .top-actions > .icon-button { display: none; }
  .media-grid { grid-template-columns: 1fr 1fr; }
  .profile-grid { grid-template-columns: 1fr 1fr; }
  .profile-image .content-tag { top: 7px; left: 7px; }
  .profile-online { display: none; }
  .profile-like { width: 36px; height: 36px; right: 8px; bottom: 8px; }
  .profile-body h3 { font-size: 13px; }
  .detail-media { min-height: 360px; }
  .create-types { gap: 7px; }
}

@media (max-height: 780px) and (min-width: 761px) {
  .age-entry { padding-block: 18px; }
  .age-entry-copy { margin-block: 6px 12px; }
  .age-entry-copy h1 { font-size: 38px; }
  .interest-card { height: 220px; }
  .age-consent { margin-top: 14px; }
}

@keyframes gateIn { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes agePulse { 0%,100% { transform: scale(.96); opacity: .5; } 50% { transform: scale(1.04); opacity: 1; } }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { *,*:before,*:after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

/* Member profiles, publishing and private conversations */
.form-error { color: #ffa0b5; overflow-wrap: anywhere; }
.btn:disabled,button:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.profile-photo-setting { display:flex; gap:24px; align-items:center; padding:20px; background:var(--surface-2); border:1px solid var(--line); border-radius:18px; }
.profile-photo-preview,.my-profile-portrait { width:112px; height:112px; flex:0 0 auto; overflow:hidden; border-radius:28px; background:var(--wine); }
.profile-photo-preview img,.my-profile-portrait img { width:100%; height:100%; object-fit:cover; }
.profile-initials { display:grid; place-items:center; width:100%; height:100%; font-size:38px; font-weight:800; }
.profile-photo-setting h3 { margin:0 0 8px; }
.profile-photo-setting input { max-width:100%; display:block; margin:10px 0; font-size:12px; }
.profile-photo-setting small,.profile-fields small { display:block; color:var(--muted); font-size:12px; }
.profile-photo-label { color:var(--pink-2); font-weight:750; cursor:pointer; }
.profile-fixed { background:rgba(255,255,255,.025); border:1px solid var(--line); border-radius:16px; padding:18px; }
.profile-fixed h3,.profile-fixed p { margin:0 0 8px; }
.profile-fixed p { color:var(--muted); font-size:13px; }
.profile-fixed dl { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin:16px 0 0; }
.profile-fixed dt,.profile-facts dt { color:var(--muted); font-size:12px; }
.profile-fixed dd,.profile-facts dd { margin:4px 0 0; font-weight:750; overflow-wrap:anywhere; }
.profile-fields,.my-profile-details { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.my-profile-hero { display:flex; gap:26px; align-items:center; padding:30px; margin-bottom:20px; background:radial-gradient(at 0 0,rgba(125,27,67,.4),transparent 65%),var(--surface); }
.profile-detail-title h2 { margin:0; font-size:32px; }.profile-detail-title small { color:var(--muted); font-size:22px; }
.profile-handle { color:var(--muted); }.profile-bio,.classified-description { white-space:pre-wrap; overflow-wrap:anywhere; }
.profile-facts { display:flex; gap:28px; flex-wrap:wrap; }.profile-quick-actions,.detail-actions { display:flex; gap:10px; flex-wrap:wrap; margin:20px 0; }
.account-avatar img,.account-panel-avatar img { width:100%; height:100%; object-fit:cover; border-radius:inherit; }
.member-grid,.ads-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.member-card { overflow:hidden; }.member-card-open { display:flex; width:100%; gap:16px; align-items:center; text-align:left; padding:22px; border:0; background:transparent; cursor:pointer; }
.member-card-open:hover { background:rgba(255,255,255,.035); }.member-card h3 { margin:0 0 4px; font-size:18px; }.member-card h3 small { color:var(--muted); }.member-card p { margin:5px 0; color:var(--muted); font-size:13px; }
.member-photo,.mini-avatar,.member-detail-photo { display:grid; place-items:center; flex:0 0 auto; width:68px; height:68px; border-radius:20px; object-fit:cover; background:linear-gradient(140deg,var(--wine-2),var(--surface-2)); font-weight:800; font-size:25px; }
.mini-avatar { width:36px; height:36px; border-radius:12px; font-size:14px; }.member-detail-photo { width:112px; height:112px; font-size:38px; border-radius:28px; }
.member-presence { color:var(--muted); font-size:12px; }.member-presence.is-online { color:var(--green); }
.people-search { display:flex; gap:10px; margin:0 0 22px; }.people-search input { min-width:0; flex:1; border:1px solid var(--line); background:var(--surface); color:var(--text); padding:12px 16px; border-radius:14px; }
.list-pagination { display:flex; justify-content:center; align-items:center; gap:16px; margin:26px 0; font-size:13px; }
.member-detail { padding:32px; }.member-detail>header { display:flex; gap:22px; align-items:center; }.member-detail h2 { margin:7px 0; }.member-detail h3 { margin-top:28px; }.member-detail>header p { color:var(--muted); margin:0 0 8px; }
.social-post-grid { display:grid; gap:18px; margin-bottom:18px; }.social-post { overflow:hidden; }.social-post>header,.social-post>footer { display:flex; flex-wrap:wrap; align-items:center; gap:14px; padding:16px 20px; }.social-post>header { justify-content:space-between; }.social-post small { color:var(--muted); }
.social-author { display:inline-flex; align-items:center; gap:10px; background:none; color:var(--text); border:0; text-align:left; cursor:pointer; padding:0; }.social-author strong { overflow-wrap:anywhere; }
.social-post-open { display:block; position:relative; width:100%; text-align:left; border:0; padding:0; background:none; cursor:pointer; }.social-post-open img,.social-post-open video { width:100%; max-height:420px; object-fit:cover; }.social-post-open h3 { margin:18px 20px 8px; }.social-post-open p { margin:0 20px 18px; color:var(--muted); overflow-wrap:anywhere; white-space:pre-wrap; }
.social-play { position:absolute; top:35%; left:45%; font-size:48px; }.social-heart.is-active { color:var(--pink); }.social-detail-media { width:100%; max-height:65vh; object-fit:contain; background:#090408; }
.comment-author { border:0; background:none; padding:0; font-weight:750; cursor:pointer; }.comment-list { max-height:420px; overflow:auto; }.comment { display:flex; gap:12px; padding:16px 0; border-bottom:1px solid var(--line); }.comment>div { min-width:0; }.comment p { margin:6px 0; white-space:pre-wrap; overflow-wrap:anywhere; }.comment small { color:var(--muted); }
.classified-card { overflow:hidden; }.classified-media { width:100%; height:220px; object-fit:cover; }.classified-body { padding:22px; }.classified-body h2 { font-size:23px; overflow-wrap:anywhere; }.classified-author { display:flex; gap:10px; align-items:center; flex-wrap:wrap; margin:22px 0; }.classified-author img,.classified-author .member-avatar { width:38px; height:38px; border-radius:12px; object-fit:cover; font-size:14px; }.classified-author small { display:block; color:var(--muted); }.classified-author b { margin-left:auto; font-size:13px; }.classified-contact { border-top:1px solid var(--line); padding-top:14px; overflow-wrap:anywhere; }.classified-contact small { display:block; color:var(--muted); }.media-stats { flex-wrap:wrap; }.media-ad-button { font-size:12px; }.publishing-limit { color:var(--pink-2); background:rgba(255,64,111,.07); padding:14px; border-radius:12px; font-size:13px; }
.stats-summary { display:grid; grid-template-columns:1fr 1fr; gap:18px; }.stats-summary section { padding:24px; }.stats-summary strong { display:block; color:var(--pink-2); font-size:38px; }.stats-summary span { color:var(--muted); }.stats-list { padding:8px 22px; }.stats-row { display:grid; grid-template-columns:1fr 1fr auto; align-items:center; gap:16px; padding:18px 0; border-bottom:1px solid var(--line); }.stats-row:last-child { border:0; }.stats-row time { color:var(--muted); font-size:12px; }
.direct-messages { display:grid; grid-template-columns:minmax(220px,.75fr) minmax(0,2fr); gap:18px; align-items:start; }.dm-threads { overflow:hidden; }.dm-thread { display:flex; align-items:center; gap:12px; width:100%; text-align:left; background:none; padding:18px; border:0; border-bottom:1px solid var(--line); cursor:pointer; }.dm-thread:hover,.dm-thread.is-active { background:var(--surface-3); }.dm-thread span:not(.mini-avatar) { min-width:0; flex:1; }.dm-thread strong,.dm-thread small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.dm-thread small { color:var(--muted); font-size:12px; }.dm-thread>b { background:var(--pink); border-radius:100px; padding:2px 7px; font-size:11px; }
.dm-conversation { overflow:hidden; min-width:0; }.dm-header { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:20px; border-bottom:1px solid var(--line); }.dm-message-list { display:flex; flex-direction:column; gap:14px; height:420px; overflow:auto; padding:20px; overscroll-behavior:contain; }.dm-bubble { align-self:flex-start; max-width:85%; min-width:80px; background:var(--surface-3); border:1px solid var(--line); border-radius:16px 16px 16px 4px; padding:12px; overflow-wrap:anywhere; }.dm-bubble.is-mine { align-self:flex-end; background:#482035; border-radius:16px 16px 4px 16px; }.dm-bubble p { margin:0 0 5px; white-space:pre-wrap; }.dm-bubble time { display:block; text-align:right; color:var(--muted); font-size:10px; margin-top:5px; }.dm-bubble img,.dm-bubble video { max-width:100%; max-height:280px; border-radius:9px; }.dm-bubble audio { max-width:100%; width:260px; }
.dm-compose { padding:18px; border-top:1px solid var(--line); }.dm-compose textarea { resize:vertical; width:100%; background:var(--bg-2); border:1px solid var(--line); color:var(--text); border-radius:12px; padding:12px; }.dm-compose-actions { display:flex; flex-wrap:wrap; gap:8px; margin:12px 0; }.dm-compose small { color:var(--muted); font-size:11px; }.dm-file-label { position:relative; overflow:hidden; }.dm-file-label input { position:absolute; inset:0; opacity:0; width:100%; cursor:pointer; }.dm-attachment-preview { display:flex; flex-wrap:wrap; align-items:center; gap:12px; margin-top:12px; }.dm-attachment-preview img,.dm-attachment-preview video { max-width:150px; max-height:100px; border-radius:10px; }.dm-attachment-preview audio { max-width:100%; }.dm-attachment-preview span { overflow-wrap:anywhere; }
@media(max-width:1250px) { .member-grid,.ads-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:700px) { .member-grid,.ads-grid,.my-profile-details,.direct-messages { grid-template-columns:1fr; }.profile-fields { gap:14px; }.profile-photo-setting { padding:16px; gap:16px; align-items:flex-start; }.profile-photo-preview { width:76px; height:76px; border-radius:20px; }.profile-fixed dl { grid-template-columns:1fr; }.my-profile-hero { padding:22px; gap:18px; }.my-profile-portrait { width:80px; height:80px; border-radius:20px; }.profile-detail-title h2 { font-size:25px; }.member-detail { padding:22px; }.member-detail>header { gap:16px; }.member-detail-photo { width:80px; height:80px; border-radius:20px; }.stats-row { grid-template-columns:1fr; gap:8px; }.stats-summary section { padding:18px; }.list-pagination { gap:8px; }.list-pagination .btn { padding-inline:10px; font-size:12px; }.dm-threads { max-height:200px; overflow:auto; }.dm-message-list { height:360px; padding:12px; }.dm-compose { padding:12px; }.dm-compose-actions .btn { padding-inline:10px; font-size:12px; }.dm-bubble { max-width:94%; }.profile-photo-setting>div:last-child { min-width:0; } }
@media(max-width:380px) { .profile-fields { grid-template-columns:1fr; }.profile-photo-setting { flex-direction:column; }.member-detail>header { align-items:flex-start; }.member-detail-photo { width:65px; height:65px; }.member-detail h2 { font-size:24px; } }

[hidden] { display:none !important; }
#accountAvatar { overflow:hidden; }
#accountAvatar img,.account-summary>span img { width:100%; height:100%; object-fit:cover; border-radius:inherit; }
.account-summary>span { flex-shrink:0; overflow:hidden; }

#profileForm,.profile-fields>.field { min-width:0; }
#profileForm input,#profileForm select,#profileForm textarea { min-width:0; max-width:100%; }
#profilePhoto { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); }
.profile-photo-label { display:inline-flex; padding:8px 0; }
@media(max-width:700px) { .profile-photo-setting { flex-direction:column; }.profile-fields { grid-template-columns:1fr; }.profile-photo-setting>div { max-width:100%; }.profile-photo-setting h3 { overflow-wrap:anywhere; } }

@media(max-width:760px) { .account-chevron { display:none; } #accountAvatar { flex:0 0 36px; } }

.member-card-open>div { min-width:0; }
.member-card h3 { overflow-wrap:anywhere; }

/* Profile identity colours and direct photo editing */
.profile-name.role-woman { color:#ff6268; }
.profile-name.role-man { color:#70b7ff; }
.profile-name.role-couple { color:#ff83c8; }
.profile-name.role-other { color:inherit; }
.profile-photo-control { flex:0 0 auto; }
.profile-photo-button { position:relative; padding:0; border:1px solid var(--line); color:var(--text); cursor:pointer; display:block; }
.profile-photo-overlay { position:absolute; inset:auto 0 0; min-height:38px; padding:8px 5px; display:flex; align-items:center; justify-content:center; gap:5px; font-size:11px; font-weight:750; background:rgba(12,5,10,.88); color:#fff; opacity:0; transform:translateY(8px); transition:opacity .18s,transform .18s; }
.profile-photo-button:hover .profile-photo-overlay,.profile-photo-button:focus-visible .profile-photo-overlay,.profile-photo-overlay.is-visible { opacity:1; transform:none; }
@media(hover:none) { .profile-photo-overlay { opacity:1; transform:none; } }
/* Immediate uploads: the first photo is the cover, each file has its own state. */
.composer-uploads { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.upload-summary { margin:0; color:var(--muted); font-size:13px; }
.upload-item { border:1px solid var(--line); border-radius:13px; padding:8px; background:var(--surface-2); min-width:0; }
.upload-preview { position:relative; aspect-ratio:1; border-radius:8px; overflow:hidden; background:var(--bg); }
.upload-preview img,.upload-preview video { width:100%; height:100%; object-fit:cover; }
.upload-preview>span { position:absolute; bottom:5px; left:5px; padding:2px 7px; border-radius:6px; background:rgba(0,0,0,.7); color:#fff; font-size:10px; }
.upload-remove { position:absolute; top:5px; right:5px; display:grid; place-items:center; width:30px; height:30px; padding:0; border:1px solid rgba(255,255,255,.25); border-radius:50%; background:rgba(10,4,7,.85); cursor:pointer; }
.upload-item>strong { display:block; font-size:11px; margin:8px 0 4px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.upload-item progress { width:100%; height:6px; display:block; accent-color:var(--green); }
.upload-state { display:block; color:var(--muted); font-size:11px; margin-top:6px; overflow-wrap:anywhere; }
.upload-item.has-error { border-color:var(--pink); }.upload-item.has-error .upload-state { color:#ff9dad; }.upload-item .btn { padding:6px; min-height:32px; font-size:11px; width:100%; margin-top:8px; }
.upload-zone:focus-within { outline:2px solid var(--pink-2); outline-offset:3px; }
.upload-zone input { display:block; position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }
.album-stage { background:#090408; }.album-navigation { display:flex; align-items:center; justify-content:center; gap:24px; padding:12px; }.album-navigation span { color:var(--muted); font-size:13px; }
.album-thumbnails { display:flex; gap:8px; padding:12px 18px; overflow-x:auto; background:var(--bg-2); }
.album-thumbnails button { flex:0 0 64px; width:64px; height:64px; border:2px solid transparent; padding:0; border-radius:10px; overflow:hidden; cursor:pointer; background:var(--surface); }
.album-thumbnails button.is-active { border-color:var(--pink); }.album-thumbnails img { width:100%; height:100%; object-fit:cover; }
.album-count-label { display:block; margin:0 20px 10px; font-size:12px; color:var(--pink-2); }
@media(max-width:600px) { .composer-uploads { grid-template-columns:repeat(2,minmax(0,1fr)); }.profile-photo-overlay { font-size:10px; gap:3px; }.profile-photo-overlay .ui-icon { width:12px; }.album-thumbnails button { flex-basis:54px; width:54px; height:54px; } }

/* Album order: drag the preview with a mouse or finger, or use the keyboard. */
.upload-order-hint { margin:0; color:var(--muted); font-size:12px; line-height:1.6; }
#composerForm[data-type="album"] .upload-preview { touch-action:none; user-select:none; cursor:grab; }
#composerForm[data-type="album"] .upload-preview img { -webkit-user-drag:none; }
#composerForm[data-type="album"] .upload-preview img:focus-visible { outline:3px solid var(--pink-2); outline-offset:-3px; border-radius:8px; }
#composerForm[data-submitting="1"] .upload-preview { cursor:default; }
.upload-item.is-dragging { opacity:.45; }
.upload-item.is-drop-target { outline:3px solid var(--pink-2); outline-offset:2px; }
.upload-drag-ghost { position:fixed; width:80px; height:80px; object-fit:cover; border:2px solid var(--pink-2); border-radius:10px; pointer-events:none; z-index:20; box-shadow:0 8px 24px #0008; opacity:.9; }

/* Own media, album privacy and confirmed friends. */
.my-media-section { margin-top:32px; }
.my-media-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
.my-media-grid .social-post-open>img,.my-media-grid .social-post-open>video { max-height:320px; object-fit:cover; }
.media-visibility { margin:12px 20px 0; color:var(--pink-2); font-size:12px; }
.media-delete { color:#ff9dad; }
#mediaSettingsForm { margin-bottom:24px; }
.friendship-actions { display:flex; align-items:center; flex-wrap:wrap; gap:10px; margin:16px 0; }
.friendship-actions>span { font-size:13px; color:var(--muted); }
.friends-section { margin:28px 0; }.friends-section h2 { font-size:23px; }
.friends-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.friend-card { padding:20px; min-width:0; }.friend-card>p { font-size:13px; color:var(--muted); }.friend-card .social-author { max-width:100%; }.friend-card strong { overflow-wrap:anywhere; }
.community-photo-card .media-count,.community-video-card .media-count,.post-media-likes { display:flex; align-items:center; gap:8px; padding:10px 14px; font-size:18px; font-weight:800; color:#fff; background:rgba(15,7,11,.8); border:1px solid rgba(255,255,255,.18); }
.community-photo-card .media-count .ui-icon,.community-video-card .media-count .ui-icon,.post-media-likes .ui-icon { width:23px; height:23px; color:var(--pink-2); }
.social-post-open { position:relative; }.post-media-likes { position:absolute; top:14px; right:14px; border-radius:100px; }
@media(max-width:600px) { .my-media-grid,.friends-grid { grid-template-columns:1fr; }.my-media-grid .social-post>footer { gap:12px; padding:14px; } }

/* Persistent friend notifications: the bell stays available on mobile too. */
body.is-authenticated .top-actions>.icon-button[data-panel="notificationsPanel"] { display:grid; position:relative; flex-shrink:0; }
.notification-badge { position:absolute; top:-4px; right:-4px; min-width:19px; height:19px; padding:0 4px; display:grid; place-items:center; border-radius:99px; background:#e93857; color:#fff; border:2px solid var(--bg); font-size:10px; font-weight:800; }
.notification-badge[hidden] { display:none; }
[data-panel="notificationsPanel"].has-unread>.ui-icon { color:var(--pink-2); }
.notification-item.is-unread { background:rgba(255,64,111,.07); }
.notification-author { padding:0; border:0; background:none; text-align:left; cursor:pointer; font-size:14px; font-weight:750; overflow-wrap:anywhere; }
.notification-item .friendship-actions { gap:7px; margin:12px 0 0; }
.notification-item .friendship-actions .btn { min-height:38px; padding:8px 10px; font-size:12px; }
.notifications-friends { margin:18px; width:calc(100% - 36px); }
@media(max-width:600px) { .top-actions { gap:7px; }.global-search { min-width:0; } }

/* People cards show just a square portrait, optional online badge and name. */
.member-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
.member-card-open { display:block; padding:0; }
.member-card-photo { position:relative; width:100%; aspect-ratio:1; overflow:hidden; }
.member-card-photo>.member-photo { width:100%; height:100%; border-radius:0; object-fit:cover; font-size:48px; }
.member-card h3 { margin:0; padding:14px; font-size:16px; line-height:1.35; overflow-wrap:anywhere; }
.member-card-online { position:absolute; top:10px; right:10px; }
.member-card-online .member-presence { padding:5px 9px; border-radius:99px; background:rgba(8,12,10,.82); color:#81edb7; font-size:11px; }
@media(max-width:1250px) { .member-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:700px) { .member-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }.member-card h3 { padding:12px; font-size:14px; }.member-card-online { top:8px; right:8px; } }

.people-filter-summary { display:flex; align-items:center; flex-wrap:wrap; gap:12px; font-size:13px; color:var(--pink-2); margin-bottom:20px; }
.filter-age-note { margin:0; font-size:12px; line-height:1.5; }

/* Legal documents and account lifecycle */
.account-links .account-legal-link{min-height:47px;padding:10px 11px;border-radius:12px;display:flex;align-items:center;gap:11px;color:var(--muted);text-decoration:none;font-size:13px;line-height:1.5}
.account-links .account-legal-link span{width:24px;flex-shrink:0;color:var(--pink-2)}
.account-links .account-legal-link:hover{background:rgba(255,255,255,.05);color:#fff}
.account-legal-link:focus-visible,.entry-legal a:focus-visible{outline:2px solid var(--pink-2);outline-offset:3px}
.entry-legal a,.registration-legal a,.account-status a{color:var(--pink-2);text-underline-offset:3px}
.registration-legal{font-size:12px;line-height:1.7;margin-top:15px}
.account-danger{margin-top:35px;padding-top:24px;border-top:1px solid var(--line)}
.account-danger p,.account-status p{color:var(--muted);line-height:1.7}.account-status{max-width:750px;padding:32px}.account-status .btn{margin:10px 10px 20px 0}.account-status h1{font-size:30px}
.deletion-confirm{display:flex;align-items:flex-start;gap:12px;line-height:1.6;font-size:13px}.deletion-confirm input{margin-top:4px;flex-shrink:0}
.my-reports{padding:25px;margin-top:28px}.my-reports article{padding:18px 0;border-bottom:1px solid var(--line)}.my-reports p{color:var(--muted);line-height:1.6;overflow-wrap:anywhere}

.recovery-modal{width:min(520px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow-y:auto}.recovery-modal .auth-form{padding:36px 24px}.recovery-modal fieldset{border:0;padding:0;margin:0;min-width:0;display:grid;gap:10px}.recovery-modal [hidden]{display:none!important}.recovery-modal input{width:100%;min-width:0;box-sizing:border-box}.recovery-modal small{color:var(--text-muted)}

/* Private conversations: list first, then a mobile screen sized to the visible viewport. */
.dm-back{display:none}
.dm-thread span.dm-unread{flex:0 0 auto;display:grid;place-items:center;min-width:22px;height:22px;padding:0 6px;border-radius:50px;background:var(--pink);color:#fff;font-size:11px}
.dm-thread span.dm-unread-count{flex:none}
@media(max-width:700px){
  .messages-page{animation:none}
  .messages-page .page-head p{display:none}
  .messages-page .dm-threads{max-height:none;overflow:visible}
  .messages-page .dm-thread{min-height:80px;padding:16px 14px}
  .messages-page .dm-conversation{display:none}
  .dm-thread span.dm-unread{width:11px;min-width:11px;height:11px;padding:0;box-shadow:0 0 0 3px rgba(239,75,135,.12)}
  .dm-thread span.dm-unread-count{display:none}
  .mobile-dm-open{overflow:hidden;overscroll-behavior:none}
  .mobile-dm-open .topbar,.mobile-dm-open .mobile-tabbar,.mobile-dm-open .sidebar{display:none}
  .mobile-dm-open .app-view{padding:0;min-height:0}
  .mobile-dm-open .messages-page>.page-head,.mobile-dm-open .dm-threads{display:none}
  .mobile-dm-open .dm-conversation{display:flex;flex-direction:column;position:fixed;z-index:1000;inset:auto 0;top:var(--dm-top,0px);width:100%;height:var(--dm-height,100dvh);max-height:none;margin:0;border:0;border-radius:0;background:var(--bg);overflow:hidden}
  .mobile-dm-open .dm-header{flex:0 0 auto;display:grid;grid-template-columns:44px minmax(0,1fr) 44px;gap:0;padding:calc(8px + env(safe-area-inset-top,0px)) 8px 8px;min-height:60px}
  .mobile-dm-open .dm-back{display:grid;place-items:center;width:44px;height:44px;border:0;background:transparent;color:var(--text);cursor:pointer}
  .mobile-dm-open .dm-back .ui-icon{width:24px;height:24px}
  .mobile-dm-open .dm-header .social-author{grid-column:2;display:block;text-align:center;min-width:0;width:100%;padding:8px 0}
  .mobile-dm-open #dmPeerName{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:17px}
  .mobile-dm-open #dmPeerStatus{display:none}
  .mobile-dm-open #dmOlder{flex:0 0 auto;padding:6px;font-size:12px}
  .mobile-dm-open .dm-message-list{flex:1 1 0;min-height:0;height:auto;padding:14px 12px;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain}
  .mobile-dm-open .dm-compose{flex:0 0 auto;max-height:48%;overflow-y:auto;padding:10px 12px calc(10px + env(safe-area-inset-bottom,0px));background:var(--bg)}
  .mobile-dm-open .dm-compose textarea{font-size:16px;resize:none;min-height:44px;max-height:110px;box-sizing:border-box}
  .mobile-dm-open .dm-compose-actions{display:flex;flex-wrap:nowrap;gap:6px;margin:8px 0 0}
  .mobile-dm-open .dm-compose-actions .btn{min-height:40px;padding:8px;font-size:11px;white-space:nowrap}
  .mobile-dm-open .dm-compose-actions .btn:last-child{margin-left:auto}
  .mobile-dm-open .dm-compose>small{display:none}
  .mobile-dm-open .dm-compose .form-error:empty{display:none}
  .mobile-dm-open .dm-attachment-preview{margin-top:6px}
}

.dm-media-preview{position:relative;display:block;max-width:100%;padding:0;border:0;background:transparent;color:var(--text);cursor:pointer;border-radius:10px;overflow:hidden}
.dm-media-preview img,.dm-media-preview video{display:block;max-width:100%;object-fit:contain}
.dm-video-preview{min-width:160px;min-height:90px;background:#080508}
.dm-video-preview video{pointer-events:none}
.dm-video-preview>span{position:absolute;inset:auto 8px 8px;display:flex;justify-content:center;align-items:center;gap:6px;padding:8px;border-radius:9px;background:rgba(0,0,0,.75);font-size:12px}
.dm-media-modal{width:min(1200px,96vw);max-width:96vw;max-height:96dvh;padding:52px 12px 12px;background:#080508;border:1px solid var(--line);overflow:hidden}
.dm-media-modal::backdrop{background:rgba(0,0,0,.88)}
.dm-media-modal .modal-close{top:8px;right:8px;width:40px;height:40px;border-radius:50%;background:#21181d}
#dmMediaBody{display:flex;align-items:center;justify-content:center;min-height:100px}
#dmMediaBody img,#dmMediaBody video{display:block;width:auto;height:auto;max-width:100%;max-height:calc(96dvh - 76px);object-fit:contain}
#dmMediaBody video{width:100%;background:#000}
@media(max-width:700px){
  .dm-media-modal{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;padding:calc(58px + env(safe-area-inset-top,0px)) 0 calc(12px + env(safe-area-inset-bottom,0px));border:0;border-radius:0}
  .dm-media-modal .modal-close{top:calc(8px + env(safe-area-inset-top,0px));right:calc(8px + env(safe-area-inset-right,0px))}
  #dmMediaBody{height:100%;width:100%}
  #dmMediaBody img,#dmMediaBody video{max-height:100%}
}

.dm-message-meta{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-top:6px}.dm-message-meta time{margin-top:0}.dm-delete{flex:0 0 auto;min-height:32px;padding:4px 2px;border:0;background:transparent;color:#e9aabb;font-size:11px;cursor:pointer}.dm-delete:hover{color:#fff;text-decoration:underline}.dm-delete:focus-visible{outline:2px solid var(--pink);outline-offset:3px}
