:root {
  /* Brand: soft indigo on white (based on the reference design) */
  --accent: #5e5ce6;
  --accent-strong: #4845c9;
  --accent-soft: #efeefe;
  --accent-light: #8e8cf5;
  --on-accent: #ffffff;
  --ring: #5e5ce6;
  --bg-app: #d8d4ee;
  --panel: #ffffff;
  --panel-head: #ffffff;
  --chat-bg: #ffffff;
  --bubble-in: #efeff4;
  --bubble-in-text: #1c1c28;
  --bubble-out: #5e5ce6;
  --bubble-out-text: #ffffff;
  --text: #16161f;
  --text-2: #6c6c7e;
  --line: #efeff4;
  --teal: #5e5ce6;
  --mobile-head: #ffffff;
  --head-title: #16161f;
  --head-icon: #2b2b38;
  --tick: #5e5ce6;
  --badge: #5e5ce6;
  --online: #22c55e;
  --hover: #f6f6fa;
  --active: #f0effd;
  --danger: #e5484d;
  --icon: #3d3d4e;
  --input: #f3f3f7;
  --sys: #f3f3f7;
  --menu: #ffffff;
  --dot: transparent;
  --shadow: 0 1px 2px rgba(22, 22, 31, .06);
  --pop-shadow: 0 12px 32px rgba(22, 22, 31, .14), 0 2px 6px rgba(22, 22, 31, .06);
  --radius: 18px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --accent: #6c6af0;
    --accent-strong: #8b89f5;
    --accent-soft: #23223d;
    --accent-light: #8e8cf5;
    --ring: #8b89f5;
    --bg-app: #07070d;
    --panel: #12121c;
    --panel-head: #12121c;
    --chat-bg: #12121c;
    --bubble-in: #23232f;
    --bubble-in-text: #ececf3;
    --bubble-out: #4f4dd8;
    --text: #ececf3;
    --text-2: #9d9db0;
    --line: #22222e;
    --mobile-head: #12121c;
    --head-title: #ececf3;
    --head-icon: #c4c4d4;
    --tick: #8b89f5;
    --badge: #6c6af0;
    --hover: #1a1a26;
    --active: #1e1d33;
    --icon: #b8b8ca;
    --input: #1c1c28;
    --sys: #1c1c28;
    --menu: #1c1c28;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4);
    --pop-shadow: 0 12px 32px rgba(0, 0, 0, .55);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; margin: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  color: var(--text);
  background: var(--bg-app);
  overflow: hidden;
  overscroll-behavior: none;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
svg.i { width: 24px; height: 24px; fill: currentColor; flex: none; display: block; }
.hidden { display: none !important; }

.splash { height: 100dvh; display: grid; place-items: center; background: var(--panel); }

/* ---------- login ---------- */
.login {
  min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 24px 16px; background: radial-gradient(1200px 600px at 10% -10%, #3b82f6 0%, transparent 60%), linear-gradient(160deg, #1e3a8a, #0f172a 70%);
}
.login-card {
  width: 100%; max-width: 400px; background: var(--panel); border-radius: 20px; padding: 36px 28px 28px;
  box-shadow: 0 24px 60px rgba(2, 6, 23, .35); text-align: center;
}
.login-card img { width: 64px; height: 64px; }
.login-card h1 { font-weight: 700; font-size: 26px; letter-spacing: -.01em; margin: 14px 0 6px; }
.login-card p { color: var(--text-2); margin: 0 0 24px; }
.field {
  width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--input);
  margin-bottom: 12px; font-size: 16px; outline: none;
}
.field:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: var(--on-accent); border-radius: 12px; padding: 12px 24px; font-size: 15px; font-weight: 600;
  transition: background .15s var(--ease), transform .1s var(--ease);
}
.btn:hover { background: var(--accent-strong); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .6; }
.btn.full { width: 100%; }
.btn.flat { background: none; color: var(--accent); }
.btn.danger { background: none; color: var(--danger); }
.err { color: var(--danger); min-height: 20px; margin: 8px 0 0; font-size: 14px; }

/* ---------- layout ---------- */
.app { height: 100dvh; display: flex; max-width: 1700px; margin: 0 auto; background: var(--panel); position: relative; overflow: hidden; }
@media (min-width: 1440px) { .app { height: calc(100dvh - 38px); margin-top: 19px; box-shadow: var(--shadow); } }
.side { width: 30%; min-width: 320px; max-width: 480px; border-right: 1px solid var(--line); display: flex; flex-direction: column; position: relative; background: var(--panel); }
.pane { flex: 1; min-width: 0; display: flex; position: relative; background: var(--chat-bg); }

.head {
  height: 59px; flex: none; display: flex; align-items: center; gap: 10px; padding: 0 16px; background: var(--panel-head);
  color: var(--icon);
}
.head .grow { flex: 1; min-width: 0; }
.head .title { color: var(--text); font-size: 16px; font-weight: 600; }
.ibtn { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--icon); flex: none; transition: background .15s var(--ease); }
.ibtn:hover { background: var(--hover); }
.ibtn.active { background: rgba(127, 127, 127, .18); }
.app-title { display: none; }

.search { padding: 4px 12px 10px; background: var(--panel); }
.search label { display: flex; align-items: center; gap: 10px; background: var(--input); border-radius: 12px; padding: 0 12px; height: 40px; color: var(--icon); }
.search svg { width: 20px; height: 20px; }
.search input { flex: 1; border: 0; background: none; outline: none; height: 100%; min-width: 0; }

.banner { display: flex; gap: 14px; align-items: center; margin: 0 12px 8px; padding: 12px 14px; border-radius: var(--radius); background: var(--accent-soft); color: var(--text); cursor: pointer; }
.banner .bell { width: 40px; height: 40px; border-radius: 12px; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; flex: none; }
.banner b { display: block; font-weight: 600; font-size: 15px; }
.banner small { font-size: 13.5px; color: var(--accent-strong); }
.banner .x { margin-left: auto; color: inherit; opacity: .8; }

.list { flex: 1; overflow-y: auto; }
.item { display: flex; align-items: center; height: 72px; margin: 0 8px; padding-left: 10px; border-radius: 12px; cursor: pointer; user-select: none; transition: background .12s var(--ease); }
.item:hover { background: var(--hover); }
.item.sel { background: var(--active); }
.item .body { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: center; padding-right: 10px; margin-left: 12px; }
.item:last-child .body { border-bottom: 0; }
.row1, .row2 { display: flex; align-items: center; gap: 6px; min-width: 0; }
.row1 .name { flex: 1; font-size: 16px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row1 .when { font-size: 12px; color: var(--text-2); }
.item.unread .row1 .when { color: var(--accent); font-weight: 600; }
.item.unread .row2 .prev { color: var(--text); }
.row2 { color: var(--text-2); font-size: 14px; margin-top: 2px; }
.row2 .prev { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; gap: 3px; min-width: 0; }
.row2 .prev > span { overflow: hidden; text-overflow: ellipsis; }
.row2 .prev svg { width: 18px; height: 18px; }
.row2 .typing { color: var(--accent); font-weight: 500; }
.count { background: var(--badge); color: #fff; border-radius: 11px; min-width: 22px; height: 22px; padding: 0 7px; font-size: 12px; display: grid; place-items: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.item .sub { color: var(--text-2); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.empty-list { padding: 40px 24px; text-align: center; color: var(--text-2); }
.section-label { padding: 20px 22px 8px; color: var(--text-2); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }

.av { border-radius: 50%; flex: none; object-fit: cover; display: grid; place-items: center; color: #fff; font-weight: 600; overflow: hidden; background: linear-gradient(135deg, #93b4f8, #6d8fe0); user-select: none; }
.av svg { width: 60%; height: 60%; fill: #fff; }
.av-49 { width: 49px; height: 49px; font-size: 19px; }
.av-40 { width: 40px; height: 40px; font-size: 16px; }
.av-200 { width: 200px; height: 200px; font-size: 72px; }
.av-120 { width: 120px; height: 120px; font-size: 44px; }

.fab { display: none; }

/* ---------- drawers (slide over the sidebar) ---------- */
.drawer { position: absolute; inset: 0; background: var(--panel-head); z-index: 20; display: flex; flex-direction: column; transform: translateX(-100%); transition: transform .2s ease; }
.drawer.open { transform: none; }
.drawer.right { transform: translateX(100%); }
.drawer.right.open { transform: none; }
.drawer-head { height: 64px; flex: none; background: var(--panel-head); color: var(--text); display: flex; align-items: center; gap: 12px; padding: 0 12px; border-bottom: 1px solid var(--line); }
.drawer-head .ibtn { color: inherit; }
.drawer-head h2 { margin: 0; font-size: 18px; font-weight: 700; }
.drawer-body { flex: 1; overflow-y: auto; }
.card { background: var(--panel); padding: 16px 20px 12px; margin: 0 12px 12px; border-radius: var(--radius); box-shadow: var(--shadow); }
.card .label { color: var(--text-2); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 10px; }
.card.center { text-align: center; padding: 28px 30px; }
.card.center .av { margin: 0 auto 14px; }
.edit-row { display: flex; align-items: center; gap: 8px; padding-bottom: 8px; }
.edit-row input { flex: 1; border: 0; border-bottom: 2px solid transparent; background: none; outline: none; padding: 6px 0; font-size: 16px; min-width: 0; }
.edit-row input:focus { border-bottom-color: var(--accent); }
.hint { color: var(--text-2); font-size: 13px; padding: 4px 30px 16px; }
.action { display: flex; align-items: center; gap: 16px; padding: 14px 20px; width: calc(100% - 24px); margin: 0 12px 2px; border-radius: 12px; text-align: left; background: var(--panel); font-size: 15px; font-weight: 500; }
.action:hover { background: var(--hover); }
.action svg { color: var(--icon); }
.action.danger, .action.danger svg { color: var(--danger); }
.big-name { font-size: 22px; margin: 0; }
.muted { color: var(--text-2); }
.tag { font-size: 11px; color: var(--accent); border: 1px solid var(--accent); border-radius: 4px; padding: 1px 5px; margin-left: 6px; vertical-align: middle; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 20px; background: var(--panel); border-bottom: 1px solid var(--line); }
.chips:empty { display: none; }
.chip { display: flex; align-items: center; gap: 6px; background: var(--accent-soft); border-radius: 16px; padding: 3px 8px 3px 3px; font-size: 14px; }
.chip .av { width: 26px; height: 26px; font-size: 11px; }
.chip button { color: var(--text-2); }
.chip svg { width: 16px; height: 16px; }
.check { width: 20px; height: 20px; border: 2px solid var(--text-2); border-radius: 3px; display: grid; place-items: center; margin-right: 14px; flex: none; }
.check.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.check svg { width: 16px; height: 16px; }
.next-btn { position: absolute; right: 24px; bottom: 24px; width: 56px; height: 56px; border-radius: 16px; background: var(--accent); color: #fff; display: grid; place-items: center; box-shadow: var(--pop-shadow); z-index: 2; }

/* ---------- empty pane ---------- */
.welcome { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 28px; background: var(--chat-bg); color: var(--text-2); }
.welcome h1 { color: var(--text); font-weight: 700; font-size: 28px; letter-spacing: -.01em; margin: 24px 0 10px; }
.welcome p { max-width: 460px; line-height: 1.5; margin: 0; }
.welcome .lock { margin-top: 40px; display: flex; align-items: center; gap: 6px; font-size: 13px; }
.welcome .lock svg { width: 14px; height: 14px; }

/* ---------- chat ---------- */
.chat { flex: 1; min-width: 0; display: flex; flex-direction: column; position: relative; }
.chat-head { cursor: pointer; border-left: 1px solid var(--line); }
.chat-head .who { flex: 1; min-width: 0; }
.chat-head .who .title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-head .who .status { font-size: 13px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-head .back { display: none; }
.offline-bar { background: #ffd279; color: #3b2f00; text-align: center; font-size: 13px; padding: 4px; }

.msgs { flex: 1; overflow-y: auto; overflow-x: hidden; position: relative; padding: 12px 0 8px; }
.msgs { background-color: var(--chat-bg); background-image: radial-gradient(var(--dot) 1px, transparent 1px); background-size: 22px 22px; }
.msgs-inner { position: relative; padding: 0 6%; display: flex; flex-direction: column; }
@media (max-width: 1000px) { .msgs-inner { padding: 0 4%; } }

.day { align-self: center; background: var(--sys); color: var(--text-2); font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 10px; margin: 12px 0; box-shadow: var(--shadow); position: sticky; top: 6px; z-index: 2; backdrop-filter: blur(6px); }
.sysmsg { align-self: center; background: var(--sys); color: var(--text-2); font-size: 12.5px; padding: 5px 12px 6px; border-radius: 10px; margin: 6px 0; box-shadow: var(--shadow); text-align: center; max-width: 85%; }
.unread-div { align-self: stretch; text-align: center; background: rgba(0, 0, 0, .06); margin: 8px -10%; padding: 5px; }
.unread-div span { background: var(--sys); color: var(--text-2); padding: 5px 12px; border-radius: 12px; font-size: 12.5px; box-shadow: var(--shadow); }
.encrypt { align-self: center; background: var(--accent-soft); color: var(--text-2); font-size: 12.5px; padding: 6px 12px; border-radius: 7.5px; margin: 6px 0 10px; text-align: center; max-width: 85%; box-shadow: var(--shadow); }


.mrow { display: flex; margin-bottom: 2px; padding: 0 0; }
.mrow.first { margin-top: 10px; }
.mrow.out { justify-content: flex-end; }
.bubble {
  position: relative; max-width: 65%; min-width: 70px; padding: 7px 9px 8px 11px; border-radius: 16px; background: var(--bubble-in);
  box-shadow: var(--shadow); word-wrap: break-word; overflow-wrap: anywhere; line-height: 19px; font-size: 14.2px;
}
@media (max-width: 768px) { .bubble { max-width: 85%; } }
.out .bubble { background: var(--bubble-out); }
.first .bubble { }
.in.first .bubble { border-top-left-radius: 4px; }
.out.first .bubble { border-top-right-radius: 4px; }
.sender { font-size: 12.8px; font-weight: 500; line-height: 22px; margin-top: -2px; }
.text { white-space: pre-wrap; }
.text a { color: var(--accent-strong); text-underline-offset: 2px; }
.text.jumbo { font-size: 40px; line-height: 48px; }
.meta { float: right; margin: 10px 0 -5px 10px; display: flex; align-items: center; gap: 3px; font-size: 11px; color: var(--text-2); height: 15px; white-space: nowrap; position: relative; top: 1px; }
.meta svg { width: 16px; height: 16px; }
.meta .read { color: var(--tick); }
.meta .failed { color: var(--danger); }
.deleted { color: var(--text-2); font-style: italic; display: inline-flex; align-items: center; gap: 4px; }
.deleted svg { width: 16px; height: 16px; }
.menu-btn { position: absolute; top: 2px; right: 2px; width: 26px; height: 22px; border-radius: 0 7px 0 12px; color: var(--text-2); opacity: 0; display: grid; place-items: center; background: inherit; }
.bubble:hover .menu-btn { opacity: 1; }
@media (pointer: coarse) { .menu-btn { display: none; } }
.bubble.pick { filter: brightness(.92); }

.img-wrap { margin: -3px -4px 4px -6px; border-radius: 6px; overflow: hidden; position: relative; cursor: pointer; background: rgba(0, 0, 0, .05); min-width: 200px; min-height: 120px; }
.img-wrap img { display: block; width: 100%; max-width: 330px; max-height: 340px; object-fit: cover; }
.img-wrap.only .meta-over { position: absolute; right: 6px; bottom: 4px; color: #fff; display: flex; align-items: center; gap: 3px; font-size: 11px; text-shadow: 0 1px 1px rgba(0, 0, 0, .4); background: linear-gradient(to top, rgba(0,0,0,.35), transparent); padding: 12px 4px 0 30px; }
.img-wrap.only .meta-over svg { width: 16px; height: 16px; }
.progress { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, .35); color: #fff; font-size: 13px; }
.progress span { width: 56px; height: 56px; border-radius: 50%; border: 3px solid rgba(255,255,255,.3); border-top-color: #fff; animation: spin 1s linear infinite; display: block; }
.progress b { position: absolute; font-weight: 500; }
@keyframes spin { to { transform: rotate(360deg); } }

.filecard { display: flex; align-items: center; gap: 10px; background: rgba(0, 0, 0, .05); border-radius: 6px; padding: 10px; margin: -2px -3px 4px -5px; min-width: 240px; color: inherit; text-decoration: none; }
@media (prefers-color-scheme: dark) { .filecard { background: rgba(0, 0, 0, .18); } }
.filecard .ft { width: 30px; height: 36px; flex: none; background: #64748b; color: #fff; border-radius: 3px; font-size: 9px; font-weight: 700; display: grid; place-items: end center; padding-bottom: 4px; text-transform: uppercase; }
.filecard .fn { flex: 1; min-width: 0; }
.filecard .fn div { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filecard .fn small { color: var(--text-2); font-size: 12px; }
.filecard .dl { width: 34px; height: 34px; border: 1px solid var(--text-2); border-radius: 50%; display: grid; place-items: center; color: var(--text-2); flex: none; }
.filecard .dl svg { width: 20px; height: 20px; }

.voice { display: flex; align-items: center; gap: 10px; min-width: 240px; padding: 2px 0 0; }
.voice .play { width: 34px; height: 34px; color: var(--icon); display: grid; place-items: center; }
.voice .play svg { width: 34px; height: 34px; }
.voice .track { flex: 1; display: flex; flex-direction: column; gap: 4px; padding-top: 12px; }
.voice input[type=range] { width: 100%; accent-color: var(--accent); margin: 0; height: 14px; }
.voice .vt { font-size: 11px; color: var(--text-2); height: 12px; }
.voice .mic { position: relative; }
.voice .mic svg { width: 20px; height: 20px; color: var(--accent); }
.out .voice .mic svg { color: var(--tick); }

.callmsg { display: flex; align-items: center; gap: 10px; min-width: 220px; padding: 4px 0 0; }
.callmsg + .meta { margin-top: 0; }
.callmsg .ci { width: 40px; height: 40px; border-radius: 50%; background: rgba(0, 0, 0, .06); display: grid; place-items: center; color: var(--accent); flex: none; }
.callmsg .ci.missed { color: var(--danger); }
.callmsg .ci { background: color-mix(in srgb, var(--accent) 12%, transparent) !important; }
.callmsg .ci svg { width: 22px; height: 22px; }
.callmsg b { font-weight: 400; font-size: 15px; display: block; }
.callmsg small { color: var(--text-2); font-size: 13px; }

.to-bottom { position: absolute; right: 18px; bottom: 76px; width: 42px; height: 42px; border-radius: 14px; background: var(--panel); color: var(--icon); box-shadow: var(--pop-shadow); display: grid; place-items: center; z-index: 5; }
.to-bottom .count { position: absolute; top: -6px; right: -4px; }

.composer { flex: none; min-height: 62px; background: var(--panel-head); display: flex; align-items: flex-end; gap: 8px; padding: 10px 16px; padding-bottom: max(10px, env(safe-area-inset-bottom)); position: relative; z-index: 6; }
.composer .ibtn { margin-bottom: 1px; }
.composer .box { flex: 1; min-width: 0; background: var(--input); border-radius: 14px; display: flex; align-items: flex-end; padding: 9px 12px; min-height: 42px; }
.composer textarea { flex: 1; border: 0; outline: none; resize: none; background: none; font-size: 15px; line-height: 20px; max-height: 120px; padding: 0; height: 20px; }
.composer textarea::placeholder { color: var(--text-2); }
.send-btn { width: 44px; height: 44px; border-radius: 14px; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; flex: none; transition: background .15s var(--ease), transform .1s var(--ease); }
.send-btn:hover { background: var(--accent-strong); }
.send-btn:active { transform: scale(.95); }
.rec { flex: 1; display: flex; align-items: center; justify-content: flex-end; gap: 16px; color: var(--text); font-size: 17px; }
.rec .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--danger); animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.rec .send-btn.go { background: var(--accent); color: #fff; }

.pop { position: absolute; background: var(--menu); border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--pop-shadow); padding: 9px 0; z-index: 50; min-width: 180px; animation: popin .12s ease-out; }
@keyframes popin { from { opacity: 0; transform: scale(.95); } }
.pop button { display: flex; align-items: center; gap: 12px; width: calc(100% - 12px); margin: 0 6px; border-radius: 8px; text-align: left; padding: 10px 14px; font-size: 14.5px; color: var(--text); }
.pop button:hover { background: var(--hover); }
.pop button svg { color: var(--icon); width: 22px; height: 22px; }
.pop.attach { bottom: 64px; left: 54px; padding: 8px; border-radius: 16px; }
.pop.attach button { border-radius: 8px; padding: 10px 14px; }
.pop.attach .dot { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; color: #fff; }
.pop.attach .dot svg { color: #fff; width: 18px; height: 18px; }

.emoji-panel { height: 260px; flex: none; background: var(--panel-head); border-top: 1px solid var(--line); overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(42px, 1fr)); padding: 8px 12px; align-content: start; }
.emoji-panel button { font-size: 26px; height: 42px; border-radius: 6px; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.emoji-panel button:hover { background: var(--hover); }

/* ---------- info panel (right) ---------- */
.info { width: 40%; max-width: 460px; min-width: 320px; border-left: 1px solid var(--line); background: var(--panel-head); display: flex; flex-direction: column; }
.info .head { height: 59px; background: var(--panel-head); }

/* ---------- overlays ---------- */
.overlay { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; }
.viewer { background: rgba(2, 6, 23, .96); color: #e2e8f0; }
.viewer .vhead { display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
.viewer .vhead .grow { flex: 1; min-width: 0; }
.viewer .ibtn { color: #e9edef; }
.viewer .vbody { flex: 1; min-height: 0; display: grid; place-items: center; padding: 16px; }
.viewer img { max-width: 100%; max-height: 100%; object-fit: contain; }
.viewer .vfoot { display: flex; gap: 12px; padding: 12px 16px max(12px, env(safe-area-inset-bottom)); align-items: center; }
.viewer .vfoot input { flex: 1; background: #1a2438; border: 0; border-radius: 8px; padding: 12px 14px; color: #e9edef; outline: none; font-size: 15px; }
.viewer .vfoot .send-btn { background: var(--accent); color: #fff; width: 52px; height: 52px; }
.thumbs { display: flex; gap: 8px; justify-content: center; padding: 0 16px 6px; overflow-x: auto; }
.thumbs img { width: 52px; height: 52px; object-fit: cover; border-radius: 6px; border: 2px solid transparent; cursor: pointer; }
.thumbs img.on { border-color: var(--accent); }

.call-screen { background: radial-gradient(900px 500px at 50% -10%, #2563eb55, transparent 70%), linear-gradient(170deg, #1e3a8a, #0b1222 65%); color: #fff; align-items: center; justify-content: space-between; padding: max(48px, env(safe-area-inset-top)) 24px max(48px, env(safe-area-inset-bottom)); text-align: center; }
.call-screen .lock { font-size: 13px; opacity: .7; display: flex; align-items: center; gap: 6px; justify-content: center; }
.call-screen .lock svg { width: 14px; height: 14px; }
.call-screen h2 { font-size: 28px; font-weight: 400; margin: 16px 0 8px; }
.call-screen .cstatus { opacity: .8; font-size: 16px; }
.call-screen .av { margin: 40px auto 0; box-shadow: 0 0 0 0 rgba(96, 165, 250, .5); }
.call-screen.ringing .av { animation: pulse 1.6s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 28px rgba(96, 165, 250, 0); } 100% { box-shadow: 0 0 0 0 rgba(96, 165, 250, 0); } }
.call-actions { display: flex; gap: 48px; justify-content: center; }
.cbtn { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .15); color: #fff; }
.cbtn svg { width: 30px; height: 30px; }
.cbtn.end { background: var(--danger); }
.cbtn.accept { background: #16a34a; animation: bounce 1.2s infinite; }
.cbtn.on { background: #fff; color: #111b21; }
@keyframes bounce { 50% { transform: translateY(-6px); } }
.call-actions label { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 13px; opacity: .9; }

.toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); background: #0f172a; color: #fff; padding: 11px 18px; border-radius: 12px; z-index: 200; font-size: 14px; max-width: calc(100% - 32px); box-shadow: var(--pop-shadow); animation: popin .15s; }

.modal-bg { position: fixed; inset: 0; background: rgba(11, 20, 26, .6); z-index: 120; display: grid; place-items: center; padding: 16px; }
.modal { background: var(--menu); border-radius: 18px; padding: 24px 24px 18px; width: 100%; max-width: 420px; box-shadow: var(--pop-shadow); }
.modal h3 { margin: 0 0 14px; font-weight: 700; font-size: 18px; }
.modal p { color: var(--text-2); margin: 0 0 16px; }
.modal .btns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.modal .btns .btn.flat { border: 1px solid var(--line); }

/* ---------- mobile ---------- */
@media (max-width: 768px) {
  .side { width: 100%; max-width: none; min-width: 0; border: 0; }
  .pane { position: absolute; inset: 0; z-index: 30; transform: translateX(100%); transition: transform .24s var(--ease); }
  .app.chat-open .pane { transform: none; }
  .side .head { background: var(--mobile-head); padding-top: env(safe-area-inset-top); height: calc(60px + env(safe-area-inset-top)); }
  .side .head .ibtn { width: 44px; height: 44px; color: var(--head-icon); }
  .app-title { display: block; font-size: 24px; font-weight: 800; letter-spacing: -.02em; color: var(--head-title); }
  .fab { display: grid; place-items: center; position: absolute; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); width: 56px; height: 56px; border-radius: 18px; background: var(--accent); color: var(--on-accent); box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 40%, transparent); z-index: 5; }
  .chat-head { background: var(--mobile-head); border: 0; border-bottom: 1px solid var(--line); padding: env(safe-area-inset-top) 6px 0 2px; height: calc(60px + env(safe-area-inset-top)); gap: 4px; }
  .chat-head .ibtn { width: 44px; height: 44px; color: var(--head-icon); }
  .chat-head .back { display: grid; width: 36px; }
  .chat-head .av { margin-right: 6px; }
  .composer { padding: 8px; padding-bottom: max(8px, env(safe-area-inset-bottom)); background: var(--panel); border-top: 1px solid var(--line); gap: 6px; }
  .composer .box { border-radius: 22px; padding: 11px 6px 11px 4px; gap: 2px; align-items: flex-end; }
  .composer .box .ibtn { width: 34px; height: 22px; margin: 0; }
  .composer > .ibtn.attach-outer { display: none; }
  .send-btn { width: 44px; height: 44px; border-radius: 50%; }
  .info { position: absolute; inset: 0; width: 100%; max-width: none; z-index: 40; min-width: 0; }
  .info .head { background: var(--mobile-head); padding-top: env(safe-area-inset-top); height: calc(60px + env(safe-area-inset-top)); border-bottom: 1px solid var(--line); }
  .drawer-head { height: auto; min-height: 60px; padding: calc(8px + env(safe-area-inset-top)) 8px 8px; }
  .pop.attach { left: 8px; right: 8px; bottom: 70px; display: grid; grid-template-columns: repeat(3, 1fr); }
  .pop.attach button { flex-direction: column; gap: 6px; font-size: 13px; padding: 10px 0; }
  .pop.attach .dot { width: 52px; height: 52px; }
  .pop.attach .dot svg { width: 24px; height: 24px; }
  .to-bottom { bottom: 76px; right: 12px; }
}
@media (min-width: 769px) {
  .composer .box .attach-inner { display: none; }
}
.encrypt svg { width: 12px; height: 12px; display: inline; vertical-align: -1px; }
@media (prefers-color-scheme: dark) { .av { background: linear-gradient(135deg, #334a7a, #24365e); } }
.callbar { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 16px; background: #16a34a; color: #fff; font-size: 14px; font-weight: 500; text-align: left; z-index: 3; }
.callbar svg { width: 20px; height: 20px; }
.callbar span { flex: 1; }
.callbar b { background: rgba(255, 255, 255, .22); padding: 5px 14px; border-radius: 10px; font-weight: 600; }
.call-screen .cpeople { margin-top: 10px; font-size: 14px; opacity: .75; max-width: 320px; margin-left: auto; margin-right: auto; }

/* ---------- list preview icons, presence, focus, motion ---------- */
.prev .pi { width: 16px; height: 16px; color: var(--text-2); }
.online-dot { position: relative; }
.online-dot::after { content: ""; position: absolute; right: 1px; bottom: 1px; width: 12px; height: 12px; border-radius: 50%; background: var(--online); border: 2px solid var(--panel); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; border-radius: 8px; }
.composer textarea:focus-visible, .search input:focus-visible, .edit-row input:focus-visible { outline: none; }
.item:focus-visible { outline-offset: -2px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ================================================================
   Indigo design (reference: soft indigo messenger)
   ================================================================ */
body { background: var(--bg-app); }
@media (min-width: 1024px) {
  .app { height: calc(100dvh - 48px); margin: 24px auto; max-width: 1360px; border-radius: 28px; box-shadow: 0 30px 80px rgba(40, 36, 90, .18); }
}

/* login */
.login { background: radial-gradient(900px 500px at 15% 0%, #b7b3f3 0%, transparent 60%), linear-gradient(160deg, #e3e0f7, #c9c4ec); }
@media (prefers-color-scheme: dark) { .login { background: radial-gradient(900px 500px at 15% 0%, #2c2a63 0%, transparent 60%), linear-gradient(160deg, #12121c, #0a0a12); } }
.login-card { border-radius: 28px; box-shadow: 0 24px 60px rgba(40, 36, 90, .18); }
.btn { border-radius: 16px; }

/* sidebar: greeting header */
.side { display: flex; flex-direction: column; }
.home-head { display: flex; align-items: center; gap: 12px; padding: max(18px, env(safe-area-inset-top)) 18px 10px; flex: none; }
.home-head .me-av { border-radius: 50%; }
.greet { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.15; }
.greet small { font-size: 19px; color: var(--text); font-weight: 400; }
.greet b { font-size: 20px; font-weight: 800; color: var(--text); letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.greet b.big { font-size: 26px; }
.round-btn { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; flex: none; transition: transform .1s var(--ease), background .15s var(--ease); }
.round-btn:hover { background: var(--accent-strong); }
.round-btn:active { transform: scale(.94); }
.round-btn svg { width: 22px; height: 22px; }
.round-btn.soft { width: 40px; height: 40px; background: var(--accent-soft); color: var(--accent); }
.search { padding: 0 16px 8px; }
.search label { border-radius: 16px; height: 44px; }

/* people strip */
.people-row { display: flex; gap: 12px; overflow-x: auto; padding: 6px 16px 14px; scrollbar-width: none; }
.people-row::-webkit-scrollbar { display: none; }
.person { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 64px; flex: none; }
.pname { font-size: 12px; color: var(--text-2); max-width: 64px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* avatar rings + presence */
.ring { position: relative; display: inline-grid; place-items: center; padding: 2px; border-radius: 50%; border: 2px solid transparent; flex: none; }
.ring.live { border-color: var(--accent-light); }
.ring.live::after { content: ""; position: absolute; right: 1px; bottom: 1px; width: 12px; height: 12px; border-radius: 50%; background: var(--online); border: 2px solid var(--panel); }
.ring.sm { padding: 1px; }
.ring.sm.live::after { width: 11px; height: 11px; right: 0; bottom: 0; }
.ring.add { width: 64px; height: 64px; background: var(--input); color: var(--text-2); border: 2px dashed color-mix(in srgb, var(--text-2) 35%, transparent); }
.ring.add svg { width: 26px; height: 26px; }
.av-56 { width: 56px; height: 56px; font-size: 22px; }
.av-48 { width: 48px; height: 48px; font-size: 19px; }
.av-28 { width: 28px; height: 28px; font-size: 12px; }
.av-28 svg { width: 70%; height: 70%; }

/* tab body + list */
.tab-body { flex: 1; overflow-y: auto; padding-bottom: 96px; }
.list { overflow: visible; }
.item { height: 74px; margin: 0 8px; padding: 0 8px; border-radius: 16px; }
.item .body { margin-left: 12px; padding-right: 4px; }
.row1 .name { font-size: 15.5px; font-weight: 500; }
.row1 .when { font-size: 12.5px; color: var(--text-2); }
.item.unread .row1 .name, .item.unread .row1 .when { font-weight: 700; color: var(--text); }
.item.unread .row2 .prev { color: var(--text); font-weight: 600; }
.row2 { font-size: 13.5px; }
.prev .you { color: var(--text-2); flex: none; }
.prev .pi { width: 16px; height: 16px; flex: none; }
.prev .pi.missed, .row1 .name.missed { color: var(--danger); }
.rtick svg { width: 17px; height: 17px; color: var(--text-2); }
.rtick svg.read { color: var(--accent); }
.chev { color: color-mix(in srgb, var(--text-2) 55%, transparent); margin-left: 2px; }
.chev svg { width: 20px; height: 20px; }
.count { background: var(--accent); }
.section-label { padding: 14px 20px 6px; }
.action.accent { color: var(--accent); }
.action-ic { width: 40px; height: 40px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.action-ic svg { width: 22px; height: 22px; color: inherit !important; }
.action.danger .action-ic { background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); }
.action .end { margin-left: auto; font-size: 14px; font-weight: 400; }
.card.group { padding: 6px 0; }
.card.group .action { width: 100%; margin: 0; border-radius: 0; background: transparent; }

/* settings profile */
.profile-top { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 16px 20px; }
.profile-av { position: relative; border-radius: 50%; margin-bottom: 10px; }
.profile-av .cam { position: absolute; right: 2px; bottom: 2px; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; border: 3px solid var(--panel); }
.profile-av .cam svg { width: 18px; height: 18px; }
.big-name { font-size: 20px; font-weight: 700; }

/* floating new-chat button + bottom tabs */
.fab { display: grid; place-items: center; position: absolute; right: 18px; bottom: calc(76px + env(safe-area-inset-bottom)); width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: var(--on-accent); box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 40%, transparent); z-index: 5; transition: transform .1s var(--ease); }
.fab:active { transform: scale(.94); }
.side[data-tab="settings"] .fab, .side[data-tab="calls"] .fab { display: none; }
.tabbar { flex: none; display: flex; border-top: 1px solid var(--line); background: var(--panel); padding: 6px 8px max(8px, env(safe-area-inset-bottom)); }
.tab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; border-radius: 12px; font-size: 11.5px; font-weight: 500; color: var(--text-2); min-height: 52px; }
.tab .tab-ic { position: relative; }
.tab .tab-ic svg { width: 24px; height: 24px; }
.tab.on { color: var(--accent); font-weight: 700; }
.tab-badge { position: absolute; top: -5px; right: -9px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--panel); }

/* chat header */
.chat-head { height: 68px; background: var(--panel); border-bottom: 1px solid var(--line); gap: 10px; }
.chat-head .who .title { font-size: 16px; font-weight: 700; }
.chat-head .who .status { font-size: 12.5px; }
.chat-head .who .status.live::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--online); margin-right: 6px; vertical-align: 1px; }
.chat-head .ibtn { color: var(--head-icon); }

/* messages */
.msgs { background: var(--chat-bg); background-image: none; padding-top: 16px; }
.msgs-inner { padding: 0 5%; }
.day { background: transparent; box-shadow: none; backdrop-filter: none; position: static; color: var(--text-2); font-weight: 500; font-size: 12.5px; margin: 18px 0 8px; }
.sysmsg, .encrypt { background: var(--sys); box-shadow: none; border-radius: 12px; color: var(--text-2); }
.unread-div { background: transparent; }
.unread-div span { background: var(--accent-soft); color: var(--accent); box-shadow: none; font-weight: 600; }
.mrow { align-items: flex-end; gap: 8px; margin-bottom: 4px; }
.mrow.first { margin-top: 12px; }
.mav { width: 28px; flex: none; visibility: hidden; }
.mrow.in.last .mav { visibility: visible; }
.bubble { border-radius: 20px; padding: 9px 14px 8px; box-shadow: none; background: var(--bubble-in); color: var(--bubble-in-text); max-width: 72%; font-size: 15px; line-height: 20px; }
.in.first .bubble, .out.first .bubble { border-top-left-radius: 20px; border-top-right-radius: 20px; }
.out .bubble { background: var(--bubble-out); color: var(--bubble-out-text); }
.meta { font-size: 10.5px; margin-top: 8px; }
.out .meta { color: rgba(255, 255, 255, .78); }
.out .meta svg { color: rgba(255, 255, 255, .78); }
.out .meta svg.read { color: #c8f7e1; }
.out .text a { color: #fff; text-decoration: underline; }
.out .deleted { color: rgba(255, 255, 255, .85); }
.sender { font-size: 12.5px; font-weight: 700; }
.menu-btn { border-radius: 0 18px 0 12px; }
.out .menu-btn { color: rgba(255, 255, 255, .85); }
.img-wrap { margin: -4px -9px 6px -9px; border-radius: 16px; }
.img-wrap.only { margin: -4px -9px -3px -9px; }
.out .filecard { background: rgba(255, 255, 255, .16); }
.out .filecard .fn small, .out .filecard .dl { color: rgba(255, 255, 255, .85); border-color: rgba(255, 255, 255, .6); }
.out .filecard .ft { background: rgba(255, 255, 255, .3); }
.callmsg .ci { background: color-mix(in srgb, var(--accent) 14%, transparent) !important; color: var(--accent); }
.out .callmsg .ci { background: rgba(255, 255, 255, .2) !important; color: #fff; }
.out .callmsg .ci.missed { color: #ffd1d1; }
.out .callmsg small { color: rgba(255, 255, 255, .8); }

/* voice note waveform */
.voice { display: flex; align-items: center; gap: 10px; min-width: 230px; padding: 2px 0; }
.voice .play { width: 36px; height: 36px; border-radius: 50%; background: #fff; color: var(--text); display: grid; place-items: center; flex: none; box-shadow: var(--shadow); }
.voice .play svg { width: 20px; height: 20px; }
.out .voice .play { color: var(--accent); }
.wave { flex: 1; height: 30px; display: flex; align-items: center; gap: 2px; cursor: pointer; }
.wave i { flex: 1; min-width: 2px; border-radius: 2px; background: currentColor; opacity: .35; transition: opacity .1s; }
.wave i.on { opacity: 1; }
.voice .vt { font-size: 11px; opacity: .8; min-width: 30px; text-align: right; }

/* "•••" typing bubble */
.typing-bubble { display: flex; gap: 4px; align-items: center; padding: 13px 16px; min-width: 0; }
.typing-bubble i { width: 7px; height: 7px; border-radius: 50%; background: var(--text-2); animation: typing 1.2s infinite ease-in-out; }
.typing-bubble i:nth-child(2) { animation-delay: .15s; }
.typing-bubble i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-4px); opacity: 1; } }

/* composer */
.composer { background: var(--panel); border-top: 1px solid var(--line); padding: 10px 12px; padding-bottom: max(10px, env(safe-area-inset-bottom)); gap: 10px; align-items: center; }
.composer .box { border-radius: 26px; padding: 6px 6px 6px 6px; align-items: center; gap: 4px; box-shadow: none; }
.composer .box .attach-inner { display: grid !important; }
.composer .box .ibtn { width: 36px; height: 36px; border-radius: 50%; }
.composer textarea { padding: 0 6px; align-self: center; }
.cam-btn { width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; flex: none; }
.cam-btn svg { width: 19px; height: 19px; }
.send-btn { width: 48px; height: 48px; border-radius: 50%; background: var(--accent); color: #fff; box-shadow: 0 6px 16px color-mix(in srgb, var(--accent) 35%, transparent); }
.rec .send-btn.go { background: var(--accent); }

/* call screen: photo backdrop + floating control bar */
.call-screen { background: radial-gradient(800px 500px at 50% 0%, #6c6af066, transparent 70%), linear-gradient(170deg, #2b2a6b, #101018 70%); }
.call-screen.has-photo { background: #101018; }
.call-screen.has-photo::before { content: ""; position: absolute; inset: -40px; background: var(--call-photo) center / cover no-repeat; filter: blur(28px) brightness(.55); }
.call-screen > * { position: relative; }
.call-screen .av { box-shadow: 0 0 0 0 rgba(142, 140, 245, .55); border: 4px solid rgba(255, 255, 255, .18); }
@keyframes pulse { 70% { box-shadow: 0 0 0 28px rgba(142, 140, 245, 0); } 100% { box-shadow: 0 0 0 0 rgba(142, 140, 245, 0); } }
.call-actions { background: rgba(20, 20, 30, .5); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid rgba(255, 255, 255, .1); border-radius: 32px; padding: 14px 24px; gap: 28px; }
.call-actions:empty { display: none; }
.cbtn { width: 58px; height: 58px; background: rgba(255, 255, 255, .14); }
.cbtn.on { background: #f26b4f; color: #fff; }
.cbtn.end { background: var(--danger); }
.cbtn.accept { background: #22c55e; }
.call-actions label { font-size: 12px; }

/* mobile adjustments for the new layout */
@media (max-width: 768px) {
  .home-head { padding-top: max(14px, env(safe-area-inset-top)); }
  .chat-head { height: calc(64px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 8px 0 2px; }
  .chat-head .back { width: 36px; }
  .composer { background: var(--panel); }
  .bubble { max-width: 78%; }
  .msgs-inner { padding: 0 12px; }
}
@media (min-width: 769px) {
  .tabbar { border-bottom-left-radius: 28px; }
}

/* login (indigo) */
.login-card { max-width: 420px; text-align: left; padding: 32px 28px 24px; }
.login-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: var(--accent); margin-bottom: 22px; }
.login-brand img { width: 40px; height: 40px; }
.login-card h1 { font-size: 28px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 6px; }
.login-sub { color: var(--text-2); margin: 0 0 22px; }
.lf { margin-bottom: 14px; }
.lf label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.lf-box { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 6px 0 14px; border-radius: 16px; background: var(--input); border: 1.5px solid transparent; transition: border-color .15s var(--ease), box-shadow .15s var(--ease); color: var(--text-2); }
.lf-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); background: var(--panel); }
.lf-box svg { width: 20px; height: 20px; flex: none; }
.field-input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none; font-size: 16px; color: var(--text); }
.field-input:focus-visible { outline: none; }
.eye { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--text-2); flex: none; }
.eye:hover { background: var(--hover); }
.login .err { margin: 2px 0 10px; min-height: 0; }
.login .err:empty { display: none; }
.login-btn { height: 52px; border-radius: 16px; font-size: 16px; margin-top: 6px; box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 35%, transparent); }
.login-btn:disabled { opacity: .7; }
.login-foot { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 20px 0 0; font-size: 12.5px; color: var(--text-2); text-align: center; }
.login-foot svg { width: 14px; height: 14px; flex: none; }
.out .voice .vt { color: rgba(255, 255, 255, .9); }
.in .voice .vt { color: var(--text-2); }
.side[data-tab="settings"] .home-head .round-btn { visibility: hidden; }
