/* The messenger's newer parts: Apple emoji, the emoji / sticker panel, pictures, Premium, the rating, confirmations,
   walls and packs. */

/* ------------------------------------------------------------------ emoji (Apple's, as in Telegram) */
.emj { display: inline-block; width: 1.3em; height: 1.3em; margin: 0 .04em; vertical-align: -.3em; object-fit: contain; }
.emj.cust { border-radius: .18em; }
.mg-big { position: relative; padding: 2px 4px 16px; background: none !important; }
.mg-big-e { display: block; line-height: 1; }
.mg-big.n1 .emj { width: 92px; height: 92px; animation: big-in .6s var(--spring) both; }
.mg-big.n2 .emj { width: 64px; height: 64px; animation: big-in .6s var(--spring) both; }
.mg-big.n3 .emj { width: 50px; height: 50px; animation: big-in .6s var(--spring) both; }
.mg-big .emj { vertical-align: bottom; margin: 0 1px; filter: drop-shadow(0 6px 12px rgba(0,0,0,.14)); transition: transform .35s var(--spring); }
.mg-big .emj:hover { transform: scale(1.08) rotate(-4deg); }
@keyframes big-in { from { transform: scale(.3) rotate(-18deg); opacity: 0; } }
.mg-stamp { position: absolute; right: 6px; bottom: 0; display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px; border-radius: 99px; background: rgba(0,0,0,.42); color: #fff; font-size: 10.5px; font-weight: 700; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.mg-sticker { position: relative; width: 168px; padding: 0 0 14px; background: none !important; cursor: pointer; }
.mg-sticker img { display: block; width: 160px; height: 160px; object-fit: contain; filter: drop-shadow(0 8px 18px rgba(0,0,0,.16)); animation: big-in .55s var(--spring) both; transition: transform .35s var(--spring); }
.mg-sticker:hover img { transform: scale(1.04); }
.mg-st-gone { display: flex; width: 120px; height: 120px; align-items: center; justify-content: center; font-size: 56px; opacity: .6; }

/* ------------------------------------------------------------------ the emoji, sticker and custom emoji panel */
.ep { display: flex; flex-direction: column; min-height: 0; border-radius: 20px; background: var(--menu); border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0,0,0,.24); backdrop-filter: blur(26px) saturate(180%); -webkit-backdrop-filter: blur(26px) saturate(180%); overflow: hidden; }
.ep-chat { position: absolute; right: 74px; bottom: 74px; z-index: 8; width: min(390px, calc(100% - 32px)); height: 420px; transform-origin: 90% 100%; animation: ep-in .42s var(--spring) both; }
.ep-wall { position: absolute; left: 50%; bottom: 20px; z-index: 8; width: min(390px, calc(100% - 32px)); height: 400px; transform: translateX(-50%); animation: ep-in-c .42s var(--spring) both; }
.ep-status { flex: 1; box-shadow: none; border: 0; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
@keyframes ep-in { from { opacity: 0; transform: translateY(14px) scale(.9); } }
@keyframes ep-in-c { from { opacity: 0; transform: translate(-50%, 14px) scale(.9); } }
.ep-tabs { flex: none; display: flex; align-items: center; gap: 2px; padding: 6px 6px 4px; border-bottom: 1px solid var(--line); }
.ep-tab { width: 38px; height: 34px; border-radius: 11px; display: flex; align-items: center; justify-content: center; color: var(--ink3); transition: background .2s ease, color .2s ease, transform .3s var(--spring); }
.ep-tab:hover { background: var(--seg); color: var(--ink); }
.ep-tab.on { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.ep-tab:active { transform: scale(.9); }
.ep-head { flex: none; display: flex; align-items: center; gap: 8px; padding: 8px 10px 4px; }
.ep-search { flex: 1; min-width: 0; height: 34px; display: flex; align-items: center; gap: 6px; padding: 0 10px; border-radius: 11px; background: var(--field); color: var(--ink3); }
.ep-search input { flex: 1; min-width: 0; height: 100%; border: 0; padding: 0; background: transparent; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--ink); outline: none; }
.ep-tones { display: flex; gap: 3px; }
.ep-tone { width: 16px; height: 16px; border-radius: 99px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); transition: transform .3s var(--spring), box-shadow .2s ease; }
.ep-tone:hover { transform: scale(1.2); }
.ep-tone.on { box-shadow: 0 0 0 2px var(--card), 0 0 0 3.5px var(--accent); }
.ep-cats { flex: none; display: flex; justify-content: space-between; padding: 2px 8px 4px; color: var(--ink3); }
.ep-cat { width: 32px; height: 28px; border-radius: 9px; display: flex; align-items: center; justify-content: center; color: var(--ink3); transition: background .2s ease, color .2s ease; }
.ep-cat:hover { background: var(--seg); color: var(--ink); }
.ep-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 2px 8px 10px; scrollbar-width: thin; }
.ep-sec { content-visibility: auto; contain-intrinsic-size: auto 300px; }
.ep-cap { display: block; padding: 10px 6px 6px; font-size: 11.5px; font-weight: 800; letter-spacing: .03em; color: var(--ink3); text-transform: uppercase; }
.ep-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); }
.ep-e { aspect-ratio: 1; border-radius: 10px; display: flex; align-items: center; justify-content: center; transition: background .15s ease; }
.ep-e img { width: 30px; height: 30px; object-fit: contain; pointer-events: none; transition: transform .3s var(--spring); }
.ep-e:hover { background: var(--seg); }
.ep-e:hover img { transform: scale(1.18); }
.ep-e:active img { transform: scale(.92); }
.ep-e.off { opacity: .45; cursor: default; }
.ep-stickers { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 4px; }
.ep-sticker { aspect-ratio: 1; border-radius: 14px; padding: 6px; display: flex; align-items: center; justify-content: center; transition: background .15s ease, transform .3s var(--spring); animation: pf-tile .45s var(--spring) both; animation-delay: var(--dl, 0ms); }
.ep-sticker img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.ep-sticker:hover { background: var(--seg); transform: scale(1.06); }
.ep-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 28px 18px 14px; text-align: center; font-size: 13px; line-height: 1.5; font-weight: 600; color: var(--ink3); }
.ep-manage { margin: 10px 4px 4px; width: calc(100% - 8px); height: 38px; border-radius: 12px; display: flex; align-items: center; justify-content: center; gap: 7px; background: var(--seg); font-size: 13px; font-weight: 700; color: var(--accent); transition: background .2s ease; }
.ep-lock { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 8px 4px 4px; padding: 16px; border-radius: 16px; text-align: center; background: linear-gradient(135deg, color-mix(in srgb, #6b93ff 14%, transparent), color-mix(in srgb, #e46ace 14%, transparent)); }
.ep-get { margin-top: 6px; height: 34px; padding: 0 16px; border-radius: 99px; background: linear-gradient(120deg, #6b93ff, #976fff, #e46ace); color: #fff; font-size: 13px; font-weight: 800; }

/* ------------------------------------------------------------------ the composer: tools and pictures waiting to go */
.mg-tool { width: 44px; height: 44px; flex: none; border-radius: 99px; display: flex; align-items: center; justify-content: center; color: var(--ink2); transition: background .2s ease, color .2s ease, transform .3s var(--spring); }
.mg-tool:hover { color: var(--accent); }
.mg-tool:active { transform: scale(.9); }
.mg-emo { position: absolute; right: 6px; bottom: 6px; width: 32px; height: 32px; border-radius: 99px; display: flex; align-items: center; justify-content: center; color: var(--ink3); transition: color .2s ease, transform .3s var(--spring); }
.mg-emo:hover, .mg-emo.on { color: var(--accent); }
.mg-emo:active { transform: scale(.88); }
.att-row { flex: none; display: flex; gap: 8px; flex-wrap: wrap; }
.att { position: relative; width: 64px; height: 64px; border-radius: 14px; overflow: hidden; background: var(--seg); box-shadow: 0 6px 16px rgba(0,0,0,.12); }
.att img { width: 100%; height: 100%; object-fit: cover; display: block; }
.att > button { position: absolute; right: 4px; top: 4px; width: 20px; height: 20px; border-radius: 99px; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.55); color: #fff; transition: transform .25s var(--spring); }
.att > button:hover { transform: scale(1.12); }
.att-busy { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.35); }
.spin-ring { width: 22px; height: 22px; border-radius: 99px; border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .8s linear infinite; }
.mg-send.sm { width: 34px; height: 34px; flex: none; border-radius: 99px; display: flex; align-items: center; justify-content: center; background: var(--accentgrad); color: #fff; }

/* ------------------------------------------------------------------ albums and the picture viewer */
.mg-photo { position: relative; width: min(380px, 78%); padding: 3px; border-radius: 20px; background: var(--seg); }
.mg-photo.mine { background: var(--accentgrad); color: #fff; }
.mg-photo-t { display: block; padding: 7px 10px 18px; font-size: 14.5px; line-height: 1.45; font-weight: 500; white-space: pre-wrap; word-break: break-word; }
.mg-photo .mg-stamp { right: 9px; bottom: 6px; }
.mg-photo .mg-stamp:not(.over) { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; opacity: .75; color: inherit; }
.alb { display: flex; flex-direction: column; gap: 3px; border-radius: 17px; overflow: hidden; }
.alb-row { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 3px; }
.alb-cell { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: rgba(0,0,0,.18); cursor: zoom-in; padding: 0; }
.alb-cell img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.alb-th { filter: blur(14px); transform: scale(1.15); }
.alb-img { animation: alb-in .45s ease both; transition: transform .5s var(--soft); }
@keyframes alb-in { from { opacity: 0; } }
.alb-busy, .alb-fail { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.8); }
.alb-cell:hover .alb-img { transform: scale(1.03); }
.viewer { position: absolute; inset: 0; z-index: 30; display: flex; align-items: center; justify-content: center; padding: 26px; background: rgba(4,4,8,.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: shade-in .25s ease both; cursor: zoom-out; }
.viewer img { max-width: 100%; max-height: 100%; border-radius: 12px; box-shadow: 0 30px 90px rgba(0,0,0,.6); animation: viewer-in .45s var(--spring) both; }
@keyframes viewer-in { from { opacity: 0; transform: scale(.86); } }
.viewer-x { position: absolute; right: 16px; top: 16px; width: 40px; height: 40px; border-radius: 99px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.14); color: #fff; }

/* ------------------------------------------------------------------ Premium: the V, names in colours, the shop tab */
.vmark { position: relative; display: inline-block; flex: none; width: var(--s); height: calc(var(--s) * .75); vertical-align: middle;
  background: linear-gradient(120deg, #6b93ff, #976fff 50%, #e46ace, #6b93ff); background-size: 300% 100%;
  -webkit-mask: url(/assets/client/void-mark.png) center / contain no-repeat; mask: url(/assets/client/void-mark.png) center / contain no-repeat;
  animation: vm-flow 5s linear infinite; }
.vmark::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.95) 50%, transparent 60%); background-size: 300% 100%; animation: vm-shine 3.6s ease-in-out infinite; }
.vmark.big { animation: vm-flow 5s linear infinite, vm-float 3.2s ease-in-out infinite; filter: drop-shadow(0 0 calc(var(--s) * .14) rgba(151,111,255,.55)); }
@keyframes vm-flow { to { background-position: -300% 0; } }
@keyframes vm-shine { 0%, 55% { background-position: 150% 0; } 100% { background-position: -50% 0; } }
@keyframes vm-float { 50% { transform: translateY(-6%) scale(1.04); } }
.es { display: inline-flex; flex: none; width: var(--s); height: var(--s); vertical-align: middle; }
.es-img { width: 100% !important; height: 100% !important; margin: 0 !important; vertical-align: top !important; object-fit: contain; animation: big-in .5s var(--spring) both; }
.nick { background: var(--ng); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.nick.flow { background-size: 200% 100%; animation: nick-flow var(--nd, 6s) linear infinite; }
@keyframes nick-flow { to { background-position: -200% 0; } }
.nl { display: inline-flex; align-items: center; gap: .35em; min-width: 0; font-weight: 800; }
.nl > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-hero { position: relative; display: flex; flex-direction: column; align-items: center; padding: 28px 16px 22px; border-radius: 22px; overflow: hidden; color: #fff; text-align: center;
  background: radial-gradient(120% 90% at 50% 0%, #2a2160 0%, #120f26 60%, #0b0a17 100%); box-shadow: inset 0 0 0 1px rgba(151,111,255,.25); }
.pm-glow { position: absolute; left: 50%; top: 40%; width: 340px; height: 340px; margin: -170px 0 0 -170px; border-radius: 99px; pointer-events: none; background: radial-gradient(closest-side, rgba(151,111,255,.55), transparent); animation: g-breathe 4s ease-in-out infinite; }
.pm-ring { position: absolute; left: 50%; top: 40%; width: 520px; height: 520px; margin: -260px 0 0 -260px; border-radius: 99px; pointer-events: none; background: repeating-conic-gradient(rgba(151,111,255,.16) 0 6deg, transparent 6deg 20deg); -webkit-mask: radial-gradient(closest-side, #000 10%, transparent 70%); mask: radial-gradient(closest-side, #000 10%, transparent 70%); animation: g-spin 40s linear infinite; }
.pm-plans { display: flex; flex-direction: column; gap: 8px; }
.pm-plan { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--seg); border: 1.5px solid transparent; transition: border-color .2s ease, background .2s ease, transform .35s var(--spring); animation: pf-tile .45s var(--spring) both; animation-delay: var(--dl, 0ms); }
.pm-plan:hover { transform: translateY(-2px); }
.pm-plan.on { border-color: #976fff; background: color-mix(in srgb, #976fff 10%, transparent); }
.pm-radio { width: 22px; height: 22px; flex: none; border-radius: 99px; display: flex; align-items: center; justify-content: center; box-shadow: inset 0 0 0 2px var(--off); color: #fff; transition: background .2s ease, box-shadow .2s ease; }
.pm-plan.on .pm-radio { background: linear-gradient(120deg, #6b93ff, #976fff, #e46ace); box-shadow: none; }
.pm-save { padding: 3px 8px; border-radius: 99px; background: linear-gradient(120deg, #6b93ff, #e46ace); color: #fff; font-size: 11.5px; font-weight: 800; }
.pm-perks { display: flex; flex-direction: column; gap: 12px; padding: 4px 2px; }
.pm-perk { display: flex; gap: 12px; align-items: flex-start; animation: rise .45s var(--out) both; animation-delay: var(--dl, 0ms); }
.pm-pi { width: 34px; height: 34px; flex: none; border-radius: 11px; display: flex; align-items: center; justify-content: center; color: #fff; background: linear-gradient(135deg, #6b93ff, #976fff, #e46ace); filter: hue-rotate(var(--h, 0deg)); box-shadow: 0 6px 16px rgba(151,111,255,.3); }
.pm-teaser { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: linear-gradient(135deg, color-mix(in srgb, #6b93ff 12%, transparent), color-mix(in srgb, #e46ace 12%, transparent)); }
.pm-btn { height: 34px; padding: 0 14px; border-radius: 99px; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; background: var(--accentgrad); color: #fff; transition: filter .2s ease, transform .3s var(--spring), opacity .2s ease; }
.pm-btn.ghost { background: var(--seg); color: var(--ink); }
.pm-btn.off { opacity: .5; cursor: default; }
.pm-btn:not(.off):active { transform: scale(.95); }
.pm-card { position: relative; width: 236px; padding: 18px 14px; border-radius: 22px; display: flex; flex-direction: column; align-items: center; gap: 6px; color: #fff; text-align: center;
  background: radial-gradient(120% 90% at 50% 0%, #2a2160 0%, #120f26 70%); box-shadow: 0 12px 30px rgba(151,111,255,.3), inset 0 0 0 1px rgba(151,111,255,.3); }
.pm-card .pm-glow { width: 200px; height: 200px; margin: -100px 0 0 -100px; top: 36%; }
.cap-s { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 800; letter-spacing: .04em; color: var(--ink3); }
.ns-prev { height: 64px; display: flex; align-items: center; justify-content: center; border-radius: 16px; background: var(--seg); }
.ns-stops { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ns-stop { position: relative; width: 34px; height: 34px; border-radius: 99px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25), 0 4px 10px rgba(0,0,0,.15); animation: pf-tile .4s var(--spring) both; }
.ns-stop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.ns-x { position: absolute; right: -4px; top: -4px; width: 17px; height: 17px; border-radius: 99px; display: flex; align-items: center; justify-content: center; background: var(--card); color: var(--ink2); box-shadow: 0 2px 6px rgba(0,0,0,.2); opacity: 0; transform: scale(.6); transition: opacity .2s ease, transform .3s var(--spring); }
.ns-stop:hover .ns-x { opacity: 1; transform: none; }
.ns-add { width: 34px; height: 34px; border-radius: 99px; display: flex; align-items: center; justify-content: center; background: var(--seg); color: var(--ink2); box-shadow: inset 0 0 0 1.5px var(--line2); }
.ns-presets { display: flex; flex-wrap: wrap; gap: 8px; }
.ns-toggle { display: inline-flex; align-items: center; gap: 9px; }
.tg { position: relative; width: 40px; height: 24px; border-radius: 99px; background: var(--off); transition: background .25s ease; }
.tg i { position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 99px; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.2); transition: transform .4s var(--spring); }
.tg.on { background: linear-gradient(120deg, #6b93ff, #976fff, #e46ace); }
.tg.on i { transform: translateX(16px); }
.ns-speed { display: inline-flex; align-items: center; gap: 6px; color: var(--ink3); }
.ns-speed input { width: 120px; accent-color: #976fff; }
.es-now { width: 44px; height: 44px; flex: none; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: var(--seg); }
.fx-chip { height: 30px; padding: 0 12px; border-radius: 99px; font-size: 12.5px; font-weight: 700; background: var(--seg); color: var(--ink2); transition: background .2s ease, color .2s ease, box-shadow .2s ease; }
.fx-chip.on { background: color-mix(in srgb, #976fff 16%, transparent); color: #976fff; box-shadow: inset 0 0 0 1.5px #976fff; }
.ttl-wrap { position: relative; display: inline-flex; }
.ttl-paint { position: absolute; right: -7px; top: -7px; width: 22px; height: 22px; border-radius: 99px; display: flex; align-items: center; justify-content: center; background: linear-gradient(120deg, #6b93ff, #976fff, #e46ace); color: #fff; box-shadow: 0 3px 8px rgba(151,111,255,.4); opacity: 0; transform: scale(.6); transition: opacity .2s ease, transform .3s var(--spring); }
.ttl-wrap:hover .ttl-paint { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ the rating */
.rt { flex: none; min-width: 26px; height: 20px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center; gap: 2px; font-size: 11.5px; font-weight: 800; color: #fff; clip-path: polygon(14% 0, 86% 0, 100% 50%, 86% 100%, 14% 100%, 0 50%); transition: transform .3s var(--spring), filter .2s ease; }
.rt:hover { transform: scale(1.08); filter: brightness(1.1); }
.rt.l1 { background: linear-gradient(135deg, #8e9aaf, #5d6b85); }
.rt.l2 { background: linear-gradient(135deg, #5ac8fa, #2f7cf6); }
.rt.l3 { background: linear-gradient(135deg, #b47bff, #6d3dff); }
.rt.l4 { background: linear-gradient(135deg, #ffcf5c, #ff8a00); }
.rt.l5 { background: linear-gradient(135deg, #ff6aa0, #ff2d55, #8e2de2); }
.rt.neg { background: #ff453a; clip-path: none; border-radius: 99px; min-width: 20px; padding: 0 4px; animation: rt-warn 2.4s ease-in-out infinite; }
@keyframes rt-warn { 50% { box-shadow: 0 0 0 4px rgba(255,69,58,.18); } }
.rt-big { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border-radius: 99px; color: #fff; font-size: 18px; font-weight: 800; background: linear-gradient(135deg, #6b93ff, #976fff); box-shadow: 0 10px 26px rgba(107,147,255,.35); animation: trv-pop .6s var(--spring) both; }
.rt-big.neg { background: #ff453a; box-shadow: 0 10px 26px rgba(255,69,58,.35); }
.rt-bar { position: relative; align-self: stretch; height: 34px; border-radius: 12px; overflow: hidden; background: var(--seg); }
.rt-fill { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, #6b93ff, #976fff); animation: rt-fill 1s var(--soft) both; }
@keyframes rt-fill { from { width: 0; } }
.rt-lv { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 13px; font-weight: 800; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.25); }
.rt-lv.right { left: auto; right: 12px; color: var(--ink2); text-shadow: none; }
.rt-row { display: flex; gap: 12px; align-items: flex-start; padding: 10px 4px; }
.rt-ic { width: 34px; height: 34px; flex: none; border-radius: 11px; display: flex; align-items: center; justify-content: center; background: var(--seg); color: var(--ink2); }
.rt-sign { padding: 1px 6px; border-radius: 6px; font-size: 10.5px; font-weight: 800; color: #fff; }
.rt-sign.plus { background: #2f7cf6; }
.rt-sign.minus { background: #8e8e93; }
.rt-val { font-size: 13px; font-weight: 800; }
.rt-val.plus { color: #30d158; }
.rt-val.minus { color: #ff453a; }

/* ------------------------------------------------------------------ the confirmation of a purchase */
.cf { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 22px 20px 18px; text-align: center; }
.cf-art { min-height: 120px; display: flex; align-items: center; justify-content: center; animation: trv-pop .6s var(--spring) both; }
.cf-to { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 5px; border-radius: 99px; background: var(--seg); font-size: 15px; font-weight: 800; animation: rise .4s var(--out) .1s both; }
.cf-q { font-size: 17px; line-height: 1.35; font-weight: 800; letter-spacing: -.01em; max-width: 320px; animation: rise .4s var(--out) .15s both; }
.cf-note { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink2); overflow-wrap: anywhere; }
.cf-btns { align-self: stretch; display: flex; gap: 8px; margin-top: 8px; }
.cf-no { flex: 1; height: 46px; border-radius: 99px; background: var(--seg); font-size: 14.5px; font-weight: 800; color: var(--ink); transition: background .2s ease, transform .3s var(--spring); }
.cf-go { flex: 1.4; width: 100%; height: 46px; border-radius: 99px; display: flex; align-items: center; justify-content: center; gap: 7px; background: var(--accentgrad); color: #fff; font-size: 14.5px; font-weight: 800; box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 30%, transparent); transition: filter .2s ease, transform .3s var(--spring); }
.cf-go.ghost { background: var(--seg); color: var(--ink); box-shadow: none; }
.cf-go:active, .cf-no:active { transform: scale(.96); }
.mg-typing.light i { background: #fff; }

/* ------------------------------------------------------------------ walls */
.wl-new { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 18px; background: var(--seg); }
.wl-in { width: 100%; resize: none; padding: 10px 12px; border-radius: 13px; background: var(--field); border: 1px solid var(--line); font: inherit; font-size: 14px; line-height: 1.5; font-weight: 500; color: var(--ink); transition: border-color .2s ease, box-shadow .2s ease; }
.wl-tool { width: 34px; height: 34px; border-radius: 99px; display: flex; align-items: center; justify-content: center; color: var(--ink2); }
.wl-post { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 18px; background: var(--seg); animation: pf-tile .5s var(--spring) both; animation-delay: var(--dl, 0ms); }
.wl-when { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--ink3); white-space: nowrap; }
.wl-pin { display: inline-flex; align-items: center; gap: 3px; color: var(--accent); font-weight: 800; }
.wl-text { font-size: 14.5px; line-height: 1.55; font-weight: 500; white-space: pre-wrap; overflow-wrap: anywhere; }
.wl-text.sm { font-size: 13.5px; }
.wl-more { width: 32px; height: 32px; border-radius: 99px; display: flex; align-items: center; justify-content: center; color: var(--ink3); }
.wl-menu { position: absolute; right: 0; top: 36px; z-index: 5; min-width: 190px; padding: 5px; border-radius: 14px; background: var(--menu); border: 1px solid var(--line); box-shadow: 0 18px 44px rgba(0,0,0,.22); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.wl-menu button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; font-size: 13.5px; font-weight: 700; text-align: left; transition: background .15s ease; }
.wl-menu button:hover { background: var(--seg); }
.wl-menu button.danger { color: #e5484d; }
.wl-foot { display: flex; gap: 6px; }
.wl-act { height: 32px; padding: 0 12px 0 9px; border-radius: 99px; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; color: var(--ink2); background: var(--card); transition: color .2s ease, background .2s ease, transform .3s var(--spring); }
.wl-act:active { transform: scale(.92); }
.wl-act.on { color: #ff375f; background: color-mix(in srgb, #ff375f 12%, transparent); }
.wl-act.on .ms { animation: wl-like .5s var(--spring); }
@keyframes wl-like { 40% { transform: scale(1.35); } }
.wl-act.sel { color: var(--accent); }
.wl-cs { display: flex; flex-direction: column; gap: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.wl-c { display: flex; gap: 10px; }
.wl-re { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: var(--accent); }
.wl-re button { display: flex; color: var(--ink3); }
.wl-link { font-size: 12.5px; font-weight: 700; color: var(--ink3); transition: color .2s ease; text-align: left; }
.wl-link:hover { color: var(--accent); }
.wl-link.danger:hover { color: #e5484d; }
.wl-cin { display: flex; align-items: flex-end; gap: 8px; }
.wl-cin input { width: 100%; height: 36px; padding: 0 12px; border-radius: 99px; background: var(--field); border: 1px solid var(--line); font: inherit; font-size: 13.5px; font-weight: 500; color: var(--ink); }
.wl-older { height: 38px; border-radius: 12px; background: var(--seg); font-size: 13px; font-weight: 700; color: var(--accent); }
.wl-seg { display: flex; gap: 2px; padding: 3px; border-radius: 11px; background: var(--seg); }
.wl-seg button { flex: 1; height: 30px; border-radius: 8px; font-size: 13px; font-weight: 700; color: var(--ink2); transition: background .25s ease, color .2s ease, box-shadow .25s ease; }
.wl-seg button.on { background: var(--segon); color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.12); }

/* ------------------------------------------------------------------ packs */
.pk-new { display: flex; gap: 8px; }
.pk-new input, .pk-title { flex: 1; min-width: 0; height: 40px; padding: 0 13px; border-radius: 12px; background: var(--field); border: 1px solid var(--line); font: inherit; font-size: 14px; font-weight: 700; color: var(--ink); }
.pk-back { width: 36px; height: 36px; flex: none; border-radius: 99px; display: flex; align-items: center; justify-content: center; color: var(--ink2); }
.pk-row { width: 100%; display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 14px; transition: background .2s ease; animation: rise .4s var(--out) both; animation-delay: var(--dl, 0ms); }
.pk-cover { width: 46px; height: 46px; flex: none; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--seg); overflow: hidden; }
.pk-cover img { width: 86%; height: 86%; object-fit: contain; }
.pk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.pk-grid.em { grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); }
.pk-item { position: relative; aspect-ratio: 1; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: var(--seg); padding: 8px; }
.pk-item img { width: 100%; height: 100%; object-fit: contain; }
.pk-item .spin-ring { border-color: var(--line2); border-top-color: var(--accent); }
.pk-x { position: absolute; right: 4px; top: 4px; width: 20px; height: 20px; border-radius: 99px; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.55); color: #fff; opacity: 0; transition: opacity .2s ease; }
.pk-item:hover .pk-x { opacity: 1; }
.pk-add { aspect-ratio: 1; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: transparent; box-shadow: inset 0 0 0 1.5px var(--line2); color: var(--accent); font-size: 12px; font-weight: 800; }
.pk-del { height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; gap: 7px; background: rgba(229,72,77,.1); color: #d93036; font-size: 13.5px; font-weight: 700; }
