/* Group info uses one scrolling page on web, iOS and Android. */
body #messages[data-chat-theme="forest"] {
  background-color: #dce9df !important;
}
body #messages[data-chat-theme="ocean"] {
  background-color: #dce9f1 !important;
}
body #messages[data-chat-theme="midnight"] {
  background-color: #232d42 !important;
}
[data-theme="dark"] body #messages[data-chat-theme="forest"] {
  background-color: #102c24 !important;
}
[data-theme="dark"] body #messages[data-chat-theme="ocean"] {
  background-color: #142c3d !important;
}
.group-profile-page[data-overview="true"]:not(.gp-scrolled) .gp-header h2 {
  opacity: 0;
}
.group-profile-page[data-overview="true"]:not(.gp-scrolled) .gp-header {
  background: transparent;
  border-color: transparent;
  backdrop-filter: none;
  pointer-events: none;
}
.group-profile-page[data-overview="true"]:not(.gp-scrolled) .gp-header button {
  pointer-events: auto;
}
.gp-content > .gp-identity {
  margin-top: -44px;
}
#overlay[data-panel="info"]:has(.group-profile-page) {
  --gp-bg: #f4f4f4;
  --gp-card: #fff;
  --gp-text: #111;
  --gp-muted: #767676;
  --gp-line: #e4e4e4;
  --gp-green: #218c65;
  --gp-red: #e7003c;
  background: var(--gp-bg);
}
html:root.native-mobile
  body
  #overlay[data-panel="info"]:has(.group-profile-page),
body #overlay[data-panel="info"]:has(.group-profile-page) {
  background: var(--gp-bg);
}
body #overlay[data-panel="info"]:has(.group-profile-page) .panel > header {
  display: none !important;
}
body #overlay[data-panel="info"]:has(.group-profile-page) .panel,
body #overlay[data-panel="info"]:has(.group-profile-page) #panel-body,
body #overlay[data-panel="info"]:has(.group-profile-page) .panel-content {
  background: var(--gp-bg) !important;
  color: var(--gp-text);
}
body #overlay[data-panel="info"]:has(.group-profile-page) #panel-body {
  padding: 0 !important;
  overflow-y: auto;
  overscroll-behavior-y: contain;
}
body #overlay[data-panel="info"]:has(.group-profile-page) .panel-content {
  padding: 0 !important;
  overflow: visible !important;
}
.group-profile-page {
  color: var(--gp-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.3;
  min-width: 0;
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
}
.group-profile-page * {
  box-sizing: border-box;
}
.group-profile-page button,
.group-profile-page input,
.group-profile-page select,
.group-profile-page textarea {
  font: inherit;
}
.group-profile-page button {
  cursor: pointer;
  color: inherit;
  border: 0;
  background: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.group-profile-page button:focus-visible,
.group-profile-page a:focus-visible {
  outline: 2px solid var(--gp-green);
  outline-offset: -3px;
}
.group-profile-page button:disabled {
  opacity: 0.38;
  cursor: default;
}
.group-profile-page button[aria-busy="true"] {
  opacity: 0.55;
}
.group-profile-page svg {
  width: 23px;
  height: 23px;
  stroke-width: 1.8;
  flex-shrink: 0;
}
.gp-header {
  position: sticky;
  top: 0;
  z-index: 4;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  background: color-mix(in srgb, var(--gp-bg) 94%, transparent);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid color-mix(in srgb, var(--gp-line) 60%, transparent);
}
.gp-header h2 {
  font-size: 17px;
  text-align: center;
  margin: 0;
  font-weight: 650;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.gp-header button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gp-line);
  border-radius: 50%;
  background: var(--gp-card);
}
.gp-header button:first-child svg {
  width: 29px;
  height: 29px;
}
.gp-header button[hidden] {
  display: none;
}
.gp-identity {
  text-align: center;
  padding: 2px 18px 10px;
}
.gp-avatar {
  display: block;
  width: 86px;
  height: 86px;
  margin: 0 auto 14px;
  border-radius: 50%;
  overflow: hidden !important;
  background: #ddd8ef !important;
  font-size: 31px !important;
  color: #4e4168 !important;
}
.gp-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gp-name {
  font-size: 27px !important;
  line-height: 1.2;
  font-weight: 700 !important;
  max-width: 100%;
  overflow-wrap: anywhere;
  min-height: 44px;
  padding: 0 8px;
}
.gp-meta {
  color: var(--gp-muted);
  margin: 3px 0 7px;
  font-size: 14px;
}
.gp-meta button {
  color: var(--gp-green);
  padding: 5px 0;
  min-height: 32px;
}
.gp-description {
  font-size: 15px !important;
  color: var(--gp-muted) !important;
  min-height: 44px;
  max-width: 100%;
  padding: 5px 10px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.gp-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 9px;
}
.gp-actions button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 24px;
  background: var(--gp-card);
  min-height: 70px;
  font-size: 14px;
  padding: 10px 3px;
}
.gp-actions svg {
  width: 24px;
  height: 24px;
}
.gp-section {
  margin: 23px 33px 8px;
  font-size: 16px;
  font-weight: 600 !important;
  color: var(--gp-muted);
}
.gp-card {
  margin: 0 15px 18px;
  border-radius: 25px;
  background: var(--gp-card);
  overflow: hidden;
}
.gp-card .gp-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 48px;
  padding: 12px 18px;
  text-align: left;
  border-radius: 0;
}
.gp-card .gp-row:not(:last-child)::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 56px;
  right: 16px;
  height: 1px;
  background: var(--gp-line);
}
.gp-card .gp-row.gp-green::after,
.gp-card .gp-row.gp-red::after {
  left: 18px;
}
.gp-label {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.gp-label small {
  display: block;
  font-size: 13px;
  line-height: 1.35;
  color: var(--gp-muted);
  margin-top: 2px;
}
.gp-value {
  color: var(--gp-muted);
  font-size: 15px;
  max-width: 38%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex-shrink: 0;
}
.gp-row > svg:last-child {
  width: 16px;
  height: 20px;
  color: var(--gp-muted);
}
.gp-row.gp-green {
  color: var(--gp-green);
}
.gp-row.gp-red {
  color: var(--gp-red);
}
.gp-green > svg:last-child,
.gp-red > svg:last-child {
  display: none;
}
.gp-switch {
  width: 60px;
  height: 30px;
  border-radius: 30px;
  background: #828285;
  position: relative;
  flex-shrink: 0;
}
.gp-switch::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  background: white;
}
.gp-members-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 26px;
}
.gp-members-heading button {
  color: var(--gp-muted);
  padding: 0;
  font-weight: 600;
  min-height: 40px;
}
.gp-members-heading button:last-child {
  color: var(--gp-text);
  border-radius: 50%;
  background: color-mix(in srgb, var(--gp-line) 45%, transparent);
  width: 32px;
  min-height: 32px;
  display: grid;
  place-items: center;
}
.gp-card .gp-member {
  min-height: 50px;
  padding: 5px 18px;
  gap: 15px;
}
.gp-card .gp-member::after {
  left: 74px;
}
.gp-member-avatar {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  background: #ddd8ef;
  color: #5d4d75;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
}
.gp-member-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gp-member-avatar span {
  font-size: 14px;
}
.gp-member .gp-label small {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.gp-member .gp-value {
  font-size: 13px;
}
.gp-footer {
  margin: 0 33px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--gp-muted);
}
.gp-subpage {
  padding: 10px 0;
}
.gp-subpage .gp-card {
  margin-top: 12px;
}
.gp-notice,
.gp-error,
.gp-empty {
  margin: 15px 24px;
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.gp-notice,
.gp-empty {
  color: var(--gp-muted);
}
.gp-error {
  color: var(--gp-red);
}
.gp-error:empty {
  display: none;
}
.gp-form {
  margin: 12px 15px;
  padding: 18px;
  border-radius: 24px;
  background: var(--gp-card);
}
.gp-form > label {
  display: block;
  margin: 0 0 17px;
  font-size: 14px;
  font-weight: 500;
}
.gp-form input:not([type="radio"]):not([type="checkbox"]),
.gp-form select,
.gp-form textarea {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 11px 12px;
  margin-top: 7px;
  border: 1px solid var(--gp-line);
  border-radius: 10px;
  background: var(--gp-bg);
  color: var(--gp-text);
  outline-color: var(--gp-green);
}
.gp-form textarea {
  min-height: 106px;
  resize: vertical;
}
.gp-form fieldset {
  margin: 0 0 16px;
  padding: 0;
  border: 0;
  min-width: 0;
}
.gp-form legend {
  color: var(--gp-muted);
  margin-bottom: 8px;
  font-size: 14px;
}
.gp-choice {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  border-bottom: 1px solid var(--gp-line);
}
.gp-choice span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.gp-choice input {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  accent-color: var(--gp-green);
}
.gp-primary {
  background: var(--gp-green) !important;
  color: #fff !important;
  min-height: 44px;
  width: 100%;
  border-radius: 12px !important;
  padding: 10px !important;
}
.gp-primary.gp-danger {
  background: var(--gp-red) !important;
}
.gp-search {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 15px 16px;
  padding: 8px 14px;
  background: var(--gp-card);
  border-radius: 13px;
  color: var(--gp-muted);
}
.gp-search input {
  width: 100%;
  min-width: 0;
  min-height: 32px;
  border: 0;
  outline: 0;
  background: none;
  color: var(--gp-text);
}
.gp-search:focus-within {
  outline: 2px solid var(--gp-green);
}
.gp-media-tabs {
  display: flex;
  margin: 5px 15px 16px;
  background: var(--gp-card);
  border-radius: 12px;
}
.gp-media-tabs button {
  flex: 1;
  min-height: 44px;
  font-size: 14px;
}
.gp-media-tabs button:hover,
.gp-media-tabs button.selected {
  color: var(--gp-green);
}
.gp-media-grid {
  margin: 15px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px;
}
.gp-media-grid a {
  aspect-ratio: 1;
  background: var(--gp-card);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.gp-media-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gp-media-grid .gp-empty {
  grid-column: 1/-1;
  text-align: center;
}
.gp-file {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  color: var(--gp-text);
  text-decoration: none;
  border-bottom: 1px solid var(--gp-line);
  min-width: 0;
}
.gp-file span {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.gp-file small {
  display: block;
  color: var(--gp-muted);
  font-size: 12px;
  margin-top: 3px;
}
.gp-link {
  color: var(--gp-green);
}
.gp-message {
  padding: 14px 18px;
  border-bottom: 1px solid var(--gp-line);
  font-size: 14px;
  overflow-wrap: anywhere;
}
.gp-message:last-child,
.gp-file:last-child {
  border-bottom: 0;
}
.gp-message p {
  margin: 6px 0;
  white-space: pre-wrap;
}
.gp-message small {
  color: var(--gp-muted);
}
.gp-member-identity {
  text-align: center;
  padding: 16px;
}
.gp-member-identity .gp-member-avatar {
  width: 80px;
  height: 80px;
  margin: auto;
}
.gp-member-identity p {
  color: var(--gp-muted);
  font-size: 14px;
}
.gp-full-photo {
  display: block;
  max-width: 100%;
  height: auto;
}
@media (max-width: 350px) {
  .gp-actions {
    gap: 6px;
  }
  .gp-identity {
    padding-left: 15px;
    padding-right: 15px;
  }
  .gp-actions button {
    font-size: 13px;
    min-height: 68px;
    border-radius: 20px;
  }
  .gp-card .gp-row {
    padding-left: 15px;
    padding-right: 15px;
    gap: 10px;
    font-size: 15px;
  }
  .gp-value {
    font-size: 13px;
  }
  .gp-name {
    font-size: 25px !important;
  }
}
[data-theme="dark"] #overlay[data-panel="info"]:has(.group-profile-page),
.dark #overlay[data-panel="info"]:has(.group-profile-page) {
  --gp-bg: #0b141a;
  --gp-card: #182229;
  --gp-text: #edf0f2;
  --gp-muted: #9aa8b0;
  --gp-line: #2d3b43;
  --gp-green: #39b78c;
  --gp-red: #ff5c79;
}
