:root {
  --content: 1180px;
  --page: #e7f4ec;
  --panel: #ffffff;
  --header: #f0f2f5;
  --green: #1fa96a;
  --green-dark: #087a53;
  --text: #26343d;
  --muted: #667781;
  --line: rgba(38, 52, 61, 0.1);
  --border: rgba(24, 56, 42, 0.14);
  --shadow: 0 26px 70px rgba(20, 42, 32, 0.18);
}

@keyframes frameEnter {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes bgDrift {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
    opacity: 0.42;
  }
  50% {
    transform: translate3d(18px, -16px, 0);
    opacity: 0.72;
  }
}

@keyframes securePulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(31, 169, 106, 0.26);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(31, 169, 106, 0);
  }
}

@keyframes itemIn {
  from {
    opacity: 0;
    transform: translateY(-14px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes scanSweep {
  from {
    transform: translateX(-130%);
  }
  to {
    transform: translateX(130%);
  }
}

@keyframes rowScan {
  0%,
  100% {
    background-color: #ffffff;
  }
  50% {
    background-color: #effaf4;
  }
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background: var(--page);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
}

.message-stage {
  min-height: 100vh;
  position: relative;
  display: block;
  overflow: hidden;
  padding: 0;
  background:
    radial-gradient(circle at 50% 8%, rgba(255, 255, 255, 0.66), transparent 30%),
    linear-gradient(180deg, #f5fffa 0%, var(--page) 100%);
}

.chat-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.chat-bg::before {
  content: "";
  position: absolute;
  inset: -30px;
  opacity: 0.28;
  background-image:
    linear-gradient(45deg, rgba(8, 122, 83, 0.08) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(8, 122, 83, 0.08) 25%, transparent 25%);
  background-size: 42px 42px;
}

.chat-bg span {
  position: absolute;
  width: 220px;
  height: 84px;
  border: 1px solid rgba(31, 169, 106, 0.17);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  animation: bgDrift 8s ease-in-out infinite;
}

.chat-bg span:nth-child(1) {
  left: 8%;
  top: 14%;
}

.chat-bg span:nth-child(2) {
  right: 10%;
  top: 28%;
  animation-delay: 1s;
}

.chat-bg span:nth-child(3) {
  left: 14%;
  bottom: 12%;
  animation-delay: 1.8s;
}

.chat-bg span:nth-child(4) {
  right: 18%;
  bottom: 22%;
  animation-delay: 2.6s;
}

.phone-frame {
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: var(--panel);
  box-shadow: none;
  animation: frameEnter 620ms ease both;
}

@supports (height: 100dvh) {
  .phone-frame {
    height: 100dvh;
    min-height: 100dvh;
  }
}

.list-header {
  flex: 0 0 auto;
  background: var(--header);
  border-bottom: 1px solid var(--line);
}

.top-line {
  min-height: 82px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 16px;
  align-items: center;
  gap: 12px;
  padding: 14px max(18px, calc((100vw - var(--content)) / 2)) 10px;
}

.top-line h1 {
  margin: 0;
  color: var(--text);
  font-size: 1.78rem;
  line-height: 1;
  font-weight: 900;
}

.top-line p {
  margin: 6px 0 0;
  color: var(--green-dark);
  font-size: 0.9rem;
  font-weight: 850;
}

.number-line {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  gap: 8px;
  vertical-align: top;
}

.number-line img {
  width: 22px;
  height: 16px;
  flex: 0 0 auto;
  border-radius: 3px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(38, 52, 61, 0.1);
}

.number-line img[hidden] {
  display: none;
}

.number-line span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.secure-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--green);
  animation: securePulse 2s ease-in-out infinite;
}

.status-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: min(var(--content), calc(100% - 36px));
  margin: 0 auto;
  padding: 0 18px 14px;
  color: var(--green-dark);
  font-size: 0.86rem;
  font-weight: 900;
  text-align: center;
}

.status-line svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.status-line span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.scan-strip {
  height: 4px;
  overflow: hidden;
  background: rgba(8, 122, 83, 0.12);
}

.scan-strip span {
  width: 0;
  height: 100%;
  display: block;
  background: linear-gradient(90deg, var(--green-dark), #39d98a);
  transition: width 680ms ease;
}

.search-row {
  flex: 0 0 auto;
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(var(--content), calc(100% - 64px));
  margin: 12px auto 8px;
  border-radius: 14px;
  background: #f0f2f5;
  padding: 0 14px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 850;
}

.search-row svg {
  width: 18px;
  height: 18px;
}

.chat-list {
  flex: 1;
  overflow-y: auto;
  padding: 0 max(32px, calc((100vw - var(--content)) / 2)) calc(174px + env(safe-area-inset-bottom, 0px));
  background: #ffffff;
  -webkit-overflow-scrolling: touch;
}

.chat-list-item {
  min-height: 78px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(-14px) scale(0.985);
}

.chat-list-item.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  animation: itemIn 360ms ease forwards;
}

.chat-list-item.is-ready {
  animation: none;
}

.chat-list-item.is-scanning {
  animation: rowScan 1.8s ease-in-out infinite;
}

.chat-list-avatar {
  width: 52px;
  height: 52px;
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #18b981, #0b8f67);
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(31, 169, 106, 0.18);
}

.chat-list-avatar.has-photo {
  background: #dfe8e4;
}

.chat-list-avatar.has-photo img {
  width: 120%;
  height: 120%;
  display: block;
  object-fit: cover;
  filter: blur(13px) saturate(0.82) contrast(0.86);
  opacity: 0.74;
  transform: scale(1.18);
}

.chat-list-avatar.has-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 45% 38%, rgba(255, 255, 255, 0.18), transparent 28%),
    linear-gradient(135deg, rgba(8, 122, 83, 0.36), rgba(20, 42, 32, 0.22));
  backdrop-filter: blur(2px);
}

.chat-list-avatar.no-photo {
  background: linear-gradient(135deg, #d7e0dd, #b7c5c0);
  box-shadow: 0 8px 18px rgba(38, 52, 61, 0.12);
}

.chat-list-avatar.no-photo::before,
.chat-list-avatar.no-photo::after {
  content: "";
  position: absolute;
  left: 50%;
  background: #ffffff;
  opacity: 0.92;
  transform: translateX(-50%);
}

.chat-list-avatar.no-photo::before {
  top: 13px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
}

.chat-list-avatar.no-photo::after {
  bottom: 10px;
  width: 29px;
  height: 17px;
  border-radius: 999px 999px 8px 8px;
}

.chat-list-avatar.alt {
  background: linear-gradient(135deg, #37b4a4, #087a53);
}

.chat-list-avatar.deep {
  background: linear-gradient(135deg, #536b76, #25363f);
}

.chat-list-avatar.no-photo,
.chat-list-avatar.no-photo.alt,
.chat-list-avatar.no-photo.deep {
  background: linear-gradient(135deg, #d7e0dd, #b7c5c0);
}

.chat-list-content {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.chat-list-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
}

.chat-title-stack {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.chat-list-head strong,
.masked-contact-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-list-head strong {
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 900;
}

.masked-contact-name {
  width: fit-content;
  max-width: min(78vw, 520px);
  position: relative;
  border-radius: 5px;
  color: rgba(8, 122, 83, 0.62);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0;
  filter: blur(2.4px);
  user-select: none;
}

.masked-contact-name::after {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.28));
  pointer-events: none;
}

.chat-list-head time {
  color: var(--green-dark);
  font-size: 0.72rem;
  font-weight: 850;
}

.secret-preview {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.secret-preview span {
  width: fit-content;
  max-width: 100%;
  min-height: 14px;
  position: relative;
  overflow: hidden;
  border-radius: 5px;
  background:
    linear-gradient(90deg, rgba(22, 122, 75, 0.13), rgba(22, 122, 75, 0.07)),
    repeating-linear-gradient(90deg, rgba(8, 122, 83, 0.1) 0 1px, transparent 1px 6px);
  color: rgba(14, 97, 65, 0.62);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.25;
  padding: 1px 8px 2px;
  text-overflow: clip;
  white-space: nowrap;
  filter: blur(2.8px);
  user-select: none;
  transform: translateZ(0);
}

.secret-preview span:first-child {
  width: min(94%, 820px);
}

.secret-preview span:last-child {
  width: min(70%, 620px);
}

.secret-preview.short span:first-child {
  width: min(72%, 520px);
}

.secret-preview.short span:last-child {
  width: min(46%, 360px);
}

.secret-preview.medium span:first-child {
  width: min(84%, 700px);
}

.secret-preview.medium span:last-child {
  width: min(62%, 520px);
}

.secret-preview.wide span:first-child {
  width: 100%;
}

.secret-preview.wide span:last-child {
  width: min(82%, 760px);
}

.secret-preview span::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.74), transparent),
    linear-gradient(0deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.16));
  animation: scanSweep 1.55s ease-in-out infinite;
}

.chat-list-content small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.item-status {
  display: flex;
  justify-content: flex-end;
}

.item-status span,
.item-status svg {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--green);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 900;
}

.item-status svg {
  padding: 4px;
}

.fixed-report {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--line);
  background: rgba(247, 251, 248, 0.96);
  padding: 12px max(32px, calc((100vw - var(--content)) / 2)) calc(18px + env(safe-area-inset-bottom, 0px));
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
  box-shadow: 0 -14px 30px rgba(20, 42, 32, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: opacity 320ms ease, transform 320ms ease;
}

.fixed-report.is-ready {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.message-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.message-stats article {
  display: grid;
  gap: 3px;
  min-height: 58px;
  align-content: center;
  border: 1px solid rgba(31, 169, 106, 0.13);
  border-radius: 12px;
  background: #ffffff;
  padding: 8px 6px;
  text-align: center;
}

.message-stats strong {
  color: var(--green-dark);
  font-size: 1rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.message-stats span {
  color: var(--muted);
  font-size: 0.6rem;
  font-weight: 800;
  line-height: 1.2;
}

.message-cta {
  min-height: 52px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 14px;
  background: var(--green);
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  text-decoration: none;
  font-weight: 900;
  box-shadow: 0 14px 26px rgba(31, 169, 106, 0.22);
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.fixed-report.is-ready .message-cta,
.message-cta:hover {
  background: var(--green-dark);
  box-shadow: 0 16px 30px rgba(8, 122, 83, 0.24);
  transform: translateY(-1px);
}

.email-modal[hidden] {
  display: none;
}

.notification-modal[hidden] {
  display: none;
}

.notification-modal {
  position: fixed;
  inset: 0;
  z-index: 22;
  display: grid;
  place-items: center;
  padding: 20px;
}

.notification-modal-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(17, 34, 27, 0.58), rgba(43, 60, 54, 0.44)),
    rgba(20, 42, 32, 0.42);
  backdrop-filter: blur(10px);
}

.notification-dialog {
  width: min(100%, 440px);
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  border: 1px solid rgba(8, 122, 83, 0.18);
  border-radius: 22px;
  background: #ffffff;
  padding: 26px;
  box-shadow: 0 24px 68px rgba(14, 36, 27, 0.24);
}

.notification-dialog-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: #e9f7f0;
  color: var(--green-dark);
}

.notification-dialog-icon svg {
  width: 28px;
  height: 28px;
}

.notification-dialog h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.65rem;
  line-height: 1.12;
}

.notification-dialog p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 650;
}

.notification-actions {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.notification-primary,
.notification-secondary {
  min-height: 52px;
  border-radius: 14px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.notification-primary {
  border: 0;
  background: var(--green);
  color: #ffffff;
  box-shadow: 0 14px 26px rgba(31, 169, 106, 0.22);
}

.notification-secondary {
  border: 1px solid var(--line);
  background: #f7fbf8;
  color: var(--muted);
}

.email-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 20px;
}

.email-modal-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(17, 34, 27, 0.58), rgba(43, 60, 54, 0.44)),
    rgba(20, 42, 32, 0.42);
  backdrop-filter: blur(10px);
}

.email-dialog {
  width: min(100%, 520px);
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  border: 1px solid rgba(8, 122, 83, 0.18);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(235, 248, 242, 0.92), rgba(255, 255, 255, 0) 154px),
    #ffffff;
  padding: 30px;
  box-shadow: 0 32px 86px rgba(16, 34, 28, 0.32);
  animation: modalEnter 220ms ease both;
}

.email-dialog::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  border-radius: 22px 22px 0 0;
  background: linear-gradient(90deg, #087a53, #1fa96a, #5bd699);
}

.email-close {
  width: 38px;
  height: 38px;
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(238, 245, 241, 0.96);
  color: var(--muted);
  cursor: pointer;
}

.email-close svg {
  width: 18px;
  height: 18px;
}

.email-dialog-icon {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(31, 169, 106, 0.14);
  border-radius: 16px;
  background: linear-gradient(180deg, #effaf4, #e4f5ed);
  color: var(--green-dark);
}

.email-dialog-icon svg {
  width: 27px;
  height: 27px;
}

.email-dialog h2 {
  margin: 0;
  max-width: 430px;
  padding-right: 42px;
  color: var(--text);
  font-size: clamp(1.45rem, 4.8vw, 2rem);
  line-height: 1.08;
  font-weight: 900;
}

.email-dialog p {
  margin: 0;
}

.email-dialog > p {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.5;
  font-weight: 700;
}

.email-trust-badges {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.email-trust-badges > span {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(31, 169, 106, 0.16);
  border-radius: 14px;
  background: rgba(246, 251, 248, 0.92);
  color: #167b54;
  font-size: 0.78rem;
  font-weight: 900;
  padding: 0 12px;
}

.email-trust-badges svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

.google-auth-panel[hidden],
.email-divider[hidden] {
  display: none !important;
}

.google-auth-panel {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(38, 52, 61, 0.12);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 249, 0.98));
  padding: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.google-auth-slot {
  min-height: 42px;
  display: grid;
  place-items: center;
}

.google-auth-panel p {
  min-height: 16px;
  color: #b42318;
  font-size: 0.76rem;
  font-weight: 850;
  text-align: center;
}

.google-auth-panel p.is-success {
  color: var(--green-dark);
}

.email-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #7b8790;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.email-divider::before,
.email-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

.email-form {
  display: grid;
  gap: 13px;
}

.email-form [hidden] {
  display: none !important;
}

.email-form label {
  display: grid;
  gap: 7px;
}

.email-form label span {
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 900;
}

.email-form input {
  width: 100%;
  min-height: 54px;
  border: 1px solid rgba(38, 52, 61, 0.16);
  border-radius: 14px;
  background: #fbfdfc;
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0;
  outline: none;
  padding: 0 16px;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.email-form input:focus {
  border-color: rgba(31, 169, 106, 0.7);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(31, 169, 106, 0.12);
}

.code-boxes {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.code-boxes input {
  min-height: 54px;
  padding: 0;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.email-feedback {
  min-height: 18px;
  color: #b42318;
  font-size: 0.78rem;
  font-weight: 850;
}

.email-feedback.is-success {
  color: var(--green-dark);
}

.email-timer {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.email-submit,
.email-resend {
  min-height: 54px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #087a53, #0b8d60);
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  box-shadow: 0 15px 28px rgba(8, 122, 83, 0.2);
  transition: transform 170ms ease, box-shadow 170ms ease, opacity 170ms ease;
}

.email-submit:hover:not(:disabled),
.email-resend:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(8, 122, 83, 0.22);
}

.email-resend {
  border: 1px solid rgba(31, 169, 106, 0.18);
  background: #eef8f3;
  color: var(--green-dark);
}

.email-submit:disabled,
.email-resend:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.email-note {
  border-top: 1px solid rgba(38, 52, 61, 0.1);
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
  font-weight: 800;
  padding-top: 14px;
}

@keyframes modalEnter {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

html[dir="rtl"] .top-line,
html[dir="rtl"] .status-line,
html[dir="rtl"] .chat-list-item {
  direction: rtl;
}

@media (max-width: 430px) {
  .top-line {
    min-height: 76px;
    padding-top: 12px;
  }

  .top-line h1 {
    font-size: 1.55rem;
  }

  .top-line p {
    font-size: 0.82rem;
  }

  .number-line {
    gap: 7px;
  }

  .number-line img {
    width: 20px;
    height: 14px;
  }

  .status-line {
    width: calc(100% - 28px);
    padding-left: 10px;
    padding-right: 10px;
  }

  .email-modal {
    padding: 12px;
  }

  .email-dialog {
    max-height: calc(100vh - 24px);
    overflow: auto;
    border-radius: 20px;
    padding: 24px 18px 20px;
  }

  .email-close {
    top: 12px;
    right: 12px;
  }

  .email-dialog h2 {
    padding-right: 40px;
  }

  .email-trust-badges {
    grid-template-columns: 1fr;
  }

  .code-boxes {
    gap: 6px;
  }

  .search-row {
    width: min(100% - 28px, var(--content));
  }

  .chat-list {
    padding-left: 0;
    padding-right: 0;
    padding-bottom: calc(214px + env(safe-area-inset-bottom, 0px));
  }

  .chat-list-item {
    grid-template-columns: 50px minmax(0, 1fr) 26px;
    gap: 10px;
    padding-left: 14px;
    padding-right: 14px;
  }

  .chat-list-avatar {
    width: 50px;
    height: 50px;
  }

  .fixed-report {
    padding-left: 12px;
    padding-right: 12px;
    padding-bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .chat-list-item,
  .phone-frame {
    opacity: 1 !important;
    transform: none !important;
  }
}
