:root {
  --bg: #212121; --chatbg: #0f0f0f; --bg2: #2c2c2c; --hover: #2a2a2a; --line: #101010;
  --text: #fff; --muted: #8d8d8d; --accent: #5ba0e0; --active: #2b5278;
  --in: #212121; --out: #303036; --danger: #e5484d; --shadow: 0 10px 40px rgba(0,0,0,.5);
}
:root[data-theme="light"] {
  --bg: #fff; --chatbg: #e6ebee; --bg2: #f1f3f4; --hover: #f1f3f4; --line: #dfe1e5;
  --text: #000; --muted: #707579; --accent: #3390ec; --active: #3390ec;
  --in: #fff; --out: #eeffde; --shadow: 0 10px 40px rgba(0,0,0,.2);
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { background: var(--chatbg); color: var(--text); font: 15px/1.4 -apple-system, "Segoe UI", Roboto, sans-serif; overflow: hidden; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, textarea, select { font: inherit; color: var(--text); }
::-webkit-scrollbar { width: 6px; } ::-webkit-scrollbar-thumb { background: #4443; border-radius: 3px; }
body.resizing { cursor: col-resize; user-select: none; }

/* авторизация */
#auth { height: 100%; display: grid; place-items: center; background: var(--chatbg); }
.auth-card { width: 340px; padding: 28px; background: var(--bg); border-radius: 16px; display: flex; flex-direction: column; gap: 12px; text-align: center; animation: pop .25s ease; }
.auth-card .logo { font-size: 48px; } .auth-card h1 { margin: 0 0 8px; font-size: 22px; }
.auth-card input, .field input, .field textarea, .field select { width: 100%; padding: 12px 14px; background: var(--bg2); border: 1px solid transparent; border-radius: 10px; outline: none; }
.auth-card input:focus, .field input:focus, .field textarea:focus { border-color: var(--accent); }
#regOnly { display: flex; flex-direction: column; gap: 12px; }
.err { color: var(--danger); min-height: 18px; font-size: 13px; }
.primary { background: var(--accent); color: #fff; padding: 12px; border-radius: 10px; font-weight: 600; }
.auth-sub { color: var(--muted); font-size: 14px; margin: -4px 0 4px; min-height: 18px; line-height: 1.35; }
.auth-step { display: flex; flex-direction: column; gap: 12px; }
.auth-step[hidden] { display: none; }
.auth-hint { color: var(--muted); font-size: 12px; }
.code-input { text-align: center; font-size: 24px; letter-spacing: 8px; }
.auth-card a.disabled { color: var(--muted); pointer-events: none; }
.auth-card a { color: var(--accent); font-size: 13px; text-decoration: none; }

/* каркас */
#app { height: 100%; display: flex; }
#side { width: 380px; min-width: 240px; background: var(--bg); display: flex; flex-direction: column; flex-shrink: 0; }
#resizer { width: 4px; margin-left: -2px; cursor: col-resize; z-index: 5; flex-shrink: 0; background: var(--line); }
#resizer:hover, #resizer.dragging { background: var(--accent); }
.side-top { display: flex; gap: 6px; padding: 8px 12px; align-items: center; }
#search { flex: 1; padding: 9px 16px; border-radius: 22px; border: 1px solid transparent; background: var(--bg2); outline: none; }
#search:focus { border-color: var(--accent); }
.icon { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 19px; flex-shrink: 0; transition: background .15s; }
.icon:hover { background: var(--hover); }
.tabs { display: flex; padding: 0 8px; border-bottom: 1px solid var(--line); }
.tabs button { flex: 1; padding: 9px 4px; color: var(--muted); font-weight: 600; font-size: 14px; border-bottom: 2px solid transparent; transition: .15s; }
.tabs button.on { color: var(--accent); border-color: var(--accent); }
#chatList { overflow-y: auto; flex: 1; padding: 4px; }
.chat-item { display: flex; gap: 12px; padding: 9px 10px; cursor: pointer; align-items: center; border-radius: 10px; transition: background .12s; animation: fade .25s ease; }
.chat-item:hover { background: var(--hover); }
.chat-item.active { background: var(--active); color: #fff; } .chat-item.active .lm, .chat-item.active .tm { color: #ffffffb0; }
.chat-item .mid { flex: 1; min-width: 0; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.nm { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm { color: var(--muted); font-size: 12px; display: flex; align-items: center; gap: 3px; flex-shrink: 0; }
.lm { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badge { background: var(--accent); color: #fff; border-radius: 12px; min-width: 22px; padding: 0 7px; text-align: center; font-size: 12px; line-height: 22px; font-weight: 600; animation: pop .2s; }
.hint { padding: 14px 20px; font-size: 13px; color: var(--muted); }
.avatar { border-radius: 50%; display: grid; place-items: center; font-weight: 600; color: #fff; flex-shrink: 0; position: relative; }
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.avatar.ch { border-radius: 30%; } .avatar.ch img { border-radius: 30%; }
.dot { position: absolute; right: 1px; bottom: 1px; width: 12px; height: 12px; background: #4cd964; border: 2px solid var(--bg); border-radius: 50%; }
.tick { width: 16px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; color: var(--muted); }
.tick.read { color: var(--accent); animation: pop .3s; }
.chat-item.active .tick { color: #fff; }

/* чат */
#chat { flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--chatbg); }
.empty { margin: auto; color: var(--muted); background: #0006; padding: 4px 14px; border-radius: 16px; font-size: 14px; }
#chatView { display: flex; flex-direction: column; height: 100%; }
#chatHead { display: flex; gap: 12px; align-items: center; padding: 7px 16px; background: var(--bg); cursor: pointer; border-bottom: 1px solid var(--line); min-height: 56px; }
#chatHead .st { font-size: 13px; color: var(--muted); } #chatHead .st.on { color: var(--accent); }
#msgs { flex: 1; overflow-y: auto; padding: 12px 16px; display: flex; flex-direction: column; gap: 3px; scroll-behavior: smooth; }
.day { align-self: center; background: #0008; color: #fff; font-size: 13px; font-weight: 500; padding: 2px 12px; border-radius: 14px; margin: 8px 0; position: sticky; top: 0; z-index: 1; }
.msg { position: relative; max-width: 75%; padding: 6px 10px 5px 12px; border-radius: 14px 14px 14px 4px; background: var(--in); word-wrap: break-word; overflow-wrap: anywhere; white-space: pre-wrap; align-self: flex-start; transform-origin: bottom left; }
.msg.out { background: var(--out); align-self: flex-end; border-radius: 14px 14px 4px 14px; transform-origin: bottom right; }
.msg.post { max-width: 85%; }
.msg.new { animation: msgIn .24s cubic-bezier(.2,.9,.3,1.2); }
.msg.removing { animation: msgOut .3s ease forwards; pointer-events: none; overflow: hidden; }
.msg .meta { float: right; margin: 6px 0 -2px 10px; font-size: 11px; color: #ffffff80; display: inline-flex; align-items: center; gap: 3px; user-select: none; }
:root[data-theme="light"] .msg .meta { color: #0007; } :root[data-theme="light"] .day { background: #0005; }
.msg .mm { position: absolute; top: 2px; right: 4px; width: 22px; height: 22px; border-radius: 50%; background: var(--bg); opacity: 0; font-size: 13px; transition: .15s; }
.msg:hover .mm { opacity: .9; }
.msg.gift { text-align: center; padding: 16px 28px 8px; min-width: 190px; white-space: normal; background: linear-gradient(160deg, #2a2145, #1c2a4a); color: #fff; }
.msg.gift .meta { float: none; justify-content: center; display: flex; margin-top: 4px; }
.gift-emoji { font-size: 64px; line-height: 1.1; animation: pop .6s ease; display: block; }
.gift-title { font-weight: 600; margin-top: 4px; } .gift-sub { font-size: 13px; opacity: .7; } .gift-note { margin-top: 6px; font-size: 14px; }
.msg.voice { white-space: normal; } .voice-label { font-size: 13px; margin-bottom: 4px; } .voice-label span { color: var(--muted); }
.msg.voice audio { width: 240px; max-width: 100%; height: 36px; }
#composer { display: flex; gap: 6px; padding: 8px 12px; background: transparent; align-items: center; }
#msgInput { flex: 1; padding: 12px 18px; border-radius: 22px; border: 0; background: var(--bg); outline: none; }
.send { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: #fff; transition: transform .15s; } .send:active { transform: scale(.9); }
.record-btn.recording { background: var(--danger); animation: pulse 1s infinite; }
.record-status { color: var(--danger); font-size: 13px; }
#joinBar { padding: 10px; background: var(--bg); text-align: center; }
#joinBar button { color: var(--accent); font-weight: 600; padding: 8px 40px; }
#typing { }

/* меню */
#scrim { position: fixed; inset: 0; background: #0008; z-index: 40; animation: fade .2s; }
#drawer { position: fixed; left: 0; top: 0; bottom: 0; width: 290px; max-width: 85vw; background: var(--bg); z-index: 41; transform: translateX(-102%); transition: transform .25s cubic-bezier(.2,.8,.2,1); display: flex; flex-direction: column; padding-bottom: 10px; }
body.menu #drawer { transform: none; box-shadow: var(--shadow); }
.d-head { padding: 18px 16px 14px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.d-head .n { font-weight: 600; margin-top: 10px; } .d-head .s { color: var(--muted); font-size: 13px; }
#drawer > button { display: flex; align-items: center; gap: 22px; padding: 12px 20px; text-align: left; transition: background .12s; }
#drawer > button:hover { background: var(--hover); } #drawer i { font-style: normal; width: 22px; text-align: center; }
#drawer .danger { color: var(--danger); margin-top: auto; }
.sw { margin-left: auto; width: 34px; height: 18px; border-radius: 9px; background: #666; position: relative; transition: .2s; }
.sw::after { content: ""; position: absolute; left: 2px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: .2s; }
.sw.on { background: var(--accent); } .sw.on::after { transform: translateX(16px); }

/* центральные окна */
#modal { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: grid; place-items: center; z-index: 50; animation: fade .2s; backdrop-filter: blur(2px); }
.sheet { width: 420px; max-width: 94vw; max-height: 90vh; overflow-y: auto; background: var(--bg); border-radius: 16px; position: relative; box-shadow: var(--shadow); animation: pop .22s cubic-bezier(.2,.9,.3,1.1); }
#modal.closing { animation: fadeOut .15s forwards; } #modal.closing .sheet { animation: popOut .15s forwards; }
.sheet-head { display: flex; align-items: center; gap: 12px; padding: 12px 14px; position: sticky; top: 0; background: var(--bg); z-index: 2; }
.sheet-head h2 { flex: 1; margin: 0; font-size: 17px; }
.p-top { text-align: center; padding: 6px 16px 14px; } .p-top .avatar { margin: 0 auto 10px; }
.p-name { font-size: 19px; font-weight: 600; } .p-status { font-size: 14px; color: var(--muted); } .p-status.on { color: var(--accent); }
.sep { height: 8px; background: var(--chatbg); }
.row-info { padding: 8px 20px; } .row-info .v { word-break: break-word; } .row-info .l { font-size: 13px; color: var(--muted); }
.list-row { display: flex; align-items: center; gap: 18px; padding: 12px 20px; cursor: pointer; transition: background .12s; }
.list-row:hover { background: var(--hover); } .list-row .ic { width: 24px; text-align: center; } .list-row .grow { flex: 1; min-width: 0; } .list-row .cnt { color: var(--muted); }
.p-actions, .edit-actions { display: flex; gap: 8px; padding: 14px 16px; }
.btn { flex: 1; padding: 11px; border-radius: 10px; background: var(--bg2); font-weight: 600; transition: filter .15s; } .btn:hover { filter: brightness(1.15); }
.btn.accent { background: var(--accent); color: #fff; } .btn.danger-btn { color: var(--danger); }
.edit-av { position: relative; width: 100px; margin: 4px auto 6px; }
.edit-av .cam { position: absolute; right: -4px; bottom: -4px; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; border: 3px solid var(--bg); cursor: pointer; }
.field { padding: 5px 16px; } .field label { display: block; font-size: 12px; color: var(--muted); margin: 6px 4px; } .field .cnt { float: right; }
.gift-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 4px 16px 10px; }
.gift-card { background: var(--bg2); border-radius: 12px; padding: 12px 6px; text-align: center; border: 2px solid transparent; transition: .15s; }
.gift-card:hover { transform: translateY(-2px); } .gift-card.sel { border-color: var(--accent); }
.gift-card .em { font-size: 40px; } .gift-card .nm { font-size: 13px; } .gift-card .pr { font-size: 12px; color: #e8a400; } .gift-card .fr { font-size: 11px; color: var(--muted); }
.setting-row { display: flex; align-items: center; gap: 12px; padding: 10px 20px; cursor: pointer; }
.setting-row span { flex: 1; } .setting-row b { display: block; font-weight: 500; } .setting-row small { color: var(--muted); font-size: 12px; }
.setting-row select { background: var(--bg2); border: 0; border-radius: 8px; padding: 6px 8px; } .setting-row input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--accent); }
.settings-title { padding: 10px 20px 2px; color: var(--accent); font-weight: 600; font-size: 14px; }
.contact-search { padding: 0 16px 8px; }

#ctx { position: fixed; z-index: 60; background: var(--bg); border-radius: 10px; padding: 4px; min-width: 160px; box-shadow: var(--shadow); animation: pop .12s; }
#ctx button { display: block; width: 100%; text-align: left; padding: 8px 14px; border-radius: 6px; } #ctx button:hover { background: var(--hover); } #ctx .del { color: var(--danger); }
#toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(80px); background: #333; color: #fff; padding: 10px 18px; border-radius: 20px; transition: .25s; z-index: 70; opacity: 0; pointer-events: none; }
#toast.show { transform: translateX(-50%); opacity: 1; }
body.compact .msg { padding-top: 3px; padding-bottom: 3px; } body.compact #msgs { gap: 1px; }

@keyframes pop { from { transform: scale(.92); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes popOut { to { transform: scale(.92); opacity: 0; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } } @keyframes fadeOut { to { opacity: 0; } }
@keyframes msgIn { from { opacity: 0; transform: translateY(14px) scale(.85); } to { opacity: 1; transform: none; } }
@keyframes msgOut { 0% { max-height: 400px; } 60% { opacity: 0; transform: scale(.7) translateX(30px); } 100% { opacity: 0; max-height: 0; padding: 0; margin: 0 0 -3px; transform: scale(.7); } }
@keyframes pulse { 50% { opacity: .55; } }

@media (max-width: 700px) {
  #side { width: 100% !important; } #resizer { display: none; } #chat { display: none; }
  body.in-chat #side { display: none; } body.in-chat #chat { display: flex; }
}

/* ответы, пересылка, файлы, реакции */
.sname { font-size: 13px; font-weight: 600; margin-bottom: 1px; }
.fwd { font-size: 13px; color: var(--accent); margin-bottom: 2px; }
.rq { border-left: 3px solid var(--accent); padding: 2px 8px; margin: 2px 0 4px; background: #ffffff0f; border-radius: 4px; cursor: pointer; display: block; font-size: 13px; }
.rq b { display: block; color: var(--accent); } .rq span { display: block; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.pic { display: block; max-width: min(320px, 100%); max-height: 320px; border-radius: 10px; cursor: zoom-in; margin: 2px 0; }
.file { display: flex; gap: 10px; align-items: center; color: inherit; text-decoration: none; padding: 2px 0; }
.file .fi { width: 42px; height: 42px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; font-size: 20px; flex-shrink: 0; }
.file b { display: block; font-weight: 500; word-break: break-all; } .file small { opacity: .6; }
.rx { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; clear: both; } .rx:empty { display: none; }
.chip { background: #ffffff1a; border-radius: 12px; padding: 1px 8px; font-size: 13px; transition: .15s; animation: pop .2s; }
.chip.mine { background: var(--accent); color: #fff; }
.msg.flash { animation: flash 1.2s; }
@keyframes flash { 0%, 60% { box-shadow: 0 0 0 3px var(--accent); } 100% { box-shadow: 0 0 0 0 transparent; } }
.rxbar { display: flex; gap: 2px; padding: 2px 2px 4px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
#ctx .rxbar button { width: auto; padding: 4px 6px; font-size: 18px; }
#replyBar { display: flex; align-items: center; gap: 8px; padding: 6px 14px; margin: 0 12px; background: var(--bg); border-radius: 14px 14px 0 0; border-left: 3px solid var(--accent); animation: fade .15s; }
#replyBar .rb { flex: 1; min-width: 0; font-size: 13px; } #replyBar b { color: var(--accent); display: block; } #replyBar span { display: block; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#chat.drop { outline: 2px dashed var(--accent); outline-offset: -8px; }

/* ===== продажа подарков, стикеры, звонки ===== */
.sell-btn { display: block; width: 100%; margin: 8px 0 2px; padding: 8px 14px; background: var(--accent); color: #fff; flex: none; }
.msg.gift.sold { opacity: .8; }
.msg.stk-msg { background: transparent !important; padding: 2px 4px; box-shadow: none; }
.stk.sticker { width: 170px; height: 170px; object-fit: contain; display: block; }
.stk.emoji { width: 56px; height: 56px; object-fit: contain; display: block; }
#chatView { position: relative; }
#stickerPanel { position: absolute; left: 12px; bottom: 70px; width: 340px; max-width: calc(100% - 24px); height: 320px; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); display: flex; flex-direction: column; z-index: 20; }
.sp-tabs { display: flex; border-bottom: 1px solid var(--line); }
.sp-tabs button { flex: 1; padding: 10px 4px; font-size: 14px; opacity: .6; border-bottom: 2px solid transparent; }
.sp-tabs button.on { opacity: 1; border-bottom-color: var(--accent); } .sp-tabs .mk { color: var(--accent); opacity: 1; }
.sp-grid { flex: 1; overflow-y: auto; padding: 8px; display: grid; gap: 6px; align-content: start; }
.sp-grid.uni { grid-template-columns: repeat(8, 1fr); } .sp-grid.uni button { font-size: 22px; padding: 4px 0; border-radius: 8px; } .sp-grid.uni button:hover { background: var(--hover); }
.sp-grid.sticker { grid-template-columns: repeat(3, 1fr); } .sp-grid.emoji { grid-template-columns: repeat(6, 1fr); }
.sp-item { position: relative; } .sp-item img { width: 100%; aspect-ratio: 1; object-fit: contain; cursor: pointer; border-radius: 8px; } .sp-item img:hover { background: var(--hover); }
.sp-item i { position: absolute; top: 0; right: 0; font-style: normal; font-size: 11px; background: var(--danger); color: #fff; width: 18px; height: 18px; border-radius: 50%; display: none; place-items: center; cursor: pointer; } .sp-item:hover i { display: grid; }
.sp-empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 40px 14px; font-size: 14px; line-height: 1.5; }
.mk-body { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 14px 20px 20px; }
.mk-pick { width: 100%; text-align: center; cursor: pointer; }
#mkPrev { width: 200px; height: 200px; border-radius: 12px; background: repeating-conic-gradient(#8885 0% 25%, transparent 0% 50%) 50% / 20px 20px; }
.mk-opts { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; font-size: 14px; } .mk-hint { color: var(--muted); text-align: center; }
.set-prof { display: flex; align-items: center; gap: 14px; padding: 14px 20px; }
#callUI { position: fixed; inset: 0; z-index: 100; background: #101418; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 40px 20px; color: #fff; }
#cRemote { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; background: #101418; }
#cLocal { position: absolute; right: 16px; bottom: 120px; width: 120px; aspect-ratio: 3/4; object-fit: cover; border-radius: 12px; z-index: 2; border: 2px solid #fff6; transform: scaleX(-1); }
.c-top { z-index: 1; text-align: center; text-shadow: 0 1px 6px #0008; } .c-name { font-size: 26px; font-weight: 600; margin-top: 12px; } .c-state { opacity: .85; margin-top: 4px; }
.c-btns { z-index: 3; display: flex; gap: 22px; }
.c-btns button { width: 64px; height: 64px; border-radius: 50%; font-size: 26px; background: #ffffff30; color: #fff; display: grid; place-items: center; }
.c-btns .c-end { background: #e5484d; } .c-btns .c-acc { background: #3ab36b; }

.c-dbg { font-size: 11px; opacity: .55; margin-top: 6px; }

/* ===== звонки в чате, закреп, поиск, сеансы ===== */
.sysmsg { align-self: center; margin: 8px auto; padding: 4px 12px; border-radius: 12px; background: var(--bg3, #ffffff14); color: var(--muted); font-size: 12.5px; text-align: center; max-width: 80%; }
.callmsg { align-self: flex-start; display: flex; gap: 10px; align-items: center; padding: 8px 14px; border-radius: 14px; background: var(--in, var(--bg3)); margin: 2px 0; }
.callmsg > span { font-size: 22px; } .callmsg b { display: block; font-size: 14px; } .callmsg small { color: var(--muted); }
.callmsg.missed b { color: var(--danger); }
.forgot { align-self: flex-end; font-size: 13px; margin-top: -4px; }
#pinBar { display: flex; gap: 10px; align-items: center; padding: 7px 16px; border-bottom: 1px solid var(--line); background: var(--bg); cursor: pointer; }
#pinBar b { display: block; font-size: 12.5px; color: var(--accent); } #pinBar small { color: var(--muted); display: block; max-width: 70vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qres { max-height: 46vh; overflow-y: auto; }
.qitem { padding: 10px 20px; cursor: pointer; display: grid; gap: 2px; } .qitem:hover { background: var(--hover); }
.qitem b { font-size: 13px; color: var(--accent); } .qitem small { color: var(--muted); }
.msg.flash, .callmsg.flash { animation: flashbg 1.4s; } @keyframes flashbg { 0%, 60% { outline: 2px solid var(--accent); } 100% { outline: 2px solid transparent; } }

.repcard { padding: 12px 20px; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.repsnap { background: var(--bg3, #ffffff10); border-radius: 8px; padding: 6px 10px; font-size: 13px; overflow-wrap: anywhere; }
.repbtns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; } .repbtns .btn { flex: 0 0 auto; padding: 7px 12px; }

/* ===== Lyric: значки, подарки-картинки, фото с подписью ===== */
.svgic { display: block; flex-shrink: 0; }
#drawer button i { display: grid; place-items: center; font-style: normal; }
.list-row .ic { display: grid; place-items: center; color: var(--muted); }
.gimg { object-fit: contain; display: block; margin: 0 auto; }
.gift-card .em { display: grid; place-items: center; min-height: 64px; }
.gift-card .sell-btn { margin-top: 8px; padding: 6px 8px; font-size: 12.5px; width: 100%; }
.msg .cap { margin-top: 6px; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg .pic { cursor: zoom-in; display: block; max-width: 100%; border-radius: 10px; }
.imgprev .ip-box { padding: 4px 16px 8px; } .imgprev .ip-box img { display: block; max-width: 100%; max-height: 50vh; margin: 0 auto; border-radius: 12px; }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.88); display: grid; place-items: center; cursor: zoom-out; }
.lightbox img { max-width: 96vw; max-height: 94vh; object-fit: contain; border-radius: 6px; }
.logo img { width: 76px; height: 76px; border-radius: 18px; display: block; margin: 0 auto; }
.icon.kick { color: var(--danger); flex: none; }
