:root {
  --ukm-green: #128c5a;
  --ukm-green-dark: #075e3b;
  --ukm-bg: #ffffff;
  --ukm-border: #edf0ee;
  --ukm-text: #111816;
  --ukm-muted: #68736f;
  --ukm-search: #f0f2f1;
  --ukm-avatar: #e0f3eb;
  --ukm-font: "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  min-height: 100%;
  background: #ffffff;
  color: var(--ukm-text);
  font-family: var(--ukm-font);
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.ukm-app {
  width: 100%;
  min-height: 100vh;
  background: var(--ukm-bg);
  position: relative;
  overflow: hidden;
}

.ukm-screen-hidden {
  display: none;
}

.ukm-hidden {
  display: none !important;
}

.ukm-header {
  padding: 12px 14px 10px;
  background: #ffffff;
  border-bottom: 1px solid #edf0ee;
}

.ukm-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

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

.ukm-brand-logo {
  width: 40px;
  height: 40px;
  min-width: 40px;
  max-width: 40px;
  display: block;
  object-fit: contain;
  border-radius: 8px;
}

.ukm-header h1 {
  margin: 0;
  color: #0b7f43;
  font-size: 20px;
  line-height: 22px;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ukm-menu-btn {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #1f2b26;
  display: grid;
  place-items: center;
  font-size: 24px;
  line-height: 1;
  padding: 0;
  -webkit-appearance: none;
  appearance: none;
}


.ukm-search {
  position: relative;
  height: 42px;
  margin: 0;
  padding: 0;
  display: block;
  background: #f1f3f2;
  border-radius: 21px;
  overflow: hidden;
}

.ukm-search-hidden {

  display: none;
}


.ukm-search .ukm-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 20px;
  height: 20px;
  max-width: 20px;
  max-height: 20px;
  display: block;
  flex: 0 0 20px;
  transform: translateY(-50%);
  color: #68736f;
  pointer-events: none;
}



.ukm-search input {
  width: 100%;
  height: 42px;
  padding: 0 14px 0 44px;
  border: 0;
  outline: 0;
  background: transparent;
  box-shadow: none;
  color: #111816;
  font-size: 15px;
  font-weight: 400;
  line-height: 42px;
  text-align: left;
  -webkit-appearance: none;
  appearance: none;
}

.ukm-search input::placeholder {
  color: #7a8380;
  opacity: 1;
}


.ukm-content {
  padding-bottom: calc(64px + env(safe-area-inset-bottom));
}

.ukm-panel {
  display: none;
}

.ukm-panel-active {
  display: block;
}

.ukm-chat,
.ukm-group-row,
.ukm-employee-row {
  box-sizing: border-box;
  width: 100%;
  min-height: 60px;
  height: 60px;
  padding: 5px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-bottom: 1px solid #edf0ee;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
  overflow: hidden;
  text-align: left;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.ukm-avatar,
.ukm-group-avatar {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  min-width: 44px;
  max-width: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #e0f3eb;
  color: #075e3b;
  font-size: 16px;
  line-height: 1;
  font-weight: 800;
}

.ukm-avatar img,
.ukm-group-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.ukm-chat-main {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.ukm-chat-top,
.ukm-chat-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  gap: 8px;
}

.ukm-chat-top strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: #111816;
  font-size: 15px;
  line-height: 17px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ukm-chat-top span {
  flex: 0 0 auto;
  color: #68736f;
  font-size: 12px;
  line-height: 14px;
  white-space: nowrap;
}

.ukm-chat-bottom p {
  min-width: 0;
  width: 100%;
  margin: 3px 0 0;
  overflow: hidden;
  color: #68736f;
  font-size: 13px;
  line-height: 15px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ukm-chat-bottom b {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 99px;
  background: #128c5a;
  color: #ffffff;
  font-size: 12px;
  line-height: 20px;
  font-weight: 800;
  text-align: center;
}

.ukm-groups-empty {
  min-height: calc(100vh - 160px);
  padding: 58px 24px 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.ukm-groups-art {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 22px;
}

.ukm-groups-art svg {
  width: 220px;
  max-width: 82vw;
  height: auto;
  display: block;
}

.ukm-groups-empty h2 {
  margin: 0 0 10px;
  color: var(--ukm-text);
  font-size: 22px;
  line-height: 1.25;
  font-weight: 800;
}

.ukm-groups-empty p {
  max-width: 310px;
  margin: 0 0 22px;
  color: #5b6470;
  font-size: 16px;
  line-height: 1.42;
}

.ukm-create-group-main {
  width: 100%;
  max-width: 280px;
  height: 46px;
  border: 0;
  border-radius: 24px;
  background: var(--ukm-green);
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
}

.ukm-fab {
  position: fixed;
  right: 18px;
  bottom: calc(68px + env(safe-area-inset-bottom));
  z-index: 20;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 16px;
  background: #128c5a;
  color: #ffffff;
  display: grid;
  place-items: center;
  box-shadow: 0 7px 18px rgba(0, 0, 0, .20);
  font-size: 26px;
  line-height: 1;
  padding: 0;
  -webkit-appearance: none;
  appearance: none;
}

.ukm-fab-hidden {
  display: none;
}

.ukm-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 15;
  height: calc(56px + env(safe-area-inset-bottom));
  min-height: 56px;
  padding: 1px 0 calc(3px + env(safe-area-inset-bottom));
  display: flex;
  background: #ffffff;
  border-top: 1px solid #edf0ee;
}

.ukm-bottom-item {
  flex: 1;
  min-height: 52px;
  padding: 4px 0 2px;
  border: 0;
  background: transparent;
  color: #52605a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
  -webkit-appearance: none;
  appearance: none;
}

.ukm-bottom-icon {
  font-size: 18px;
  line-height: 1;
  margin: 0 0 2px;
}

.ukm-bottom-item-active {
  color: #128c5a;
}

.ukm-create-screen {
  display: none;
  min-height: 100vh;
  background: #ffffff;
}

.ukm-create-screen-open {
  display: block;
}

.ukm-create-header {
  height: 62px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--ukm-border);
  background: #ffffff;
}

.ukm-back-btn {
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: var(--ukm-text);
  font-size: 30px;
  line-height: 1;
  padding: 0;
}

.ukm-create-header h2 {
  margin: 0;
  color: var(--ukm-text);
  font-size: 25px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.ukm-create-body {
  padding: 20px 28px 110px;
}

.ukm-group-photo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 0 24px;
}

.ukm-group-photo {
  position: relative;
  width: 96px;
  height: 96px;
  border: 0;
  border-radius: 28px;
  display: grid;
  place-items: center;
  overflow: visible;
  background: #d9dcde;
  color: #ffffff;
  padding: 0;
}

.ukm-group-photo-placeholder {
  width: 70px;
  height: 52px;
  fill: #ffffff;
  display: block;
}

.ukm-group-photo-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 28px;
  display: block;
  object-fit: cover;
}

.ukm-group-photo-preview[hidden] {
  display: none !important;
}

.ukm-photo-camera {
  position: absolute;
  right: -5px;
  bottom: -5px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ukm-green);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
}

.ukm-photo-camera svg {
  width: 18px;
  height: 18px;
  display: block;
}

.ukm-photo-camera path,
.ukm-photo-camera circle {
  fill: none;
  stroke: #ffffff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ukm-photo-caption {
  margin-top: 10px;
  color: #646b67;
  text-align: center;
  font-size: 15px;
  font-weight: 800;
}

.ukm-file-input {
  display: none;
}

.ukm-create-field {
  position: relative;
  display: block;
  margin-bottom: 24px;
}

.ukm-create-field span {
  position: absolute;
  top: -10px;
  left: 13px;
  z-index: 1;
  padding: 0 6px;
  background: #ffffff;
  color: var(--ukm-text);
  font-size: 14px;
  line-height: 1;
}



.ukm-create-field input {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  border: 2px solid #2fa36b;
  border-radius: 9px;
  outline: 0;
  color: var(--ukm-text);
  background: #ffffff;
  font-size: 17px;
  line-height: 1.3;
}

.ukm-create-field textarea {
  width: 100%;
  border: 2px solid #2fa36b;
  border-radius: 9px;
  outline: 0;
  color: var(--ukm-text);
  background: #ffffff;
  font-size: 17px;
  line-height: 1.3;
  min-height: 112px;
  padding: 16px 14px 14px;
  resize: none;
}



.ukm-create-field small {
  display: block;
  margin-top: 7px;
  color: var(--ukm-muted);
  text-align: right;
  font-size: 13px;
}

.ukm-create-field em {
  font-style: normal;
}

.ukm-next-btn {
  position: fixed;
  right: 26px;
  bottom: calc(28px + env(safe-area-inset-bottom));
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ukm-green);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .22);
  padding: 0;
}

.ukm-next-icon {
  width: 29px;
  height: 29px;
  display: block;
}

.ukm-next-icon path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ukm-avatar-photo {
  overflow: hidden;
  background: #eef3f0;
}

.ukm-avatar-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}


/* APP BOOT NO FLICKER */
.ukm-app-loading {
  visibility: hidden;
}

.ukm-panel[aria-busy="true"] {
  visibility: hidden;
}

/* member select screen */
#member-select-screen {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #ffffff;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  font-family: var(--ukm-font, "Segoe UI", Arial, sans-serif);
}

#member-select-screen.ukm-create-screen-open {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  transform: none !important;
}

#member-select-screen * {
  box-sizing: border-box;
}

#member-select-screen .ukm-create-header {
  min-height: 68px !important;
  padding: 10px 18px 8px !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  background: #ffffff !important;
  border-bottom: 1px solid var(--ukm-border, #ececec) !important;
}

#member-select-screen .ukm-back-btn {
  flex: 0 0 30px !important;
  width: 30px !important;
  height: 30px !important;
  padding: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  color: var(--ukm-text, #111827) !important;
  font-size: 27px !important;
  line-height: 1 !important;
  font-weight: 400 !important;
}

#member-select-screen .ukm-create-header h2 {
  margin: 0 !important;
  padding: 0 !important;
  color: var(--ukm-text, #111827) !important;
  font-size: 22px !important;
  line-height: 1.1 !important;
  font-weight: 800 !important;
  letter-spacing: -0.2px !important;
}

#member-select-screen .ukm-member-subtitle {
  margin-top: 2px !important;
  color: var(--ukm-muted, #6b7280) !important;
  font-size: 13px !important;
  line-height: 1.15 !important;
  font-weight: 500 !important;
}


#member-select-screen .ukm-member-search {
  position: relative !important;
  height: 44px !important;
  margin: 11px 16px 8px !important;
  padding: 0 !important;
  display: block !important;
  border: 0 !important;
  border-radius: 22px !important;
  background: #f1f3f2 !important;
  overflow: hidden !important;
}



#member-select-screen .ukm-member-search .ukm-search-icon {
  position: absolute !important;
  left: 16px !important;
  top: 50% !important;
  width: 20px !important;
  height: 20px !important;
  transform: translateY(-50%) !important;
  color: #6f7874 !important;
  pointer-events: none !important;
}



#member-select-screen .ukm-member-search input {
  width: 100% !important;
  height: 44px !important;
  padding: 0 14px 0 48px !important;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  color: var(--ukm-text, #111827) !important;
  font-size: 15px !important;
  line-height: 44px !important;
  text-align: left !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

#member-select-screen .ukm-member-search input::placeholder {
  color: #7a8380 !important;
  opacity: 1 !important;
}


#member-select-screen .ukm-selected-strip {
  min-height: 36px !important;
  padding: 0 16px 7px !important;
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  overflow-x: auto !important;
  border-bottom: 1px solid var(--ukm-border, #ececec) !important;
  background: #ffffff !important;
}

#member-select-screen .ukm-selected-strip:empty {
  display: none !important;
}

#member-select-screen .ukm-selected-chip {
  flex: 0 0 auto !important;
  max-width: 145px !important;
  padding: 6px 10px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #eef3f0 !important;
  color: var(--ukm-text, #111827) !important;
  font-size: 13px !important;
  line-height: 1.05 !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

#member-select-screen .ukm-members-list {
  display: block !important;
  width: 100% !important;
  padding-bottom: 112px !important;
  background: #ffffff !important;
}

#member-select-screen .ukm-member-row {
  width: 100% !important;
  min-height: 62px !important;
  padding: 7px 18px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--ukm-border, #ececec) !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  text-align: left !important;
  box-shadow: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}

#member-select-screen .ukm-member-row-avatar {
  position: relative !important;
  flex: 0 0 44px !important;
  width: 44px !important;
  height: 44px !important;
  border: 0 !important;
  border-radius: 50% !important;
  display: grid !important;
  place-items: center !important;
  overflow: hidden !important;
  background: #dff2e9 !important;
  color: var(--ukm-green, #11834f) !important;
  font-size: 15px !important;
  line-height: 1 !important;
  font-weight: 800 !important;
}

#member-select-screen .ukm-member-row-avatar img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

#member-select-screen .ukm-member-row-check {
  position: absolute !important;
  right: -1px !important;
  bottom: -1px !important;
  width: 18px !important;
  height: 18px !important;
  border: 2px solid #ffffff !important;
  border-radius: 50% !important;
  display: none !important;
  place-items: center !important;
  background: var(--ukm-green, #11834f) !important;
  color: #ffffff !important;
  font-size: 0 !important;
  line-height: 1 !important;
  font-weight: 900 !important;
}

#member-select-screen .ukm-member-row-selected .ukm-member-row-check {
  display: grid !important;
}

#member-select-screen .ukm-member-row-check::before {
  content: "✓";
  color: #ffffff;
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
}

#member-select-screen .ukm-member-row-main {
  min-width: 0 !important;
  flex: 1 !important;
  display: block !important;
}

#member-select-screen .ukm-member-row-main strong {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--ukm-text, #111827) !important;
  font-size: 17px !important;
  line-height: 1.15 !important;
  font-weight: 800 !important;
  letter-spacing: -0.1px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

#member-select-screen .ukm-member-row-main span {
  display: block !important;
  margin-top: 3px !important;
  padding: 0 !important;
  color: var(--ukm-muted, #6b7280) !important;
  font-size: 13px !important;
  line-height: 1.1 !important;
  font-weight: 500 !important;
}

#member-select-screen .ukm-member-empty {
  padding: 28px 22px !important;
  color: var(--ukm-muted, #6b7280) !important;
  text-align: center !important;
  font-size: 15px !important;
}

#member-select-screen .ukm-next-btn {
  position: fixed !important;
  right: 28px !important;
  bottom: calc(32px + env(safe-area-inset-bottom)) !important;
  width: 60px !important;
  height: 60px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 20px !important;
  display: grid !important;
  place-items: center !important;
  background: var(--ukm-green, #11834f) !important;
  color: #ffffff !important;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22) !important;
  z-index: 120 !important;
}

#member-select-screen .ukm-next-icon {
  width: 30px !important;
  height: 30px !important;
}

/* group chat */

#group-chat-screen {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 150;
  background: #e7ddd0;
  font-family: "Segoe UI", Arial, sans-serif;
}

#group-chat-screen,
.ukm-group-chat-body,
.ukm-message-list,
.ukm-message-row,
.ukm-message-bubble,
.ukm-message-attachments,
.ukm-message-action-bar,
.ukm-reaction-picker,
.ukm-media-preview,
.ukm-media-viewer {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

#group-chat-screen input,
#group-chat-screen textarea,
#group-chat-screen [contenteditable="true"] {
  -webkit-touch-callout: default;
  -webkit-user-select: text;
  user-select: text;
}

#group-chat-screen.ukm-group-chat-open {
  display: flex;
  flex-direction: column;
}

.ukm-group-chat-header {
  min-height: calc(64px + env(safe-area-inset-top));
  padding: calc(7px + env(safe-area-inset-top)) 8px 7px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-bottom: 1px solid rgba(17,24,22,.10);
  box-shadow: 0 1px 2px rgba(17,24,22,.06);
  box-sizing: border-box;
}

.ukm-group-chat-back {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border: 0;
  background: transparent;
  font-size: 0;
  position: relative;
  -webkit-appearance: none;
  appearance: none;
}

.ukm-group-chat-back::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 19px;
  width: 22px;
  height: 2px;
  background: #111816;
}

.ukm-group-chat-back::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 13px;
  width: 12px;
  height: 12px;
  border-left: 2px solid #111816;
  border-bottom: 2px solid #111816;
  transform: rotate(45deg);
}

.ukm-group-chat-avatar {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #dff2e9;
  color: #128c5a;
  font-size: 17px;
  font-weight: 800;
  overflow: hidden;
}

.ukm-group-chat-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.ukm-group-chat-title-wrap {
  flex: 1;
  min-width: 0;
}

.ukm-group-chat-title-wrap h2 {
  margin: 0;
  color: #111816;
  font-size: 20px;
  line-height: 23px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ukm-group-chat-title-wrap div {
  margin-top: 1px;
  color: #66727a;
  font-size: 14.5px;
  line-height: 18px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ukm-group-chat-actions {
  display: flex;
  align-items: center;
  gap: 3px;
  flex: 0 0 auto;
}

.ukm-group-chat-icon,
.ukm-group-chat-menu {
  width: 40px;
  height: 40px;
  border: 0;
  padding: 0;
  background: transparent;
  color: #111816;
  display: grid;
  place-items: center;
  -webkit-appearance: none;
  appearance: none;
}

.ukm-group-chat-icon svg {
  width: 24px;
  height: 24px;
  max-width: 24px;
  max-height: 24px;
  display: block;
  fill: currentColor;
}

.ukm-group-chat-menu {
  font-size: 28px;
  line-height: 1;
}

.ukm-group-chat-members {
  display: none;
}

.ukm-message-action-bar {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 220;
  min-height: calc(64px + env(safe-area-inset-top));
  padding: calc(7px + env(safe-area-inset-top)) 8px 7px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border-bottom: 1px solid rgba(17,24,22,.10);
  box-shadow: 0 1px 2px rgba(17,24,22,.08);
  box-sizing: border-box;
}

.ukm-message-action-back,
.ukm-message-action-btn {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #111816;
  display: grid;
  place-items: center;
  font-size: 23px;
  line-height: 1;
  -webkit-appearance: none;
  appearance: none;
}

.ukm-message-action-btn:active,
.ukm-message-action-back:active {
  background: rgba(17,24,22,.08);
}

.ukm-message-action-count {
  flex: 1;
  color: #111816;
  font-size: 21px;
  line-height: 24px;
  font-weight: 500;
}

.ukm-chat-menu-popover {
  position: fixed;
  right: 8px;
  top: calc(56px + env(safe-area-inset-top));
  z-index: 230;
  width: min(285px, calc(100vw - 20px));
  padding: 8px 0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.22);
  overflow: hidden;
}

.ukm-chat-menu-popover button {
  width: 100%;
  min-height: 48px;
  border: 0;
  padding: 0 22px;
  background: transparent;
  color: #111816;
  font-size: 17px;
  line-height: 22px;
  text-align: left;
  -webkit-appearance: none;
  appearance: none;
}

.ukm-chat-menu-popover button:active {
  background: #f2f4f3;
}

.ukm-group-chat-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 8px 7px calc(78px + env(safe-area-inset-bottom));
  background-color: #e7ddd0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' opacity='.34'%3E%3Cpath d='M22 28h30v22H22zM30 20v8M44 20v8M28 58h18M92 20c12 0 22 10 22 22S104 64 92 64 70 54 70 42 80 20 92 20zM84 39h16M92 31v22M132 28c12 4 20 14 20 27 0 17-14 31-31 31-8 0-15-3-21-8M128 44l22-22M144 22h8v8M27 112c0-12 10-22 22-22s22 10 22 22-10 22-22 22H30l7-8c-6-4-10-8-10-14zM116 108h32M132 92v32M102 142l16 16 34-36M20 158c18-12 36-12 54 0M24 145c13-8 28-8 43 0'/%3E%3Ccircle cx='42' cy='105' r='3'/%3E%3Ccircle cx='55' cy='105' r='3'/%3E%3Cpath d='M39 117c8 7 17 7 25 0'/%3E%3C/g%3E%3C/svg%3E"), linear-gradient(180deg, rgba(255,255,255,.36), rgba(255,255,255,.10));
  background-size: 180px 180px, auto;
  background-position: center top, 0 0;
  box-sizing: border-box;
}

.ukm-message-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ukm-message-date-row {
  display: flex;
  justify-content: center;
  margin: 11px 0 10px;
}

.ukm-message-date-row span {
  padding: 5px 12px;
  border-radius: 13px;
  background: rgba(255,255,255,.82);
  color: #66727a;
  font-size: 12.5px;
  line-height: 15px;
  font-weight: 650;
  box-shadow: 0 1px 2px rgba(0,0,0,.08);
}

.ukm-message-row {
  width: 100%;
  display: flex;
  align-items: flex-start;
  margin: 0 0 4px;
  padding: 0;
  box-sizing: border-box;
}

.ukm-message-row-other {
  justify-content: flex-start;
  gap: 6px;
  padding-right: 34px;
}

.ukm-message-row-mine {
  justify-content: flex-end;
  padding-left: 54px;
}

.ukm-message-row.is-selected {
  border-radius: 12px;
  background: rgba(18,140,90,.16);
}

.ukm-message-row.is-message-search-highlight {
  animation: ukmMessageSearchPulse 1.3s ease-out 1;
}

@keyframes ukmMessageSearchPulse {
  0% { background: rgba(18,140,90,.28); }
  100% { background: transparent; }
}

.ukm-message-bubble {
  position: relative;
  display: inline-block;
  width: fit-content;
  min-width: 42px;
  max-width: 80%;
  padding: 7px 9px 5px;
  border-radius: 12px;
  color: #111816;
  box-shadow: 0 1px 1px rgba(0,0,0,.14);
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-break: normal;
}

.ukm-message-avatar {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  margin: 8px 0 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #dff2e9;
  color: #0b7f43;
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
  box-shadow: 0 1px 2px rgba(0,0,0,.12);
}

.ukm-message-avatar-button {
  width: 30px;
  height: 38px;
  flex: 0 0 30px;
  border: 0;
  padding: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
}

.ukm-message-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.ukm-message-bubble-other {
  margin: 4px 0 0;
  background: #fff;
  border-top-left-radius: 4px;
}

.ukm-message-bubble-mine {
  margin-right: 7px;
  background: #d9fdd3;
  border-top-right-radius: 4px;
}

.ukm-message-bubble-other::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 0;
  border-top: 9px solid #fff;
  border-left: 9px solid transparent;
}

.ukm-message-bubble-mine::after {
  content: "";
  position: absolute;
  right: -7px;
  top: 0;
  border-top: 9px solid #d9fdd3;
  border-right: 9px solid transparent;
}

.ukm-message-author {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  margin: 0 0 3px;
  color: #1f7d55;
  font-size: 14.5px;
  line-height: 17px;
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-appearance: none;
  appearance: none;
}

.ukm-message-bubble-mine .ukm-message-author {
  display: none;
}

.ukm-message-reply-context {
  width: 100%;
  min-width: 168px;
  border: 0;
  margin: 0 0 5px;
  padding: 5px 7px 5px 9px;
  border-left: 3px solid #128c5a;
  border-radius: 8px;
  background: rgba(255,255,255,.56);
  text-align: left;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}

.ukm-message-bubble-other .ukm-message-reply-context {
  background: #f3f4f4;
}

.ukm-message-reply-author,
.ukm-message-reply-text {
  display: block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ukm-message-reply-author {
  color: #128c5a;
  font-size: 13px;
  line-height: 16px;
  font-weight: 600;
}

.ukm-message-reply-text {
  margin-top: 1px;
  color: #667781;
  font-size: 13.5px;
  line-height: 17px;
}

.ukm-message-text {
  display: block;
  margin: 0;
  padding: 0;
  color: #111816;
  font-family: "Segoe UI", "Segoe UI Emoji", "Apple Color Emoji", Arial, sans-serif;
  font-size: 17px;
  line-height: 22px;
  font-weight: 400;
  white-space: pre-wrap;
}

.ukm-message-bubble-has-attachment {
  max-width: 78%;
  padding: 4px 5px 5px;
}

.ukm-message-bubble-has-gallery {
  max-width: 80%;
}

.ukm-message-attachments {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.ukm-message-attachment {
  color: inherit;
  text-decoration: none;
}

.ukm-message-attachment-image,
.ukm-message-image-grid-tile {
  border: 0;
  padding: 0;
  color: inherit;
  -webkit-appearance: none;
  appearance: none;
}

.ukm-message-attachment-image {
  width: min(250px, 66vw);
  min-height: 170px;
  aspect-ratio: 4 / 3;
  display: block;
  overflow: hidden;
  border-radius: 10px;
  background: rgba(0,0,0,.05);
}

.ukm-message-attachment-image img {
  width: 100%;
  height: 100%;
  max-height: 320px;
  display: block;
  object-fit: cover;
}

.ukm-message-image-grid {
  width: min(260px, 70vw);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
  overflow: hidden;
  border-radius: 10px;
  background: rgba(0,0,0,.08);
}

.ukm-message-image-grid-count-2,
.ukm-message-image-grid-count-4,
.ukm-message-image-grid-count-many {
  grid-auto-rows: min(128px, 34vw);
}

.ukm-message-image-grid-count-3 {
  grid-auto-rows: min(84px, 22vw);
}

.ukm-message-image-grid-count-3 .ukm-message-image-grid-tile:first-child {
  grid-row: span 2;
}

.ukm-message-image-grid-tile {
  position: relative;
  min-width: 0;
  min-height: 0;
  display: block;
  overflow: hidden;
  background: #dfe7e2;
}

.ukm-message-image-grid-tile img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.ukm-message-image-grid-more {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,.48);
  color: #fff;
  font-size: 30px;
  line-height: 1;
  font-weight: 750;
}

.ukm-message-attachment-video-wrap {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.ukm-message-attachment-video {
  width: min(260px, 70vw);
  aspect-ratio: 4 / 3;
  max-height: 320px;
  display: block;
  border-radius: 10px;
  background: #111;
  object-fit: cover;
}

.ukm-message-voice {
  width: min(270px, 68vw);
  min-width: 220px;
  height: 54px;
  padding: 7px 9px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
}

.ukm-media-play {
  border: 0;
  border-radius: 50%;
  background: rgba(18,140,90,.13);
  color: #128c5a;
  display: grid;
  place-items: center;
  -webkit-appearance: none;
  appearance: none;
}

.ukm-voice-play {
  width: 36px;
  height: 36px;
  font-size: 17px;
  line-height: 1;
}

.ukm-voice-waveform {
  height: 31px;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 2px;
  overflow: hidden;
}

.ukm-voice-waveform span {
  width: 3px;
  flex: 0 0 3px;
  border-radius: 3px;
  background: rgba(31,94,63,.36);
}

.ukm-voice-waveform span:nth-child(2n) { height: 18px; }
.ukm-voice-waveform span:nth-child(3n) { height: 25px; }
.ukm-voice-waveform span:nth-child(4n) { height: 12px; }
.ukm-voice-waveform span:nth-child(5n) { height: 29px; }
.ukm-voice-waveform span:not(:nth-child(2n)):not(:nth-child(3n)):not(:nth-child(4n)):not(:nth-child(5n)) { height: 15px; }

.ukm-voice-duration {
  color: #667781;
  font-size: 12.5px;
  line-height: 15px;
}

.ukm-message-video-note {
  position: relative;
  width: min(210px, 58vw);
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
  background: #111;
}

.ukm-message-video-note video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 50%;
}

.ukm-video-note-bubble-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 46px;
  height: 46px;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,.38);
  color: #fff;
  font-size: 20px;
  line-height: 1;
}

.ukm-message-bubble-video-note {
  max-width: min(220px, 62vw);
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.ukm-message-bubble-video-note::before,
.ukm-message-bubble-video-note::after {
  display: none;
}

.ukm-message-bubble-video-note .ukm-message-meta {
  position: absolute;
  right: 12px;
  bottom: 9px;
  padding: 2px 6px;
  border-radius: 12px;
  background: rgba(0,0,0,.36);
  color: #fff;
}

.ukm-message-bubble-video-note .ukm-message-status {
  color: #8fd7ff;
}

.ukm-message-attachment-download {
  align-self: flex-start;
  padding: 4px 8px;
  border-radius: 12px;
  background: rgba(17,24,22,.08);
  color: #1f5e3f;
  font-size: 12.5px;
  line-height: 15px;
  text-decoration: none;
}

.ukm-message-attachment-file {
  min-width: 190px;
  max-width: 260px;
  padding: 9px;
  display: flex;
  align-items: center;
  gap: 9px;
  border-radius: 10px;
  background: rgba(17,24,22,.07);
  box-sizing: border-box;
}

.ukm-message-attachment-file-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.68);
  font-size: 18px;
}

.ukm-message-attachment-file-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ukm-message-attachment-file-name {
  overflow: hidden;
  color: #111816;
  font-size: 14.5px;
  line-height: 17px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ukm-message-attachment-file-size {
  color: #667781;
  font-size: 12px;
  line-height: 14px;
}

.ukm-message-caption {
  margin: 5px 4px 0;
}

.ukm-media-preview[hidden],
.ukm-media-viewer[hidden] {
  display: none;
}

.ukm-media-preview {
  position: fixed;
  inset: 0;
  z-index: 260;
  display: flex;
  flex-direction: column;
  background: #101513;
  color: #fff;
}

.ukm-media-preview-header {
  min-height: 64px;
  padding: calc(10px + env(safe-area-inset-top)) 14px 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-sizing: border-box;
}

.ukm-media-preview-close {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  -webkit-appearance: none;
  appearance: none;
}

.ukm-media-preview-header h2 {
  margin: 0;
  font-size: 18px;
  line-height: 22px;
  font-weight: 750;
}

.ukm-media-preview-header p {
  margin: 2px 0 0;
  color: rgba(255,255,255,.68);
  font-size: 13px;
  line-height: 16px;
}

.ukm-media-preview-grid {
  flex: 1 1 auto;
  min-height: 0;
  padding: 6px 10px 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 118px;
  gap: 5px;
  overflow-y: auto;
  box-sizing: border-box;
}

.ukm-media-preview-tile {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #28312d;
}

.ukm-media-preview-tile img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.ukm-media-preview-file {
  height: 100%;
  padding: 12px;
  display: grid;
  place-items: center;
  gap: 8px;
  color: #dbe8e2;
  text-align: center;
  font-size: 26px;
  box-sizing: border-box;
}

.ukm-media-preview-file span {
  max-width: 100%;
  overflow: hidden;
  font-size: 12px;
  line-height: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ukm-media-preview-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,.58);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  -webkit-appearance: none;
  appearance: none;
}

.ukm-media-preview-footer {
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(16,21,19,.98);
  box-sizing: border-box;
}

.ukm-media-preview-footer input {
  flex: 1;
  min-width: 0;
  height: 46px;
  padding: 0 15px;
  border: 0;
  border-radius: 23px;
  outline: 0;
  background: #fff;
  color: #1f2933;
  font-size: 16px;
  -webkit-appearance: none;
  appearance: none;
}

.ukm-media-preview-send {
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #128c5a;
  color: #fff;
  -webkit-appearance: none;
  appearance: none;
}

.ukm-media-preview-send svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ukm-media-preview-send.is-sending svg {
  display: none;
}

.ukm-media-preview-send.is-sending::after {
  content: "";
  width: 22px;
  height: 22px;
  border: 3px solid rgba(255,255,255,.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: ukmMediaSendingSpin .8s linear infinite;
}

@keyframes ukmMediaSendingSpin {
  to { transform: rotate(360deg); }
}

.ukm-media-viewer {
  position: fixed;
  inset: 0;
  z-index: 270;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,.94);
  touch-action: none;
}

.ukm-media-viewer img {
  max-width: 100vw;
  max-height: 100vh;
  display: block;
  object-fit: contain;
  -webkit-user-drag: none;
  user-select: none;
}

.ukm-media-viewer-close,
.ukm-media-viewer-nav {
  border: 0;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.14);
  color: #fff;
  -webkit-appearance: none;
  appearance: none;
}

.ukm-media-viewer-close {
  position: fixed;
  top: calc(12px + env(safe-area-inset-top));
  right: 12px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 30px;
  line-height: 1;
}

.ukm-media-viewer-nav {
  position: fixed;
  top: 50%;
  width: 42px;
  height: 54px;
  border-radius: 18px;
  transform: translateY(-50%);
  font-size: 42px;
  line-height: 1;
}

.ukm-media-viewer-prev {
  left: 10px;
}

.ukm-media-viewer-next {
  right: 10px;
}

.ukm-media-viewer-counter {
  position: fixed;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom));
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  color: #fff;
  font-size: 13px;
  line-height: 16px;
  transform: translateX(-50%);
}

@keyframes ukmEmojiSinglePop {
  0% { transform: scale(.92); opacity: .92; }
  12% { transform: scale(1.08); opacity: 1; }
  24% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.ukm-message-emoji-only {
  min-width: 0;
  padding: 4px 7px 4px;
  border-radius: 15px;
}

.ukm-message-emoji-only .ukm-message-text {
  font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
  transform-origin: center center;
}

.ukm-message-emoji-one .ukm-message-text {
  font-size: 40px;
  line-height: 1.05;
  animation: ukmEmojiSinglePop 4.5s ease-out 1;
}

.ukm-message-emoji-two .ukm-message-text {
  font-size: 35px;
  line-height: 1.05;
}

.ukm-message-emoji-many .ukm-message-text {
  font-size: 28px;
  line-height: 1.1;
}

.ukm-message-emoji-only .ukm-message-meta {
  height: 15px;
  margin: 1px 0 0 8px;
}

.ukm-reaction-picker {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 230;
  transform: translate(-50%, -110%);
  min-height: 46px;
  max-width: calc(100vw - 28px);
  padding: 5px 8px;
  border-radius: 24px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 5px 18px rgba(0,0,0,.18);
}

.ukm-reaction-picker button {
  width: 37px;
  height: 37px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: transparent;
  display: grid;
  place-items: center;
  font-size: 23px;
  line-height: 1;
  -webkit-appearance: none;
  appearance: none;
}

.ukm-reaction-picker button:active {
  background: #eef5f1;
  transform: scale(.96);
}

.ukm-message-meta {
  float: right;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  height: 16px;
  margin: 4px 0 0 10px;
  white-space: nowrap;
}

.ukm-message-time {
  color: #667781;
  font-size: 12.5px;
  line-height: 16px;
  font-weight: 400;
}

.ukm-message-deleted .ukm-message-text {
  color: #667781;
  font-style: italic;
}

.ukm-message-edited,
.ukm-message-star {
  color: #667781;
  font-size: 12px;
  line-height: 16px;
}

.ukm-message-reactions {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin: 4px 0 -2px;
}

.ukm-message-reaction {
  min-width: 28px;
  height: 22px;
  padding: 0 6px;
  border: 1px solid rgba(18,140,90,.16);
  border-radius: 12px;
  background: rgba(255,255,255,.76);
  color: #111816;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 14px;
  line-height: 20px;
  box-shadow: 0 1px 1px rgba(0,0,0,.06);
}

.ukm-message-reaction.is-mine {
  background: #e6f7ef;
  border-color: rgba(18,140,90,.34);
}

.ukm-message-status {
  color: #1d9bd1;
  font-size: 14px;
  line-height: 16px;
  font-weight: 800;
  letter-spacing: 0;
}

.ukm-group-chat-body.ukm-group-chat-body-emoji-open {
  padding-bottom: calc(392px + env(safe-area-inset-bottom));
}

.ukm-emoji-panel[hidden],
.ukm-emoji-grid[hidden] {
  display: none;
}

.ukm-emoji-panel {
  position: fixed;
  left: 8px;
  right: 8px;
  bottom: calc(66px + env(safe-area-inset-bottom));
  z-index: 159;
  height: 314px;
  max-height: calc(100vh - 154px - env(safe-area-inset-bottom));
  padding: 10px 8px 9px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  box-sizing: border-box;
}

.ukm-emoji-tabs {
  flex: 0 0 auto;
  display: flex;
  gap: 5px;
  overflow-x: auto;
  padding: 0 0 9px;
  scrollbar-width: none;
}

.ukm-emoji-tabs::-webkit-scrollbar {
  display: none;
}

.ukm-emoji-tab {
  flex: 0 0 auto;
  height: 32px;
  padding: 0 11px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: #52605a;
  font-size: 13px;
  line-height: 32px;
  font-weight: 700;
  white-space: nowrap;
  -webkit-appearance: none;
  appearance: none;
}

.ukm-emoji-tab.is-active {
  background: #e0f3eb;
  color: #128c5a;
}

.ukm-emoji-groups {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 1px 0 2px;
}

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

.ukm-emoji-option {
  height: 39px;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  display: grid;
  place-items: center;
  font-size: 30px;
  line-height: 1;
  -webkit-appearance: none;
  appearance: none;
}

.ukm-emoji-option:active {
  background: #e0f3eb;
  transform: scale(.94);
}

.ukm-composer-icon.is-active {
  border-radius: 50%;
  background: #e0f3eb;
  color: #128c5a;
}

.ukm-group-chat-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 160;
  min-height: 66px;
  padding: 7px 7px calc(7px + env(safe-area-inset-bottom));
  display: flex;
  align-items: flex-end;
  gap: 7px;
  background: transparent;
  box-sizing: border-box;
  flex-wrap: wrap;
}

.ukm-edit-preview {
  width: 100%;
  min-height: 54px;
  margin: 0 60px 0 0;
  padding: 8px 10px 8px 12px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.14);
  border-left: 4px solid #128c5a;
  display: flex;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
}

.ukm-edit-preview div {
  min-width: 0;
  flex: 1;
}

.ukm-edit-preview strong,
.ukm-edit-preview span {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ukm-edit-preview strong {
  color: #128c5a;
  font-size: 13px;
  line-height: 16px;
}

.ukm-edit-preview span {
  margin-top: 2px;
  color: #667781;
  font-size: 14px;
  line-height: 17px;
}

.ukm-edit-preview button {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #667781;
  font-size: 24px;
  line-height: 1;
}

.ukm-reply-preview {
  width: 100%;
  min-height: 56px;
  margin: 0 60px 0 0;
  padding: 8px 8px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.14);
  display: flex;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
}

.ukm-reply-preview-bar {
  width: 4px;
  align-self: stretch;
  border-radius: 999px;
  background: #128c5a;
}

.ukm-reply-preview-main {
  min-width: 0;
  flex: 1;
}

.ukm-reply-preview strong,
.ukm-reply-preview span {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ukm-reply-preview strong {
  color: #128c5a;
  font-size: 13px;
  line-height: 16px;
  font-weight: 600;
}

.ukm-reply-preview span {
  margin-top: 2px;
  color: #667781;
  font-size: 14px;
  line-height: 17px;
}

.ukm-reply-preview button {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #667781;
  font-size: 24px;
  line-height: 1;
}

.ukm-group-chat-inputbar {
  flex: 1;
  min-width: 0;
  height: 52px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  gap: 3px;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.14);
  box-sizing: border-box;
}

.ukm-group-chat-inputbar input {
  flex: 1;
  min-width: 0;
  height: 50px;
  padding: 0 5px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #1f2933;
  font-size: 18px;
  line-height: 50px;
  -webkit-appearance: none;
  appearance: none;
}

.ukm-group-chat-inputbar input::placeholder {
  color: #7a8380;
}

.ukm-composer-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border: 0;
  padding: 0;
  background: transparent;
  color: #667781;
  display: grid;
  place-items: center;
  -webkit-appearance: none;
  appearance: none;
}

.ukm-composer-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ukm-composer-icon:disabled,
.ukm-group-chat-send:disabled {
  opacity: .48;
}

.ukm-group-chat-send {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border: 0;
  border-radius: 50%;
  background: #128c5a;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 5px rgba(0,0,0,.18);
  -webkit-appearance: none;
  appearance: none;
}

.ukm-group-chat-send svg {
  width: 26px;
  height: 26px;
  max-width: 26px;
  max-height: 26px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ukm-group-chat-send .ukm-send-icon {
  display: none;
}

.ukm-group-chat-send .ukm-mic-icon {
  display: block;
}

.ukm-group-chat-send .ukm-video-note-icon {
  display: none;
}

.ukm-group-chat-send.ukm-group-chat-send-text .ukm-send-icon {
  display: block;
}

.ukm-group-chat-send.ukm-group-chat-send-text .ukm-mic-icon,
.ukm-group-chat-send.ukm-group-chat-send-text .ukm-video-note-icon {
  display: none;
}

.ukm-group-chat-send.ukm-group-chat-action-video-note .ukm-mic-icon {
  display: none;
}

.ukm-group-chat-send.ukm-group-chat-action-video-note .ukm-video-note-icon {
  display: block;
}

.ukm-group-chat-send.ukm-group-chat-action-video-note {
  background: #0f7f62;
}

.ukm-group-chat-send.ukm-group-chat-action-video-note .ukm-video-note-icon circle {
  fill: none;
}

.ukm-group-chat-send.ukm-group-chat-action-video-note .ukm-video-note-icon path {
  fill: none;
}

.ukm-group-chat-send.ukm-group-chat-send-text.ukm-group-chat-action-video-note .ukm-video-note-icon {
  display: none;
}

.ukm-camera-menu[hidden],
.ukm-toast[hidden],
.ukm-voice-recording[hidden],
.ukm-video-note-recorder[hidden],
.ukm-message-action-bar[hidden],
.ukm-chat-menu-popover[hidden],
.ukm-reaction-picker[hidden],
.ukm-reply-preview[hidden],
.ukm-edit-preview[hidden],
.ukm-bottom-sheet[hidden],
.ukm-detail-screen[hidden] {
  display: none;
}

.ukm-camera-menu {
  position: fixed;
  right: 62px;
  bottom: calc(70px + env(safe-area-inset-bottom));
  z-index: 210;
  min-width: 160px;
  padding: 6px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(0,0,0,.18);
}

.ukm-camera-menu button {
  width: 100%;
  height: 38px;
  border: 0;
  padding: 0 12px;
  border-radius: 10px;
  background: transparent;
  color: #1f2933;
  font-size: 15px;
  text-align: left;
  -webkit-appearance: none;
  appearance: none;
}

.ukm-camera-menu button:active {
  background: #eef5f1;
}

.ukm-toast {
  position: fixed;
  left: 50%;
  bottom: calc(86px + env(safe-area-inset-bottom));
  z-index: 240;
  max-width: calc(100% - 34px);
  padding: 9px 13px;
  border-radius: 18px;
  background: rgba(31,41,51,.92);
  color: #fff;
  font-size: 14px;
  line-height: 18px;
  text-align: center;
  transform: translateX(-50%);
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
  box-sizing: border-box;
}

.ukm-bottom-sheet {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: flex-end;
  background: rgba(17,24,22,.34);
}

.ukm-bottom-sheet-panel {
  width: 100%;
  padding: 14px 12px calc(14px + env(safe-area-inset-bottom));
  border-radius: 20px 20px 0 0;
  background: #fff;
  box-shadow: 0 -6px 22px rgba(0,0,0,.18);
  box-sizing: border-box;
}

.ukm-bottom-sheet-panel h2 {
  margin: 0 0 8px;
  color: #111816;
  font-size: 18px;
  line-height: 24px;
  font-weight: 650;
}

.ukm-bottom-sheet-panel button {
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 12px;
  padding: 0 12px;
  background: transparent;
  color: #111816;
  font-size: 16px;
  text-align: left;
}

.ukm-bottom-sheet-panel button:active {
  background: #f2f4f3;
}

.ukm-bottom-sheet-panel button:first-of-type {
  color: #c0263f;
}

.ukm-detail-screen {
  position: fixed;
  inset: 0;
  z-index: 260;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.ukm-detail-header {
  height: 62px;
  min-height: 62px;
  padding: 7px 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(17,24,22,.10);
  box-sizing: border-box;
}

.ukm-detail-header button {
  min-width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #111816;
  font-size: 22px;
}

.ukm-detail-header h2 {
  flex: 1;
  min-width: 0;
  margin: 0;
  color: #111816;
  font-size: 20px;
  line-height: 24px;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ukm-detail-header #group-info-save {
  min-width: auto;
  padding: 0 12px;
  border-radius: 18px;
  color: #128c5a;
  font-size: 15px;
  font-weight: 650;
}

.ukm-search-header {
  gap: 8px;
}

.ukm-chat-search-field {
  flex: 1;
  min-width: 0;
  height: 42px;
  padding: 0 12px;
  border-radius: 21px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f0f2f1;
  box-sizing: border-box;
}

.ukm-chat-search-field svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  fill: none;
  stroke: #667781;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ukm-chat-search-field input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #111816;
  font-size: 16px;
  -webkit-appearance: none;
  appearance: none;
}

.ukm-search-results-meta {
  padding: 2px 16px 10px;
  color: #667781;
  font-size: 13px;
  line-height: 17px;
}

.ukm-search-results {
  display: flex;
  flex-direction: column;
}

.ukm-search-result {
  width: 100%;
  border: 0;
  padding: 10px 16px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: #fff;
  text-align: left;
  border-bottom: 1px solid rgba(17,24,22,.08);
  -webkit-appearance: none;
  appearance: none;
}

.ukm-search-result:active {
  background: #f2f6f4;
}

.ukm-search-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #111816;
  font-size: 14px;
  line-height: 18px;
}

.ukm-search-result-head strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}

.ukm-search-result-head span {
  color: #667781;
  font-size: 12px;
  white-space: nowrap;
}

.ukm-search-result-body {
  color: #34423d;
  font-size: 14px;
  line-height: 18px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ukm-detail-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 0 24px;
  background: #fff;
}

.ukm-group-info-hero,
.ukm-user-profile-hero {
  padding: 8px 20px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.ukm-group-info-avatar,
.ukm-user-profile-avatar {
  width: 124px;
  height: 124px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #dff2e9;
  color: #128c5a;
  font-size: 34px;
  font-weight: 800;
}

.ukm-group-info-avatar img,
.ukm-user-profile-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.ukm-group-info-title-input,
.ukm-group-info-description {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(17,24,22,.12);
  outline: 0;
  background: transparent;
  text-align: center;
  box-sizing: border-box;
}

.ukm-group-info-title-input {
  margin-top: 16px;
  color: #111816;
  font-size: 24px;
  line-height: 30px;
  font-weight: 500;
}

.ukm-group-info-description {
  min-height: 42px;
  margin-top: 8px;
  resize: none;
  color: #667781;
  font-size: 15px;
  line-height: 20px;
}

.ukm-user-profile-hero h2 {
  margin: 14px 0 2px;
  color: #111816;
  font-size: 24px;
  line-height: 30px;
  font-weight: 500;
}

.ukm-user-profile-hero p {
  margin: 0;
  color: #667781;
  font-size: 15px;
  line-height: 20px;
}

.ukm-detail-actions {
  padding: 0 16px 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.ukm-detail-actions button {
  min-height: 54px;
  border: 1px solid rgba(17,24,22,.12);
  border-radius: 16px;
  background: #fff;
  color: #128c5a;
  font-size: 15px;
  font-weight: 600;
}

.ukm-detail-row {
  width: 100%;
  min-height: 56px;
  border: 0;
  border-top: 1px solid rgba(17,24,22,.08);
  padding: 0 18px;
  background: #fff;
  color: #111816;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 17px;
  text-align: left;
}

.ukm-detail-row strong {
  color: #667781;
  font-weight: 400;
}

.ukm-detail-section-title {
  padding: 18px 18px 8px;
  color: #667781;
  font-size: 15px;
  line-height: 18px;
}

.ukm-media-strip {
  padding: 0 16px 12px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
}

.ukm-media-strip:empty {
  display: none;
}

.ukm-media-strip-item {
  width: 82px;
  height: 82px;
  flex: 0 0 82px;
  border-radius: 10px;
  overflow: hidden;
  background: #eef2f0;
  color: #667781;
  display: grid;
  place-items: center;
  font-size: 12px;
  text-align: center;
}

.ukm-media-strip-item img,
.ukm-media-strip-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ukm-profile-list {
  border-top: 1px solid rgba(17,24,22,.08);
}

.ukm-profile-list-item {
  min-height: 62px;
  padding: 9px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #111816;
  box-sizing: border-box;
}

.ukm-profile-list-avatar {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #dff2e9;
  color: #128c5a;
  font-size: 15px;
  font-weight: 800;
}

.ukm-profile-list-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ukm-profile-list-main {
  min-width: 0;
  flex: 1;
}

.ukm-profile-list-title,
.ukm-profile-list-subtitle {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ukm-profile-list-title {
  font-size: 17px;
  line-height: 22px;
}

.ukm-profile-list-subtitle {
  margin-top: 1px;
  color: #667781;
  font-size: 14px;
  line-height: 18px;
}

.ukm-voice-recording {
  position: fixed;
  left: 7px;
  right: 7px;
  bottom: calc(72px + env(safe-area-inset-bottom));
  z-index: 205;
  height: 44px;
  padding: 0 10px;
  display: grid;
  grid-template-columns: 10px auto 1fr auto;
  align-items: center;
  gap: 9px;
  border-radius: 22px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 2px 9px rgba(0,0,0,.16);
  box-sizing: border-box;
}

.ukm-voice-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #e53935;
  animation: ukmVoiceBlink 1s ease-in-out infinite;
}

@keyframes ukmVoiceBlink {
  50% { opacity: .3; }
}

.ukm-voice-recording strong {
  color: #1f2933;
  font-size: 15px;
  line-height: 18px;
}

.ukm-voice-hint {
  min-width: 0;
  color: #667781;
  font-size: 14px;
  line-height: 18px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ukm-voice-recording button {
  height: 30px;
  border: 0;
  padding: 0 10px;
  border-radius: 15px;
  background: #f2f4f3;
  color: #c0392b;
  font-size: 13.5px;
  -webkit-appearance: none;
  appearance: none;
}

.ukm-video-note-recorder {
  position: fixed;
  inset: 0;
  z-index: 280;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 40px 18px calc(28px + env(safe-area-inset-bottom));
  background: rgba(12,18,16,.58);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  box-sizing: border-box;
}

.ukm-video-note-stage {
  position: relative;
  width: min(260px, 72vw);
  aspect-ratio: 1;
  border-radius: 50%;
}

.ukm-video-note-stage video {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  background: #111;
}

.ukm-video-note-ring {
  position: absolute;
  inset: -7px;
  border: 3px solid rgba(18,140,90,.78);
  border-radius: 50%;
  pointer-events: none;
}

.ukm-video-note-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,.42);
  color: #fff;
  font-size: 22px;
  -webkit-appearance: none;
  appearance: none;
}

.ukm-video-note-timer {
  font-size: 18px;
  line-height: 22px;
  font-weight: 700;
}

.ukm-video-note-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 26px;
  background: rgba(255,255,255,.12);
  box-shadow: 0 6px 18px rgba(0,0,0,.2);
}

.ukm-video-note-actions button {
  height: 40px;
  border: 0;
  padding: 0 16px;
  border-radius: 20px;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 15px;
  -webkit-appearance: none;
  appearance: none;
}

.ukm-video-note-actions button:last-child {
  background: #128c5a;
}

.ukm-group-chat-empty {
  margin: 36px auto;
  width: fit-content;
  max-width: calc(100% - 32px);
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,.88);
  color: #68736f;
  font-size: 14px;
  font-weight: 700;
}
