/* Shared 5.2 refinements for the browser and desktop shell. */
.auth-invitation {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  margin: 12px 0 20px;
  text-align: left;
  border: 1px solid #cce1d7;
  border-radius: 12px;
  background: #f0f8f4;
}
.auth-invitation span {
  color: #58665f;
  font-size: 14px;
  line-height: 1.6;
}
.invite-share-card {
  text-align: center;
  padding: 8px 0 16px;
}
.invite-share-card h3 {
  font-size: 22px;
  margin: 6px 0 16px;
  overflow-wrap: anywhere;
}
.invite-qr {
  display: flex;
  justify-content: center;
  margin: 0 auto 12px;
  width: min(220px, 100%);
}
.invite-qr svg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  background: #fff;
}
.invite-preview small {
  display: block;
  color: #66736c;
  margin-top: 12px;
}
.list-footer:has(.hello-quota-compact) {
  flex-shrink: 0;
}
.main-panel,
.conversation-column,
.secondary-content {
  min-width: 0;
}
.modal textarea[readonly] {
  overflow-wrap: anywhere;
  color: #54615c;
}
@media (max-width: 760px) {
  .desktop-download-bar {
    gap: 8px;
    padding-inline: 12px;
  }
  .desktop-download-bar > span:first-child {
    flex-shrink: 0;
    font-weight: 650;
  }
  .desktop-download-bar .demo-mode-label {
    font-size: 11px;
    line-height: 1.3;
  }
  .desktop-download-bar .button {
    font-size: 12px;
    padding-inline: 10px;
  }
  .modal input,
  .modal textarea,
  .modal select,
  .auth-card input,
  .settings-panel input,
  .settings-panel textarea,
  #message-input {
    font-size: 16px;
  }
  .modal-footer {
    flex-wrap: wrap;
    gap: 8px;
  }
  .modal-footer .button,
  .check-line {
    min-height: 44px;
  }
  .invite-share-card h3 {
    font-size: 20px;
  }
  .invite-qr {
    width: min(190px, 100%);
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}

/* A phone visitor can use the web app directly; desktop downloads stay on desktop. */
@media (max-width: 760px) {
  .desktop-download-bar > span:first-child {
    display: block;
  }
  .desktop-download-bar > .button {
    display: none;
  }
  .desktop-download-bar .demo-mode-label {
    margin-left: auto;
  }
}
