/* People: profile card, person menu, voice moves, user settings, cinema card. */

/* profile card (small): the popover beside a person, a bottom sheet on phones */
.pc-layer { position: fixed; left: 0; top: 0; z-index: 69; }
.pop.pop--card { width: 300px; background: var(--bg-2); border-radius: 12px; }
.pcard { --dx: 0px; --dy: 0px; --cx: 0px; --cy: 0px; overscroll-behavior: contain; animation: pc-in .22s cubic-bezier(.22, 1, .36, 1) both; }
.pcard.is-swap { animation: fade .14s ease-out both; }
.pcard.is-closing { animation: pc-out .14s cubic-bezier(.55, 0, .75, .06) both; pointer-events: none; }
.pc-layer > .is-closing:not(.pcard):not(.pc-sheetbg) { opacity: 0; transition: opacity .14s; }
@keyframes pc-in { from { opacity: 0; transform: translate(var(--dx), var(--dy)); } }
@keyframes pc-out { to { opacity: 0; transform: translate(var(--cx), var(--cy)); } }
.pcard .pc-sec { display: grid; gap: 10px; animation: pc-rise .22s cubic-bezier(.22, 1, .36, 1) both; animation-delay: calc(60ms + var(--i, 0) * 35ms); }
.pcard.is-swap .pc-sec, .pcard.is-settled .pc-sec { animation: none; }
@keyframes pc-rise { from { opacity: 0; transform: translateY(6px); } }
.pc-fresh { animation: fade .2s ease-out both; }
.pc__top { position: relative; }
.pop.pcard { display: flex; flex-direction: column; overflow: hidden; }
.pop.pcard > .pc-in { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.pop.pcard :is(.pc__top, .pc__body, .pc__foot) { flex: none; }
.pop.pcard .pc__mid { flex: 0 1 auto; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.pcard .pc__banner { height: 88px; background-size: cover; background-position: center; }
.pc__tools { position: absolute; top: 8px; right: 8px; display: flex; gap: 6px; }
.pc__tool { width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .44); color: #fff; cursor: pointer; }
.pc__tool:hover { background: rgba(0, 0, 0, .69); }
.pc__tool:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
.pc__tool svg { width: 15px; height: 15px; }
.pcard .pc__body { display: grid; gap: 8px; padding: 0 14px; }
.pcard .pc__mid { display: grid; align-content: start; gap: 8px; padding: 8px 14px 0; }
.pcard .pc__mid .pc-sec { gap: 8px; }
.pcard .pc__foot { padding: 10px 14px 12px; }
.pc-id { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pc-id .pn { flex: 1; width: auto; margin-right: 0; }
.pc-id .pl-row { flex: none; flex-wrap: nowrap; gap: 5px; }
.pc-id :is(.pl-chip, .pl-tile) { width: 26px; height: 26px; border-radius: 7px; }
.pc-meta { color: var(--ink-4); font-size: 11.5px; }
.pa--end { justify-content: flex-end; }
.pc-head { display: flex; align-items: flex-start; gap: 6px; min-height: 44px; }
.pc-head__sp { flex: 1; }
.pcard .pc__av { flex: none; display: block; margin: -36px 0 0; }
.pcard .pc__av .av { width: 72px; height: 72px; font-size: 27px; box-shadow: 0 0 0 4px var(--bg-2); }
.pcard .pc__av .av-wrap { --ring: var(--bg-2); }
.pcard .pc__av .av-wrap .pres { width: 18px; height: 18px; border-width: 3px; right: 0; bottom: 0; }
.sheet.pcard .pc__av .av { box-shadow: 0 0 0 4px var(--panel); }
.sheet.pcard .pc__av .av-wrap { --ring: var(--panel); }
.pc-bubble { position: relative; flex: 1; min-width: 0; margin: 6px 0 0 6px; padding: 6px 10px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--panel-2); color: var(--ink-2); font-size: 12px; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.pc-bubble--big { margin-top: 10px; padding: 8px 12px; font-size: 13px; }
.pc-owner { flex: none; display: inline-flex; align-items: center; gap: 4px; height: 22px; margin-top: 6px; padding: 0 7px; border-radius: 11px; background: color-mix(in srgb, var(--warn) 15%, transparent); color: var(--warn); font-size: 11px; font-weight: 700; }
.pc-owner svg { width: 11px; height: 11px; }
.pc__bot, .vm-bot { flex: none; font-size: 10px; font-weight: 700; padding: 1px 5px; border-radius: 4px; background: var(--accent); color: #fff; letter-spacing: .3px; }
.pc__vc { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: var(--r); background: color-mix(in srgb, var(--ok) 13%, transparent); color: var(--ok); font-size: 12.5px; font-weight: 600; }
.pc__vc svg { width: 16px; height: 16px; }
.pc__lb { font-size: 11px; font-weight: 700; color: var(--ink-4); text-transform: uppercase; letter-spacing: .4px; margin: 12px 0 6px; }
.pc-blk { display: grid; gap: 4px; min-width: 0; }
.pc-blk > .pc__lb { margin: 0; }
.pcard .pc-sec > :is(.ga-pc, .pc__sec, .ucard__sec) { margin: 0; }
.pc__roles { display: flex; flex-wrap: wrap; gap: 5px; }
.pc__rolechip { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 6px; background: var(--panel-2); font-size: 11.5px; color: var(--ink-2); }
.pc__rolechip i { width: 9px; height: 9px; border-radius: 50%; }
.pc__since { font-size: 12.5px; color: var(--ink-2); }
.pc-none { font-size: 12px; color: var(--ink-5); }
.pc-bio { font-size: 13px; line-height: 20px; color: var(--ink-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.pc-bio.is-clamp { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.pc-more { justify-self: start; padding: 0; border: 0; background: none; color: var(--accent); font-size: 12px; font-weight: 600; cursor: pointer; }
.pc-fail { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border: 1px dashed var(--line-3); border-radius: var(--r); color: var(--ink-3); font-size: 12px; }
.pc-full { display: flex; align-items: center; justify-content: center; gap: 4px; height: 30px; margin-top: -4px; border: 0; border-radius: var(--r); background: none; color: var(--ink-4); font-size: 12px; font-weight: 600; cursor: pointer; }
.pc-full svg { width: 12px; height: 12px; }
.pc-full:hover { background: var(--panel-2); color: var(--ink); }
.pc-full:focus-visible, .pn:focus-visible, .pa button:focus-visible, .pl-chip:focus-visible, .pl-item:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.dm-av.is-card, .dm-head__name.is-card, .ca-mention.is-user { cursor: pointer; }

/* name block: name, tag and badge over the username; a click copies the username */
.pn { display: flex; flex-wrap: wrap; align-items: center; gap: 1px 8px; width: calc(100% + 12px); min-width: 0; margin: 0 -6px; padding: 3px 6px; border: 0; border-radius: var(--r); background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.pn:hover { background: var(--panel-2); }
.pn:disabled { cursor: default; background: none; }
.pn__top { flex: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; }
.pn__name { min-width: 0; font-size: 17px; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.pn__hint { display: inline-flex; align-items: center; gap: 4px; flex: none; color: var(--ink-4); font-size: 11px; font-weight: 600; opacity: 0; transition: opacity .12s; }
.pn__hint svg { width: 12px; height: 12px; }
.pn:hover .pn__hint, .pn:focus-visible .pn__hint, .pn.is-copied .pn__hint { opacity: 1; }
.pn.is-copied .pn__hint { color: var(--ok); }
.pn__user { order: 3; flex-basis: 100%; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-3); font-size: 12px; }
.pn__tag { flex: none; display: inline-flex; align-items: center; height: 16px; padding: 0 5px; border-radius: 5px; background: var(--panel-3); color: var(--ink-2); font-size: 9.6px; font-weight: 800; letter-spacing: .3px; }
.pn__badge { flex: none; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 5px; background: linear-gradient(135deg, var(--b1), var(--b2)); color: #fff; }
.pn__badge.is-glow { box-shadow: 0 0 9px color-mix(in srgb, var(--b2) 50%, transparent); }
.pn__badge svg { width: 11px; height: 11px; }
.pn--big .pn__name { font-size: 24px; line-height: 1.2; }
.pn--big .pn__user { font-size: 13.5px; }
.pn--big .pn__badge { width: 22px; height: 22px; border-radius: 6px; }
.pn--big .pn__badge svg { width: 13px; height: 13px; }

/* actions */
.pa { display: flex; gap: 6px; }
.pa button { height: 32px; border: 0; border-radius: var(--r); cursor: pointer; font: inherit; }
.pa .pa__main { flex: 1; min-width: 0; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 10px; background: var(--accent); color: #fff; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.pa .pa__main:hover { background: var(--accent-hover); }
.pa .pa__main.is-neutral { background: var(--panel-3); color: var(--ink); }
.pa .pa__main.is-neutral:hover { background: var(--line-3); }
.pa .pa__main.is-ok { background: var(--ok); }
.pa .pa__main.is-ok:hover { background: color-mix(in srgb, var(--ok) 88%, #fff); }
.pa .pa__main:disabled { opacity: .6; cursor: default; }
.pa__ic { display: inline-grid; }
.pa__main svg { width: 14px; height: 14px; }
.pa .pa__sq { flex: none; width: 32px; display: grid; place-items: center; background: var(--panel-3); color: var(--ink-2); }
.pa .pa__sq:hover { background: var(--line-3); color: var(--ink); }
.pa__sq svg { width: 15px; height: 15px; }
.pa__friends { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; border-radius: var(--r); background: var(--panel-3); color: var(--ink-2); font-size: 12.5px; font-weight: 600; }
.pa__friends svg { width: 14px; height: 14px; color: var(--ok); }
.pa--full button, .pa--full .pa__friends { height: 36px; }
.pa--full .pa__sq { width: 36px; }

/* links */
.pl-row { display: flex; flex-wrap: wrap; gap: 6px; }
.pl-chip { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 8px; background: none; cursor: pointer; text-decoration: none; }
.pl-chip--more { background: var(--panel-3); color: var(--ink-2); font-size: 11.5px; font-weight: 700; }
.pl-tile { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 8px; background: var(--lc, var(--panel-3)); color: var(--lk, var(--ink-2)); font-size: 13px; font-weight: 800; }
.pl-tile svg { width: 15px; height: 15px; }
.pl-chip:hover .pl-tile { filter: brightness(1.15); }
.pl-list { display: grid; gap: 2px; }
.pl-item { display: flex; align-items: center; gap: 10px; min-width: 0; margin: 0 -6px; padding: 6px; border-radius: var(--r); color: inherit; text-decoration: none; }
.pl-item:hover { background: var(--panel-2); text-decoration: none; }
.pl-item > span:last-child { display: grid; min-width: 0; }
.pl-item b { font-size: 13px; font-weight: 600; color: var(--ink); }
.pl-item small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-4); font-size: 11.5px; }

/* skeletons, load errors */
.pf-sk { display: block; border-radius: 6px; background: #20242b; animation: pf-pulse 1.4s ease-in-out infinite; }
:root[data-theme="light"] .pf-sk { background: var(--panel-3); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .pf-sk { background: var(--panel-3); } }
@keyframes pf-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
.pf-sk--lb { width: 64px; height: 10px; margin-bottom: 4px; }
.pf-sk--ln { height: 12px; margin: 4px 0; }
.pf-sk--ln.is-short { width: 62%; }
.pf-skrow { display: flex; align-items: center; gap: 14px; height: 80px; padding: 10px 14px 10px 12px; }
.pf-skrow > span { display: grid; flex: 1; gap: 8px; }
.pf-skrow__art { flex: none; width: 58px; height: 58px; border-radius: 12px; }
.pf-skrow__l1 { width: 46%; height: 13px; }
.pf-skrow__l2 { width: 30%; height: 11px; }
.pf-err { display: grid; justify-items: center; gap: 8px; padding: 26px 16px; border: 1.5px dashed var(--line-3); border-radius: var(--r-md); color: var(--ink-3); text-align: center; }
.pf-err b { color: var(--ink-2); font-size: 14px; }
.pf-err small { color: var(--ink-4); font-size: 12px; }
.pf-err .btn { height: 32px; padding: 0 12px; gap: 6px; }
.pf-err .btn svg { width: 15px; height: 15px; }
.ga-hlist.is-fresh > *, .ga-hlist.is-fresh .ga-hgrid > * { animation: pc-rise .26s cubic-bezier(.22, 1, .36, 1) both; animation-delay: calc(var(--i, 0) * 40ms); }

/* phones: the card is a bottom sheet */
.sheet.pcard { position: relative; padding: 0 0 env(safe-area-inset-bottom); overflow-x: hidden; animation: sheet-up .26s cubic-bezier(.22, 1, .36, 1); }
.sheet.pcard::before { position: absolute; left: 50%; top: 8px; z-index: 3; margin: 0; transform: translateX(-50%); background: rgba(255, 255, 255, .55); }
.sheet.pcard .pc__banner { height: 96px; margin: 0; border-radius: 24px 24px 0 0; }
.sheet.pcard :is(.pc__body, .pc__mid, .pc__foot) { padding-left: 16px; padding-right: 16px; }
.pc-sheetbg.is-closing { animation: pc-fade-out .18s ease-in both; pointer-events: none; }
.sheet.pcard.is-closing { animation: pc-sheet-out .18s cubic-bezier(.55, 0, .75, .06) both; }
@keyframes pc-fade-out { to { opacity: 0; } }
@keyframes pc-sheet-out { to { transform: translateY(40%); opacity: 0; } }

/* full profile */
.fp-scrim { --fp-w: min(760px, calc(100vw - 32px)); --fp-h: min(500px, calc(100dvh - 32px)); --fp-x: calc((100vw - var(--fp-w)) / 2); --fp-y: calc((100dvh - var(--fp-h)) / 2); position: fixed; inset: 0; z-index: 88; background: rgba(4, 5, 8, .62); animation: fade .2s ease-out both; }
.fp { position: fixed; left: var(--fp-x); top: var(--fp-y); z-index: 71; box-sizing: border-box; width: var(--fp-w); height: var(--fp-h); display: flex; overflow: hidden; border-radius: 14px; background: var(--bg-2); box-shadow: var(--shadow), 0 0 0 1px var(--line); color: var(--ink); outline: none; animation: fp-in .28s cubic-bezier(.22, 1, .36, 1) both; }
.fp.cz-card { box-shadow: var(--shadow), var(--cz-card-glow, 0 0 0 transparent); }
.fp-scrim > :is(.cz-lays--behind, .cz-lays--front) { clip-path: inset(-96px); }
@keyframes fp-in { from { opacity: 0; transform: translateY(24px); } }
.fp.is-swap { animation: fade .14s ease-out both; }
.fp-scrim.is-swap { animation: none; }
.fp-scrim.is-closing { animation: pc-fade-out .17s ease-in both; pointer-events: none; }
.fp-scrim.is-closing .fp { animation: fp-out .17s ease-in both; }
.fp-scrim.is-swap .fp__x { animation: none; }
@keyframes fp-out { to { opacity: 0; transform: translateY(12px); } }
.fp__cw { position: relative; flex: none; box-sizing: border-box; width: 300px; height: 100%; border-right: 1px solid var(--line); }
.fp__card { height: 100%; }
.fp__cin { height: 100%; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.fp__banner { position: relative; height: 88px; overflow: hidden; }
.fp.is-opening .fp__banner { animation: fp-reveal .32s .04s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes fp-reveal { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
.fp__bn { height: 100%; background-size: cover; background-position: center; }
.fp__x { position: fixed; top: calc(var(--fp-y) + 12px); left: calc(var(--fp-x) + var(--fp-w) - 40px); z-index: 73; animation: fade .28s ease-out both; width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: var(--r); background: var(--panel-2); color: var(--ink-3); cursor: pointer; }
.fp__x:hover { background: var(--panel-3); color: var(--ink); }
.fp__x:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.fp__x svg { width: 14px; height: 14px; }
.fp__cbody { display: grid; gap: 10px; padding: 0 16px 16px; }
.fp__head { position: relative; display: flex; align-items: flex-start; gap: 8px; min-height: 44px; }
.fp__av { position: relative; flex: none; width: 84px; margin-top: -44px; }
.fp.is-opening .fp__av { animation: fp-drop .3s .06s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes fp-drop { from { opacity: 0; transform: translateY(-10px); } }
.fp__av .av { width: 84px; height: 84px; font-size: 32px; box-shadow: 0 0 0 5px var(--bg-2); }
.cz-card .fp__av .av { box-shadow: 0 0 0 5px var(--cz-tint); }
.fp__av .av-wrap { --ring: var(--bg-2); }
.cz-card .fp__av .av-wrap { --ring: var(--cz-tint); }
.fp__av .av-wrap .pres { width: 20px; height: 20px; border-width: 4px; right: 0; bottom: 2px; }
.fp__head .pc-bubble { margin-top: 8px; }
.fp__cbody .pn__name { font-size: 20px; line-height: 1.2; }
.fp__cbody .pn__user { font-size: 13px; }
.fp__info { display: grid; gap: 10px; padding: 10px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--panel-2); }
.fp__since { color: var(--ink-4); font-size: 12px; }
.fp.is-opening .fp-st { animation: pc-rise .28s cubic-bezier(.22, 1, .36, 1) both; animation-delay: calc(110ms + var(--i, 0) * 30ms); }
.fp__right { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; min-width: 0; min-height: 0; box-sizing: border-box; padding: 6px 10px 10px 16px; }
.fp__bar { flex: none; border-bottom: 1px solid var(--line-2); }
.fp__tabs { position: relative; display: flex; gap: 16px; height: 44px; padding: 0 36px 0 6px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.fp__tabs::-webkit-scrollbar { display: none; }
.fp__tab { display: inline-flex; align-items: center; gap: 6px; flex: none; height: 44px; padding: 0; border: 0; background: none; color: var(--ink-4); font: inherit; font-size: 13px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.fp__tab:hover, .fp__tab[aria-selected="true"] { color: var(--ink); }
.fp__tab:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; border-radius: 6px; }
.fp__slot:empty { display: none; }
.fp__cnt { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--panel-3); color: var(--ink-2); font-size: 10.5px; font-style: normal; font-weight: 700; }
i.fp__cnt { width: 18px; padding: 0; }
.fp__ink { position: absolute; bottom: 0; left: 0; width: 0; height: 2px; border-radius: 2px 2px 0 0; background: var(--accent); transition: left .26s cubic-bezier(.22, 1, .36, 1), width .26s cubic-bezier(.22, 1, .36, 1); }
.fp__ink.is-instant { transition: none; }
.fp__scroll { flex: 1; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; padding: 14px 6px 12px; }
.fp__panel.is-in { animation: fp-tab .22s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes fp-tab { from { opacity: 0; transform: translateX(var(--fx, 0px)); } }
.fp-act { display: grid; gap: 22px; }
.fp-act .pc__lb { margin: 0 0 2px; }
.fp-idle { display: grid; gap: 4px; padding: 16px; border-radius: var(--r-lg); background: var(--panel-2); }
.fp-idle b { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.fp-idle small { font-size: 12px; color: var(--ink-4); }
.fp-list { display: grid; gap: 4px; }
.fp-list--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.fp-row { display: flex; align-items: center; gap: 12px; height: 56px; min-width: 0; padding: 0 10px; border: 0; border-radius: var(--r-lg); background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.fp-row--friend { height: 52px; }
.fp-row:hover { background: var(--panel-2); }
.fp-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.fp-row b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; font-weight: 600; }
.fp-row.is-skel { cursor: default; }
.fp-row.is-skel:hover { background: none; }
.fp-row__face { flex: none; }
.fp-row--server .fp-row__face { width: 40px; height: 40px; border-radius: 12px; }
.fp-row--friend .fp-row__face { width: 36px; height: 36px; border-radius: 50%; }
.fp-row--friend .fp-row__face .av { width: 36px; height: 36px; font-size: 14px; }
.fp-row__line { width: 45%; height: 13px; }
.fp-row.is-fresh { animation: pc-rise .26s cubic-bezier(.22, 1, .36, 1) both; animation-delay: calc(var(--i, 0) * 40ms); }
.fp-sface { position: relative; display: grid; place-items: center; overflow: hidden; background: linear-gradient(135deg, hsl(var(--h) 60% 52%), hsl(calc(var(--h) + 40) 58% 46%)); color: #fff; font-weight: 700; }
.fp-sface img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fp-empty { display: grid; justify-items: center; align-content: center; gap: 10px; min-height: 200px; color: var(--ink-4); font-size: 13.5px; }
.fp-empty svg { width: 28px; height: 28px; color: var(--ink-5); }
.fp-note { display: grid; gap: 8px; }
.fp-note__hint { display: flex; align-items: center; gap: 6px; color: var(--ink-4); font-size: 12px; }
.fp-note__hint svg { width: 12px; height: 12px; }
.fp-note__in { width: 100%; min-height: 140px; resize: vertical; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--r-lg); outline: none; background: var(--panel); color: var(--ink); font: inherit; font-size: 13.5px; line-height: 1.45; }
.fp-note__in:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.fp-note__n { justify-self: end; color: var(--ink-5); font-size: 12px; }
.fp__pill { position: fixed; left: calc(var(--fp-x) + var(--fp-w) / 2); bottom: calc(var(--fp-y) + 14px); z-index: 73; display: flex; align-items: center; gap: 8px; max-width: calc(100% - 32px); padding: 6px 6px 6px 12px; border: 1px solid var(--line-3); border-radius: 999px; background: var(--panel-3); box-shadow: var(--shadow); color: var(--ink-2); font-size: 12.5px; white-space: nowrap; transform: translateX(-50%); animation: fade .2s ease-out both; }
.fp__pill[hidden] { display: none; }
.fp__pill span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.fp__dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--warn); }
.fp__pill button { flex: none; height: 26px; padding: 0 10px; border: 0; border-radius: 999px; background: var(--line-3); color: var(--ink); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }

@keyframes fp-sheet-in { from { opacity: 0; transform: translateY(40px); } }
@media (max-width: 780px) {
  .fp-scrim { --fp-w: 100vw; --fp-h: 100dvh; --fp-x: 0px; --fp-y: 0px; }
  .fp { display: block; padding: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; border-radius: 0; box-shadow: none !important; animation-name: fp-sheet-in; }
  .fp > .cz-lays--in { position: sticky; margin-bottom: calc(-1 * var(--fp-h)); }
  .fp-scrim > .cz-ring { display: none; }
  .fp__right { padding: 0; }
  .fp__cw { width: auto; height: auto; padding-top: env(safe-area-inset-top); border-right: 0; }
  .fp__card, .fp__cin { height: auto; }
  .fp__cin { overflow: visible; }
  .fp__x { top: calc(10px + env(safe-area-inset-top)); left: auto; right: 12px; width: 32px; height: 32px; background: rgba(0, 0, 0, .44); color: #fff; }
  .fp__right { display: block; }
  .fp__bar { position: sticky; top: 0; z-index: 2; background: var(--cz-tint, var(--bg-2)); }
  .fp__tabs { gap: 18px; padding: 0 16px; }
  .fp__scroll { overflow: visible; padding: 18px 16px calc(24px + env(safe-area-inset-bottom)); }
  .fp-list--grid { grid-template-columns: minmax(0, 1fr); }
  .fp-note__in { font-size: 16px; }
  .fp__pill { bottom: calc(14px + env(safe-area-inset-bottom)); }
}
}

@media (prefers-reduced-motion: reduce) {
  .pcard, .pcard .pc-sec, .pc-fresh, .pc-layer > *, .fp-scrim, .fp, .fp *, .ga-hlist.is-fresh > *, .ga-hlist.is-fresh .ga-hgrid > * { animation: none !important; transition: none !important; }
  .pf-sk { animation: none; }
}

/* person menu */
.pm-menu { min-width: 230px; }
.pm-head { padding: 6px 10px 4px; font-size: 11px; font-weight: 700; color: var(--ink-4); text-transform: uppercase; letter-spacing: .4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mi.pm-sub > svg:last-child { margin-left: auto; width: 14px; height: 14px; }
.pm-flyout { min-width: 190px; z-index: 72; }
.pm-vol { padding: 4px 10px 6px; }
.pm-vol small { display: block; font-size: 11.5px; color: var(--ink-3); margin-bottom: 2px; }

/* modal */
.pm-scrim { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; background: rgba(4, 5, 8, .62); animation: fade .15s; }
.pm-modal { width: 440px; max-width: 100%; max-height: calc(100dvh - 32px); overflow: auto; border-radius: var(--r-xl); background: var(--panel); box-shadow: var(--shadow); animation: pop .16s cubic-bezier(.3, 1.3, .5, 1); }
.pm-modal__bd { padding: 20px 20px 4px; }
.pm-modal h2 { font-size: 18px; margin: 0 0 6px; }
.pm-modal p { margin: 0 0 14px; color: var(--ink-3); font-size: 13.5px; }
.pm-modal__ft { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; margin-top: 14px; background: var(--panel-2); }
.pm-input, .st-inp { width: 100%; height: 40px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--panel-2); padding: 0 12px; outline: none; color: var(--ink); }
.pm-input:focus, .st-inp:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.st-inp:disabled { opacity: .6; }

/* voice moves */
.vuser.is-picked { background: var(--accent-soft); color: var(--ink); box-shadow: inset 2px 0 0 var(--accent); }
.vuser.is-bot { cursor: default; }
.vuser.is-dragged { opacity: .35; }
.vuser.is-nope { animation: vm-shake .35s; }
.vuser.is-arrive { animation: vm-grow .35s ease-out; }
.vuser[draggable="true"] { cursor: grab; }
.ch.is-target { background: var(--accent-soft); outline: 1.5px dashed var(--accent); outline-offset: -1.5px; color: var(--ink); }
.ch.is-full { animation: vm-shake .35s; outline: 1.5px solid var(--bad); outline-offset: -1.5px; background: color-mix(in srgb, var(--bad) 14%, transparent); }
.vm-here { display: none; flex: none; align-items: center; gap: 4px; height: 24px; padding: 0 10px; border-radius: 12px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 600; white-space: nowrap; }
.vm-here svg { width: 14px !important; height: 14px !important; color: #fff !important; }
.side.has-picks .ch:hover .vm-here, .ch.is-target .vm-here { display: inline-flex; }
.side.has-picks .ch:hover .count, .ch.is-target .count { display: none; }
.vm-pickbar { flex: none; display: flex; align-items: center; gap: 8px; margin: 0 8px 8px; padding: 8px 8px 8px 12px; border-radius: var(--r-md); background: var(--panel-2); box-shadow: var(--shadow); animation: vm-rise .18s ease-out; }
.vm-pickbar b { flex: 1; min-width: 0; font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vm-pickbar .btn { height: 30px; padding: 0 10px; gap: 5px; }
.vm-pickbar .btn svg { width: 15px; height: 15px; }
.vm-pickbar .icon-btn { width: 30px; height: 30px; }
.vm-stack { display: flex; flex: none; }
.vm-stack .av { margin-left: -7px; box-shadow: 0 0 0 2px var(--panel-2); }
.vm-stack .av:first-child { margin-left: 0; }
.vm-ghost { position: fixed; z-index: 95; pointer-events: none; display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 20px; background: var(--accent); color: #fff; font-size: 12.5px; font-weight: 600; transform: rotate(-3deg); box-shadow: 0 10px 30px -8px var(--accent); white-space: nowrap; }
.vm-ghost .vm-stack .av { box-shadow: 0 0 0 2px var(--accent); }
.vm-fly { position: fixed !important; z-index: 95; pointer-events: none; box-shadow: 0 8px 20px -4px rgba(0, 0, 0, .6); }
.vm-ripple { position: fixed; z-index: 94; pointer-events: none; border-radius: var(--r-sm); border: 2px solid var(--accent); animation: vm-ripple .6s ease-out forwards; }
.toast .vm-undo { margin-left: 6px; padding: 4px 8px; border: 0; border-radius: 6px; background: none; color: var(--accent); font-weight: 700; cursor: pointer; }
.toast .vm-undo:hover { background: rgba(255, 255, 255, .12); }
@keyframes vm-shake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
@keyframes vm-grow { from { opacity: 0; transform: translateY(-4px) scale(.96); } }
@keyframes vm-rise { from { opacity: 0; transform: translateY(8px); } }
@keyframes vm-ripple { to { transform: scale(1.08); opacity: 0; } }

/* cinema (app only) */
.ch__app { flex: none; font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 4px; background: var(--panel-3); color: var(--ink-4); letter-spacing: .3px; }
.nosupport { flex: 1; min-height: 0; overflow: auto; display: grid; place-items: center; padding: 30px 20px; }
.nosupport > div { max-width: 420px; text-align: center; }
.nosupport__art { width: 120px; height: 120px; margin: 0 auto 18px; border-radius: 30px; display: grid; place-items: center; background: linear-gradient(135deg, #e5534b, #8b7cf6); box-shadow: 0 20px 50px -18px #e5534b; transform: rotate(-6deg); }
.nosupport__art svg { width: 56px; height: 56px; color: #fff; stroke-width: 1.6; }
.nosupport h2 { font-size: 21px; margin: 0 0 8px; }
.nosupport p { color: var(--ink-3); margin: 0 0 20px; }
.nosupport__row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.nosupport small { display: block; margin-top: 16px; color: var(--ink-4); font-size: 12px; }

/* user settings page */
.st-page { position: fixed; inset: 0; z-index: 65; display: grid; grid-template-columns: minmax(220px, 1fr) minmax(0, 780px) minmax(0, 1fr); background: var(--bg); animation: fade .15s; }
.st-page::after { content: ""; background: var(--bg); }
.st-nav { background: var(--bg-2); display: flex; justify-content: flex-end; padding: 50px 14px 20px 8px; overflow-y: auto; }
.st-nav nav { width: 210px; }
.st-nav h6 { margin: 0 0 6px 10px; font-size: 11.5px; color: var(--ink-4); letter-spacing: .4px; text-transform: uppercase; }
.st-nav__item { display: block; width: 100%; height: 34px; padding: 0 10px; margin-bottom: 2px; border: 0; border-radius: var(--r-sm); background: none; color: var(--ink-3); text-align: left; cursor: pointer; }
.st-nav__item:hover { background: var(--panel-2); color: var(--ink); }
.st-nav__item.is-on { background: var(--panel-3); color: var(--ink); }
.st-nav__item.is-danger { color: var(--bad); }
.st-nav__sep { height: 1px; margin: 10px; background: var(--line-2); }
.st-nav h6 + .st-nav__item { margin-top: 0; }
.st-main { position: relative; min-width: 0; min-height: 0; }
.st-body { height: 100%; overflow-y: auto; padding: 50px 40px 140px; }
.st-body h1 { font-size: 20px; margin: 0 0 20px; }
.st-close { position: absolute; top: 50px; right: -64px; display: grid; justify-items: center; gap: 4px; color: var(--ink-4); font-size: 11px; font-weight: 700; }
.st-close button { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--line-3); background: none; color: var(--ink-3); display: grid; place-items: center; cursor: pointer; }
.st-close button:hover { border-color: var(--ink-3); color: var(--ink); }
.st-close svg { width: 18px; height: 18px; }
.st-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 30px; }
.st-side { position: sticky; top: 0; align-self: start; }
.st-sec { padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.st-sec:last-child { border-bottom: 0; }
.st-sec--plain { border: 0; padding: 0; margin-bottom: 8px; }
.st-sec--top { margin-top: 24px; }
.st-sec > b { display: block; font-size: 11.5px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .4px; margin-bottom: 8px; }
.st-sec > p { font-size: 12.5px; color: var(--ink-4); margin: -4px 0 10px; }
.st-hint { display: block; margin-top: 5px; font-size: 11.5px; color: var(--ink-4); }
.st-hint.is-bad { color: var(--bad); }
.st-hint:empty { display: none; }
.st-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.st-link { background: none; color: var(--ink-3); }
.st-link:hover { background: none; box-shadow: none; color: var(--ink); text-decoration: underline; }
.st-presets { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin: 12px 0 10px; max-width: 360px; }
.st-preset { position: relative; aspect-ratio: 1; padding: 0; border: 2px solid transparent; border-radius: 50%; background: var(--panel-2); cursor: pointer; transition: transform .12s; }
.st-preset img { width: 100%; height: 100%; border-radius: 50%; display: block; }
.st-preset:hover { transform: scale(1.06); }
.st-preset.is-on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.st-preset.is-anim::after { content: "GIF"; position: absolute; right: -2px; bottom: -2px; padding: 1px 3px; border-radius: 4px; border: 1px solid var(--line-2); background: var(--panel); color: var(--ink-2); font-size: 8px; font-weight: 800; }
.st-drop { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1.5px dashed var(--line-3); border-radius: var(--r-md); color: var(--ink-3); font-size: 12.5px; transition: background .15s, border-color .15s, color .15s; }
.st-drop svg { color: var(--ink-4); }
.st-drop.is-over { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.st-drop.is-over svg { color: var(--accent); }
.st-sec .st-row + .st-drop, .st-presets + .st-drop { margin-top: 10px; }
.st-card { border-radius: var(--r-xl); overflow: hidden; background: var(--bg-2); box-shadow: var(--shadow); }
.st-card__banner { --h: 220; height: 75px; background: linear-gradient(135deg, hsl(var(--h) 55% 46%), hsl(calc(var(--h) + 50) 55% 40%)); }
.st-card__banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.st-card__av { margin: -44px 0 0 16px; width: max-content; }
.st-card__av .av { width: 84px; height: 84px; font-size: 30px; box-shadow: 0 0 0 6px var(--bg-2); }
.st-card__av .av-wrap { --ring: var(--bg-2); }
.st-card__av .av-wrap .pres { width: 22px; height: 22px; border-width: 5px; }
.st-card__in { padding: 8px 16px 16px; }
.st-card h4 { margin: 0; font-size: 19px; overflow-wrap: anywhere; }
.st-card__un { color: var(--ink-3); font-size: 13px; }
.st-card__st { margin-top: 10px; padding: 10px; border-radius: var(--r); background: var(--panel-2); font-size: 13px; color: var(--ink-2); overflow-wrap: anywhere; }
.st-card--wide { margin-bottom: 20px; }
.st-card--wide .st-card__banner { height: 100px; }
.st-acct-head { display: flex; align-items: flex-end; gap: 14px; padding: 0 16px 16px; }
.st-acct-head .st-card__av { margin: -40px 0 0; }
.st-acct-head h4 { flex: 1; min-width: 0; margin-bottom: 10px; }
.st-acct-head .btn { margin-bottom: 8px; }
.st-acct { border-radius: var(--r-lg); background: var(--panel-2); padding: 4px 16px; }
.st-acct__row { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.st-acct__row:last-child { border-bottom: 0; }
.st-acct__row > div { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.st-acct__row small { display: block; font-size: 11.5px; color: var(--ink-4); text-transform: uppercase; font-weight: 700; letter-spacing: .4px; }
.st-reveal { margin-left: 6px; padding: 0; border: 0; background: none; color: var(--accent); font-size: 12.5px; cursor: pointer; }
.st-lead { color: var(--ink-3); margin: -10px 0 18px; font-size: 13px; }
.st-srv { display: flex; align-items: center; gap: 12px; padding: 12px; margin-bottom: 8px; border-radius: var(--r-md); background: var(--panel-2); }
.st-srv__icon { --h: 220; flex: none; width: 40px; height: 40px; border-radius: 12px; overflow: hidden; display: grid; place-items: center; font-weight: 700; color: #fff; background: linear-gradient(135deg, hsl(var(--h) 60% 52%), hsl(calc(var(--h) + 40) 58% 46%)); }
.st-srv__icon img { width: 100%; height: 100%; object-fit: cover; }
.st-srv__who { flex: 1; min-width: 0; }
.st-srv__who b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-srv__who small { display: block; font-size: 11.5px; color: var(--ink-4); }
.st-srv .st-inp { width: 220px; height: 36px; }
.st-field { display: block; margin-bottom: 14px; }
.st-field > span { display: block; margin-bottom: 6px; font-size: 11.5px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .4px; }
.st-field small { display: block; margin-top: 5px; font-size: 11.5px; color: var(--ink-4); }
.st-savebar { position: fixed; left: 50%; bottom: 24px; z-index: 66; width: 700px; max-width: calc(100% - 32px); transform: translateX(-50%); display: flex; align-items: center; gap: 8px; padding: 10px 10px 10px 16px; border-radius: var(--r-md); background: var(--bg-2); box-shadow: var(--shadow); animation: vm-rise .2s; }
.st-savebar b { flex: 1; font-size: 13.5px; font-weight: 500; }
.st-savebar.is-shake { animation: st-shake .4s; background: var(--bad); color: #fff; }
.st-savebar.is-shake .st-link { color: #fff; }
@keyframes st-shake { 20%, 60% { transform: translateX(calc(-50% - 6px)); } 40%, 80% { transform: translateX(calc(-50% + 6px)); } }

/* crop dialog */
.pm-modal.st-crop { width: 560px; }
.st-crop .pm-modal__bd { padding: 20px 20px 4px; }
.st-stage { position: relative; margin: 0 -20px; background: #000; overflow: hidden; cursor: grab; touch-action: none; }
.st-stage:active { cursor: grabbing; }
.st-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.st-crop__ctl { display: flex; align-items: center; gap: 8px; padding: 14px 0 0; }
.st-crop__ctl input { flex: 1; min-width: 60px; accent-color: var(--accent); }
.st-crop__ctl .icon-btn { width: 32px; height: 32px; }
.st-crop__ctl .icon-btn svg { width: 17px; height: 17px; }
.st-crop__warn { margin-top: 8px; }

@media (max-width: 1100px) {
  .st-page { grid-template-columns: 220px minmax(0, 1fr); }
  .st-page::after { display: none; }
  .st-nav { padding-top: 24px; }
  .st-body { padding: 28px 28px 140px; }
  .st-close { top: 20px; right: 20px; }
  .st-grid { grid-template-columns: 1fr; }
  .st-side { position: static; max-width: 340px; }
}
@media (max-width: 820px) {
  .st-page { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
  .st-nav { justify-content: flex-start; padding: 12px 64px 10px 12px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; border-bottom: 1px solid var(--line); }
  .st-nav nav { width: auto; display: flex; gap: 6px; align-items: center; }
  .st-nav h6, .st-nav__sep { display: none; }
  .st-nav__item { width: auto; flex: none; height: 36px; padding: 0 12px; margin: 0; white-space: nowrap; background: var(--panel-2); }
  .st-body { padding: 18px 16px 140px; }
  .st-close { position: fixed; top: 10px; right: 12px; }
  .st-close button { background: var(--bg-2); }
  .st-close span { display: none; }
  .st-srv { flex-wrap: wrap; }
  .st-srv .st-inp { width: 100%; }
  .st-presets { max-width: none; }
  .st-savebar { bottom: calc(12px + env(safe-area-inset-bottom)); flex-wrap: wrap; }
  .st-savebar b { flex-basis: 100%; }
  .pm-input, .st-inp, .pc__dm input { font-size: 16px; }
}
