:root {
	--bg: #0b0d10;
	--panel: #111317;
	--panel-2: #171a1f;
	--panel-3: #1e2228;
	--line: #1a1e24;
	--line-soft: #262b32;
	--text: #eceef2;
	--text-2: #aab0ba;
	--muted: #8a909b;
	--accent: #4f8ccf;
	--accent-2: #6fb3f5;
	--out: #27486c;
	--in: #171a1f;
	--red: #e53935;
	--red-2: #c62828;
	--green: #4caf50;
	--yellow: #e8b73b;
	--shadow: 0 8px 30px rgba(0, 0, 0, .45);
	--radius: 14px;
	--side-w: 340px;
	--notifs-w: 340px;
	--safe-top: env(safe-area-inset-top, 0px);
	--safe-bottom: env(safe-area-inset-bottom, 0px);
	--vh: 100dvh;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 15px;
	color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); height: 100%; overflow: hidden; overscroll-behavior: none; }
body { -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
svg { width: 24px; height: 24px; fill: currentColor; display: block; }
.hidden { display: none !important; }

.app { height: var(--vh); width: 100%; position: relative; overflow: hidden; }

/* ---------- login ---------- */
.login { height: 100%; display: flex; align-items: center; justify-content: center; padding: 24px; }
.login-card { width: 100%; max-width: 360px; background: var(--panel); border-radius: 20px; padding: 28px 24px; box-shadow: var(--shadow); text-align: center; animation: pop .25s ease-out; }
.login-logo { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 20px; background: linear-gradient(135deg, var(--accent-2), var(--accent)); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 34px; color: #fff; }
.login h1 { margin: 0 0 8px; font-size: 22px; letter-spacing: .5px; }
.login-text { margin: 0 0 18px; color: var(--text-2); font-size: 14px; line-height: 1.4; }
.login-input { width: 100%; background: var(--panel-2); border: 1px solid var(--line-soft); border-radius: 12px; padding: 13px 14px; font-size: 17px; letter-spacing: 1px; text-align: center; outline: none; transition: border-color .15s; }
.login-input:focus { border-color: var(--accent); }
.login-error { min-height: 20px; margin-top: 12px; color: #ff8a80; font-size: 14px; }
.btn { border-radius: 12px; padding: 12px 18px; font-weight: 600; transition: filter .15s, transform .05s; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { filter: brightness(1.1); }
.btn-wide { width: 100%; margin-top: 14px; }
.btn-danger { background: var(--red); color: #fff; }
.btn-ghost { background: var(--panel-3); color: var(--text); }

/* ---------- layout ---------- */
.main { height: 100%; display: grid; grid-template-columns: var(--side-w) 1fr; grid-template-rows: minmax(0, 1fr); position: relative; }
.main.with-notifs { grid-template-columns: var(--side-w) 1fr var(--notifs-w); }
.side { background: var(--panel); border-right: 1px solid var(--line); display: flex; flex-direction: column; min-width: 0; min-height: 0; padding-top: var(--safe-top); }
.chat { position: relative; min-width: 0; min-height: 0; display: flex; flex-direction: column; background: var(--bg); }
.notifs { background: var(--panel); border-left: 1px solid var(--line); display: none; flex-direction: column; min-width: 0; min-height: 0; padding-top: var(--safe-top); }
.main.with-notifs .notifs { display: flex; }

.side-head, .chat-head, .notifs-head { height: 56px; flex: none; display: flex; align-items: center; gap: 8px; padding: 0 10px 0 14px; border-bottom: 1px solid var(--line); background: var(--panel); }
.brand { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.brand-logo { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, var(--accent-2), var(--accent)); display: flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; }
.brand-name { font-weight: 700; letter-spacing: .4px; }
.side-tools { display: flex; gap: 2px; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--text-2); position: relative; transition: background .15s, color .15s; flex: none; }
.icon-btn:hover { background: rgba(255, 255, 255, .06); color: var(--text); }
.icon-btn.back { display: none; }
.badge { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.conn { flex: none; padding: 8px 14px; background: #4a2a2a; color: #ffb4a8; font-size: 13px; text-align: center; }
.conn.ok { background: #1f3b2a; color: #9be7a4; }

/* ---------- dialogs ---------- */
.dialogs { flex: 1; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.row { display: flex; gap: 12px; padding: 9px 12px; cursor: pointer; position: relative; border-left: 3px solid transparent; transition: background .12s; animation: fade .2s ease-out; }
.row.still { animation: none; }
.row:hover { background: rgba(255, 255, 255, .04); }
.row.active { background: var(--accent); border-left-color: transparent; }
.row.active .row-sub, .row.active .row-time, .row.active .num-badge, .row.active .mark-chip { color: #fff; }
.row.marked { border-left-color: var(--mark, var(--red)); background: color-mix(in srgb, var(--mark, var(--red)) 11%, transparent); }
.row.marked.active { background: var(--accent); }
.avatar { width: 54px; height: 54px; border-radius: 50%; flex: none; background: var(--panel-3); display: flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; font-size: 20px; position: relative; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; }
.avatar-sm { width: 38px; height: 38px; font-size: 15px; }
.avatar .timer-badge { position: absolute; top: -4px; left: -6px; z-index: 1; background: var(--panel); color: var(--text); font-size: 10px; font-weight: 700; padding: 1px 5px; border-radius: 8px; border: 1px solid var(--red); line-height: 14px; }
.avatar .timer-badge.fired { background: var(--red); border-color: var(--red); }
.row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 3px; }
.row-top { display: flex; align-items: center; gap: 6px; min-width: 0; }
.row-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; }
.row-time { color: var(--muted); font-size: 12px; flex: none; }
.row-bottom { display: flex; align-items: center; gap: 6px; min-width: 0; }
.row-sub { color: var(--text-2); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; }
.row-sub.typing { color: var(--accent-2); }
.row-sub .you { color: var(--muted); }
.unread { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex: none; }
.row.active .unread { background: #fff; color: var(--accent); }
.unread.muted { background: var(--muted); }
.num-badge { flex: none; font-size: 11px; font-weight: 700; color: var(--accent-2); background: rgba(82, 136, 193, .18); padding: 1px 6px; border-radius: 8px; }
.mark-chip { flex: none; font-size: 11px; font-weight: 700; color: var(--mark, var(--red)); background: color-mix(in srgb, var(--mark, var(--red)) 22%, transparent); padding: 1px 7px; border-radius: 8px; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bell-mark { flex: none; color: var(--yellow); display: flex; }
.bell-mark svg { width: 15px; height: 15px; }

.empty { padding: 40px 24px; text-align: center; color: var(--muted); }
.empty-title { font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.empty-text { font-size: 14px; line-height: 1.4; }

/* ---------- chat ---------- */
.chat-empty { flex: 1; display: flex; align-items: center; justify-content: center; }
.chat-empty-card { background: rgba(255, 255, 255, .06); padding: 8px 16px; border-radius: 16px; color: var(--text-2); font-size: 14px; }
.chat-body { flex: 1; display: flex; flex-direction: column; min-height: 0; position: relative; }
.chat-head { padding-top: var(--safe-top); height: calc(56px + var(--safe-top)); }
.chat-title { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.chat-name-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.chat-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-sub { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; gap: 8px; align-items: center; }
.chat-sub .typing { color: var(--accent-2); }
.chat-sub .mark-chip { font-size: 11px; }

.messages { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 10px 12px 8px; background: radial-gradient(1200px 600px at 50% -200px, #16243a 0%, var(--bg) 60%); }
.messages-list { display: flex; flex-direction: column; gap: 4px; max-width: 920px; margin: 0 auto; }
.load-more { text-align: center; color: var(--accent-2); font-size: 13px; padding: 8px; cursor: pointer; }
.day { align-self: center; background: rgba(0, 0, 0, .35); color: var(--text-2); font-size: 12px; padding: 4px 10px; border-radius: 10px; margin: 8px 0 4px; }
.msg { display: flex; flex-direction: column; max-width: 78%; align-self: flex-start; animation: pop .18s ease-out; }
.msg.out { align-self: flex-end; }
.msg.svc { align-self: center; max-width: 90%; }
.bubble { background: var(--in); border-radius: 16px 16px 16px 4px; padding: 7px 10px 6px; position: relative; word-wrap: break-word; overflow-wrap: anywhere; white-space: pre-wrap; line-height: 1.35; box-shadow: 0 1px 1px rgba(0, 0, 0, .25); }
.msg.out .bubble { background: var(--out); border-radius: 16px 16px 4px 16px; }
.msg.svc .bubble { background: rgba(0, 0, 0, .35); border-radius: 12px; font-size: 13px; color: var(--text-2); text-align: center; white-space: normal; }
.bubble a { color: var(--accent-2); }
.bubble code { background: rgba(0, 0, 0, .3); padding: 1px 4px; border-radius: 4px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; }
.bubble pre { background: rgba(0, 0, 0, .3); padding: 6px 8px; border-radius: 8px; overflow-x: auto; margin: 4px 0; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; white-space: pre-wrap; }
.meta { display: inline-flex; align-items: center; gap: 4px; float: right; margin: 6px 0 -3px 8px; font-size: 11px; color: rgba(255, 255, 255, .55); white-space: nowrap; }
.msg.out .meta { color: rgba(255, 255, 255, .7); }
.meta .tick { width: 15px; height: 12px; }
.meta .tick.read { color: #8fe0ff; }
.meta .tick.failed { color: #ff8a80; }
.meta .edited { font-style: italic; }
.reply { border-left: 2px solid var(--accent-2); padding: 2px 8px; margin: 0 0 4px; font-size: 13px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-radius: 4px; background: rgba(255, 255, 255, .05); }
.reply b { color: var(--accent-2); display: block; font-size: 12px; }
.fwd { font-size: 12px; color: var(--accent-2); margin-bottom: 3px; }
.from { font-size: 12px; color: var(--accent-2); font-weight: 600; margin-bottom: 2px; }
.photo { display: block; max-width: 320px; width: 100%; border-radius: 12px; margin: -3px -6px 4px; width: calc(100% + 12px); max-width: none; background: #0b1119; cursor: zoom-in; }
.photo img { display: block; width: 100%; height: auto; border-radius: 12px; min-height: 60px; object-fit: cover; }
.photo.loading img { opacity: .4; filter: blur(2px); }
.msg .bubble.media-only { padding: 3px 6px 2px; }
.file { display: flex; align-items: center; gap: 10px; padding: 4px 0 2px; min-width: 180px; }
.file-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--accent); display: flex; align-items: center; justify-content: center; flex: none; color: #fff; }
.file-icon svg { width: 22px; height: 22px; }
.file-info { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.file-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.file-size { font-size: 12px; color: var(--text-2); }
.sticker { font-size: 52px; line-height: 1; padding: 4px 2px; }
.caption { margin-top: 2px; }
.to-bottom { position: absolute; right: 16px; bottom: 76px; width: 40px; height: 40px; border-radius: 50%; background: var(--panel-2); color: var(--text-2); box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center; z-index: 3; }

/* ---------- pending ---------- */
.pending, .uploads { flex: none; background: var(--panel); border-top: 1px solid var(--line); max-height: 160px; overflow-y: auto; }
.prow { display: flex; align-items: center; gap: 10px; padding: 6px 10px 6px 14px; font-size: 13px; border-bottom: 1px solid var(--line-soft); }
.prow:last-child { border-bottom: 0; }
.prow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; }
.prow-dot.typing { background: var(--green); box-shadow: 0 0 0 3px rgba(76, 175, 80, .25); animation: pulse 1.2s infinite; }
.prow-dot.postponed { background: var(--yellow); }
.prow-dot.checking { background: var(--accent-2); animation: pulse 1.2s infinite; }
.prow-dot.offline { background: var(--red); }
.prow-text { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prow-state { color: var(--muted); flex: none; font-variant-numeric: tabular-nums; }
.prow-cancel { width: 28px; height: 28px; border-radius: 50%; color: var(--muted); display: flex; align-items: center; justify-content: center; flex: none; }
.prow-cancel:hover { background: rgba(255, 255, 255, .08); color: var(--text); }
.prow-cancel svg { width: 16px; height: 16px; }
.prow.gone { opacity: .4; }
.progress { height: 3px; background: var(--line-soft); border-radius: 2px; overflow: hidden; flex: 1; }
.progress i { display: block; height: 100%; background: var(--accent-2); width: 0; transition: width .2s; }

/* ---------- quick texts ---------- */
.quick { flex: none; display: flex; gap: 6px; padding: 6px 10px; overflow-x: auto; background: var(--panel); border-top: 1px solid var(--line); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.quick::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 6px 12px; border-radius: 14px; font-size: 13px; font-weight: 600; color: #fff; background: var(--chip, var(--panel-3)); border: 1px solid rgba(255, 255, 255, .08); max-width: 180px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; user-select: none; -webkit-user-select: none; transition: transform .08s, filter .15s; }
.chip:active { transform: scale(.96); filter: brightness(1.15); }

/* ---------- composer ---------- */
.composer { flex: none; display: flex; align-items: flex-end; gap: 6px; padding: 8px 8px calc(8px + var(--safe-bottom)); background: var(--panel); border-top: 1px solid var(--line); }
.input { flex: 1; min-width: 0; resize: none; background: var(--panel-2); border: 1px solid var(--line-soft); border-radius: 18px; padding: 9px 14px; max-height: 140px; outline: none; line-height: 1.35; font-size: 16px; transition: border-color .15s; }
.input:focus { border-color: var(--accent); }
.send-btn { width: 42px; height: 42px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; flex: none; transition: filter .15s, transform .05s; box-shadow: 0 2px 10px rgba(82, 136, 193, .35); }
.send-btn:active { transform: scale(.94); }
.send-btn.typed { background: var(--red); box-shadow: 0 2px 10px rgba(229, 57, 53, .4); }
.send-btn:disabled { filter: grayscale(.6) brightness(.7); box-shadow: none; }
.composer .icon-btn { width: 42px; height: 42px; }

/* ---------- bot buttons ---------- */
.kb { display: flex; flex-direction: column; gap: 5px; }
.kb.inline { margin: 6px 0 2px; min-width: 220px; max-width: 100%; }
.kb-row { display: flex; gap: 5px; }
.kb-btn { flex: 1; min-width: 0; padding: 9px 10px; border-radius: 10px; background: rgba(255, 255, 255, .09); color: var(--text); font-size: 14px; line-height: 1.25; text-align: center; white-space: normal; word-break: break-word; display: flex; align-items: center; justify-content: center; gap: 5px; transition: background .12s, transform .05s; }
.kb-btn:active { transform: scale(.97); background: rgba(255, 255, 255, .16); }
.kb-btn.off { opacity: .45; }
.kb-icon { color: var(--text-2); font-size: 12px; }
.msg.out .kb-btn { background: rgba(255, 255, 255, .14); }
.keyboard { flex: none; background: var(--panel); border-top: 1px solid var(--line); padding: 8px; max-height: 42vh; overflow-y: auto; }
.keyboard .kb-btn { background: var(--panel-3); padding: 11px 10px; font-weight: 600; }
.keyboard .kb-btn:active { background: var(--accent); }
.kb-toggle.on { color: var(--accent); }

/* ---------- notifications ---------- */
.notifs-title { flex: 1; font-weight: 700; }
.clear-btn { padding: 7px 12px; border-radius: 10px; background: var(--panel-3); color: var(--text); font-size: 13px; font-weight: 700; letter-spacing: .3px; }
.notifs-list { flex: 1; overflow-y: auto; padding: 10px; display: flex; flex-direction: column; gap: 10px; -webkit-overflow-scrolling: touch; }
.card { background: #1c1c22; border: 2px solid rgba(61, 90, 254, .85); border-radius: 14px; padding: 10px 12px; animation: pop .2s ease-out; }
.card.waiting { opacity: .75; border-style: dashed; }
.card-name { background: rgba(255, 255, 255, .06); border-radius: 8px; text-align: center; font-weight: 600; padding: 6px 8px; margin-bottom: 8px; cursor: pointer; }
.card-mid { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.card-bot { display: flex; flex-direction: column; }
.card-bot small { font-size: 11px; letter-spacing: 2px; color: rgba(255, 255, 255, .6); font-weight: 700; }
.card-bot b { font-size: 28px; line-height: 1; }
.card-buttons { display: flex; gap: 8px; margin: 8px 0; }
.card-buttons .btn { flex: 1; padding: 8px; border-radius: 9px; font-size: 12px; letter-spacing: .5px; }
.btn-add { background: #2e7d32; color: #fff; }
.btn-add:disabled { background: #3f5a41; color: #cfd8cf; }
.btn-del { background: #d32f2f; color: #fff; }
.card-text { font-size: 13px; color: rgba(255, 255, 255, .9); white-space: pre-wrap; word-break: break-word; max-height: 92px; overflow: hidden; cursor: pointer; }
.card-status { font-size: 12px; margin-top: 6px; color: #cfd8dc; }
.card-status.ok { color: #9be7a4; font-weight: 600; }
.card-status.err { color: #ff8a80; }
.card.file { border-color: rgba(0, 200, 120, .85); display: flex; align-items: center; gap: 10px; padding: 10px 12px; cursor: pointer; }
.card.file .card-file-text { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; }
.card.alert { background: #c62828; border-color: rgba(255, 138, 128, .9); }
.card-alert-head { display: flex; align-items: flex-start; gap: 8px; }
.card-alert-title { font-weight: 700; flex: 1; }
.card-alert-text { font-size: 13px; margin-top: 6px; color: rgba(255, 255, 255, .92); }
.card.status { background: #1e1e24; border-color: transparent; border-left: 5px solid #f43636; cursor: pointer; }
.card.status b { display: block; margin-bottom: 3px; }
.card.more { background: #c62828; border-color: transparent; font-size: 13px; font-weight: 700; }
.x-btn { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; flex: none; }
.x-btn:hover { background: rgba(255, 255, 255, .18); }
.x-btn svg { width: 18px; height: 18px; }

/* ---------- sheet ---------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.sheet-back { position: absolute; inset: 0; background: rgba(0, 0, 0, .5); animation: fade .15s; }
.sheet { position: relative; width: 100%; max-width: 440px; background: var(--panel-2); border-radius: 18px 18px 0 0; padding: 10px 10px calc(12px + var(--safe-bottom)); box-shadow: var(--shadow); animation: up .2s ease-out; max-height: 80%; overflow-y: auto; }
.sheet-title { padding: 6px 10px 10px; font-weight: 700; color: var(--text-2); font-size: 13px; text-transform: uppercase; letter-spacing: .5px; }
.sheet-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 12px; border-radius: 12px; text-align: left; font-size: 16px; transition: background .12s; }
.sheet-item:hover { background: rgba(255, 255, 255, .06); }
.sheet-item.danger { color: #ff8a80; }
.sheet-item .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--dot, var(--muted)); flex: none; }
.sheet-item small { color: var(--muted); margin-left: auto; font-size: 13px; }
.sheet-input { width: 100%; background: var(--panel); border: 1px solid var(--line-soft); border-radius: 12px; padding: 11px 12px; margin: 4px 0 8px; outline: none; font-size: 16px; }
.sheet-input:focus { border-color: var(--accent); }
.sheet-row { display: flex; gap: 8px; padding: 4px 0; }
.sheet-row .btn { flex: 1; }
.sheet-note { padding: 4px 12px 8px; font-size: 13px; color: var(--muted); }

/* ---------- viewer ---------- */
.viewer { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, .92); display: flex; align-items: center; justify-content: center; animation: fade .15s; }
.viewer img { max-width: 100%; max-height: 100%; object-fit: contain; }
.viewer-close { position: absolute; top: calc(10px + var(--safe-top)); right: 10px; color: #fff; }

/* ---------- toasts ---------- */
.toasts { position: fixed; left: 0; right: 0; bottom: calc(80px + var(--safe-bottom)); display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 70; pointer-events: none; }
.toast { background: rgba(20, 28, 36, .96); color: var(--text); padding: 10px 16px; border-radius: 12px; font-size: 14px; box-shadow: var(--shadow); max-width: 90%; animation: pop .2s ease-out; }

/* ---------- animations ---------- */
@keyframes pop { from { opacity: 0; transform: scale(.96) translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes up { from { transform: translateY(30px); opacity: .5; } to { transform: none; opacity: 1; } }
@keyframes pulse { 0% { opacity: 1; } 50% { opacity: .45; } 100% { opacity: 1; } }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .14); border-radius: 3px; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- mobile ---------- */
@media (max-width: 760px) {
	.main, .main.with-notifs { grid-template-columns: 1fr; }
	.side, .chat, .notifs { position: absolute; inset: 0; width: 100%; }
	.side { z-index: 1; transition: transform .25s ease, opacity .25s ease; }
	.chat { z-index: 2; transform: translateX(100%); transition: transform .25s ease; box-shadow: -8px 0 24px rgba(0, 0, 0, .35); }
	.main.show-chat .chat { transform: none; }
	.main.show-chat .side { transform: translateX(-18%); opacity: .6; }
	.notifs { z-index: 3; display: flex; transform: translateX(100%); transition: transform .25s ease; }
	.main.show-notifs .notifs { transform: none; }
	.icon-btn.back { display: flex; }
	.chat-empty { display: none; }
	.msg { max-width: 86%; }
	.to-bottom { bottom: calc(70px + var(--safe-bottom)); }
	.sheet { max-width: 100%; }
}
@media (min-width: 761px) {
	.notifs-head .back { display: none; }
	.side-head { padding-top: 0; }
}
