/* Installed iPhone layout: notch, home indicator, no rubber-band, no input zoom. */
html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
  overscroll-behavior: none;
}
body {
  min-height: 100dvh;
  overscroll-behavior: none;
}
input, textarea, select {
  font-size: 16px;
}
button, a, input, textarea, select {
  touch-action: manipulation;
}
.messages, .msg-list, .contact-list, .custom-scroll, .emoji-window {
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
html.muzz-standalone,
html.muzz-standalone body {
  height: 100dvh;
  min-height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
}
html.muzz-standalone #root,
html.muzz-standalone .app,
html.muzz-standalone .app-shell {
  height: 100dvh;
  max-height: 100dvh;
}
html.muzz-standalone .chat-header,
html.muzz-standalone .mobile-top,
html.muzz-standalone .title-block {
  padding-top: calc(10px + var(--muzz-sat, env(safe-area-inset-top, 0px)));
  background: rgba(8, 8, 10, 0.88);
  backdrop-filter: saturate(160%) blur(18px);
}
html.muzz-standalone .composer {
  padding-bottom: calc(12px + var(--muzz-sab, env(safe-area-inset-bottom, 0px)) + var(--muzz-tab, 54px));
  background: rgba(8, 8, 10, 0.94);
  backdrop-filter: saturate(160%) blur(18px);
}
.muzz-fs {
  display: none;
  border: 0;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  font: 700 12px/1 system-ui, -apple-system, Segoe UI, sans-serif;
  letter-spacing: 0.04em;
  cursor: pointer;
}
html.muzz-fs-on .muzz-fs { display: inline-flex; align-items: center; }
.muzz-tabbar {
  position: fixed;
  z-index: 60;
  left: 12px;
  right: 12px;
  bottom: calc(10px + var(--muzz-sab, env(safe-area-inset-bottom, 0px)));
  display: flex;
  height: 64px;
  padding: 0 8px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 20% 40%, rgba(255, 255, 255, 0.45) 0 1px, transparent 1.5px),
    rgba(10, 10, 12, 0.88);
  border: 1px solid rgba(255, 42, 42, 0.4);
  box-shadow: 0 0 24px rgba(255, 24, 24, 0.18);
  backdrop-filter: saturate(180%) blur(18px);
}
.muzz-tabbar a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  color: #9aa3af;
  text-decoration: none;
  font: 800 12px/1 Outfit, system-ui, -apple-system, Segoe UI, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.muzz-tabbar a[aria-current="page"] { color: #ff3a3a; text-shadow: 0 0 12px rgba(255, 42, 42, 0.45); }
.muzz-install {
  position: fixed;
  z-index: 80;
  left: 16px;
  right: 16px;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  max-width: 420px;
  margin: 0 auto;
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
  color: #f4f7fb;
  pointer-events: none;
}
.muzz-install-card,
.muzz-install-pill,
.muzz-install-arrow { pointer-events: auto; }
.muzz-install-card {
  width: 100%;
  padding: 18px 18px 14px;
  border-radius: 22px;
  background: rgba(16, 18, 22, 0.96);
  border: 1px solid rgba(255, 42, 42, 0.4);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
}
.muzz-install .kicker {
  margin: 0 0 6px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ff6b6b;
}
.muzz-install h2 {
  margin: 0 0 12px;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 750;
}
.muzz-install ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.muzz-install li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  line-height: 1.3;
}
.muzz-install svg { flex: none; color: #ff3a3a; }
.muzz-install .step-num {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 42, 42, 0.16);
  color: #ff8a8a;
  font-size: 12px;
  font-weight: 800;
}
.muzz-install .actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}
.muzz-install .actions button,
.muzz-install-pill {
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  font: 700 13px/1 system-ui, -apple-system, Segoe UI, sans-serif;
  cursor: pointer;
}
.muzz-install [data-act="min"] {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.muzz-install [data-act="close"] {
  background: #ff2a2a;
  color: #fff;
}
.muzz-install-arrow {
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 14px solid #ff2a2a;
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.35));
}
.muzz-install-pill {
  display: none;
  background: #14181e;
  color: #fff;
  border: 1px solid rgba(255, 42, 42, 0.5) !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}
.muzz-install.is-pill { align-items: flex-end; bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
.muzz-install.is-pill .muzz-install-card,
.muzz-install.is-pill .muzz-install-arrow { display: none; }
.muzz-install.is-pill .muzz-install-pill { display: inline-flex; }
#muzzPmToast,
.muzz-pm-toast {
  display: none !important;
}
#muzzUpdateBar {
  position: fixed;
  z-index: 70;
  left: 12px;
  right: 12px;
  top: calc(10px + env(safe-area-inset-top, 0px));
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 10px 10px 14px;
  border-radius: 14px;
  background: #14181e;
  color: #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  font: 700 14px/1.3 system-ui, -apple-system, Segoe UI, sans-serif;
}
#muzzUpdateBar button {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  padding: 0;
}
#muzzUpdateBar button[aria-label="Close"] {
  margin-left: auto;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}
#muzzUpdateBar[hidden] {
  display: none !important;
}
.muzz-translate-btn {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: #9aa3ad;
  font-weight: 800;
  font-size: 15px;
  line-height: 1;
  padding: 4px;
  cursor: pointer;
}
.muzz-translate-picker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.28);
  box-shadow: inset 0 0 0 1px rgba(255, 0, 0, 0.2);
}
.muzz-translate-picker[hidden] {
  display: none !important;
}
.muzz-translate-label {
  width: 100%;
  margin: 0;
  color: #9aa3ad;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.muzz-translate-picker button,
.muzz-translate-undo {
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
}
.muzz-translate-picker button.is-on {
  color: #ff5a5a;
  box-shadow: inset 0 0 0 1px rgba(255, 42, 42, 0.45);
}
.muzz-translate-undo[hidden] {
  display: none !important;
}
#muzzTranslateError {
  position: fixed;
  z-index: 80;
  left: 12px;
  right: 12px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  background: #14181e;
  color: #fff;
  font: 700 14px/1.3 system-ui, -apple-system, Segoe UI, sans-serif;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}
#muzzPushStatus { margin: 8px 2px 0; line-height: 1.35; }
#muzzPushTestResult[hidden] { display: none !important; }
#muzzTranslateError[hidden] {
  display: none !important;
}
/* Private translate warning. Same backdrop as .overlay, panel like .card and the emoji sheet, buttons like .btn.ghost and .send. */
.muzz-confirm-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 24px max(16px, env(safe-area-inset-right, 0px)) calc(24px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  background: rgba(5, 5, 6, 0.82);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.muzz-confirm {
  width: min(100%, 380px);
  padding: 20px 18px 16px;
  border-radius: 22px;
  background: #121318;
  color: #f4f5f7;
  font-family: Outfit, "Segoe UI", sans-serif;
  box-shadow: inset 0 0 0 1px rgba(255, 42, 42, 0.28), 0 24px 60px rgba(0, 0, 0, 0.45);
}
.muzz-confirm-text {
  margin: 0 0 16px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
}
.muzz-confirm-actions {
  display: flex;
  gap: 10px;
}
.muzz-confirm-actions .btn {
  flex: 1 1 0;
  min-height: 48px;
  border: 0;
  border-radius: 16px;
  padding: 12px 14px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.muzz-confirm-actions .muzz-confirm-cancel {
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  color: #f4f5f7;
}
.muzz-confirm-actions .muzz-confirm-ok {
  background: linear-gradient(145deg, #ff2a2a, #9d0000);
  color: #fff;
}
.muzz-confirm-actions .btn:focus-visible {
  outline: 2px solid #ff5a5a;
  outline-offset: 2px;
}
