._bar_1clf2_1 {
  height: 32px;
  background: var(--tg-bg-app);
  display: flex;
  align-items: center;
  justify-content: space-between;
  -webkit-app-region: drag;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(0,0,0,0.25);
  user-select: none;
}

/* ── Left: icon + name ─────────────────────────────── */
._appInfo_1clf2_14 {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-left: 10px;
  -webkit-app-region: no-drag;
  pointer-events: none; /* label only, not clickable */
}

._appIcon_1clf2_23 {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex-shrink: 0;
}

._appName_1clf2_30 {
  font-size: 12px;
  font-weight: 500;
  color: var(--tg-text-secondary);
  letter-spacing: 0.02em;
}

/* ── Right: Windows-style buttons ───────────────────── */
._controls_1clf2_38 {
  display: flex;
  height: 100%;
  -webkit-app-region: no-drag;
}

._btn_1clf2_44 {
  width: 46px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--tg-text-secondary);
  outline: none;
  transition: background 0.1s, color 0.1s;
  padding: 0;
  border-radius: 0;
}

._btn_1clf2_44:hover {
  background: rgba(255,255,255,0.08);
  color: var(--tg-text-primary);
}

/* Close button: red on hover */
._btnClose_1clf2_66:hover {
  background: #c42b1c;
  color: #fff;
}
._btnClose_1clf2_66:active {
  background: #b52015;
}

._btnMinimize_1clf2_74:active,
._btnMaximize_1clf2_75:active {
  background: rgba(255,255,255,0.04);
}
._wrap_1k3t1_1 {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  margin: 6px 8px 6px 4px;
  padding: 0 12px;
  height: 36px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  gap: 8px;
  transition: background 0.2s, border-color 0.2s;
}

._wrap_1k3t1_1._focused_1k3t1_16 {
  background: rgba(255,255,255,0.09);
  border-color: rgba(232,93,138,0.4);
}

._icon_1k3t1_21 {
  width: 16px;
  height: 16px;
  color: var(--tg-text-secondary);
  flex-shrink: 0;
}

._input_1k3t1_28 {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--tg-text-primary);
  caret-color: var(--tg-accent);
}

._input_1k3t1_28::placeholder {
  color: var(--tg-text-secondary);
}

._clearBtn_1k3t1_43 {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--tg-text-secondary);
  padding: 2px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: 0.6;
}

._clearBtn_1k3t1_43:hover { opacity: 1; }

._hasValue_1k3t1_59 ._icon_1k3t1_21 { color: var(--tg-accent); opacity: 0.7; }
._avatar_1cz7s_1 {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  position: relative;
  cursor: pointer;
}

._onlineDot_1cz7s_14 {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 11px;
  height: 11px;
  background: var(--tg-online);
  border-radius: 50%;
  border: 2px solid var(--tg-bg-sidebar);
}
._item_1p6jl_1 {
  display: flex;
  align-items: center;
  padding: 7px 10px;
  gap: 10px;
  cursor: pointer;
  border-radius: 12px;
  margin: 1px 4px;
  transition: background 0.12s;
  position: relative;
  user-select: none;
}

._item_1p6jl_1:hover:not(._active_1p6jl_14) {
  background: rgba(255,255,255,0.06);
}

._item_1p6jl_1._active_1p6jl_14 {
  background: rgba(110, 26, 60, 0.45) !important;
  border-left: 3px solid #e85d8a;
  padding-left: 7px; /* compensate for 3px border */
}

._item_1p6jl_1._active_1p6jl_14 ._name_1p6jl_24 {
  color: #fff;
  font-weight: 600;
}

._item_1p6jl_1._active_1p6jl_14 ._time_1p6jl_29,
._item_1p6jl_1._active_1p6jl_14 ._preview_1p6jl_30 {
  color: rgba(255,255,255,0.72);
}

._item_1p6jl_1._active_1p6jl_14 ._badge_1p6jl_34 {
  background: rgba(255,255,255,0.28);
}

._avatarWrap_1p6jl_38 {
  position: relative;
  flex-shrink: 0;
}

._pinIcon_1p6jl_43 {
  position: absolute;
  bottom: -2px;
  right: -2px;
  font-size: 10px;
  filter: grayscale(0.3);
}

._body_1p6jl_51 {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

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

._name_1p6jl_24 {
  font-size: 14px;
  font-weight: 500;
  color: var(--tg-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

._time_1p6jl_29 {
  font-size: 11px;
  color: var(--tg-text-secondary);
  flex-shrink: 0;
}

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

._preview_1p6jl_30 {
  font-size: 13px;
  color: var(--tg-text-preview);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 3px;
}

._checkmarks_1p6jl_100 {
  color: var(--tg-check-sent);
  font-size: 11px;
  flex-shrink: 0;
}

._badge_1p6jl_34 {
  background: var(--tg-unread-badge);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  padding: 0 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

._badge_1p6jl_34._muted_1p6jl_121 {
  background: var(--tg-unread-muted);
}

/* Typing dots */
._typing_1p6jl_126 {
  display: flex;
  align-items: center;
  gap: 2px;
  color: var(--tg-accent);
}

._typing_1p6jl_126 em {
  font-style: normal;
  font-size: 13px;
  margin-left: 2px;
}

._dot_1p6jl_139 {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--tg-accent);
  animation: _typingBounce_1p6jl_1 1.4s ease-in-out infinite;
  display: inline-block;
}
._dot_1p6jl_139:nth-child(2) { animation-delay: 0.2s; }
._dot_1p6jl_139:nth-child(3) { animation-delay: 0.4s; }

@keyframes _typingBounce_1p6jl_1 {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.45; }
  30%            { transform: translateY(-4px); opacity: 1; }
}
/* ── Backdrop ─────────────────────────────────────────── */
._backdrop_7fehj_2 {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
._backdropVisible_7fehj_16 { opacity: 1; }

/* ── Card ─────────────────────────────────────────────── */
._card_7fehj_19 {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden;
  background: linear-gradient(160deg, #0f0a1a 0%, #130d22 40%, #0d0a18 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 24px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04),
    0 40px 80px rgba(0,0,0,0.7),
    0 0 120px rgba(232,93,138,0.08);
  padding: 32px 28px 28px;
  transform: translateY(32px) scale(0.96);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
  opacity: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}
._cardVisible_7fehj_40 {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* ── Stars SVG ────────────────────────────────────────── */
._stars_7fehj_46 {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.5;
  border-radius: 24px;
}

/* ── Close ────────────────────────────────────────────── */
._closeBtn_7fehj_57 {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  z-index: 2;
}
._closeBtn_7fehj_57:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

/* ── Header ───────────────────────────────────────────── */
._header_7fehj_80 {
  text-align: center;
  position: relative;
  z-index: 1;
  margin-bottom: 24px;
}

._logoWrap_7fehj_87 {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
._logoEmoji_7fehj_94 {
  font-size: 48px;
  line-height: 1;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 18px rgba(232,93,138,0.5));
}
._logoRing_7fehj_101 {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid transparent;
  animation: _rotateRing_7fehj_1 4s linear infinite;
}
@keyframes _rotateRing_7fehj_1 {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

._title_7fehj_113 {
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.3px;
  margin: 0 0 6px;
}
._titleGrad_7fehj_120 {
  background: linear-gradient(90deg, #e85d8a, #c084fc, #60a5fa, #4ade80, #fbbf24);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: _gradShift_7fehj_1 4s ease infinite;
}
@keyframes _gradShift_7fehj_1 {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

._subtitle_7fehj_134 {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  line-height: 1.5;
  max-width: 340px;
  margin: 0 auto;
}

/* ── Status card ──────────────────────────────────────── */
._statusCard_7fehj_143 {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 18px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 0 40px var(--tier-glow, rgba(232,93,138,0.1));
}

._ringWrap_7fehj_157 {
  position: relative;
  flex-shrink: 0;
  width: 110px;
  height: 110px;
}
._ring_7fehj_157 { position: absolute; inset: 0; }
._ringCenter_7fehj_164 {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
._tierEmoji_7fehj_171 { font-size: 32px; }

._statusInfo_7fehj_173 { flex: 1; min-width: 0; }

._tierBadge_7fehj_175 {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid;
  margin-bottom: 10px;
  text-transform: uppercase;
}

._msgCount_7fehj_189 {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 6px;
}
._msgNum_7fehj_195 {
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
}
._msgLabel_7fehj_200 {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

._toNext_7fehj_205 {
  font-size: 12.5px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 6px;
}
._tierDesc_7fehj_210 {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  font-style: italic;
  line-height: 1.4;
}

/* ── Tier ladder ──────────────────────────────────────── */
._tierRow_7fehj_218 {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}
._tierChip_7fehj_226 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 10px 6px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  transition: all 0.2s;
  opacity: 0.4;
}
._tierChipUnlocked_7fehj_238 { opacity: 0.75; }
._tierChipActive_7fehj_239   { opacity: 1; transform: translateY(-2px); }
._tierChipEmoji_7fehj_240 { font-size: 20px; }
._tierChipLabel_7fehj_241 {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.04em;
}
._tierChipMin_7fehj_247 {
  font-size: 9px;
  color: rgba(255,255,255,0.3);
}

/* ── Progress bar ─────────────────────────────────────── */
._barWrap_7fehj_253 {
  position: relative;
  z-index: 1;
  margin-bottom: 24px;
}
._barTrack_7fehj_258 {
  height: 8px;
  background: rgba(255,255,255,0.06);
  border-radius: 8px;
  position: relative;
  overflow: visible;
  margin-bottom: 8px;
}
._barFill_7fehj_266 {
  height: 100%;
  border-radius: 8px;
  background: linear-gradient(90deg, #4ade80, #60a5fa, #c084fc, #fbbf24);
  background-size: 200% 100%;
  animation: _barShimmer_7fehj_1 3s linear infinite;
  transition: width 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}
._barFill_7fehj_266::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translate(50%, -50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px rgba(255,255,255,0.8), 0 0 20px rgba(251,191,36,0.6);
}
@keyframes _barShimmer_7fehj_1 {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

._barMilestone_7fehj_292 {
  position: absolute;
  top: 50%;
  transform: translateX(-50%) translateY(-50%);
  width: 2px;
  height: 14px;
  background: var(--mc);
  border-radius: 1px;
  opacity: 0.5;
}

._barLabels_7fehj_303 {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.04em;
}

/* ── Perks ────────────────────────────────────────────── */
._perksSection_7fehj_312 {
  position: relative;
  z-index: 1;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 16px;
}
._perksTitle_7fehj_321 {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
._perksList_7fehj_330 { display: flex; flex-direction: column; gap: 8px; }
._perkRow_7fehj_331 { display: flex; align-items: center; gap: 10px; }
._perkCheck_7fehj_332 { font-size: 14px; flex-shrink: 0; width: 18px; text-align: center; }
._perkText_7fehj_333 { font-size: 13px; color: rgba(255,255,255,0.65); }

/* ── Footer ───────────────────────────────────────────── */
._footer_7fehj_336 {
  position: relative;
  z-index: 1;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.25);
  padding-top: 4px;
}
/* ─── Overlay ───────────────────────────────────────────── */
._overlay_6744a_2 {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  z-index: 300;
  pointer-events: none;
  transition: background 0.25s ease;
}

._overlayVisible_6744a_11 {
  background: rgba(0, 0, 0, 0.45);
  pointer-events: auto;
}

/* ─── Slide panel ────────────────────────────────────────── */
._panel_6744a_17 {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 280px;
  background: #130f1f;
  z-index: 400;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 4px 0 32px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

._panelOpen_6744a_33 {
  transform: translateX(0);
}

/* ─── Account header ─────────────────────────────────────── */
._accountHeader_6744a_38 {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 16px 16px;
  background: linear-gradient(160deg, #1e1230 0%, #130f1f 100%);
  border-bottom: 1px solid rgba(232, 93, 138, 0.12);
  flex-shrink: 0;
}

._accountAvatar_6744a_48 {
  flex-shrink: 0;
}

._accountInfo_6744a_52 {
  flex: 1;
  min-width: 0;
}

._accountName_6744a_57 {
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

._accountUsername_6744a_66 {
  font-size: 12.5px;
  color: var(--tg-accent);
  margin-top: 2px;
}

._accountUid_6744a_72 {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 2px;
  font-family: monospace;
}

._closeBtn_6744a_79 {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}

._closeBtn_6744a_79:hover {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
}

/* ─── Nav items ─────────────────────────────────────────── */
._nav_6744a_99 {
  flex: 1;
  padding: 8px 0;
  overflow-y: auto;
}

._navItem_6744a_105 {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  padding: 13px 20px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14.5px;
  text-align: left;
  transition: background 0.12s;
  border-radius: 0;
}

._navItem_6744a_105:hover {
  background: rgba(232, 93, 138, 0.1);
  color: rgba(255, 255, 255, 0.95);
}

._navIcon_6744a_126 {
  color: rgba(255, 255, 255, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 22px;
  transition: color 0.12s;
}

._navItem_6744a_105:hover ._navIcon_6744a_126 {
  color: var(--tg-accent);
}

._navLabel_6744a_140 {
  flex: 1;
}

/* ─── Rewards item ───────────────────────────────────────── */
._rewardsItem_6744a_145 {
  position: relative;
  overflow: hidden;
  background: rgba(251, 191, 36, 0.05);
  border: 1px solid rgba(251, 191, 36, 0.15);
  border-radius: 10px;
  margin: 2px 0;
}
._rewardsItem_6744a_145:hover {
  background: rgba(251, 191, 36, 0.1);
  border-color: rgba(251, 191, 36, 0.3);
}

/* The 1-px rainbow sweep */
._rainbowShine_6744a_159 {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 1.5px;
  background: linear-gradient(180deg,
    transparent 0%,
    #60a5fa 15%,
    #c084fc 30%,
    #e85d8a 50%,
    #fbbf24 70%,
    #4ade80 85%,
    transparent 100%
  );
  border-radius: 1px;
  opacity: 0;
  animation: _rainbowSweep_6744a_1 1s ease-in-out infinite;
  pointer-events: none;
}
@keyframes _rainbowSweep_6744a_1 {
  0%    { left: -2px; opacity: 0; }
  5%    { opacity: 0.9; }
  90%   { opacity: 0.8; }
  95%   { left: calc(100% + 2px); opacity: 0; }
  100%  { left: calc(100% + 2px); opacity: 0; }
}

._rewardsBadge_6744a_187 {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(90deg, #fbbf24, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex-shrink: 0;
  opacity: 0.8;
}

._divider_6744a_200 {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 6px 0;
}

/* ─── Night mode toggle row ─────────────────────────────── */
._nightRow_6744a_207 {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 13px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

._nightLabel_6744a_216 {
  flex: 1;
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.8);
}

/* Toggle pill */
._toggle_6744a_223 {
  position: relative;
  width: 46px;
  height: 26px;
  border-radius: 13px;
  border: none;
  cursor: pointer;
  transition: background 0.22s;
  flex-shrink: 0;
  padding: 0;
}

._toggleOn_6744a_235 {
  background: var(--tg-accent);
}

._toggleOff_6744a_239 {
  background: rgba(255, 255, 255, 0.18);
}

._toggleThumb_6744a_243 {
  position: absolute;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: left 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 4px rgba(0,0,0,0.35);
}

._toggleOn_6744a_235 ._toggleThumb_6744a_243 {
  left: 23px;
}

._toggleOff_6744a_239 ._toggleThumb_6744a_243 {
  left: 3px;
}

/* ─── Version footer ─────────────────────────────────────── */
._version_6744a_263 {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.2);
  text-align: center;
  padding: 10px 16px 16px;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

/* ─── Identity switcher ──────────────────────────────────── */
._sectionLabel_6744a_273 {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.25);
  padding: 6px 20px 4px;
}

._identityList_6744a_281 {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 8px;
}

._identityRow_6744a_288 {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 7px 12px;
  background: none;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  color: var(--tg-text-primary);
  transition: background 0.15s, border-color 0.15s;
  text-align: left;
}
._identityRow_6744a_288:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
}
._identityRowActive_6744a_306 {
  background: rgba(232, 93, 138, 0.08);
  border-color: rgba(232, 93, 138, 0.2);
  cursor: default;
}

._identityAvatar_6744a_312 {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
}

._identityInfo_6744a_325 {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
._identityName_6744a_332 {
  font-size: 13px;
  font-weight: 500;
  color: var(--tg-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
._identityKey_6744a_340 {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.28);
  font-family: monospace;
}

._activeBadge_6744a_346 {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--tg-accent);
  background: rgba(232, 93, 138, 0.15);
  border: 1px solid rgba(232, 93, 138, 0.3);
  padding: 2px 7px;
  border-radius: 20px;
  flex-shrink: 0;
}

._idMsg_6744a_359 {
  font-size: 11.5px;
  color: #4ade80;
  padding: 4px 20px 0;
}

._createForm_6744a_365 {
  padding: 6px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
._createInput_6744a_371 {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--tg-text-primary);
  outline: none;
  font-family: var(--font-ui);
}
._createInput_6744a_371:focus {
  border-color: rgba(232, 93, 138, 0.45);
}
._createActions_6744a_385 { display: flex; gap: 6px; }
._createConfirm_6744a_386 {
  flex: 1;
  padding: 7px;
  background: var(--tg-accent);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}
._createConfirm_6744a_386:disabled { opacity: 0.4; cursor: default; }
._createCancel_6744a_399 {
  padding: 7px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  cursor: pointer;
}

._createIdBtn_6744a_409 {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin: 4px 8px 0;
  width: calc(100% - 16px);
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 12px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  text-align: left;
}
._createIdBtn_6744a_409:hover:not(:disabled) {
  background: rgba(232, 93, 138, 0.08);
  border-color: rgba(232, 93, 138, 0.25);
  color: var(--tg-accent);
}
._createIdBtn_6744a_409:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
._idCount_6744a_435 {
  margin-left: auto;
  font-size: 10px;
  opacity: 0.5;
}
._sidebar_yllnf_1 {
  width: 280px;
  min-width: 280px;
  height: 100%;
  background: var(--tg-bg-sidebar);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-right: 1px solid rgba(0,0,0,0.25);
}

._sidebarHeader_yllnf_12 {
  height: 56px;
  display: flex;
  align-items: center;
  padding: 4px 4px 0 4px;
  border-bottom: 1px solid var(--tg-border);
  flex-shrink: 0;
}

._menuBtn_yllnf_21 {
  background: none;
  border: none;
  color: var(--tg-text-secondary);
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  flex-shrink: 0;
}

._menuBtn_yllnf_21:hover {
  background: var(--tg-bg-hover);
  color: var(--tg-text-primary);
}

._chatList_yllnf_40 {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: 8px;
  margin-top: 4px;
}

._sectionDivider_yllnf_48 {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.25);
  padding: 12px 16px 4px;
}

._userResult_yllnf_56 {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 12px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--tg-text-primary);
  transition: background 0.15s;
  text-align: left;
  border-radius: 8px;
  margin: 1px 4px;
  width: calc(100% - 8px);
}
._userResult_yllnf_56:hover {
  background: rgba(232, 93, 138, 0.1);
}

._userResultAvatar_yllnf_76 {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a4a6e, #2a5a8e);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
}

._userResultInfo_yllnf_90 {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
._userResultName_yllnf_97 {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
._userResultHandle_yllnf_104 {
  font-size: 12px;
  color: var(--tg-accent);
  opacity: 0.8;
}

._userResultAction_yllnf_110 {
  font-size: 11px;
  color: rgba(232, 93, 138, 0.6);
  flex-shrink: 0;
  font-weight: 500;
}

._noResults_yllnf_117 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  color: var(--tg-text-secondary);
  gap: 12px;
  font-size: 13px;
  text-align: center;
  opacity: 0.6;
}

._statusBanner_yllnf_130 {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 16px;
  background: rgba(240,165,0,0.12);
  font-size: 11.5px;
  color: #f0a500;
  border-bottom: 1px solid rgba(240,165,0,0.2);
}

._statusDot_yllnf_141 {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f0a500;
  flex-shrink: 0;
  animation: _blink_yllnf_1 1.2s ease-in-out infinite;
}

@keyframes _blink_yllnf_1 {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}
._header_t6gbe_1 {
  height: 56px;
  background: var(--tg-bg-header);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  box-shadow: 0 1px 12px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  padding: 0 14px 0 16px;
  gap: 10px;
  flex-shrink: 0;
  z-index: 10;
}

._infoArea_t6gbe_14 {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  border-radius: 8px;
  padding: 4px 6px;
  margin: 0 -6px;
  transition: background 0.15s;
  min-width: 0;
}

._infoArea_t6gbe_14:hover {
  background: rgba(255, 255, 255, 0.05);
}

._info_t6gbe_14 {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

._name_t6gbe_39 {
  font-size: 15px;
  font-weight: 600;
  color: var(--tg-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

._subtitle_t6gbe_48 {
  font-size: 12px;
  color: var(--tg-text-secondary);
}

._online_t6gbe_53 {
  color: var(--tg-online);
}

._onlineText_t6gbe_57 {
  color: var(--tg-online);
}

._actions_t6gbe_61 {
  display: flex;
  gap: 2px;
}

._actionBtn_t6gbe_66 {
  background: none;
  border: none;
  color: var(--tg-text-secondary);
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}

._actionBtn_t6gbe_66:hover {
  background: var(--tg-bg-hover);
  color: var(--tg-text-primary);
}

._backBtn_t6gbe_84 {
  display: none;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--tg-text-secondary);
  border-radius: 50%;
  flex-shrink: 0;
  transition: background 0.15s;
  margin-right: 4px;
}
._backBtn_t6gbe_84:hover { background: rgba(255,255,255,0.08); }
@media (max-width: 768px) {
  ._backBtn_t6gbe_84 { display: flex; }
}

._actionBtnActive_t6gbe_104 {
  color: var(--tg-accent) !important;
  background: rgba(232,93,138,0.12) !important;
}

._moreMenu_t6gbe_109 {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background: #1e1529;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 4px;
  min-width: 180px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  z-index: 200;
}

._moreItem_t6gbe_122 {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  padding: 9px 12px;
  color: var(--tg-text-primary);
  font-size: 13.5px;
  border-radius: 7px;
  text-align: left;
  white-space: nowrap;
  transition: background 0.12s;
}

._moreItem_t6gbe_122:hover { background: rgba(255,255,255,0.08); }

._moreItemIcon_t6gbe_141 { font-size: 15px; flex-shrink: 0; }

._offlineDot_t6gbe_143 {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f0a500;
  flex-shrink: 0;
  animation: _pulse_t6gbe_1 1.5s ease-in-out infinite;
}

@keyframes _pulse_t6gbe_1 {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
/* ─── ROW WRAPPERS ─────────────────────────────────────────── */
._rowReceived_1pbgk_2 {
  display: flex;
  align-items: flex-end;
  align-self: flex-start;
  width: 100%;
  gap: 6px;
  margin-bottom: 1px;
  padding: 0 8px 0 8px;
  overflow: visible;
}

._rowSent_1pbgk_13 {
  display: flex;
  justify-content: flex-end;
  align-self: flex-end;
  width: 100%;
  margin-bottom: 1px;
  padding: 0 8px 0 8px;
  overflow: visible;
}

._rowChannel_1pbgk_23 {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 3px;
  padding: 0 16px;
}

._avatarCol_1pbgk_30 {
  flex-shrink: 0;
  display: flex;
  align-items: flex-end;
  width: 38px;   /* avatar(32) + 6px gap */
  overflow: visible;
}

/* ─── BASE BUBBLE ──────────────────────────────────────────── */
._bubble_1pbgk_39 {
  padding: 6px 10px 5px 10px;
  position: relative;
  word-break: break-word;
  white-space: pre-wrap;
  line-height: 1.45;
  overflow: visible;  /* critical: allows SVG tail to extend outside */
}

._channel_1pbgk_48 {
  max-width: 85%;
  background: var(--tg-bg-received);
  border-radius: 12px 12px 12px 12px;
}

/* ─── RECEIVED ─────────────────────────────────────────────── */
._received_1pbgk_55 {
  background: var(--tg-bg-received);
  border-radius: 6px 16px 16px 16px;
  color: var(--tg-text-primary);
  max-width: min(480px, 60%);
  box-shadow: 0 2px 12px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.07);
  overflow: visible;
}

/* Note: tails are now rendered as absolute SVGs inside the bubble div */

/* ─── RECEIVED TAIL (last in a consecutive group) ──────────── */
._received_1pbgk_55._tail_1pbgk_67 {
  border-radius: 6px 16px 16px 2px;   /* very small bottom-left where tail attaches */
}

/* Non-tail (middle/top of sequence) */
._received_1pbgk_55:not(._tail_1pbgk_67) {
  border-radius: 4px 16px 16px 4px;
}

/* ─── SENT ─────────────────────────────────────────────────── */
._sent_1pbgk_77 {
  background: linear-gradient(135deg, #7c3a6e 0%, #6e3462 100%);
  border-radius: 16px 6px 16px 16px;
  color: rgba(255,255,255,0.95);
  max-width: min(480px, 60%);
  box-shadow: 0 2px 12px rgba(100,20,80,0.5), 0 0 0 1px rgba(255,255,255,0.07);
  overflow: visible;
}

/* ─── SENT TAIL (last in outgoing group) ───────────────────── */
._sent_1pbgk_77._sentTail_1pbgk_87 {
  border-radius: 16px 6px 2px 16px;   /* very small bottom-right where tail attaches */
}

/* Non-tail */
._sent_1pbgk_77:not(._sentTail_1pbgk_87) {
  border-radius: 16px 4px 4px 16px;
}

/* ─── SENDER NAME (group chat) ─────────────────────────────── */
._senderName_1pbgk_97 {
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 2px;
  line-height: 1.2;
}

._senderNameClickable_1pbgk_104 {
  cursor: pointer;
  transition: opacity 0.12s;
  display: block;
}

._senderNameClickable_1pbgk_104:hover {
  opacity: 0.75;
  text-decoration: underline;
}

/* ─── TEXT ─────────────────────────────────────────────────── */
._text_1pbgk_116 {
  font-size: 14.5px;
  font-weight: 400;
  color: var(--tg-text-primary);
  display: inline;
  word-break: break-word;
  letter-spacing: 0.01em;
}

/* ─── META (timestamp + checks) ───────────────────────────── */
/* Telegram inline-float pattern:
   Float right so short messages share the same last line as text,
   long messages push meta to bottom-right naturally.
   The meta comes AFTER text in DOM (correct for end-of-flow float). */
._meta_1pbgk_130 {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  float: right;
  margin-left: 6px;      /* gap between text content and timestamp */
  line-height: 1;
  height: 16px;          /* fix height so it aligns at text bottom */
  position: relative;
  top: 3px;              /* nudge to align with text descender line */
}

._timestamp_1pbgk_142 {
  font-size: 11px;
  font-weight: 400;
  color: var(--tg-ts-received);
  white-space: nowrap;
  letter-spacing: 0;
}

._timestampSent_1pbgk_150 {
  color: var(--tg-ts-sent);
}

._check_1pbgk_154 {
  font-size: 11px;
  line-height: 1;
}

._checkSent_1pbgk_159 {
  color: var(--tg-check-sent);
}

._checkRead_1pbgk_163 {
  color: var(--tg-check-read);
}

._editedLabel_1pbgk_167 {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.45);
  font-style: italic;
  letter-spacing: 0.02em;
  margin-right: 2px;
}

._views_1pbgk_175 {
  font-size: 11px;
  color: var(--tg-ts-received);
  display: flex;
  align-items: center;
  gap: 2px;
}

/* ── Media ─────────────────────────────────────────── */
._mediaWrap_1pbgk_184 {
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

._mediaImg_1pbgk_191 {
  max-width: 260px;
  max-height: 320px;
  width: auto;
  height: auto;
  border-radius: 8px;
  display: block;
  object-fit: cover;
}

._mediaCaption_1pbgk_201 {
  font-size: 11px;
  opacity: 0.6;
  word-break: break-all;
}

/* ── File attachment ────────────────────────────────── */
._fileBubble_1pbgk_208 {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 2px 0;
  min-width: 180px;
  max-width: 260px;
}

._fileBubble_1pbgk_208:hover ._fileIcon_1pbgk_218 {
  opacity: 0.8;
}

._fileIcon_1pbgk_218 {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.12);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.75);
  flex-shrink: 0;
  letter-spacing: -0.02em;
}

._fileInfo_1pbgk_237 {
  flex: 1;
  min-width: 0;
}

._fileName_1pbgk_242 {
  font-size: 13px;
  font-weight: 500;
  color: var(--tg-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

._fileSize_1pbgk_251 {
  font-size: 11px;
  color: var(--tg-text-secondary);
  margin-top: 2px;
}

._fileDownloadIcon_1pbgk_257 {
  color: var(--tg-text-secondary);
  flex-shrink: 0;
  opacity: 0.6;
}

/* ── Quote block (reply preview inside bubble) ──────────── */
._quoteBlock_1pbgk_264 {
  display: flex;
  align-items: stretch;
  gap: 8px;
  background: rgba(0, 0, 0, 0.18);
  border-radius: 6px;
  padding: 5px 8px 5px 0;
  margin-bottom: 5px;
  overflow: hidden;
  cursor: pointer;
  transition: background 0.12s;
  min-width: 0;
  max-width: 100%;
}

._quoteBlock_1pbgk_264:hover {
  background: rgba(0, 0, 0, 0.28);
}

/* The colored left accent bar */
._quoteBar_1pbgk_284 {
  width: 3px;
  border-radius: 2px;
  background: var(--quote-accent, rgba(255,255,255,0.7));
  flex-shrink: 0;
  align-self: stretch;
  margin-left: 0;
}

._quoteContent_1pbgk_293 {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding-left: 2px;
}

._quoteSender_1pbgk_302 {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  /* color set inline via --quote-accent */
}

._quoteText_1pbgk_312 {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 260px;
}

._quoteThumb_1pbgk_322 {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
  align-self: center;
}
._list_16ml7_1 {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  /* Strawberry marble dark background */
  background-color: var(--sv-bg-chat);
  background-image:
    /* Marble veins — subtle diagonal streaks */
    repeating-linear-gradient(
      118deg,
      transparent 0px,
      transparent 80px,
      rgba(232,93,138,0.018) 80px,
      rgba(232,93,138,0.018) 82px,
      transparent 82px,
      transparent 160px
    ),
    /* Radial depth at corners */
    radial-gradient(ellipse at 10% 90%, rgba(123,31,58,0.06) 0%, transparent 55%),
    radial-gradient(ellipse at 90% 10%, rgba(232,93,138,0.04) 0%, transparent 55%);
  display: flex;
  flex-direction: column;
  /* Strawberry scrollbar */
  scrollbar-width: thin;
  scrollbar-color: rgba(232,93,138,0.18) transparent;
}

._list_16ml7_1:hover {
  scrollbar-color: rgba(232,93,138,0.35) transparent;
}

._spacer_16ml7_32 {
  flex: 1;
}

._inner_16ml7_36 {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 6px 0 6px 0;
}

._dateSep_16ml7_43 {
  display: flex;
  justify-content: center;
  margin: 10px 0 10px 0;
}

._dateSep_16ml7_43 span {
  background: rgba(15, 8, 10, 0.78);
  color: rgba(232,93,138,0.7);
  font-size: 11.5px;
  font-weight: 500;
  padding: 4px 14px;
  border-radius: 14px;
  backdrop-filter: blur(6px);
  letter-spacing: 0.03em;
  border: 1px solid rgba(232,93,138,0.12);
}

/* ─── Empty room ──────────────────────────────────────────── */
._emptyRoom_16ml7_62 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1;
  min-height: 200px;
  color: var(--sv-text-secondary);
  font-size: 14px;
}

._emptyRoom_16ml7_62 span { font-size: 36px; }

/* ─── Typing indicator bubble ──────────────────────────────── */
._typingRow_16ml7_77 {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  padding: 0 8px;
  margin-top: 4px;
}

._typingBubble_16ml7_85 {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--sv-bg-received);
  padding: 8px 12px;
  border-radius: 16px 16px 16px 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

._dot_16ml7_95 {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--sv-accent);
  opacity: 0.5;
  animation: _typingBounce_16ml7_1 1.2s ease-in-out infinite;
}

._aiLabel_16ml7_105 {
  font-size: 10px;
  font-weight: 600;
  color: var(--sv-accent);
  margin-right: 4px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

._typingName_16ml7_114 {
  font-size: 11px;
  color: var(--sv-text-secondary);
  margin-left: 4px;
}

/* ─── Reply highlight flash ───────────────────────────────── */
@keyframes _replyFlash_16ml7_1 {
  0%   { box-shadow: none; }
  10%  { box-shadow: 0 0 0 3px rgba(232, 93, 138, 0.9), 0 0 16px rgba(232, 93, 138, 0.5); }
  40%  { box-shadow: 0 0 0 2px rgba(232, 93, 138, 0.5), 0 0 8px rgba(232, 93, 138, 0.25); }
  100% { box-shadow: none; }
}

._msgHighlight_16ml7_128 {
  animation: _replyFlash_16ml7_1 0.1s ease-out forwards;
  border-radius: 12px;
}
._picker_1p5en_1 {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  background: #1e1529;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 10px 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 280px;
}

._row_1p5en_17 {
  display: flex;
  gap: 2px;
}

._btn_1p5en_22 {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  padding: 5px 6px;
  border-radius: 6px;
  transition: background 0.1s;
  flex: 1;
  text-align: center;
}

._btn_1p5en_22:hover {
  background: rgba(255,255,255,0.1);
}
._inputBar_1vv67_1 {
  display: flex;
  flex-direction: column;
  padding: 0 12px 14px;
  background: var(--tg-bg-header);
  border-top: 1px solid rgba(255,255,255,0.07);
  box-shadow: 0 -1px 12px rgba(0,0,0,0.4);
  flex-shrink: 0;
}

._encryptBadge_1vv67_11 {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 4px 4px;
  font-size: 10.5px;
  color: rgba(232,93,138,0.6);
  letter-spacing: 0.04em;
}

._inputRow_1vv67_21 {
  display: flex;
  align-items: flex-end;
  gap: 4px;
}

._iconBtn_1vv67_27 {
  background: none;
  border: none;
  color: var(--tg-text-secondary);
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}

._iconBtn_1vv67_27:hover {
  background: var(--tg-bg-hover);
  color: var(--tg-text-primary);
}

._iconBtn_1vv67_27._sendActive_1vv67_46 {
  color: var(--tg-accent);
}

._iconBtn_1vv67_27._sendActive_1vv67_46:hover {
  color: var(--tg-accent-hover);
}

._inputWrap_1vv67_54 {
  flex: 1;
  display: flex;
  align-items: center;
  background: var(--tg-bg-input);
  border-radius: 22px;
  padding: 0 4px 0 8px;
  min-height: 40px;
  gap: 4px;
}

._emojiBtn_1vv67_65 {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  padding: 4px 2px;
  opacity: 0.7;
  transition: opacity 0.15s;
  flex-shrink: 0;
}

._emojiBtn_1vv67_65:hover { opacity: 1; }

._textarea_1vv67_78 {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--tg-text-primary);
  caret-color: var(--tg-accent);
  resize: none;
  max-height: 120px;
  overflow-y: auto;
  padding: 9px 4px;
  line-height: 1.4;
}

._textarea_1vv67_78::placeholder {
  color: var(--tg-text-secondary);
}

._iconBtnDisabled_1vv67_98 {
  cursor: not-allowed !important;
  opacity: 0.4;
}

._iconBtnDisabled_1vv67_98:hover {
  background: none !important;
  color: var(--tg-text-secondary) !important;
}

._emojiBtnActive_1vv67_108 {
  opacity: 1;
  color: var(--tg-accent);
}

/* ─── Edit mode bar ─────────────────────────────────────── */
._editBar_1vv67_114 {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 4px 4px;
  border-bottom: 1px solid rgba(232,93,138,0.15);
  margin-bottom: 2px;
}

._editInfo_1vv67_123 {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

._editLabel_1vv67_130 {
  font-size: 11px;
  color: var(--tg-accent);
  font-weight: 500;
  letter-spacing: 0.04em;
}

._editPreview_1vv67_137 {
  font-size: 12px;
  color: var(--tg-text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

._editClose_1vv67_146 {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,0.35);
  padding: 4px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.12s, color 0.12s;
}

._editClose_1vv67_146:hover {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
}
._menu_13wq3_1 {
  position: fixed;
  z-index: 999;
  background: #1e1529;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 5px;
  min-width: 168px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.55), 0 2px 8px rgba(0,0,0,0.3);
  backdrop-filter: blur(8px);
}

._item_13wq3_13 {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  padding: 9px 12px;
  color: var(--tg-text-primary);
  font-size: 13.5px;
  font-family: var(--font-ui);
  border-radius: 7px;
  text-align: left;
  white-space: nowrap;
  transition: background 0.1s;
}

._item_13wq3_13:hover { background: rgba(255,255,255,0.08); }

._item_13wq3_13._danger_13wq3_33 { color: #e85d8a; }
._item_13wq3_13._danger_13wq3_33:hover { background: rgba(232,93,138,0.12); }

._icon_13wq3_36 {
  display: flex;
  align-items: center;
  color: var(--tg-text-secondary);
  flex-shrink: 0;
}

._danger_13wq3_33 ._icon_13wq3_36 { color: #e85d8a; }

._divider_13wq3_45 {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.07);
  margin: 4px 0;
}
._backdrop_1o4ku_1 {
  position: fixed;
  inset: 0;
  z-index: 490;
}

._card_1o4ku_7 {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  background: #1a1628;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.05);
  z-index: 500;
  overflow: hidden;
}

._cardHeader_1o4ku_21 {
  height: 72px;
  background: linear-gradient(135deg, #2a1540 0%, #1a1020 100%);
  position: relative;
  flex-shrink: 0;
}

._closeBtn_1o4ku_28 {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.5);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}

._closeBtn_1o4ku_28:hover {
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.85);
}

/* Avatar overlaps the header/body boundary */
._avatarWrap_1o4ku_51 {
  display: flex;
  justify-content: center;
  margin-top: -36px;
  position: relative;
  z-index: 1;
}

._avatarWrap_1o4ku_51 > * {
  ring: 4px solid #1a1628;
  box-shadow: 0 0 0 4px #1a1628;
  border-radius: 50%;
}

._body_1o4ku_65 {
  padding: 12px 20px 20px;
  text-align: center;
}

._displayName_1o4ku_70 {
  font-size: 18px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 4px;
}

._username_1o4ku_77 {
  font-size: 13px;
  color: var(--tg-accent);
  margin-bottom: 16px;
}

._uidText_1o4ku_83 {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
  font-family: monospace;
  margin-bottom: 16px;
}

._actions_1o4ku_90 {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

._actionBtn_1o4ku_97 {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.75);
  border-radius: 20px;
  padding: 7px 14px;
  font-size: 12.5px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

._actionBtn_1o4ku_97:hover {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.95);
}

._actionBtnPrimary_1o4ku_116 {
  background: var(--tg-accent);
  border-color: transparent;
  color: #fff;
}

._actionBtnPrimary_1o4ku_116:hover {
  background: var(--tg-accent-hover);
  color: #fff;
}
._pane_1tm4h_1 {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--tg-bg-chat);
  position: relative;
}

._inner_1tm4h_10 {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
}

._empty_1tm4h_17 {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--tg-text-muted);
}

._emptyIcon_1tm4h_27 {
  font-size: 48px;
  opacity: 0.4;
}

._emptyText_1tm4h_32 {
  font-size: 15px;
  opacity: 0.5;
}

/* ── In-chat search bar ─────────────────────────── */
._searchBar_1tm4h_38 {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}

._searchIcon_1tm4h_48 {
  color: var(--tg-text-secondary);
  flex-shrink: 0;
}

._searchInput_1tm4h_53 {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-family: var(--font-ui);
  font-size: 13.5px;
  color: var(--tg-text-primary);
  caret-color: var(--tg-accent);
}

._searchInput_1tm4h_53::placeholder { color: var(--tg-text-secondary); }

._searchCount_1tm4h_66 {
  font-size: 11.5px;
  color: var(--tg-text-secondary);
  white-space: nowrap;
  flex-shrink: 0;
}

._searchClose_1tm4h_73 {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--tg-text-secondary);
  padding: 4px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  opacity: 0.6;
  flex-shrink: 0;
}

._searchClose_1tm4h_73:hover { opacity: 1; }

/* ── Reply-to bar ───────────────────────────────── */
._replyBar_1tm4h_89 {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  background: rgba(232,93,138,0.07);
  border-top: 2px solid var(--tg-accent);
  flex-shrink: 0;
}

._replyInfo_1tm4h_99 { flex: 1; min-width: 0; display: flex; gap: 6px; align-items: baseline; }
._replyName_1tm4h_100 { font-size: 12px; font-weight: 600; color: var(--tg-accent); white-space: nowrap; }
._replyText_1tm4h_101 { font-size: 12px; color: var(--tg-text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

._replyClose_1tm4h_103 {
  background: none; border: none; cursor: pointer;
  color: var(--tg-text-secondary); padding: 4px; border-radius: 50%;
  display: flex; align-items: center; opacity: 0.6; flex-shrink: 0;
}
._replyClose_1tm4h_103:hover { opacity: 1; }
._overlay_d32uc_1 {
  position: fixed; inset: 0;
  background: rgba(5, 3, 4, 0.88);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

._modal_d32uc_11 {
  background: #1a1015;
  border: 1px solid rgba(232, 93, 138, 0.18);
  border-radius: 20px;
  padding: 36px 40px 32px;
  width: 360px;
  box-shadow:
    0 0 0 1px rgba(232, 93, 138, 0.06),
    0 24px 64px rgba(0, 0, 0, 0.7),
    0 4px 16px rgba(232, 93, 138, 0.08);
}

._header_d32uc_23 {
  text-align: center;
  margin-bottom: 28px;
}

._logo_d32uc_28 {
  font-size: 48px;
  line-height: 1;
  margin-bottom: 12px;
  filter: drop-shadow(0 0 12px rgba(232, 93, 138, 0.5));
}

._title_d32uc_35 {
  font-size: 22px;
  font-weight: 700;
  color: #f0e0d8;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}

._sub_d32uc_43 {
  font-size: 13px;
  color: #8a6e76;
  margin: 0;
}

/* ── Disclosure notice ────────────────────────────────────── */
._disclosure_d32uc_50 {
  background: rgba(232, 93, 138, 0.06);
  border: 1px solid rgba(232, 93, 138, 0.22);
  border-left: 3px solid rgba(232, 93, 138, 0.6);  /* accent left rail */
  border-radius: 10px;
  padding: 13px 15px 13px 14px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

._disclosureHeading_d32uc_62 {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 700;
  color: rgba(232, 93, 138, 0.9);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

._disclosureText_d32uc_73 {
  font-size: 12.5px;
  color: rgba(240, 224, 216, 0.78);
  line-height: 1.65;
}

._disclosureText_d32uc_73 strong {
  color: #f0e0d8;
  font-weight: 600;
}

._consentRow_d32uc_84 {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  border-top: 1px solid rgba(232, 93, 138, 0.12);
  padding-top: 10px;
  border-radius: 6px;
  transition: background 0.12s;
}

._consentRow_d32uc_84:hover {
  background: rgba(232, 93, 138, 0.06);
}

._checkbox_d32uc_100 {
  appearance: none;
  -webkit-appearance: none;
  width: 21px;
  height: 21px;
  min-width: 21px;
  border: 2px solid rgba(232, 93, 138, 0.55);   /* more visible border */
  border-radius: 5px;
  background: rgba(15, 11, 12, 0.6);
  cursor: pointer;
  position: relative;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

._checkbox_d32uc_100:checked {
  background: linear-gradient(135deg, #e85d8a, #c94f7a);
  border-color: #e85d8a;
  box-shadow: 0 0 6px rgba(232, 93, 138, 0.5);
}

._checkbox_d32uc_100:checked::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: 2.5px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

._checkbox_d32uc_100:hover:not(:checked) {
  border-color: rgba(232, 93, 138, 0.85);
  background: rgba(232, 93, 138, 0.08);
}

._consentLabel_d32uc_138 {
  font-size: 13px;
  color: #f0e0d8;
  font-weight: 500;
  line-height: 1.4;
}

._keyItemDisabled_d32uc_145 {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

._sectionLabel_d32uc_151 {
  font-size: 11px;
  font-weight: 600;
  color: #8a6e76;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

._keyList_d32uc_160 {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

._keyItem_d32uc_145 {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(232, 93, 138, 0.06);
  border: 1px solid rgba(232, 93, 138, 0.12);
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  color: inherit;
  width: 100%;
  text-align: left;
}

._keyItem_d32uc_145:hover {
  background: rgba(232, 93, 138, 0.12);
  border-color: rgba(232, 93, 138, 0.25);
}

._keyAvatar_d32uc_186 {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e85d8a, #c94f7a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

._keyInfo_d32uc_200 {
  flex: 1;
  min-width: 0;
}

._keyName_d32uc_205 {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #f0e0d8;
}

._keyId_d32uc_212 {
  display: block;
  font-size: 11px;
  color: #8a6e76;
  font-family: monospace;
  margin-top: 1px;
}

._keyArrow_d32uc_220 {
  color: #8a6e76;
  flex-shrink: 0;
}

._noKeys_d32uc_225 {
  font-size: 14px;
  color: #8a6e76;
  text-align: center;
  padding: 16px 0;
}

/* Form (create identity) */
._form_d32uc_233 {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

._label_d32uc_239 {
  font-size: 12px;
  font-weight: 600;
  color: #8a6e76;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

._input_d32uc_247 {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(232, 93, 138, 0.2);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  color: #f0e0d8;
  outline: none;
  font-family: inherit;
  transition: border-color 0.15s;
}

._input_d32uc_247:focus {
  border-color: rgba(232, 93, 138, 0.5);
  background: rgba(232, 93, 138, 0.05);
}

._input_d32uc_247::placeholder {
  color: #8a6e76;
}

._hint_d32uc_268 {
  font-size: 12px;
  color: #8a6e76;
  line-height: 1.5;
}

._error_d32uc_274 {
  font-size: 13px;
  color: #e85d8a;
}

._btns_d32uc_279 {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

._btnPrimary_d32uc_285 {
  flex: 1;
  padding: 10px 16px;
  background: linear-gradient(135deg, #e85d8a, #c94f7a);
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
  font-family: inherit;
}

._btnPrimary_d32uc_285:hover:not(:disabled) {
  opacity: 0.9;
}

._btnPrimary_d32uc_285:active:not(:disabled) {
  transform: scale(0.98);
}

._btnPrimary_d32uc_285:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

._btnSecondary_d32uc_312 {
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  font-size: 14px;
  color: #8a6e76;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}

._btnSecondary_d32uc_312:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
  color: #f0e0d8;
}

._selectWrap_d32uc_329 {
  display: flex;
  flex-direction: column;
}
._overlay_10a3w_1 {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
  padding: 20px;
}

._modal_10a3w_13 {
  width: 100%;
  background: #1e1529;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
  overflow: hidden;
}

._header_10a3w_22 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 0;
}

._title_10a3w_29 {
  font-size: 18px;
  font-weight: 600;
  color: var(--tg-text-primary);
  margin: 0;
}

._closeBtn_10a3w_36 {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--tg-text-secondary);
  padding: 4px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  opacity: 0.6;
  transition: opacity 0.15s;
}

._closeBtn_10a3w_36:hover { opacity: 1; }

._body_10a3w_51 {
  padding: 20px 24px 24px;
}
._wrap_1ub6d_1 { display: flex; flex-direction: column; gap: 20px; }

._avatarRow_1ub6d_3 { display: flex; align-items: center; gap: 14px; }

._bigAvatar_1ub6d_5 {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg,#e85d8a,#7b1f3a);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 600; color: #fff; flex-shrink: 0;
}

._displayName_1ub6d_12 { font-size: 17px; font-weight: 600; color: var(--tg-text-primary); }
._handle_1ub6d_13 { font-size: 13px; color: var(--tg-accent); margin-top: 2px; }
._uidText_1ub6d_14 { font-size: 11px; color: var(--tg-text-secondary); margin-top: 2px; font-family: monospace; }

._savedBanner_1ub6d_16 {
  background: rgba(80,200,120,0.15); border: 1px solid rgba(80,200,120,0.3);
  color: #50c878; border-radius: 8px; padding: 8px 14px; font-size: 13px; text-align: center;
}

._divider_1ub6d_21 { border: none; border-top: 1px solid rgba(255,255,255,0.07); }

._field_1ub6d_23 { display: flex; flex-direction: column; gap: 6px; }
._label_1ub6d_24 { font-size: 12px; font-weight: 600; color: var(--tg-text-secondary); text-transform: uppercase; letter-spacing: 0.07em; }
._hint_1ub6d_25 { font-size: 12px; color: var(--tg-text-secondary); margin: 0; line-height: 1.5; }
._fieldError_1ub6d_26 { font-size: 12px; color: #e85d8a; margin: 0; }

._usernameRow_1ub6d_28 { display: flex; align-items: center; gap: 4px; }
._at_1ub6d_29 { font-size: 16px; color: var(--tg-text-secondary); flex-shrink: 0; }
._indicator_1ub6d_30 { font-size: 16px; flex-shrink: 0; }

._input_1ub6d_32 {
  flex: 1; background: rgba(255,255,255,0.07); border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: 8px; padding: 9px 12px; font-size: 14px; color: var(--tg-text-primary);
  outline: none; font-family: monospace; transition: border-color 0.15s;
}
._input_1ub6d_32:focus { border-color: var(--tg-accent); }
._inputError_1ub6d_38 { border-color: #e85d8a !important; }
._inputOk_1ub6d_39 { border-color: #50c878 !important; }

._saveBtn_1ub6d_41, ._copyBtn_1ub6d_41 {
  align-self: flex-start; background: var(--tg-accent); border: none; border-radius: 8px;
  color: #fff; font-size: 13px; font-weight: 500; padding: 8px 16px; cursor: pointer;
  transition: opacity 0.15s;
}
._saveBtn_1ub6d_41:disabled { opacity: 0.4; cursor: not-allowed; }
._saveBtn_1ub6d_41:hover:not(:disabled), ._copyBtn_1ub6d_41:hover { opacity: 0.85; }
._copyBtn_1ub6d_41 { background: rgba(255,255,255,0.1); color: var(--tg-text-primary); }
._form_yxgmv_1, ._created_yxgmv_1, ._membersWrap_yxgmv_1 { display: flex; flex-direction: column; gap: 14px; }

._label_yxgmv_3 { font-size: 11.5px; font-weight: 600; color: var(--tg-text-secondary); text-transform: uppercase; letter-spacing: 0.07em; }
._hint_yxgmv_4 { font-size: 12px; color: var(--tg-text-secondary); margin: 0; }
._error_yxgmv_5 { font-size: 12.5px; color: #e85d8a; margin: 0; }

._input_yxgmv_7 {
  background: rgba(255,255,255,0.07); border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: 8px; padding: 10px 14px; font-size: 14px; color: var(--tg-text-primary);
  outline: none; font-family: var(--font-ui); transition: border-color 0.15s; width: 100%;
  box-sizing: border-box;
}
._input_yxgmv_7:focus { border-color: var(--tg-accent); }

._btns_yxgmv_15 { display: flex; gap: 10px; justify-content: flex-end; margin-top: 4px; }

._cancelBtn_yxgmv_17 {
  background: rgba(255,255,255,0.08); border: none; border-radius: 8px;
  color: var(--tg-text-primary); font-size: 13px; padding: 9px 18px; cursor: pointer; transition: opacity 0.15s;
}
._cancelBtn_yxgmv_17:hover { opacity: 0.75; }

._createBtn_yxgmv_23, ._doneBtn_yxgmv_23 {
  background: var(--tg-accent); border: none; border-radius: 8px;
  color: #fff; font-size: 13px; font-weight: 500; padding: 9px 18px; cursor: pointer; transition: opacity 0.15s;
}
._createBtn_yxgmv_23:disabled { opacity: 0.4; cursor: not-allowed; }
._createBtn_yxgmv_23:hover:not(:disabled), ._doneBtn_yxgmv_23:hover { opacity: 0.85; }

/* Created state */
._createdIcon_yxgmv_31 { font-size: 36px; text-align: center; }
._createdName_yxgmv_32 { font-size: 16px; font-weight: 600; color: var(--tg-text-primary); text-align: center; }

/* Invite */
._inviteSection_yxgmv_35 { display: flex; flex-direction: column; gap: 6px; }
._inviteRow_yxgmv_36 { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); border-radius: 8px; padding: 8px 12px; }
._inviteCode_yxgmv_37 { flex: 1; font-size: 12.5px; color: var(--tg-accent); font-family: monospace; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
._copyBtn_yxgmv_38 { background: none; border: none; cursor: pointer; color: var(--tg-text-secondary); padding: 2px; border-radius: 4px; display: flex; align-items: center; transition: color 0.15s; }
._copyBtn_yxgmv_38:hover { color: var(--tg-text-primary); }
._copyBtnOk_yxgmv_40 { color: #50c878 !important; }

/* Members */
._memberList_yxgmv_43 { display: flex; flex-direction: column; gap: 4px; max-height: 320px; overflow-y: auto; }
._memberRow_yxgmv_44 { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 8px; transition: background 0.1s; }
._memberRow_yxgmv_44:hover { background: rgba(255,255,255,0.05); }
._memberRowClickable_yxgmv_46 { cursor: pointer; }
._memberRowClickable_yxgmv_46:hover { background: rgba(232,93,138,0.1); }
._memberAvatar_yxgmv_48 { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg,#e85d8a,#7b1f3a); display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 600; color: #fff; flex-shrink: 0; }
._memberInfo_yxgmv_49 { flex: 1; min-width: 0; }
._memberName_yxgmv_50 { font-size: 14px; font-weight: 500; color: var(--tg-text-primary); display: flex; align-items: center; gap: 6px; }
._memberHandle_yxgmv_51 { font-size: 12px; color: var(--tg-text-secondary); margin-top: 1px; }
._youBadge_yxgmv_52 { font-size: 10px; background: rgba(232,93,138,0.2); color: var(--tg-accent); padding: 1px 6px; border-radius: 10px; font-weight: 400; }

._membersWrap_yxgmv_1 ._inviteSection_yxgmv_35 { background: rgba(255,255,255,0.03); border-radius: 10px; padding: 10px 12px; }
._app_lghdp_1 {
  width: 100vw;
  height: 100vh;
  height: 100svh; /* respects mobile URL bar collapse */
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--sv-bg-app);
}

._body_lghdp_11 {
  flex: 1;
  display: flex;
  overflow: hidden;
}

/* ── Loading / checking screen ─────────────────────────── */
._loadingScreen_lghdp_18 {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: var(--sv-bg-app);
  /* Subtle marble-like gradient */
  background-image:
    radial-gradient(ellipse at 30% 40%, rgba(232,93,138,0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 70%, rgba(123,31,58,0.05) 0%, transparent 60%);
}

._loadingLogo_lghdp_32 {
  font-size: 56px;
  line-height: 1;
  filter: drop-shadow(0 0 20px rgba(232,93,138,0.6));
  animation: _pulse_lghdp_1 2s ease-in-out infinite;
}

._loadingText_lghdp_39 {
  font-size: 14px;
  color: var(--sv-text-secondary);
  letter-spacing: 0.02em;
}

@keyframes _pulse_lghdp_1 {
  0%, 100% { transform: scale(1);    opacity: 1; }
  50%       { transform: scale(1.08); opacity: 0.85; }
}
/* ─── RESET ───────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ─── PROGREDEUS — STRAWBERRY VANILLA DARK MARBLE THEME ────────── */
:root {
  /* ── Core palette ─────────────────────────────────────────── */
  --sv-bg-app:        #0b0910;        /* deep purple-black — clean, not muddy */
  --sv-bg-sidebar:    #100d18;        /* dark violet-black sidebar */
  --sv-bg-header:     #100d18;        /* header matches sidebar */
  --sv-bg-chat:       #0b0910;        /* same as app base */
  --sv-bg-input:      #1a1628;        /* slightly lighter for input */
  --sv-bg-hover:      rgba(220,60,110,0.10);
  --sv-bg-active:     rgba(220,60,110,0.18);
  --sv-bg-received:   #44396c;        /* visible mid-purple — 2.5:1 contrast vs near-black bg */
  --sv-bg-sent:       #6e1a3c;        /* dark wine berry — strawberry identity, sophisticated tone */

  /* ── Text ──────────────────────────────────────────────────── */
  --sv-text-primary:   rgba(255,255,255,0.88);  /* crisp near-white */
  --sv-text-secondary: #8a6e76;       /* muted rose-gray */
  --sv-text-muted:     rgba(240,224,216,0.45);
  --sv-text-preview:   rgba(240,224,216,0.55);

  /* ── Accents ───────────────────────────────────────────────── */
  --sv-accent:         #e85d8a;       /* strawberry pink */
  --sv-accent-soft:    #c94f7a;       /* deeper rose */
  --sv-accent-glow:    rgba(232,93,138,0.3);
  --sv-online:         #8de86f;       /* vanilla green */
  --sv-unread-badge:   #e85d8a;
  --sv-unread-muted:   #6e4a58;

  /* ── Sender name colors — high-contrast pastels (5.5:1+ on #352f55 bubbles) ── */
  --sv-name-1: #f4a89a;   /* warm peach */
  --sv-name-2: #a8b4f0;   /* soft lavender */
  --sv-name-3: #8dd8a6;   /* soft mint */
  --sv-name-4: #f0c898;   /* warm gold */
  --sv-name-5: #88d0ec;   /* sky */
  --sv-name-6: #c8b8e0;   /* muted lilac */

  /* ── Borders ───────────────────────────────────────────────── */
  --sv-border:        rgba(232,93,138,0.1);
  --sv-border-subtle: rgba(232,93,138,0.06);
  --sv-divider:       rgba(232,93,138,0.08);

  /* ── Read receipts ─────────────────────────────────────────── */
  --sv-check-sent:  rgba(255,255,255,0.55);
  --sv-check-read:  #8dd8a6;   /* mint green for "read" — clear signal, accessible */

  /* ── Timestamps ─────────────────────────────────────────────── */
  --sv-ts-received: rgba(255,255,255,0.55);   /* brighter — was too faint on dark bubbles */
  --sv-ts-sent:     rgba(255,255,255,0.72);

  /* ── Scrollbar ─────────────────────────────────────────────── */
  --sv-scrollbar:       rgba(232,93,138,0.18);
  --sv-scrollbar-hover: rgba(232,93,138,0.4);

  /* ── Typography ─────────────────────────────────────────────── */
  --font-ui: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif,
             'Noto Color Emoji', 'Apple Color Emoji', 'Segoe UI Emoji';

  /* ── Motion ─────────────────────────────────────────────────── */
  --spring-fast:   cubic-bezier(0.4, 0, 0.2, 1);
  --spring-bounce: cubic-bezier(0.175, 0.885, 0.32, 1.275);

  /* Alias old vars used by components — point to new theme */
  --tg-bg-app:        var(--sv-bg-app);
  --tg-bg-sidebar:    var(--sv-bg-sidebar);
  --tg-bg-header:     var(--sv-bg-header);
  --tg-bg-chat:       var(--sv-bg-chat);
  --tg-bg-input:      var(--sv-bg-input);
  --tg-bg-hover:      var(--sv-bg-hover);
  --tg-bg-active:     var(--sv-bg-active);
  --tg-bg-received:   var(--sv-bg-received);
  --tg-bg-sent:       var(--sv-bg-sent);
  --tg-text-primary:  var(--sv-text-primary);
  --tg-text-secondary:var(--sv-text-secondary);
  --tg-text-muted:    var(--sv-text-muted);
  --tg-text-preview:  var(--sv-text-preview);
  --tg-name-1:        var(--sv-name-1);
  --tg-name-2:        var(--sv-name-2);
  --tg-name-3:        var(--sv-name-3);
  --tg-name-4:        var(--sv-name-4);
  --tg-name-5:        var(--sv-name-5);
  --tg-name-6:        var(--sv-name-6);
  --tg-online:        var(--sv-online);
  --tg-accent:        var(--sv-accent);
  --tg-accent-hover:  var(--sv-accent-soft);
  --tg-unread-badge:  var(--sv-unread-badge);
  --tg-unread-muted:  var(--sv-unread-muted);
  --tg-border:        var(--sv-border);
  --tg-border-subtle: var(--sv-border-subtle);
  --tg-check-sent:    var(--sv-check-sent);
  --tg-check-read:    var(--sv-check-read);
  --tg-ts-received:   var(--sv-ts-received);
  --tg-ts-sent:       var(--sv-ts-sent);
}

/* ─── LIGHT MODE overrides ────────────────────────────────── */
:root.light-mode {
  --sv-bg-app:        #f5f0f8;
  --sv-bg-sidebar:    #efe9f5;
  --sv-bg-header:     #efe9f5;
  --sv-bg-chat:       #f5f0f8;
  --sv-bg-input:      #e8e1f0;
  --sv-bg-hover:      rgba(180,40,100,0.08);
  --sv-bg-active:     rgba(180,40,100,0.15);
  --sv-bg-received:   #d8d0e8;
  --sv-bg-sent:       #9b3060;
  --sv-text-primary:   rgba(20,10,30,0.90);
  --sv-text-secondary: #8060a0;
  --sv-text-muted:     rgba(40,20,60,0.45);
  --sv-text-preview:   rgba(40,20,60,0.55);
  --sv-border:        rgba(180,40,100,0.15);
  --sv-border-subtle: rgba(180,40,100,0.08);
  --sv-divider:       rgba(180,40,100,0.1);
  --sv-scrollbar:       rgba(180,40,100,0.2);
  --sv-scrollbar-hover: rgba(180,40,100,0.4);
}

/* ─── BASE ────────────────────────────────────────────────── */
html, body, #root {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--sv-bg-app);
  color: var(--sv-text-primary);
  font-family: var(--font-ui);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  user-select: none;
}

/* ─── SCROLLBAR — thin strawberry style ───────────────────── */
::-webkit-scrollbar        { width: 4px; height: 4px; }
::-webkit-scrollbar-track  { background: transparent; margin: 2px 0; }
::-webkit-scrollbar-thumb  { background: var(--sv-scrollbar); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--sv-scrollbar-hover); }

/* Firefox */
* { scrollbar-width: thin; scrollbar-color: var(--sv-scrollbar) transparent; }

/* ─── SELECTION ───────────────────────────────────────────── */
::selection { background: rgba(232,93,138,0.35); }

/* ─── TYPING ANIMATION ─────────────────────────────────────── */
@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0);   opacity: 0.45; }
  30%           { transform: translateY(-5px); opacity: 1; }
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 var(--sv-accent-glow); }
  50%       { box-shadow: 0 0 12px 3px var(--sv-accent-glow); }
}

@keyframes marbleShimmer {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ═══════════════════════════════════════════
   MOBILE RESPONSIVE — bubble sizing only
   Panel switching handled by React useIsMobile hook (not CSS selectors)
═══════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Bubble max-width for narrow screen — sent must be narrow enough to show right-alignment */
  [class*="rowReceived"] [class*="bubble"] {
    max-width: 80% !important;
  }
  [class*="rowSent"] [class*="bubble"] {
    max-width: 68% !important;
  }
}
