/* VYORA — identity, conversations and account surfaces.
   Uses the app's shared colour tokens so custom themes remain functional. */

/* Profile: a quiet cover, prominent identity and a clear action hierarchy. */
#pane-prof .v2-cover,
#main > .v2-cover {
  height: 184px;
  margin-bottom: 0;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 24px 24px 0 0;
  background:
    radial-gradient(ellipse at 85% 0%, color-mix(in srgb, var(--pri) 28%, transparent), transparent 62%),
    radial-gradient(ellipse at 10% 100%, color-mix(in srgb, var(--pri) 16%, transparent), transparent 62%),
    var(--vy-surface-2, var(--bg));
}
#pane-prof .v2-cover::after,
#main > .v2-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 65%, color-mix(in srgb, var(--card) 24%, transparent));
}
.v2-profile-card {
  padding: 26px !important;
  margin-top: -1px;
  margin-bottom: 18px;
  border-radius: 0 0 24px 24px;
  border-top: 0;
  box-shadow: var(--vy-shadow, 0 10px 32px rgb(20 24 40 / 4%));
}
.v2-profile-card.v5-profile-accent {
  box-shadow: inset 0 -2px 0 color-mix(in srgb, var(--v5-profile-accent, var(--pri)) 35%, transparent), var(--vy-shadow, 0 10px 32px rgb(20 24 40 / 4%));
}
.v2-profile-card .phead {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  align-items: start;
  gap: 18px 24px;
}
.v2-profile-card .phead > .av.lg {
  width: 104px;
  height: 104px;
  margin-top: -68px;
  border: 5px solid var(--card);
  box-shadow: 0 3px 12px rgb(20 24 40 / 8%);
  font-size: 36px;
}
.v2-profile-card .phead > div:not(.acts) { grid-column: 2; }
.v2-profile-card .phead h2 {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0 0 5px;
  white-space: normal;
  overflow-wrap: anywhere;
  font-size: clamp(24px, 3vw, 30px);
  line-height: 1.16;
  letter-spacing: -.045em;
  font-weight: 800;
}
.v2-profile-card .phead h2 > span { min-width: 0; }
.v2-profile-card .phead > div > .mut { font-size: 13px; line-height: 1.5; }
.v2-profile-card .phead p {
  max-width: 48ch;
  margin: 15px 0 10px;
  font-size: 14px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.v2-profile-card .phead p:empty { display: none; }
.v2-profile-card .phead a { font-size: 13px; font-weight: 650; overflow-wrap: anywhere; }
.v2-profile-card .creator-badge {
  display: inline-flex;
  padding: 3px 8px;
  margin-left: 5px;
  border: 0;
  background: var(--vy-surface-2, var(--bg));
  color: var(--mut);
  font-size: 10px;
  font-weight: 700;
}
.v2-profile-card .stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 20px;
  font-size: 12px;
  color: var(--mut);
}
.v2-profile-card .stats b {
  display: inline-block;
  margin-right: 3px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.03em;
}
.v2-profile-card .acts {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  padding: 18px 2px 10px;
  border-top: 1px solid var(--line);
  width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 2px;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--mut) 40%, var(--line)) transparent;
  -webkit-overflow-scrolling: touch;
}
.v2-profile-card .acts::-webkit-scrollbar { height: 5px; }
.v2-profile-card .acts::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--mut) 40%, var(--line)); border-radius: 9px; }
.v2-profile-card .acts::-webkit-scrollbar-track { background: transparent; }
.v2-profile-card .acts button {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 10px 13px;
  border-radius: 11px;
  font-size: 11px;
  line-height: 1.25;
  font-weight: 700;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  scroll-snap-align: start;
}
.v2-profile-card .acts .ghost {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--mut);
}
.v2-profile-card .acts [data-a='edit'],
.v2-profile-card .acts [data-a='chat'] {
  color: var(--ink);
  background: var(--vy-surface-2, var(--bg));
  border-color: transparent;
}
.v2-profile-card .acts [data-a='follow'] {
  min-width: 115px;
  background: var(--vy-brand, var(--pri));
  color: #fff;
}
.v2-profile-card .acts .icon { width: 16px; height: 16px; }
.v2-profile-card .v8-status,
.v2-profile-card .v2-vibe {
  border: 0;
  padding: 6px 10px;
  background: color-mix(in srgb, var(--pri) 9%, var(--card));
  color: var(--pri);
  font-size: 11px;
  font-weight: 700;
}
.v3-livebar { gap: 10px; padding-bottom: 5px; margin-bottom: 16px; }
.v3-livecard {
  min-width: 148px;
  padding: 13px 15px;
  border-radius: 15px;
  border-color: var(--line);
  background: var(--card);
  box-shadow: none;
}
.v3-livecard small { color: var(--mut); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.v3-livecard b { margin-top: 5px; font-size: 13px; font-weight: 650; }
.v8-profile-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 18px; }
.v8-profile-links .v8-link-row { margin: 0; padding: 12px 14px; border-radius: 13px; color: var(--ink); }
.v8-profile-links .v8-link-row b { font-size: 12px; font-weight: 700; }
.v8-profile-links .v8-link-row span { margin-top: 3px; font-size: 10px; }
.v8-profile-links .v8-link-row .icon { width: 16px; height: 16px; color: var(--mut); }
.v7-profile-tabs {
  gap: 0;
  padding: 0;
  margin: 4px 0 20px;
  border-bottom: 1px solid var(--line);
  scroll-padding-inline: 8px;
}
.v7-profile-tabs button {
  min-height: 48px;
  padding: 13px 14px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--mut);
  font-size: 12px;
  font-weight: 650;
}
.v7-profile-tabs button.on { color: var(--pri); border-color: var(--pri); background: transparent; }

/* Authentication: spacious, confident and readable on small screens. */
#app.auth {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 440px);
  justify-content: center;
  align-content: center;
  gap: 28px;
  width: 100%;
  max-width: none;
  min-height: 100dvh;
  margin: 0;
  padding: max(32px, env(safe-area-inset-top)) 22px max(28px, env(safe-area-inset-bottom));
  background:
    radial-gradient(ellipse at 14% 10%, color-mix(in srgb, var(--pri) 8%, transparent), transparent 46%),
    radial-gradient(ellipse at 94% 85%, color-mix(in srgb, var(--pri) 5%, transparent), transparent 42%),
    var(--bg);
}
#app.auth > .card.form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 440px;
  margin: 0;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
  box-shadow: var(--vy-shadow, 0 18px 50px rgb(20 24 40 / 6%));
}
#app.auth .logo { margin-bottom: 3px; padding: 0; font-size: 22px; letter-spacing: -.035em; }
#app.auth .logo svg { width: 38px; height: 38px; }
#app.auth .card.form > p.mut { margin: -3px 0 4px; color: var(--mut); font-size: 14px; line-height: 1.6; }
#app.auth .card.form > h2 { margin: 5px 0 -8px; font-size: 26px; letter-spacing: -.045em; line-height: 1.2; }
#app.auth .card.form > div:first-child h2 { margin: 0 0 10px; font-size: 28px; font-weight: 800; letter-spacing: -.045em; line-height: 1.16; }
#app.auth .card.form > div:first-child p.mut { margin: 0 0 4px; font-size: 13px; line-height: 1.6; }
#app.auth .form label { gap: 8px; color: var(--ink); font-size: 12px; font-weight: 700; }
#app.auth input {
  min-height: 50px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--vy-surface-2, var(--bg));
  font-size: 15px;
  font-weight: 450;
}
#app.auth input:focus { border-color: var(--pri); background: var(--card); }
#app.auth #ok { min-height: 50px; margin-top: 4px; padding: 12px; border-radius: 12px; font-size: 14px; font-weight: 750; box-shadow: 0 5px 14px color-mix(in srgb, var(--pri) 16%, transparent); }
#app.auth #sw { min-height: 44px; margin-top: -11px; justify-content: center; font-size: 12px; color: var(--pri); }
#app.auth .ar-footer { grid-column: 1; display: block; padding: 0; color: var(--mut); font-size: 11px; letter-spacing: .01em; }
.vy-auth-intro { text-align: center; width: 100%; max-width: 440px; }
.vy-auth-intro .logo { justify-content: center; margin-bottom: 24px; }
.vy-auth-intro h1 { margin: 8px 0 12px; font-size: clamp(32px, 5vw, 48px); letter-spacing: -.065em; line-height: 1.05; font-weight: 800; }
.vy-auth-intro p { max-width: 34ch; margin: 0 auto; color: var(--mut); font-size: 14px; line-height: 1.7; }
.vy-auth-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border-radius: 8px; color: var(--pri); background: color-mix(in srgb, var(--pri) 8%, transparent); font-size: 10px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.vy-auth-signature { margin-top: 28px; color: var(--mut); font-size: 11px; font-weight: 600; letter-spacing: .01em; }

/* Inbox and open conversation preserve the existing responsive lifecycle. */
body[data-route='msg'] #thread-search {
  height: 48px;
  padding: 13px 17px;
  margin-bottom: 18px !important;
  border-radius: 14px;
  background: var(--vy-surface-2, var(--bg));
  border-color: var(--line);
  font-size: 13px;
}
.msg-container { grid-template-columns: 272px minmax(0, 1fr); min-height: 600px; border-radius: 20px; box-shadow: var(--vy-shadow, 0 10px 32px rgb(20 24 40 / 4%)); }
.msg-sidebar { max-height: 640px; padding: 7px; background: var(--card); }
.msg-pane { height: 640px; background: var(--vy-surface-2, var(--bg)); }
.msg-thread-item {
  min-height: 79px;
  padding: 14px 12px;
  gap: 12px;
  border: 0;
  border-radius: 13px;
  transition: background .15s ease;
}
.msg-thread-item + .msg-thread-item { margin-top: 3px; }
.msg-thread-item:hover { background: var(--vy-surface-2, var(--bg)); }
.msg-thread-item.active { background: color-mix(in srgb, var(--pri) 9%, var(--card)); }
.msg-thread-item > .av,
.msg-thread-item > .av.sm { width: 46px; height: 46px; font-size: 16px; border: 1px solid color-mix(in srgb, var(--line) 55%, transparent); }
.msg-thread-item b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px !important; line-height: 1.4; font-weight: 750; }
.msg-thread-item > div > div:first-child > span { flex: 0 0 auto; white-space: nowrap; margin-left: 8px; }
.msg-thread-item .mut { font-size: 11px !important; line-height: 1.5; margin-top: 3px; }
.msg-thread-item .bd { min-width: 20px; height: 20px; padding: 0 6px; display: grid; place-items: center; font-size: 10px; background: var(--vy-brand, var(--pri)); }
.chat-header { min-height: 76px; padding: 14px 18px; gap: 12px; border-bottom-color: var(--line); background: var(--card); }
.chat-header > .av.sm { width: 40px; height: 40px; font-size: 15px; }
.chat-header b { font-size: 14px; font-weight: 750; }
.chat-header .mut { margin-top: 2px; font-size: 11px !important; }
.chat-header > button:last-child { background: var(--vy-surface-2, var(--bg)); width: 38px; height: 38px; }
.chat-header > button:last-child .icon { width: 18px; height: 18px; }
#chat { padding: 24px 20px; gap: 9px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
#chat .bub { padding: 12px 15px; border: 1px solid var(--line); border-radius: 18px 18px 18px 5px; background: var(--card); font-size: 14px; line-height: 1.55; box-shadow: 0 2px 4px rgb(20 24 40 / 2%); }
#chat .bub.me { border-color: transparent; border-radius: 18px 18px 5px 18px; background: var(--vy-brand, var(--pri)); color: #fff; box-shadow: none; }
#chat .reply-preview { padding: 7px 9px; border-radius: 6px; background: color-mix(in srgb, currentColor 7%, transparent); }
#chat .chat-tools button { border-radius: 8px; }
#chat .chat-tools button:hover { background: var(--vy-surface-2, var(--bg)); color: var(--ink); }
.chat-composer { padding: 12px 14px max(12px, env(safe-area-inset-bottom)); gap: 6px; background: var(--card); }
.chat-composer #mt { min-width: 0; min-height: 46px; padding: 12px 15px; border-radius: 14px; background: var(--vy-surface-2, var(--bg)); border-color: var(--line); font-size: 14px; }
.chat-composer .chat-attach,
.chat-composer .chat-send { width: 42px; height: 44px; min-height: 44px; border-radius: 13px; }
.chat-composer .chat-attach:hover { background: var(--vy-surface-2, var(--bg)); color: var(--ink); }
.chat-composer .chat-send { background: var(--vy-brand, var(--pri)); }
.chat-composer .icon { width: 19px; height: 19px; }
.chat-replying { padding: 11px 16px; color: var(--mut); background: var(--card); }
.v8-typing { margin-top: 3px; color: var(--pri); font-size: 10px; }

/* Discovery and account: dense enough to scan, comfortable to touch. */
#pane-exp > form.row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-top: 0; }
#pane-exp #q,
body[data-route='searchall'] #v3q { min-height: 50px; border-radius: 14px; padding: 13px 16px; background: var(--card); font-size: 14px; }
#pane-exp #sbtn,
body[data-route='searchall'] [data-a='v3search'] { min-height: 50px; padding: 12px 19px; border-radius: 13px; font-size: 12px; }
#pane-exp > .pill-row { gap: 6px; padding-top: 5px; padding-bottom: 8px; }
#pane-exp > .pill-row button { padding: 8px 12px; min-height: 34px; font-size: 11px; background: var(--card); border-color: var(--line); }
#pane-exp .v2-grid { gap: 12px; }
#pane-exp .v2-tile { min-height: 125px; padding: 18px; border-radius: 18px; background: var(--card); box-shadow: none; }
#pane-exp .v2-tile .tile-icon { width: 36px; height: 36px; border-radius: 11px; background: color-mix(in srgb, var(--pri) 8%, var(--card)); }
#pane-exp .v2-tile .tile-icon .icon { width: 18px; height: 18px; }
#pane-exp .v2-tile b { display: block; margin-top: 15px; font-size: 14px; font-weight: 750; }
#pane-exp .v2-tile small { display: block; margin-top: 3px; font-size: 11px; }
#list-exp > h3,
#v3-search-results > h3 { margin: 24px 3px 11px; font-size: 13px; font-weight: 750; letter-spacing: -.015em; }
#list-exp .person,
#v3-search-results .person,
body[data-route='not'] #main > .person,
body[data-route='closefriends'] .person {
  min-height: 80px;
  padding: 15px 17px;
  margin-bottom: 8px;
  gap: 12px;
  border-radius: 15px;
  box-shadow: none;
}
#list-exp .person b,
#v3-search-results .person b { font-size: 13px; font-weight: 750; }
#list-exp .person .mut,
#v3-search-results .person .mut { font-size: 11px; margin-top: 2px; }
#list-exp .person > button,
#v3-search-results .person > button { min-height: 36px; padding: 8px 14px; border-radius: 10px; font-size: 11px; }
body[data-route='searchall'] #main > .row:has(#v3q) { gap: 8px; }
body[data-route='searchall'] #main > .v3-tabs { gap: 6px; margin-top: 14px !important; padding-bottom: 15px; }
body[data-route='searchall'] #main > .v3-tabs button { padding: 8px 12px; min-height: 36px; border-radius: 9px; font-size: 11px; }
body[data-route='not'] #main > h2,
body[data-route='conf'] #main > h2 { margin: 4px 0 20px; font-size: 26px; line-height: 1.2; letter-spacing: -.045em; }
body[data-route='not'] #main > .person { color: var(--mut); font-size: 12px; line-height: 1.6; }
body[data-route='not'] #main > .person .av { width: 42px; height: 42px; font-size: 15px; }
body[data-route='not'] #main > .person b { display: inline; color: var(--ink); font-size: 13px; }
body[data-route='not'] #main > .person .mut { display: block; margin-top: 3px; font-size: 10px; }
body[data-route='conf'] #main > .card.form { gap: 0; padding: 6px !important; border-radius: 18px; margin-bottom: 18px; box-shadow: none; }
body[data-route='conf'] #main > .card.form > .ghost { min-height: 60px; padding: 15px 14px !important; gap: 13px; color: var(--ink); font-size: 13px; border-radius: 11px !important; border-bottom-color: var(--line); }
body[data-route='conf'] #main > .card.form > .ghost:hover { background: var(--vy-surface-2, var(--bg)); }
body[data-route='conf'] #main > .card.form > .ghost[data-a='out'] { color: var(--like); }
body[data-route='conf'] #main > .card.form > .ghost .icon { width: 19px; height: 19px; color: var(--mut); }
body[data-route='conf'] #main > .card.form > .ghost[data-a='out'] .icon { color: currentColor; }
body[data-route='privacy'] .v2-panel,
body[data-route='edit'] #main > .card.form,
body[data-route='profilecustom'] .v5-card,
body[data-route='profilelinks'] .v8-card { border-radius: 18px; padding: 22px; box-shadow: none; }
body[data-route='privacy'] .v2-panel.flush { padding: 0; }
body[data-route='privacy'] .v2-row { min-height: 82px; gap: 16px; padding: 18px 20px; }
body[data-route='privacy'] .v2-row b { font-size: 13px; font-weight: 750; }
body[data-route='privacy'] .v2-row .mut { margin-top: 4px; font-size: 11px; line-height: 1.5; }
body[data-route='privacy'] input[type='checkbox'] { accent-color: var(--pri); min-width: 22px; min-height: 22px; }
body[data-route='edit'] .form { gap: 20px; }
body[data-route='edit'] .form h2 { margin: 0 0 4px; font-size: 26px; letter-spacing: -.045em; }
body[data-route='edit'] .form label,
body[data-route='privacy'] .form label { color: var(--ink); font-size: 12px; font-weight: 650; gap: 8px; }
body[data-route='edit'] .form input:not([type='checkbox']),
body[data-route='edit'] .form textarea,
body[data-route='privacy'] .form input:not([type='checkbox']) { background: var(--vy-surface-2, var(--bg)); border-radius: 12px; padding: 13px 15px; font-size: 14px; }
body[data-route='edit'] .form input[type='file'] { padding: 10px; font-size: 11px; color: var(--mut); }
body[data-route='edit'] .form input[type='file']::file-selector-button { border: 0; border-radius: 8px; margin-right: 10px; padding: 8px 10px; color: var(--ink); background: var(--card); font: inherit; font-weight: 650; cursor: pointer; }
body[data-route='edit'] .form > button,
body[data-route='privacy'] .form > button { min-height: 46px; border-radius: 12px; font-size: 13px; }
.v8-follow-request { gap: 12px; padding: 15px 0; }
.v8-follow-request b { font-size: 13px; }
.v8-follow-request .mut { font-size: 11px; }
.v8-follow-request button { padding: 8px 11px; min-height: 36px; border-radius: 10px; font-size: 11px; }

/* Para Ti: the video remains the focus; every existing overlay stays usable. */
#pane-parati { position: relative; min-width: 0; }
#pane-parati > .v2-head { padding-right: 108px; }
#pane-parati > .v2-head > label { display: none; }
#pane-parati > .v7-parati-search-btn,
#pane-parati > .v7-parati-upload-btn {
  position: absolute;
  top: 12px;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--card);
  color: var(--ink);
}
#pane-parati > .v7-parati-search-btn { right: 54px; }
#pane-parati > .v7-parati-upload-btn { right: 0; background: var(--vy-brand, var(--pri)); border-color: transparent; color: #fff; }
#pane-parati > .v7-parati-search-btn .icon,
#pane-parati > .v7-parati-upload-btn .icon { width: 20px; height: 20px; }
#pane-parati > .v3-tabs { gap: 6px; padding: 0 0 18px; margin: 0; }
#pane-parati > .v3-tabs > button { min-height: 42px; padding: 10px 17px; border: 1px solid var(--line); border-radius: 11px; background: var(--card); color: var(--mut); font-size: 12px; }
#pane-parati > .v3-tabs > button.on { background: var(--soft); border-color: color-mix(in srgb, var(--pri) 24%, var(--line)); color: var(--pri); }
#pane-parati .v4-reels {
  width: min(100%, 440px);
  height: min(760px, calc(100dvh - 184px));
  min-height: 420px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #08090d;
  box-shadow: var(--vy-shadow-lg, 0 18px 50px rgb(0 0 0 / 14%));
  overscroll-behavior-y: contain;
}
#pane-parati .v4-reel { min-height: 0; border-radius: 0; background: #08090d; }
#pane-parati .v4-reel video { object-fit: cover; background: #08090d; }
#pane-parati .v4-reel-shade {
  background: linear-gradient(180deg, rgb(0 0 0 / 42%) 0%, rgb(0 0 0 / 8%) 24%, transparent 42%, rgb(0 0 0 / 8%) 58%, rgb(0 0 0 / 82%) 100%);
}
#pane-parati .v4-reel-top { top: 16px; left: 16px; right: 72px; }
#pane-parati .v4-reel-top > button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 3px !important;
  border: 1px solid rgb(255 255 255 / 24%);
  border-radius: 50%;
  background: rgb(0 0 0 / 18%);
}
#pane-parati .v4-reel-top .av.sm { width: 34px; height: 34px; border: 0; color: #fff; background: var(--vy-brand, var(--pri)); font-size: 13px; }
#pane-parati .v4-reel-sound {
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 13px;
  background: rgb(10 11 17 / 38%);
  color: #fff;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
#pane-parati .v4-reel-sound .icon { width: 20px; height: 20px; }
#pane-parati .v4-reel-copy {
  left: 20px;
  right: 83px;
  bottom: 23px;
  max-height: 35%;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgb(255 255 255 / 30%) transparent;
  color: #fff;
  text-shadow: 0 1px 5px rgb(0 0 0 / 60%);
}
#pane-parati .v4-reel-copy > div:first-child { min-width: 0; align-items: baseline !important; }
#pane-parati .v4-reel-copy b { min-width: 0; font-size: 14px; font-weight: 800; line-height: 1.4; overflow-wrap: anywhere; }
#pane-parati .v4-reel-copy p { margin: 8px 0 0; font-size: 12px; line-height: 1.65; overflow-wrap: anywhere; }
#pane-parati .v4-reel-copy a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
#pane-parati .v4-reel-copy > div:last-child:not(:first-child) { color: rgb(255 255 255 / 85%); font-size: 10px !important; }
#pane-parati .v4-reel-actions { right: 10px; bottom: 20px; gap: 8px; }
#pane-parati .v4-reel-actions button {
  width: 48px;
  height: 48px;
  min-height: 44px;
  padding: 5px 0;
  border: 1px solid rgb(255 255 255 / 11%);
  border-radius: 15px;
  background: rgb(10 11 17 / 32%);
  color: #fff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgb(0 0 0 / 8%);
}
#pane-parati .v4-reel-actions button .icon { width: 22px; height: 22px; }
#pane-parati .v4-reel-actions button span { font-size: 10px !important; line-height: 12px !important; }
#pane-parati .v4-reel-actions [data-a='savepost'].on { color: #d4c9ff; background: rgb(112 85 238 / 35%); }
#pane-parati .v4-reel-actions button:focus-visible,
#pane-parati .v4-reel-sound:focus-visible,
#pane-parati .v4-reel-top button:focus-visible { outline-color: #fff; outline-offset: 2px; }
#pane-parati .v4-reel-progress { padding: 0; }
#pane-parati .v4-progress { height: 3px; border-radius: 0; background: rgb(255 255 255 / 14%); }
#pane-parati .v4-progress > i { background: #fff; }
#pane-parati .v4-pause-indicator span { width: 64px; height: 64px; border: 1px solid rgb(255 255 255 / 16%); background: rgb(10 11 17 / 42%); font-size: 25px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
#pane-parati .v8-reel-hint { padding: 10px 14px; border: 1px solid rgb(255 255 255 / 16%); border-radius: 12px; background: rgb(10 11 17 / 60%); font-size: 11px; }
#pane-parati .v4-reel > .cms { padding: 20px !important; border: 0; border-radius: 22px 22px 0 0 !important; box-shadow: 0 -12px 45px rgb(0 0 0 / 20%); }
#pane-parati .v4-reels > .empty { margin: 16px; }

@media (min-width: 1000px) {
  #app.auth {
    grid-template-columns: minmax(340px, 450px) minmax(360px, 420px);
    gap: 28px clamp(64px, 8vw, 130px);
    padding: 64px 48px 32px;
  }
  #app.auth > .card.form { align-self: center; padding: 38px; border-radius: 26px; }
  #app.auth .ar-footer { grid-column: 1 / -1; margin-top: 20px; }
  .vy-auth-intro { align-self: center; text-align: left; }
  .vy-auth-intro .logo { justify-content: flex-start; margin-bottom: 44px; font-size: 25px; }
  .vy-auth-intro .logo svg { width: 42px; height: 42px; }
  .vy-auth-intro h1 { margin: 18px 0 22px; font-size: clamp(62px, 6vw, 80px); line-height: 1.02; }
  .vy-auth-intro p { max-width: 34ch; margin: 0; font-size: 16px; line-height: 1.75; }
  .vy-auth-signature { margin-top: 40px; font-size: 12px; }
}
@media (max-width: 850px) {
  .msg-container { grid-template-columns: 1fr; }
  .msg-sidebar { padding: 0; max-height: none; }
  .msg-container:not(.chat-open) { min-height: 0; border: 0; background: transparent; box-shadow: none; }
  .msg-container:not(.chat-open) .msg-sidebar { display: block; background: transparent; }
  .msg-container:not(.chat-open) .msg-pane { display: none; }
  .msg-container.chat-open .msg-sidebar { display: none; }
}
@media (max-width: 760px) {
  #pane-prof .v2-cover,
  #main > .v2-cover { height: 150px; border-radius: 20px 20px 0 0; }
  .v2-profile-card { padding: 20px 18px !important; border-radius: 0 0 20px 20px; margin-bottom: 16px; }
  .v2-profile-card .phead { grid-template-columns: 72px minmax(0, 1fr); gap: 14px; }
  .v2-profile-card .phead > .av.lg { width: 76px; height: 76px; margin-top: -55px; font-size: 26px; border-width: 4px; }
  .v2-profile-card .phead h2 { font-size: 23px; letter-spacing: -.045em; }
  .v2-profile-card .phead > div > .mut { font-size: 11px; }
  .v2-profile-card .phead p { font-size: 12px; line-height: 1.65; margin-top: 12px; }
  .v2-profile-card .phead a { font-size: 11px; }
  .v2-profile-card .stats { gap: 7px 14px; margin-top: 16px; font-size: 10px; }
  .v2-profile-card .stats b { font-size: 14px; }
  .v2-profile-card .acts { display: flex; padding-top: 15px; gap: 7px; }
  .v2-profile-card .acts button { min-height: 42px; padding: 10px 12px; font-size: 11px; border-radius: 10px; }
  .v2-profile-card .acts [data-a='edit'],
  .v2-profile-card .acts [data-a='follow'],
  .v2-profile-card .acts [data-a='chat'] { flex: 0 0 auto; font-size: 11px; }
  .v3-livebar { margin-bottom: 13px; gap: 8px; }
  .v3-livecard { min-width: 134px; padding: 11px 13px; }
  .v8-profile-links { grid-template-columns: 1fr; gap: 6px; margin-bottom: 14px; }
  .v7-profile-tabs { margin-bottom: 16px; }
  .v7-profile-tabs button { min-height: 46px; padding-inline: 12px; font-size: 11px; }
  #app.auth { gap: 24px; padding-inline: 20px; }
  #app.auth > .card.form { padding: 26px 23px; gap: 18px; border-radius: 22px; }
  #app.auth .logo { font-size: 21px; }
  #app.auth .card.form > h2 { font-size: 24px; }
  #app.auth .card.form > div:first-child h2 { font-size: 24px; margin-bottom: 8px; }
  #app.auth .card.form > div:first-child p.mut { font-size: 12px; }
  #app.auth .form label { font-size: 12px; }
  #app.auth input { font-size: 16px; }
  #app.auth .ar-footer { font-size: 10px; }
  .vy-auth-intro .logo { margin-bottom: 17px; }
  .vy-auth-intro h1 { margin-top: 11px; font-size: 35px; }
  .vy-auth-intro p { font-size: 12px; }
  .vy-auth-signature { display: none; }
  body[data-route='msg'] #thread-search { height: 46px; margin-bottom: 14px !important; }
  .msg-thread-item { min-height: 84px; padding: 14px 8px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .msg-thread-item + .msg-thread-item { margin-top: 0; }
  .msg-thread-item > .av,
  .msg-thread-item > .av.sm { width: 48px; height: 48px; font-size: 16px; }
  .msg-thread-item b { font-size: 14px !important; }
  .msg-thread-item .mut { font-size: 12px !important; }
  body.chat-active .chat-header { min-height: calc(64px + env(safe-area-inset-top)); padding: calc(8px + env(safe-area-inset-top)) 12px 8px; gap: 10px; }
  body.chat-active .chat-header > .av.sm { width: 38px; height: 38px; }
  body.chat-active #chat { padding: 18px 14px; gap: 6px; }
  body.chat-active #chat .bub { padding: 10px 13px; max-width: 82%; font-size: 14px; line-height: 1.45; }
  body.chat-active .chat-composer { padding: 10px 10px calc(10px + env(safe-area-inset-bottom)); gap: 4px; }
  body.chat-active .chat-composer #mt { height: 44px; min-height: 44px; padding: 11px 13px; font-size: 16px; }
  body.chat-active .chat-composer .chat-attach,
  body.chat-active .chat-composer .chat-send { width: 40px; height: 44px; min-height: 44px; border-radius: 12px; }
  body.chat-active #chat .msg-wrap { position: relative; min-width: 0; }
  body.chat-active #chat .msg-wrap:focus,
  body.chat-active #chat .msg-wrap:focus-within { padding-top: 48px; }
  body.chat-active #chat .chat-tools { position: absolute; top: 0; bottom: auto; left: 0; max-width: 100%; flex-wrap: wrap; z-index: 8; }
  body.chat-active #chat .chat-tools button { min-height: 36px; width: 36px; height: 36px; }
  body.chat-active #chat .msg-wrap.me .chat-tools { left: auto; right: 0; }
  #pane-exp #q,
  body[data-route='searchall'] #v3q { min-height: 48px; font-size: 16px; }
  #pane-exp #sbtn,
  body[data-route='searchall'] [data-a='v3search'] { min-height: 48px; padding-inline: 15px; }
  #pane-exp .v2-grid { gap: 9px; }
  #pane-exp .v2-tile { min-height: 127px; padding: 15px; border-radius: 16px; }
  #pane-exp .v2-tile b { font-size: 13px; }
  #pane-exp .v2-tile small { font-size: 10px; line-height: 1.5; }
  #list-exp .person,
  #v3-search-results .person,
  body[data-route='not'] #main > .person { min-height: 78px; padding: 14px; gap: 11px; border-radius: 14px; }
  #list-exp .person > .av,
  #v3-search-results .person > .av { width: 42px; height: 42px; font-size: 15px; }
  body[data-route='conf'] #main > h2 { font-size: 24px; margin-bottom: 19px; }
  body[data-route='conf'] #main > .card.form > .ghost { min-height: 62px; font-size: 12px; padding-inline: 12px !important; }
  body[data-route='edit'] #main > .card.form { padding: 20px; }
  body[data-route='edit'] .form input:not([type='checkbox']),
  body[data-route='edit'] .form textarea,
  body[data-route='privacy'] .form input:not([type='checkbox']) { font-size: 16px; }
  body[data-route='privacy'] .v2-row { padding: 17px 16px; }

  /* Immersive viewport above the real bottom navigation, including safe areas. */
  body[data-route='parati'] .main-col { padding: 0 0 calc(64px + env(safe-area-inset-bottom, 0px)) !important; background: #08090d !important; }
  body[data-route='parati'] #pane-parati { background: #08090d !important; }
  body[data-route='parati'] #pane-parati .v4-reels { width: 100%; height: calc(100dvh - 64px - env(safe-area-inset-bottom, 0px)) !important; min-height: 0; border: 0; border-radius: 0 !important; box-shadow: none; }
  body[data-route='parati'] #pane-parati .v4-reel { height: 100% !important; border-radius: 0 !important; }
  body[data-route='parati'] #pane-parati > .v3-tabs { top: calc(7px + env(safe-area-inset-top, 0px)) !important; min-height: 50px; max-width: calc(100vw - 126px) !important; padding: 3px !important; border: 1px solid rgb(255 255 255 / 16%) !important; border-radius: 14px !important; background: rgb(10 11 17 / 42%) !important; gap: 2px !important; }
  body[data-route='parati'] #pane-parati > .v3-tabs > button { height: 44px !important; min-height: 44px !important; min-width: 66px !important; padding: 8px 13px !important; border-radius: 10px !important; font-size: 12px !important; color: rgb(255 255 255 / 80%) !important; }
  body[data-route='parati'] #pane-parati > .v3-tabs > button.on { background: rgb(255 255 255 / 16%) !important; color: #fff !important; }
  body[data-route='parati'] #pane-parati > .v7-parati-search-btn,
  body[data-route='parati'] #pane-parati > .v7-parati-upload-btn { top: calc(10px + env(safe-area-inset-top, 0px)) !important; width: 44px !important; height: 44px !important; min-width: 44px !important; min-height: 44px !important; border-radius: 14px !important; background: rgb(10 11 17 / 42%) !important; border-color: rgb(255 255 255 / 16%) !important; color: #fff !important; }
  body[data-route='parati'] #pane-parati > .v7-parati-search-btn { left: 12px !important; right: auto; }
  body[data-route='parati'] #pane-parati > .v7-parati-upload-btn { right: 12px !important; }
  body[data-route='parati'] #pane-parati .v4-reel-top { top: calc(72px + env(safe-area-inset-top, 0px)) !important; left: 14px !important; right: 72px !important; }
  body[data-route='parati'] #pane-parati .v4-reel-sound { top: calc(72px + env(safe-area-inset-top, 0px)) !important; right: 14px !important; }
  body[data-route='parati'] #pane-parati .v4-reel-copy { left: 18px !important; right: 78px !important; bottom: 22px !important; max-height: 32%; }
  body[data-route='parati'] #pane-parati .v4-reel-copy b { font-size: 14px; }
  body[data-route='parati'] #pane-parati .v4-reel-copy p { font-size: 12px; line-height: 1.6; }
  body[data-route='parati'] #pane-parati .v4-reel-actions { right: 10px !important; bottom: 20px !important; gap: 8px !important; }
  body[data-route='parati'] #pane-parati .v4-reel-actions button { width: 46px !important; height: 48px !important; min-height: 44px; border-radius: 14px; }
}
@media (max-width: 380px) {
  .v2-profile-card { padding: 18px 14px !important; }
  .v2-profile-card .phead { grid-template-columns: 58px minmax(0, 1fr); gap: 11px; }
  .v2-profile-card .phead > .av.lg { width: 66px; height: 66px; margin-top: -51px; }
  .v2-profile-card .phead h2 { font-size: 21px; }
  .v2-profile-card .stats { gap: 7px 10px; }
  #app.auth { padding-inline: 16px; }
  #app.auth > .card.form { padding: 24px 20px; }
  .vy-auth-intro h1 { font-size: 33px; }
  body.chat-active .chat-composer { gap: 2px; padding-inline: 7px; }
  body.chat-active .chat-composer .chat-attach { width: 36px; }
  body.chat-active #chat .bub { max-width: 86%; }
  body.chat-active #chat .chat-tools { gap: 2px; }
  body.chat-active #chat .chat-tools button { min-height: 36px; width: 36px; height: 36px; }
  body[data-route='parati'] #pane-parati > .v3-tabs > button { font-size: 11px !important; min-width: 64px !important; padding-inline: 10px !important; }
  body[data-route='parati'] #pane-parati .v4-reel-copy { left: 14px !important; right: 72px !important; }
  body[data-route='parati'] #pane-parati .v4-reel-actions { right: 8px !important; }
}
@media (max-width: 760px) and (max-height: 620px) {
  body[data-route='parati'] #pane-parati .v4-reel-actions { gap: 4px !important; bottom: 16px !important; }
  body[data-route='parati'] #pane-parati .v4-reel-actions button { height: 44px !important; min-height: 44px; }
  body[data-route='parati'] #pane-parati .v4-reel-copy { max-height: 26%; }
}
@media (max-width: 760px) and (max-height: 480px) {
  body[data-route='parati'] #pane-parati .v4-reel-actions { left: 12px; right: 12px !important; bottom: 14px !important; flex-direction: row; justify-content: flex-end; gap: 4px !important; }
  body[data-route='parati'] #pane-parati .v4-reel-actions button { width: 44px !important; height: 44px !important; flex: 0 0 44px; }
  body[data-route='parati'] #pane-parati .v4-reel-copy { bottom: 76px !important; right: 18px !important; max-height: 30%; }
}
@media (prefers-reduced-motion: reduce) {
  .msg-thread-item { transition: none; }
}
