/* KevlarDuo: lilac theme */

:root {
  --l50: #f8f5fd;
  --l100: #f1eafb;
  --l200: #e3d6f7;
  --l300: #ccb5ef;
  --l400: #b394e4;
  --l500: #9a74d6;
  --l600: #8259c4;
  --l700: #6a45a6;
  --l800: #4f3480;
  --l900: #2e2050;

  --bg: #e9def8;
  --surface: #ffffff;
  --surface-2: var(--l50);
  --surface-3: var(--l100);
  --text: #2a1f3d;
  --muted: #7b6d95;
  --border: #e4daf3;
  --accent: var(--l500);
  --accent-strong: var(--l600);
  --on-accent: #ffffff;
  --topbar: linear-gradient(135deg, #a07ddb 0%, #7d55c1 100%);
  --chat-bg: #f3edfb;
  --pattern: rgb(130 89 196 / 0.09);
  --bubble-out: linear-gradient(140deg, #a684e0 0%, #8660c9 100%);
  --bubble-out-text: #ffffff;
  --bubble-in: #ffffff;
  --bubble-in-text: var(--text);
  --quote-in: var(--l100);
  --quote-out: rgb(255 255 255 / 0.18);
  --tick: rgb(255 255 255 / 0.62);
  --tick-read: #ffd9f4;
  --danger: #d6456c;
  --ok: #34b27b;
  --shadow-sm: 0 1px 2px rgb(70 35 120 / 0.10);
  --shadow: 0 18px 50px rgb(80 40 140 / 0.20);
  --radius: 18px;
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #110c1c;
    --surface: #1e172d;
    --surface-2: #261d39;
    --surface-3: #2f2446;
    --text: #eee8f8;
    --muted: #a898c4;
    --border: #372b51;
    --topbar: linear-gradient(135deg, #5d3f99 0%, #3f2a6c 100%);
    --chat-bg: #171124;
    --pattern: rgb(179 148 228 / 0.06);
    --bubble-out: linear-gradient(140deg, #8261c4 0%, #6643a8 100%);
    --bubble-in: #2a2140;
    --quote-in: #362a51;
    --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.3);
    --shadow: 0 18px 50px rgb(0 0 0 / 0.45);
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --bg: #110c1c;
  --surface: #1e172d;
  --surface-2: #261d39;
  --surface-3: #2f2446;
  --text: #eee8f8;
  --muted: #a898c4;
  --border: #372b51;
  --topbar: linear-gradient(135deg, #5d3f99 0%, #3f2a6c 100%);
  --chat-bg: #171124;
  --pattern: rgb(179 148 228 / 0.06);
  --bubble-out: linear-gradient(140deg, #8261c4 0%, #6643a8 100%);
  --bubble-in: #2a2140;
  --quote-in: #362a51;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.3);
  --shadow: 0 18px 50px rgb(0 0 0 / 0.45);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background:
    radial-gradient(1200px 600px at 10% -10%, rgb(201 168 245 / 0.55), transparent 60%),
    radial-gradient(900px 600px at 110% 110%, rgb(154 116 214 / 0.45), transparent 60%),
    var(--bg);
  color: var(--text);
  font: 15px/1.45 var(--font);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
}
button, input, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.ico { display: block; flex: none; }
code { font-family: ui-monospace, Consolas, monospace; font-size: 0.92em; background: var(--surface-3); padding: 1px 6px; border-radius: 6px; }

/* ---------------------------------------------------------------- controls */
.btn {
  border: 0; border-radius: 14px; padding: 11px 18px; cursor: pointer; font-weight: 600;
  background: var(--surface-3); color: var(--text);
  transition: transform 0.08s, filter 0.15s, box-shadow 0.15s;
}
.btn:hover { filter: brightness(1.04); }
.btn:active { transform: scale(0.98); }
.btn.primary { background: linear-gradient(135deg, var(--l500), var(--l700)); color: var(--on-accent); box-shadow: 0 6px 18px rgb(130 89 196 / 0.35); }
.btn.ghost { background: transparent; color: var(--muted); }
.btn.block { width: 100%; padding: 13px 18px; font-size: 16px; }
.btn:disabled { opacity: 0.6; cursor: progress; }
.btn:focus-visible, .icon-btn:focus-visible, .call-btn:focus-visible, .who-opt:has(input:focus-visible) {
  outline: 2px solid var(--l400); outline-offset: 2px;
}

.icon-btn {
  width: 42px; height: 42px; border-radius: 50%; border: 0; background: transparent; color: inherit;
  display: inline-grid; place-items: center; cursor: pointer; flex: none;
  transition: background 0.15s, transform 0.08s;
}
.icon-btn:hover { background: rgb(130 89 196 / 0.12); }
.icon-btn:active { transform: scale(0.94); }
.icon-btn.small { width: 34px; height: 34px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.label { font-size: 13px; font-weight: 600; color: var(--muted); margin: 0; }
input[type='password'], input[type='text'], textarea {
  width: 100%; border: 1.5px solid var(--border); border-radius: 14px; background: var(--surface-2);
  padding: 12px 14px; outline: none; transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
input:focus, textarea:focus { border-color: var(--l400); box-shadow: 0 0 0 4px rgb(154 116 214 / 0.18); background: var(--surface); }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 0.75; }

.error { color: var(--danger); font-size: 13.5px; margin: 0; min-height: 1.2em; }
.notice { margin: 0; font-size: 13.5px; background: var(--surface-3); border-radius: 12px; padding: 10px 12px; }

/* ---------------------------------------------------------------- avatars */
.avatar {
  --av: linear-gradient(135deg, #b293e8, #7a52c0);
  width: 40px; height: 40px; border-radius: 50%; flex: none; display: inline-grid; place-items: center;
  background: var(--av); color: #fff; font-weight: 700; font-size: 17px; letter-spacing: 0.02em;
  box-shadow: inset 0 0 0 2px rgb(255 255 255 / 0.25);
  user-select: none;
}
.avatar[data-tone='0'] { --av: linear-gradient(135deg, #a98be6, #5f3fa3); }
.avatar[data-tone='1'] { --av: linear-gradient(135deg, #e3a8e9, #9a6ad6); }
.avatar.xl { width: 76px; height: 76px; font-size: 30px; }
.avatar.xxl { width: 120px; height: 120px; font-size: 48px; }

/* ---------------------------------------------------------------- login */
.login { min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; overflow-y: auto; height: 100dvh; }
.login-card {
  width: 100%; max-width: 400px; background: var(--surface); border-radius: 28px; padding: 32px 26px 22px;
  box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px;
  border: 1px solid rgb(255 255 255 / 0.5);
}
.brand { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; margin-bottom: 6px; }
.brand img { filter: drop-shadow(0 10px 20px rgb(130 89 196 / 0.35)); margin-bottom: 8px; }
.brand h1 { margin: 0; font-size: 28px; letter-spacing: -0.01em; color: var(--l700); }
:root[data-theme='dark'] .brand h1 { color: var(--l300); }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .brand h1 { color: var(--l300); } }
.brand p { margin: 0; color: var(--muted); }

.who { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.who-opt {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 10px 12px;
  border-radius: 20px; border: 2px solid var(--border); background: var(--surface-2); cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
}
.who-opt:hover { border-color: var(--l300); }
.who-opt input { position: absolute; opacity: 0; pointer-events: none; }
.who-opt:has(input:checked) { border-color: var(--l500); background: var(--surface-3); transform: translateY(-1px); }
.who-opt:has(input:checked)::after {
  content: ''; position: absolute; top: 10px; right: 10px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--l500) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.who-name { font-weight: 700; }
.foot { margin: 6px 0 0; display: flex; justify-content: center; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }

/* ---------------------------------------------------------------- chat layout */
.chat {
  height: 100dvh; max-width: 980px; margin: 0 auto; display: flex; flex-direction: column;
  background: var(--chat-bg); position: relative; overflow: hidden;
}
@media (min-width: 1000px) {
  .chat { height: calc(100dvh - 48px); margin: 24px auto; border-radius: 26px; box-shadow: var(--shadow); }
}

.topbar {
  display: flex; align-items: center; gap: 10px; padding: 10px 8px 10px 14px;
  padding-top: calc(10px + env(safe-area-inset-top));
  background: var(--topbar); color: #fff; flex: none; z-index: 3;
  box-shadow: 0 2px 12px rgb(80 40 140 / 0.25);
}
.topbar .avatar { box-shadow: 0 0 0 2px rgb(255 255 255 / 0.6); }
.topbar .icon-btn:hover { background: rgb(255 255 255 / 0.16); }
.peer { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.peer strong { font-size: 17px; }
.peer small { font-size: 12.5px; opacity: 0.85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.peer small.online::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #8ff0c0; margin-right: 6px; vertical-align: 1px; box-shadow: 0 0 0 2px rgb(255 255 255 / 0.3); }
.peer small.typing { font-style: italic; opacity: 1; }

.menu-wrap { position: relative; }
.menu {
  position: absolute; right: 4px; top: calc(100% + 6px); min-width: 210px; z-index: 20;
  background: var(--surface); color: var(--text); border-radius: 16px; padding: 6px;
  box-shadow: var(--shadow); border: 1px solid var(--border);
  display: flex; flex-direction: column;
  animation: pop 0.12s ease-out;
}
.menu button {
  display: flex; align-items: center; gap: 12px; width: 100%; border: 0; background: none; text-align: left;
  padding: 10px 12px; border-radius: 10px; cursor: pointer; color: inherit;
}
.menu button:hover { background: var(--surface-3); }
.menu button.danger { color: var(--danger); }
.menu.floating { position: fixed; right: auto; top: 0; min-width: 170px; }
@keyframes pop { from { opacity: 0; transform: scale(0.96); } }

.conn-banner { background: #ffe9a8; color: #5a4300; text-align: center; font-size: 13px; padding: 6px; flex: none; }

/* ---------------------------------------------------------------- messages */
.messages {
  flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 10px 12px 14px;
  background-color: var(--chat-bg);
  background-image: radial-gradient(var(--pattern) 1.3px, transparent 1.6px);
  background-size: 20px 20px;
  scrollbar-width: thin; scrollbar-color: var(--l300) transparent;
}
.history-top { text-align: center; padding: 10px 0 4px; min-height: 30px; }
.history-top .pill { display: inline-flex; align-items: center; gap: 6px; }
.msg-list { display: flex; flex-direction: column; max-width: 820px; margin: 0 auto; }

.pill {
  align-self: center; background: var(--surface); color: var(--muted); font-size: 12px; font-weight: 600;
  padding: 5px 12px; border-radius: 999px; box-shadow: var(--shadow-sm); margin: 12px 0 6px;
}
.e2e-note { max-width: 330px; text-align: center; line-height: 1.4; font-weight: 500; background: #fff6d6; color: #6b5200; }
:root[data-theme='dark'] .e2e-note { background: #3a3218; color: #f3dc8f; }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .e2e-note { background: #3a3218; color: #f3dc8f; } }

.msg { display: flex; margin-top: 8px; }
.msg.cont { margin-top: 2px; }
.msg.out { justify-content: flex-end; }
.bubble {
  position: relative; max-width: min(78%, 560px); padding: 7px 10px 6px 11px; border-radius: var(--radius);
  background: var(--bubble-in); color: var(--bubble-in-text); box-shadow: var(--shadow-sm);
  overflow-wrap: anywhere; white-space: pre-wrap; user-select: text;
}
.msg.in:not(.cont) .bubble { border-top-left-radius: 6px; }
.msg.out .bubble { background: var(--bubble-out); color: var(--bubble-out-text); }
.msg.out:not(.cont) .bubble { border-top-right-radius: 6px; }
.msg.flash .bubble { animation: flash 1.2s ease-out; }
@keyframes flash { 0%, 40% { box-shadow: 0 0 0 4px var(--l300); } }

.bubble .text a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.bubble.jumbo { background: none !important; box-shadow: none; padding: 0 2px; }
.bubble.jumbo .text { font-size: 42px; line-height: 1.15; }
.bubble.jumbo .meta { color: var(--muted); float: none; display: flex; justify-content: flex-end; margin: 2px 0 0; }
.bubble.jumbo .meta .ticks { color: var(--l500); }

.meta {
  float: right; display: inline-flex; align-items: center; gap: 3px; margin: 7px 0 -3px 10px;
  font-size: 11px; line-height: 1; opacity: 0.75; white-space: nowrap; user-select: none;
}
.msg.out .meta { opacity: 1; color: rgb(255 255 255 / 0.8); }
.ticks { color: var(--tick); display: inline-flex; }
.ticks.read { color: var(--tick-read); }
.msg.failed .ticks { color: #ffd0da; }

.bubble.deleted { font-style: italic; opacity: 0.75; }
.bubble.deleted .text::before { content: '⊘ '; }

.quote {
  display: flex; flex-direction: column; gap: 1px; width: 100%; text-align: left; border: 0; cursor: pointer;
  background: var(--quote-in); border-left: 3px solid var(--l500); border-radius: 10px; padding: 5px 9px; margin-bottom: 5px;
  font-size: 13px; color: inherit; white-space: normal;
}
.msg.out .quote { background: var(--quote-out); border-left-color: #fff; }
.quote strong { color: var(--l600); font-size: 12.5px; }
.msg.out .quote strong { color: #fff; }
.quote span { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; opacity: 0.85; }
.quote.static { cursor: default; margin: 0; flex: 1; min-width: 0; }

.bubble.media { padding: 4px; }
.bubble.media img {
  display: block; width: min(300px, 62vw); height: auto; max-height: 420px; object-fit: cover;
  border-radius: 14px; cursor: zoom-in; background: var(--surface-3);
}
.bubble.media .text { display: block; padding: 6px 6px 0; }
.bubble.media .meta { margin-right: 6px; margin-bottom: 1px; }
.bubble.media.no-caption { position: relative; }
.bubble.media.no-caption .meta {
  position: absolute; right: 10px; bottom: 10px; margin: 0; float: none; padding: 3px 7px; border-radius: 999px;
  background: rgb(30 18 50 / 0.45); color: #fff; opacity: 1;
}

.bubble.call-log { display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 8px; cursor: pointer; white-space: normal; }
.call-log .call-ico { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: var(--l600); flex: none; }
.msg.out .call-log .call-ico { background: rgb(255 255 255 / 0.2); color: #fff; }
.call-log.bad .call-ico { color: var(--danger); }
.msg.out .call-log.bad .call-ico { color: #ffd0da; }
.call-log .call-text { display: flex; flex-direction: column; line-height: 1.25; }
.call-log .call-text small { opacity: 0.75; font-size: 12px; }
.call-log .meta { align-self: flex-end; margin: 0 0 0 4px; }

.msg.pending .bubble { opacity: 0.85; }
.msg.failed .bubble { outline: 2px solid var(--danger); outline-offset: 1px; }

.jump-btn {
  position: absolute; right: 18px; bottom: 86px; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--surface); color: var(--l600); box-shadow: var(--shadow); display: grid; place-items: center; z-index: 4;
}
.badge {
  position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  background: var(--l500); color: #fff; font-size: 11.5px; font-weight: 700; display: grid; place-items: center;
}

/* ---------------------------------------------------------------- composer */
.reply-bar {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px 0 14px; background: var(--surface); flex: none;
  border-top: 1px solid var(--border);
}
.composer {
  display: flex; align-items: flex-end; gap: 6px; padding: 8px 10px; flex: none;
  padding-bottom: calc(8px + env(safe-area-inset-bottom));
  background: var(--surface); border-top: 1px solid var(--border);
}
.reply-bar:not([hidden]) + .composer { border-top: 0; }
.composer .icon-btn { color: var(--l600); }
:root[data-theme='dark'] .composer .icon-btn { color: var(--l300); }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .composer .icon-btn { color: var(--l300); } }
.composer textarea {
  flex: 1; resize: none; max-height: 140px; min-height: 42px; border-radius: 22px; padding: 10px 16px; line-height: 1.35;
  background: var(--surface-2);
}
.icon-btn.send { background: linear-gradient(135deg, var(--l500), var(--l700)) !important; color: #fff !important; box-shadow: 0 4px 12px rgb(130 89 196 / 0.4); }
.icon-btn.send .ico { transform: translateX(-1px); }

/* ---------------------------------------------------------------- call */
.call {
  position: fixed; inset: 0; z-index: 50; color: #fff; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: calc(56px + env(safe-area-inset-top)) 20px calc(40px + env(safe-area-inset-bottom));
  background: radial-gradient(120% 80% at 50% 20%, #6b48ad 0%, #3a2665 45%, #1a1130 100%);
}
.call video { position: absolute; background: #000; object-fit: cover; display: none; }
.call #remoteVideo { inset: 0; width: 100%; height: 100%; }
.call #localVideo.mirror { transform: scaleX(-1); }
.call[data-mode='video'].has-local #localVideo { display: block; inset: 0; width: 100%; height: 100%; }
.call[data-mode='video'].has-remote #remoteVideo { display: block; }
.call[data-mode='video'].has-remote #localVideo {
  inset: auto; top: calc(16px + env(safe-area-inset-top)); right: 16px; width: 112px; height: 160px;
  border-radius: 16px; border: 2px solid rgb(255 255 255 / 0.7); box-shadow: 0 10px 30px rgb(0 0 0 / 0.4); z-index: 2;
}
.call[data-mode='video'].has-local::before {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom, rgb(20 10 40 / 0.55), transparent 28%, transparent 66%, rgb(20 10 40 / 0.65));
}
.call-info { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.call-info h2 { margin: 14px 0 0; font-size: 28px; font-weight: 700; }
.call-info p { margin: 0; opacity: 0.85; font-variant-numeric: tabular-nums; }
.call[data-mode='video'] .call-info .avatar { width: 76px; height: 76px; font-size: 30px; }
.call[data-mode='video'].has-remote .call-info { align-self: flex-start; align-items: flex-start; text-align: left; }
.call[data-mode='video'].has-remote .call-info .avatar { display: none; }
.call[data-mode='video'].has-remote .call-info h2 { margin: 0; font-size: 20px; }
.call-info .avatar { box-shadow: 0 0 0 6px rgb(255 255 255 / 0.12), 0 20px 50px rgb(0 0 0 / 0.35); }
.call[data-state='calling'] .call-info .avatar,
.call[data-state='incoming'] .call-info .avatar { animation: ring 1.8s ease-out infinite; }
@keyframes ring {
  0% { box-shadow: 0 0 0 0 rgb(204 181 239 / 0.6), 0 20px 50px rgb(0 0 0 / 0.35); }
  100% { box-shadow: 0 0 0 34px rgb(204 181 239 / 0), 0 20px 50px rgb(0 0 0 / 0.35); }
}

.call-actions { position: relative; z-index: 2; display: none; gap: 22px; justify-content: center; flex-wrap: wrap; }
.call[data-state='incoming'] .call-actions.incoming { display: flex; gap: 70px; }
.call:not([data-state='incoming']):not([data-state='ended']) .call-actions.active { display: flex; }
.call[data-mode='audio'] .video-only { display: none; }
.call-act { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12.5px; opacity: 0.95; }
.call-btn {
  width: 62px; height: 62px; border-radius: 50%; border: 0; cursor: pointer; color: #fff;
  background: rgb(255 255 255 / 0.18); display: grid; place-items: center;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: transform 0.08s, background 0.15s;
}
.call-btn:hover { background: rgb(255 255 255 / 0.28); }
.call-btn:active { transform: scale(0.94); }
.call-btn.off { background: #fff; color: var(--l800); }
.call-btn.end { background: #e3486f; }
.call-btn.end:hover { background: #ef5a80; }
.call-btn.accept { background: #34b27b; animation: bounce 1.2s ease-in-out infinite; }
.call-btn.accept:hover { background: #3fc58a; }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.call[data-state='ended'] .call-info p { color: #ffd0da; }

/* ---------------------------------------------------------------- overlays */
.lightbox {
  position: fixed; inset: 0; z-index: 60; background: rgb(18 10 32 / 0.92); display: grid; place-items: center; padding: 20px;
  animation: fade 0.15s;
}
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 12px; box-shadow: 0 20px 60px rgb(0 0 0 / 0.5); }
.lightbox .icon-btn { position: absolute; top: calc(12px + env(safe-area-inset-top)); right: 12px; color: #fff; background: rgb(255 255 255 / 0.12); }
@keyframes fade { from { opacity: 0; } }

.dialog {
  border: 0; border-radius: 24px; padding: 22px; width: min(400px, calc(100vw - 32px));
  background: var(--surface); color: var(--text); box-shadow: var(--shadow);
}
.dialog::backdrop { background: rgb(30 15 60 / 0.45); backdrop-filter: blur(3px); }
.dialog form { display: flex; flex-direction: column; gap: 12px; }
.dialog h3 { margin: 0 0 4px; color: var(--l600); }
.row { display: flex; gap: 8px; }
.row.end { justify-content: flex-end; }

.toasts { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 80; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: max-content; max-width: calc(100vw - 32px); }
.toast { background: #2e2050; color: #fff; padding: 10px 16px; border-radius: 14px; box-shadow: var(--shadow); font-size: 14px; animation: pop 0.15s ease-out; text-align: center; }

@media (max-width: 480px) {
  .topbar { gap: 6px; padding-left: 10px; }
  .topbar .icon-btn { width: 38px; height: 38px; }
  .bubble { max-width: 84%; }
  .call-actions { gap: 16px; }
  .call-btn { width: 58px; height: 58px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
