* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, sans-serif;
  color: #17201c;
  background: #f4f5f1;
}

.app {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.updateBanner {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(920px, calc(100vw - 24px));
  gap: 14px;
  border: 1px solid #b9d8cd;
  border-radius: 8px;
  padding: 12px 14px;
  color: #173128;
  background: #eefaf5;
  box-shadow: 0 14px 34px rgba(19, 40, 33, 0.18);
  transform: translateX(-50%);
}

.updateBanner.required {
  border-color: #e6b0a8;
  background: #fff4f2;
}

.updateBanner.repaired {
  border-color: #8fd7b4;
  background: #ecfff5;
}

.updateBanner p {
  margin: 3px 0;
  line-height: 1.35;
}

.updateBanner small {
  color: #68736c;
}

.updateActions {
  display: flex;
  flex-shrink: 0;
  gap: 8px;
}

.updateActions button {
  min-height: 36px;
  border: 1px solid #18715b;
  border-radius: 6px;
  padding: 0 12px;
  color: #18715b;
  background: #fff;
  font-weight: 800;
}

.updateActions button:last-child {
  color: #fff;
  background: #18715b;
}

.statusComposer,
.locationSharePanel {
  display: grid;
  gap: 8px;
}

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

.mediaFlowGuide span {
  display: grid;
  gap: 3px;
  min-width: 0;
  border: 1px solid #d9e5df;
  border-radius: 8px;
  padding: 8px 10px;
  background: #f8fbf9;
}

.mediaFlowGuide strong,
.mediaFlowGuide small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mediaFlowGuide strong {
  color: #17201c;
  font-size: 0.78rem;
  font-weight: 900;
}

.mediaFlowGuide small {
  color: #64756d;
  font-size: 0.7rem;
  font-weight: 800;
}

.statusDraftExpiryHint,
.profileImageSaveHint {
  color: #18715b;
  font-weight: 900;
}

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

.mediaWorkflowSteps span {
  display: grid;
  gap: 2px;
  min-width: 0;
  border: 1px solid #d5e4dd;
  border-radius: 8px;
  padding: 6px 7px;
  color: #42524b;
  background: #ffffff;
}

.mediaWorkflowSteps span.isActive {
  border-color: rgba(24, 113, 91, 0.32);
  color: #114d3f;
  background: #eefaf5;
}

.mediaWorkflowSteps strong,
.mediaWorkflowSteps small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mediaWorkflowSteps strong {
  font-size: 0.68rem;
  font-weight: 950;
}

.mediaWorkflowSteps small {
  font-size: 0.66rem;
  font-weight: 800;
}

.mediaWorkflowCard {
  display: grid;
  gap: 4px;
  border: 1px solid #d6e5de;
  border-radius: 10px;
  padding: 10px 12px;
  color: #223b34;
  background: #f7fbf9;
  box-shadow: inset 4px 0 0 #c5dbd2;
}

.mediaWorkflowCard strong {
  color: #10251f;
  font-size: 0.86rem;
  font-weight: 950;
}

.mediaWorkflowCard span {
  color: #53665d;
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.35;
}

.mediaWorkflowCard[data-workflow-state="checking"],
.mediaWorkflowCard[data-workflow-state="sending"] {
  border-color: #e5cf95;
  background: #fff9e8;
  box-shadow: inset 4px 0 0 #e3a008;
}

.mediaWorkflowCard[data-workflow-state="ready"],
.mediaWorkflowCard[data-workflow-state="success"] {
  border-color: #b9d8cd;
  background: #effaf5;
  box-shadow: inset 4px 0 0 #18715b;
}

.mediaWorkflowCard[data-workflow-state="error"] {
  border-color: #e6b0a8;
  background: #fff5f2;
  box-shadow: inset 4px 0 0 #b42318;
}

.profileWorkflowCard,
.statusWorkflowCard {
  margin: 2px 0;
}

.statusComposer textarea {
  width: 100%;
  min-height: 64px;
  resize: vertical;
}

.statusPrivacySummary {
  margin: 0;
  border: 1px solid #d7e6df;
  border-radius: 8px;
  padding: 9px 10px;
  color: #42524b;
  background: #f7fbf9;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.35;
}

.statusCleanupSummary {
  margin: 0;
  border: 1px solid #d7e6df;
  border-radius: 8px;
  padding: 8px 10px;
  color: #53645d;
  background: #f7fbf9;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
}

.statusCleanupSummary.isFresh {
  border-color: #b9d8cd;
  color: #145d4c;
  background: #effaf5;
}

.statusActionRow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.statusActionRow .sideAction {
  min-width: 0;
}

@media (max-width: 560px) {
  .statusActionRow {
    grid-template-columns: 1fr;
  }

  .mediaWorkflowCard {
    border-radius: 8px;
    padding: 9px 10px;
  }
}

.statusDraftPreview {
  display: grid;
  grid-template-columns: minmax(96px, 0.48fr) 1fr;
  gap: 10px;
  align-items: center;
  min-height: 82px;
  border: 1px solid #cfe0d8;
  border-radius: 8px;
  padding: 8px;
  background: #f7fbf9;
}

.statusDraftPreview.isPublishing {
  cursor: progress;
  opacity: 0.72;
}

.statusDraftSequence {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(58px, 1fr));
  gap: 6px;
  min-width: 0;
}

.statusDraftItem {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.statusDraftItem[data-media-quality="large"],
.statusDraftItem[data-media-quality="compress"],
.attachmentQueueItem[data-media-quality="large"],
.attachmentQueueItem[data-media-quality="compress"] {
  border-color: rgba(180, 35, 24, 0.42);
  background: #fffaf8;
}

.statusDraftMedia {
  position: relative;
  display: block;
  width: 100%;
  height: 72px;
  overflow: hidden;
  border-radius: 8px;
  background: #0b1f1a;
}

.mediaPreviewKindBadge {
  position: absolute;
  left: 5px;
  bottom: 5px;
  max-width: calc(100% - 10px);
  overflow: hidden;
  border-radius: 999px;
  padding: 2px 6px;
  color: #ffffff;
  background: rgba(16, 24, 20, 0.74);
  font-size: 0.62rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.statusDraftMedia small {
  position: absolute;
  right: 5px;
  bottom: 5px;
  border-radius: 999px;
  padding: 2px 6px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.62);
  font-size: 0.66rem;
  font-weight: 900;
}

.mediaProblemBadge {
  position: absolute;
  left: 5px;
  top: 5px;
  max-width: calc(100% - 34px);
  overflow: hidden;
  border-radius: 999px;
  padding: 2px 6px;
  color: #ffffff;
  background: rgba(15, 118, 110, 0.88);
  font-size: 0.62rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

[data-media-quality="large"] .mediaProblemBadge {
  background: rgba(154, 91, 0, 0.92);
}

[data-media-quality="compress"] .mediaProblemBadge {
  background: rgba(180, 35, 24, 0.94);
}

.mediaProblemAction {
  color: #6f4730;
  font-weight: 900;
}

.mediaProblemMenu {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-width: 0;
}

.mediaProblemMenu button {
  min-height: 24px;
  border: 1px solid #d8e3dd;
  border-radius: 6px;
  padding: 3px 6px;
  color: #243b33;
  background: #ffffff;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 900;
}

.mediaProblemMenu button:hover {
  border-color: rgba(24, 113, 91, 0.42);
  color: #0f5f4c;
}

.mediaProblemMenu button:focus-visible {
  border-color: #18715b;
  outline: 3px solid rgba(24, 113, 91, 0.16);
}

.statusDraftRemove {
  position: absolute;
  top: 5px;
  right: 5px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.62);
  font-size: 0.78rem;
  font-weight: 900;
}

.statusDraftRemove:focus-visible {
  outline: 3px solid rgba(24, 113, 91, 0.42);
  outline-offset: 2px;
}

.statusDraftMove {
  position: absolute;
  bottom: 5px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.62);
  font-size: 0.72rem;
  font-weight: 900;
}

.statusDraftMove.previous {
  left: 5px;
}

.statusDraftMove.next {
  left: 34px;
}

.statusDraftMove:disabled {
  opacity: 0.34;
}

.statusDraftMove:focus-visible {
  outline: 3px solid rgba(24, 113, 91, 0.42);
  outline-offset: 2px;
}

.statusDraftCaption {
  width: 100%;
  min-width: 0;
  min-height: 30px;
  border: 1px solid #cfe0d8;
  border-radius: 8px;
  padding: 5px 7px;
  color: #163028;
  background: #ffffff;
  font: inherit;
  font-size: 0.76rem;
}

.statusDraftCaption:focus-visible {
  border-color: #18715b;
  outline: 3px solid rgba(24, 113, 91, 0.16);
}

.statusDraftMedia img,
.statusDraftMedia video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.statusDraftDetails {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.statusDraftDetails strong,
.statusDraftDetails small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.statusDraftBadge {
  align-self: flex-start;
  border: 1px solid rgba(15, 118, 110, 0.24);
  border-radius: 999px;
  color: var(--primary-strong);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.18rem 0.48rem;
}

.statusDraftDetails small {
  color: #64766e;
}

.uploadDiagnostics {
  color: #267367;
  font-weight: 800;
}

.uploadReviewSummary {
  display: block;
  border-left: 3px solid rgba(15, 118, 110, 0.42);
  color: #173f37;
  font-weight: 900;
  line-height: 1.35;
  padding-left: 8px;
  overflow-wrap: anywhere;
}

.mediaManageSummary {
  display: block;
  border: 1px solid rgba(24, 113, 91, 0.18);
  border-radius: 6px;
  color: #20483f;
  background: #f4fbf8;
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1.35;
  padding: 5px 7px;
  overflow-wrap: anywhere;
  white-space: normal;
}

.mediaQualityHint {
  border-radius: 6px;
  color: #315247;
  font-weight: 900;
}

.mediaQualityOverview {
  color: #334d43;
  font-weight: 900;
}

.mobileMediaHint,
.uploadProgressSteps {
  display: block;
  border: 1px solid #d8e5df;
  border-radius: 6px;
  padding: 5px 7px;
  color: #40544c;
  background: #ffffff;
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.28;
  overflow-wrap: anywhere;
}

.mobileMediaHint {
  border-color: #b9d8cd;
  color: #145d4c;
  background: #effaf5;
}

.uploadProgressSteps {
  border-color: #e7d7aa;
  color: #6f4b08;
  background: #fff9e8;
}

.mediaQualityAction {
  justify-self: start;
  min-height: 28px;
  border: 1px solid rgba(180, 35, 24, 0.28);
  border-radius: 7px;
  padding: 5px 9px;
  color: #9f1f16;
  background: #fff8f6;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 900;
}

.mediaQualityAction:disabled {
  border-color: #d7e4de;
  color: #789087;
  background: #f7faf8;
  cursor: not-allowed;
}

.mediaQualityAction:focus-visible {
  border-color: #18715b;
  outline: 3px solid rgba(24, 113, 91, 0.16);
}

[data-media-quality="optimal"] .mediaQualityHint,
.profileImageDraftMedia[data-media-quality="optimal"] + .profileImageDraftDetails .mediaQualityHint {
  color: #0f766e;
}

[data-media-quality="large"] .mediaQualityHint,
.profileImageDraftMedia[data-media-quality="large"] + .profileImageDraftDetails .mediaQualityHint {
  color: #9a5b00;
}

[data-media-quality="compress"] .mediaQualityHint,
.profileImageDraftMedia[data-media-quality="compress"] + .profileImageDraftDetails .mediaQualityHint {
  color: #b42318;
}

.mainStatusPanel {
  display: grid;
  gap: 10px;
  width: min(640px, 100%);
}

.mainStatusComposer {
  border: 1px solid #d7e4de;
  border-radius: 8px;
  padding: 12px;
  background: #fbfdfc;
}

.statusPostItem {
  display: grid;
  gap: 8px;
  margin-top: 8px;
  border: 1px solid #dde8e2;
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}

.statusPostItem.isExpiringSoon {
  border-color: #e0b35b;
  background: #fffaf0;
}

@keyframes publishedStatusFocusPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(24, 113, 91, 0.42);
    transform: translateY(0);
  }

  40% {
    box-shadow: 0 0 0 8px rgba(24, 113, 91, 0.14);
    transform: translateY(-1px);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(24, 113, 91, 0);
    transform: translateY(0);
  }
}

.statusPostItem.publishedStatusFocus {
  border-color: rgba(24, 113, 91, 0.42);
  background: #f0faf5;
  animation: publishedStatusFocusPulse 2.4s ease;
}

.statusPostHeader {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 10px;
  align-items: center;
}

.statusPostHeader > span:last-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.statusPostHeader strong,
.statusPostHeader small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.statusPostHeader small {
  color: #68736c;
}

.statusPostAvatar {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #18715b;
  background-position: center;
  background-size: cover;
  font-weight: 800;
  font-size: 0.88rem;
}

.statusPostAvatar.hasProfileImage {
  box-shadow: 0 6px 14px rgba(24, 113, 91, 0.18);
}

.statusPostBadges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.statusPostBadges span {
  border: 1px solid #d6e8df;
  border-radius: 999px;
  padding: 3px 8px;
  color: #27584a;
  background: #f0faf5;
  font-size: 0.78rem;
  font-weight: 700;
}

.statusPostActions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.statusPostActions .sideAction {
  width: auto;
  min-height: 34px;
}

.statusAudiencePicker {
  display: grid;
  gap: 8px;
  border: 1px solid #d7e4de;
  border-radius: 8px;
  padding: 10px;
  background: #f6fbf8;
}

.statusAudiencePicker p {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 800;
  color: #315c50;
}

#statusAudienceContactList {
  display: grid;
  gap: 6px;
}

.statusAudienceContact {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}

.statusAudienceContact input {
  width: 16px;
  height: 16px;
}

.statusMediaAttachment {
  margin-top: 4px;
}

.statusMediaAttachment .messageAttachmentPreview {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 8px;
}

.statusMediaPreview img,
.statusMediaPreview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.statusViewerCaption {
  margin: 0;
  max-height: 112px;
  overflow: auto;
  border: 1px solid rgba(213, 245, 232, 0.16);
  border-radius: 14px;
  padding: 12px 14px;
  color: #f3faf7;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.045)),
    rgba(8, 17, 13, 0.72);
  font-size: 0.98rem;
  line-height: 1.48;
  overflow-wrap: anywhere;
  scrollbar-width: thin;
  scrollbar-color: rgba(213, 245, 232, 0.36) transparent;
}

.statusViewerCaption:empty {
  display: none;
}

.statusViewerPrivacy,
.statusViewerReactions,
.statusViewerSeenBy {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #c9d8d2;
  font-size: 0.85rem;
}

.statusViewerPills {
  gap: 6px;
}

.statusViewerPrivacy {
  align-items: center;
  border: 1px solid rgba(213, 245, 232, 0.1);
  border-radius: 14px;
  padding: 7px;
  background: rgba(255, 255, 255, 0.045);
}

.statusViewerPrivacy span,
.statusViewerReactions span,
.statusViewerSeenBy span {
  border: 1px solid rgba(213, 245, 232, 0.12);
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(255, 255, 255, 0.075);
}

.statusViewerPrivacy span:not(.statusViewerExpiryPill) {
  color: #e8f2ee;
  background: rgba(255, 255, 255, 0.06);
}

.statusViewerPrivacy span:last-child {
  border-color: rgba(213, 245, 232, 0.2);
  color: #d5f5e8;
}

.statusViewerPrivacy .statusViewerExpiryPill {
  border-color: rgba(213, 245, 232, 0.28);
  color: #d5f5e8;
  background: rgba(24, 113, 91, 0.24);
  font-weight: 900;
}

.statusViewerSeenBy {
  align-items: center;
  padding: 2px 0;
}

.statusViewerSeenBy strong {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border: 1px solid rgba(213, 245, 232, 0.2);
  border-radius: 999px;
  padding: 0 10px;
  color: #d5f5e8;
  background: rgba(24, 113, 91, 0.24);
  font-size: 0.78rem;
  font-weight: 900;
}

.statusViewerSeenBy span {
  max-width: 156px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.statusViewerActions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  border: 1px solid rgba(213, 245, 232, 0.14);
  border-radius: 18px;
  padding: 9px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.045)),
    rgba(8, 17, 13, 0.88);
  box-shadow: 0 -12px 34px rgba(0, 0, 0, 0.24);
}

.statusViewerPrimaryActions,
.statusViewerSecondaryActions {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 44px;
}

.statusViewerPrimaryActions {
  flex-wrap: wrap;
}

.statusViewerSecondaryActions {
  justify-content: end;
  flex: 0 0 auto;
}

.statusReplyQuickAction {
  min-width: 112px;
  border-radius: 999px;
}

.statusViewerActions .chatInfoJump,
.statusViewerActions .chatInfoDownload {
  display: inline-flex;
  min-width: 0;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  line-height: 1.1;
  text-align: center;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.statusViewerActions .chatInfoJump span,
.statusViewerActions .chatInfoDownload {
  overflow: hidden;
  text-overflow: ellipsis;
}

.statusViewerActions .chatInfoJump:hover,
.statusViewerActions .chatInfoDownload:hover {
  transform: translateY(-1px);
}

.statusViewerFileAction,
.statusViewerSecondaryActions .dangerAction {
  border-radius: 999px;
  max-width: 180px;
  white-space: nowrap;
}

.statusViewerActions .isSelected {
  border-color: #d5f5e8;
  color: #10251f;
  background: #d5f5e8;
  box-shadow: 0 0 0 2px rgba(213, 245, 232, 0.2);
}

.statusReactionButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1 1 96px;
  min-width: 96px;
  min-height: 42px;
  max-width: 148px;
  border-radius: 999px;
  padding-inline: 10px;
  white-space: nowrap;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.statusReactionButton:hover {
  border-color: rgba(213, 245, 232, 0.32);
  background: rgba(213, 245, 232, 0.12);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.statusReactionButton span,
.statusReactionButton strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.statusReactionButton span {
  max-width: 100%;
}

.statusReactionButton.isSelected {
  border-color: rgba(213, 245, 232, 0.92);
  color: #10251f;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(213, 245, 232, 0.96)),
    #d5f5e8;
  box-shadow: 0 0 0 2px rgba(213, 245, 232, 0.22), 0 8px 18px rgba(0, 0, 0, 0.22);
}

.statusReactionButton strong {
  display: inline-grid;
  min-width: 26px;
  height: 22px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 999px;
  padding: 0 6px;
  color: #10251f;
  background: rgba(213, 245, 232, 0.88);
  font-size: 0.78rem;
  line-height: 1;
}

.statusReactionButton.isSelected strong {
  color: #ffffff;
  background: #18715b;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.statusReplyComposer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  border: 1px solid rgba(213, 245, 232, 0.16);
  border-radius: 999px;
  padding: 7px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.04)),
    rgba(8, 17, 13, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 10px 26px rgba(0, 0, 0, 0.16);
}

.statusReplyComposer input {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  padding: 0 14px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.055);
  font: inherit;
}

.statusReplyComposer input::placeholder {
  color: rgba(255, 255, 255, 0.62);
}

.statusReplyComposer input:focus {
  outline: 3px solid rgba(213, 245, 232, 0.24);
  border-color: rgba(213, 245, 232, 0.8);
}

.statusReplyComposer button {
  min-height: 44px;
  min-width: 92px;
  border-radius: 999px;
  padding-inline: 16px;
}

.statusReplySendButton {
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(24, 113, 91, 0.26);
}

.statusReplySendButton:hover {
  background: #125f4d;
  box-shadow: 0 10px 22px rgba(24, 113, 91, 0.34);
  transform: translateY(-1px);
}

.statusReplyComposer.isSending {
  opacity: 0.78;
}

.statusReplyComposer.isSending button,
.statusReplyComposer.isSending input {
  cursor: wait;
}

.messageLocation {
  display: grid;
  gap: 4px;
  margin-top: 8px;
  border: 1px solid #c9ddd4;
  border-radius: 8px;
  padding: 8px;
  background: #eef8f4;
}

.messageLocation a {
  color: #11684f;
  font-weight: 800;
}

.messageLocationDetail {
  color: #52635b;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

.messageLocationSafety,
.activeLocationShareSafety {
  color: #315247;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.35;
}

.messageLocationCopyButton {
  justify-self: start;
  min-height: 28px;
  padding: 4px 8px;
  border: 1px solid #b8c9c2;
  border-radius: 8px;
  color: #11684f;
  background: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.messageLocation.isExpiringSoon {
  border-color: #d9a441;
  background: #fff8e8;
}

.messageLocation.isExpired {
  border-color: #d7aaa0;
  background: #fff0ed;
  opacity: 0.86;
}

.login {
  width: min(420px, calc(100vw - 32px));
  padding: 28px;
  border: 1px solid #d9ded7;
  border-radius: 8px;
  background: #ffffff;
}

.login h1 {
  margin: 0;
  font-size: 34px;
}

.login p {
  margin: 6px 0 22px;
  color: #68736c;
}

form {
  display: grid;
  gap: 12px;
}

.registerForm {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #d9ded7;
}

.betaRegistrationNotice {
  margin: 0;
  border: 1px solid #e9c6a8;
  border-radius: 8px;
  padding: 10px;
  color: #7c2d12;
  background: #fff7ed;
  font-size: 14px;
  line-height: 1.4;
}

.betaConsent {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  color: #4f5d55;
  font-size: 14px;
  line-height: 1.35;
}

.betaConsent input {
  width: 18px;
  min-height: 18px;
  margin: 2px 0 0;
}

input,
button {
  min-height: 44px;
  border-radius: 6px;
  font-size: 16px;
}

input {
  border: 1px solid #cbd3cc;
  padding: 0 12px;
}

button {
  border: 0;
  color: white;
  background: #18715b;
  cursor: pointer;
}

button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.notice {
  min-height: 20px;
  margin-top: 14px;
  color: #9a3412;
}

.legalLinks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 16px;
  font-size: 14px;
}

.legalLinks a,
.legalPage a {
  color: #18715b;
}

.betaBadge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  margin-left: 6px;
  border: 1px solid #b9d8cd;
  border-radius: 8px;
  padding: 2px 8px;
  color: #18715b;
  background: #eefaf5;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  vertical-align: middle;
}

.legalPage {
  width: min(760px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 40px 0;
}

.legalPage h1 {
  margin: 0 0 18px;
  font-size: 34px;
}

.legalPage h2 {
  margin: 28px 0 8px;
  font-size: 20px;
}

.legalPage p {
  line-height: 1.55;
}

.statusPage {
  width: min(980px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 34px 0;
}

.statusHeader {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 22px;
  border-bottom: 1px solid #d9ded7;
}

.statusHeader h1 {
  margin: 0;
  font-size: 32px;
}

.statusHeader p {
  margin: 8px 0 0;
  color: #68736c;
}

.statusHeader a {
  color: #18715b;
  font-weight: 700;
}

.statusLinks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.statusSummary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 22px 0;
}

.statusSummary div {
  padding: 16px;
  border: 1px solid #d9ded7;
  border-radius: 8px;
  background: #ffffff;
}

.statusSummary span {
  display: block;
  margin-bottom: 8px;
  color: #68736c;
  font-size: 13px;
}

.statusSummary strong {
  font-size: 20px;
}

.betaPage {
  width: min(1040px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 34px 0;
}

.betaHero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #d9ded7;
}

.betaHero h1 {
  margin: 6px 0 10px;
  font-size: 36px;
}

.betaHero p {
  max-width: 680px;
  margin: 0;
  color: #68736c;
  line-height: 1.55;
}

.betaEyebrow {
  color: #18715b;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.betaPrimaryLink,
.betaLinks a {
  color: #ffffff;
  background: #18715b;
  text-decoration: none;
}

.betaPrimaryLink {
  flex-shrink: 0;
  border-radius: 6px;
  padding: 13px 18px;
  font-weight: 800;
}

.betaGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 22px 0;
}

.betaCard,
.betaPanel {
  border: 1px solid #d9ded7;
  border-radius: 8px;
  background: #ffffff;
}

.betaCard {
  padding: 18px;
}

.betaCard span {
  display: block;
  margin-bottom: 8px;
  color: #68736c;
  font-size: 13px;
}

.betaCard strong {
  color: #17201c;
  font-size: 22px;
}

.betaCard p {
  margin: 10px 0 0;
  color: #68736c;
  line-height: 1.45;
}

.betaCardStrong {
  border-color: #9fcec0;
  background: #eefaf5;
}

.betaCardWarning {
  border-color: #e9c6a8;
  background: #fff7ed;
}

.betaPanel {
  margin-top: 14px;
  padding: 20px;
}

.betaPanel h2 {
  margin: 0 0 12px;
  font-size: 20px;
}

.betaPanel ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  line-height: 1.5;
}

.betaSteps {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 22px;
  line-height: 1.5;
}

.betaLinks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.betaLinks a {
  border-radius: 6px;
  padding: 10px 12px;
  font-weight: 800;
}

.betaFeedbackForm {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 22px;
  border: 1px solid #d9ded7;
  border-radius: 8px;
  padding: 20px;
  background: #ffffff;
}

.betaFeedbackForm label {
  display: grid;
  gap: 7px;
  color: #68736c;
  font-size: 13px;
  font-weight: 800;
}

.betaFeedbackForm input,
.betaFeedbackForm select,
.betaFeedbackForm textarea {
  width: 100%;
  border: 1px solid #cbd3cc;
  border-radius: 6px;
  padding: 0 12px;
  color: #17201c;
  background: #ffffff;
  font: inherit;
}

.betaFeedbackForm select {
  min-height: 44px;
}

.betaFeedbackForm textarea {
  min-height: 150px;
  padding-top: 12px;
  resize: vertical;
}

.feedbackMessage,
.betaFeedbackForm button,
.betaFeedbackForm .basicSearchSummary {
  grid-column: 1 / -1;
}

.statusTable,
.statusCommands {
  margin-top: 18px;
}

.statusTableHeader,
.statusRow {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) 140px 140px;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
}

.statusTableHeader {
  color: #68736c;
  font-size: 13px;
  font-weight: 700;
}

.statusRow {
  margin-top: 8px;
  border: 1px solid #d9ded7;
  border-radius: 8px;
  background: #ffffff;
}

.statusBadge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  color: #7c2d12;
  background: #fff3e8;
  font-size: 13px;
  font-weight: 700;
}

.statusBadge.ok {
  color: #14532d;
  background: #e8f7ee;
}

.statusCommands h2 {
  margin: 24px 0 12px;
  font-size: 20px;
}

.statusCommands pre {
  overflow-x: auto;
  margin: 8px 0;
  padding: 12px;
  border: 1px solid #d9ded7;
  border-radius: 8px;
  color: #17201c;
  background: #ffffff;
}

.roadmapControls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.roadmapControls button {
  min-height: 38px;
  border: 1px solid #c7d8d0;
  border-radius: 8px;
  padding: 0 12px;
  color: #18715b;
  background: #ffffff;
  font-weight: 800;
}

.roadmapControls button.active {
  color: #ffffff;
  background: #18715b;
}

.roadmapList {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.roadmapCard {
  display: grid;
  gap: 10px;
  border: 1px solid #dbe6df;
  border-radius: 8px;
  padding: 14px;
  background: #ffffff;
}

.roadmapCard div {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.roadmapCard span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 8px;
  color: #ffffff;
  background: #18715b;
  font-size: 13px;
  font-weight: 900;
}

.roadmapCard strong {
  line-height: 1.25;
}

.roadmapCard p {
  margin: 0;
  color: #3e4d46;
  line-height: 1.45;
}

.roadmapCard small {
  color: #68736c;
  font-weight: 800;
}

.roadmapCard.next span {
  background: #0b74d1;
}

.roadmapCard.native span {
  background: #6d28d9;
}

.roadmapCard.planned span {
  background: #64748b;
}

.planRow {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 120px minmax(220px, 2fr);
  gap: 12px;
  align-items: center;
  margin-top: 8px;
  padding: 12px 14px;
  border: 1px solid #d9ded7;
  border-radius: 8px;
  background: #ffffff;
}

.planRow p {
  margin: 0;
  color: #4f5d55;
  line-height: 1.45;
}

.handoffRow {
  grid-template-columns: minmax(180px, 1fr) 120px minmax(220px, 1.4fr);
  align-items: start;
}

.handoffRow ul,
.handoffRow pre {
  grid-column: 1 / -1;
}

.handoffRow ul {
  margin: 0;
  padding-left: 18px;
  color: #4f5d55;
  line-height: 1.5;
}

.accountActions {
  display: grid;
  gap: 8px;
  padding: 0 16px 14px;
  border-bottom: 1px solid #d9ded7;
}

.adminPanel {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid #d9ded7;
}

.adminPanel.hidden {
  display: none;
}

.adminPanel h2,
.adminPanel p {
  margin: 0;
}

.adminUser {
  display: grid;
  grid-template-columns: 1fr 90px;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
  font-size: 13px;
}

.adminUser button {
  min-height: 34px;
  font-size: 13px;
}

.betaFeedbackAdmin {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #d9ded7;
}

.betaFeedbackAdmin h3 {
  margin: 0;
  font-size: 16px;
}

.adminFeedbackActions {
  display: grid;
  gap: 8px;
}

.adminFeedbackActions select,
.adminFeedbackActions input {
  width: 100%;
  min-height: 38px;
  border: 1px solid #cbd3cc;
  border-radius: 6px;
  padding: 0 10px;
  font-size: 14px;
}

.betaFeedbackItem {
  display: grid;
  gap: 5px;
  margin-top: 8px;
  border: 1px solid #d9ded7;
  border-radius: 8px;
  padding: 10px;
  background: #ffffff;
}

.betaFeedbackItem strong {
  font-size: 13px;
}

.betaFeedbackItem p,
.betaFeedbackItem small {
  margin: 0;
  color: #68736c;
  font-size: 13px;
  line-height: 1.4;
}

.betaFeedbackActions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.betaFeedbackActions button {
  min-height: 30px;
  padding: 0 8px;
  font-size: 12px;
}

.hidden {
  display: none;
}

.messenger {
  width: 100vw;
  min-height: 100vh;
  grid-template-columns: 300px 1fr;
  background: #ffffff;
}

aside {
  border-right: 1px solid #d9ded7;
  background: #f7f8f5;
}

.brand,
.chat header {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  font-weight: 700;
  border-bottom: 1px solid #d9ded7;
}

.chatActions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.linkButton {
  min-height: 32px;
  padding: 0 10px;
  color: #18715b;
  background: transparent;
  border: 1px solid #b8c9c2;
}

.callButton {
  color: #0f5e71;
  background: #eef8fa;
  border-color: #a7ccd3;
}

.userBox,
.contacts,
.contactProfile,
.reportOverview {
  padding: 14px 20px;
  color: #4f5d55;
  border-bottom: 1px solid #e7ebe5;
}

.searchBox {
  display: grid;
  gap: 8px;
  padding: 14px 20px;
  border-bottom: 1px solid #e7ebe5;
  color: #68736c;
  font-size: 13px;
}

.archiveToggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-bottom: 1px solid #e7ebe5;
  color: #4f5d55;
  font-size: 14px;
}

.archiveToggle input {
  min-height: auto;
}

.sideAction {
  width: calc(100% - 40px);
  margin: 12px 20px;
  min-height: 36px;
  color: #18715b;
  background: #f1f7f4;
  border: 1px solid #b8c9c2;
  font-size: 14px;
}

.searchClearAction {
  margin-top: 0;
}

.basicSearchSummary {
  margin: 0 20px 12px;
  color: #68736c;
  font-size: 12px;
}

.basicSearchSummary.isError,
#attachmentPreviewStatus.isError {
  color: #b22f2f;
  font-weight: 800;
  line-height: 1.35;
  white-space: normal;
}

#attachmentPreviewStatus.isError {
  display: block;
}

.dangerAction {
  color: #8a2b22;
  background: #fff4f2;
  border-color: #e0b8b2;
}

.mediaActionGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 8px;
  margin: 6px 0;
}

.mediaActionGrid .sideAction {
  display: inline-flex;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  border-radius: 8px;
  padding: 0 10px;
  line-height: 1.15;
  text-align: center;
}

.mediaActionGrid .primaryMediaAction {
  color: #ffffff;
  background: #18715b;
  border-color: #18715b;
}

.mediaActionButton img,
.mediaActionFallbackIcon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.mediaActionButton img {
  display: block;
}

.primaryMediaAction img {
  filter: brightness(0) invert(1);
}

.mediaActionButton span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mediaActionFallbackIcon {
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: currentColor;
  font-weight: 900;
  line-height: 1;
}

.uploadCheckSummary {
  position: relative;
  margin: 0;
  border: 1px solid #d5e5df;
  border-radius: 8px;
  padding: 8px 10px 8px 74px;
  color: #40534b;
  background: #f7fbf9;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.35;
}

.uploadCheckSummary::before {
  content: attr(data-workflow-label);
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-grid;
  place-items: center;
  min-width: 52px;
  height: 22px;
  border-radius: 999px;
  color: #52645c;
  background: #e7eee9;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.uploadCheckSummary[data-workflow-state="checking"]::before,
.uploadCheckSummary[data-workflow-state="sending"]::before {
  color: #744a05;
  background: #ffedbd;
}

.uploadCheckSummary[data-workflow-state="ready"]::before,
.uploadCheckSummary[data-workflow-state="success"]::before {
  color: #ffffff;
  background: #18715b;
}

.uploadCheckSummary[data-workflow-state="error"]::before {
  color: #ffffff;
  background: #b22f2f;
}

.uploadCheckSummary.isReady {
  border-color: #9fcfbd;
  color: #145c49;
  background: #edf8f3;
}

.uploadCheckSummary.isError {
  border-color: #efb0a8;
  color: #8a2c22;
  background: #fff3f1;
}

.uploadCheckSummary.isSending {
  border-color: #f0c26b;
  color: #7a4d08;
  background: #fff8e7;
}

.uploadCheckSummary.isSuccess {
  border-color: #8bc9b3;
  color: #0d5f49;
  background: #ecf9f3;
}

.uploadCheckSummary.isEmpty {
  color: #64756d;
}

.mediaSaveConfirmation {
  display: grid;
  gap: 8px;
  margin: 8px 0;
  border: 1px solid #9fcfbd;
  border-radius: 8px;
  padding: 10px;
  color: #0d5f49;
  background: #f0faf5;
  box-shadow: 0 8px 24px rgba(24, 113, 91, 0.08);
}

.mediaSaveConfirmation[data-media-confirmation-state="error"] {
  border-color: #efb0a8;
  color: #8a2c22;
  background: #fff3f1;
}

.mediaSaveConfirmation strong,
.mediaSaveConfirmation span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.mediaSaveDiagnosticList {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mediaSaveDiagnosticList li {
  border: 1px solid rgba(138, 44, 34, 0.12);
  border-radius: 6px;
  padding: 5px 7px;
  background: rgba(255, 255, 255, 0.58);
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.28;
}

/* P738 UI architecture foundation: keep production test-artifact controls visible to admins. */
.mediaSaveConfirmation[data-media-confirmation-state="error"] .mediaSaveDiagnosticList li:first-child {
  border-color: rgba(180, 35, 24, 0.22);
  color: #8a241c;
  background: #fffafa;
}

.mediaSaveConfirmation[data-media-confirmation-state="error"] .mediaSaveDiagnosticList li:nth-child(2),
.mediaSaveConfirmation[data-media-confirmation-state="error"] .mediaSaveDiagnosticList li:nth-child(3) {
  border-color: rgba(212, 138, 37, 0.24);
  color: #674109;
  background: #fff9e8;
}

.mediaSaveConfirmation[data-media-confirmation-state="error"] .mediaSaveDiagnosticList li:nth-child(3) {
  border-color: rgba(24, 113, 91, 0.22);
  color: #135747;
  background: #f0faf5;
}

.mediaSaveConfirmationStrip {
  display: flex;
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
  padding-bottom: 2px;
}

.mediaSaveConfirmationTile {
  position: relative;
  display: grid;
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  color: #ffffff;
  background: #18715b;
  font-size: 0.68rem;
  font-weight: 900;
}

.mediaSaveConfirmationTile img,
.mediaSaveConfirmationTile video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mediaSaveConfirmationTile small {
  position: absolute;
  right: 4px;
  bottom: 4px;
  margin: 0;
  border-radius: 999px;
  padding: 1px 5px;
  color: #ffffff;
  background: rgba(20, 35, 31, 0.78);
  font-size: 0.62rem;
  font-weight: 900;
}

.attachmentPreview,
.statusDraftPreview,
.profileImagePanel {
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.attachmentPreview.workflow-checking,
.statusDraftPreview.workflow-checking,
.profileImagePanel.workflow-checking,
.attachmentPreview.workflow-sending,
.statusDraftPreview.workflow-sending,
.profileImagePanel.workflow-sending {
  border-color: #eab64d;
  box-shadow: 0 0 0 3px rgba(234, 182, 77, 0.16);
}

.attachmentPreview.workflow-ready,
.statusDraftPreview.workflow-ready,
.profileImagePanel.workflow-ready,
.attachmentPreview.workflow-success,
.statusDraftPreview.workflow-success,
.profileImagePanel.workflow-success {
  border-color: #9fcfbd;
  box-shadow: 0 0 0 3px rgba(24, 113, 91, 0.12);
}

.attachmentPreview.workflow-error,
.statusDraftPreview.workflow-error,
.profileImagePanel.workflow-error {
  border-color: #efb0a8;
  background-color: #fff8f8;
  box-shadow: 0 0 0 3px rgba(178, 47, 47, 0.12);
}

/* Location sharing polish: clearer one-time and live-location controls. */
.locationPrivacyGuide {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.locationPrivacyCard {
  display: grid;
  gap: 4px;
  min-height: 74px;
  padding: 12px;
  border: 1px solid #d4e4dd;
  border-radius: 8px;
  color: #19382f;
  background: linear-gradient(180deg, #ffffff 0%, #f5fbf8 100%);
}

.locationPrivacyCard strong {
  font-size: 0.86rem;
  line-height: 1.25;
}

.locationPrivacyCard small {
  color: #60716a;
  font-size: 0.76rem;
  line-height: 1.35;
}

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

.locationDurationChips button {
  min-height: 34px;
  border: 1px solid #c9d8d2;
  border-radius: 999px;
  color: #4b5c54;
  background: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
}

.locationDurationChips button.active {
  color: #ffffff;
  background: #18715b;
  border-color: #18715b;
}

.locationDurationChips.isBusy {
  opacity: 0.68;
}

.locationDurationChips button:disabled,
.locationActionGrid .sideAction:disabled {
  cursor: wait;
  opacity: 0.7;
}

.locationSafetyCard {
  display: grid;
  gap: 5px;
  border: 1px solid #cfe4da;
  border-radius: 10px;
  padding: 10px 12px;
  color: #203a32;
  background: #f4fbf8;
  box-shadow: inset 4px 0 0 #18715b;
}

.locationSafetyCard strong {
  color: #15372f;
  font-size: 0.88rem;
  line-height: 1.25;
}

.locationSafetyCard span {
  color: #4f6059;
  font-size: 0.82rem;
  line-height: 1.35;
}

.locationSafetyCard[data-location-state="busy"],
.locationSafetyCard[data-location-state="requesting"] {
  border-color: #e5cf95;
  background: #fff9e8;
  box-shadow: inset 4px 0 0 #e3a008;
}

.locationSafetyCard[data-location-state="sent"] {
  border-color: #b9d8cd;
  background: #effaf5;
  box-shadow: inset 4px 0 0 #18715b, 0 8px 18px rgba(24, 113, 91, 0.08);
}

.locationSafetyCard[data-location-state="error"] {
  border-color: #e6b0a8;
  background: #fff5f2;
  box-shadow: inset 4px 0 0 #b42318;
}

.locationActionGrid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.locationActionGrid .mediaActionButton {
  min-height: 46px;
}

.locationActionGrid .repairAction {
  border-color: #d48a25;
  color: #6f420b;
  background: #fff7e8;
}

@media (max-width: 560px) {
  .locationDurationChips {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .locationSafetyCard {
    border-radius: 8px;
    padding: 9px 10px;
  }

  .locationPrivacyGuide {
    grid-template-columns: 1fr;
  }

  .locationActionGrid {
    grid-template-columns: 1fr;
  }
}

.locationActionGrid .repairAction:focus-visible {
  outline: 3px solid rgba(212, 138, 37, 0.24);
  outline-offset: 2px;
}

.activeLocationSharesPanel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #d8e5df;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(20, 42, 35, 0.06);
}

.activeLocationSharesHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.activeLocationSharesList {
  display: grid;
  gap: 8px;
}

.activeLocationShareItem {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid #d9e6e0;
  border-radius: 8px;
  background: #f8fcfa;
}

.activeLocationShareItem.isExpiringSoon {
  border-color: #f0c26b;
  background: #fff8e7;
}

.activeLocationShareItem small {
  color: #64756d;
}

.activeLocationShareActions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.activeLocationShareActions .linkButton {
  min-height: 30px;
  border-radius: 8px;
}

.messageSearchBox {
  display: grid;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid #d9ded7;
  color: #68736c;
  font-size: 13px;
  background: #ffffff;
}

.messageSearchBox input {
  min-height: 38px;
  font-size: 14px;
}

.messageSearchClear {
  align-self: flex-start;
  min-height: 34px;
  margin: 10px 16px 0;
  padding: 0 12px;
  color: #18715b;
  background: #f1f7f4;
  border: 1px solid #b8c9c2;
  font-size: 14px;
}

.messageSearchSummary {
  margin: 6px 16px 10px;
}

.savedToggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-bottom: 1px solid #d9ded7;
  color: #4f5d55;
  font-size: 14px;
  background: #ffffff;
}

.savedToggle input {
  min-height: auto;
}

.loadMore {
  margin: 10px auto 0;
  min-height: 34px;
  padding: 0 14px;
  color: #18715b;
  background: #f1f7f4;
  border: 1px solid #b8c9c2;
}

.searchBox input {
  min-height: 38px;
  font-size: 14px;
}

.contacts input {
  width: 100%;
  min-height: 36px;
  margin-bottom: 10px;
  font-size: 14px;
}

.contacts h2,
.contactProfile h2,
.reportOverview h2 {
  margin: 0 0 10px;
  font-size: 13px;
  text-transform: uppercase;
  color: #68736c;
}

.reportStats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.reportStats button {
  min-height: 24px;
  padding: 4px 7px;
  border: 1px solid #d8dfd9;
  border-radius: 6px;
  background: #f7f9f6;
  color: #3d4a43;
  font-size: 12px;
  line-height: 1.2;
  cursor: pointer;
}

.reportStats button:hover,
.reportStats button:focus {
  border-color: #167d68;
}

.reportStats button.active {
  border-color: #167d68;
  background: #e4f3ee;
  color: #0e5f4f;
  font-weight: 700;
}

.reportItem {
  display: grid;
  gap: 4px;
  padding: 8px 0;
  border-top: 1px solid #e7ebe5;
  font-size: 13px;
  cursor: pointer;
}

.reportItem:focus,
.reportItem.selected {
  outline: 2px solid #167d68;
  outline-offset: 2px;
  background: #eef7f3;
}

.reportItem.reviewed {
  opacity: 0.72;
}

.reportItem.archived {
  opacity: 0.58;
}

.reportActions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.reportReviewButton,
.reportArchiveButton,
.reportRestoreButton {
  justify-self: start;
  min-height: 28px;
  padding: 0 8px;
  font-size: 12px;
}

.reportOverview select,
.reportOverview input {
  width: 100%;
  min-height: 36px;
  margin-bottom: 10px;
  border: 1px solid #cbd3cc;
  border-radius: 6px;
  padding: 8px;
  font: inherit;
}

.reportTitle {
  color: #17201c;
  font-weight: 700;
}

.reportMeta {
  color: #68736c;
}

.reportNote {
  color: #4f5d55;
}

.reportDetail {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 10px;
  border: 1px solid #cbd3cc;
  border-radius: 6px;
  background: #ffffff;
}

.reportDetail h3,
.reportDetail p {
  margin: 0;
}

.reportDetail h3 {
  font-size: 14px;
}

#reportDetailMeta,
#reportDetailContext,
#reportDetailReview,
#reportDetailTimeline {
  color: #68736c;
  font-size: 13px;
}

#reportDetailBody {
  color: #17201c;
  line-height: 1.4;
}

.reportLoadedCount,
.reportFilterSummary,
.reportSearchSummary,
.reportRefreshStatus,
.reportExportStatus {
  margin: 8px 0;
  color: #68736c;
  font-size: 13px;
}

.contactProfile p {
  margin: 8px 0;
}

.contactProfile input,
.contactProfile select,
.contactProfile textarea {
  width: 100%;
  min-height: 38px;
  margin-bottom: 10px;
  border: 1px solid #cbd3cc;
  border-radius: 6px;
  padding: 8px;
  font: inherit;
}

.contactProfile textarea {
  min-height: 70px;
  resize: vertical;
}

.contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 32px;
  font-size: 14px;
  gap: 8px;
}

.contact.favorite .contactName {
  font-weight: 700;
}

.contact.blocked .contactName {
  color: #8a2b22;
  text-decoration: line-through;
}

.dangerMarker {
  color: #8a2b22;
  background: #fff4f2;
}

.dangerReaction {
  color: #8a2b22;
  border-color: #e0b8b2;
}

.contactFavorite {
  width: 12px;
  color: #18715b;
  font-weight: 700;
}

.contactAvatar {
  width: 32px;
  height: 32px;
  display: grid;
  flex: 0 0 32px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: #18715b;
  background-position: center;
  background-size: cover;
  font-size: 12px;
  font-weight: 900;
}

.contactAvatar.hasProfileImage {
  box-shadow: 0 6px 14px rgba(24, 113, 91, 0.18);
}

.contactName {
  flex: 1;
}

.contactIdentity {
  display: grid;
  flex: 1;
  min-width: 0;
}

.contactPhone {
  color: var(--pz-muted);
  font-size: 11px;
}

.contactMessaging {
  color: #267367;
  font-size: 11px;
  font-weight: 700;
  white-space: normal;
}

.contactRule {
  display: block;
  margin-top: 2px;
  color: #52635b;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.28;
  white-space: normal;
}

.contactReadinessSummary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(3, auto);
  gap: 7px;
  align-items: center;
  margin-bottom: 8px;
  border: 1px solid #cfe2d9;
  border-radius: 8px;
  padding: 8px 10px;
  color: #173c33;
  background: #f4fbf8;
}

.contactReadinessSummary strong {
  font-size: 13px;
  font-weight: 950;
}

.contactReadinessSummary span {
  display: grid;
  min-width: 62px;
  justify-items: center;
  border: 1px solid #d8e8e0;
  border-radius: 7px;
  padding: 5px 7px;
  background: #ffffff;
}

.contactReadinessSummary b {
  font-size: 14px;
}

.contactReadinessSummary small {
  color: #52635b;
  font-size: 10px;
  font-weight: 850;
}

.contactReadinessSummary p {
  grid-column: 1 / -1;
  margin: 0;
  color: #42524b;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}

.invitePreview {
  display: block;
  margin-top: 4px;
  color: #18715b;
  font-size: 11px;
  font-weight: 700;
  white-space: normal;
}

.invitePreview.prepared {
  padding: 6px 8px;
  border: 1px solid #b7dece;
  border-radius: 7px;
  background: #effaf5;
}

.invitePreview.copyFallback {
  border-color: #147c69;
  background: #e2f7ef;
  outline: 2px solid rgba(20, 124, 105, .18);
  user-select: text;
}

.inviteHistory {
  color: #147c69;
  font-weight: 700;
}

.inviteTimeline {
  color: #5f746d;
  font-size: 11px;
  font-weight: 700;
}

.inviteCopyButton.hidden,
.inviteHistory.hidden,
.inviteTimeline.hidden,
.invitePreview.hidden {
  display: none;
}

.disabledContact {
  opacity: 0.68;
}

.disabledContact button {
  cursor: not-allowed;
}

.phoneOnlyBadge {
  color: #66756e;
  font-size: 11px;
  font-weight: 800;
}

.phoneOnlyContact.invitePrepared {
  border-color: #b7dece;
  background: #f4fbf7;
}

.phoneOnlyContact.invitePrepared .phoneOnlyBadge {
  color: #147c69;
}

.phoneOnlyContact.inviteHistoryAvailable {
  box-shadow: inset 3px 0 0 #147c69;
}

.phoneOnlyContact[data-invite-open="true"] .inviteHistory {
  color: #0f6b5b;
}

.phoneOnlyContact.inviteResent {
  border-color: #8ccfba;
}

.phoneOnlyContact[data-invite-status="resent"] .inviteHistory {
  color: #0b5d50;
}

.phoneOnlyContact.inviteCooldown {
  border-color: #e6b568;
  background: #fff9ed;
}

.phoneOnlyContact.inviteCooldown .invitePreview {
  border-color: #e6b568;
  background: #fff3d9;
}

.phoneOnlyContact.inviteCooldown .inviteTimeline {
  color: #8a5a00;
}

@media (max-width: 560px) {
  .contactReadinessSummary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .contactReadinessSummary strong,
  .contactReadinessSummary p {
    grid-column: 1 / -1;
  }
}

.onboardingChecklist {
  display: grid;
  gap: 10px;
  margin: 0 16px 14px;
  padding: 12px;
  border: 1px solid #cfe2d9;
  border-radius: 8px;
  background: #f5fbf8;
}

.onboardingChecklist.hidden {
  display: none;
}

.onboardingChecklist strong {
  color: var(--pz-ink);
  font-size: 14px;
}

.onboardingChecklist p {
  margin: 4px 0 0;
  color: var(--pz-muted);
  font-size: 12px;
  line-height: 1.35;
}

.onboardingSteps {
  display: grid;
  gap: 7px;
}

.onboardingStep {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  border: 1px solid #d8e5dd;
  border-radius: 7px;
  padding: 8px 10px;
  background: #ffffff;
  color: var(--pz-ink);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.onboardingStep:hover,
.onboardingStep:focus-visible {
  border-color: var(--pz-green);
  outline: none;
}

.onboardingStep span {
  font-size: 13px;
  font-weight: 850;
}

.onboardingStep small {
  color: var(--pz-muted);
  font-size: 11px;
  font-weight: 800;
}

.onboardingStep.done small {
  color: var(--pz-green-dark);
}

.phonebookSync {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--pz-line);
}

.phonebookSync p {
  margin: 0 0 8px;
  color: var(--pz-muted);
  font-size: 12px;
  line-height: 1.4;
}

.phonebookSync textarea {
  width: 100%;
  min-height: 72px;
  margin: 10px 0;
  border: 1px solid #cbd3cc;
  border-radius: 6px;
  padding: 8px;
  resize: vertical;
  font: inherit;
}

.phonebookConfirm {
  display: grid;
  gap: 8px;
  margin: 10px 0;
  padding: 10px;
  border: 1px solid var(--pz-line);
  border-radius: 8px;
  background: #f6fbf8;
}

.phonebookConfirm.hidden {
  display: none;
}

.phonebookConfirmRow {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 7px 0;
  border-top: 1px solid var(--pz-line);
  font-size: 12px;
}

.phonebookConfirmRow:first-child {
  border-top: 0;
}

.phonebookConfirmRow small {
  color: var(--pz-muted);
}

.phonebookConfirmActions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.compactEmpty {
  padding: 8px 0;
  font-size: 12px;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #9aa59e;
}

.dot.online {
  background: #18715b;
}

.contact button {
  min-height: 28px;
  padding: 0 8px;
  font-size: 13px;
}

.conversation {
  width: 100%;
  padding: 16px 20px;
  border: 0;
  border-bottom: 1px solid #e7ebe5;
  color: #17201c;
  background: transparent;
  text-align: left;
}

.conversation.active {
  background: #eaf4f0;
}

.conversationTitle {
  display: block;
  font-weight: 700;
}

.conversationTitleRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.conversationTitleGroup {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 8px;
}

.unreadBadge {
  min-width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  color: white;
  background: #18715b;
  font-size: 12px;
  font-weight: 700;
}

.pinBadge {
  color: #18715b;
  font-size: 13px;
}

.muteBadge {
  color: #68736c;
  font-size: 13px;
}

.archiveBadge {
  color: #9a3412;
  font-size: 13px;
}

.statusReplyBadge {
  display: inline-flex;
  min-height: 20px;
  align-items: center;
  border: 1px solid rgba(24, 113, 91, 0.24);
  border-radius: 999px;
  padding: 1px 7px;
  color: #18715b;
  background: #eef7f2;
  font-size: 11px;
  font-weight: 900;
}

.statusReplyBadge[data-status-reply-kind="image"] {
  border-color: rgba(24, 113, 91, 0.34);
  color: #0f513f;
  background: #d5f5e8;
}

.statusReplyBadge[data-status-reply-kind="video"] {
  border-color: rgba(67, 56, 202, 0.28);
  color: #3730a3;
  background: #eef2ff;
}

.conversation.hasStatusReply {
  background: linear-gradient(90deg, rgba(24, 113, 91, 0.08), transparent 44%);
}

.conversation.hasStatusReply .conversationPreview {
  color: #0f513f;
  font-weight: 800;
}

.conversation.statusReplyConversationFocus {
  animation: statusReplyConversationFocusPulse 2.8s ease;
  box-shadow: inset 4px 0 0 #18715b, 0 0 0 2px rgba(24, 113, 91, 0.12);
}

@keyframes statusReplyConversationFocusPulse {
  0% {
    box-shadow: inset 4px 0 0 #18715b, 0 0 0 0 rgba(24, 113, 91, 0.32);
    transform: translateX(0);
  }

  35% {
    box-shadow: inset 4px 0 0 #18715b, 0 0 0 7px rgba(24, 113, 91, 0.16);
    transform: translateX(2px);
  }

  100% {
    box-shadow: inset 4px 0 0 #18715b, 0 0 0 0 rgba(24, 113, 91, 0);
    transform: translateX(0);
  }
}

.conversationMeta {
  display: block;
  margin-top: 5px;
  color: #68736c;
  font-size: 13px;
}

.conversationPreview {
  display: block;
  margin-top: 8px;
  overflow: hidden;
  color: #4f5d55;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation.unread .conversationTitle {
  color: #0f513f;
}

.conversation.pinned {
  background: #f1f7f4;
}

.conversation.muted .conversationPreview,
.conversation.muted .conversationMeta {
  opacity: 0.72;
}

.conversation.archived {
  background: #fbf7f2;
}

.emptyState {
  padding: 18px 20px;
  color: #68736c;
}

.chat {
  position: relative;
  display: grid;
  grid-template-rows: 64px auto auto auto auto 1fr auto auto;
  min-height: 100vh;
}

.messages {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: auto;
  background: #f6f8fb;
}

.latestMessageButton {
  position: absolute;
  right: 22px;
  bottom: 108px;
  z-index: 5;
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  color: #ffffff;
  background: #18715b;
  box-shadow: 0 12px 28px rgba(16, 24, 20, 0.2);
  font: inherit;
  font-size: 13px;
  font-weight: 900;
}

.latestMessageButton:focus-visible {
  outline: 3px solid rgba(24, 113, 91, 0.28);
  outline-offset: 3px;
}

.messageDayDivider {
  align-self: center;
  margin: 6px 0 2px;
  border: 1px solid rgba(83, 102, 93, 0.18);
  border-radius: 999px;
  padding: 5px 11px;
  color: #53665d;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 18px rgba(16, 24, 20, 0.08);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.messageUnreadDivider {
  align-self: stretch;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 4px;
  color: #18715b;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.messageUnreadDivider::before,
.messageUnreadDivider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(24, 113, 91, 0.26);
}

.dragDropHint {
  position: absolute;
  z-index: 7;
  left: 50%;
  bottom: 128px;
  transform: translateX(-50%);
  max-width: min(420px, calc(100% - 32px));
  border: 1px solid #b7dccb;
  border-radius: 8px;
  padding: 12px 16px;
  color: #0f4f40;
  background: rgba(237, 248, 243, 0.96);
  box-shadow: 0 18px 44px rgba(8, 28, 21, 0.18);
  font-size: 0.9rem;
  font-weight: 900;
  text-align: center;
}

.dragDropHint.hidden {
  display: none;
}

.chat.isDragOver .messages {
  outline: 2px dashed #18715b;
  outline-offset: -12px;
  background: #eef9f3;
}

.message {
  position: relative;
  max-width: min(680px, 80%);
  padding: 10px 12px;
  border-radius: 8px;
  background: #edf0eb;
}

.message.selectedMessage {
  outline: 3px solid rgba(24, 113, 91, 0.26);
  box-shadow: 0 0 0 1px rgba(24, 113, 91, 0.3);
}

.message.selectedMessage::before {
  content: "OK";
  position: absolute;
  top: -9px;
  right: -9px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  color: #ffffff;
  background: #18715b;
  box-shadow: 0 8px 18px rgba(16, 24, 20, 0.22);
  font-size: 9px;
  font-weight: 900;
}

.message.me.selectedMessage::before {
  left: -9px;
  right: auto;
}

.messageSelectionBar {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  width: min(100%, 680px);
  margin: 0 auto 8px;
  border: 1px solid rgba(24, 113, 91, 0.22);
  border-radius: 8px;
  padding: 8px;
  background: #f0faf5;
  box-shadow: 0 8px 20px rgba(16, 24, 20, 0.08);
}

.messageSelectionBadge {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  border-radius: 999px;
  color: #ffffff;
  background: #18715b;
  font-size: 13px;
  font-weight: 900;
}

.messageSelectionBar span {
  flex: 1;
  color: #53665d;
  font-size: 13px;
}

.messageSelectionActions {
  display: flex;
  flex: 0 1 auto;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.messageSelectionBar button {
  border: 1px solid #18715b;
  border-radius: 8px;
  padding: 6px 9px;
  color: #18715b;
  background: #ffffff;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}

.messageSelectionBar button:focus-visible {
  outline: 3px solid rgba(24, 113, 91, 0.24);
  outline-offset: 2px;
}

.messageSelectButton {
  border-color: #18715b;
}

.messageBodyRow {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: flex-start;
  gap: 10px;
}

.replyPreview {
  display: block;
  margin-bottom: 8px;
  padding-left: 8px;
  border-left: 3px solid #18715b;
  color: #4f5d55;
  font-size: 13px;
}

.replyPreview[role="button"] {
  cursor: pointer;
}

.replyPreview[role="button"]:focus-visible {
  outline: 2px solid #18715b;
  outline-offset: 3px;
  border-radius: 6px;
}

.message.me .replyPreview {
  border-left-color: rgba(255, 255, 255, 0.72);
  color: rgba(255, 255, 255, 0.82);
}

.replyJumpHighlight {
  animation: replyJumpPulse 1.6s ease;
}

@keyframes replyJumpPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(5, 166, 107, 0.42);
  }
  55% {
    box-shadow: 0 0 0 8px rgba(5, 166, 107, 0.12);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(5, 166, 107, 0);
  }
}

@keyframes sentMessageFocusPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(24, 113, 91, 0.44);
    transform: translateY(0);
  }

  35% {
    box-shadow: 0 0 0 7px rgba(24, 113, 91, 0.18);
    transform: translateY(-1px);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(24, 113, 91, 0);
    transform: translateY(0);
  }
}

.message.sentMessageFocus {
  animation: sentMessageFocusPulse 2.2s ease;
}

.message.me.sentMessageFocus {
  outline: 2px solid rgba(213, 245, 232, 0.7);
  outline-offset: 3px;
}

.messageBody {
  flex: 1;
  overflow-wrap: anywhere;
}

.messageTextLink {
  color: #09664f;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.message.me .messageTextLink {
  color: #e7fff6;
}

.messageAttachmentList {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  width: min(100%, 360px);
}

.statusReplyReference {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  border-left: 3px solid #18715b;
  border-radius: 8px;
  padding: 8px 10px;
  color: #1d342c;
  background: rgba(255, 255, 255, 0.36);
  font-size: 0.84rem;
}

.statusReplyReference[role="button"] {
  cursor: pointer;
}

.statusReplyReference[role="button"]:hover {
  background: rgba(255, 255, 255, 0.54);
}

.statusReplyReference[role="button"]:focus-visible {
  outline: 2px solid #18715b;
  outline-offset: 3px;
}

.statusReplyReferencePreview {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  color: #ffffff;
  background: linear-gradient(145deg, #18715b, #0f4d3e);
  font-size: 0.68rem;
  font-weight: 900;
  overflow: hidden;
}

.statusReplyReferencePreview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.statusReplyReferenceContent {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.statusReplyReference strong,
.statusReplyReference small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.statusReplyReference small {
  color: #52635d;
}

.statusReplyReferenceMeta {
  font-size: 0.74rem;
}

.statusReplyOpenAction {
  display: inline-flex;
  width: fit-content;
  min-height: 26px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(24, 113, 91, 0.26);
  border-radius: 999px;
  padding: 3px 9px;
  color: #18715b;
  background: rgba(238, 247, 242, 0.84);
  font-size: 0.74rem;
  font-weight: 900;
}

.statusReplyReference[role="button"]:hover .statusReplyOpenAction,
.statusReplyReference[role="button"]:focus-visible .statusReplyOpenAction {
  border-color: rgba(24, 113, 91, 0.5);
  background: #d5f5e8;
}

.message.me .statusReplyReference {
  border-left-color: #ffffff;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
}

.message.me .statusReplyReference[role="button"]:hover {
  background: rgba(255, 255, 255, 0.22);
}

.message.me .statusReplyReference[role="button"]:focus-visible {
  outline-color: rgba(255, 255, 255, 0.9);
}

.message.me .statusReplyReferencePreview {
  color: #0f4d3e;
  background: rgba(255, 255, 255, 0.86);
}

.message.me .statusReplyOpenAction {
  border-color: rgba(255, 255, 255, 0.32);
  color: #0f4d3e;
  background: rgba(255, 255, 255, 0.86);
}

.message.me .statusReplyReference[role="button"]:hover .statusReplyOpenAction,
.message.me .statusReplyReference[role="button"]:focus-visible .statusReplyOpenAction {
  background: #ffffff;
}

.message.me .statusReplyReference small {
  color: rgba(255, 255, 255, 0.78);
}

.messageAttachment {
  display: grid;
  gap: 5px;
}

.messageMediaGrid {
  display: grid;
  width: min(100%, 360px);
  overflow: hidden;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
  border-radius: 10px;
}

.messageMediaGridHeader {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 8px;
  align-items: center;
  border: 1px solid rgba(23, 32, 28, 0.1);
  border-radius: 8px;
  padding: 8px 10px;
  color: #18352d;
  background: rgba(237, 248, 243, 0.94);
}

.messageMediaGridHeader strong,
.messageMediaGridHeader small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.messageMediaGridHeader strong {
  font-size: 0.8rem;
  font-weight: 900;
}

.messageMediaGridHeader small {
  grid-column: 1 / -1;
  color: #536b62;
  font-size: 0.72rem;
  font-weight: 800;
}

.messageMediaGridSummaryCopy {
  grid-column: 2;
  grid-row: 1;
  min-height: 28px;
  border: 1px solid #b8c9c2;
  border-radius: 8px;
  padding: 4px 8px;
  color: #11684f;
  background: #ffffff;
  font-size: 0.72rem;
  font-weight: 900;
  cursor: pointer;
}

.message.me .messageMediaGridHeader {
  border-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
}

.message.me .messageMediaGridHeader small {
  color: rgba(255, 255, 255, 0.76);
}

.messageMediaGrid.mediaCount1 {
  grid-template-columns: 1fr;
}

.messageMediaGrid.mediaCount3 .messageMediaGridItem:first-child {
  grid-row: span 2;
}

.messageMediaGridItem {
  min-width: 0;
  min-height: 0;
}

.messageMediaGridItem .messageAttachmentPreview {
  width: 100%;
}

.messageMediaGridItem img,
.messageMediaGridItem video {
  width: 100%;
  height: 132px;
  max-height: none;
  border-radius: 0;
}

.messageMediaGrid.mediaCount1 .messageMediaGridItem img,
.messageMediaGrid.mediaCount1 .messageMediaGridItem video {
  height: auto;
  max-height: 280px;
  border-radius: 10px;
}

.messageMediaGrid.mediaCount3 .messageMediaGridItem:first-child img,
.messageMediaGrid.mediaCount3 .messageMediaGridItem:first-child video {
  height: 267px;
}

.messageMediaGridItem small {
  display: block;
  padding: 4px 2px 0;
}

.messageAttachmentActionHint {
  display: block;
  grid-column: 1 / -1;
  width: fit-content;
  max-width: min(100%, 360px);
  margin-top: 2px;
  border: 1px solid rgba(23, 32, 28, 0.1);
  border-radius: 8px;
  padding: 6px 9px;
  color: #425b52;
  background: rgba(255, 255, 255, 0.82);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.message.me .messageAttachmentActionHint {
  border-color: rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.84);
  background: rgba(255, 255, 255, 0.13);
}

.messageAttachmentPreview {
  position: relative;
  display: block;
  width: fit-content;
  max-width: 100%;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  padding: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.messageAttachmentTapHint {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 3px 8px;
  color: #ffffff;
  background: rgba(10, 22, 18, 0.72);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.1;
  pointer-events: none;
}

.messageMediaTileBadge,
.messageMediaTileAction {
  position: absolute;
  z-index: 2;
  max-width: calc(100% - 16px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 4px 8px;
  color: #ffffff;
  background: rgba(15, 23, 20, 0.74);
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
  backdrop-filter: blur(8px);
  pointer-events: none;
}

.messageMediaTileBadge {
  top: 8px;
  left: 8px;
}

.messageMediaTileAction {
  right: 8px;
  bottom: 8px;
  background: rgba(24, 113, 91, 0.86);
}

.messageAttachmentPreview:hover .messageMediaTileAction,
.messageAttachmentPreview:focus-visible .messageMediaTileAction {
  background: rgba(15, 118, 110, 0.96);
}

.messageAttachmentPreview:hover .messageAttachmentTapHint,
.messageAttachmentPreview:focus-visible .messageAttachmentTapHint {
  background: rgba(24, 113, 91, 0.9);
}

.messageAttachmentPreview:focus-visible {
  outline: 3px solid rgba(24, 113, 91, 0.45);
  outline-offset: 3px;
}

.message.me .messageAttachmentPreview:focus-visible {
  outline-color: rgba(255, 255, 255, 0.72);
}

.documentAttachment {
  border: 1px solid rgba(23, 32, 28, 0.16);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.18);
}

.documentAttachment a {
  color: inherit;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.messageDocumentCard {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.messageDocumentIcon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  background: #18715b;
  font-size: 11px;
  font-weight: 900;
}

.messageDocumentDetails {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.messageDocumentDetails strong,
.messageDocumentDetails small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.messageDocumentDetails small {
  color: #53665d;
  font-size: 12px;
}

.message.me .messageDocumentDetails small {
  color: rgba(255, 255, 255, 0.82);
}

.messageDocumentActions {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.messageDocumentActions a {
  border: 1px solid rgba(24, 113, 91, 0.26);
  border-radius: 8px;
  padding: 6px 9px;
  background: rgba(255, 255, 255, 0.38);
  font-size: 12px;
  text-decoration: none;
}

.audioAttachment {
  width: min(320px, 100%);
  border: 1px solid rgba(23, 32, 28, 0.16);
  border-radius: 8px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.2);
}

.audioAttachment audio {
  display: block;
  width: 100%;
}

.messageContactCard,
.messagePollCard {
  display: grid;
  gap: 8px;
  width: min(320px, 100%);
  border: 1px solid rgba(23, 32, 28, 0.16);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.2);
}

.messageContactCard {
  grid-template-columns: 42px 1fr;
  align-items: center;
}

.contactInitials {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: #18715b;
  font-size: 13px;
  font-weight: 900;
}

.message.me .contactInitials {
  color: #18715b;
  background: #ffffff;
}

.contactCardDetails,
.pollOptions {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.contactCardDetails strong,
.messagePollCard strong {
  overflow-wrap: anywhere;
}

.contactCardActions {
  display: flex;
  grid-column: 1 / -1;
  flex-wrap: wrap;
  gap: 6px;
}

.contactCardButton {
  min-height: 30px;
  border: 1px solid rgba(24, 113, 91, 0.32);
  border-radius: 6px;
  padding: 5px 8px;
  color: #0e5f4f;
  background: rgba(232, 246, 240, 0.92);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.contactCardButton.primary {
  color: #ffffff;
  background: #18715b;
}

.message.me .contactCardButton {
  border-color: rgba(255, 255, 255, 0.48);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

.message.me .contactCardButton.primary {
  color: #18715b;
  background: #ffffff;
}

.pollOptions {
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
}

.pollOptionChip {
  display: grid;
  gap: 3px;
  text-align: left;
  min-height: 28px;
  border: 1px solid rgba(24, 113, 91, 0.32);
  border-radius: 6px;
  padding: 5px 8px;
  color: #0e5f4f;
  background: rgba(232, 246, 240, 0.92);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.message.me .pollOptionChip {
  border-color: rgba(255, 255, 255, 0.48);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

.pollOptionChip:hover,
.pollOptionChip:focus-visible,
.pollOptionChip.isSelected {
  border-color: #18715b;
  background: #ffffff;
  outline: none;
}

.message.me .pollOptionChip:hover,
.message.me .pollOptionChip:focus-visible,
.message.me .pollOptionChip.isSelected {
  border-color: #ffffff;
  color: #18715b;
  background: #ffffff;
}

.pollOptionChip small,
.pollSummary {
  font-size: 11px;
  font-weight: 700;
  opacity: 0.72;
}

.messageAttachment img,
.messageAttachment video {
  display: block;
  width: min(320px, 100%);
  max-height: 260px;
  border-radius: 8px;
  object-fit: cover;
  background: rgba(0, 0, 0, 0.08);
}

.messageAttachment small {
  font-size: 12px;
  opacity: 0.78;
}

.messageAttachmentSummary {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  min-height: 28px;
  border: 1px solid #d6e3dd;
  border-radius: 999px;
  padding: 0 10px;
  color: #53665d;
  background: #f7fbf9;
  font-size: 12px;
  font-weight: 900;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.message.me .messageAttachmentSummary {
  border-color: rgba(255, 255, 255, 0.42);
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.13);
}

.messageAttachmentSummary:hover,
.messageAttachmentSummary:focus-visible {
  border-color: #18715b;
  background: #e6f5ef;
}

.message.me .messageAttachmentSummary:hover,
.message.me .messageAttachmentSummary:focus-visible {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.22);
}

.messageAttachmentSummarySave,
.messageAttachmentSummaryJson {
  width: fit-content;
  min-height: 28px;
  border: 1px solid #c7d9d1;
  border-radius: 8px;
  padding: 0 10px;
  color: #11684f;
  background: #ffffff;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.messageAttachmentSummarySave:hover,
.messageAttachmentSummarySave:focus-visible,
.messageAttachmentSummaryJson:hover,
.messageAttachmentSummaryJson:focus-visible {
  border-color: #18715b;
  background: #dff4ec;
}

.message.me .messageAttachmentSummarySave,
.message.me .messageAttachmentSummaryJson {
  border-color: rgba(255, 255, 255, 0.54);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

.message.me .messageAttachmentSummarySave:hover,
.message.me .messageAttachmentSummarySave:focus-visible,
.message.me .messageAttachmentSummaryJson:hover,
.message.me .messageAttachmentSummaryJson:focus-visible {
  background: rgba(255, 255, 255, 0.24);
}

.messageAttachmentCheckBadge {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  min-height: 24px;
  border: 1px solid #dbe7e1;
  border-radius: 7px;
  padding: 0 8px;
  color: #5a6d64;
  background: #ffffff;
  font-size: 11px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.message.me .messageAttachmentCheckBadge {
  border-color: rgba(255, 255, 255, 0.38);
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.12);
}

.messageAttachmentFileActions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.messageAttachmentOpen,
.messageAttachmentDownload,
.messageAttachmentInfoCopy,
.messageAttachmentInfoJson {
  justify-self: start;
  min-height: 28px;
  padding: 5px 9px;
  border: 1px solid #b8c9c2;
  border-radius: 8px;
  color: #11684f;
  background: #ffffff;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.messageAttachmentInfoCopy,
.messageAttachmentInfoJson {
  cursor: pointer;
}

.messageAttachmentBulkDownload,
.messageAttachmentBulkInfoCopy,
.messageAttachmentBulkInfoSave,
.messageAttachmentBulkInfoJson {
  justify-self: start;
  min-height: 32px;
  margin-top: 4px;
  border: 1px solid #bcd4ca;
  border-radius: 8px;
  padding: 0 10px;
  color: #0f5c49;
  background: #edf8f3;
  font-size: 12px;
  font-weight: 900;
}

.message.me .messageAttachmentBulkDownload,
.message.me .messageAttachmentBulkInfoCopy,
.message.me .messageAttachmentBulkInfoSave,
.message.me .messageAttachmentBulkInfoJson {
  border-color: rgba(255, 255, 255, 0.54);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

.messageAttachmentBulkDownload:hover,
.messageAttachmentBulkInfoCopy:hover,
.messageAttachmentBulkInfoSave:hover,
.messageAttachmentBulkInfoJson:hover {
  border-color: #18715b;
  background: #dff4ec;
}

.message.me {
  align-self: flex-end;
  color: white;
  background: #18715b;
}

.messageDelete {
  min-height: 24px;
  padding: 0 7px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: white;
  background: transparent;
  font-size: 13px;
}

.messageCopyButton:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.messageForwardButton {
  white-space: nowrap;
}

.messageQuickSaveButton {
  white-space: nowrap;
}

.messageInfoButton {
  white-space: nowrap;
}

.messageQuickSelectButton {
  white-space: nowrap;
}

.messageQuickReportButton {
  white-space: nowrap;
  border-color: rgba(220, 38, 38, 0.55);
}

.messageQuickReportButton:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.messageActionHelp {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-top: 6px;
  border: 1px solid rgba(24, 113, 91, 0.14);
  border-radius: 7px;
  padding: 5px 7px;
  color: #43564e;
  background: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.message.me .messageActionHelp {
  border-color: rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.84);
  background: rgba(255, 255, 255, 0.13);
}

.messageActions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 100%;
}

.messageActions .messageDelete {
  flex: 0 0 auto;
}

.replyBar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  border-top: 1px solid #d9ded7;
  color: #4f5d55;
  background: #f7f8f5;
}

.messageTime {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  opacity: 0.72;
}

.messageStatus {
  display: inline-block;
  margin-left: 8px;
  font-size: 12px;
  opacity: 0.82;
}

.savedMarker {
  display: inline-block;
  margin-left: 8px;
  color: #18715b;
  font-size: 12px;
  font-weight: 700;
}

.message.me .savedMarker {
  color: rgba(255, 255, 255, 0.92);
}

.reactionRow {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.reactionButton {
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid #cbd3cc;
  color: #17201c;
  background: white;
  font-size: 13px;
}

.message.me .reactionButton {
  border-color: rgba(255, 255, 255, 0.55);
  color: white;
  background: transparent;
}

#statusText {
  color: #68736c;
  font-size: 14px;
  font-weight: 400;
}

.chatStatusStack {
  min-width: 180px;
  display: grid;
  gap: 2px;
  justify-items: end;
  color: #68736c;
}

#installDetailsLine {
  max-width: 260px;
  overflow: hidden;
  color: #87928b;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.composer {
  display: grid;
  grid-template-columns: 44px 44px 1fr 120px;
  gap: 10px;
  padding: 16px;
  border-top: 1px solid #d9ded7;
}

.mediaQuickActions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 12px 16px 0;
  border-top: 1px solid #d9ded7;
  background: #ffffff;
}

.mediaQuickAction {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 10px;
  align-items: center;
  min-width: 0;
  border: 1px solid #d9e5df;
  border-radius: 8px;
  padding: 9px 10px;
  color: #17201c;
  background: #f8fbf9;
  text-align: left;
}

.mediaQuickAction span {
  display: grid;
  grid-row: 1 / span 2;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: #e8f5ef;
}

.mediaQuickAction img {
  width: 18px;
  height: 18px;
}

.mediaQuickAction strong,
.mediaQuickAction small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mediaQuickAction strong {
  font-size: 0.86rem;
  font-weight: 900;
}

.mediaQuickAction small {
  color: #64756d;
  font-size: 0.72rem;
  font-weight: 800;
}

.mediaQuickAction:hover,
.mediaQuickAction:focus-visible {
  border-color: #18715b;
  background: #eef8f3;
}

.statusQuickAction span {
  background: #e9f8ef;
}

.galleryQuickAction span {
  background: #eaf2ff;
}

.voiceRecordButton.isRecording {
  border-color: #dc2626;
  background: #fef2f2;
}

.voiceRecordButton.isRecording img {
  filter: invert(24%) sepia(88%) saturate(2414%) hue-rotate(346deg) brightness(94%) contrast(95%);
}

.voiceRecorder {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px 14px;
  border-top: 1px solid #eef3ef;
  background: #ffffff;
  color: #17201c;
}

.voiceRecorder.hidden {
  display: none;
}

.voiceRecorder strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.92rem;
}

.voiceRecorder small {
  color: #64756d;
  font-weight: 800;
}

.recordingDot {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #dc2626;
  box-shadow: 0 0 0 6px rgba(220, 38, 38, 0.12);
}

.primaryLinkButton {
  color: #18715b;
  font-weight: 900;
}

.attachmentSheet {
  display: grid;
  grid-template-columns: repeat(4, minmax(86px, 1fr));
  gap: 10px;
  padding: 14px 16px 16px;
  border-top: 1px solid #d9ded7;
  background: #ffffff;
}

.attachmentSheetHeader {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  color: #17201c;
}

.attachmentSheetHeader strong,
.attachmentSheetHeader span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attachmentSheetHeader span {
  color: #64756d;
  font-size: 0.84rem;
}

.attachmentSheetHelp {
  grid-column: 1 / -1;
  margin: -2px 0 2px;
  color: #53665d;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
}

.attachmentAction {
  display: grid;
  grid-template-columns: 42px 1fr;
  grid-template-areas:
    "icon label"
    "icon hint";
  min-height: 78px;
  align-content: center;
  align-items: center;
  gap: 4px 10px;
  border: 1px solid #dfe7e3;
  border-radius: 8px;
  padding: 8px;
  color: #17201c;
  background: #f7faf8;
  font-size: 14px;
  font-weight: 800;
  text-align: left;
}

.attachmentAction.isActive {
  border-color: #18715b;
  color: #0f4f40;
  background: #edf8f3;
  box-shadow: 0 0 0 2px rgba(24, 113, 91, 0.12);
}

.attachmentActionIcon {
  grid-area: icon;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  background: #18715b;
  box-shadow: inset 0 -12px 18px rgba(0, 0, 0, 0.12);
}

.attachmentActionIcon img {
  width: 22px;
  height: 22px;
  filter: brightness(0) invert(1);
  pointer-events: none;
}

.attachmentAction > span:not(.attachmentActionIcon) {
  grid-area: label;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attachmentAction small {
  grid-area: hint;
  color: #68736c;
  font-size: 12px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attachmentBlockedList {
  white-space: normal;
  overflow-wrap: anywhere;
  color: #8a3a28;
  font-weight: 800;
  line-height: 1.35;
}

.photoAction .attachmentActionIcon { background: #3b82f6; }
.cameraAction .attachmentActionIcon { background: #111827; }
.locationAction .attachmentActionIcon { background: #059669; }
.contactAction .attachmentActionIcon { background: #64748b; }
.audioAction .attachmentActionIcon { background: #7c3aed; }
.documentAction .attachmentActionIcon { background: #0ea5e9; }
.pollAction .attachmentActionIcon { background: #f59e0b; }
.eventAction .attachmentActionIcon { background: #e11d48; }
.aiAction .attachmentActionIcon { background: #7c3aed; }

.attachmentSheet {
  position: relative;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  border-top: 1px solid #dce8e2;
  border-radius: 18px 18px 0 0;
  padding: 16px;
  background: #ffffff;
  box-shadow: 0 -18px 42px rgba(17, 31, 26, 0.12);
}

.attachmentSheet.hidden {
  display: none;
}

.attachmentSheetHeader {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "handle handle"
    "title close"
    "status status";
  gap: 6px 10px;
}

.attachmentSheetHandle {
  grid-area: handle;
  justify-self: center;
  width: 42px;
  height: 4px;
  border-radius: 999px;
  background: #c9d7d0;
}

.attachmentSheetHeader strong {
  grid-area: title;
  font-size: 1rem;
}

.attachmentSheetHeader #attachmentSheetStatus {
  grid-area: status;
  white-space: normal;
}

.attachmentSheetClose {
  grid-area: close;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #d8e4de;
  border-radius: 999px;
  color: #40524a;
  background: #f5f8f6;
  font: inherit;
  font-weight: 900;
}

.attachmentSheetClose:focus-visible,
.attachmentAction:focus-visible {
  border-color: #18715b;
  outline: 3px solid rgba(24, 113, 91, 0.18);
  outline-offset: 2px;
}

.attachmentSheetPills {
  display: flex;
  grid-column: 1 / -1;
  flex-wrap: wrap;
  gap: 6px;
}

.attachmentSheetPills span {
  border: 1px solid #d8e8e0;
  border-radius: 999px;
  padding: 5px 8px;
  color: #315149;
  background: #f3faf7;
  font-size: 0.72rem;
  font-weight: 850;
}

.attachmentSheetHelp {
  margin: 0;
  color: #53665d;
  font-size: 0.82rem;
  font-weight: 750;
}

.attachmentAction {
  grid-template-columns: 1fr;
  grid-template-areas:
    "icon"
    "label"
    "hint";
  justify-items: center;
  min-height: 104px;
  border-radius: 14px;
  padding: 11px 8px;
  text-align: center;
  background: #f9fbfa;
}

.attachmentActionIcon {
  width: 46px;
  height: 46px;
  border-radius: 15px;
}

.attachmentAction > span:not(.attachmentActionIcon),
.attachmentAction small {
  max-width: 100%;
  white-space: normal;
}

.attachmentAction > span:not(.attachmentActionIcon) {
  font-size: 0.86rem;
}

.attachmentAction small {
  line-height: 1.2;
}

.attachmentSheetFooter {
  grid-column: 1 / -1;
  margin: 0;
  border: 1px solid #d8e6df;
  border-radius: 10px;
  padding: 9px 10px;
  color: #41564f;
  background: #f6faf8;
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.35;
}

@media (max-width: 760px) {
  .attachmentSheet {
    position: sticky;
    bottom: 0;
    z-index: 12;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-height: min(72vh, 560px);
    overflow-y: auto;
    padding: 12px 12px calc(14px + env(safe-area-inset-bottom));
  }

  .attachmentAction {
    min-height: 96px;
    padding: 9px 6px;
  }
}

@media (max-width: 430px) {
  .attachmentSheet {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.chatInfoPanel {
  position: absolute;
  z-index: 8;
  top: 96px;
  right: 18px;
  display: grid;
  width: min(420px, calc(100% - 36px));
  max-height: calc(100% - 176px);
  overflow: hidden;
  border: 1px solid #dbe8e2;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 22px 52px rgba(8, 28, 21, 0.18);
}

.chatInfoHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid #e7eee9;
}

.chatInfoHeader div,
.chatInfoHero {
  display: grid;
  gap: 4px;
}

.chatInfoHeader span,
.chatInfoHero small,
.chatInfoAction small,
.chatInfoGrid span,
.qrCard small {
  color: #64756d;
  font-size: 12px;
}

.chatInfoNav {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-bottom: 1px solid #e7eee9;
}

.chatInfoNav button {
  min-height: 38px;
  border: 0;
  border-right: 1px solid #e7eee9;
  color: #40524a;
  background: #f7faf8;
  font-size: 12px;
  font-weight: 800;
}

.chatInfoNav button:last-child {
  border-right: 0;
}

.chatInfoNav button.active {
  color: #11684f;
  background: #eaf7f1;
}

.chatInfoBody {
  display: grid;
  gap: 10px;
  overflow: auto;
  padding: 14px;
}

.chatInfoHero {
  justify-items: center;
  padding: 16px 8px;
  text-align: center;
}

.chatInfoAvatar {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #0f8c68, #243b53);
  font-weight: 900;
}

.chatInfoAction {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  border: 1px solid #e2ebe5;
  border-radius: 8px;
  padding: 10px 12px;
  color: #17201c;
  background: #fbfdfc;
  text-align: left;
  font-weight: 800;
}

.chatInfoAction small {
  max-width: 48%;
  text-align: right;
  overflow-wrap: anywhere;
}

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

.chatInfoGrid div {
  display: grid;
  gap: 3px;
  border: 1px solid #e2ebe5;
  border-radius: 8px;
  padding: 10px;
  background: #f7faf8;
  text-align: center;
}

.chatInfoCollection {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

.chatInfoCollection > strong {
  font-size: 14px;
}

.chatInfoCollection p {
  margin: 0;
  color: #64756d;
  font-size: 13px;
}

.chatInfoMediaTools {
  display: grid;
  grid-template-columns: 1fr minmax(128px, 0.56fr);
  gap: 8px;
}

.chatInfoMediaTools label {
  display: grid;
  gap: 4px;
  min-width: 0;
  color: #64756d;
  font-size: 11px;
  font-weight: 800;
}

.chatInfoMediaTools input,
.chatInfoMediaTools select {
  width: 100%;
  min-width: 0;
  min-height: 36px;
  border: 1px solid #d7e4de;
  border-radius: 8px;
  padding: 8px 10px;
  color: #17201c;
  background: #ffffff;
  font: inherit;
}

.chatInfoMediaResult {
  margin: 0;
  color: #64756d;
  font-size: 12px;
  font-weight: 800;
}

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

.chatInfoMediaSummary span {
  display: grid;
  gap: 2px;
  min-width: 0;
  border: 1px solid #d7e4de;
  border-radius: 8px;
  padding: 8px;
  background: #fbfdfc;
}

.chatInfoMediaSummary strong,
.chatInfoMediaSummary small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chatInfoMediaSummary strong {
  color: #17201c;
  font-size: 13px;
}

.chatInfoMediaSummary small {
  color: #64756d;
  font-size: 11px;
  font-weight: 800;
}

.chatInfoSelectionBar {
  display: grid;
  grid-template-columns: auto 1fr auto auto auto auto;
  gap: 6px;
  align-items: center;
  border: 1px solid #d7e4de;
  border-radius: 8px;
  padding: 8px;
  background: #fbfdfc;
}

.chatInfoSelectionBar strong {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  background: #18715b;
  font-size: 12px;
}

.chatInfoSelectionBar span {
  color: #64756d;
  font-size: 12px;
  font-weight: 800;
}

.chatInfoSelectionBar button {
  min-height: 30px;
  border: 1px solid #18715b;
  border-radius: 8px;
  padding: 5px 8px;
  color: #18715b;
  background: #eef7f2;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}

.chatInfoSelectionBar button:disabled {
  border-color: #d7e4de;
  color: #94a39c;
  background: #f2f6f4;
}

.chatInfoSavedPanel {
  display: grid;
  gap: 8px;
  border: 1px solid #d7e4de;
  border-radius: 8px;
  padding: 10px;
  background: #fbfdfc;
}

.chatInfoSavedHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.chatInfoSavedHeader span {
  display: grid;
  min-width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  color: #18715b;
  background: #eef7f2;
  font-size: 12px;
  font-weight: 900;
}

.chatInfoSavedRow {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 6px 8px;
  align-items: center;
  min-width: 0;
  border: 1px solid #e2ebe5;
  border-radius: 8px;
  padding: 8px;
  background: #ffffff;
}

.chatInfoSavedRow button {
  min-height: 28px;
  border: 1px solid #18715b;
  border-radius: 8px;
  padding: 4px 8px;
  color: #18715b;
  background: #eef7f2;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
}

.chatInfoSavedRow span,
.chatInfoSavedRow small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chatInfoSavedRow small {
  grid-column: 1 / -1;
  color: #64756d;
  font-size: 11px;
}

.chatInfoFilters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chatInfoFilter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  border: 1px solid #d7e4de;
  border-radius: 8px;
  padding: 6px 10px;
  color: #17201c;
  background: #fbfdfc;
  font-size: 12px;
  font-weight: 800;
}

.chatInfoFilter.active {
  border-color: #18715b;
  color: #ffffff;
  background: #18715b;
}

.chatInfoFilter strong {
  font-size: 11px;
}

.mediaViewerOverlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 20, 0.88);
}

.mediaViewer {
  display: grid;
  width: min(920px, 100%);
  max-height: calc(100vh - 40px);
  gap: 12px;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 12px;
  color: #ffffff;
  background: #101814;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.34);
}

.mediaViewerTop {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.mediaViewerTop div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.mediaViewerTop strong,
.mediaViewerTop small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mediaViewerTop small {
  color: #b7c7c0;
}

.mediaViewerStage {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 10px;
  min-height: 320px;
}

.mediaViewerStage img,
.mediaViewerStage video {
  width: 100%;
  max-height: min(68vh, 620px);
  border-radius: 8px;
  object-fit: contain;
  background: #070b09;
}

.mediaViewerGestureHint {
  justify-self: center;
  max-width: min(520px, 100%);
  color: #b7c7c0;
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
}

.mediaViewerActionSummary {
  justify-self: center;
  width: fit-content;
  max-width: min(620px, 100%);
  border: 1px solid rgba(213, 245, 232, 0.14);
  border-radius: 8px;
  padding: 8px 10px;
  color: #d5f5e8;
  background: rgba(24, 113, 91, 0.18);
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1.35;
  text-align: center;
}

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

.mediaViewerActionBar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.mediaViewerDetails span {
  display: grid;
  gap: 2px;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.06);
}

.mediaViewerDetails strong,
.mediaViewerDetails small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mediaViewerDetails strong {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.mediaViewerDetails small {
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
}

.mediaViewerAudio {
  display: grid;
  justify-items: center;
  gap: 14px;
  width: min(520px, 100%);
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 28px 18px;
  background: #0b120f;
}

.mediaViewerAudio > span {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: #7c3aed;
  font-weight: 900;
}

.mediaViewerAudio audio {
  width: 100%;
}

.mediaViewerAudio small {
  color: #b7c7c0;
}

.mediaViewerNav {
  display: grid;
  width: 42px;
  height: 64px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  font-size: 36px;
  line-height: 1;
}

.mediaViewerThumbs {
  display: flex;
  gap: 8px;
  max-width: min(680px, 86vw);
  overflow-x: auto;
  padding: 8px 2px 2px;
  scrollbar-width: thin;
}

.mediaViewerThumb {
  display: grid;
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.26);
  border-radius: 10px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 900;
}

.mediaViewerThumb.active {
  border-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(24, 113, 91, 0.72);
}

.mediaViewerThumb:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.72);
  outline-offset: 2px;
}

.mediaViewerThumb img,
.mediaViewerThumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chatInfoPreviewClose {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

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

.chatInfoDownload,
.chatInfoJump {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #18715b;
  border-radius: 8px;
  padding: 8px 10px;
  color: #18715b;
  background: #eef7f2;
  font-size: 13px;
  font-weight: 800;
  font-family: inherit;
  text-decoration: none;
}

.chatInfoJump {
  color: #ffffff;
  background: #18715b;
}

.statusMediaViewer {
  width: min(820px, 100%);
  border-color: rgba(213, 245, 232, 0.13);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)),
    #101814;
}

.statusMediaViewer.statusViewerReplyFocus {
  border-color: rgba(213, 245, 232, 0.56);
  box-shadow: 0 0 0 3px rgba(213, 245, 232, 0.12), 0 22px 54px rgba(0, 0, 0, 0.42);
  animation: statusViewerReplyFocusPulse 2.8s ease;
}

.statusViewerReplyFocusNotice {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(213, 245, 232, 0.34);
  border-radius: 999px;
  padding: 5px 10px;
  color: #d5f5e8;
  background: rgba(24, 113, 91, 0.35);
  font-size: 0.78rem;
  font-weight: 900;
}

@keyframes statusViewerReplyFocusPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(213, 245, 232, 0.36), 0 22px 54px rgba(0, 0, 0, 0.42);
  }
  55% {
    box-shadow: 0 0 0 9px rgba(213, 245, 232, 0.12), 0 22px 54px rgba(0, 0, 0, 0.42);
  }
  100% {
    box-shadow: 0 0 0 3px rgba(213, 245, 232, 0.12), 0 22px 54px rgba(0, 0, 0, 0.42);
  }
}

.statusViewerHandle {
  display: none;
}

.statusViewerProgress {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(18px, 1fr);
  gap: 5px;
  width: 100%;
}

.statusViewerProgress span {
  display: block;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.statusViewerProgress span::after {
  content: "";
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #d5f5e8;
}

.statusViewerProgress .isSeen::after,
.statusViewerProgress .isActive::after {
  width: 100%;
}

.statusViewerProgress .isActive::after {
  box-shadow: 0 0 12px rgba(213, 245, 232, 0.5);
}

.statusMediaViewer .mediaViewerStage {
  min-height: 280px;
  overflow: hidden;
  border: 1px solid rgba(213, 245, 232, 0.12);
  border-radius: 16px;
  padding: 10px;
  background:
    radial-gradient(circle at 50% 18%, rgba(213, 245, 232, 0.1), transparent 42%),
    #06100c;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025), 0 18px 42px rgba(0, 0, 0, 0.3);
}

.statusViewerTapZone {
  position: absolute;
  z-index: 1;
  top: 0;
  bottom: 0;
  width: min(34%, 220px);
  border: 0;
  padding: 0;
  color: transparent;
  background: transparent;
  cursor: pointer;
}

.statusViewerTapZone:focus-visible {
  outline: 2px solid #d5f5e8;
  outline-offset: -6px;
}

.statusMediaViewer .mediaViewerNav:focus-visible,
.statusMediaViewer .chatInfoPreviewClose:focus-visible,
.statusMediaViewer .chatInfoJump:focus-visible,
.statusMediaViewer .chatInfoDownload:focus-visible,
.statusMediaViewer .statusReplyComposer input:focus-visible {
  outline: 3px solid rgba(213, 245, 232, 0.68);
  outline-offset: 3px;
  box-shadow: 0 0 0 5px rgba(24, 113, 91, 0.28);
}

.statusMediaViewer .statusReplyComposer input:focus-visible {
  outline-offset: 1px;
}

.statusViewerTapZone.isPrevious {
  left: 54px;
}

.statusViewerTapZone.isNext {
  right: 54px;
}

.statusMediaViewer .mediaViewerStage video ~ .statusViewerTapZone,
.statusMediaViewer .mediaViewerStage:has(video) .statusViewerTapZone {
  display: none;
}

.statusViewerOverlay {
  touch-action: manipulation;
}

.statusMediaViewer .mediaViewerTop,
.statusViewerTop {
  position: sticky;
  top: 0;
  z-index: 2;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin: -2px -2px 0;
  border-radius: 12px 12px 0 0;
  padding: 4px 2px 10px;
  background: rgba(16, 24, 20, 0.96);
  backdrop-filter: blur(14px);
}

.statusMediaViewer .chatInfoPreviewClose {
  flex: 0 0 auto;
  border: 1px solid rgba(213, 245, 232, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
}

.statusMediaViewer .chatInfoPreviewClose:hover {
  background: rgba(213, 245, 232, 0.16);
}

.statusViewerIdentity {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.statusViewerAuthor {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.statusViewerAvatar {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(213, 245, 232, 0.22);
  border-radius: 50%;
  color: #d5f5e8;
  background: linear-gradient(135deg, rgba(24, 113, 91, 0.9), rgba(8, 50, 40, 0.96));
  background-position: center;
  background-size: cover;
  font-size: 0.86rem;
  font-weight: 900;
}

.statusViewerAvatar.hasProfileImage {
  box-shadow: 0 8px 18px rgba(213, 245, 232, 0.14);
}

.statusViewerHeaderActions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  min-width: max-content;
}

.statusViewerCounter {
  display: inline-flex;
  min-width: 54px;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(213, 245, 232, 0.14);
  border-radius: 999px;
  padding: 0 10px;
  color: #d5f5e8;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.statusViewerIdentity strong {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
  font-size: 1rem;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.statusViewerStoryBadge {
  flex: 0 0 auto;
  border: 1px solid rgba(213, 245, 232, 0.32);
  border-radius: 999px;
  padding: 2px 7px;
  color: #d5f5e8;
  background: rgba(24, 113, 91, 0.22);
  font-size: 0.72rem;
  font-weight: 900;
}

.statusViewerMeta {
  display: -webkit-box;
  max-width: min(560px, 58vw);
  overflow: hidden;
  color: #a9beb5;
  font-size: 0.8rem;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.statusMediaViewer .mediaViewerStage img,
.statusMediaViewer .mediaViewerStage video {
  max-height: min(58dvh, 520px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.18);
}

.statusMediaViewer .mediaViewerNav {
  z-index: 2;
  display: grid;
  place-items: center;
  min-width: 48px;
  min-height: 64px;
  border: 1px solid rgba(213, 245, 232, 0.16);
  border-radius: 999px;
  color: #d5f5e8;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.06));
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.statusMediaViewer .mediaViewerNav:hover {
  transform: translateY(-1px);
  border-color: rgba(213, 245, 232, 0.34);
  background: linear-gradient(180deg, rgba(213, 245, 232, 0.2), rgba(24, 113, 91, 0.18));
}

.statusMediaViewer .mediaViewerNav:active {
  transform: translateY(0);
  background: rgba(24, 113, 91, 0.24);
}

.statusMediaViewer .mediaViewerNav:disabled,
.statusViewerTapZone:disabled {
  opacity: 0.34;
  cursor: default;
  pointer-events: none;
}

.statusMediaViewer .mediaViewerNav:disabled {
  transform: none;
  border-color: rgba(213, 245, 232, 0.08);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: none;
}

.statusViewerGestureHint {
  display: none;
}

.statusViewerActionSummary {
  border-color: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.1);
}

.statusViewerMobileControls {
  display: none;
}

@media (max-width: 720px) {
  .mediaViewerOverlay {
    padding: 8px;
    align-items: stretch;
  }

  .mediaViewer {
    width: 100%;
    max-height: calc(100dvh - 16px);
    align-content: start;
    gap: 10px;
    padding: 10px;
  }

  .mediaViewerStage {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 6px;
    min-height: min(54dvh, 420px);
  }

  .mediaViewerNav {
    width: 44px;
    height: 64px;
    font-size: 30px;
  }

  .mediaViewerDetails {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mediaViewerGestureHint {
    font-size: 0.72rem;
  }

  .mediaViewerActionSummary {
    max-width: 100%;
    font-size: 0.72rem;
    text-align: left;
  }

  .messageMediaTileBadge,
  .messageMediaTileAction {
    max-width: calc(100% - 12px);
    padding: 3px 7px;
    font-size: 0.64rem;
  }

  .messageMediaTileBadge {
    top: 6px;
    left: 6px;
  }

  .messageMediaTileAction {
    right: 6px;
    bottom: 6px;
  }

  .statusViewerOverlay {
    padding: 0;
  }

  .statusMediaViewer {
    width: 100%;
    min-height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    overflow: auto;
    padding: 8px 10px calc(env(safe-area-inset-bottom, 0px) + 10px);
  }

  .statusViewerHandle {
    position: sticky;
    top: 0;
    z-index: 5;
    display: block;
    width: 42px;
    height: 4px;
    justify-self: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.4);
  }

  .statusMediaViewer .mediaViewerTop {
    gap: 8px;
    padding-top: 2px;
  }

  .statusMediaViewer .mediaViewerTop strong {
    font-size: 0.95rem;
  }

  .statusMediaViewer .mediaViewerTop small {
    font-size: 0.72rem;
  }

  .statusViewerMeta {
    max-width: calc(100vw - 172px);
    font-size: 0.74rem;
    line-height: 1.22;
  }

  .statusViewerCounter {
    min-width: 48px;
    min-height: 30px;
    padding-inline: 8px;
  }

  .statusViewerAvatar {
    width: 36px;
    height: 36px;
  }

  .statusMediaViewer .chatInfoPreviewClose {
    width: 38px;
    height: 38px;
    min-width: 38px;
  }

  .statusViewerProgress {
    position: sticky;
    top: 8px;
    z-index: 4;
    gap: 4px;
    padding-top: 2px;
    background: #101814;
  }

  .statusViewerProgress span {
    height: 5px;
  }

  .statusMediaViewer .mediaViewerStage {
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    min-height: clamp(300px, 48dvh, 520px);
  }

  .statusMediaViewer .mediaViewerNav {
    min-width: 46px;
    min-height: 58px;
    background: rgba(6, 16, 12, 0.72);
  }

  .statusViewerTapZone {
    width: 36%;
  }

  .statusViewerTapZone.isPrevious {
    left: 50px;
  }

  .statusViewerTapZone.isNext {
    right: 50px;
  }

  .statusMediaViewer .mediaViewerStage img,
  .statusMediaViewer .mediaViewerStage video {
    max-height: 52dvh;
  }

  .statusMediaViewer .mediaViewerNav {
    width: 48px;
    height: 72px;
    min-height: 72px;
  }

  .chatInfoPreviewActions {
    position: sticky;
    bottom: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 8px;
    background: #101814;
  }

  .chatInfoDownload,
  .chatInfoJump {
    min-height: 44px;
    padding: 10px 8px;
  }

  .statusViewerCaption {
    max-height: 96px;
    overflow: auto;
  }

  .statusViewerPrivacy,
  .statusViewerReactions,
  .statusViewerSeenBy {
    gap: 6px;
    font-size: 0.8rem;
  }

  .statusViewerGestureHint {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    color: #9fb3aa;
    font-size: 0.76rem;
    line-height: 1.25;
    text-align: center;
  }

  .statusViewerGestureHint span {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    border: 1px solid rgba(213, 245, 232, 0.11);
    border-radius: 999px;
    padding: 0 10px;
    background: rgba(255, 255, 255, 0.055);
    white-space: nowrap;
  }

  .statusViewerMobileControls {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    border: 1px solid rgba(213, 245, 232, 0.12);
    border-radius: 12px;
    padding: 6px;
    background: rgba(255, 255, 255, 0.055);
  }

  .statusViewerMobileControls button {
    min-width: 0;
    min-height: 42px;
    border: 1px solid rgba(213, 245, 232, 0.14);
    border-radius: 999px;
    color: #d5f5e8;
    background: rgba(6, 16, 12, 0.76);
    font: inherit;
    font-size: 0.78rem;
    font-weight: 900;
    cursor: pointer;
  }

  .statusViewerMobileControls button:disabled {
    opacity: 0.38;
    cursor: default;
  }

  .statusViewerMobileControls button:focus-visible {
    outline: 3px solid rgba(213, 245, 232, 0.68);
    outline-offset: 2px;
  }

  .statusViewerPrivacy span,
  .statusViewerReactions span,
  .statusViewerSeenBy span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .statusViewerActions {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }

  .statusViewerPrimaryActions,
  .statusViewerSecondaryActions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .statusViewerSecondaryActions {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    justify-content: stretch;
  }

  .statusViewerActions .chatInfoJump,
  .statusViewerActions .chatInfoDownload {
    width: 100%;
    min-height: 44px;
  }

  .statusViewerFileAction,
  .statusViewerSecondaryActions .dangerAction {
    max-width: none;
  }

  .statusReactionButton {
    max-width: none;
    min-width: 0;
    padding-inline: 6px;
  }

  .statusReactionButton span {
    min-width: 0;
    max-width: 72px;
  }

  .statusReactionButton strong {
    min-width: 24px;
    padding-inline: 5px;
  }

  .statusReplyComposer {
    position: sticky;
    z-index: 3;
    bottom: env(safe-area-inset-bottom, 0px);
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    border: 1px solid rgba(213, 245, 232, 0.14);
    margin: 2px 0 0;
    padding: 7px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.05)),
      rgba(8, 17, 13, 0.94);
    box-shadow: 0 -14px 34px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(14px);
  }

  .statusReplyComposer input {
    min-width: 0;
    min-height: 48px;
    background: rgba(255, 255, 255, 0.075);
    font-size: 16px;
  }

  .statusReplyComposer button {
    min-height: 48px;
  }

  .statusReplySendButton {
    min-width: 78px;
    padding-inline: 12px;
  }
}

@media (max-width: 420px) {
  .statusViewerMobileControls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .statusViewerPrimaryActions {
    grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
  }

  .statusViewerSecondaryActions {
    grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
  }

  .statusReactionButton {
    min-height: 46px;
    padding-inline: 8px;
  }

  .statusReactionButton span {
    max-width: none;
  }

  .statusReplyComposer {
    grid-template-columns: minmax(0, 1fr) minmax(64px, 76px);
    gap: 6px;
    padding: 6px;
  }

  .statusReplyComposer input {
    padding-inline: 12px;
  }

  .statusReplySendButton {
    min-width: 0;
    padding-inline: 8px;
    font-size: 0.86rem;
  }

  .statusReplyReference {
    grid-template-columns: 34px minmax(0, 1fr);
    border-radius: 7px;
    padding: 6px 7px;
  }

  .statusReplyReferencePreview {
    width: 34px;
    height: 34px;
  }

  .statusReplyReferenceMeta {
    font-size: 0.68rem;
  }

  .statusReplyOpenAction {
    min-height: 26px;
    font-size: 0.68rem;
  }
}

.chatInfoMediaGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.chatInfoMediaWrap,
.chatInfoRowWrap {
  position: relative;
  min-width: 0;
}

.chatInfoMediaWrap.selected .chatInfoMediaTile,
.chatInfoRowWrap.selected .chatInfoDocumentRow,
.chatInfoRowWrap.selected .chatInfoLinkRow {
  border-color: #18715b;
  box-shadow: 0 0 0 2px rgba(24, 113, 91, 0.14);
}

.chatInfoSelect {
  position: absolute;
  z-index: 2;
  top: 6px;
  right: 6px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(23, 32, 28, 0.2);
  border-radius: 8px;
  color: #17201c;
  background: rgba(255, 255, 255, 0.92);
  font-size: 11px;
  font-weight: 900;
}

.chatInfoSelect.selected {
  border-color: #18715b;
  color: #ffffff;
  background: #18715b;
}

.chatInfoMediaTile {
  display: grid;
  gap: 4px;
  min-width: 0;
  border: 1px solid #e2ebe5;
  border-radius: 8px;
  padding: 6px;
  color: #17201c;
  background: #f7faf8;
  font: inherit;
  text-decoration: none;
  text-align: left;
}

.chatInfoMediaTile img,
.chatInfoMediaTile video {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 6px;
  object-fit: cover;
  background: #dbe8e2;
}

.audioMediaTile {
  min-height: 146px;
}

.audioTileIcon {
  display: grid;
  width: 100%;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 6px;
  color: #ffffff;
  background: #7c3aed;
  font-size: 16px;
  font-weight: 900;
}

.chatInfoMediaTile span,
.chatInfoDocumentRow span,
.chatInfoLinkRow span {
  overflow: hidden;
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chatInfoMediaTile small,
.chatInfoDocumentRow small,
.chatInfoLinkRow small {
  overflow: hidden;
  color: #64756d;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chatInfoMediaTile .audioTileIcon {
  font-size: 16px;
  white-space: normal;
}

.chatInfoList {
  display: grid;
  gap: 6px;
}

.chatInfoRowWrap {
  display: grid;
}

.chatInfoDocumentRow,
.chatInfoLinkRow {
  display: grid;
  gap: 3px;
  min-width: 0;
  border: 1px solid #e2ebe5;
  border-radius: 8px;
  padding: 8px 10px;
  color: #17201c;
  background: #fbfdfc;
  text-decoration: none;
}

.qrCard {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 22px;
  border: 1px solid #dbe8e2;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(23, 113, 91, 0.16) 50%, transparent 0) 0 0 / 18px 18px,
    linear-gradient(rgba(23, 113, 91, 0.16) 50%, transparent 0) 0 0 / 18px 18px,
    #ffffff;
}

.qrCard span {
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  border: 10px solid #12201a;
  color: #12201a;
  background: #ffffff;
  font-weight: 900;
}

.attachmentPreview {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-top: 1px solid #d9ded7;
  color: #17201c;
  background: #eef7f2;
}

.attachmentPreview.hidden {
  display: none;
}

.attachmentPreviewMedia {
  position: relative;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  color: #fff;
  background: #17201c;
  font-size: 0.74rem;
  font-weight: 900;
}

.attachmentPreviewMedia img,
.attachmentPreviewMedia video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.attachmentPreviewMedia.attachmentQueue {
  display: grid;
  width: min(100%, 520px);
  height: auto;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 8px;
  border-radius: 0;
  background: transparent;
}

.attachmentGallerySummary {
  display: grid;
  grid-column: 1 / -1;
  gap: 2px;
  min-width: 0;
  border: 1px solid #bfddd0;
  border-radius: 8px;
  padding: 8px 10px;
  color: #123c32;
  background: #edf8f3;
}

.attachmentGallerySummary strong,
.attachmentGallerySummary small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attachmentGallerySummary strong {
  font-size: 0.78rem;
  font-weight: 900;
}

.attachmentGallerySummary small {
  color: #476058;
  font-size: 0.72rem;
  font-weight: 800;
}

.attachmentQueueItem {
  position: relative;
  display: grid;
  grid-template-columns: 46px 1fr auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 58px;
  border: 1px solid #d7e4de;
  border-radius: 8px;
  padding: 6px;
  color: #17201c;
  background: #ffffff;
}

.attachmentQueuePosition {
  position: absolute;
  left: 4px;
  top: 4px;
  z-index: 2;
  display: grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 999px;
  color: #ffffff;
  background: #18715b;
  font-size: 0.66rem;
  font-weight: 900;
}

.attachmentQueueMedia {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  color: #ffffff;
  background: #18715b;
  font-size: 0.7rem;
  font-weight: 900;
}

.attachmentQueueMedia img,
.attachmentQueueMedia video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.attachmentQueueMeta {
  display: grid;
  gap: 2px;
  min-width: 0;
  text-align: left;
}

.attachmentQueueMeta strong,
.attachmentQueueMeta small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attachmentQueueMeta strong {
  font-size: 0.84rem;
}

.attachmentQueueMeta small {
  color: #64756d;
  font-size: 0.72rem;
}

.attachmentQueueHint {
  color: #18715b;
  font-weight: 900;
}

.attachmentQueueCaption {
  width: 100%;
  min-width: 0;
  border: 1px solid #d8e3dd;
  border-radius: 6px;
  padding: 5px 7px;
  color: #17201c;
  background: #fbfefd;
  font: inherit;
  font-size: 0.75rem;
}

.attachmentQueueActions {
  display: grid;
  grid-template-columns: repeat(3, 26px);
  gap: 4px;
}

.attachmentQueueMove,
.attachmentQueueRemove {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid #d8e3dd;
  border-radius: 7px;
  color: #40524a;
  background: #f7faf8;
  font-size: 0.78rem;
  font-weight: 900;
}

.attachmentQueueMove:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.attachmentPreviewMedia.contactPreview {
  border-radius: 50%;
  background: #18715b;
}

.attachmentPreviewMedia.pollPreview {
  background: #f59e0b;
}

.attachmentPreviewMedia.audioPreview {
  background: #7c3aed;
}

.attachmentPreviewDetails {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.messageAttachmentCaption {
  display: block;
  margin-top: 5px;
  color: #27342f;
  font-size: 0.82rem;
  line-height: 1.35;
}

.attachmentPreviewDetails strong,
.attachmentPreviewDetails small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attachmentPreviewBadge {
  align-self: flex-start;
  border: 1px solid rgba(15, 118, 110, 0.24);
  border-radius: 999px;
  color: var(--primary-strong);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.18rem 0.48rem;
}

.attachmentPreviewBadge.isSending {
  color: #7c4a03;
  border-color: rgba(245, 158, 11, 0.38);
}

.attachmentPreviewBadge.isReady {
  color: #0f766e;
  border-color: rgba(15, 118, 110, 0.38);
  background: rgba(15, 118, 110, 0.08);
}

.attachmentPreviewBadge.isError {
  color: #a32020;
  border-color: rgba(163, 32, 32, 0.32);
}

.attachmentPreviewMeta {
  color: #43534c;
  font-weight: 800;
}

.attachmentPreviewDetails small {
  color: #64756d;
  font-size: 0.82rem;
}

#attachmentPreviewStatus.isReady {
  color: #0f766e;
  font-weight: 800;
}

.attachmentPreview .linkButton:disabled {
  cursor: wait;
  opacity: 0.55;
}

.composerMediaHint {
  margin: -6px 16px 12px;
  color: #64756d;
  font-size: 0.8rem;
  line-height: 1.35;
}

.contactShareEditor {
  display: grid;
  gap: 8px;
  padding: 10px 14px 12px;
  border-top: 1px solid #d9ded7;
  background: #f7fbf9;
}

.contactShareEditor.hidden {
  display: none;
}

.contactShareEditor > strong {
  color: #17201c;
  font-size: 13px;
}

.contactShareList {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
}

.contactShareChoice {
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: center;
  gap: 8px;
  min-height: 50px;
  border: 1px solid #cbd7d0;
  border-radius: 8px;
  padding: 7px 8px;
  color: #17201c;
  background: #ffffff;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.contactShareChoice .contactInitials {
  width: 36px;
  height: 36px;
  font-size: 12px;
}

.contactShareChoice:hover,
.contactShareChoice:focus-visible,
.contactShareChoice.isSelected {
  border-color: #18715b;
  background: #eaf6f1;
  outline: none;
}

.pollEditor {
  display: grid;
  gap: 8px;
  padding: 10px 14px 12px;
  border-top: 1px solid #d9ded7;
  background: #f7fbf9;
}

.pollEditor.hidden {
  display: none;
}

.pollEditor input {
  width: 100%;
  min-height: 34px;
  border: 1px solid #cbd7d0;
  border-radius: 8px;
  padding: 7px 9px;
  color: #17201c;
  background: #ffffff;
  font: inherit;
  font-size: 13px;
}

.pollEditor input:focus {
  border-color: #18715b;
  outline: 2px solid rgba(24, 113, 91, 0.14);
}

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

.visuallyHidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.profileImagePanel {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin-bottom: 12px;
  border: 1px solid #dde8e2;
  border-radius: 8px;
  padding: 12px;
  background: #fbfdfc;
}

.deviceCapabilityPanel {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
  border: 1px solid #d8e5df;
  border-radius: 8px;
  padding: 12px;
  background: #ffffff;
}

.deviceCapabilityPanel h2,
.deviceCapabilityPanel p {
  margin: 0;
}

.deviceCapabilityPanel p {
  color: #66736d;
  font-size: 0.84rem;
}

.mediaReadinessPanel {
  display: grid;
  gap: 4px;
  border: 1px solid #cce3da;
  border-radius: 8px;
  padding: 10px;
  background: #f4fbf8;
}

.mediaReadinessPanel strong {
  color: #10251f;
  font-size: 0.92rem;
}

.mediaReadinessPanel p {
  margin: 0;
  color: #42524b;
  font-size: 0.88rem;
  line-height: 1.35;
}

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

.mediaReadinessActions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 8px;
}

.mediaReadinessActions .sideAction {
  min-width: 0;
  min-height: 42px;
  white-space: normal;
}

.mediaReadinessCard {
  width: 100%;
  display: grid;
  gap: 4px;
  min-height: 92px;
  min-width: 0;
  border: 1px solid #d9e6e0;
  border-radius: 8px;
  padding: 9px;
  color: inherit;
  background: #ffffff;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.mediaReadinessCard.isReady {
  border-color: #bbdfd2;
  background: #f7fffb;
}

.mediaReadinessCard.isLimited,
.mediaReadinessCard.isPending {
  border-color: #ead4ad;
  background: #fffaf0;
}

.mediaReadinessCard strong,
.mediaReadinessCard small,
.mediaReadinessCard em {
  overflow: hidden;
  text-overflow: ellipsis;
}

.mediaReadinessCard strong {
  color: #10251f;
  font-size: 0.84rem;
}

.mediaReadinessCard small {
  color: #5c6963;
  font-size: 0.76rem;
  line-height: 1.25;
}

.mediaReadinessCard em {
  align-self: end;
  color: #18715b;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 900;
}

.mediaReadinessCard:hover {
  border-color: #18715b;
}

.mediaReadinessCard:focus-visible {
  outline: 3px solid rgba(24, 113, 91, 0.22);
  outline-offset: 2px;
}

.mediaReadinessLiveList {
  display: grid;
  gap: 6px;
}

.mediaReadinessLiveList.hidden {
  display: none;
}

.mediaReadinessLiveItem {
  display: grid;
  gap: 2px;
  border-left: 4px solid #b8c6c0;
  border-radius: 6px;
  padding: 7px 8px;
  background: #ffffff;
}

.mediaReadinessLiveItem.isAvailable {
  border-left-color: #18715b;
}

.mediaReadinessLiveItem.isLimited {
  border-left-color: #b7791f;
}

.mediaReadinessLiveItem strong {
  color: #10251f;
  font-size: 0.86rem;
}

.mediaReadinessLiveItem small {
  color: #66736d;
  font-size: 0.78rem;
}

.mediaActionHistoryPanel {
  display: grid;
  gap: 8px;
  border: 1px solid #d7e4de;
  border-radius: 8px;
  padding: 10px;
  background: #fbfdfc;
}

.mediaActionHistoryHeader {
  display: grid;
  grid-template-columns: 1fr auto auto auto auto auto auto;
  gap: 8px;
  align-items: center;
}

.mediaActionHistoryHeader span {
  color: #64756d;
  font-size: 0.78rem;
  font-weight: 800;
}

.mediaActionHistoryHeader .linkButton {
  min-height: 30px;
  padding: 4px 8px;
}

.mediaActionHistoryList {
  display: grid;
  gap: 6px;
}

.mediaActionHistoryItem {
  display: grid;
  gap: 2px;
  border: 1px solid #e0ebe5;
  border-radius: 8px;
  padding: 8px;
  background: #ffffff;
}

.mediaActionHistoryItem small {
  color: #64756d;
  font-size: 0.78rem;
  font-weight: 800;
}

.deviceCapabilityList {
  display: grid;
  gap: 6px;
}

.deviceCapabilityActions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
}

.deviceCapabilityItem {
  display: grid;
  gap: 2px;
  min-width: 0;
  border-left: 4px solid #b8c6c0;
  border-radius: 6px;
  padding: 7px 8px;
  background: #f7faf8;
}

.deviceCapabilityItem.isAvailable {
  border-left-color: #18715b;
}

.deviceCapabilityItem.isLimited {
  border-left-color: #b7791f;
}

.deviceCapabilityItem strong,
.deviceCapabilityItem small {
  overflow: hidden;
  text-overflow: ellipsis;
}

.deviceCapabilityItem small {
  color: #66736d;
}

.profileImagePreview {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border: 3px solid #ffffff;
  border-radius: 50%;
  color: white;
  background: #18715b;
  background-position: center;
  background-size: cover;
  box-shadow: 0 10px 24px rgba(24, 113, 91, 0.22);
  cursor: pointer;
  font-weight: 800;
  font: inherit;
  padding: 0;
  transition: opacity 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.profileImagePreview:focus-visible {
  outline: 3px solid rgba(24, 113, 91, 0.26);
  outline-offset: 3px;
}

.profileImagePreview:disabled {
  cursor: progress;
}

@keyframes profileImageAppliedPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(24, 113, 91, 0.42);
    transform: scale(1);
  }

  40% {
    box-shadow: 0 0 0 8px rgba(24, 113, 91, 0.16);
    transform: scale(1.03);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(24, 113, 91, 0);
    transform: scale(1);
  }
}

.profileImagePanel.profileImageAppliedFocus {
  border-color: rgba(24, 113, 91, 0.38);
  background: #f0faf5;
}

.profileImagePreview.profileImageAppliedFocus,
.userBoxAvatar.profileImageAppliedFocus {
  animation: profileImageAppliedPulse 2.4s ease;
}

.profileImagePanel.isUploading .profileImagePreview {
  opacity: 0.72;
  transform: scale(0.97);
  box-shadow: 0 6px 18px rgba(24, 113, 91, 0.18);
}

.profileImagePanel.isRemoving .profileImagePreview {
  opacity: 0.56;
  filter: grayscale(0.35);
}

.profileImagePanel.hasProfileImageError {
  border-color: rgba(178, 47, 47, 0.34);
  background: #fff8f8;
}

.profileImagePanel h2,
.profileImagePanel p {
  margin: 0 0 6px;
}

.profileImageHint {
  color: #64756d;
  line-height: 1.35;
}

.uploadGuidance {
  margin: 0;
  color: #53665d;
  font-size: 0.83rem;
  font-weight: 700;
  line-height: 1.4;
}

/* Media upload guidance: make profile and status media flows self-explaining. */
.uploadAssuranceGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  margin: 8px 0;
}

.uploadAssuranceCard {
  display: grid;
  gap: 4px;
  min-height: 76px;
  padding: 10px 11px;
  border: 1px solid #d7e5df;
  border-radius: 8px;
  color: #1b3a31;
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(20, 42, 35, 0.05);
}

.uploadAssuranceCard strong {
  font-size: 0.82rem;
  line-height: 1.25;
}

.uploadAssuranceCard small {
  color: #60716a;
  font-size: 0.74rem;
  line-height: 1.35;
}

.statusUploadAssurance .uploadAssuranceCard:first-child,
.profileUploadAssurance .uploadAssuranceCard:first-child {
  border-color: rgba(24, 113, 91, 0.26);
  background: #f4fbf8;
}

.profileImageDraftPreview {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 8px;
  align-items: center;
  margin: 8px 0;
  border: 1px solid #d6e8df;
  border-radius: 8px;
  padding: 7px;
  background: #f3faf6;
}

.profileImageActions {
  margin-top: 6px;
}

.profileImageDraftMedia {
  position: relative;
  display: block;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #18715b;
  background-position: center;
  background-size: cover;
}

.profileImageDraftMedia .mediaPreviewKindBadge {
  right: -8px;
  left: auto;
  bottom: -4px;
  max-width: 92px;
  background: rgba(24, 113, 91, 0.94);
}

.profileImageDraftDetails {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.profileImageDraftDetails strong,
.profileImageDraftDetails small,
.profileImageStatus {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profileImageDraftBadge {
  align-self: flex-start;
  border: 1px solid rgba(15, 118, 110, 0.24);
  border-radius: 999px;
  color: var(--primary-strong);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.18rem 0.48rem;
}

.profileImageDraftDetails small,
.profileImageStatus {
  color: #64756d;
  font-size: 0.83rem;
}

.profileImageStatus.isBusy {
  color: #18715b;
  font-weight: 800;
}

.profileImagePanel.isRemoving .profileImageStatus.isBusy {
  color: #8a5b13;
}

.profileImageStatus.isError {
  color: #b22f2f;
  font-weight: 800;
  white-space: normal;
}

.profileImagePanel .sideAction {
  margin-top: 4px;
  min-height: 40px;
}

.profileImageActions .retryAction {
  border-color: #b22f2f;
  color: #8a2424;
  background: #fff1f1;
}

.profileImageActions .secondaryAction.retryAction {
  border-color: #d48a25;
  color: #6f420b;
  background: #fff7e8;
}

.statusMediaActions .repairAction {
  border-color: #d48a25;
  color: #6f420b;
  background: #fff7e8;
}

.statusMediaActions .repairAction:focus-visible {
  outline: 3px solid rgba(212, 138, 37, 0.24);
  outline-offset: 2px;
}

.attachmentPreview .repairAction {
  color: #6f420b;
  border-color: #d48a25;
  background: #fff7e8;
}

.attachmentPreview .repairAction:focus-visible {
  outline: 3px solid rgba(212, 138, 37, 0.24);
  outline-offset: 2px;
}

.profileImageActions .retryAction:focus-visible {
  outline: 3px solid rgba(178, 47, 47, 0.24);
  outline-offset: 2px;
}

@media (max-width: 560px) {
  .profileImagePanel {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
  }

  .profileImagePreview {
    width: 72px;
    height: 72px;
  }

  .profileImageActions .sideAction {
    width: 100%;
  }
}

.composerInput {
  position: relative;
  display: block;
}

.composerInput input {
  width: 100%;
  padding-right: 82px;
}

#characterCounter {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #68736c;
  font-size: 13px;
}

@media (max-width: 760px) {
  .statusHeader,
  .statusSummary,
  .statusTableHeader,
  .statusRow,
  .planRow {
    display: grid;
    grid-template-columns: 1fr;
  }

  .betaHero {
    align-items: flex-start;
    flex-direction: column;
  }

  .betaGrid {
    grid-template-columns: 1fr;
  }

  .betaFeedbackForm {
    grid-template-columns: 1fr;
  }

  .messenger {
    grid-template-columns: 1fr;
  }

  aside {
    display: none;
  }
}

/* P346 Privazora messenger automatic update enforcement */
:root {
  --pz-ink: #061323;
  --pz-muted: #708199;
  --pz-soft: #f3f7fb;
  --pz-panel: #ffffff;
  --pz-line: #e3eaf2;
  --pz-green: #06b978;
  --pz-green-dark: #039764;
  --pz-cyan: #16a4c7;
  --pz-shadow: 0 18px 50px rgba(7, 20, 38, 0.12);
  --pz-radius: 8px;
}

.hidden {
  display: none !important;
}

body {
  color: var(--pz-ink);
  background:
    linear-gradient(135deg, rgba(6, 185, 120, 0.08), transparent 34%),
    linear-gradient(315deg, rgba(22, 164, 199, 0.1), transparent 36%),
    #eef3f8;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.login {
  display: grid;
  gap: 18px;
  width: min(440px, calc(100vw - 28px));
  padding: 28px;
  border: 1px solid rgba(227, 234, 242, 0.86);
  border-radius: var(--pz-radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--pz-shadow);
}

.loginBrand,
.brand,
.chatIdentity {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logoMark {
  position: relative;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #65dff0;
  background: #061323;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(6, 19, 35, 0.2);
}

.logoMark::after {
  content: "";
  position: absolute;
  right: 9px;
  bottom: 8px;
  width: 14px;
  height: 14px;
  border-radius: 3px 3px 3px 0;
  background: #48c8df;
  transform: rotate(45deg);
}

.login h1 {
  font-size: 34px;
  letter-spacing: 0;
}

.login p,
.brandCopy small {
  color: #93a4bb;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.loginIntro {
  display: grid;
  gap: 4px;
  padding: 16px;
  border: 1px solid var(--pz-line);
  border-radius: var(--pz-radius);
  background: var(--pz-soft);
}

.loginIntro span {
  color: var(--pz-muted);
}

.pairingLogin {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--pz-line);
  border-radius: var(--pz-radius);
  background: #f7fafc;
}

.pairingLogin div:first-child,
.pairingConfirm {
  display: grid;
  gap: 6px;
}

.pairingLogin span,
.pairingConfirm p {
  margin: 0;
  color: var(--pz-muted);
  font-size: 13px;
}

.pairingPanel {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--pz-line);
}

.pairingPanel.hidden {
  display: none;
}

.pairingQr {
  width: 132px;
  height: 132px;
  overflow: hidden;
  border: 1px solid var(--pz-line);
  border-radius: var(--pz-radius);
  background: white;
}

.pairingQr svg {
  width: 100%;
  height: 100%;
  display: block;
}

#pairingCode {
  display: block;
  margin: 6px 0;
  font-size: 22px;
  letter-spacing: 0;
}

#pairingCompleteButton {
  width: 100%;
  margin-top: 4px;
}

input,
select,
textarea {
  border: 1px solid var(--pz-line);
  border-radius: var(--pz-radius);
  background: #f2f6fa;
  color: var(--pz-ink);
}

button {
  border-radius: var(--pz-radius);
  background: var(--pz-green);
  font-weight: 800;
}

button:hover:not(:disabled) {
  filter: brightness(0.97);
}

.messenger {
  width: min(1420px, calc(100vw - 28px));
  height: min(860px, calc(100vh - 28px));
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(340px, 410px) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(227, 234, 242, 0.9);
  border-radius: 8px;
  background: var(--pz-panel);
  box-shadow: var(--pz-shadow);
}

.messenger.hidden {
  display: none;
}

.sidebar {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-right: 1px solid var(--pz-line);
  background: var(--pz-panel);
}

.brand {
  height: auto;
  min-height: 88px;
  padding: 22px 24px 14px;
  border-bottom: 0;
}

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

.brandCopy strong {
  font-size: 25px;
  line-height: 1;
}

.brandCopy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.userBox {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin: 0 24px 12px;
  padding: 10px 12px;
  border: 1px solid var(--pz-line);
  border-radius: var(--pz-radius);
  color: var(--pz-muted);
  background: #f7fafc;
  font-size: 13px;
}

.userBoxAvatar {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: #18715b;
  background-position: center;
  background-size: cover;
  font-weight: 900;
}

.userBoxAvatar.hasUserImage {
  box-shadow: 0 8px 18px rgba(24, 113, 91, 0.18);
}

.userBoxDetails {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.userBoxDetails strong,
.userBoxDetails small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.userBoxDetails strong {
  color: #17342b;
}

.installStatusLine {
  color: #18715b;
  font-size: 11px;
  font-weight: 800;
}

.updateRepairHistoryLine {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: #6a746f;
  font-size: 11px;
  font-weight: 700;
}

.updateRepairHistoryLine small {
  min-width: 0;
}

.updateRepairClearButton,
.updateRepairCopyButton,
.updateRepairDownloadButton {
  min-height: 22px;
  border: 1px solid #c9d8d1;
  border-radius: 999px;
  padding: 0 8px;
  color: #2f6254;
  background: #f7fbf9;
  font-size: 10px;
  font-weight: 800;
}

.updateRepairCopyButton {
  color: #ffffff;
  border-color: #18715b;
  background: #18715b;
}

.updateRepairDownloadButton {
  border-color: #9cc9ba;
  color: #175644;
  background: #eaf8f2;
}

.updateDiagnosticsFallback {
  max-height: 84px;
  overflow: auto;
  white-space: pre-wrap;
  border: 1px solid #c9d8d1;
  border-radius: 8px;
  padding: 7px;
  color: #24352e;
  background: #ffffff;
  font-family: monospace;
  font-size: 10px;
  line-height: 1.35;
}

.updateDiagnosticsFallback.hidden {
  display: none;
}

.mobileTabs {
  order: 20;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  padding: 10px 18px 14px;
  margin-top: auto;
  border-top: 1px solid var(--pz-line);
  background: rgba(255, 255, 255, 0.96);
}

.tabButton {
  min-width: 0;
  min-height: 52px;
  display: grid;
  justify-items: center;
  gap: 3px;
  padding: 4px 2px;
  color: var(--pz-muted);
  background: transparent;
  border: 0;
  font-size: 12px;
}

.tabButton.active {
  color: var(--pz-green-dark);
}

.tabIcon {
  width: 36px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-weight: 900;
}

.tabButton.active .tabIcon {
  background: #e6fff3;
}

.searchBox {
  gap: 14px;
  padding: 14px 24px 10px;
  border-bottom: 0;
}

.searchBox span {
  color: var(--pz-ink);
  font-size: 34px;
  font-weight: 900;
}

.searchBox input {
  min-height: 54px;
  padding-left: 42px;
  border: 0;
  border-radius: var(--pz-radius);
  background:
    linear-gradient(90deg, transparent 0 28px, #8191a7 28px 30px, transparent 30px),
    #f1f5f9;
  font-size: 17px;
}

.sidebarTools {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 24px 8px;
}

.sideAction,
.messageSearchClear,
.loadMore,
.linkButton {
  min-height: 34px;
  margin: 0;
  padding: 0 10px;
  border: 1px solid #cfe4dc;
  color: var(--pz-green-dark);
  background: #effbf6;
  font-size: 13px;
}

.basicSearchSummary {
  margin: 0 24px 8px;
  color: var(--pz-muted);
}

.unreadSummary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 24px 8px;
  border: 1px solid #dbe7e2;
  border-radius: 8px;
  padding: 8px 10px;
  color: #627168;
  background: #ffffff;
  font-size: 13px;
  font-weight: 800;
}

.unreadSummary button {
  min-height: 28px;
  border: 1px solid #cfe4dc;
  border-radius: 999px;
  padding: 0 10px;
  color: var(--pz-green-dark);
  background: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.unreadSummary.hasUnread {
  border-color: rgba(24, 113, 91, 0.24);
  color: var(--pz-green-dark);
  background: #eefbf5;
}

.archiveToggle,
.unreadToggle {
  padding: 0 24px 10px;
  border-bottom: 0;
}

.filterResetAction {
  width: calc(100% - 48px);
  margin: 0 24px 12px;
}

.unreadToggle {
  color: var(--pz-green-dark);
  font-weight: 800;
}

#conversationList {
  min-height: 0;
  flex: 1;
  overflow: auto;
}

.conversation {
  position: relative;
  min-height: 92px;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 2px 12px;
  padding: 15px 24px;
  border-bottom: 1px solid #edf2f7;
  background: transparent;
}

.conversation::before {
  display: none;
  content: attr(data-initials);
}

.conversationAvatar {
  grid-row: 1 / 3;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  align-self: center;
  border-radius: 50%;
  color: white;
  background: var(--pz-cyan);
  font-weight: 900;
}

.conversationAvatar.hasProfileImage {
  box-shadow: 0 8px 18px rgba(24, 113, 91, 0.18);
}

.conversation:nth-child(3n) .conversationAvatar {
  background: #8a4cf6;
}

.conversation:nth-child(3n + 1) .conversationAvatar {
  background: #ff6b00;
}

.conversation.active {
  background: #edfff7;
}

.conversationTitleRow,
.conversationPreview {
  grid-column: 2;
}

.conversationTitleRow {
  align-self: end;
}

.conversationTitle {
  font-size: 18px;
}

.conversationMeta {
  position: absolute;
  right: 24px;
  top: 19px;
  color: #9aa8bb;
  font-size: 13px;
}

.conversationPreview {
  max-width: 92%;
  margin-top: 2px;
  color: #708199;
  font-size: 15px;
}

.pinBadge,
.muteBadge,
.archiveBadge {
  color: var(--pz-cyan);
  font-size: 11px;
  font-weight: 900;
}

.unreadBadge {
  background: var(--pz-green);
}

.utilityPanel {
  border-top: 1px solid var(--pz-line);
  background: #fbfdff;
}

.utilityPanel summary {
  padding: 12px 24px;
  color: var(--pz-muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.contacts,
.contactProfile,
.pairingConfirm,
.reportOverview,
.accountActions,
.adminPanel {
  padding: 12px 24px;
  border-bottom: 0;
}

.pairingConfirm {
  border-top: 1px solid var(--pz-line);
}

.chat {
  display: grid;
  grid-template-rows: 82px auto auto auto auto 1fr auto auto;
  min-height: 0;
  background: #f6f9fc;
}

.chat header {
  height: 82px;
  padding: 0 28px;
  border-bottom: 1px solid var(--pz-line);
  background: rgba(255, 255, 255, 0.96);
}

.chatIdentity {
  min-width: 220px;
}

.chatAvatar {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--pz-green);
  background-position: center;
  background-size: cover;
  font-weight: 900;
}

.chatAvatar.hasProfileImage {
  box-shadow: 0 8px 18px rgba(24, 113, 91, 0.18);
}

#chatTitle {
  display: block;
  font-size: 19px;
  font-weight: 900;
}

.chatIdentity small {
  display: block;
  margin-top: 2px;
  color: var(--pz-green-dark);
  font-size: 14px;
  font-weight: 700;
}

.chatActions {
  justify-content: flex-end;
  gap: 8px;
}

.iconButton {
  width: 42px;
  min-width: 42px;
  min-height: 42px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--pz-ink);
  background: #f1f5f9;
}

.backButton {
  display: none;
}

.callButton {
  color: var(--pz-ink);
  background: transparent;
  border: 0;
}

.callSessionPanel {
  margin: 10px 20px 0;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid #b7dfd4;
  border-radius: 8px;
  background: #effaf7;
  color: var(--pz-ink);
}

.callSessionPanel[data-call-state="active"] {
  border-color: #78cbb7;
  background: #e4f8f2;
}

.callSessionPanel[data-call-state="ended"],
.callSessionPanel[data-call-state="missed"] {
  border-color: #d8e1dc;
  background: #f6f8f7;
}

.callSessionIcon {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: #18715b;
}

.callSessionIcon img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

.callSessionBody {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.callSessionBody strong,
.callSessionBody small {
  overflow-wrap: anywhere;
}

.callSessionBody small {
  color: var(--pz-muted);
}

.callEndButton {
  min-height: 38px;
  padding: 0 14px;
  border-color: #f0b8b8;
  color: #8d1f1f;
  background: #fff4f4;
}

.callHistoryPanel {
  width: min(760px, 100%);
  display: grid;
  gap: 14px;
}

.callHistoryHeader,
.callHistoryItem {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.callHistoryHeader p {
  margin: 4px 0 0;
  color: var(--pz-muted);
}

.callHistoryList {
  display: grid;
  gap: 10px;
}

.callHistoryItem {
  grid-template-columns: 42px minmax(0, 1fr) auto;
  padding: 12px;
  border: 1px solid #dbe7e1;
  border-radius: 8px;
  background: #ffffff;
}

.callHistoryItem[data-call-status="ringing"] {
  border-color: #f2cf8f;
  background: #fff9ed;
}

.callHistoryItem[data-call-status="active"] {
  border-color: #9bd8c9;
  background: #effaf7;
}

.callHistoryItem[data-call-status="missed"] {
  border-color: #f0b8b8;
  background: #fff4f4;
}

.callHistoryKind {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: #edf5f1;
}

.callHistoryKind img {
  width: 20px;
  height: 20px;
}

.callHistoryBody {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.callHistoryBody strong,
.callHistoryBody small {
  overflow-wrap: anywhere;
}

.callHistoryBody small {
  color: var(--pz-muted);
}

.callHistoryActions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.callHistoryBadge {
  min-width: 48px;
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  color: #18715b;
  background: #e4f8f2;
}

.callAcceptButton {
  color: #ffffff;
  border-color: #18715b;
  background: #18715b;
}

.callDeclineButton {
  color: #8d1f1f;
  border-color: #f0b8b8;
  background: #fff4f4;
}

.callHistoryEmpty {
  margin: 0;
  color: var(--pz-muted);
}

#statusText {
  min-width: 88px;
  color: var(--pz-muted);
  font-size: 12px;
}

.chatStatusStack {
  min-width: 172px;
}

.messageSearchBox,
.messageSearchClear,
.messageSearchSummary,
.savedToggle,
.loadMore {
  margin-left: 28px;
  margin-right: 28px;
}

.messageSearchBox,
.savedToggle {
  border-bottom: 0;
  background: transparent;
}

.messageSearchBox {
  grid-template-columns: 130px minmax(220px, 1fr);
  align-items: center;
}

.messages {
  min-height: 0;
  padding: 28px 36px;
  background:
    radial-gradient(circle at 14px 14px, rgba(6, 185, 120, 0.04) 0 2px, transparent 3px),
    #f6f9fc;
  background-size: 28px 28px;
}

.message {
  max-width: min(560px, 76%);
  padding: 16px 18px;
  border: 1px solid #e6edf4;
  border-radius: 8px;
  color: var(--pz-ink);
  background: white;
  box-shadow: 0 8px 20px rgba(7, 20, 38, 0.08);
}

.message.me {
  color: white;
  background: #07a66e;
  border-color: #07a66e;
}

.messageBody {
  font-size: 18px;
  line-height: 1.42;
}

.messageTime {
  text-align: right;
  color: inherit;
}

.messageDelete,
.reactionButton {
  min-height: 26px;
  border-radius: 999px;
  font-size: 12px;
}

.reactionRow {
  opacity: 0;
  transition: opacity 0.15s ease;
}

.message:hover .reactionRow,
.message:focus-within .reactionRow {
  opacity: 1;
}

.composer {
  grid-template-columns: 44px 44px 1fr 106px;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  border-top: 1px solid var(--pz-line);
  background: rgba(255, 255, 255, 0.96);
}

.composerInput input {
  min-height: 54px;
  border: 0;
  border-radius: var(--pz-radius);
  background: #eef3f8;
  font-size: 17px;
}

.sendButton {
  min-height: 54px;
  border-radius: var(--pz-radius);
  background: var(--pz-green);
}

.attachButton {
  color: var(--pz-ink);
  background: transparent;
}

.emptyState {
  display: grid;
  place-items: center;
  min-height: 160px;
  color: var(--pz-muted);
  text-align: center;
}

@media (max-width: 900px) {
  .app {
    display: block;
  }

  .messenger {
    width: 100vw;
    height: 100vh;
    min-height: 100vh;
    grid-template-columns: 1fr;
    border-radius: 0;
  }

  .sidebar {
    display: flex;
    min-height: 100vh;
  }

  #logoutButton {
    display: none;
  }

  .messenger.chat-open .sidebar {
    display: none;
  }

  .chat {
    display: none;
    min-height: 100vh;
  }

  .messenger.chat-open .chat {
    display: grid;
  }

  .chat header {
    padding: 0 16px;
    justify-content: flex-start;
    gap: 10px;
  }

  .chatIdentity {
    min-width: 0;
    flex: 1;
  }

  .chatIdentity small {
    font-size: 12px;
  }

  .chatActions {
    margin-left: auto;
    flex-wrap: nowrap;
    gap: 4px;
  }

  .chatActions .iconButton {
    width: 32px;
    min-width: 32px;
    min-height: 32px;
  }

  .backButton {
    display: inline-grid;
  }

  .chatActions .linkButton,
  #notificationButton,
  #refreshButton,
  #statusText {
    display: none;
  }

  .messageSearchBox,
  .messageSearchClear,
  .messageSearchSummary,
  .savedToggle,
  .loadMore {
    margin-left: 16px;
    margin-right: 16px;
  }

  .messageSearchBox,
  .messageSearchClear,
  .messageSearchSummary,
  .savedToggle {
    display: none;
  }

  .messages {
    padding: 20px 16px;
  }

  .message {
    max-width: 86%;
  }

  .reactionRow {
    display: none;
  }

  .messageActions {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding-top: 4px;
    scrollbar-width: thin;
  }

  .message.me .messageActions {
    justify-content: flex-end;
  }

  .messageBodyRow {
    min-width: 0;
  }

  .messageBody {
    overflow-wrap: anywhere;
  }

  .statusReplyReference {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 7px;
    padding: 7px 8px;
    font-size: 0.78rem;
  }

  .statusReplyReferencePreview {
    width: 38px;
    height: 38px;
    border-radius: 7px;
    font-size: 0.62rem;
  }

  .statusReplyReferenceContent {
    gap: 4px;
  }

  .statusReplyReference strong,
  .statusReplyReference small {
    max-width: 100%;
  }

  .statusReplyOpenAction {
    min-height: 28px;
    width: 100%;
    padding: 4px 8px;
    font-size: 0.72rem;
  }

  .composer {
    grid-template-columns: 42px 42px 1fr 74px;
    padding: 12px;
  }

  .attachmentSheet {
    grid-template-columns: repeat(4, minmax(68px, 1fr));
    gap: 8px;
    padding: 12px;
  }

  .attachmentSheetHeader {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .attachmentAction {
    min-height: 72px;
    padding: 7px 4px;
    font-size: 12px;
  }

  .attachmentAction small {
    font-size: 11px;
  }

  .attachmentPreview {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 8px;
    padding: 10px 12px;
  }

  .attachmentPreviewMedia.attachmentQueue {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .attachmentQueueItem {
    grid-template-columns: 52px minmax(0, 1fr);
    align-items: start;
    padding: 8px;
  }

  .attachmentQueuePosition {
    left: 6px;
    top: 6px;
  }

  .attachmentQueueActions {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(44px, 1fr));
    width: 100%;
  }

  .attachmentQueueMove,
  .attachmentQueueRemove {
    width: 100%;
    min-height: 36px;
  }

  .mediaProblemMenu {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .mediaProblemMenu button {
    min-height: 36px;
    padding: 6px 4px;
    font-size: 0.7rem;
  }

  .statusDraftPreview {
    grid-template-columns: 1fr;
  }

  .statusDraftSequence {
    grid-template-columns: 1fr;
  }

  .statusDraftItem {
    border-radius: 8px;
    padding: 6px;
  }

  .statusDraftMedia {
    height: 118px;
  }

  .statusDraftMove,
  .statusDraftRemove {
    width: 34px;
    height: 34px;
  }

  .statusDraftMove.next {
    left: 44px;
  }

  .chatInfoPanel {
    top: 74px;
    right: 10px;
    width: calc(100% - 20px);
    max-height: calc(100% - 150px);
  }

  .chatInfoNav {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .chatInfoNav button {
    padding: 0 2px;
    font-size: 10px;
  }

  .chatInfoGrid {
    grid-template-columns: repeat(2, 1fr);
  }

  .composerInput input {
    padding-right: 12px;
  }

  #characterCounter {
    display: none;
  }
}

/* P346 design alignment from Privazora Design.pdf */
body {
  background: #edf2f7;
}

.app {
  padding: 14px;
}

.messenger {
  width: min(1460px, calc(100vw - 28px));
  height: min(900px, calc(100vh - 28px));
  grid-template-columns: minmax(360px, 430px) minmax(0, 1fr);
  gap: 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.sidebar,
.chat {
  overflow: hidden;
  border: 1px solid #e6edf4;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 46px rgba(7, 20, 38, 0.1);
}

.sidebar {
  border-right: 1px solid #e6edf4;
}

.brand {
  min-height: 106px;
  padding: 24px 24px 12px;
}

.logoMark {
  width: 66px;
  height: 66px;
  flex-basis: 66px;
  border-radius: 8px;
  color: #48d7ee;
  font-size: 20px;
  letter-spacing: 0;
}

.logoMark::after {
  right: 12px;
  bottom: 10px;
  width: 13px;
  height: 13px;
  background: #49cde3;
}

.brandCopy strong {
  font-size: 28px;
}

.brandCopy small {
  max-width: 250px;
  color: #90a1b8;
  font-size: 11px;
}

.userBox {
  display: none;
}

.messenger[data-active-tab="profile"] .userBox {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 9px;
  margin: 0 18px 12px;
  padding: 9px 10px;
  border-radius: 8px;
}

.messenger[data-active-tab="profile"] .userBoxAvatar {
  width: 34px;
  height: 34px;
  font-size: 0.78rem;
}

.messenger[data-active-tab="profile"] .userBoxDetails strong {
  font-size: 13px;
}

.messenger[data-active-tab="profile"] .userBoxDetails small {
  color: #8091a8;
  font-size: 11px;
}

.mobileTabs,
.chatTabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 2px;
  padding: 8px 18px 14px;
  border-top: 1px solid #eaf0f6;
  background: #ffffff;
}

.chatTabs {
  order: 20;
}

.tabButton {
  min-height: 66px;
  padding: 6px 0;
  color: #8ca0b7;
  font-size: 12px;
  font-weight: 800;
  background: transparent;
}

.tabIcon {
  width: 48px;
  height: 38px;
  border-radius: 999px;
}

.tabIcon img,
.iconButton img,
.chatEmptyIcon img,
.sectionEmptyIcon img {
  width: 22px;
  height: 22px;
  display: block;
}

.tabButton.active {
  color: #049765;
}

.tabButton.active .tabIcon {
  background: #e5fff3;
}

.searchBox {
  padding: 8px 24px 12px;
}

.searchBox span {
  font-size: 39px;
  line-height: 1.05;
  letter-spacing: 0;
}

.searchBox input {
  min-height: 58px;
  border-radius: 8px;
  background: #f2f6fa;
  box-shadow: inset 0 0 0 1px #e7eef5;
}

.sidebarTools,
.basicSearchSummary,
.archiveToggle {
  display: none;
}

#conversationList {
  padding: 4px 0;
}

.conversation {
  min-height: 94px;
  padding: 15px 24px;
  border-bottom: 1px solid #edf2f7;
  text-align: left;
}

.conversation::before {
  width: 58px;
  height: 58px;
  background: #20a7c8;
  font-size: 17px;
}

.conversation:nth-child(3n)::before {
  background: #7b61ff;
}

.conversation:nth-child(3n + 1)::before {
  background: #ff7c43;
}

.conversation.active {
  background: #ebfbf5;
}

.conversationTitle {
  color: #111827;
  font-size: 18px;
}

.conversationMeta {
  top: 18px;
  color: #9aacbd;
}

.conversationPreview {
  color: #7c8da3;
}

.unreadBadge {
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: #06b978;
}

.utilityPanel {
  display: none;
  margin: 0 18px 14px;
  border: 1px solid #e6edf4;
  border-radius: 8px;
  background: #fbfdff;
}

.messenger[data-active-tab="profile"] .utilityPanel {
  display: block;
}

.utilityPanel summary {
  padding: 13px 16px;
}

.chat {
  grid-template-rows: 86px auto auto auto auto minmax(0, 1fr) auto auto auto;
  background: #f6f9fd;
}

.chat header {
  height: 86px;
  padding: 0 28px;
  background: #ffffff;
}

.chatAvatar {
  width: 54px;
  height: 54px;
  background: #06b978;
}

#chatTitle {
  font-size: 20px;
}

.chatActions .linkButton,
.messageSearchBox,
.messageSearchClear,
.messageSearchSummary,
.savedToggle {
  display: none;
}

.chatActions {
  gap: 10px;
}

.iconButton {
  width: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 999px;
  background: #f1f5f9;
}

.callButton {
  background: #ffffff;
}

#statusText {
  display: none;
}

.messages {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 30px 36px;
  background: #f6f9fd;
}

.message {
  max-width: min(620px, 74%);
  padding: 13px 16px;
  border: 0;
  border-radius: 8px;
  background: #e9eef3;
  box-shadow: none;
}

.message.me {
  align-self: flex-end;
  background: #087c67;
}

.messageBody {
  font-size: 17px;
}

.reactionRow {
  margin-top: 8px;
}

.messageActions {
  display: none;
}

.message:hover .messageActions,
.message:focus-within .messageActions {
  display: inline-flex;
}

@media (max-width: 760px) {
  .messageActions {
    display: flex;
  }
}

.replyBar {
  margin: 0 28px 10px;
  border-radius: 8px;
}

.composer {
  grid-template-columns: 46px 46px minmax(0, 1fr) 116px;
  padding: 16px 28px;
  background: #ffffff;
}

.composerInput input {
  min-height: 56px;
  border-radius: 8px;
  background: #f3f7fb;
}

.message {
  border: 1px solid rgba(23, 32, 28, 0.06);
  border-radius: 18px 18px 18px 6px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(17, 31, 26, 0.07);
}

.message.me {
  border-color: rgba(8, 124, 103, 0.18);
  border-radius: 18px 18px 6px 18px;
  background: #087c67;
  box-shadow: 0 10px 26px rgba(8, 124, 103, 0.16);
}

.messageBodyRow {
  gap: 8px;
}

.messageActionHelp {
  max-width: min(100%, 420px);
  border-radius: 999px;
  padding: 5px 9px;
  color: #52635b;
  background: #f5f8f6;
}

.message.me .messageActionHelp {
  background: rgba(255, 255, 255, 0.14);
}

.messageTime {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  align-items: center;
  color: #607169;
  opacity: 1;
}

.message.me .messageTime {
  color: rgba(255, 255, 255, 0.82);
}

.messageStatus,
.savedMarker {
  margin-left: 0;
}

.reactionRow {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.reactionRow .reactionButton {
  min-height: 30px;
  border: 1px solid rgba(24, 113, 91, 0.14);
  border-radius: 999px;
  padding: 3px 9px;
  color: #245247;
  background: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 850;
}

.message.me .reactionRow .reactionButton {
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
}

.messageActions .messageDelete {
  min-height: 28px;
  border-radius: 999px;
  padding: 3px 9px;
}

@media (max-width: 760px) {
  .messages {
    gap: 10px;
    padding: 18px 12px;
  }

  .message {
    max-width: min(92%, 620px);
    padding: 11px 12px;
  }

  .messageActionHelp {
    border-radius: 8px;
  }
}

.sendButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 56px;
  border-radius: 8px;
}

.sendButton.hasAttachment {
  background: #0f766e;
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.22);
}

.sendButton img {
  width: 19px;
  height: 19px;
  filter: brightness(0) invert(1);
}

.sectionEmpty,
.chatEmptyPanel {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 14px;
  min-height: 360px;
  padding: 36px 26px;
  color: #6f8096;
  text-align: center;
}

.sectionEmpty strong,
.chatEmptyPanel strong {
  color: #101b2c;
  font-size: 32px;
  line-height: 1.1;
}

.sectionEmpty p,
.chatEmptyPanel p {
  max-width: 520px;
  margin: 0;
  line-height: 1.5;
}

.sectionEmptyAction {
  margin-top: 4px;
}

.emptyStateAction {
  margin-top: 10px;
}

.sectionEmptyIcon,
.chatEmptyIcon {
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e6fff3;
}

.sectionEmptyIcon img,
.chatEmptyIcon img {
  width: 44px;
  height: 44px;
}

@media (max-width: 900px) {
  .app {
    padding: 0;
  }

  .messenger {
    width: 100vw;
    height: 100vh;
    min-height: 100vh;
    grid-template-columns: 1fr;
    gap: 0;
  }

  .sidebar,
  .chat {
    border-radius: 0;
    box-shadow: none;
  }

  .chat {
    grid-template-rows: 76px minmax(0, 1fr) auto auto;
  }

  .chat header {
    height: 76px;
    padding: 0 14px;
  }

  .chatTabs {
    display: grid;
    order: 19;
  }

  .mediaQuickActions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 10px 12px 0;
  }

  .mediaQuickAction {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 4px;
    padding: 8px 6px;
    text-align: center;
  }

  .mediaQuickAction span {
    grid-row: auto;
    width: 34px;
    height: 34px;
  }

  .mediaQuickAction strong {
    font-size: 0.76rem;
  }

  .mediaQuickAction small {
    font-size: 0.66rem;
  }

  .mediaFlowGuide {
    grid-template-columns: 1fr;
  }

  .mediaFlowGuide span {
    padding: 7px 9px;
  }

  .messages {
    padding: 18px 14px;
  }

  .message {
    max-width: 88%;
  }

  .composer {
    grid-template-columns: 44px 44px minmax(0, 1fr) 54px;
    gap: 8px;
    padding: 10px 12px;
  }

  .sendButton span {
    display: none;
  }

  .sendButton {
    min-width: 54px;
    padding: 0;
  }

  .searchBox span {
    font-size: 36px;
  }

  .sectionEmpty,
  .chatEmptyPanel {
    min-height: 300px;
  }
}

/* Design shell polish: aligned with the supplied Privazora mobile mockups. */
.app {
  background:
    radial-gradient(circle at 12% 10%, rgba(0, 178, 122, 0.08), transparent 28%),
    linear-gradient(135deg, #eef4f8 0%, #f8fbfd 42%, #eef5f2 100%);
}

.messenger {
  border-radius: 8px;
  background: #f5f8fb;
}

.logoMark {
  background: #05162b;
  box-shadow: 0 14px 28px rgba(5, 22, 43, 0.16);
}

.brand .iconButton,
.chatActions .iconButton,
.attachButton,
.voiceRecordButton {
  background: #f0f5f9;
  border-color: transparent;
}

.brand .iconButton img,
.chatActions .iconButton img,
.attachButton img,
.voiceRecordButton img {
  filter: none;
}

.mobileTabs,
.chatTabs {
  min-height: 72px;
  border-top: 1px solid #e5edf3;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -10px 24px rgba(13, 28, 46, 0.04);
}

.tabButton {
  color: #74849a;
  font-weight: 800;
}

.tabButton.active {
  color: #05a66b;
}

.tabButton.active .tabIcon {
  background: #e6fff3;
}

.searchBox input,
.composerInput,
.composerInput input {
  border-color: transparent;
  background: #eef3f8;
}

.searchBox input {
  min-height: 58px;
  border-radius: 8px;
  padding-left: 18px;
  font-size: 18px;
}

#conversationList,
#contactList {
  padding-top: 8px;
}

.conversationItem,
.contactItem {
  min-height: 82px;
  border: 0;
  border-bottom: 1px solid #edf2f6;
  border-radius: 0;
  background: transparent;
}

.conversationItem.active,
.conversationItem:hover,
.contactItem:hover {
  background: #ebfbf4;
}

.conversationAvatar,
.contactAvatar,
.chatAvatar,
.userBoxAvatar {
  border-radius: 50%;
  color: #ffffff;
  background: #05a66b;
  box-shadow: none;
}

.conversationMeta strong,
.contactItem strong,
.chatTitleBlock strong {
  color: #071728;
  font-weight: 900;
}

.chat {
  background: #f4f8fb;
}

.chat header {
  border-bottom: 1px solid #e2eaf1;
  background: rgba(255, 255, 255, 0.96);
}

.chatSubtitle,
.chatTitleBlock small {
  color: #05a66b;
  font-weight: 750;
}

.messages {
  background: #f5f8fb;
}

.message {
  border: 0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(15, 30, 46, 0.08);
}

.message.me {
  background: #05a66b;
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(5, 166, 107, 0.22);
}

.message.me .messageTime,
.message.me .messageActionHelp,
.message.me small {
  color: rgba(255, 255, 255, 0.84);
}

.composer {
  align-items: center;
  border-top: 1px solid #e2eaf1;
  background: rgba(255, 255, 255, 0.96);
}

.composerInput {
  min-height: 56px;
  border-radius: 8px;
}

.attachButton,
.voiceRecordButton {
  min-width: 48px;
  min-height: 48px;
  border-radius: 50%;
}

.sendButton {
  min-width: 56px;
  border-radius: 50%;
  background: #05a66b;
}

.sendButton span {
  display: none;
}

.sectionEmpty,
.chatEmptyPanel {
  min-height: 430px;
}

.sectionEmptyIcon,
.chatEmptyIcon {
  width: 84px;
  height: 84px;
  background: transparent;
}

.sectionEmptyIcon img,
.chatEmptyIcon img {
  width: 54px;
  height: 54px;
}

.sectionEmpty strong,
.chatEmptyPanel strong {
  font-size: 34px;
}

.sectionEmpty p,
.chatEmptyPanel p {
  color: #73849a;
  font-size: 19px;
}

.attachmentSheet {
  border-radius: 8px 8px 0 0;
  box-shadow: 0 -18px 42px rgba(7, 23, 40, 0.18);
}

.attachmentAction {
  border-radius: 8px;
}

@media (min-width: 901px) {
  .messenger {
    max-width: 1220px;
    grid-template-columns: minmax(320px, 390px) minmax(0, 1fr);
  }

  .sidebar {
    background: #ffffff;
  }

  .messages {
    padding: 30px 36px;
  }
}

@media (max-width: 900px) {
  .app {
    background: #f5f8fb;
  }

  .messenger {
    border: 0;
    background: #ffffff;
  }

  .brand {
    min-height: 94px;
    padding: 22px 20px 10px;
  }

  .brandCopy strong {
    font-size: 28px;
  }

  .brandCopy small {
    text-transform: uppercase;
    letter-spacing: 0;
    font-size: 11px;
    font-weight: 900;
  }

  .searchBox {
    padding: 18px 20px 12px;
  }

  .searchBox span {
    font-size: 40px;
  }

  .sidebarTools,
  .basicSearchSummary,
  .unreadSummary,
  .unreadToggle,
  .archiveToggle,
  .filterResetAction,
  .utilityPanel {
    margin-left: 20px;
    margin-right: 20px;
  }

  .conversationItem {
    padding: 12px 20px;
  }

  .chat {
    grid-template-rows: 74px minmax(0, 1fr) auto auto auto;
  }

  .mediaQuickActions {
    padding: 8px 12px 0;
  }

  .mediaQuickAction {
    border-radius: 8px;
    background: #f6fafc;
  }

  .composer {
    grid-template-columns: 48px minmax(0, 1fr) 56px;
    padding: 12px 14px;
  }

  .voiceRecordButton {
    display: none;
  }

  .composerInput {
    min-width: 0;
  }

  .messages {
    padding: 22px 14px;
  }

  .message {
    max-width: 84%;
    padding: 14px 16px;
  }
}

/* Mobile chat polish: closer to the supplied messenger reference screens. */
.updateBanner {
  border-radius: 8px;
  border-color: #bfe9da;
  background: #f0fff8;
  box-shadow: 0 10px 26px rgba(5, 166, 107, 0.08);
}

.updateBanner.required {
  border-color: #ffd2c8;
  background: #fff7f4;
}

.updateActions button {
  border-radius: 8px;
}

.brand {
  gap: 14px;
}

.brand .logoMark {
  width: 58px;
  height: 58px;
  border-radius: 8px;
}

.brand .iconButton {
  width: 48px;
  height: 48px;
  margin-left: auto;
  border-radius: 50%;
}

.conversationItem {
  position: relative;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 14px;
}

.conversationItem::after {
  content: "";
  position: absolute;
  right: 20px;
  bottom: 0;
  left: 92px;
  height: 1px;
  background: #edf2f6;
}

.conversationItem.active::after,
.conversationItem:hover::after {
  opacity: 0;
}

.conversationAvatar,
.contactAvatar {
  width: 58px;
  height: 58px;
  font-size: 18px;
}

.conversationMeta {
  gap: 5px;
}

.conversationPreview,
.contactPreview {
  color: #70839b;
  font-size: 15px;
}

.unreadBadge,
.conversationUnread {
  display: inline-grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: #05a66b;
  font-weight: 900;
}

.chat header {
  min-height: 78px;
  padding-inline: 18px;
}

.chatAvatar {
  width: 54px;
  height: 54px;
  font-size: 17px;
}

.chatActions {
  gap: 10px;
}

.chatActions .iconButton {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.messages {
  background:
    linear-gradient(180deg, rgba(244, 248, 251, 0.92), rgba(244, 248, 251, 0.92)),
    radial-gradient(circle at 16px 16px, rgba(5, 166, 107, 0.045) 0 2px, transparent 3px);
  background-size: auto, 28px 28px;
}

.message {
  max-width: min(68%, 620px);
}

.message:not(.me) {
  border-top-left-radius: 4px;
}

.message.me {
  border-top-right-radius: 4px;
}

.composer {
  gap: 12px;
}

.composerInput input::placeholder,
.searchBox input::placeholder {
  color: #98a7b8;
}

.composerMediaHint,
.uploadCheckSummary {
  border-top: 0;
  background: #ffffff;
}

.mediaQuickActions {
  background: rgba(255, 255, 255, 0.96);
}

.mediaQuickAction {
  border-color: #e8eef3;
  box-shadow: none;
}

@media (max-width: 900px) {
  .updateBanner {
    margin: 8px;
    padding: 12px 14px;
  }

  .updateActions {
    width: 100%;
    grid-template-columns: 1fr 1fr;
  }

  .brand {
    align-items: center;
  }

  .brand .logoMark {
    width: 54px;
    height: 54px;
  }

  .mobileTabs,
  .chatTabs {
    position: sticky;
    bottom: 0;
    z-index: 8;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  }

  .tabButton {
    min-height: 54px;
  }

  .tabIcon img {
    width: 22px;
    height: 22px;
  }

  .conversationItem {
    min-height: 86px;
    grid-template-columns: 58px minmax(0, 1fr) auto;
  }

  .conversationItem::after {
    left: 94px;
  }

  .chat header {
    min-height: 74px;
  }

  .chatAvatar {
    width: 48px;
    height: 48px;
  }

  .chatActions .iconButton {
    width: 40px;
    height: 40px;
  }

  .message {
    max-width: 82%;
    border-radius: 8px;
  }

  .message:not(.me) {
    border-top-left-radius: 4px;
  }

  .message.me {
    border-top-right-radius: 4px;
  }

  .composerInput {
    min-height: 54px;
  }

  .sendButton {
    min-width: 54px;
    min-height: 54px;
  }

  .attachButton {
    background: transparent;
  }

  .composerMediaHint {
    display: none;
  }
}

/* Media composer polish: quieter profile, status and attachment flows. */
.statusComposer,
.locationSharePanel,
.profileImagePanel,
.attachmentPreview {
  border: 1px solid #e5edf3;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 30, 46, 0.05);
}

.statusComposer h2,
.locationSharePanel h2,
.profileImagePanel h2 {
  color: #071728;
  font-size: 22px;
  letter-spacing: 0;
}

.statusComposer p,
.locationSharePanel p,
.profileImagePanel p {
  color: #70839b;
}

.mediaFlowGuide {
  gap: 8px;
  margin: 12px 0;
}

.mediaFlowGuide span {
  border: 1px solid #e7eef4;
  border-radius: 8px;
  background: #f7fafc;
  box-shadow: none;
}

.mediaFlowGuide strong {
  color: #071728;
}

.mediaFlowGuide small {
  color: #7a8a9d;
}

.uploadGuidance {
  border: 1px solid #e7eef4;
  border-radius: 8px;
  padding: 10px 12px;
  color: #63788f;
  background: #f8fbfd;
}

.mediaWorkflowCard,
.locationSafetyCard {
  border: 1px solid #cfeee3;
  border-radius: 8px;
  background: #f0fff8;
  box-shadow: none;
}

.mediaWorkflowCard strong,
.locationSafetyCard strong {
  color: #075f43;
}

.mediaActionGrid {
  gap: 10px;
}

.mediaActionButton,
.attachmentAction {
  min-height: 58px;
  border: 1px solid #e4edf3;
  border-radius: 8px;
  color: #122337;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 30, 46, 0.04);
}

.mediaActionButton img,
.attachmentActionIcon img {
  width: 22px;
  height: 22px;
}

.primaryMediaAction,
.mediaActionButton.primaryMediaAction {
  border-color: #05a66b;
  color: #ffffff;
  background: #05a66b;
  box-shadow: 0 12px 24px rgba(5, 166, 107, 0.18);
}

.primaryMediaAction img,
.mediaActionButton.primaryMediaAction img {
  filter: brightness(0) invert(1);
}

.statusDraftPreview,
.profileImageDraftPreview,
.attachmentPreview {
  border-radius: 8px;
  background: #f8fbfd;
}

.statusDraftPreview:not(.hidden),
.profileImageDraftPreview:not(.hidden),
.attachmentPreview:not(.hidden) {
  display: grid;
  gap: 10px;
}

.uploadCheckSummary {
  border: 1px solid #e7eef4;
  border-radius: 8px;
  color: #63788f;
  background: #ffffff;
}

.uploadCheckSummary[data-workflow-state="ready"],
.uploadCheckSummary[data-workflow-state="success"],
.uploadCheckSummary.isReady,
.uploadCheckSummary.isSuccess {
  border-color: #bfe9da;
  color: #075f43;
  background: #f0fff8;
}

.statusComposer textarea,
.statusComposer select {
  min-height: 50px;
  border: 1px solid #e4edf3;
  border-radius: 8px;
  background: #f8fbfd;
}

.statusActionRow .sideAction {
  min-height: 48px;
  border-radius: 8px;
}

.profileImagePanel {
  grid-template-columns: 104px minmax(0, 1fr);
  align-items: start;
}

.profileImagePreview {
  width: 96px;
  height: 96px;
  border: 3px solid #e6fff3;
  box-shadow: 0 12px 24px rgba(5, 166, 107, 0.14);
}

.profileImageStatus {
  border-radius: 8px;
  padding: 9px 11px;
  color: #63788f;
  background: #f8fbfd;
}

.attachmentSheet {
  border: 1px solid #e4edf3;
  background: #ffffff;
}

.attachmentSheetPills span {
  border: 1px solid #d8efe6;
  color: #075f43;
  background: #f0fff8;
}

.attachmentSheetHelp,
.attachmentSheetFooter {
  color: #70839b;
}

.attachmentPreview {
  grid-template-columns: 76px minmax(0, 1fr) auto;
  align-items: center;
}

.attachmentPreviewMedia {
  border-radius: 8px;
  background: #eaf8f2;
}

.attachmentPreviewBadge {
  border-radius: 999px;
}

@media (max-width: 900px) {
  .statusComposer,
  .locationSharePanel,
  .profileImagePanel {
    margin-inline: 12px;
    padding: 14px;
  }

  .mediaFlowGuide {
    grid-template-columns: 1fr;
  }

  .mediaActionGrid {
    grid-template-columns: 1fr;
  }

  .profileImagePanel {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 12px;
  }

  .profileImagePreview {
    width: 76px;
    height: 76px;
  }

  .attachmentPreview {
    grid-template-columns: 62px minmax(0, 1fr);
    margin: 8px 12px;
  }

  .attachmentPreview .linkButton {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .attachmentSheet {
    border-radius: 8px 8px 0 0;
  }
}

/* Contact onboarding polish: phonebook-first messaging flow. */
.phonebookSync {
  border: 1px solid #dfeaf1;
  border-radius: 8px;
  padding: 14px;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(15, 30, 46, 0.05);
}

.phonebookSync h2 {
  color: #071728;
  font-size: 22px;
  letter-spacing: 0;
}

.phonebookSync p {
  color: #70839b;
}

.phonebookRuleCard {
  display: grid;
  gap: 5px;
  margin: 12px 0;
  border: 1px solid #bfe9da;
  border-radius: 8px;
  padding: 12px;
  color: #075f43;
  background: #f0fff8;
}

.phonebookRuleCard strong {
  color: #075f43;
  font-size: 15px;
}

.phonebookRuleCard span {
  color: #3f6b5d;
  line-height: 1.4;
}

.phonebookFlowGuide {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.phonebookFlowGuide span {
  display: grid;
  gap: 3px;
  min-width: 0;
  border: 1px solid #e7eef4;
  border-radius: 8px;
  padding: 10px;
  background: #f8fbfd;
}

.phonebookFlowGuide strong {
  color: #071728;
  font-size: 12px;
}

.phonebookFlowGuide small {
  color: #7a8a9d;
  line-height: 1.35;
}

.phonebookSync textarea,
#contactSearch {
  border: 1px solid #e4edf3;
  border-radius: 8px;
  background: #f8fbfd;
}

.phonebookSync .sideAction {
  min-height: 46px;
  border-radius: 8px;
}

#phonebookImportButton,
#phonebookSyncButton {
  color: #ffffff;
  border-color: #05a66b;
  background: #05a66b;
}

.phonebookConfirm {
  border: 1px solid #bfe9da;
  border-radius: 8px;
  background: #f0fff8;
}

.phonebookConfirmRow {
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.contactItem,
.phoneOnlyContact {
  border: 1px solid #edf2f6;
  border-radius: 8px;
  margin: 8px 0;
  background: #ffffff;
}

.phoneOnlyContact {
  padding: 12px;
}

.phoneOnlyBadge {
  border-radius: 999px;
  color: #075f43;
  background: #e6fff3;
}

.invitePreview,
.inviteHistory,
.inviteTimeline {
  border-radius: 8px;
}

.invitePreview.prepared {
  border-color: #bfe9da;
  background: #f0fff8;
}

.inviteCopyButton {
  min-height: 38px;
  border-radius: 8px;
}

.onboardingChecklist {
  border: 1px solid #dfeaf1;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(15, 30, 46, 0.05);
}

.onboardingStep {
  border-radius: 8px;
}

.onboardingStep.done {
  border-color: #bfe9da;
  background: #f0fff8;
}

@media (max-width: 900px) {
  .phonebookFlowGuide {
    grid-template-columns: 1fr;
  }

  .phonebookSync {
    padding: 12px;
  }

  .contactItem,
  .phoneOnlyContact {
    margin: 8px 0;
  }
}

/* Status story polish: clearer 24h status and privacy presentation. */
.statusStoryGuide {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.statusStoryGuideCard {
  display: grid;
  gap: 5px;
  min-width: 0;
  border: 1px solid #bfe9da;
  border-radius: 8px;
  padding: 12px;
  background: #f0fff8;
}

.statusStoryGuideCard strong {
  color: #075f43;
  font-size: 14px;
}

.statusStoryGuideCard small {
  color: #3f6b5d;
  line-height: 1.4;
}

.statusPrivacySummary,
.statusCleanupSummary,
#statusPostStatus {
  border: 1px solid #e4edf3;
  border-radius: 8px;
  padding: 10px 12px;
  color: #63788f;
  background: #ffffff;
}

.statusCleanupSummary.isFresh {
  border-color: #bfe9da;
  color: #075f43;
  background: #f0fff8;
}

#statusPostList {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.statusPostItem {
  overflow: hidden;
  border: 1px solid #e4edf3;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(15, 30, 46, 0.07);
}

.statusPostItem.isExpiringSoon {
  border-color: #ffd2c8;
  background: #fffaf7;
}

.statusPostHeader {
  padding: 12px;
  border-bottom: 1px solid #eef3f7;
}

.statusPostAvatar {
  width: 48px;
  height: 48px;
  border: 3px solid #e6fff3;
  box-shadow: 0 8px 18px rgba(5, 166, 107, 0.12);
}

.statusMediaAttachment {
  margin: 12px;
}

.statusMediaPreview {
  border-radius: 8px;
}

.statusPostItem > p,
.statusPostItem > small,
.statusPostBadges,
.statusPostActions {
  margin-left: 12px;
  margin-right: 12px;
}

.statusPostBadges {
  gap: 7px;
}

.statusPostBadges span {
  border: 1px solid #d8efe6;
  border-radius: 999px;
  color: #075f43;
  background: #f0fff8;
}

.statusPostActions {
  padding-bottom: 12px;
}

.statusPostActions .sideAction {
  border-radius: 8px;
}

.mainStatusPanel .statusPostItem {
  max-width: 620px;
}

@media (max-width: 900px) {
  .statusStoryGuide {
    grid-template-columns: 1fr;
  }

  .statusPostItem {
    border-radius: 8px;
  }
}













/* Install controls share the existing compact command language on login and profile surfaces. */
.pwaInstallAction {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.pwaInstallAction button,
.pwaInlineInstall {
  min-height: 36px;
  border: 1px solid #18715b;
  border-radius: 6px;
  background: #18715b;
  color: #fff;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0;
  cursor: pointer;
}

.pwaInstallAction button {
  padding: 8px 14px;
}

.pwaInstallAction small {
  color: #5f6b66;
  line-height: 1.35;
}

.pwaInlineInstall {
  width: max-content;
  max-width: 100%;
  margin-top: 5px;
  padding: 5px 9px;
  font-size: 12px;
}

.pwaInstallAction button:focus-visible,
.pwaInlineInstall:focus-visible {
  outline: 3px solid rgba(5, 166, 107, 0.28);
  outline-offset: 2px;
}

@media (max-width: 560px) {
  .pwaInstallAction {
    align-items: stretch;
    flex-direction: column;
  }

  .pwaInstallAction button {
    width: 100%;
  }
}
