Repository Public
1/* SP Message design system — "Ember on Ink". Original tokens, no framework. */2:root {3 --ember-a: #ffb347;4 --ember-b: #ff6a4d;5 --ember-c: #e83e8c;6 --grad: linear-gradient(135deg, var(--ember-a), var(--ember-b) 55%, var(--ember-c));7 --accent: #ff6a4d;8 --ok: #2fbf71;9 --warn: #f5a524;10 --danger: #f0435a;11 --radius: 18px;12 --radius-sm: 12px;13 --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;14 --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", sans-serif;15 --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;16 --ease: cubic-bezier(0.22, 1, 0.36, 1);17 --sat: env(safe-area-inset-top, 0px);18 --sab: env(safe-area-inset-bottom, 0px);19 --sal: env(safe-area-inset-left, 0px);20 --sar: env(safe-area-inset-right, 0px);21 color-scheme: dark;22 --bg: #0b0d12;23 --bg-2: #11141b;24 --surface: #171b24;25 --surface-2: #1e2330;26 --line: rgba(255, 255, 255, 0.08);27 --line-2: rgba(255, 255, 255, 0.14);28 --text: #f3f1ec;29 --text-2: #a9adb9;30 --text-3: #6f7483;31 --bubble: #1e2330;32 --glass: rgba(17, 20, 27, 0.72);33 --shadow: 0 24px 60px rgba(0, 0, 0, 0.55);34 --accent-soft: rgba(255, 106, 77, 0.14);35}36:root[data-theme="light"] {37 color-scheme: light;38 --bg: #f6f5f2;39 --bg-2: #efede8;40 --surface: #ffffff;41 --surface-2: #f1efe9;42 --line: rgba(20, 22, 30, 0.08);43 --line-2: rgba(20, 22, 30, 0.16);44 --text: #15171d;45 --text-2: #565b69;46 --text-3: #8b8f9c;47 --bubble: #ffffff;48 --glass: rgba(255, 255, 255, 0.74);49 --shadow: 0 24px 60px rgba(30, 25, 15, 0.16);50 --accent-soft: rgba(255, 106, 77, 0.12);51}52* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }53html, body, #root { height: 100%; }54body {55 margin: 0; background: var(--bg); color: var(--text); font: 15px/1.45 var(--font);56 -webkit-font-smoothing: antialiased; overscroll-behavior: none; overflow: hidden;57}58button, input, textarea, select { font: inherit; color: inherit; }59button { cursor: pointer; border: 0; background: none; padding: 0; }60a { color: var(--accent); text-decoration: none; }61::selection { background: rgba(255, 106, 77, 0.35); }62:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }63.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }64@media (prefers-reduced-motion: reduce) { * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } }65::-webkit-scrollbar { width: 10px; height: 10px; }66::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 10px; border: 3px solid transparent; background-clip: content-box; }6768/* ---------- primitives ---------- */69.row { display: flex; align-items: center; gap: 10px; }70.col { display: flex; flex-direction: column; gap: 10px; }71.grow { flex: 1; min-width: 0; }72.muted { color: var(--text-2); }73.dim { color: var(--text-3); }74.small { font-size: 13px; }75.tiny { font-size: 11.5px; letter-spacing: 0.01em; }76.mono { font-family: var(--mono); }77.ell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }78.h1 { font: 700 30px/1.12 var(--display); letter-spacing: -0.025em; margin: 0; }79.h2 { font: 650 20px/1.2 var(--display); letter-spacing: -0.015em; margin: 0; }80.h3 { font: 650 12px/1 var(--font); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); margin: 18px 0 8px; }81.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }82.btn {83 display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px;84 border-radius: 14px; background: var(--surface-2); color: var(--text); font-weight: 600; white-space: nowrap;85 transition: transform 0.15s var(--ease), background 0.15s, opacity 0.15s; user-select: none;86}87.btn:hover { background: var(--line-2); }88.btn:active { transform: scale(0.97); }89.btn:disabled { opacity: 0.45; pointer-events: none; }90.btn.primary { background: var(--grad); color: #1b0d07; box-shadow: 0 8px 24px rgba(255, 106, 77, 0.28); }91.btn.primary:hover { filter: brightness(1.06); }92.btn.ghost { background: transparent; }93.btn.ghost:hover { background: var(--line); }94.btn.danger { color: var(--danger); }95.btn.sm { min-height: 34px; padding: 0 12px; border-radius: 11px; font-size: 13.5px; }96.btn.lg { min-height: 52px; font-size: 16.5px; border-radius: 16px; }97.btn.block { width: 100%; }98.icon-btn {99 width: 40px; height: 40px; border-radius: 12px; display: inline-grid; place-items: center; color: var(--text-2);100 transition: background 0.15s, color 0.15s, transform 0.15s var(--ease); flex: none;101}102.icon-btn:hover { background: var(--line); color: var(--text); }103.icon-btn:active { transform: scale(0.92); }104.icon-btn.on { color: var(--accent); background: var(--accent-soft); }105.icon-btn svg, .btn svg { width: 20px; height: 20px; flex: none; }106.input, .textarea {107 width: 100%; min-height: 44px; padding: 10px 14px; border-radius: 13px; border: 1px solid var(--line-2); background: var(--bg-2);108 outline: none; transition: border-color 0.15s, box-shadow 0.15s;109}110.input:focus, .textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }111.textarea { resize: vertical; min-height: 90px; }112.field { display: flex; flex-direction: column; gap: 6px; }113.field > label { font-size: 13px; font-weight: 600; color: var(--text-2); }114.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }115.badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 20px; font-size: 11.5px; font-weight: 650; background: var(--surface-2); color: var(--text-2); }116.badge.ok { background: rgba(47, 191, 113, 0.14); color: var(--ok); }117.badge.warn { background: rgba(245, 165, 36, 0.16); color: var(--warn); }118.badge.bad { background: rgba(240, 67, 90, 0.14); color: var(--danger); }119.badge.accent { background: var(--accent-soft); color: var(--accent); }120.avatar {121 --s: 44px; width: var(--s); height: var(--s); border-radius: 34%; flex: none; display: grid; place-items: center; position: relative;122 font: 650 calc(var(--s) * 0.38) / 1 var(--display); color: #fff; letter-spacing: -0.02em;123}124.avatar .dot { position: absolute; right: -2px; bottom: -2px; width: 12px; height: 12px; border-radius: 50%; background: var(--ok); border: 2.5px solid var(--bg-2); }125.switch { width: 46px; height: 28px; border-radius: 20px; background: var(--line-2); position: relative; transition: background 0.2s; flex: none; }126.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform 0.25s var(--ease); box-shadow: 0 2px 6px rgba(0,0,0,.3); }127.switch[aria-checked="true"] { background: var(--accent); }128.switch[aria-checked="true"]::after { transform: translateX(18px); }129.seg { display: inline-flex; padding: 3px; border-radius: 13px; background: var(--bg-2); border: 1px solid var(--line); }130.seg button { padding: 6px 14px; border-radius: 10px; font-weight: 600; font-size: 13.5px; color: var(--text-2); }131.seg button[aria-pressed="true"] { background: var(--surface-2); color: var(--text); box-shadow: 0 1px 4px rgba(0,0,0,.2); }132.spinner { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid var(--line-2); border-top-color: var(--accent); animation: spin 0.8s linear infinite; }133@keyframes spin { to { transform: rotate(360deg); } }134.banner { display: flex; gap: 10px; align-items: flex-start; padding: 11px 14px; border-radius: 14px; background: var(--surface-2); font-size: 13.5px; }135.banner.warn { background: rgba(245, 165, 36, 0.13); color: var(--warn); }136.banner.bad { background: rgba(240, 67, 90, 0.12); color: var(--danger); }137.banner.info { background: var(--accent-soft); }138.empty { display: grid; place-items: center; text-align: center; padding: 40px 24px; color: var(--text-2); height: 100%; }139.empty .glyph { width: 72px; height: 72px; border-radius: 24px; background: var(--accent-soft); display: grid; place-items: center; margin: 0 auto 16px; color: var(--accent); }140.empty .glyph svg { width: 34px; height: 34px; }141.list-row { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 14px; width: 100%; text-align: left; transition: background 0.12s; }142button.list-row:hover { background: var(--line); }143.divider { height: 1px; background: var(--line); margin: 10px 0; }144.progress { height: 4px; border-radius: 4px; background: var(--line-2); overflow: hidden; }145.progress > i { display: block; height: 100%; background: var(--grad); transition: width 0.2s; }146147/* ---------- overlays ---------- */148.backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(4, 5, 8, 0.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: grid; place-items: center; animation: fade 0.18s ease; padding: 16px; }149.sheet {150 width: min(520px, 100%); max-height: min(86dvh, 760px); overflow: auto; background: var(--surface); border: 1px solid var(--line);151 border-radius: 24px; box-shadow: var(--shadow); padding: 22px; animation: pop 0.28s var(--ease);152}153.sheet.wide { width: min(760px, 100%); }154.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }155@keyframes fade { from { opacity: 0; } }156@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(0.98); } }157@keyframes rise { from { transform: translateY(100%); } }158.menu { position: fixed; z-index: 70; min-width: 210px; padding: 6px; border-radius: 16px; background: var(--glass); backdrop-filter: blur(24px) saturate(1.6); -webkit-backdrop-filter: blur(24px) saturate(1.6); border: 1px solid var(--line-2); box-shadow: var(--shadow); animation: pop 0.16s var(--ease); }159.menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border-radius: 10px; text-align: left; font-size: 14.5px; }160.menu button:hover { background: var(--line); }161.menu button.danger { color: var(--danger); }162.menu svg { width: 17px; height: 17px; color: var(--text-2); }163.menu .quick { display: flex; gap: 2px; padding: 4px 4px 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }164.menu .quick button { width: 38px; height: 38px; justify-content: center; font-size: 21px; padding: 0; }165.toasts { position: fixed; z-index: 90; top: calc(14px + var(--sat)); left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; width: min(440px, calc(100% - 24px)); pointer-events: none; }166.toast { pointer-events: auto; padding: 12px 16px; border-radius: 16px; background: var(--glass); backdrop-filter: blur(24px) saturate(1.5); -webkit-backdrop-filter: blur(24px) saturate(1.5); border: 1px solid var(--line-2); box-shadow: var(--shadow); animation: pop 0.25s var(--ease); font-size: 14px; display: flex; gap: 10px; align-items: center; }167168/* ---------- app shell ---------- */169.app { height: var(--vvh, 100dvh); display: grid; grid-template-columns: 76px 340px minmax(0, 1fr); background: var(--bg); }170.app.with-side { grid-template-columns: 76px 340px minmax(0, 1fr) 340px; }171.rail { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: calc(14px + var(--sat)) 0 14px; border-right: 1px solid var(--line); background: var(--bg); }172.rail .logo { width: 42px; height: 42px; margin-bottom: 14px; border-radius: 13px; }173.rail .nav { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; color: var(--text-3); position: relative; transition: all 0.18s var(--ease); }174.rail .nav:hover { color: var(--text); background: var(--line); }175.rail .nav[aria-current="true"] { color: var(--accent); background: var(--accent-soft); }176.rail .nav svg { width: 22px; height: 22px; }177.pill { position: absolute; top: 5px; right: 5px; min-width: 17px; height: 17px; padding: 0 5px; border-radius: 10px; background: var(--grad); color: #1b0d07; font-size: 10.5px; font-weight: 750; display: grid; place-items: center; }178.pane { display: flex; flex-direction: column; min-width: 0; min-height: 0; border-right: 1px solid var(--line); background: var(--bg-2); }179.pane-head { padding: calc(16px + var(--sat)) 16px 10px; display: flex; flex-direction: column; gap: 12px; }180.pane-body { flex: 1; overflow-y: auto; padding: 4px 8px calc(12px + var(--sab)); -webkit-overflow-scrolling: touch; }181.search { position: relative; }182.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--text-3); pointer-events: none; }183.search input { padding-left: 38px; background: var(--surface); border-color: transparent; }184.conv { display: flex; gap: 12px; align-items: center; width: 100%; padding: 10px 10px; border-radius: 16px; text-align: left; transition: background 0.12s; position: relative; }185.conv:hover { background: var(--line); }186.conv[aria-current="true"] { background: var(--surface-2); }187.conv[aria-current="true"]::before { content: ""; position: absolute; left: -8px; top: 22%; bottom: 22%; width: 4px; border-radius: 4px; background: var(--grad); }188.conv .name { font-weight: 620; }189.conv .preview { color: var(--text-2); font-size: 13.5px; }190.conv .time { color: var(--text-3); font-size: 11.5px; flex: none; }191.count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 12px; background: var(--grad); color: #1b0d07; font-size: 11.5px; font-weight: 750; display: grid; place-items: center; flex: none; }192.main { display: flex; flex-direction: column; min-width: 0; min-height: 0; position: relative; background: var(--bg);193 background-image: radial-gradient(900px 500px at 85% -10%, rgba(255, 106, 77, 0.07), transparent 60%), radial-gradient(700px 500px at -10% 110%, rgba(232, 62, 140, 0.05), transparent 60%); }194.side { border-left: 1px solid var(--line); background: var(--bg-2); display: flex; flex-direction: column; min-height: 0; animation: slide-in 0.28s var(--ease); }195@keyframes slide-in { from { transform: translateX(24px); opacity: 0; } }196.tabbar { display: none; }197198/* ---------- conversation ---------- */199.chat-head { display: flex; align-items: center; gap: 12px; padding: calc(10px + var(--sat)) 14px 10px; border-bottom: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(20px) saturate(1.5); -webkit-backdrop-filter: blur(20px) saturate(1.5); z-index: 5; }200.chat-head .back, .back-m { display: none; }201.lock { display: inline-flex; align-items: center; gap: 4px; color: var(--text-3); font-size: 12px; }202.lock svg { width: 12px; height: 12px; }203.msgs { flex: 1; overflow-y: auto; padding: 16px 18px 8px; display: flex; flex-direction: column; gap: 2px; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }204.day { align-self: center; margin: 14px 0 8px; padding: 3px 12px; border-radius: 20px; font-size: 11.5px; font-weight: 600; color: var(--text-3); background: var(--surface); border: 1px solid var(--line); position: sticky; top: 4px; z-index: 2; }205.sysmsg { align-self: center; text-align: center; max-width: 80%; margin: 6px 0; font-size: 12.5px; color: var(--text-3); }206.msg { display: flex; gap: 8px; max-width: min(76%, 640px); align-self: flex-start; position: relative; animation: msg-in 0.26s var(--ease); margin-top: 1px; }207.msg.first { margin-top: 10px; }208.msg.me { align-self: flex-end; flex-direction: row-reverse; }209@keyframes msg-in { from { opacity: 0; transform: translateY(8px) scale(0.985); } }210.msg .who { font-size: 12px; font-weight: 650; margin: 0 0 3px 2px; }211.bubble { padding: 8px 13px 7px; border-radius: 20px; background: var(--bubble); border: 1px solid var(--line); min-width: 0; word-break: break-word; overflow-wrap: anywhere; white-space: pre-wrap; position: relative; }212.msg:not(.me) .bubble { border-top-left-radius: 7px; }213.msg.me .bubble { border-top-right-radius: 7px; background: linear-gradient(135deg, #ff8a4c, #ff5d5d 60%, #ec4a8f); border-color: transparent; color: #1c0d08; }214.msg.me .bubble a { color: #1c0d08; text-decoration: underline; }215.msg.media .bubble { padding: 4px; }216.msg.media .bubble .text { padding: 4px 9px 3px; }217.msg.hl .bubble { box-shadow: 0 0 0 3px var(--accent-soft), 0 0 0 1.5px var(--accent); }218.meta { display: inline-flex; align-items: center; gap: 4px; float: right; margin: 6px 0 -2px 10px; font-size: 10.5px; opacity: 0.6; user-select: none; }219.meta svg { width: 13px; height: 13px; }220.deleted { font-style: italic; opacity: 0.6; }221.reply-ref { display: block; text-align: left; width: 100%; margin: -1px 0 6px; padding: 5px 9px; border-radius: 11px; border-left: 3px solid currentColor; background: rgba(0, 0, 0, 0.1); font-size: 13px; opacity: 0.85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }222.fwd { font-size: 12px; opacity: 0.7; font-style: italic; margin-bottom: 3px; display: flex; align-items: center; gap: 4px; }223.fwd svg { width: 12px; height: 12px; }224.reactions { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }225.msg.me .reactions { justify-content: flex-end; }226.react { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 8px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-2); font-size: 13px; transition: transform 0.15s var(--ease); }227.react:active { transform: scale(0.9); }228.react.mine { border-color: var(--accent); background: var(--accent-soft); }229.msg-actions { position: absolute; top: -14px; right: 6px; display: none; gap: 1px; padding: 3px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: 0 8px 20px rgba(0,0,0,.25); z-index: 3; }230.msg.me .msg-actions { right: auto; left: 6px; }231.msg:hover .msg-actions { display: flex; }232.msg-actions button { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: var(--text-2); font-size: 15px; }233.msg-actions button:hover { background: var(--line); color: var(--text); }234.msg-actions svg { width: 16px; height: 16px; }235.att-img { display: block; border-radius: 16px; overflow: hidden; position: relative; background: var(--bg-2); max-width: 100%; cursor: zoom-in; }236.att-img img, .att-img video { display: block; width: 100%; height: 100%; object-fit: cover; }237.att-img .blur { filter: blur(14px); transform: scale(1.1); }238.att-img .play { position: absolute; inset: 0; display: grid; place-items: center; }239.att-img .play i { width: 54px; height: 54px; border-radius: 50%; background: rgba(0,0,0,.5); backdrop-filter: blur(8px); display: grid; place-items: center; color: #fff; }240.att-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }241.file { display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 14px; background: rgba(0, 0, 0, 0.1); min-width: 220px; text-align: left; width: 100%; }242.file .ic { width: 40px; height: 40px; border-radius: 12px; background: rgba(0, 0, 0, 0.14); display: grid; place-items: center; flex: none; }243.file .ic svg { width: 20px; height: 20px; }244.voice { display: flex; align-items: center; gap: 10px; padding: 6px 8px; min-width: 240px; }245.voice .pp { width: 38px; height: 38px; border-radius: 50%; background: rgba(0, 0, 0, 0.16); display: grid; place-items: center; flex: none; }246.voice .pp svg { width: 18px; height: 18px; }247.wave { display: flex; align-items: center; gap: 2px; height: 32px; flex: 1; cursor: pointer; }248.wave i { flex: 1; min-width: 2px; border-radius: 2px; background: currentColor; opacity: 0.3; }249.wave i.played { opacity: 0.95; }250.typing { display: flex; align-items: center; gap: 8px; padding: 2px 20px 6px; height: 24px; font-size: 12.5px; color: var(--text-3); }251.typing .dots { display: inline-flex; gap: 3px; }252.typing .dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); animation: bounce 1.2s infinite; }253.typing .dots i:nth-child(2) { animation-delay: 0.15s; }254.typing .dots i:nth-child(3) { animation-delay: 0.3s; }255@keyframes bounce { 0%, 60%, 100% { transform: translateY(0); opacity: 0.4; } 30% { transform: translateY(-4px); opacity: 1; } }256.composer { padding: 6px 14px calc(12px + var(--sab)); }257.composer-box { display: flex; align-items: flex-end; gap: 4px; padding: 6px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line-2); transition: border-color 0.15s, box-shadow 0.15s; }258.composer-box:focus-within { border-color: rgba(255, 106, 77, 0.6); box-shadow: 0 0 0 4px var(--accent-soft); }259.composer textarea { flex: 1; border: 0; outline: 0; background: transparent; resize: none; padding: 9px 6px; max-height: 180px; min-height: 40px; line-height: 1.4; font-size: 16px; }260.send { width: 40px; height: 40px; border-radius: 50%; background: var(--grad); color: #1b0d07; display: grid; place-items: center; flex: none; transition: transform 0.18s var(--ease); box-shadow: 0 6px 16px rgba(255, 106, 77, 0.35); }261.send:active { transform: scale(0.88); }262.send svg { width: 19px; height: 19px; }263.ctx { display: flex; align-items: center; gap: 10px; padding: 8px 12px; margin: 0 6px 6px; border-radius: 14px; background: var(--surface); border-left: 3px solid var(--accent); font-size: 13.5px; animation: pop 0.2s var(--ease); }264.tray { display: flex; gap: 8px; padding: 4px 6px 8px; overflow-x: auto; }265.tray .item { width: 76px; height: 76px; border-radius: 14px; background: var(--surface-2); position: relative; flex: none; overflow: hidden; display: grid; place-items: center; font-size: 11px; text-align: center; padding: 6px; }266.tray .item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }267.tray .item .x { position: absolute; top: 4px; right: 4px; width: 20px; height: 20px; border-radius: 50%; background: rgba(0, 0, 0, 0.65); color: #fff; display: grid; place-items: center; z-index: 2; font-size: 12px; }268.tray .item .progress { position: absolute; left: 6px; right: 6px; bottom: 6px; z-index: 2; }269.drop { position: absolute; inset: 10px; z-index: 20; border-radius: 26px; border: 2px dashed var(--accent); background: var(--accent-soft); backdrop-filter: blur(8px); display: grid; place-items: center; font: 650 20px var(--display); pointer-events: none; animation: fade 0.15s; }270.rec { display: flex; align-items: center; gap: 12px; flex: 1; padding: 0 10px; height: 40px; color: var(--danger); font-variant-numeric: tabular-nums; }271.rec i { width: 10px; height: 10px; border-radius: 50%; background: var(--danger); animation: pulse 1s infinite; }272@keyframes pulse { 50% { opacity: 0.3; } }273.jump { position: absolute; right: 18px; bottom: 96px; z-index: 6; width: 40px; height: 40px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line-2); display: grid; place-items: center; box-shadow: var(--shadow); animation: pop 0.2s var(--ease); }274.viewer { position: fixed; inset: 0; z-index: 80; background: rgba(0, 0, 0, 0.94); display: grid; place-items: center; animation: fade 0.2s; }275.viewer img, .viewer video { max-width: 100vw; max-height: 100dvh; object-fit: contain; }276.viewer .bar { position: absolute; top: calc(10px + var(--sat)); right: 12px; left: 12px; display: flex; justify-content: space-between; color: #fff; }277.viewer .icon-btn { color: #fff; background: rgba(255,255,255,.12); }278279/* ---------- onboarding ---------- */280.stage { min-height: 100dvh; display: grid; place-items: center; padding: calc(24px + var(--sat)) 20px calc(24px + var(--sab)); overflow-y: auto; height: 100dvh;281 background: radial-gradient(900px 600px at 80% -10%, rgba(255, 138, 76, 0.2), transparent 60%), radial-gradient(800px 600px at 0% 100%, rgba(232, 62, 140, 0.16), transparent 60%), var(--bg); }282.stage-card { width: min(460px, 100%); display: flex; flex-direction: column; gap: 18px; animation: pop 0.5s var(--ease); }283.brand { display: flex; align-items: center; gap: 12px; font: 700 19px var(--display); letter-spacing: -0.02em; }284.brand img { width: 44px; height: 44px; border-radius: 13px; }285.points { display: flex; flex-direction: column; gap: 12px; margin: 4px 0; }286.point { display: flex; gap: 13px; align-items: flex-start; }287.point .ic { width: 38px; height: 38px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }288.point .ic svg { width: 19px; height: 19px; }289.point b { display: block; font-weight: 650; }290.steps { display: flex; gap: 6px; }291.steps i { height: 4px; flex: 1; border-radius: 4px; background: var(--line-2); transition: background 0.3s; }292.steps i.on { background: var(--grad); }293.code { font: 700 38px/1 var(--mono); letter-spacing: 0.14em; text-align: center; padding: 22px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line-2); }294.recovery { font: 600 17px/1.9 var(--mono); letter-spacing: 0.06em; text-align: center; padding: 18px; border-radius: 18px; background: var(--surface); border: 1px dashed var(--line-2); user-select: all; word-spacing: 0.3em; }295.err { color: var(--danger); font-size: 13.5px; }296297/* ---------- calls ---------- */298.call { position: fixed; inset: 0; z-index: 100; background: #07080c; color: #fff; display: flex; flex-direction: column; animation: fade 0.25s; }299.call-grid { flex: 1; display: grid; gap: 8px; padding: calc(12px + var(--sat)) 12px 12px; min-height: 0; grid-auto-rows: 1fr; }300.tile { position: relative; border-radius: 22px; overflow: hidden; background: #141722; display: grid; place-items: center; min-height: 0; }301.tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }302.tile .label { position: absolute; left: 12px; bottom: 12px; padding: 4px 10px; border-radius: 10px; background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(10px); font-size: 12.5px; }303.pip { position: absolute; right: 18px; top: calc(18px + var(--sat)); width: 112px; aspect-ratio: 3/4; border-radius: 18px; overflow: hidden; background: #1c2030; box-shadow: var(--shadow); z-index: 3; border: 1px solid rgba(255,255,255,.14); }304.pip video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }305.call-bar { display: flex; justify-content: center; gap: 12px; padding: 14px 14px calc(22px + var(--sab)); flex-wrap: wrap; }306.call-btn { width: 58px; height: 58px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); display: grid; place-items: center; color: #fff; transition: transform 0.15s var(--ease), background 0.15s; }307.call-btn:active { transform: scale(0.9); }308.call-btn.off { background: #fff; color: #111; }309.call-btn.end { background: var(--danger); }310.call-btn.go { background: var(--ok); }311.call-btn svg { width: 24px; height: 24px; }312.ring-avatar { animation: ring 1.6s var(--ease) infinite; border-radius: 34%; }313@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(255, 106, 77, 0.5); } 100% { box-shadow: 0 0 0 34px rgba(255, 106, 77, 0); } }314.call-mini { position: fixed; z-index: 95; right: 16px; bottom: calc(90px + var(--sab)); padding: 10px 14px; border-radius: 18px; background: var(--ok); color: #06210f; font-weight: 650; display: flex; gap: 10px; align-items: center; box-shadow: var(--shadow); }315316/* ---------- tables (admin) ---------- */317.table { width: 100%; border-collapse: collapse; font-size: 14px; }318.table th { text-align: left; font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); padding: 8px 10px; font-weight: 650; }319.table td { padding: 11px 10px; border-top: 1px solid var(--line); vertical-align: middle; }320.scroll-x { overflow-x: auto; }321.stat { padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }322.stat b { display: block; font: 700 24px var(--display); letter-spacing: -0.02em; }323.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }324.page { flex: 1; overflow-y: auto; padding: calc(22px + var(--sat)) 26px calc(26px + var(--sab)); }325.page-inner { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }326.qr { background: #fff; padding: 12px; border-radius: 16px; width: 200px; height: 200px; margin: 0 auto; }327.qr img { width: 100%; height: 100%; display: block; image-rendering: pixelated; }328.safety { font: 600 17px/1.8 var(--mono); text-align: center; letter-spacing: 0.04em; }329.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }330.gallery .att-img { border-radius: 10px; aspect-ratio: 1; }331332/* ---------- mobile ---------- */333@media (max-width: 1180px) {334 .app.with-side { grid-template-columns: 76px 320px minmax(0, 1fr); }335 .app.with-side .side { position: fixed; z-index: 40; right: 0; top: 0; bottom: 0; width: min(380px, 100%); box-shadow: var(--shadow); }336}337@media (max-width: 820px) {338 .app, .app.with-side { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }339 .rail { display: none; }340 .pane { border-right: 0; grid-row: 1; grid-column: 1; }341 .main { position: fixed; top: 0; left: 0; right: 0; height: var(--vvh, 100dvh); z-index: 30; transform: translateX(100%); transition: transform 0.34s var(--ease); visibility: hidden; }342 .app.open .main { transform: none; visibility: visible; }343 .app.with-side .side { width: 100%; }344 .chat-head .back, .back-m { display: inline-grid; }345 .tabbar {346 display: flex; grid-row: 2; justify-content: space-around; padding: 8px 10px calc(8px + var(--sab));347 background: var(--glass); backdrop-filter: blur(24px) saturate(1.6); -webkit-backdrop-filter: blur(24px) saturate(1.6); border-top: 1px solid var(--line);348 }349 .tabbar button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; font-size: 10.5px; font-weight: 600; color: var(--text-3); position: relative; border-radius: 14px; }350 .tabbar button[aria-current="true"] { color: var(--accent); }351 .tabbar svg { width: 23px; height: 23px; }352 .tabbar .pill { top: 0; right: calc(50% - 24px); }353 .msg { max-width: 86%; }354 .msgs { padding: 12px 12px 6px; }355 .msg-actions { display: none !important; }356 .backdrop { align-items: end; padding: 0; }357 .sheet { width: 100%; max-height: 92dvh; border-radius: 26px 26px 0 0; padding: 20px 18px calc(22px + var(--sab)); animation: rise 0.34s var(--ease); border-bottom: 0; }358 .page { padding: calc(16px + var(--sat)) 14px calc(20px + var(--sab)); }359 .composer { padding: 6px 8px calc(8px + var(--sab)); }360 .pip { width: 92px; }361 .jump { bottom: 84px; right: 12px; }362}363364/* ---------- refinements after visual review ---------- */365.file { white-space: normal; }366.file > svg { width: 18px; height: 18px; flex: none; opacity: 0.7; }367.file .grow { min-width: 0; }368.voice { white-space: normal; }369.msg-actions { top: -34px; }370.chat-head .grow { overflow: hidden; }371.lock { display: flex; min-width: 0; white-space: nowrap; }372.lock svg { flex: none; }373.msg.media.notext .meta { position: absolute; right: 12px; bottom: 10px; float: none; margin: 0; padding: 2px 8px; border-radius: 10px; background: rgba(0, 0, 0, 0.5); color: #fff; opacity: 1; backdrop-filter: blur(6px); }374.msg .grow { min-width: 0; }375.list-row > svg, .banner > svg, .toast > svg { width: 18px; height: 18px; flex: none; }376.row > svg { width: 18px; height: 18px; flex: none; }377