:root {
  --bg: #fff8fc;
  --bg2: #fff1f7;
  --card: rgba(255, 255, 255, 0.82);
  --line: #f3d8e7;
  --text: #2d1b28;
  --muted: #816d79;
  --primary: #ff5f9a;
  --primary-2: #8e9cff;
  --danger: #e85c74;
  --success: #1c9a67;
  --warning: #ffbf4d;
  --shadow: 0 24px 60px rgba(255, 95, 154, 0.14);
  --radius: 28px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif; color: var(--text); background: radial-gradient(circle at top right, rgba(255, 175, 205, 0.35), transparent 30%), linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%); }
a { color: var(--primary); text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

.app-shell { min-height: 100vh; max-width: 1220px; margin: 0 auto; padding: 18px 16px 100px; }
.page-wrap { display: flex; flex-direction: column; gap: 24px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-bottom: 18px; }
.brand-link { display: flex; align-items: center; gap: 14px; color: var(--text); }
.brand-mark { width: 50px; height: 50px; border-radius: 18px; display: grid; place-items: center; color: white; font-weight: 800; background: linear-gradient(135deg, var(--primary), var(--primary-2)); box-shadow: var(--shadow); }
.eyebrow { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .16em; color: #ba8ea5; margin-bottom: 4px; }
.brand-name { font-size: 1.25rem; font-weight: 800; }
.top-actions, .button-row, .hero-actions, .meta-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lang-switch { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.chip-link, .upload-chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.74); color: var(--text); }
.chip-link.primary, .chip-link.active { background: linear-gradient(135deg, rgba(255,95,154,.15), rgba(142,156,255,.16)); color: var(--primary); border-color: rgba(255,95,154,.3); }
.card { background: var(--card); border: 1px solid rgba(255,255,255,.9); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); backdrop-filter: blur(16px); }
.soft-card { background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,248,252,.84)); }
.gradient-card { background: radial-gradient(circle at top right, rgba(255,95,154,.18), rgba(255,255,255,.94) 35%), linear-gradient(180deg, rgba(255,255,255,.94), rgba(255,244,249,.86)); }
.hero-grid, .grid-2 { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; }
.align-start { align-items: start; }
.preview-card { display: grid; place-items: center; }
.phone-frame { width: 290px; background: #fff; border-radius: 38px; border: 10px solid #241620; overflow: hidden; box-shadow: 0 28px 70px rgba(31, 17, 26, .18); }
.phone-header { padding: 14px; text-align: center; font-weight: 700; background: #fff8fb; }
.preview-body { padding: 20px; background: linear-gradient(180deg, #fff8fb, #ffe8f2); display: flex; flex-direction: column; gap: 14px; }
.preview-sos { width: 124px; height: 124px; margin: 0 auto; border-radius: 999px; display: grid; place-items: center; font-size: 2rem; font-weight: 900; color: white; background: linear-gradient(135deg, var(--primary), var(--primary-2)); box-shadow: 0 16px 40px rgba(255,95,154,.25); }
.preview-option { display: flex; align-items: center; gap: 12px; padding: 14px; background: rgba(255,255,255,.85); border-radius: 20px; border: 1px solid var(--line); }
.preview-option span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; background: #ffe9f2; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: #ffe8f2; color: #bf4777; font-weight: 700; }
.mini-stats, .cards-grid, .snapshot-grid, .gallery-grid { display: grid; gap: 14px; }
.mini-stats { grid-template-columns: repeat(3, 1fr); margin-top: 20px; }
.mini-stats > div, .snapshot-card, .feature-item, .review-card, .compact-card { padding: 16px; border-radius: 20px; background: rgba(255,255,255,.75); border: 1px solid var(--line); }
.mini-stats strong, .snapshot-card b { display: block; font-size: 1.2rem; margin-bottom: 6px; }
.cards-grid, .snapshot-grid, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
.feature-item p, .muted, .tiny-center, .gallery-item p, .profile-card p, .chat-list-item p { color: var(--muted); }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(2rem, 4vw, 3.7rem); line-height: 1.02; margin-bottom: 14px; }
h2 { font-size: 1.6rem; margin-bottom: 8px; }
h3 { font-size: 1.08rem; margin-bottom: 8px; }
.lead { font-size: 1.04rem; line-height: 1.7; color: var(--muted); }
.primary-btn, .ghost-btn, .danger-btn { border: none; border-radius: 18px; padding: 13px 18px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; }
.primary-btn { background: linear-gradient(135deg, var(--primary), #ff79a9); color: white; box-shadow: 0 16px 34px rgba(255,95,154,.24); }
.ghost-btn { background: rgba(255,255,255,.84); border: 1px solid var(--line); color: var(--text); }
.danger-btn { background: linear-gradient(135deg, #ff8196, var(--danger)); color: white; }
.small { padding: 9px 12px; font-size: .92rem; border-radius: 14px; }
label { display: flex; flex-direction: column; gap: 8px; font-weight: 600; }
input, textarea, select { width: 100%; padding: 14px 16px; background: rgba(255,255,255,.94); border: 1px solid var(--line); border-radius: 16px; color: var(--text); }
textarea { resize: vertical; }
.stack-form, .stack-list { display: flex; flex-direction: column; gap: 14px; }
.two-col-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.filters-grid .checkbox-row { align-self: end; padding-bottom: 10px; }
.full-width { grid-column: 1 / -1; }
.auth-layout { display: grid; place-items: center; min-height: calc(100vh - 180px); }
.auth-card { width: min(100%, 760px); }
.hero-copy { padding: 34px; }
.empty-state { padding: 22px; border: 1px dashed #efbfd5; border-radius: 22px; background: rgba(255,255,255,.54); color: var(--muted); }
.profile-hero { display: flex; gap: 20px; align-items: center; }
.profile-hero-column { align-items: flex-start; }
.profile-hero-copy { flex: 1; }
.avatar-hero { width: 132px; height: 132px; border-radius: 34px; object-fit: cover; }
.avatar-lg { width: 64px; height: 64px; border-radius: 20px; object-fit: cover; }
.profile-main-photo { width: 100%; max-height: 430px; object-fit: cover; border-radius: 26px; }
.horizontal-gallery { display: flex; gap: 12px; overflow: auto; padding-bottom: 4px; }
.horizontal-gallery img { width: 160px; height: 180px; border-radius: 20px; object-fit: cover; border: 1px solid var(--line); }
.gallery-grid { grid-template-columns: repeat(2, 1fr); }
.gallery-item, .gallery-item-card { overflow: hidden; border-radius: 22px; }
.gallery-item img, .gallery-item-card img, .admin-media-preview { width: 100%; height: 180px; object-fit: cover; border-radius: 16px; margin-bottom: 10px; }
.section-title-row, .profile-headline, .chat-header, .tight-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.tight-row { align-items: flex-start; }
.compact-row { justify-content: flex-start; }
.profile-card, .chat-list-item { display: flex; gap: 16px; align-items: center; padding: 16px; background: rgba(255,255,255,.82); border: 1px solid var(--line); border-radius: 22px; }
.compact-card { flex-direction: column; align-items: stretch; }
.chat-list-item { color: var(--text); }
.chat-list-copy { flex: 1; }
.chat-list-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.chat-box { min-height: 52vh; max-height: 62vh; overflow: auto; padding: 18px; background: linear-gradient(180deg, #fff, #fff7fb); border: 1px solid var(--line); border-radius: 24px; display: flex; flex-direction: column; gap: 12px; }
.message-bubble { max-width: 78%; padding: 14px; border-radius: 20px; line-height: 1.55; display: flex; flex-direction: column; gap: 10px; }
.message-self { align-self: flex-end; background: linear-gradient(135deg, #ffeff6, #ffe1ed); }
.message-other { align-self: flex-start; background: white; }
.message-meta { font-size: .8rem; color: var(--muted); }
.message-attachments { display: flex; flex-direction: column; gap: 10px; }
.message-attachments img { width: 240px; max-width: 100%; border-radius: 16px; object-fit: cover; border: 1px solid var(--line); }
.chat-form { display: flex; gap: 12px; align-items: center; margin-top: 16px; }
.chat-form input[type="text"] { flex: 1; }
.upload-chip { position: relative; overflow: hidden; }
.upload-chip input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.status-pill { padding: 8px 11px; border-radius: 999px; font-weight: 700; font-size: .82rem; }
.status-open { background: #fff2cd; color: #855e13; }
.status-completed { background: #def7ea; color: #0f6b46; }
.inline-badge { min-width: 22px; padding: 3px 8px; display: inline-flex; justify-content: center; align-items: center; border-radius: 999px; background: var(--primary); color: white; font-size: .76rem; }
.flash-stack { display: flex; flex-direction: column; gap: 10px; }
.flash-message { padding: 14px 18px; border-radius: 18px; font-weight: 600; }
.flash-success { background: #dff7eb; color: #146846; }
.flash-info { background: #e9f4ff; color: #1e5d8a; }
.flash-warning { background: #fff2d8; color: #8b6618; }
.flash-danger { background: #ffe7eb; color: #97354c; }
.table-wrap { overflow: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.bottom-nav { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); width: min(96vw, 780px); display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; background: rgba(255,255,255,.92); border: 1px solid rgba(255,255,255,.96); box-shadow: 0 25px 50px rgba(36,22,32,.12); border-radius: 28px; padding: 10px; backdrop-filter: blur(16px); z-index: 50; }
.nav-item { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px; color: #7f6c77; border-radius: 20px; }
.nav-item.active { background: linear-gradient(135deg, rgba(255,95,154,.14), rgba(142,156,255,.12)); color: var(--primary); font-weight: 700; }
.footer-note { padding: 22px 4px 0; text-align: center; color: #a08b96; font-size: .9rem; }
.wrap { flex-wrap: wrap; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-16 { margin-bottom: 16px; }
.helper-row { display: flex; align-items: center; gap: 14px; }
.checkbox-row { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.checkbox-row input { width: auto; }

.demo-box { margin-top: 18px; padding: 16px; border-radius: 20px; background: rgba(255,255,255,.58); border: 1px dashed var(--line); display: flex; flex-direction: column; gap: 6px; }
@media (max-width: 980px) {
  .hero-grid, .grid-2, .two-col-form, .cards-grid, .snapshot-grid, .gallery-grid { grid-template-columns: 1fr; }
  .topbar { flex-direction: column; align-items: flex-start; }
  .top-actions { width: 100%; }
  .chat-form { flex-direction: column; align-items: stretch; }
}
@media (max-width: 640px) {
  .app-shell { padding: 14px 12px 100px; }
  .card { padding: 18px; border-radius: 24px; }
  h1 { font-size: 2.2rem; }
  .profile-hero { flex-direction: column; align-items: flex-start; }
  .mini-stats { grid-template-columns: 1fr; }
  .bottom-nav { width: calc(100vw - 16px); bottom: 8px; }
  .nav-item small { font-size: .72rem; }
}

.toast-stack {
  position: fixed;
  right: 16px;
  top: 16px;
  z-index: 9999;
  display: grid;
  gap: 10px;
  max-width: 360px;
}

.toast-item {
  box-shadow: 0 16px 40px rgba(16, 24, 40, 0.18);
}

.active-like {
  background: rgba(89, 184, 122, 0.18) !important;
  border-color: rgba(89, 184, 122, 0.6) !important;
}

.active-dislike {
  background: rgba(237, 84, 89, 0.16) !important;
  border-color: rgba(237, 84, 89, 0.55) !important;
}

.avatar-md {
  width: 64px;
  height: 64px;
  border-radius: 22px;
  object-fit: cover;
}

.compact-link {
  text-decoration: none;
  color: inherit;
}

.ghost-btn-form {
  display: inline-flex;
}

.mt-8 {
  margin-top: 8px;
}


.nav-badge {
  margin-left: 6px;
}

#voice-record-btn.recording {
  background: rgba(255, 95, 154, 0.16);
  border-color: rgba(255, 95, 154, 0.35);
}


body.modal-open {
  overflow: hidden;
}

.ll-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(28, 18, 29, 0.42);
  backdrop-filter: blur(8px);
}

.ll-modal-card {
  width: min(100%, 560px);
  border-radius: 26px;
  padding: 22px;
  background:
    radial-gradient(circle at top right, rgba(255,95,154,.18), transparent 28%),
    linear-gradient(180deg, rgba(44,36,58,.98), rgba(56,48,72,.98));
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 24px 80px rgba(12, 10, 20, 0.45);
  color: #fff;
}

.ll-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.ll-modal-kicker {
  font-size: .92rem;
  font-weight: 700;
  color: #8be7ff;
  margin-bottom: 6px;
}

.ll-modal-title {
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.35;
  color: #ffffff;
}

.ll-modal-close {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 14px;
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
}

.ll-modal-close:hover {
  background: rgba(255,255,255,.14);
}

.ll-modal-textarea {
  width: 100%;
  min-height: 120px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(95, 230, 255, 0.55);
  background: rgba(14, 17, 28, 0.58);
  color: #fff;
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.03);
}

.ll-modal-textarea::placeholder {
  color: rgba(255,255,255,.55);
}

.ll-modal-textarea:focus {
  border-color: #1ee6ff;
  box-shadow: 0 0 0 4px rgba(30,230,255,.12);
}

.ll-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 16px;
}

.ll-cancel-btn {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.08);
  color: #fff;
}

@media (max-width: 640px) {
  .ll-modal-card {
    padding: 18px;
    border-radius: 22px;
  }

  .ll-modal-footer {
    flex-direction: column-reverse;
  }

  .ll-modal-footer .ghost-btn,
  .ll-modal-footer .primary-btn {
    width: 100%;
  }
}


.nav-badge.is-hidden {
  display: none !important;
}

.chip-link {
  position: relative;
}

#nav-chat-badge {
  background: linear-gradient(135deg, #7c4dff, #5ec8ff);
  color: #fff;
}

#nav-sympathy-badge {
  background: linear-gradient(135deg, #ff5f9a, #ff9c7a);
  color: #fff;
}

.chip-link.live-pulse {
  animation: livePulse 1.4s ease;
}

@keyframes livePulse {
  0% { transform: translateY(0) scale(1); box-shadow: 0 0 0 rgba(255,95,154,0); }
  20% { transform: translateY(-1px) scale(1.02); }
  45% { box-shadow: 0 0 0 8px rgba(255,95,154,0.12); }
  100% { transform: translateY(0) scale(1); box-shadow: 0 0 0 rgba(255,95,154,0); }
}


.tgwa-filters {
  gap: 14px;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.filter-toggle {
  appearance: none;
  border: 1px solid rgba(255, 95, 154, 0.18);
  background: rgba(255,255,255,.88);
  color: var(--text);
  border-radius: 16px;
  min-height: 48px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: .18s ease;
  font: inherit;
}

.filter-toggle input {
  display: none;
}

.filter-toggle span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  font-weight: 700;
  white-space: nowrap;
}

.filter-toggle:hover,
.filter-toggle.is-active,
.filter-toggle input:checked + span {
  border-color: rgba(255, 95, 154, 0.38);
  background: linear-gradient(135deg, rgba(255,95,154,.14), rgba(142,156,255,.12));
  color: var(--primary);
}

.filter-actions-row {
  justify-content: space-between;
}

.filter-submit-btn {
  min-height: 48px;
}

.mobile-profile-card {
  align-items: flex-start;
}

.profile-card-copy {
  flex: 1;
  min-width: 0;
}

.profile-card-head {
  align-items: flex-start;
}

.profile-card-meta {
  justify-content: flex-end;
}

.reaction-actions {
  gap: 10px;
}

.icon-action-form {
  display: inline-flex;
}

.icon-action-btn {
  width: 52px;
  height: 52px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.92);
  font-size: 1.35rem;
  cursor: pointer;
  transition: .18s ease;
}

.icon-action-btn:hover {
  transform: translateY(-1px);
}

.icon-action-btn.active-like,
.icon-action-btn.like-btn.active-like {
  background: rgba(89, 184, 122, 0.18) !important;
  border-color: rgba(89, 184, 122, 0.6) !important;
}

.icon-action-btn.active-dislike,
.icon-action-btn.dislike-btn.active-dislike {
  background: rgba(237, 84, 89, 0.16) !important;
  border-color: rgba(237, 84, 89, 0.55) !important;
}

.love-letter-btn {
  background: rgba(124, 77, 255, 0.08);
  border-color: rgba(124, 77, 255, 0.16);
}

.profile-open-btn {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 760px) {
  .tgwa-filters {
    grid-template-columns: 1fr;
  }

  .filter-pills {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .filter-toggle,
  .filter-submit-btn,
  .profile-open-btn {
    width: 100%;
  }

  .mobile-profile-card {
    flex-direction: column;
    gap: 14px;
  }

  .mobile-profile-card .avatar-lg {
    width: 78px;
    height: 78px;
    border-radius: 24px;
  }

  .profile-card-head {
    flex-direction: column;
    align-items: stretch;
  }

  .profile-card-meta {
    justify-content: flex-start;
  }

  .reaction-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
  }

  .reaction-actions .icon-action-form,
  .reaction-actions .icon-action-btn,
  .reaction-actions .profile-open-btn {
    width: 100%;
  }

  .reaction-actions .profile-open-btn {
    padding-inline: 10px;
    font-size: .92rem;
  }
}

@media (max-width: 480px) {
  .filter-pills {
    grid-template-columns: 1fr;
  }

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

.chat-user-link {
  color: inherit;
  text-decoration: none;
  display: inline-block;
}

.chat-user-link:hover {
  color: var(--primary);
}

.chat-user-link h2 {
  margin: 0 0 8px 0;
}


/* === 2026 UI refresh === */
.topbar { flex-direction: column; align-items: stretch; gap: 20px; }
.brand-banner-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand-banner { display: block; width: min(100%, 560px); }
.brand-banner img { width: 100%; height: auto; border-radius: 24px; box-shadow: 0 18px 40px rgba(255, 95, 154, 0.12); }
.lang-segment { display: inline-grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 5px; border-radius: 999px; background: rgba(255,255,255,.9); border: 1px solid var(--line); min-width: 112px; }
.lang-segment__item { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 16px; border-radius: 999px; color: var(--muted); font-weight: 700; }
.lang-segment__item.active { color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-2)); box-shadow: var(--shadow); }
.top-actions-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.nav-pill { justify-content: center; min-height: 52px; padding-inline: 18px; text-align: center; font-weight: 700; }
.chat-card-shell { padding: 20px; }
.modern-chat-header { align-items: flex-start; }
.modern-chat-box { min-height: 54vh; max-height: 64vh; padding: 18px; border-radius: 28px; background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,244,249,.9)); }
.message-bubble { max-width: min(78%, 540px); overflow-wrap: anywhere; box-shadow: 0 12px 28px rgba(36, 22, 32, 0.06); }
.message-attachments, .message-attachments audio, .message-attachments video, .message-attachments img { max-width: 100%; }
.message-attachments audio, .message-attachments video { width: min(100%, 320px); display: block; }
.modern-chat-form { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 12px; align-items: end; margin-top: 18px; }
.chat-hidden-file { display: none; }
.chat-input-wrap { min-width: 0; display: flex; flex-direction: column; gap: 6px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,255,255,.95); }
.chat-input-wrap input[type="text"] { width: 100%; border: 0; outline: none; background: transparent; padding: 0; }
.chat-inline-status { min-height: 18px; font-size: .82rem; color: var(--muted); }
.composer-icon-btn { width: 52px; height: 52px; border-radius: 18px; border: 1px solid var(--line); background: rgba(255,255,255,.92); display: inline-flex; align-items: center; justify-content: center; font-size: 1.25rem; }
.composer-mic-btn.recording { background: linear-gradient(135deg, rgba(255,95,154,.2), rgba(142,156,255,.2)); border-color: rgba(255,95,154,.34); transform: scale(1.04); }
.composer-send-btn { min-height: 52px; white-space: nowrap; }
.action-wide-form { display: inline-flex; }
.action-wide-btn { min-width: 160px; justify-content: center; }
#profile-actions-card .reaction-actions { align-items: stretch; }
#profile-actions-card .reaction-actions .icon-action-form, #profile-actions-card .reaction-actions .action-wide-form { display: inline-flex; }
#profile-actions-card .reaction-actions .action-wide-btn, #profile-actions-card .reaction-actions .icon-action-btn { min-height: 52px; }
@media (max-width: 760px) {
  .brand-banner-row { flex-direction: column; align-items: stretch; }
  .brand-banner { width: 100%; }
  .lang-segment { align-self: flex-end; }
  .top-actions-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .modern-chat-form { grid-template-columns: auto minmax(0, 1fr) auto; }
  .composer-send-btn { grid-column: 1 / -1; width: 100%; }
  .message-bubble { max-width: 88%; }
}

/* Lama refresh */
.telegram-auth-guard {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(23, 18, 28, 0.42);
  backdrop-filter: blur(10px);
}

.telegram-auth-guard.is-hidden {
  display: none;
}

.telegram-auth-guard__card {
  width: min(92vw, 360px);
  padding: 24px;
  border-radius: 24px;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(255,255,255,.9);
  text-align: center;
  box-shadow: 0 28px 70px rgba(24, 18, 28, .18);
}

.telegram-auth-guard__spinner {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  margin: 0 auto 14px;
  border: 4px solid rgba(255,95,154,.2);
  border-top-color: rgba(255,95,154,.9);
  animation: lamaSpin 1s linear infinite;
}

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

.topbar {
  align-items: stretch;
}

.topbar-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
}

.brand-stack {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  flex: 0 0 auto;
  box-shadow: 0 12px 24px rgba(255,95,154,.18);
}

.brand-name {
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: .01em;
}

.top-actions-grid {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.nav-pill {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ads-carousel {
  position: relative;
  min-height: 116px;
}

.ad-slide {
  display: none;
  align-items: center;
  gap: 14px;
}

.ad-slide.is-active {
  display: flex;
}

.ad-slide__image {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 18px;
}

.ad-slide__thumb {
  width: 74px;
  height: 74px;
  object-fit: cover;
  border-radius: 18px;
  flex: 0 0 auto;
}

.ad-slide__copy {
  flex: 1;
  min-width: 0;
}

.ad-slide--row {
  width: 100%;
  min-height: 92px;
  padding: 6px 0;
}

.ads-carousel--compact {
  min-height: 96px;
}

.city-autocomplete {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 40;
  display: grid;
  gap: 6px;
  max-height: 240px;
  overflow: auto;
  padding: 8px;
  border-radius: 18px;
  background: rgba(255,255,255,.98);
  border: 1px solid var(--line);
  box-shadow: 0 24px 40px rgba(28, 20, 26, .12);
}

label {
  position: relative;
}

.city-autocomplete__item {
  width: 100%;
  border: 0;
  background: rgba(255,255,255,.92);
  text-align: left;
  border-radius: 14px;
  padding: 11px 12px;
  font: inherit;
  color: var(--text);
}

.city-autocomplete__item:hover {
  background: rgba(255,95,154,.08);
}

.message-attachment-button,
.message-attachment-file,
.message-attachment-audio {
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 8px;
}

.message-attachment-button {
  cursor: pointer;
}

.message-attachment-file,
.message-attachment-audio {
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(255,255,255,.7);
}

.attachment-delete-card {
  width: min(100%, 420px);
}

.attachment-delete-actions {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.admin-message-bubble {
  max-width: 100%;
}

.attachment-admin-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .topbar-main {
    flex-direction: column;
    align-items: stretch;
  }

  .brand-stack {
    justify-content: space-between;
    width: 100%;
    flex-wrap: wrap;
  }

  .top-actions-grid {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .brand-stack {
    align-items: flex-start;
  }

  .lang-segment {
    margin-left: 56px;
  }

  .ad-slide.is-active,
  .ad-slide--row.is-active {
    flex-direction: column;
    align-items: stretch;
  }

  .ad-slide__thumb {
    width: 100%;
    height: 120px;
  }
}

body.auth-autoload-pending main,
body.auth-autoload-pending .flash-stack {
  visibility: hidden;
}


/* === FIX: city autocomplete must not overlap next field === */
.city-autocomplete[hidden] {
  display: none !important;
}

.city-autocomplete {
  position: static !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  margin-top: 8px;
  width: 100%;
  z-index: 1 !important;
}

.tgwa-filters label {
  overflow: visible;
}


/* === ad image full display fix === */
.ad-slide__image,
.ad-slide__thumb {
  object-fit: contain !important;
  object-position: center center !important;
  background: #fff;
}

.ad-slide__image {
  width: 100%;
  max-height: 220px;
  padding: 8px;
}

.ad-slide__thumb {
  width: 96px;
  height: 96px;
  padding: 6px;
  border: 1px solid rgba(217, 150, 180, 0.18);
}

.ad-slide--row {
  align-items: center;
}


/* ad image full visible */
.ad-slide__image,
.ad-slide__thumb,
.ad-card img,
.ads-carousel img,
.ad-item img {
  object-fit: contain !important;
  object-position: center center !important;
  background: #fff !important;
}

.ad-slide__image,
.ad-card img,
.ads-carousel img,
.ad-item img {
  width: 100%;
  height: auto !important;
  max-height: 240px;
}


/* === desktop ads + 2-per-row nav fix === */
.ads-carousel--compact {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  min-height: 0 !important;
  align-items: stretch;
}

.ads-carousel--compact .ad-slide {
  display: flex !important;
  min-height: 120px;
  height: 100%;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 10px 24px rgba(255,95,154,.08);
}

.ads-carousel--compact .ad-slide__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.ads-carousel--compact .ad-slide__thumb {
  width: 108px;
  height: 108px;
  object-fit: contain !important;
  object-position: center center !important;
  background: #fff;
  padding: 6px;
  border: 1px solid rgba(243, 216, 231, .9);
  border-radius: 18px;
}

.ads-carousel--compact .ad-slide__image,
.ads-carousel--compact .ad-card img,
.ads-carousel--compact .ad-item img {
  width: 100%;
  max-height: 220px;
  object-fit: contain !important;
  object-position: center center !important;
  background: #fff;
  border-radius: 18px;
}

@media (max-width: 900px) {
  .ads-carousel--compact {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .top-actions-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px;
    width: 100%;
  }

  .top-actions-grid .nav-pill {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 480px) {
  .top-actions-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .top-actions-grid .nav-pill {
    min-height: 50px;
    padding-inline: 12px;
    font-size: .96rem;
  }
}


/* animated ads soft transition + natural image frame */
.ads-carousel--animated {
  position: relative;
  overflow: hidden;
}

.ads-carousel--animated .ad-slide {
  display: flex !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px) scale(.985);
  filter: blur(6px);
  transition:
    opacity .95s ease,
    transform 1.15s cubic-bezier(.22, 1, .36, 1),
    filter .95s ease,
    visibility .95s ease;
}

.ads-carousel--animated .ad-slide:not(.is-active):not(.is-measuring) {
  position: absolute;
  inset: 0;
}

.ads-carousel--animated .ad-slide.is-active,
.ads-carousel--animated .ad-slide.is-measuring {
  position: relative;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  filter: none;
  z-index: 2;
}

.ads-carousel--animated .ad-slide.is-measuring {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.ad-slide__thumb,
.ad-slide__image,
.ad-card img,
.ads-carousel img,
.ad-item img {
  object-fit: contain !important;
  object-position: center center !important;
  background: transparent !important;
  border: 1px solid rgba(233, 164, 197, .55) !important;
  border-radius: 22px !important;
  box-shadow:
    0 10px 24px rgba(255, 95, 154, .10),
    0 0 0 4px rgba(255, 255, 255, .78);
  padding: 4px;
}

.ad-slide__thumb {
  width: auto !important;
  height: auto !important;
  max-width: 140px;
  max-height: 112px;
  flex: 0 0 auto;
  align-self: center;
}

.ad-slide__image {
  display: block;
  width: auto !important;
  height: auto !important;
  max-width: 100%;
  max-height: 240px;
  margin: 0 auto 8px;
}

@media (max-width: 640px) {
  .ad-slide__thumb {
    max-width: 100%;
    max-height: 150px;
  }

  .ad-slide__image {
    max-height: 180px;
  }
}

/* === Stability polish: chat / wrapping / badges === */
.message-body {
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.clean-chat-list-item {
  align-items: flex-start;
  min-height: 112px;
}

.chat-list-copy,
.chat-list-message-preview,
.profile-card-copy,
.profile-card-copy p,
.profile-card-copy h3 {
  min-width: 0;
}

.chat-list-message-preview {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.45;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.chat-list-side {
  flex: 0 0 auto;
  align-self: center;
}

.chat-input-wrap textarea,
.anon-chat-input-wrap textarea {
  width: 100%;
  min-height: 52px;
  max-height: 180px;
  border: 0;
  outline: none;
  resize: none;
  background: transparent;
  padding: 0;
  line-height: 1.5;
  box-shadow: none;
}

.chat-input-wrap textarea::placeholder,
.anon-chat-input-wrap textarea::placeholder {
  color: #9d8692;
}

.anon-chat-form {
  grid-template-columns: minmax(0, 1fr) auto;
}

.anon-chat-input-wrap {
  min-height: 76px;
}

.status-pill {
  white-space: nowrap;
}

.status-completed,
.status-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 760px) {
  .clean-chat-list-item {
    min-height: 96px;
  }

  .chat-list-side {
    align-self: flex-start;
  }

  .anon-chat-form {
    grid-template-columns: 1fr;
  }
}


/* PATCH_UI_MARCH_2026 */
@media (min-width: 901px) {
  .ads-carousel--compact {
    grid-template-columns: 1fr !important;
    justify-items: center;
  }
  .ads-carousel--compact .ad-slide {
    width: min(100%, 760px);
    justify-self: center;
    align-items: center;
    gap: 16px;
  }
  .ads-carousel--compact .ad-slide:only-child {
    grid-column: 1 / -1;
  }
}
.ads-carousel--compact .ad-slide__copy {
  flex: 1 1 auto;
  min-width: 0;
}
.chat-list-side .status-pill {
  max-width: 220px;
  text-align: center;
  white-space: normal;
  line-height: 1.25;
}


/* PATCH_DESKTOP_ADS_AND_CHAT_MEDIA_APRIL_2026 */
@media (min-width: 901px) {
  .ads-carousel--desktop-center {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    align-items: stretch;
  }
  .ads-carousel--desktop-center .ad-slide {
    width: min(100%, 760px);
    margin-inline: auto;
    justify-self: center;
  }
  .ads-carousel--desktop-center .ad-slide__copy {
    text-align: left;
    flex: 1 1 auto;
  }
}
.ad-slide__thumb--desktop-center {
  flex: 0 0 140px;
  width: 140px;
  height: 90px;
  object-fit: contain;
}
.message-attachment-image-wrap {
  position: relative;
  display: inline-flex;
  align-items: flex-start;
}
.message-attachment-image {
  width: min(100%, 280px);
  max-width: 280px;
  border-radius: 16px;
  border: 1px solid var(--line);
  display: block;
}
.message-attachment-delete-overlay {
  position: absolute;
  top: 8px;
  right: 8px;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 8px 20px rgba(0,0,0,.12);
}
.chat-list-side .status-pill {
  max-width: 220px;
  text-align: center;
  white-space: normal;
  line-height: 1.25;
}


/* ANON_CHAT_CENTER_PATCH_MAR2026 */
.anon-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: stretch;
}

.anon-actions-main {
  display: flex;
  justify-content: center;
  align-items: center;
}

.anon-start-btn {
  min-width: 220px;
  min-height: 58px;
  font-size: 1.05rem;
  border-radius: 20px;
}

.anon-actions-secondary {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 14px;
  flex-wrap: wrap;
}

.anon-side-btn {
  min-width: 220px;
  min-height: 58px;
  text-align: center;
  white-space: normal;
  line-height: 1.25;
  border-radius: 20px;
}

@media (max-width: 640px) {
  .anon-start-btn,
  .anon-side-btn {
    width: 100%;
    min-width: 0;
  }

  .anon-actions-secondary {
    flex-direction: column;
  }
}


/* CHAT_FILE_INPUT_FIX_MAR2026 */
.chat-hidden-file {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  left: -9999px !important;
  top: 0 !important;
  display: block !important;
}

.chat-inline-status {
  min-height: 22px;
  white-space: normal;
  word-break: break-word;
}


/* CHAT_IMAGE_PREVIEW_MODAL_CSS_MAR2026 */
.message-attachment-image-trigger {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  display: block;
  cursor: zoom-in;
}

.chat-image-preview-open {
  overflow: hidden;
}

.chat-image-preview-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 9999;
}

.chat-image-preview-modal.is-open {
  display: flex;
}

.chat-image-preview-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 16, 24, 0.82);
  backdrop-filter: blur(4px);
}

.chat-image-preview-dialog {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 96vw;
  max-height: 92vh;
}

.chat-image-preview-full {
  display: block;
  max-width: min(96vw, 980px);
  max-height: 88vh;
  width: auto;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
  background: #fff;
}

.chat-image-preview-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #241a25;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

@media (max-width: 640px) {
  .chat-image-preview-modal {
    padding: 14px;
  }

  .chat-image-preview-full {
    max-width: 94vw;
    max-height: 82vh;
    border-radius: 14px;
  }

  .chat-image-preview-close {
    top: -10px;
    right: -6px;
    width: 38px;
    height: 38px;
    font-size: 28px;
  }
}


/* PATCH_VOICE_PROFILE_ANON_2026_CSS */
.anon-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: stretch;
}
.anon-actions-main {
  display: flex;
  justify-content: center;
}
.anon-start-btn {
  min-width: 220px;
  min-height: 58px;
  border-radius: 20px;
}
.anon-actions-secondary {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.anon-side-btn {
  min-width: 220px;
  min-height: 58px;
  white-space: normal;
  line-height: 1.25;
  border-radius: 20px;
}
#anon-end.is-hidden {
  display: none !important;
}
#anon-form.is-disabled {
  opacity: .72;
}
@media (max-width: 640px) {
  .anon-actions-secondary {
    flex-direction: column;
  }
  .anon-start-btn,
  .anon-side-btn {
    width: 100%;
    min-width: 0;
  }
}


/* LIMITED_CHAT_WARNING_PATCH_2026 */
.chat-limit-warning {
  margin: 12px 0 14px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 105, 180, 0.08);
  border: 1px solid rgba(255, 105, 180, 0.20);
  color: #8a4b64;
  font-size: 0.96rem;
  line-height: 1.35;
}
.chat-limit-warning strong {
  display: block;
  margin-bottom: 4px;
  color: #d95c97;
}
.chat-limit-warning.is-hidden {
  display: none !important;
}


/* CHAT_WEBAPP_FIX_MAR2026 */
.chat-input-wrap textarea {
  width: 100%;
  min-height: 44px;
  max-height: 120px;
  border: 0;
  outline: none;
  resize: none;
  background: transparent;
  padding: 0;
  font: inherit;
}
.chat-inline-status--accent {
  color: var(--primary);
  font-weight: 700;
}
.chat-pending-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chat-pending-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.96);
  border: 1px solid var(--line);
  font-size: .84rem;
  line-height: 1.2;
}
.chat-pending-chip--voice {
  background: rgba(255,95,154,.10);
  border-color: rgba(255,95,154,.22);
}
.chat-voice-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chat-voice-actions.is-hidden,
.chat-pending-list.is-hidden,
.chat-inline-status.is-hidden {
  display: none !important;
}
.modern-chat-form.is-sending {
  opacity: .92;
}
.modern-chat-form.is-sending .composer-send-btn::after {
  content: '…';
}
.message-attachment-download {
  font-size: .82rem;
  color: var(--muted);
}
.message-attachment-audio {
  flex-wrap: wrap;
  align-items: center;
}
.message-attachment-audio audio {
  flex: 1 1 220px;
  min-width: 220px;
}
@media (max-width: 820px) {
  .chat-card-shell {
    padding: 12px !important;
  }
  .modern-chat-header {
    gap: 10px;
  }
  .modern-chat-box {
    min-height: 44dvh !important;
    max-height: calc(100dvh - 310px) !important;
    padding: 12px !important;
    border-radius: 22px !important;
  }
  .modern-chat-form {
    position: sticky;
    bottom: calc(env(safe-area-inset-bottom) + 8px);
    z-index: 5;
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    padding: 10px;
    border-radius: 24px;
    background: rgba(253,247,250,.96);
    backdrop-filter: blur(10px);
    box-shadow: 0 12px 32px rgba(36,22,32,.08);
  }
  .composer-send-btn {
    grid-column: 1 / -1;
    width: 100%;
  }
  .composer-icon-btn {
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
  }
  .chat-input-wrap {
    min-height: 50px;
    border-radius: 20px;
    padding: 10px 12px;
  }
  .message-bubble {
    max-width: 92% !important;
    padding: 12px !important;
  }
  .message-attachment-image {
    width: min(100%, 220px) !important;
    max-width: 220px !important;
  }
  .message-attachment-audio audio {
    min-width: 0;
    width: 100%;
  }
}


/* ANDROID_AUDIO_FIX_MAR2026 */
.message-attachment-audio {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.message-attachment-audio audio {
  display: block;
  width: min(100%, 320px);
  min-width: 220px;
}
.message-attachment-download-link {
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
}
.message-attachment-download-link:hover {
  text-decoration: underline;
}
.chat-inline-status {
  min-height: 20px;
}


/* PATCH_CHAT_FILENAME_OVERFLOW_MAR2026 */
.chat-input-wrap,
.chat-pending-list {
  min-width: 0;
  max-width: 100%;
  width: 100%;
}

.chat-input-wrap {
  overflow: hidden;
}

.chat-pending-list {
  overflow: hidden;
}

.chat-pending-chip {
  min-width: 0;
  max-width: 100%;
  flex: 1 1 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.chat-inline-status {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* === CHAT HUB REDESIGN MAR 2026 === */
.chat-hub {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.chat-hub__header {
  padding: 20px;
}

.chat-hub__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.chat-hub__eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(243,216,231,.95);
  color: #9b7386;
  font-size: .8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.chat-hub__title {
  margin: 10px 0 6px;
  font-size: clamp(1.7rem, 3vw, 2.15rem);
}

.chat-hub__subtitle {
  margin: 0;
  max-width: 560px;
}

.chat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.chat-tab,
.chat-filter-menu__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(243,216,231,.96);
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(55, 28, 40, .05);
}

.chat-tab span,
.chat-filter-menu__link span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255,95,154,.12);
  color: #ca4a82;
  font-size: .8rem;
}

.chat-tab.is-active,
.chat-filter-menu__link.is-active {
  background: linear-gradient(135deg, rgba(255,95,154,.18), rgba(142,156,255,.16));
  border-color: rgba(255,95,154,.3);
  color: var(--primary);
}

.chat-filter-menu {
  position: relative;
}

.chat-filter-menu[open] summary::-webkit-details-marker {
  display: none;
}

.chat-filter-menu__trigger {
  list-style: none;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  border: 1px solid rgba(243,216,231,.96);
  background: rgba(255,255,255,.92);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(58, 30, 42, .06);
}

.chat-filter-menu__trigger svg {
  width: 22px;
  height: 22px;
}

.chat-filter-menu__sheet {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 20;
  min-width: 220px;
  padding: 10px;
  border-radius: 20px;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(243,216,231,.96);
  box-shadow: 0 18px 42px rgba(41, 22, 30, .14);
  display: grid;
  gap: 8px;
}

.chat-thread-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-thread-card {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 8px;
  padding: 10px;
  border-radius: 28px;
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(255,255,255,.96);
  box-shadow: 0 18px 42px rgba(45, 22, 33, .08);
}

.chat-thread-card.is-favorite {
  box-shadow: 0 22px 48px rgba(255, 95, 154, 0.11);
}

.chat-thread-card__main {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  color: inherit;
  padding: 6px;
}

.chat-thread-card__avatar-wrap,
.chat-sheet__avatar-wrap,
.chat-room-profile__avatar-wrap {
  position: relative;
  flex: 0 0 auto;
}

.chat-thread-card__avatar {
  width: 72px;
  height: 72px;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: 0 12px 28px rgba(40, 20, 30, .08);
}

.chat-thread-card__online,
.chat-sheet__online,
.chat-room-profile__online {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: #32c06f;
  box-shadow: 0 0 0 4px rgba(50,192,111,.16);
}

.chat-thread-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-thread-card__topline,
.chat-thread-card__bottomline,
.chat-thread-card__name-row,
.chat-sheet__headline,
.chat-room-profile__headline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.chat-thread-card__name-row {
  justify-content: flex-start;
  min-width: 0;
}

.chat-thread-card__name {
  min-width: 0;
  font-size: 1.12rem;
  line-height: 1.15;
}

.chat-thread-card__verify {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: #4da6ff;
}

.chat-thread-card__verify svg {
  width: 100%;
  height: 100%;
}

.chat-thread-card__meta {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 0 auto;
}

.chat-thread-card__flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(243,216,231,.96);
  font-size: .82rem;
}

.chat-thread-card__time,
.chat-sheet__time {
  font-size: .82rem;
  font-weight: 700;
  color: #a28c98;
  white-space: nowrap;
}

.chat-thread-card__subtitle-wrap {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.chat-thread-card__subtitle {
  margin: 0;
  color: #3a2831;
  font-size: .98rem;
  line-height: 1.42;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.chat-thread-card__status,
.chat-room-profile__status,
.chat-sheet__subline {
  color: #9a8691;
  font-size: .85rem;
}

.chat-thread-card__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), #ff87b3);
  color: #fff;
  font-size: .82rem;
  font-weight: 800;
  box-shadow: 0 14px 26px rgba(255,95,154,.24);
  flex: 0 0 auto;
}

.chat-thread-card__menu,
.chat-room-menu,
.chat-room-back,
.chat-room-icon-btn {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  border: 1px solid rgba(243,216,231,.96);
  background: rgba(255,255,255,.94);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  box-shadow: 0 12px 24px rgba(53, 27, 38, .06);
}

.chat-thread-card__menu svg,
.chat-room-menu svg,
.chat-room-back svg,
.chat-room-icon-btn svg,
.chat-room-send-btn svg {
  width: 22px;
  height: 22px;
}

.chat-sheet {
  position: fixed;
  inset: 0;
  z-index: 10060;
  display: none;
}

.chat-sheet.is-open {
  display: block;
}

.chat-sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(22, 18, 24, .36);
  backdrop-filter: blur(10px);
}

.chat-sheet__panel {
  position: absolute;
  left: 50%;
  bottom: max(20px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(92vw, 430px);
  padding: 14px;
  border-radius: 28px;
  background: rgba(255,255,255,.97);
  border: 1px solid rgba(255,255,255,.92);
  box-shadow: 0 28px 80px rgba(30, 18, 26, .22);
}

.chat-sheet__preview {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(250,242,247,.95));
  border: 1px solid rgba(243,216,231,.96);
}

.chat-sheet__avatar {
  width: 72px;
  height: 72px;
  border-radius: 24px;
  object-fit: cover;
}

.chat-sheet__copy {
  flex: 1;
  min-width: 0;
}

.chat-sheet__headline strong {
  min-width: 0;
  font-size: 1.08rem;
}

.chat-sheet__subline {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.chat-sheet__actions {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.chat-sheet__action {
  min-height: 58px;
  padding: 0 16px;
  border-radius: 20px;
  border: 1px solid rgba(243,216,231,.96);
  background: rgba(255,255,255,.92);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  color: var(--text);
  box-shadow: 0 10px 24px rgba(58, 30, 42, .05);
}

.chat-sheet__action-icon {
  font-size: 1.1rem;
}

.chat-sheet__action--danger {
  color: #e05a71;
}

.chat-room-shell {
  padding: 16px;
}

.chat-room-topbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.chat-room-profile {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
}

.chat-room-profile__avatar {
  width: 58px;
  height: 58px;
  border-radius: 20px;
  object-fit: cover;
}

.chat-room-profile__copy {
  min-width: 0;
}

.chat-room-profile__headline {
  justify-content: flex-start;
  margin-bottom: 4px;
}

.chat-room-box {
  border-radius: 30px;
  padding: 18px;
  background:
    radial-gradient(circle at top right, rgba(255,95,154,.10), transparent 32%),
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(250,242,247,.9));
}

.chat-room-form {
  margin-top: 14px;
}

.chat-room-input-wrap {
  padding: 12px 16px;
  border-radius: 24px;
  background: rgba(255,255,255,.96);
}

.chat-room-send-btn {
  min-width: 120px;
}

.chat-room-send-btn span {
  display: inline-flex;
}

.message-bubble {
  border-radius: 24px;
}

.message-self {
  background: linear-gradient(135deg, rgba(255,95,154,.18), rgba(255,213,228,.96));
}

.message-other {
  background: rgba(255,255,255,.98);
}

body.chat-sheet-open {
  overflow: hidden;
}

@media (max-width: 820px) {
  .chat-hub__header {
    padding: 16px;
  }

  .chat-hub__top {
    align-items: center;
  }

  .chat-thread-card {
    padding: 8px;
    border-radius: 24px;
  }

  .chat-thread-card__main {
    gap: 12px;
  }

  .chat-thread-card__avatar,
  .chat-sheet__avatar {
    width: 64px;
    height: 64px;
    border-radius: 20px;
  }

  .chat-thread-card__name {
    font-size: 1rem;
  }

  .chat-thread-card__menu,
  .chat-room-menu,
  .chat-room-back,
  .chat-room-icon-btn {
    width: 48px;
    height: 48px;
    border-radius: 16px;
  }

  .chat-room-shell {
    padding: 12px;
  }

  .chat-room-topbar {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
  }

  .chat-room-profile__avatar {
    width: 52px;
    height: 52px;
    border-radius: 18px;
  }

  .chat-room-send-btn span {
    display: none;
  }

  .chat-room-send-btn {
    min-width: 52px;
    width: 52px;
    padding: 0;
  }
}

@media (max-width: 560px) {
  .chat-tabs {
    flex-wrap: nowrap;
    overflow: auto;
    padding-bottom: 2px;
  }

  .chat-tab {
    white-space: nowrap;
  }

  .chat-thread-card__topline,
  .chat-thread-card__bottomline {
    align-items: flex-start;
  }

  .chat-thread-card__main {
    align-items: flex-start;
  }

  .chat-thread-card__meta {
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
  }

  .chat-thread-card__subtitle {
    -webkit-line-clamp: 3;
  }

  .chat-sheet__panel {
    width: calc(100vw - 16px);
    border-radius: 24px;
    bottom: max(8px, env(safe-area-inset-bottom));
  }
}

/* === CHAT MAMBA-LIKE REDESIGN MAR 2026 === */
body.page-chat-chat_list,
body.page-chat-chat_detail {
  background: #f7f7f8;
}

body.page-chat-chat_list .topbar,
body.page-chat-chat_detail .topbar,
body.page-chat-chat_list .footer-note,
body.page-chat-chat_detail .footer-note {
  display: none;
}

body.page-chat-chat_list main,
body.page-chat-chat_detail main {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

body.page-chat-chat_list .app-shell,
body.page-chat-chat_detail .app-shell {
  max-width: 100%;
  padding: 0;
}

body.page-chat-chat_list .mobile-bottom-nav,
body.page-chat-chat_detail .mobile-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  padding: 8px 10px calc(env(safe-area-inset-bottom) + 8px);
  background: rgba(255,255,255,.96);
  border-top: 1px solid rgba(0,0,0,.06);
  backdrop-filter: blur(16px);
  box-shadow: 0 -10px 24px rgba(0,0,0,.04);
}

body.page-chat-chat_list .mobile-bottom-nav .nav-item,
body.page-chat-chat_detail .mobile-bottom-nav .nav-item {
  min-width: 0;
  gap: 0;
}

body.page-chat-chat_list .mobile-bottom-nav .nav-item small,
body.page-chat-chat_detail .mobile-bottom-nav .nav-item small {
  display: none;
}

body.page-chat-chat_list .mobile-bottom-nav .nav-item__icon,
body.page-chat-chat_detail .mobile-bottom-nav .nav-item__icon {
  width: 28px;
  height: 28px;
}

body.page-chat-chat_list .mobile-bottom-nav .nav-item.active,
body.page-chat-chat_detail .mobile-bottom-nav .nav-item.active {
  color: #232323;
}

.m-chat-page {
  min-height: calc(100dvh - 84px);
  padding: 14px 0 calc(86px + env(safe-area-inset-bottom));
  background: #f7f7f8;
}

.m-chat-page__header {
  position: sticky;
  top: 0;
  z-index: 15;
  padding: 8px 16px 10px;
  background: rgba(247,247,248,.94);
  backdrop-filter: blur(14px);
}

.m-chat-page__header-row {
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  align-items: center;
  gap: 8px;
}

.m-chat-page__ghost {
  display: block;
  width: 36px;
  height: 36px;
}

.m-chat-page__title {
  margin: 0;
  text-align: center;
  font-size: 2rem;
  line-height: 1.1;
  font-weight: 800;
  color: #181818;
}

.m-chat-page__filter {
  position: relative;
}

.m-chat-page__filter[open] summary::-webkit-details-marker { display: none; }

.m-chat-page__filter-btn {
  list-style: none;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #111;
  background: transparent;
  cursor: pointer;
}

.m-chat-page__filter-btn svg {
  width: 22px;
  height: 22px;
}

.m-chat-page__filter-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 190px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 18px 46px rgba(0,0,0,.14);
  border: 1px solid rgba(0,0,0,.06);
  display: grid;
  gap: 4px;
}

.m-chat-page__filter-link {
  min-height: 42px;
  padding: 0 12px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  color: #171717;
  text-decoration: none;
  font-weight: 600;
}

.m-chat-page__filter-link.is-active {
  background: #f3f3f4;
}

.m-chat-page__tabs {
  padding-top: 10px;
  min-height: 34px;
}

.m-chat-page__tab {
  display: inline-flex;
  position: relative;
  color: #151515;
  text-decoration: none;
  font-size: 1rem;
  line-height: 1.2;
  font-weight: 500;
  padding-bottom: 6px;
}

.m-chat-page__tab.is-active::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: #cfcfd2;
}

.m-chat-page__tab.is-secondary {
  margin-left: 18px;
  color: #8c8c90;
}

.m-chat-page__list {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0 10px;
}

.m-chat-row {
  position: relative;
  border-radius: 28px;
  background: transparent;
}

.m-chat-row + .m-chat-row {
  margin-top: 2px;
}

.m-chat-row__main {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 42px 14px 12px;
  text-decoration: none;
  color: inherit;
}

.m-chat-row__avatar-wrap,
.m-chat-room__avatar-wrap,
.chat-sheet__avatar-wrap {
  position: relative;
  flex: 0 0 auto;
}

.m-chat-row__avatar,
.chat-sheet__avatar {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.m-chat-room__avatar {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  object-fit: cover;
  display: block;
}

.m-chat-row__online,
.chat-sheet__online {
  position: absolute;
  right: 3px;
  bottom: 5px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #28c756;
  border: 2px solid #fff;
}

.m-chat-row__online.is-hidden,
.chat-sheet__online.is-hidden {
  display: none !important;
}

.m-chat-row__body {
  min-width: 0;
  flex: 1;
}

.m-chat-row__top,
.m-chat-row__bottom,
.m-chat-row__name-wrap,
.m-chat-room__person-top,
.chat-sheet__headline {
  display: flex;
  align-items: center;
  gap: 8px;
}

.m-chat-row__top,
.m-chat-row__bottom {
  justify-content: space-between;
}

.m-chat-row__name-wrap,
.m-chat-room__person-top {
  min-width: 0;
  flex-wrap: nowrap;
}

.m-chat-row__name,
.m-chat-room__person-top strong,
.chat-sheet__headline strong {
  min-width: 0;
  font-size: 1.12rem;
  line-height: 1.15;
  font-weight: 800;
  color: #1a1a1c;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.m-chat-row__verify {
  display: inline-flex;
  width: 20px;
  height: 20px;
  color: #43a6ff;
  flex: 0 0 auto;
}

.m-chat-row__verify svg,
.chat-sheet__action-icon svg,
.m-chat-row__pin svg,
.m-chat-row__mute svg,
.m-chat-room__back svg,
.m-chat-room__menu svg,
.m-chat-room__plus svg,
.m-chat-room__voice svg,
.m-chat-room__send svg {
  width: 100%;
  height: 100%;
}

.m-chat-row__time,
.chat-sheet__time {
  flex: 0 0 auto;
  font-size: .92rem;
  color: #b3b3b7;
  white-space: nowrap;
}

.m-chat-row__text-wrap {
  min-width: 0;
  flex: 1;
}

.m-chat-row__text,
.m-chat-row__sub,
.m-chat-room__person-status,
.chat-sheet__subline {
  margin: 0;
  color: #6f6f75;
}

.m-chat-row__text {
  font-size: 1rem;
  line-height: 1.28;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.m-chat-row__sub,
.m-chat-room__person-status,
.chat-sheet__subline {
  font-size: .92rem;
  line-height: 1.25;
}

.m-chat-row__aside {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: 24px;
  padding-left: 8px;
}

.m-chat-row__badge {
  min-width: 14px;
  height: 14px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ff5b2e;
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(255,91,46,.28);
}

.m-chat-row__pin,
.m-chat-row__mute {
  width: 18px;
  height: 18px;
  color: #262629;
  display: inline-flex;
}

.m-chat-row__menu {
  position: absolute;
  top: 12px;
  right: 4px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #141416;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.m-chat-row__menu svg {
  width: 18px;
  height: 18px;
}

.chat-sheet {
  position: fixed;
  inset: 0;
  z-index: 10060;
  display: none;
}

.chat-sheet.is-open { display: block; }

.chat-sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(35,35,38,.26);
  backdrop-filter: blur(9px);
}

.chat-sheet__panel {
  position: absolute;
  inset: auto 12px 18px 12px;
  max-width: 560px;
  margin: 0 auto;
}

.chat-sheet__preview {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,.98);
  border-radius: 34px;
  padding: 12px 18px;
  box-shadow: 0 20px 48px rgba(0,0,0,.12);
}

.chat-sheet__copy {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 7px;
}

.chat-sheet__headline {
  justify-content: space-between;
}

.chat-sheet__actions {
  margin-top: 10px;
  background: rgba(255,255,255,.99);
  border-radius: 26px;
  box-shadow: 0 20px 48px rgba(0,0,0,.12);
  overflow: hidden;
}

.chat-sheet__action {
  width: 100%;
  min-height: 62px;
  padding: 0 18px;
  border: 0;
  background: #fff;
  color: #171719;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 500;
}

.chat-sheet__action + .chat-sheet__action {
  border-top: 1px solid rgba(0,0,0,.06);
}

.chat-sheet__action-icon {
  width: 24px;
  height: 24px;
  color: #1d1d1f;
  flex: 0 0 auto;
}

.chat-sheet__action--danger,
.chat-sheet__action--danger .chat-sheet__action-icon {
  color: #ff5a36;
}

.m-chat-room {
  min-height: calc(100dvh - 84px);
  padding: 0 0 calc(88px + env(safe-area-inset-bottom));
  background: #f4f4f5;
}

.m-chat-room__header {
  position: sticky;
  top: 0;
  z-index: 16;
  display: grid;
  grid-template-columns: 42px minmax(0,1fr) 42px;
  align-items: center;
  gap: 10px;
  min-height: 78px;
  padding: 10px 16px;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid rgba(0,0,0,.06);
  backdrop-filter: blur(16px);
}

.m-chat-room__back,
.m-chat-room__menu {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #111;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.m-chat-room__person {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.m-chat-room__person-copy {
  min-width: 0;
}

.m-chat-room__person-status {
  margin-top: 3px;
}

.m-chat-room__limit {
  margin: 10px 16px 0;
}

.m-chat-room__box {
  min-height: calc(100dvh - 188px);
  max-height: none !important;
  padding: 12px 14px 16px;
  border: 0 !important;
  border-radius: 0 !important;
  background: #f4f4f5 !important;
  box-shadow: none !important;
}

.m-chat-room__box .empty-state {
  background: transparent;
  box-shadow: none;
}

.message-day-separator {
  display: flex;
  justify-content: center;
  margin: 10px 0 12px;
}

.message-day-separator__pill {
  min-height: 28px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(120,120,130,.52);
  color: #fff;
  font-size: .92rem;
  display: inline-flex;
  align-items: center;
}

.message-row {
  display: flex;
  margin: 4px 0 12px;
}

.message-row--self { justify-content: flex-end; }
.message-row--other { justify-content: flex-start; }

.message-bubble {
  max-width: min(76%, 360px);
  padding: 14px 16px 10px;
  border-radius: 22px;
  box-shadow: none;
}

.message-self {
  background: #f6dcec;
  color: #212125;
  border-bottom-right-radius: 8px;
}

.message-other {
  background: #ededf0;
  color: #212125;
  border-bottom-left-radius: 8px;
}

.message-body {
  font-size: 1rem;
  line-height: 1.35;
  white-space: pre-wrap;
  word-break: break-word;
}

.message-meta {
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  font-size: .82rem;
  color: rgba(0,0,0,.42);
}

.message-meta__ticks {
  display: inline-flex;
  color: rgba(0,0,0,.38);
  font-size: .9rem;
}

.message-attachments {
  margin-top: 8px;
}

.m-chat-room__composer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(62px + env(safe-area-inset-bottom));
  z-index: 18;
  display: grid;
  grid-template-columns: 46px minmax(0,1fr) 38px 46px;
  align-items: end;
  gap: 10px;
  padding: 10px 14px;
  background: transparent;
}

.m-chat-room__plus,
.m-chat-room__voice,
.m-chat-room__send {
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.m-chat-room__plus {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #212124;
  color: #fff;
}

.m-chat-room__voice {
  width: 38px;
  height: 46px;
  background: transparent;
  color: #8d8d93;
}

.m-chat-room__send {
  width: 46px;
  height: 46px;
  border-radius: 18px;
  background: #ededf0;
  color: #2a2a2d;
}

.m-chat-room__input-wrap {
  min-height: 46px;
  padding: 10px 14px;
  border-radius: 18px;
  background: #ededf0;
  border: 0;
  box-shadow: none;
}

.m-chat-room__input-wrap textarea {
  min-height: 24px;
  max-height: 120px;
  padding: 0;
  font-size: 1rem;
  line-height: 1.3;
  background: transparent;
}

.m-chat-room__input-wrap textarea::placeholder {
  color: #9a9aa0;
}

@media (hover: hover) and (pointer: fine) {
  .m-chat-row__menu {
    display: inline-flex;
  }
}

@media (max-width: 820px) {
  .m-chat-page {
    padding-bottom: calc(84px + env(safe-area-inset-bottom));
  }

  .m-chat-page__title {
    font-size: 1.85rem;
  }

  .m-chat-row__main {
    padding: 12px 10px;
  }

  .m-chat-row__avatar,
  .chat-sheet__avatar {
    width: 74px;
    height: 74px;
  }

  .m-chat-room__header {
    min-height: 74px;
  }

  .m-chat-room__box {
    padding-left: 10px;
    padding-right: 10px;
  }

  .message-bubble {
    max-width: 86%;
  }

  .m-chat-room__composer {
    grid-template-columns: 44px minmax(0,1fr) 34px 44px;
    gap: 8px;
    padding: 8px 10px;
  }

  .m-chat-room__plus,
  .m-chat-room__send {
    width: 44px;
    height: 44px;
  }
}

/* === CHAT BUGFIX + COMPOSER POLISH MAR 2026 === */
body.page-chat-chat_detail .mobile-bottom-nav {
  display: none !important;
}

body.page-chat-chat_list .mobile-bottom-nav {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  width: calc(100vw - 16px);
  max-width: 460px;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  bottom: calc(8px + env(safe-area-inset-bottom));
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,.96);
  box-shadow: 0 22px 44px rgba(36,22,32,.12);
}

body.page-chat-chat_list .mobile-bottom-nav .nav-item {
  min-width: 0;
}

body.chat-sheet-open .mobile-bottom-nav {
  opacity: 0;
  pointer-events: none;
  transform: translateY(110%);
  transition: opacity .18s ease, transform .18s ease;
}

.chat-sheet__panel {
  left: 12px;
  right: 12px;
  width: auto;
  max-width: 420px;
  margin: 0 auto;
  transform: none;
  max-height: calc(100dvh - 24px);
  overflow: auto;
  overscroll-behavior: contain;
}

.chat-sheet__actions {
  max-height: min(58dvh, 420px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

body.page-chat-chat_detail .m-chat-room {
  padding-bottom: calc(96px + env(safe-area-inset-bottom));
}

body.page-chat-chat_detail .m-chat-room__box {
  min-height: calc(100dvh - 154px);
  padding-bottom: calc(132px + env(safe-area-inset-bottom));
}

body.page-chat-chat_detail .m-chat-room__composer {
  bottom: calc(8px + env(safe-area-inset-bottom));
  grid-template-columns: 48px minmax(0,1fr) 40px 48px;
  gap: 10px;
  padding: 10px 12px;
}

.m-chat-room__input-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-height: 50px;
  padding: 9px 14px;
  border-radius: 20px;
}

.m-chat-room__input-wrap textarea {
  width: 100%;
  resize: none;
  border: 0;
  outline: 0;
  box-shadow: none;
}

.chat-inline-status {
  min-height: 0;
  font-size: .8rem;
  line-height: 1.25;
}

.chat-pending-list {
  gap: 6px;
}

.chat-pending-chip {
  min-height: 28px;
  padding: 6px 10px;
  background: #ffffff;
  border: 1px solid rgba(232, 194, 214, .95);
  color: #5f5560;
}

.chat-pending-chip--voice {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  max-width: 100%;
  background: #f9ebf3;
  border-color: rgba(243, 188, 216, .95);
  color: #7f4d69;
}

.chat-pending-chip__label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-pending-chip__remove {
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(0,0,0,.06);
  color: #5b5360;
  font-size: 16px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.m-chat-room__plus,
.m-chat-room__send {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.m-chat-room__plus {
  box-shadow: 0 12px 24px rgba(16,16,18,.16);
}

.m-chat-room__voice {
  width: 40px;
  height: 48px;
  border-radius: 16px;
  color: #8e8e95;
}

.m-chat-room__send {
  background: #ededf0;
  color: #1f2024;
}

.m-chat-room__send svg {
  width: 24px;
  height: 24px;
}

#voice-record-btn.recording {
  color: #ff5b83;
}

@media (max-width: 820px) {
  body.page-chat-chat_detail .m-chat-room__composer {
    grid-template-columns: 46px minmax(0,1fr) 38px 46px;
    gap: 8px;
    padding: 8px 10px;
  }

  .m-chat-room__plus,
  .m-chat-room__send {
    width: 46px;
    height: 46px;
  }

  .m-chat-room__voice {
    width: 38px;
    height: 46px;
  }

  .chat-sheet__panel {
    left: 10px;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom));
  }
}

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

.chat-sheet__chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: #f4f4f6;
  color: #4f4f56;
  font-size: .86rem;
  font-weight: 600;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-sheet__chip.is-muted {
  color: #8d8d95;
}

.m-chat-row__top {
  padding-right: 18px;
}

.m-chat-row__time {
  font-size: .88rem;
}

.m-chat-row__text {
  color: #6c7280;
}

.m-chat-row__sub {
  margin-top: 2px;
  color: #8b8f99;
}

.m-chat-row__menu:active,
.m-chat-room__menu:active,
.m-chat-room__back:active {
  background: rgba(0,0,0,.06);
}

body.page-chat-chat_list .mobile-bottom-nav .nav-item__icon {
  width: 26px;
  height: 26px;
}

@media (max-width: 480px) {
  body.page-chat-chat_list .mobile-bottom-nav {
    width: calc(100vw - 12px);
    max-width: none;
    padding: 8px 6px calc(env(safe-area-inset-bottom) + 8px);
  }

  .m-chat-row__main {
    padding-right: 38px;
  }

  .m-chat-row__top {
    gap: 6px;
  }

  .chat-sheet__preview {
    padding: 12px 14px;
    border-radius: 28px;
  }
}


/* === FINAL CHAT POLISH PATCH MAR 2026 === */
body.page-chat-chat_list .mobile-bottom-nav {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  align-items: stretch;
}

body.page-chat-chat_list .mobile-bottom-nav .nav-item {
  width: 100%;
  min-width: 0;
  min-height: 68px;
  padding: 8px 4px 9px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  box-sizing: border-box;
}

body.page-chat-chat_list .mobile-bottom-nav .nav-item small {
  display: block !important;
  width: 100%;
  margin: 0;
  font-size: .63rem;
  line-height: 1.05;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.page-chat-chat_list .mobile-bottom-nav .nav-item__icon {
  width: 23px;
  height: 23px;
  flex: 0 0 23px;
}

body.page-chat-chat_list .mobile-bottom-nav .nav-item.active {
  border-radius: 20px;
}

.m-chat-row__badge {
  width: 16px;
  min-width: 16px;
  height: 16px;
  min-height: 16px;
  padding: 0;
  font-size: 0;
  line-height: 0;
  color: transparent;
  background: #ff5b2e;
  box-shadow: 0 8px 16px rgba(255,91,46,.28);
}

.chat-sheet__meta,
[data-chat-sheet-username],
[data-chat-sheet-telegram-id] {
  display: none !important;
}

.chat-sheet__options {
  margin-top: 10px;
  padding: 0 4px;
}

.chat-sheet__checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: #666a73;
  font-size: .92rem;
  line-height: 1.2;
}

.chat-sheet__checkbox input {
  width: 18px;
  height: 18px;
  accent-color: #f06d95;
  flex: 0 0 auto;
}

@media (max-width: 480px) {
  body.page-chat-chat_list .mobile-bottom-nav {
    width: calc(100vw - 12px);
    padding: 8px 6px calc(env(safe-area-inset-bottom) + 8px);
  }

  body.page-chat-chat_list .mobile-bottom-nav .nav-item {
    min-height: 66px;
    padding: 8px 2px 8px;
  }
}

/* === DISCOVERY + NAV REFRESH MAR 2026 === */
.mobile-bottom-nav {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  width: calc(100vw - 16px);
  max-width: 470px;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  bottom: calc(8px + env(safe-area-inset-bottom));
  padding: 8px 8px calc(env(safe-area-inset-bottom) + 8px);
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,.96);
  background: rgba(255,255,255,.96);
  box-shadow: 0 18px 40px rgba(36,22,32,.12);
}

.mobile-bottom-nav .nav-item {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 56px;
  padding: 8px 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  border-radius: 20px;
}

.mobile-bottom-nav .nav-item small {
  display: none !important;
}

.mobile-bottom-nav .nav-item__icon {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
}

.mobile-bottom-nav .nav-item.active {
  color: var(--primary);
  background: linear-gradient(135deg, rgba(255,95,154,.14), rgba(142,156,255,.12));
}

.mobile-bottom-nav .nav-badge--mobile {
  position: absolute;
  top: 4px;
  right: 10px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: .72rem;
  line-height: 1;
}

.discovery-shell {
  padding: 16px 16px 14px;
}

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

.discovery-topbar__ghost {
  width: 40px;
  height: 40px;
}

.discovery-topbar__center {
  text-align: center;
}

.discovery-topbar__center h2 {
  margin: 0;
  font-size: clamp(1.8rem, 5vw, 2.4rem);
}

.discovery-topbar__center p {
  margin: 4px 0 0;
}

.discovery-topbar__filter-btn {
  width: 40px;
  height: 40px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  border: 1px solid rgba(237, 205, 221, .92);
  background: #fff;
  color: #18181b;
  box-shadow: 0 10px 24px rgba(41, 22, 30, .08);
}

.discovery-topbar__filter-btn svg {
  width: 22px;
  height: 22px;
}

.discovery-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.discovery-active-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 243, 248, .95);
  border: 1px solid rgba(242, 211, 226, .95);
  color: #8a5571;
  font-weight: 700;
  font-size: .9rem;
}

.filter-sheet {
  position: fixed;
  inset: 0;
  z-index: 10050;
}

.filter-sheet[hidden] {
  display: none !important;
}

.filter-sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 18, 24, .34);
  backdrop-filter: blur(10px);
}

.filter-sheet__panel {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  width: auto;
  max-width: 520px;
  margin: 0 auto;
  max-height: calc(100dvh - 24px);
  overflow: auto;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,245,249,.97));
  border: 1px solid rgba(248, 223, 234, .96);
  box-shadow: 0 26px 70px rgba(32, 18, 28, .18);
}

.filter-sheet__form {
  display: grid;
  gap: 16px;
  padding: 20px 18px 18px;
}

.filter-sheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.filter-sheet__head h3 {
  margin: 0;
  font-size: 1.5rem;
}

.filter-sheet__close {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: rgba(245, 238, 242, .96);
  color: #2d2430;
  font-size: 1.8rem;
  line-height: 1;
}

.filter-sheet__field {
  display: grid;
  gap: 10px;
}

.filter-sheet__field > span,
.filter-sheet__range-head span {
  font-weight: 800;
  color: #2d1b28;
  font-size: 1rem;
}

.filter-sheet__field input[type="text"],
.filter-sheet__field input[type="search"],
.filter-sheet__field input[type="number"],
.filter-sheet__field select,
.filter-sheet__field .js-city-autocomplete {
  min-height: 54px;
  border-radius: 18px;
  border: 1px solid rgba(241, 210, 225, .98);
  background: #fff;
}

.filter-sheet__toggles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.filter-gender-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.filter-segment {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 14px;
  border-radius: 18px;
  border: 1px solid rgba(228, 221, 226, .96);
  background: #fff;
  color: #2d2430;
  font-weight: 700;
  text-align: center;
}

.filter-segment input {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.filter-segment.is-active {
  background: #241d20;
  color: #fff;
  border-color: #241d20;
}

.filter-sheet__range-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.filter-sheet__range-head strong {
  font-size: 1.1rem;
  color: #241d20;
}

.filter-age-stack {
  display: grid;
  gap: 14px;
  padding: 6px 2px 0;
}

.filter-age-stack input[type="range"] {
  width: 100%;
  margin: 0;
}

.filter-sheet__submit {
  min-height: 56px;
  border-radius: 22px;
  font-size: 1rem;
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.people-card {
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,.99), rgba(255,245,249,.97));
  border: 1px solid rgba(246, 209, 225, .92);
  box-shadow: 0 18px 42px rgba(45, 22, 33, .08);
}

.people-card__media {
  position: relative;
  display: block;
  aspect-ratio: 0.78;
  background: #f4edf1;
}

.people-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.people-card__gradient {
  position: absolute;
  inset: auto 0 0 0;
  height: 34%;
  background: linear-gradient(180deg, rgba(17,17,18,0), rgba(17,17,18,.52));
  pointer-events: none;
}

.people-card__online {
  position: absolute;
  left: 12px;
  top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.94);
  color: #23894d;
  font-size: .74rem;
  font-weight: 800;
}

.people-card__body {
  display: grid;
  gap: 8px;
  padding: 12px 12px 14px;
}

.people-card__name {
  color: #1d1620;
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1.15;
}

.people-card__meta {
  color: #7c6c76;
  font-size: .93rem;
  line-height: 1.2;
}

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

.people-card__tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 243, 248, .92);
  color: #96647d;
  font-size: .74rem;
  font-weight: 700;
}

.people-card__actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 4px;
}

.people-card__icon-btn {
  min-height: 44px;
  border: 1px solid rgba(236, 212, 223, .95);
  border-radius: 16px;
  background: #fff;
  font-size: 1.2rem;
}

.people-card__icon-btn.is-like {
  background: linear-gradient(180deg, #ff7cab, #ff5f9a);
  color: #fff;
  border-color: rgba(255,95,154,.55);
}

.people-card__icon-btn.is-ghost {
  color: #6b5b66;
}

body.filter-sheet-open {
  overflow: hidden;
}

body.page-main-discovery main,
body.page-main-discovery_swipes main {
  padding-top: 0;
}

@media (min-width: 760px) {
  .people-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .people-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .mobile-bottom-nav {
    width: calc(100vw - 12px);
    padding: 8px 6px calc(env(safe-area-inset-bottom) + 8px);
  }

  .mobile-bottom-nav .nav-item {
    min-height: 54px;
  }

  .mobile-bottom-nav .nav-item__icon {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
  }

  .discovery-shell {
    padding: 14px 14px 12px;
  }

  .filter-sheet__panel {
    left: 10px;
    right: 10px;
    bottom: 10px;
    border-radius: 24px;
  }

  .filter-sheet__form {
    padding: 18px 14px 16px;
  }

  .filter-sheet__toggles,
  .filter-gender-grid {
    grid-template-columns: 1fr 1fr;
  }

  .people-grid {
    gap: 12px;
  }

  .people-card {
    border-radius: 24px;
  }

  .people-card__body {
    padding: 10px 10px 12px;
  }

  .people-card__name {
    font-size: 1.04rem;
  }
}

.m-chat-row__badge{background:#ff4d6d !important; box-shadow:0 8px 16px rgba(255,77,109,.24) !important;}
.m-chat-row__badge.is-hidden{display:none !important;}


.chat-sheet__time {
  display: none !important;
}

.chat-sheet__options {
  display: none !important;
}

/* === ANONYMOUS CHAT FULLSCREEN REDESIGN MAR 2026 === */
body.page-anonymous-anonymous_chat_page {
  background: #f7f7f8;
}

body.page-anonymous-anonymous_chat_page .topbar,
body.page-anonymous-anonymous_chat_page .footer-note {
  display: none !important;
}

body.page-anonymous-anonymous_chat_page main {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

body.page-anonymous-anonymous_chat_page .app-shell {
  max-width: 100%;
  padding: 0;
}

.m-chat-room--anonymous {
  position: relative;
  padding-bottom: calc(96px + env(safe-area-inset-bottom));
}

.anon-room__header {
  grid-template-columns: 42px minmax(0,1fr) 42px;
}

.anon-room__person {
  pointer-events: none;
}

.anon-room__avatar-wrap {
  background: linear-gradient(135deg, #f1a9c9, #b694ff);
}

.anon-room__avatar-fallback {
  width: 100%;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.anon-room__avatar-fallback svg {
  width: 28px;
  height: 28px;
}

.anon-room__actionbar {
  display: flex;
  gap: 10px;
  padding: 10px 14px 0;
}

.anon-room__actionbar.is-hidden,
.anon-room__empty-state.is-hidden,
#anon-start.is-hidden,
#anon-next.is-hidden,
#anon-end.is-hidden {
  display: none !important;
}

.anon-room__action {
  flex: 1 1 0;
  min-height: 42px;
  border-radius: 16px;
  border: 0;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(30, 24, 30, 0.08);
  color: #1f2024;
}

.anon-room__action--danger {
  color: #c43d68;
}

.anon-room__box {
  min-height: calc(100dvh - 154px);
  padding-bottom: calc(132px + env(safe-area-inset-bottom));
}

.anon-room__empty-state {
  position: absolute;
  left: 0;
  right: 0;
  top: 96px;
  bottom: calc(92px + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  pointer-events: none;
}

.anon-room__empty-card {
  width: min(100%, 420px);
  padding: 26px 22px;
  border-radius: 28px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 18px 40px rgba(35, 24, 32, 0.10);
  text-align: center;
  pointer-events: auto;
}

.anon-room__empty-icon {
  width: 78px;
  height: 78px;
  margin: 0 auto 16px;
  border-radius: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(241, 169, 201, 0.18), rgba(182, 148, 255, 0.2));
  color: #7c4f68;
}

.anon-room__empty-icon svg {
  width: 34px;
  height: 34px;
}

.anon-room__empty-card h3 {
  margin: 0;
  font-size: 1.45rem;
  color: #1f2024;
}

.anon-room__empty-card p {
  margin: 10px 0 0;
  color: #6c6d75;
  line-height: 1.45;
}

.anon-room__start-btn {
  min-width: 200px;
  min-height: 50px;
  margin-top: 18px;
  border-radius: 18px;
}

.anon-room__composer {
  bottom: calc(8px + env(safe-area-inset-bottom));
  grid-template-columns: minmax(0,1fr) 48px;
  gap: 10px;
  padding: 10px 12px;
}

.anon-room__input-wrap {
  min-height: 50px;
}

.anon-room__input-wrap textarea {
  width: 100%;
  resize: none;
  border: 0;
  outline: 0;
  background: transparent;
}

.anon-room__composer.is-disabled {
  opacity: 0.72;
}

.anon-room__composer.is-disabled .anon-room__input-wrap,
.anon-room__composer.is-disabled .m-chat-room__send {
  pointer-events: none;
}

@media (max-width: 820px) {
  .anon-room__actionbar {
    padding-left: 10px;
    padding-right: 10px;
  }

  .anon-room__empty-state {
    top: 88px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .anon-room__empty-card {
    border-radius: 24px;
    padding: 24px 18px;
  }

  .anon-room__composer {
    grid-template-columns: minmax(0,1fr) 46px;
    gap: 8px;
    padding: 8px 10px;
  }
}


/* === ANON CHAT + NAV FIX MAR 2026 === */
body.page-anonymous-anonymous_chat_page {
  padding-bottom: calc(88px + env(safe-area-inset-bottom));
}

body.page-anonymous-anonymous_chat_page .mobile-bottom-nav,
body.page-chat-chat_list .mobile-bottom-nav {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  width: calc(100vw - 16px);
  max-width: 470px;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  bottom: calc(8px + env(safe-area-inset-bottom));
  padding: 8px 8px calc(env(safe-area-inset-bottom) + 8px);
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,.96);
  background: rgba(255,255,255,.96);
  box-shadow: 0 18px 40px rgba(36,22,32,.12);
}

body.page-anonymous-anonymous_chat_page .mobile-bottom-nav .nav-item,
body.page-chat-chat_list .mobile-bottom-nav .nav-item {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 56px;
  padding: 8px 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  border-radius: 20px;
}

body.page-anonymous-anonymous_chat_page .mobile-bottom-nav .nav-item small,
body.page-chat-chat_list .mobile-bottom-nav .nav-item small {
  display: none !important;
}

body.page-anonymous-anonymous_chat_page .mobile-bottom-nav .nav-item__icon,
body.page-chat-chat_list .mobile-bottom-nav .nav-item__icon {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
}

body.page-anonymous-anonymous_chat_page .mobile-bottom-nav .nav-item.active,
body.page-chat-chat_list .mobile-bottom-nav .nav-item.active {
  color: var(--primary);
  background: linear-gradient(135deg, rgba(255,95,154,.14), rgba(142,156,255,.12));
}

.anon-room__composer.is-hidden {
  display: none !important;
}

.anon-room__box {
  min-height: calc(100dvh - 210px);
  padding-bottom: calc(148px + env(safe-area-inset-bottom));
}

body.page-anonymous-anonymous_chat_page .m-chat-room--anonymous {
  min-height: calc(100dvh - 92px);
  padding-bottom: calc(148px + env(safe-area-inset-bottom));
}

body.page-anonymous-anonymous_chat_page .m-chat-room--anonymous .m-chat-room__header {
  top: 0;
}

body.page-anonymous-anonymous_chat_page .m-chat-room__menu.is-hidden,
body.page-anonymous-anonymous_chat_page [data-anon-filter-toggle].is-hidden {
  display: none !important;
}

body.page-anonymous-anonymous_chat_page .anon-room__empty-state {
  bottom: calc(124px + env(safe-area-inset-bottom));
}

body.page-anonymous-anonymous_chat_page .anon-room__composer {
  bottom: calc(84px + env(safe-area-inset-bottom));
  grid-template-columns: 48px minmax(0,1fr) 40px 48px;
}

body.page-anonymous-anonymous_chat_page .anon-room__input-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-height: 50px;
  padding: 9px 14px;
  border-radius: 20px;
}

body.page-anonymous-anonymous_chat_page .anon-room__input-wrap textarea {
  width: 100%;
  resize: none;
  border: 0;
  outline: 0;
  box-shadow: none;
}

@media (max-width: 820px) {
  body.page-anonymous-anonymous_chat_page .anon-room__composer {
    grid-template-columns: 46px minmax(0,1fr) 38px 46px;
    gap: 8px;
    padding: 8px 10px;
  }
}

/* === CONNECTIONS GLASS REDESIGN MAR 2026 === */
body.page-main-connections {
  overflow-x: clip;
  background:
    radial-gradient(circle at top left, rgba(255, 144, 191, 0.18), transparent 34%),
    radial-gradient(circle at top right, rgba(163, 140, 255, 0.16), transparent 28%),
    linear-gradient(180deg, #fff8fb 0%, #fff 52%, #fff8fb 100%);
}

body.page-main-connections .topbar {
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.78);
}

.connections-shell {
  display: grid;
  gap: 16px;
}

.connections-hero {
  position: relative;
  overflow: hidden;
  padding: 22px 18px;
  border-radius: 30px;
  background: linear-gradient(145deg, rgba(255,255,255,.92), rgba(255,245,250,.84));
  border: 1px solid rgba(247, 214, 228, 0.96);
  box-shadow: 0 22px 48px rgba(62, 29, 42, 0.08);
}

.connections-hero__content {
  position: relative;
  z-index: 2;
}

.connections-hero__eyebrow {
  margin: 0 0 8px;
  color: #b05f84;
  font-size: .85rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.connections-hero h2 {
  margin: 0;
  font-size: clamp(1.55rem, 4.8vw, 2.15rem);
  line-height: 1.02;
  color: #23151d;
  max-width: 12ch;
}

.connections-hero h3 {
  margin: 0;
  font-size: clamp(1.4rem, 4.4vw, 1.95rem);
  line-height: 1.04;
  color: #23151d;
  max-width: 12ch;
}

.connections-hero .section-title-row {
  align-items: flex-start;
  margin-bottom: 10px;
}

.connections-hero .section-title-row .connections-hero__eyebrow {
  margin: 0;
}

.connections-hero__glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(10px);
}

.connections-hero__glow--one {
  width: 180px;
  height: 180px;
  top: -56px;
  right: -22px;
  background: rgba(255, 108, 164, 0.2);
}

.connections-hero__glow--two {
  width: 150px;
  height: 150px;
  left: -34px;
  bottom: -64px;
  background: rgba(147, 125, 255, 0.18);
}

.connections-summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.connections-summary-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  min-width: 0;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.52);
  border: 1px solid rgba(255,255,255,.74);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72);
  backdrop-filter: blur(16px);
  color: #33232c;
}

.connections-summary-pill span {
  font-size: .95rem;
  line-height: 1;
}

.connections-summary-pill strong {
  font-size: .98rem;
  line-height: 1;
}

.connections-tabs {
  position: sticky;
  top: 10px;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 6px;
  border-radius: 22px;
  background: rgba(255,255,255,.56);
  border: 1px solid rgba(248, 223, 235, .96);
  box-shadow: 0 14px 28px rgba(54, 28, 38, .08);
  backdrop-filter: blur(18px);
}

.connections-tab {
  position: relative;
  min-width: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 4px;
  min-height: 76px;
  padding: 10px 6px 8px;
  border-radius: 16px;
  color: #7d6672;
  text-align: center;
  text-decoration: none;
  background: rgba(255,255,255,.04);
  transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}

.connections-tab:hover {
  transform: translateY(-1px);
  color: #563846;
}

.connections-tab.is-active {
  color: #24161f;
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,245,249,.82));
  box-shadow: 0 10px 22px rgba(68, 32, 47, .1);
}

.connections-tab__icon {
  font-size: .95rem;
  line-height: 1;
}

.connections-tab__label {
  min-width: 0;
  max-width: 100%;
  font-size: .72rem;
  font-weight: 800;
  line-height: 1.05;
  white-space: nowrap;
}

.connections-tab__count {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(244, 220, 232, .92);
  color: #8c5570;
  font-size: .72rem;
  font-weight: 800;
}

.connections-panels {
  display: grid;
  min-width: 0;
}

.connections-panel,
.connections-letters {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 18px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(255,247,250,.9));
  border: 1px solid rgba(247, 219, 232, .96);
  box-shadow: 0 22px 48px rgba(60, 29, 41, 0.07);
}

.connections-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  margin-bottom: 16px;
}

.connections-panel__head > div {
  min-width: 0;
}

.connections-panel__head h3 {
  margin: 0;
  color: #22161d;
  font-size: 1.28rem;
}

.connections-panel__head p {
  margin: 6px 0 0;
  max-width: 30rem;
}

.connections-panel__footer {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.connections-empty {
  min-height: 200px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.8), rgba(255,245,249,.72));
  border: 1px dashed rgba(234, 205, 220, .96);
}

.connections-carousel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  min-width: 0;
  overflow: visible;
  padding: 4px 0 2px;
}

.connections-card {
  overflow: hidden;
  display: grid;
  align-content: start;
  min-width: 0;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,245,250,.93));
  border: 1px solid rgba(245, 218, 230, .96);
  box-shadow: 0 16px 34px rgba(60, 29, 41, .08);
}

.connections-card--violet {
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,244,255,.94));
}

.connections-card--gold {
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,249,240,.95));
}

.connections-card__media {
  position: relative;
  display: block;
  aspect-ratio: .78;
  background: #f6eef3;
}

.connections-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.connections-card__gradient {
  position: absolute;
  inset: auto 0 0 0;
  height: 38%;
  background: linear-gradient(180deg, rgba(16,12,15,0), rgba(16,12,15,.44));
  pointer-events: none;
}

.connections-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 8px 18px rgba(24, 18, 22, .12);
  backdrop-filter: blur(12px);
}

.connections-card__body {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 12px;
}

.connections-card__name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #1c1419;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.12;
  text-decoration: none;
}

.connections-card__city {
  color: #7b6974;
  font-size: .9rem;
}

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

.connections-card__tags span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(255,255,255,.8);
  border: 1px solid rgba(244, 220, 231, .95);
  color: #91657b;
  font-size: .72rem;
  font-weight: 700;
}

.connections-card__action {
  width: 100%;
  justify-content: center;
  margin-top: 4px;
}

.letters-stream {
  display: grid;
  gap: 12px;
}

.letter-bubble {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,245,249,.84));
  border: 1px solid rgba(245, 218, 231, .96);
}

.letter-bubble__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.letter-bubble__person {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.letter-bubble__person img {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  object-fit: cover;
  flex: 0 0 46px;
}

.letter-bubble__person strong,
.letter-bubble__person span {
  display: block;
}

.letter-bubble__person span {
  color: #8b7481;
  font-size: .82rem;
}

.letter-bubble__emoji {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: rgba(255,255,255,.78);
}

.letter-bubble p {
  margin: 0;
  color: #2b1f27;
  line-height: 1.55;
}

@media (min-width: 860px) {
  .connections-tabs {
    top: 16px;
  }

  .connections-carousel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (min-width: 1180px) {
  .connections-carousel {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .connections-shell {
    gap: 14px;
  }

  .connections-hero,
  .connections-panel,
  .connections-letters {
    padding: 16px 14px;
    border-radius: 24px;
  }

  .connections-hero__eyebrow {
    margin-bottom: 6px;
    font-size: .78rem;
  }

  .connections-hero h2 {
    font-size: clamp(1.35rem, 7vw, 1.95rem);
    max-width: 10ch;
  }

  .connections-hero h3 {
    font-size: clamp(1.2rem, 6.1vw, 1.72rem);
    max-width: 10ch;
  }

  .connections-summary-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    margin-top: 14px;
  }

  .connections-summary-pill {
    gap: 5px;
    min-height: 38px;
    padding: 0 6px;
  }

  .connections-summary-pill span {
    font-size: .86rem;
  }

  .connections-summary-pill strong {
    font-size: .94rem;
  }

  .connections-tabs {
    top: 6px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    padding: 4px;
    border-radius: 18px;
  }

  .connections-tab {
    min-height: 62px;
    padding: 9px 4px 6px;
    border-radius: 14px;
    gap: 3px;
  }

  .connections-tab__icon {
    font-size: .86rem;
  }

  .connections-tab__label {
    font-size: .58rem;
  }

  .connections-tab__count {
    top: 6px;
    right: 6px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    font-size: .68rem;
  }

  .connections-carousel {
    gap: 12px;
  }

  .connections-card {
    border-radius: 24px;
  }

  .connections-card__body {
    padding: 10px;
  }

  .connections-card__name {
    font-size: .98rem;
  }

  .connections-card__tags span {
    min-height: 24px;
    padding: 0 8px;
    font-size: .72rem;
  }

  .letter-bubble {
    border-radius: 20px;
    padding: 14px;
  }

  .letter-bubble__person img {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    flex-basis: 42px;
  }
}

@media (max-width: 380px) {
  .connections-summary-pill {
    gap: 4px;
    min-height: 36px;
    padding: 0 4px;
  }

  .connections-summary-pill span {
    font-size: .8rem;
  }

  .connections-summary-pill strong {
    font-size: .9rem;
  }

  .connections-panel__head {
    flex-wrap: wrap;
  }

  .connections-panel__head p {
    display: none;
  }

  .connections-tabs {
    gap: 3px;
    padding: 3px;
  }

  .connections-tab {
    min-height: 58px;
    padding: 8px 3px 5px;
  }

  .connections-tab__label {
    font-size: .54rem;
  }
}

/* === Profile redesign === */
.profile-dashboard {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.profile-dashboard-hero {
  position: relative;
  overflow: hidden;
  padding: 28px;
}

.profile-dashboard-hero__glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(24px);
  pointer-events: none;
}

.profile-dashboard-hero__glow--one {
  top: -40px;
  right: -20px;
  width: 220px;
  height: 220px;
  background: rgba(255, 150, 196, 0.25);
}

.profile-dashboard-hero__glow--two {
  left: -30px;
  bottom: -40px;
  width: 180px;
  height: 180px;
  background: rgba(142, 156, 255, 0.18);
}

.profile-dashboard-top {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 240px;
  gap: 24px;
  align-items: start;
}

.profile-dashboard-media {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.profile-dashboard-avatar {
  width: 100%;
  aspect-ratio: 1 / 1.1;
  object-fit: cover;
  border-radius: 32px;
  box-shadow: 0 24px 50px rgba(255, 95, 154, 0.16);
}

.profile-dashboard-badges,
.profile-dashboard-meta,
.profile-dashboard-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.profile-dashboard-mini-pill,
.profile-dashboard-status,
.profile-dashboard-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(243, 216, 231, 0.95);
  background: rgba(255,255,255,.82);
  color: var(--text);
  font-weight: 700;
}

.profile-dashboard-copy {
  min-width: 0;
}

.profile-dashboard-kicker,
.profile-dashboard-section-head__eyebrow {
  margin: 0 0 8px;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #b58399;
}

.profile-dashboard-title {
  margin: 0;
  font-size: clamp(2.1rem, 4vw, 3.3rem);
  line-height: .95;
}

.profile-dashboard-meta {
  margin-top: 16px;
}

.profile-dashboard-note {
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: 24px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(243, 216, 231, 0.95);
  box-shadow: 0 12px 28px rgba(36, 22, 32, 0.05);
}

.profile-dashboard-note__label {
  display: inline-block;
  margin-bottom: 8px;
  font-size: .82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #b58399;
}

.profile-dashboard-note p {
  margin: 0;
  color: var(--text);
  line-height: 1.6;
}

.profile-dashboard-tags {
  margin-top: 16px;
}

.profile-dashboard-tag {
  background: linear-gradient(135deg, rgba(255,95,154,.12), rgba(142,156,255,.1));
}

.profile-dashboard-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.profile-dashboard-side__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.profile-dashboard-side__stat {
  padding: 18px 14px;
  border-radius: 22px;
  border: 1px solid rgba(243, 216, 231, 0.95);
  background: rgba(255,255,255,.82);
  text-align: center;
}

.profile-dashboard-side__stat span {
  display: block;
  font-size: .82rem;
  color: var(--muted);
}

.profile-dashboard-side__stat strong {
  display: block;
  margin-top: 6px;
  font-size: 1.5rem;
}

.profile-dashboard-actions {
  display: grid;
  gap: 10px;
}

.profile-dashboard-action-form,
.profile-dashboard-action {
  width: 100%;
}

.profile-dashboard-action {
  justify-content: center;
}

.profile-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: 24px;
  align-items: start;
}

.profile-summary-card--profile,
.profile-gallery-card--profile {
  padding: 24px;
}

.profile-dashboard-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.profile-dashboard-section-head--compact {
  align-items: center;
}

.profile-dashboard-section-head h3 {
  margin: 0;
  font-size: 1.4rem;
}

.profile-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.profile-summary-grid__item {
  padding: 18px 14px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,246,250,.9));
  border: 1px solid rgba(243, 216, 231, 0.95);
  text-align: center;
  box-shadow: 0 14px 32px rgba(36, 22, 32, 0.05);
}

.profile-summary-grid__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  box-shadow: inset 0 0 0 1px rgba(243,216,231,.95);
  font-size: 1.15rem;
}

.profile-summary-grid__item strong {
  display: block;
  font-size: 1.45rem;
}

.profile-summary-grid__item small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-weight: 700;
}

.profile-dashboard-gallery-count {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255,95,154,.14), rgba(142,156,255,.14));
  color: var(--primary);
  font-weight: 800;
}

.profile-gallery-card__item img {
  height: 220px;
  margin-bottom: 0;
  border-radius: 20px;
}

@media (max-width: 1120px) {
  .profile-dashboard-top {
    grid-template-columns: 190px minmax(0, 1fr);
  }

  .profile-dashboard-side {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: stretch;
    justify-content: space-between;
  }

  .profile-dashboard-side__stats {
    min-width: 220px;
  }

  .profile-dashboard-actions {
    flex: 1;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  .profile-dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .profile-dashboard-hero {
    padding: 20px;
  }

  .profile-dashboard-top {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .profile-dashboard-media {
    max-width: 240px;
  }

  .profile-dashboard-title {
    font-size: 2.2rem;
  }

  .profile-dashboard-side {
    flex-direction: column;
  }

  .profile-dashboard-side__stats,
  .profile-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .profile-dashboard-mini-pill,
  .profile-dashboard-status,
  .profile-dashboard-tag {
    min-height: 36px;
    padding-inline: 12px;
    font-size: .88rem;
  }

  .profile-summary-card--profile,
  .profile-gallery-card--profile {
    padding: 18px;
  }

  .profile-dashboard-section-head {
    flex-direction: column;
    align-items: stretch;
  }

  .profile-dashboard-section-head .chip-link {
    width: 100%;
    justify-content: center;
  }

  .profile-summary-grid {
    gap: 10px;
  }

  .profile-summary-grid__item {
    padding: 14px 10px;
    border-radius: 20px;
  }

  .profile-summary-grid__item strong {
    font-size: 1.2rem;
  }

  .profile-summary-grid__item small {
    font-size: .78rem;
  }

  .profile-gallery-card__item img {
    height: 170px;
  }
}


/* === PROFILE UI POLISH MAR 2026 === */
.profile-dashboard-side--actions-only {
  gap: 0;
}

.profile-dashboard-section-head--solo {
  justify-content: flex-start;
}

.profile-dashboard-section-head--solo h3,
.profile-dashboard-gallery-count {
  display: none !important;
}

.profile-dashboard-mini-pill {
  background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(255,244,249,.88));
  box-shadow: 0 10px 24px rgba(45, 27, 40, 0.05);
}

.profile-dashboard-status {
  background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(255,243,248,.92));
  box-shadow: 0 12px 28px rgba(45, 27, 40, 0.06);
}

.profile-summary-card--profile {
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,246,250,.9));
}

.profile-gallery-card--profile {
  background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(255,247,251,.9));
}

.profile-showcase {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.profile-showcase__hero {
  display: grid;
  grid-template-columns: minmax(0, 210px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.profile-showcase__media {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.profile-showcase__avatar {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  border-radius: 30px;
  box-shadow: 0 22px 44px rgba(255, 95, 154, 0.15);
}

.profile-showcase__badges,
.profile-showcase__status-row,
.profile-showcase__interests {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.profile-showcase__badge,
.profile-showcase__pill,
.profile-showcase__interest {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(243, 216, 231, 0.95);
  background: rgba(255,255,255,.84);
  color: var(--text);
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(45, 27, 40, 0.05);
}

.profile-showcase__badge--city {
  background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(255,245,250,.92));
}

.profile-showcase__badge--joined {
  background: linear-gradient(135deg, rgba(255,95,154,.12), rgba(142,156,255,.1));
}

.profile-showcase__pill--verification {
  background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(255,238,245,.94));
}

.profile-showcase__content {
  min-width: 0;
}

.profile-showcase__eyebrow {
  margin: 0 0 8px;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #b58399;
}

.profile-showcase__title {
  margin: 0;
  font-size: clamp(2rem, 3.7vw, 3rem);
  line-height: .98;
}

.profile-showcase__status-row {
  margin-top: 16px;
}

.profile-showcase__bio-card {
  padding: 18px 20px;
  border-radius: 24px;
  border: 1px solid rgba(243, 216, 231, 0.95);
  background: rgba(255,255,255,.76);
  box-shadow: 0 12px 28px rgba(45, 27, 40, 0.05);
}

.profile-showcase__card-label {
  display: inline-block;
  margin-bottom: 8px;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #b58399;
}

.profile-showcase__bio-card p {
  margin: 0;
  color: var(--text);
  line-height: 1.65;
}

.profile-showcase__interest {
  background: linear-gradient(135deg, rgba(255,95,154,.1), rgba(142,156,255,.08));
}

#profile-actions-card .reaction-actions {
  gap: 12px;
}

#profile-actions-card .action-wide-form {
  flex: 1 1 210px;
}

@media (max-width: 900px) {
  .profile-showcase__hero {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .profile-showcase__media {
    max-width: 250px;
  }
}

@media (max-width: 560px) {
  .profile-showcase__badge,
  .profile-showcase__pill,
  .profile-showcase__interest {
    min-height: 36px;
    padding-inline: 12px;
    font-size: .86rem;
  }

  .profile-showcase__title {
    font-size: 2.1rem;
  }

  .profile-showcase__bio-card {
    padding: 16px;
    border-radius: 20px;
  }
}
